1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for aqualung 1.0.
4#
5# Report bugs to <http://aqualung.factorial.hu/mantis>.
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
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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  }
81fi
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.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
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
102IFS=$as_save_IFS
103
104     ;;
105esac
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.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export 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.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $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
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if 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
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -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
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
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
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
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
236fi; }
237IFS=$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.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $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
259exit 255
260fi
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: http://aqualung.factorial.hu/mantis 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
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_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.
308as_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.
318as_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.
366as_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.
376if (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  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # 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.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # 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.
411as_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
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_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.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_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
503ECHO_C= ECHO_N= ECHO_T=
504case `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';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (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
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_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.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 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.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='aqualung'
582PACKAGE_TARNAME='aqualung'
583PACKAGE_VERSION='1.0'
584PACKAGE_STRING='aqualung 1.0'
585PACKAGE_BUGREPORT='http://aqualung.factorial.hu/mantis'
586PACKAGE_URL=''
587
588ac_unique_file="src/core.c"
589# Factoring default headers for most tests.
590ac_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
625gt_needs=
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629HAVE_LUA_FALSE
630HAVE_LUA_TRUE
631lua_LIBS
632lua_CFLAGS
633HAVE_CDDB_FALSE
634HAVE_CDDB_TRUE
635cddb_LIBS
636cddb_CFLAGS
637HAVE_IFP_FALSE
638HAVE_IFP_TRUE
639ifp_LIBS
640HAVE_CDDA_FALSE
641HAVE_CDDA_TRUE
642cdio_LIBS
643cdio_CFLAGS
644HAVE_SRC_FALSE
645HAVE_SRC_TRUE
646src_LIBS
647src_CFLAGS
648HAVE_LADSPA_FALSE
649HAVE_LADSPA_TRUE
650lrdf_LIBS
651lrdf_CFLAGS
652HAVE_WAVPACK_FALSE
653HAVE_WAVPACK_TRUE
654wavpack_LIBS
655wavpack_CFLAGS
656HAVE_TRANSCODING_FALSE
657HAVE_TRANSCODING_TRUE
658HAVE_VORBISENC_FALSE
659HAVE_VORBISENC_TRUE
660vorbisenc_LIBS
661vorbisenc_CFLAGS
662HAVE_VORBIS_FALSE
663HAVE_VORBIS_TRUE
664vorbis_LIBS
665vorbis_CFLAGS
666HAVE_SPEEX_FALSE
667HAVE_SPEEX_TRUE
668speex_LIBS
669speex_CFLAGS
670HAVE_SNDFILE_FALSE
671HAVE_SNDFILE_TRUE
672sndfile_LIBS
673sndfile_CFLAGS
674HAVE_MPEG_FALSE
675HAVE_MPEG_TRUE
676mad_LIBS
677mad_CFLAGS
678HAVE_MPC_FALSE
679HAVE_MPC_TRUE
680mpc_LIBS
681HAVE_MOD_FALSE
682HAVE_MOD_TRUE
683mod_LIBS
684mod_CFLAGS
685HAVE_MAC_FALSE
686HAVE_MAC_TRUE
687mac_LIBS
688HAVE_LAVC_FALSE
689HAVE_LAVC_TRUE
690lavc_LIBS
691lavc_CFLAGS
692HAVE_LAME_FALSE
693HAVE_LAME_TRUE
694lame_LIBS
695HAVE_FLAC_FALSE
696HAVE_FLAC_TRUE
697flac_LIBS
698flac_CFLAGS
699HAVE_WINMM_FALSE
700HAVE_WINMM_TRUE
701winmm_LIBS
702HAVE_SNDIO_FALSE
703HAVE_SNDIO_TRUE
704sndio_LIBS
705HAVE_PULSE_FALSE
706HAVE_PULSE_TRUE
707pulse_LIBS
708pulse_CFLAGS
709HAVE_OSS_FALSE
710HAVE_OSS_TRUE
711oss_LIBS
712HAVE_JACK_MGMT_FALSE
713HAVE_JACK_MGMT_TRUE
714HAVE_JACK_FALSE
715HAVE_JACK_TRUE
716jack_LIBS
717HAVE_ALSA_FALSE
718HAVE_ALSA_TRUE
719alsa_LIBS
720alsa_CFLAGS
721HAVE_PODCAST_FALSE
722HAVE_PODCAST_TRUE
723HAVE_LOOP_FALSE
724HAVE_LOOP_TRUE
725debug_LDFLAGS
726debug_LIBS
727LIBOBJS
728gtk_LIBS
729gtk_CFLAGS
730glib_LIBS
731glib_CFLAGS
732xml_LIBS
733xml_CFLAGS
734PKG_CONFIG_LIBDIR
735PKG_CONFIG_PATH
736PKG_CONFIG
737POSUB
738LTLIBINTL
739LIBINTL
740INTLLIBS
741LTLIBICONV
742LIBICONV
743INTL_MACOSX_LIBS
744XGETTEXT_EXTRA_OPTIONS
745MSGMERGE
746XGETTEXT_015
747XGETTEXT
748GMSGFMT_015
749MSGFMT_015
750GMSGFMT
751MSGFMT
752GETTEXT_MACRO_VERSION
753USE_NLS
754EGREP
755GREP
756CPP
757am__fastdepCXX_FALSE
758am__fastdepCXX_TRUE
759CXXDEPMODE
760ac_ct_CXX
761CXXFLAGS
762CXX
763RANLIB
764am__fastdepCC_FALSE
765am__fastdepCC_TRUE
766CCDEPMODE
767am__nodep
768AMDEPBACKSLASH
769AMDEP_FALSE
770AMDEP_TRUE
771am__quote
772am__include
773DEPDIR
774OBJEXT
775EXEEXT
776ac_ct_CC
777CPPFLAGS
778LDFLAGS
779CFLAGS
780CC
781host_os
782host_vendor
783host_cpu
784host
785build_os
786build_vendor
787build_cpu
788build
789AM_BACKSLASH
790AM_DEFAULT_VERBOSITY
791AM_DEFAULT_V
792AM_V
793am__untar
794am__tar
795AMTAR
796am__leading_dot
797SET_MAKE
798AWK
799mkdir_p
800MKDIR_P
801INSTALL_STRIP_PROGRAM
802STRIP
803install_sh
804MAKEINFO
805AUTOHEADER
806AUTOMAKE
807AUTOCONF
808ACLOCAL
809VERSION
810PACKAGE
811CYGPATH_W
812am__isrc
813INSTALL_DATA
814INSTALL_SCRIPT
815INSTALL_PROGRAM
816target_alias
817host_alias
818build_alias
819LIBS
820ECHO_T
821ECHO_N
822ECHO_C
823DEFS
824mandir
825localedir
826libdir
827psdir
828pdfdir
829dvidir
830htmldir
831infodir
832docdir
833oldincludedir
834includedir
835localstatedir
836sharedstatedir
837sysconfdir
838datadir
839datarootdir
840libexecdir
841sbindir
842bindir
843program_transform_name
844prefix
845exec_prefix
846PACKAGE_URL
847PACKAGE_BUGREPORT
848PACKAGE_STRING
849PACKAGE_VERSION
850PACKAGE_TARNAME
851PACKAGE_NAME
852PATH_SEPARATOR
853SHELL'
854ac_subst_files=''
855ac_user_opts='
856enable_option_checking
857enable_silent_rules
858enable_dependency_tracking
859enable_nls
860with_gnu_ld
861enable_rpath
862with_libiconv_prefix
863with_libintl_prefix
864enable_largefile
865enable_debug
866enable_jack_mgmt
867enable_loop
868enable_podcast
869enable_systray
870enable_transcoding
871with_alsa
872with_jack
873with_oss
874with_pulse
875with_sndio
876with_winmm
877with_flac
878with_lame
879with_lavc
880with_mac
881with_mod
882with_mpc
883with_mpeg
884with_sndfile
885with_speex
886with_vorbis
887with_vorbisenc
888with_wavpack
889with_ladspa
890with_src
891with_cdda
892with_ifp
893with_cddb
894with_lua
895'
896      ac_precious_vars='build_alias
897host_alias
898target_alias
899CC
900CFLAGS
901LDFLAGS
902LIBS
903CPPFLAGS
904CXX
905CXXFLAGS
906CCC
907CPP
908PKG_CONFIG
909PKG_CONFIG_PATH
910PKG_CONFIG_LIBDIR
911xml_CFLAGS
912xml_LIBS
913glib_CFLAGS
914glib_LIBS
915gtk_CFLAGS
916gtk_LIBS
917alsa_CFLAGS
918alsa_LIBS
919pulse_CFLAGS
920pulse_LIBS
921flac_CFLAGS
922flac_LIBS
923lavc_CFLAGS
924lavc_LIBS
925mod_CFLAGS
926mod_LIBS
927mad_CFLAGS
928mad_LIBS
929sndfile_CFLAGS
930sndfile_LIBS
931speex_CFLAGS
932speex_LIBS
933vorbis_CFLAGS
934vorbis_LIBS
935vorbisenc_CFLAGS
936vorbisenc_LIBS
937wavpack_CFLAGS
938wavpack_LIBS
939lrdf_CFLAGS
940lrdf_LIBS
941src_CFLAGS
942src_LIBS
943cdio_CFLAGS
944cdio_LIBS
945cddb_CFLAGS
946cddb_LIBS
947lua_CFLAGS
948lua_LIBS'
949
950
951# Initialize some variables set by options.
952ac_init_help=
953ac_init_version=false
954ac_unrecognized_opts=
955ac_unrecognized_sep=
956# The variables have the same names as the options, with
957# dashes changed to underlines.
958cache_file=/dev/null
959exec_prefix=NONE
960no_create=
961no_recursion=
962prefix=NONE
963program_prefix=NONE
964program_suffix=NONE
965program_transform_name=s,x,x,
966silent=
967site=
968srcdir=
969verbose=
970x_includes=NONE
971x_libraries=NONE
972
973# Installation directory options.
974# These are left unexpanded so users can "make install exec_prefix=/foo"
975# and all the variables that are supposed to be based on exec_prefix
976# by default will actually change.
977# Use braces instead of parens because sh, perl, etc. also accept them.
978# (The list follows the same order as the GNU Coding Standards.)
979bindir='${exec_prefix}/bin'
980sbindir='${exec_prefix}/sbin'
981libexecdir='${exec_prefix}/libexec'
982datarootdir='${prefix}/share'
983datadir='${datarootdir}'
984sysconfdir='${prefix}/etc'
985sharedstatedir='${prefix}/com'
986localstatedir='${prefix}/var'
987includedir='${prefix}/include'
988oldincludedir='/usr/include'
989docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
990infodir='${datarootdir}/info'
991htmldir='${docdir}'
992dvidir='${docdir}'
993pdfdir='${docdir}'
994psdir='${docdir}'
995libdir='${exec_prefix}/lib'
996localedir='${datarootdir}/locale'
997mandir='${datarootdir}/man'
998
999ac_prev=
1000ac_dashdash=
1001for ac_option
1002do
1003  # If the previous option needs an argument, assign it.
1004  if test -n "$ac_prev"; then
1005    eval $ac_prev=\$ac_option
1006    ac_prev=
1007    continue
1008  fi
1009
1010  case $ac_option in
1011  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012  *=)   ac_optarg= ;;
1013  *)    ac_optarg=yes ;;
1014  esac
1015
1016  # Accept the important Cygnus configure options, so we can diagnose typos.
1017
1018  case $ac_dashdash$ac_option in
1019  --)
1020    ac_dashdash=yes ;;
1021
1022  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1023    ac_prev=bindir ;;
1024  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1025    bindir=$ac_optarg ;;
1026
1027  -build | --build | --buil | --bui | --bu)
1028    ac_prev=build_alias ;;
1029  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1030    build_alias=$ac_optarg ;;
1031
1032  -cache-file | --cache-file | --cache-fil | --cache-fi \
1033  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1034    ac_prev=cache_file ;;
1035  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1036  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1037    cache_file=$ac_optarg ;;
1038
1039  --config-cache | -C)
1040    cache_file=config.cache ;;
1041
1042  -datadir | --datadir | --datadi | --datad)
1043    ac_prev=datadir ;;
1044  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1045    datadir=$ac_optarg ;;
1046
1047  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1048  | --dataroo | --dataro | --datar)
1049    ac_prev=datarootdir ;;
1050  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1051  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1052    datarootdir=$ac_optarg ;;
1053
1054  -disable-* | --disable-*)
1055    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1056    # Reject names that are not valid shell variable names.
1057    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058      as_fn_error $? "invalid feature name: $ac_useropt"
1059    ac_useropt_orig=$ac_useropt
1060    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061    case $ac_user_opts in
1062      *"
1063"enable_$ac_useropt"
1064"*) ;;
1065      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1066	 ac_unrecognized_sep=', ';;
1067    esac
1068    eval enable_$ac_useropt=no ;;
1069
1070  -docdir | --docdir | --docdi | --doc | --do)
1071    ac_prev=docdir ;;
1072  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073    docdir=$ac_optarg ;;
1074
1075  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076    ac_prev=dvidir ;;
1077  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078    dvidir=$ac_optarg ;;
1079
1080  -enable-* | --enable-*)
1081    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082    # Reject names that are not valid shell variable names.
1083    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084      as_fn_error $? "invalid feature name: $ac_useropt"
1085    ac_useropt_orig=$ac_useropt
1086    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087    case $ac_user_opts in
1088      *"
1089"enable_$ac_useropt"
1090"*) ;;
1091      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1092	 ac_unrecognized_sep=', ';;
1093    esac
1094    eval enable_$ac_useropt=\$ac_optarg ;;
1095
1096  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1097  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1098  | --exec | --exe | --ex)
1099    ac_prev=exec_prefix ;;
1100  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1101  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1102  | --exec=* | --exe=* | --ex=*)
1103    exec_prefix=$ac_optarg ;;
1104
1105  -gas | --gas | --ga | --g)
1106    # Obsolete; use --with-gas.
1107    with_gas=yes ;;
1108
1109  -help | --help | --hel | --he | -h)
1110    ac_init_help=long ;;
1111  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1112    ac_init_help=recursive ;;
1113  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1114    ac_init_help=short ;;
1115
1116  -host | --host | --hos | --ho)
1117    ac_prev=host_alias ;;
1118  -host=* | --host=* | --hos=* | --ho=*)
1119    host_alias=$ac_optarg ;;
1120
1121  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1122    ac_prev=htmldir ;;
1123  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1124  | --ht=*)
1125    htmldir=$ac_optarg ;;
1126
1127  -includedir | --includedir | --includedi | --included | --include \
1128  | --includ | --inclu | --incl | --inc)
1129    ac_prev=includedir ;;
1130  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1131  | --includ=* | --inclu=* | --incl=* | --inc=*)
1132    includedir=$ac_optarg ;;
1133
1134  -infodir | --infodir | --infodi | --infod | --info | --inf)
1135    ac_prev=infodir ;;
1136  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1137    infodir=$ac_optarg ;;
1138
1139  -libdir | --libdir | --libdi | --libd)
1140    ac_prev=libdir ;;
1141  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1142    libdir=$ac_optarg ;;
1143
1144  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1145  | --libexe | --libex | --libe)
1146    ac_prev=libexecdir ;;
1147  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1148  | --libexe=* | --libex=* | --libe=*)
1149    libexecdir=$ac_optarg ;;
1150
1151  -localedir | --localedir | --localedi | --localed | --locale)
1152    ac_prev=localedir ;;
1153  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1154    localedir=$ac_optarg ;;
1155
1156  -localstatedir | --localstatedir | --localstatedi | --localstated \
1157  | --localstate | --localstat | --localsta | --localst | --locals)
1158    ac_prev=localstatedir ;;
1159  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1160  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1161    localstatedir=$ac_optarg ;;
1162
1163  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1164    ac_prev=mandir ;;
1165  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1166    mandir=$ac_optarg ;;
1167
1168  -nfp | --nfp | --nf)
1169    # Obsolete; use --without-fp.
1170    with_fp=no ;;
1171
1172  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1173  | --no-cr | --no-c | -n)
1174    no_create=yes ;;
1175
1176  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1177  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1178    no_recursion=yes ;;
1179
1180  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1181  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1182  | --oldin | --oldi | --old | --ol | --o)
1183    ac_prev=oldincludedir ;;
1184  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1185  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1186  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1187    oldincludedir=$ac_optarg ;;
1188
1189  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1190    ac_prev=prefix ;;
1191  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1192    prefix=$ac_optarg ;;
1193
1194  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1195  | --program-pre | --program-pr | --program-p)
1196    ac_prev=program_prefix ;;
1197  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1198  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1199    program_prefix=$ac_optarg ;;
1200
1201  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1202  | --program-suf | --program-su | --program-s)
1203    ac_prev=program_suffix ;;
1204  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1205  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1206    program_suffix=$ac_optarg ;;
1207
1208  -program-transform-name | --program-transform-name \
1209  | --program-transform-nam | --program-transform-na \
1210  | --program-transform-n | --program-transform- \
1211  | --program-transform | --program-transfor \
1212  | --program-transfo | --program-transf \
1213  | --program-trans | --program-tran \
1214  | --progr-tra | --program-tr | --program-t)
1215    ac_prev=program_transform_name ;;
1216  -program-transform-name=* | --program-transform-name=* \
1217  | --program-transform-nam=* | --program-transform-na=* \
1218  | --program-transform-n=* | --program-transform-=* \
1219  | --program-transform=* | --program-transfor=* \
1220  | --program-transfo=* | --program-transf=* \
1221  | --program-trans=* | --program-tran=* \
1222  | --progr-tra=* | --program-tr=* | --program-t=*)
1223    program_transform_name=$ac_optarg ;;
1224
1225  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1226    ac_prev=pdfdir ;;
1227  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1228    pdfdir=$ac_optarg ;;
1229
1230  -psdir | --psdir | --psdi | --psd | --ps)
1231    ac_prev=psdir ;;
1232  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1233    psdir=$ac_optarg ;;
1234
1235  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1236  | -silent | --silent | --silen | --sile | --sil)
1237    silent=yes ;;
1238
1239  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1240    ac_prev=sbindir ;;
1241  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1242  | --sbi=* | --sb=*)
1243    sbindir=$ac_optarg ;;
1244
1245  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1246  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1247  | --sharedst | --shareds | --shared | --share | --shar \
1248  | --sha | --sh)
1249    ac_prev=sharedstatedir ;;
1250  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1251  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1252  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1253  | --sha=* | --sh=*)
1254    sharedstatedir=$ac_optarg ;;
1255
1256  -site | --site | --sit)
1257    ac_prev=site ;;
1258  -site=* | --site=* | --sit=*)
1259    site=$ac_optarg ;;
1260
1261  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1262    ac_prev=srcdir ;;
1263  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1264    srcdir=$ac_optarg ;;
1265
1266  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1267  | --syscon | --sysco | --sysc | --sys | --sy)
1268    ac_prev=sysconfdir ;;
1269  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1270  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1271    sysconfdir=$ac_optarg ;;
1272
1273  -target | --target | --targe | --targ | --tar | --ta | --t)
1274    ac_prev=target_alias ;;
1275  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1276    target_alias=$ac_optarg ;;
1277
1278  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1279    verbose=yes ;;
1280
1281  -version | --version | --versio | --versi | --vers | -V)
1282    ac_init_version=: ;;
1283
1284  -with-* | --with-*)
1285    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1286    # Reject names that are not valid shell variable names.
1287    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288      as_fn_error $? "invalid package name: $ac_useropt"
1289    ac_useropt_orig=$ac_useropt
1290    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291    case $ac_user_opts in
1292      *"
1293"with_$ac_useropt"
1294"*) ;;
1295      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1296	 ac_unrecognized_sep=', ';;
1297    esac
1298    eval with_$ac_useropt=\$ac_optarg ;;
1299
1300  -without-* | --without-*)
1301    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302    # Reject names that are not valid shell variable names.
1303    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304      as_fn_error $? "invalid package name: $ac_useropt"
1305    ac_useropt_orig=$ac_useropt
1306    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307    case $ac_user_opts in
1308      *"
1309"with_$ac_useropt"
1310"*) ;;
1311      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1312	 ac_unrecognized_sep=', ';;
1313    esac
1314    eval with_$ac_useropt=no ;;
1315
1316  --x)
1317    # Obsolete; use --with-x.
1318    with_x=yes ;;
1319
1320  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1321  | --x-incl | --x-inc | --x-in | --x-i)
1322    ac_prev=x_includes ;;
1323  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1324  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1325    x_includes=$ac_optarg ;;
1326
1327  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1328  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1329    ac_prev=x_libraries ;;
1330  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1331  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1332    x_libraries=$ac_optarg ;;
1333
1334  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1335Try \`$0 --help' for more information"
1336    ;;
1337
1338  *=*)
1339    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1340    # Reject names that are not valid shell variable names.
1341    case $ac_envvar in #(
1342      '' | [0-9]* | *[!_$as_cr_alnum]* )
1343      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1344    esac
1345    eval $ac_envvar=\$ac_optarg
1346    export $ac_envvar ;;
1347
1348  *)
1349    # FIXME: should be removed in autoconf 3.0.
1350    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1351    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1352      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1353    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1354    ;;
1355
1356  esac
1357done
1358
1359if test -n "$ac_prev"; then
1360  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1361  as_fn_error $? "missing argument to $ac_option"
1362fi
1363
1364if test -n "$ac_unrecognized_opts"; then
1365  case $enable_option_checking in
1366    no) ;;
1367    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1368    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1369  esac
1370fi
1371
1372# Check all directory arguments for consistency.
1373for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1374		datadir sysconfdir sharedstatedir localstatedir includedir \
1375		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1376		libdir localedir mandir
1377do
1378  eval ac_val=\$$ac_var
1379  # Remove trailing slashes.
1380  case $ac_val in
1381    */ )
1382      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1383      eval $ac_var=\$ac_val;;
1384  esac
1385  # Be sure to have absolute directory names.
1386  case $ac_val in
1387    [\\/$]* | ?:[\\/]* )  continue;;
1388    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1389  esac
1390  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1391done
1392
1393# There might be people who depend on the old broken behavior: `$host'
1394# used to hold the argument of --host etc.
1395# FIXME: To remove some day.
1396build=$build_alias
1397host=$host_alias
1398target=$target_alias
1399
1400# FIXME: To remove some day.
1401if test "x$host_alias" != x; then
1402  if test "x$build_alias" = x; then
1403    cross_compiling=maybe
1404  elif test "x$build_alias" != "x$host_alias"; then
1405    cross_compiling=yes
1406  fi
1407fi
1408
1409ac_tool_prefix=
1410test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411
1412test "$silent" = yes && exec 6>/dev/null
1413
1414
1415ac_pwd=`pwd` && test -n "$ac_pwd" &&
1416ac_ls_di=`ls -di .` &&
1417ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1418  as_fn_error $? "working directory cannot be determined"
1419test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420  as_fn_error $? "pwd does not report name of working directory"
1421
1422
1423# Find the source files, if location was not specified.
1424if test -z "$srcdir"; then
1425  ac_srcdir_defaulted=yes
1426  # Try the directory containing this script, then the parent directory.
1427  ac_confdir=`$as_dirname -- "$as_myself" ||
1428$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1429	 X"$as_myself" : 'X\(//\)[^/]' \| \
1430	 X"$as_myself" : 'X\(//\)$' \| \
1431	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1432$as_echo X"$as_myself" |
1433    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434	    s//\1/
1435	    q
1436	  }
1437	  /^X\(\/\/\)[^/].*/{
1438	    s//\1/
1439	    q
1440	  }
1441	  /^X\(\/\/\)$/{
1442	    s//\1/
1443	    q
1444	  }
1445	  /^X\(\/\).*/{
1446	    s//\1/
1447	    q
1448	  }
1449	  s/.*/./; q'`
1450  srcdir=$ac_confdir
1451  if test ! -r "$srcdir/$ac_unique_file"; then
1452    srcdir=..
1453  fi
1454else
1455  ac_srcdir_defaulted=no
1456fi
1457if test ! -r "$srcdir/$ac_unique_file"; then
1458  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1459  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1460fi
1461ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462ac_abs_confdir=`(
1463	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1464	pwd)`
1465# When building in place, set srcdir=.
1466if test "$ac_abs_confdir" = "$ac_pwd"; then
1467  srcdir=.
1468fi
1469# Remove unnecessary trailing slashes from srcdir.
1470# Double slashes in file names in object file debugging info
1471# mess up M-x gdb in Emacs.
1472case $srcdir in
1473*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1474esac
1475for ac_var in $ac_precious_vars; do
1476  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1477  eval ac_env_${ac_var}_value=\$${ac_var}
1478  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1479  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1480done
1481
1482#
1483# Report the --help message.
1484#
1485if test "$ac_init_help" = "long"; then
1486  # Omit some internal or obsolete options to make the list less imposing.
1487  # This message is too long to be a string in the A/UX 3.1 sh.
1488  cat <<_ACEOF
1489\`configure' configures aqualung 1.0 to adapt to many kinds of systems.
1490
1491Usage: $0 [OPTION]... [VAR=VALUE]...
1492
1493To assign environment variables (e.g., CC, CFLAGS...), specify them as
1494VAR=VALUE.  See below for descriptions of some of the useful variables.
1495
1496Defaults for the options are specified in brackets.
1497
1498Configuration:
1499  -h, --help              display this help and exit
1500      --help=short        display options specific to this package
1501      --help=recursive    display the short help of all the included packages
1502  -V, --version           display version information and exit
1503  -q, --quiet, --silent   do not print \`checking ...' messages
1504      --cache-file=FILE   cache test results in FILE [disabled]
1505  -C, --config-cache      alias for \`--cache-file=config.cache'
1506  -n, --no-create         do not create output files
1507      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1508
1509Installation directories:
1510  --prefix=PREFIX         install architecture-independent files in PREFIX
1511                          [$ac_default_prefix]
1512  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1513                          [PREFIX]
1514
1515By default, \`make install' will install all the files in
1516\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1517an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1518for instance \`--prefix=\$HOME'.
1519
1520For better control, use the options below.
1521
1522Fine tuning of the installation directories:
1523  --bindir=DIR            user executables [EPREFIX/bin]
1524  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1525  --libexecdir=DIR        program executables [EPREFIX/libexec]
1526  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1527  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1528  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1529  --libdir=DIR            object code libraries [EPREFIX/lib]
1530  --includedir=DIR        C header files [PREFIX/include]
1531  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1532  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1533  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1534  --infodir=DIR           info documentation [DATAROOTDIR/info]
1535  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1536  --mandir=DIR            man documentation [DATAROOTDIR/man]
1537  --docdir=DIR            documentation root [DATAROOTDIR/doc/aqualung]
1538  --htmldir=DIR           html documentation [DOCDIR]
1539  --dvidir=DIR            dvi documentation [DOCDIR]
1540  --pdfdir=DIR            pdf documentation [DOCDIR]
1541  --psdir=DIR             ps documentation [DOCDIR]
1542_ACEOF
1543
1544  cat <<\_ACEOF
1545
1546Program names:
1547  --program-prefix=PREFIX            prepend PREFIX to installed program names
1548  --program-suffix=SUFFIX            append SUFFIX to installed program names
1549  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1550
1551System types:
1552  --build=BUILD     configure for building on BUILD [guessed]
1553  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1554_ACEOF
1555fi
1556
1557if test -n "$ac_init_help"; then
1558  case $ac_init_help in
1559     short | recursive ) echo "Configuration of aqualung 1.0:";;
1560   esac
1561  cat <<\_ACEOF
1562
1563Optional Features:
1564  --disable-option-checking  ignore unrecognized --enable/--with options
1565  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1566  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1567  --enable-silent-rules   less verbose build output (undo: "make V=1")
1568  --disable-silent-rules  verbose build output (undo: "make V=0")
1569  --enable-dependency-tracking
1570                          do not reject slow dependency extractors
1571  --disable-dependency-tracking
1572                          speeds up one-time build
1573  --disable-nls           do not use Native Language Support
1574  --disable-rpath         do not hardcode runtime library paths
1575  --disable-largefile     omit support for large files
1576  --enable-debug          compile with debugging support
1577  --disable-jack-mgmt     compile without JACK port management support
1578  --disable-loop          compile without loop playback support
1579  --disable-podcast       compile without podcast support
1580  --disable-systray       compile without systray support
1581  --disable-transcoding   compile without transcoding support
1582
1583Optional Packages:
1584  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1585  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1586  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1587  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1588  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1589  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1590  --without-libintl-prefix     don't search for libintl in includedir and libdir
1591  --with-alsa             compile with ALSA support (default: detect)
1592  --with-jack             compile with JACK support (default: detect)
1593  --with-oss              compile with OSS support (default: detect)
1594  --with-pulse            compile with PulseAudio support (default: detect)
1595  --with-sndio            compile with sndio support (default: detect)
1596  --with-winmm            compile with Windows Multimedia Extensions API
1597                          support (default: detect)
1598  --with-flac             compile with Free Lossless Audio Codec support
1599                          (default: detect)
1600  --with-lame             compile with LAME MP3 Encoding support (default:
1601                          detect)
1602  --with-lavc             compile with Libav / FFmpeg support (default:
1603                          detect)
1604  --with-mac              compile with Monkey's Audio Codec support (default:
1605                          detect)
1606  --with-mod              compile with MOD Audio support (default: detect)
1607  --with-mpc              compile with Musepack support (default: detect)
1608  --with-mpeg             compile with MPEG Audio support (default: detect)
1609  --with-sndfile          compile with sndfile (WAV, AIFF, etc.) support
1610                          (default: detect)
1611  --with-speex            compile with Ogg Speex support (default: detect)
1612  --with-vorbis           compile with Ogg Vorbis support (default: detect)
1613  --with-vorbisenc        compile with Ogg Vorbis Encoding support (default:
1614                          detect)
1615  --with-wavpack          compile with WavPack support (default: detect)
1616  --with-ladspa           compile with LADSPA Plugin support (default: detect)
1617  --with-src              compile with Sample Rate Converter support (default:
1618                          detect)
1619  --with-cdda             compile with Compact Disc Digital Audio support
1620                          (default: detect)
1621  --with-ifp              compile with iRiver iFP support (default: detect)
1622  --with-cddb             compile with Compact Disc Database support (default:
1623                          detect)
1624  --with-lua              compile with Lua Extension support (default: detect)
1625
1626Some influential environment variables:
1627  CC          C compiler command
1628  CFLAGS      C compiler flags
1629  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1630              nonstandard directory <lib dir>
1631  LIBS        libraries to pass to the linker, e.g. -l<library>
1632  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633              you have headers in a nonstandard directory <include dir>
1634  CXX         C++ compiler command
1635  CXXFLAGS    C++ compiler flags
1636  CPP         C preprocessor
1637  PKG_CONFIG  path to pkg-config utility
1638  PKG_CONFIG_PATH
1639              directories to add to pkg-config's search path
1640  PKG_CONFIG_LIBDIR
1641              path overriding pkg-config's built-in search path
1642  xml_CFLAGS  C compiler flags for xml, overriding pkg-config
1643  xml_LIBS    linker flags for xml, overriding pkg-config
1644  glib_CFLAGS C compiler flags for glib, overriding pkg-config
1645  glib_LIBS   linker flags for glib, overriding pkg-config
1646  gtk_CFLAGS  C compiler flags for gtk, overriding pkg-config
1647  gtk_LIBS    linker flags for gtk, overriding pkg-config
1648  alsa_CFLAGS C compiler flags for alsa, overriding pkg-config
1649  alsa_LIBS   linker flags for alsa, overriding pkg-config
1650  pulse_CFLAGS
1651              C compiler flags for pulse, overriding pkg-config
1652  pulse_LIBS  linker flags for pulse, overriding pkg-config
1653  flac_CFLAGS C compiler flags for flac, overriding pkg-config
1654  flac_LIBS   linker flags for flac, overriding pkg-config
1655  lavc_CFLAGS C compiler flags for lavc, overriding pkg-config
1656  lavc_LIBS   linker flags for lavc, overriding pkg-config
1657  mod_CFLAGS  C compiler flags for mod, overriding pkg-config
1658  mod_LIBS    linker flags for mod, overriding pkg-config
1659  mad_CFLAGS  C compiler flags for mad, overriding pkg-config
1660  mad_LIBS    linker flags for mad, overriding pkg-config
1661  sndfile_CFLAGS
1662              C compiler flags for sndfile, overriding pkg-config
1663  sndfile_LIBS
1664              linker flags for sndfile, overriding pkg-config
1665  speex_CFLAGS
1666              C compiler flags for speex, overriding pkg-config
1667  speex_LIBS  linker flags for speex, overriding pkg-config
1668  vorbis_CFLAGS
1669              C compiler flags for vorbis, overriding pkg-config
1670  vorbis_LIBS linker flags for vorbis, overriding pkg-config
1671  vorbisenc_CFLAGS
1672              C compiler flags for vorbisenc, overriding pkg-config
1673  vorbisenc_LIBS
1674              linker flags for vorbisenc, overriding pkg-config
1675  wavpack_CFLAGS
1676              C compiler flags for wavpack, overriding pkg-config
1677  wavpack_LIBS
1678              linker flags for wavpack, overriding pkg-config
1679  lrdf_CFLAGS C compiler flags for lrdf, overriding pkg-config
1680  lrdf_LIBS   linker flags for lrdf, overriding pkg-config
1681  src_CFLAGS  C compiler flags for src, overriding pkg-config
1682  src_LIBS    linker flags for src, overriding pkg-config
1683  cdio_CFLAGS C compiler flags for cdio, overriding pkg-config
1684  cdio_LIBS   linker flags for cdio, overriding pkg-config
1685  cddb_CFLAGS C compiler flags for cddb, overriding pkg-config
1686  cddb_LIBS   linker flags for cddb, overriding pkg-config
1687  lua_CFLAGS  C compiler flags for lua, overriding pkg-config
1688  lua_LIBS    linker flags for lua, overriding pkg-config
1689
1690Use these variables to override the choices made by `configure' or to help
1691it to find libraries and programs with nonstandard names/locations.
1692
1693Report bugs to <http://aqualung.factorial.hu/mantis>.
1694_ACEOF
1695ac_status=$?
1696fi
1697
1698if test "$ac_init_help" = "recursive"; then
1699  # If there are subdirs, report their specific --help.
1700  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1701    test -d "$ac_dir" ||
1702      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1703      continue
1704    ac_builddir=.
1705
1706case "$ac_dir" in
1707.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1708*)
1709  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1710  # A ".." for each directory in $ac_dir_suffix.
1711  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1712  case $ac_top_builddir_sub in
1713  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1714  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1715  esac ;;
1716esac
1717ac_abs_top_builddir=$ac_pwd
1718ac_abs_builddir=$ac_pwd$ac_dir_suffix
1719# for backward compatibility:
1720ac_top_builddir=$ac_top_build_prefix
1721
1722case $srcdir in
1723  .)  # We are building in place.
1724    ac_srcdir=.
1725    ac_top_srcdir=$ac_top_builddir_sub
1726    ac_abs_top_srcdir=$ac_pwd ;;
1727  [\\/]* | ?:[\\/]* )  # Absolute name.
1728    ac_srcdir=$srcdir$ac_dir_suffix;
1729    ac_top_srcdir=$srcdir
1730    ac_abs_top_srcdir=$srcdir ;;
1731  *) # Relative name.
1732    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1733    ac_top_srcdir=$ac_top_build_prefix$srcdir
1734    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1735esac
1736ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1737
1738    cd "$ac_dir" || { ac_status=$?; continue; }
1739    # Check for guested configure.
1740    if test -f "$ac_srcdir/configure.gnu"; then
1741      echo &&
1742      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1743    elif test -f "$ac_srcdir/configure"; then
1744      echo &&
1745      $SHELL "$ac_srcdir/configure" --help=recursive
1746    else
1747      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1748    fi || ac_status=$?
1749    cd "$ac_pwd" || { ac_status=$?; break; }
1750  done
1751fi
1752
1753test -n "$ac_init_help" && exit $ac_status
1754if $ac_init_version; then
1755  cat <<\_ACEOF
1756aqualung configure 1.0
1757generated by GNU Autoconf 2.69
1758
1759Copyright (C) 2012 Free Software Foundation, Inc.
1760This configure script is free software; the Free Software Foundation
1761gives unlimited permission to copy, distribute and modify it.
1762_ACEOF
1763  exit
1764fi
1765
1766## ------------------------ ##
1767## Autoconf initialization. ##
1768## ------------------------ ##
1769
1770# ac_fn_c_try_compile LINENO
1771# --------------------------
1772# Try to compile conftest.$ac_ext, and return whether this succeeded.
1773ac_fn_c_try_compile ()
1774{
1775  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776  rm -f conftest.$ac_objext
1777  if { { ac_try="$ac_compile"
1778case "(($ac_try" in
1779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780  *) ac_try_echo=$ac_try;;
1781esac
1782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783$as_echo "$ac_try_echo"; } >&5
1784  (eval "$ac_compile") 2>conftest.err
1785  ac_status=$?
1786  if test -s conftest.err; then
1787    grep -v '^ *+' conftest.err >conftest.er1
1788    cat conftest.er1 >&5
1789    mv -f conftest.er1 conftest.err
1790  fi
1791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792  test $ac_status = 0; } && {
1793	 test -z "$ac_c_werror_flag" ||
1794	 test ! -s conftest.err
1795       } && test -s conftest.$ac_objext; then :
1796  ac_retval=0
1797else
1798  $as_echo "$as_me: failed program was:" >&5
1799sed 's/^/| /' conftest.$ac_ext >&5
1800
1801	ac_retval=1
1802fi
1803  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804  as_fn_set_status $ac_retval
1805
1806} # ac_fn_c_try_compile
1807
1808# ac_fn_cxx_try_compile LINENO
1809# ----------------------------
1810# Try to compile conftest.$ac_ext, and return whether this succeeded.
1811ac_fn_cxx_try_compile ()
1812{
1813  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814  rm -f conftest.$ac_objext
1815  if { { ac_try="$ac_compile"
1816case "(($ac_try" in
1817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818  *) ac_try_echo=$ac_try;;
1819esac
1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821$as_echo "$ac_try_echo"; } >&5
1822  (eval "$ac_compile") 2>conftest.err
1823  ac_status=$?
1824  if test -s conftest.err; then
1825    grep -v '^ *+' conftest.err >conftest.er1
1826    cat conftest.er1 >&5
1827    mv -f conftest.er1 conftest.err
1828  fi
1829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830  test $ac_status = 0; } && {
1831	 test -z "$ac_cxx_werror_flag" ||
1832	 test ! -s conftest.err
1833       } && test -s conftest.$ac_objext; then :
1834  ac_retval=0
1835else
1836  $as_echo "$as_me: failed program was:" >&5
1837sed 's/^/| /' conftest.$ac_ext >&5
1838
1839	ac_retval=1
1840fi
1841  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842  as_fn_set_status $ac_retval
1843
1844} # ac_fn_cxx_try_compile
1845
1846# ac_fn_c_try_cpp LINENO
1847# ----------------------
1848# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1849ac_fn_c_try_cpp ()
1850{
1851  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852  if { { ac_try="$ac_cpp conftest.$ac_ext"
1853case "(($ac_try" in
1854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855  *) ac_try_echo=$ac_try;;
1856esac
1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858$as_echo "$ac_try_echo"; } >&5
1859  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1860  ac_status=$?
1861  if test -s conftest.err; then
1862    grep -v '^ *+' conftest.err >conftest.er1
1863    cat conftest.er1 >&5
1864    mv -f conftest.er1 conftest.err
1865  fi
1866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867  test $ac_status = 0; } > conftest.i && {
1868	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1869	 test ! -s conftest.err
1870       }; then :
1871  ac_retval=0
1872else
1873  $as_echo "$as_me: failed program was:" >&5
1874sed 's/^/| /' conftest.$ac_ext >&5
1875
1876    ac_retval=1
1877fi
1878  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879  as_fn_set_status $ac_retval
1880
1881} # ac_fn_c_try_cpp
1882
1883# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1884# -------------------------------------------------------
1885# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1886# the include files in INCLUDES and setting the cache variable VAR
1887# accordingly.
1888ac_fn_c_check_header_mongrel ()
1889{
1890  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891  if eval \${$3+:} false; then :
1892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893$as_echo_n "checking for $2... " >&6; }
1894if eval \${$3+:} false; then :
1895  $as_echo_n "(cached) " >&6
1896fi
1897eval ac_res=\$$3
1898	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899$as_echo "$ac_res" >&6; }
1900else
1901  # Is the header compilable?
1902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1903$as_echo_n "checking $2 usability... " >&6; }
1904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905/* end confdefs.h.  */
1906$4
1907#include <$2>
1908_ACEOF
1909if ac_fn_c_try_compile "$LINENO"; then :
1910  ac_header_compiler=yes
1911else
1912  ac_header_compiler=no
1913fi
1914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1916$as_echo "$ac_header_compiler" >&6; }
1917
1918# Is the header present?
1919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1920$as_echo_n "checking $2 presence... " >&6; }
1921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922/* end confdefs.h.  */
1923#include <$2>
1924_ACEOF
1925if ac_fn_c_try_cpp "$LINENO"; then :
1926  ac_header_preproc=yes
1927else
1928  ac_header_preproc=no
1929fi
1930rm -f conftest.err conftest.i conftest.$ac_ext
1931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1932$as_echo "$ac_header_preproc" >&6; }
1933
1934# So?  What about this header?
1935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1936  yes:no: )
1937    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1938$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1939    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1940$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1941    ;;
1942  no:yes:* )
1943    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1944$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1945    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1946$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1947    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1948$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1949    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1950$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1951    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1952$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1953( $as_echo "## -------------------------------------------------- ##
1954## Report this to http://aqualung.factorial.hu/mantis ##
1955## -------------------------------------------------- ##"
1956     ) | sed "s/^/$as_me: WARNING:     /" >&2
1957    ;;
1958esac
1959  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960$as_echo_n "checking for $2... " >&6; }
1961if eval \${$3+:} false; then :
1962  $as_echo_n "(cached) " >&6
1963else
1964  eval "$3=\$ac_header_compiler"
1965fi
1966eval ac_res=\$$3
1967	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968$as_echo "$ac_res" >&6; }
1969fi
1970  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971
1972} # ac_fn_c_check_header_mongrel
1973
1974# ac_fn_c_try_run LINENO
1975# ----------------------
1976# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1977# that executables *can* be run.
1978ac_fn_c_try_run ()
1979{
1980  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981  if { { ac_try="$ac_link"
1982case "(($ac_try" in
1983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984  *) ac_try_echo=$ac_try;;
1985esac
1986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987$as_echo "$ac_try_echo"; } >&5
1988  (eval "$ac_link") 2>&5
1989  ac_status=$?
1990  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1992  { { case "(($ac_try" in
1993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994  *) ac_try_echo=$ac_try;;
1995esac
1996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997$as_echo "$ac_try_echo"; } >&5
1998  (eval "$ac_try") 2>&5
1999  ac_status=$?
2000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001  test $ac_status = 0; }; }; then :
2002  ac_retval=0
2003else
2004  $as_echo "$as_me: program exited with status $ac_status" >&5
2005       $as_echo "$as_me: failed program was:" >&5
2006sed 's/^/| /' conftest.$ac_ext >&5
2007
2008       ac_retval=$ac_status
2009fi
2010  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012  as_fn_set_status $ac_retval
2013
2014} # ac_fn_c_try_run
2015
2016# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2017# -------------------------------------------------------
2018# Tests whether HEADER exists and can be compiled using the include files in
2019# INCLUDES, setting the cache variable VAR accordingly.
2020ac_fn_c_check_header_compile ()
2021{
2022  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024$as_echo_n "checking for $2... " >&6; }
2025if eval \${$3+:} false; then :
2026  $as_echo_n "(cached) " >&6
2027else
2028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029/* end confdefs.h.  */
2030$4
2031#include <$2>
2032_ACEOF
2033if ac_fn_c_try_compile "$LINENO"; then :
2034  eval "$3=yes"
2035else
2036  eval "$3=no"
2037fi
2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039fi
2040eval ac_res=\$$3
2041	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042$as_echo "$ac_res" >&6; }
2043  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044
2045} # ac_fn_c_check_header_compile
2046
2047# ac_fn_c_try_link LINENO
2048# -----------------------
2049# Try to link conftest.$ac_ext, and return whether this succeeded.
2050ac_fn_c_try_link ()
2051{
2052  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053  rm -f conftest.$ac_objext conftest$ac_exeext
2054  if { { ac_try="$ac_link"
2055case "(($ac_try" in
2056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2057  *) ac_try_echo=$ac_try;;
2058esac
2059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2060$as_echo "$ac_try_echo"; } >&5
2061  (eval "$ac_link") 2>conftest.err
2062  ac_status=$?
2063  if test -s conftest.err; then
2064    grep -v '^ *+' conftest.err >conftest.er1
2065    cat conftest.er1 >&5
2066    mv -f conftest.er1 conftest.err
2067  fi
2068  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2069  test $ac_status = 0; } && {
2070	 test -z "$ac_c_werror_flag" ||
2071	 test ! -s conftest.err
2072       } && test -s conftest$ac_exeext && {
2073	 test "$cross_compiling" = yes ||
2074	 test -x conftest$ac_exeext
2075       }; then :
2076  ac_retval=0
2077else
2078  $as_echo "$as_me: failed program was:" >&5
2079sed 's/^/| /' conftest.$ac_ext >&5
2080
2081	ac_retval=1
2082fi
2083  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2084  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2085  # interfere with the next link command; also delete a directory that is
2086  # left behind by Apple's compiler.  We do this before executing the actions.
2087  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2088  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089  as_fn_set_status $ac_retval
2090
2091} # ac_fn_c_try_link
2092
2093# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2094# -------------------------------------------
2095# Tests whether TYPE exists after having included INCLUDES, setting cache
2096# variable VAR accordingly.
2097ac_fn_c_check_type ()
2098{
2099  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2101$as_echo_n "checking for $2... " >&6; }
2102if eval \${$3+:} false; then :
2103  $as_echo_n "(cached) " >&6
2104else
2105  eval "$3=no"
2106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107/* end confdefs.h.  */
2108$4
2109int
2110main ()
2111{
2112if (sizeof ($2))
2113	 return 0;
2114  ;
2115  return 0;
2116}
2117_ACEOF
2118if ac_fn_c_try_compile "$LINENO"; then :
2119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120/* end confdefs.h.  */
2121$4
2122int
2123main ()
2124{
2125if (sizeof (($2)))
2126	    return 0;
2127  ;
2128  return 0;
2129}
2130_ACEOF
2131if ac_fn_c_try_compile "$LINENO"; then :
2132
2133else
2134  eval "$3=yes"
2135fi
2136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137fi
2138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139fi
2140eval ac_res=\$$3
2141	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142$as_echo "$ac_res" >&6; }
2143  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144
2145} # ac_fn_c_check_type
2146
2147# ac_fn_c_check_func LINENO FUNC VAR
2148# ----------------------------------
2149# Tests whether FUNC exists, setting the cache variable VAR accordingly
2150ac_fn_c_check_func ()
2151{
2152  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2154$as_echo_n "checking for $2... " >&6; }
2155if eval \${$3+:} false; then :
2156  $as_echo_n "(cached) " >&6
2157else
2158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h.  */
2160/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2161   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2162#define $2 innocuous_$2
2163
2164/* System header to define __stub macros and hopefully few prototypes,
2165    which can conflict with char $2 (); below.
2166    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2167    <limits.h> exists even on freestanding compilers.  */
2168
2169#ifdef __STDC__
2170# include <limits.h>
2171#else
2172# include <assert.h>
2173#endif
2174
2175#undef $2
2176
2177/* Override any GCC internal prototype to avoid an error.
2178   Use char because int might match the return type of a GCC
2179   builtin and then its argument prototype would still apply.  */
2180#ifdef __cplusplus
2181extern "C"
2182#endif
2183char $2 ();
2184/* The GNU C library defines this for functions which it implements
2185    to always fail with ENOSYS.  Some functions are actually named
2186    something starting with __ and the normal name is an alias.  */
2187#if defined __stub_$2 || defined __stub___$2
2188choke me
2189#endif
2190
2191int
2192main ()
2193{
2194return $2 ();
2195  ;
2196  return 0;
2197}
2198_ACEOF
2199if ac_fn_c_try_link "$LINENO"; then :
2200  eval "$3=yes"
2201else
2202  eval "$3=no"
2203fi
2204rm -f core conftest.err conftest.$ac_objext \
2205    conftest$ac_exeext conftest.$ac_ext
2206fi
2207eval ac_res=\$$3
2208	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2209$as_echo "$ac_res" >&6; }
2210  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2211
2212} # ac_fn_c_check_func
2213cat >config.log <<_ACEOF
2214This file contains any messages produced by compilers while
2215running configure, to aid debugging if configure makes a mistake.
2216
2217It was created by aqualung $as_me 1.0, which was
2218generated by GNU Autoconf 2.69.  Invocation command line was
2219
2220  $ $0 $@
2221
2222_ACEOF
2223exec 5>>config.log
2224{
2225cat <<_ASUNAME
2226## --------- ##
2227## Platform. ##
2228## --------- ##
2229
2230hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2231uname -m = `(uname -m) 2>/dev/null || echo unknown`
2232uname -r = `(uname -r) 2>/dev/null || echo unknown`
2233uname -s = `(uname -s) 2>/dev/null || echo unknown`
2234uname -v = `(uname -v) 2>/dev/null || echo unknown`
2235
2236/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2237/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2238
2239/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2240/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2241/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2242/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2243/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2244/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2245/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2246
2247_ASUNAME
2248
2249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250for as_dir in $PATH
2251do
2252  IFS=$as_save_IFS
2253  test -z "$as_dir" && as_dir=.
2254    $as_echo "PATH: $as_dir"
2255  done
2256IFS=$as_save_IFS
2257
2258} >&5
2259
2260cat >&5 <<_ACEOF
2261
2262
2263## ----------- ##
2264## Core tests. ##
2265## ----------- ##
2266
2267_ACEOF
2268
2269
2270# Keep a trace of the command line.
2271# Strip out --no-create and --no-recursion so they do not pile up.
2272# Strip out --silent because we don't want to record it for future runs.
2273# Also quote any args containing shell meta-characters.
2274# Make two passes to allow for proper duplicate-argument suppression.
2275ac_configure_args=
2276ac_configure_args0=
2277ac_configure_args1=
2278ac_must_keep_next=false
2279for ac_pass in 1 2
2280do
2281  for ac_arg
2282  do
2283    case $ac_arg in
2284    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2285    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2286    | -silent | --silent | --silen | --sile | --sil)
2287      continue ;;
2288    *\'*)
2289      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2290    esac
2291    case $ac_pass in
2292    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2293    2)
2294      as_fn_append ac_configure_args1 " '$ac_arg'"
2295      if test $ac_must_keep_next = true; then
2296	ac_must_keep_next=false # Got value, back to normal.
2297      else
2298	case $ac_arg in
2299	  *=* | --config-cache | -C | -disable-* | --disable-* \
2300	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2301	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2302	  | -with-* | --with-* | -without-* | --without-* | --x)
2303	    case "$ac_configure_args0 " in
2304	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2305	    esac
2306	    ;;
2307	  -* ) ac_must_keep_next=true ;;
2308	esac
2309      fi
2310      as_fn_append ac_configure_args " '$ac_arg'"
2311      ;;
2312    esac
2313  done
2314done
2315{ ac_configure_args0=; unset ac_configure_args0;}
2316{ ac_configure_args1=; unset ac_configure_args1;}
2317
2318# When interrupted or exit'd, cleanup temporary files, and complete
2319# config.log.  We remove comments because anyway the quotes in there
2320# would cause problems or look ugly.
2321# WARNING: Use '\'' to represent an apostrophe within the trap.
2322# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2323trap 'exit_status=$?
2324  # Save into config.log some information that might help in debugging.
2325  {
2326    echo
2327
2328    $as_echo "## ---------------- ##
2329## Cache variables. ##
2330## ---------------- ##"
2331    echo
2332    # The following way of writing the cache mishandles newlines in values,
2333(
2334  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2335    eval ac_val=\$$ac_var
2336    case $ac_val in #(
2337    *${as_nl}*)
2338      case $ac_var in #(
2339      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2340$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2341      esac
2342      case $ac_var in #(
2343      _ | IFS | as_nl) ;; #(
2344      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2345      *) { eval $ac_var=; unset $ac_var;} ;;
2346      esac ;;
2347    esac
2348  done
2349  (set) 2>&1 |
2350    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2351    *${as_nl}ac_space=\ *)
2352      sed -n \
2353	"s/'\''/'\''\\\\'\'''\''/g;
2354	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2355      ;; #(
2356    *)
2357      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2358      ;;
2359    esac |
2360    sort
2361)
2362    echo
2363
2364    $as_echo "## ----------------- ##
2365## Output variables. ##
2366## ----------------- ##"
2367    echo
2368    for ac_var in $ac_subst_vars
2369    do
2370      eval ac_val=\$$ac_var
2371      case $ac_val in
2372      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2373      esac
2374      $as_echo "$ac_var='\''$ac_val'\''"
2375    done | sort
2376    echo
2377
2378    if test -n "$ac_subst_files"; then
2379      $as_echo "## ------------------- ##
2380## File substitutions. ##
2381## ------------------- ##"
2382      echo
2383      for ac_var in $ac_subst_files
2384      do
2385	eval ac_val=\$$ac_var
2386	case $ac_val in
2387	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2388	esac
2389	$as_echo "$ac_var='\''$ac_val'\''"
2390      done | sort
2391      echo
2392    fi
2393
2394    if test -s confdefs.h; then
2395      $as_echo "## ----------- ##
2396## confdefs.h. ##
2397## ----------- ##"
2398      echo
2399      cat confdefs.h
2400      echo
2401    fi
2402    test "$ac_signal" != 0 &&
2403      $as_echo "$as_me: caught signal $ac_signal"
2404    $as_echo "$as_me: exit $exit_status"
2405  } >&5
2406  rm -f core *.core core.conftest.* &&
2407    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2408    exit $exit_status
2409' 0
2410for ac_signal in 1 2 13 15; do
2411  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2412done
2413ac_signal=0
2414
2415# confdefs.h avoids OS command line length limits that DEFS can exceed.
2416rm -f -r conftest* confdefs.h
2417
2418$as_echo "/* confdefs.h */" > confdefs.h
2419
2420# Predefined preprocessor variables.
2421
2422cat >>confdefs.h <<_ACEOF
2423#define PACKAGE_NAME "$PACKAGE_NAME"
2424_ACEOF
2425
2426cat >>confdefs.h <<_ACEOF
2427#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2428_ACEOF
2429
2430cat >>confdefs.h <<_ACEOF
2431#define PACKAGE_VERSION "$PACKAGE_VERSION"
2432_ACEOF
2433
2434cat >>confdefs.h <<_ACEOF
2435#define PACKAGE_STRING "$PACKAGE_STRING"
2436_ACEOF
2437
2438cat >>confdefs.h <<_ACEOF
2439#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2440_ACEOF
2441
2442cat >>confdefs.h <<_ACEOF
2443#define PACKAGE_URL "$PACKAGE_URL"
2444_ACEOF
2445
2446
2447# Let the site file select an alternate cache file if it wants to.
2448# Prefer an explicitly selected file to automatically selected ones.
2449ac_site_file1=NONE
2450ac_site_file2=NONE
2451if test -n "$CONFIG_SITE"; then
2452  # We do not want a PATH search for config.site.
2453  case $CONFIG_SITE in #((
2454    -*)  ac_site_file1=./$CONFIG_SITE;;
2455    */*) ac_site_file1=$CONFIG_SITE;;
2456    *)   ac_site_file1=./$CONFIG_SITE;;
2457  esac
2458elif test "x$prefix" != xNONE; then
2459  ac_site_file1=$prefix/share/config.site
2460  ac_site_file2=$prefix/etc/config.site
2461else
2462  ac_site_file1=$ac_default_prefix/share/config.site
2463  ac_site_file2=$ac_default_prefix/etc/config.site
2464fi
2465for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2466do
2467  test "x$ac_site_file" = xNONE && continue
2468  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2469    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2470$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2471    sed 's/^/| /' "$ac_site_file" >&5
2472    . "$ac_site_file" \
2473      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2475as_fn_error $? "failed to load site script $ac_site_file
2476See \`config.log' for more details" "$LINENO" 5; }
2477  fi
2478done
2479
2480if test -r "$cache_file"; then
2481  # Some versions of bash will fail to source /dev/null (special files
2482  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2483  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2484    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2485$as_echo "$as_me: loading cache $cache_file" >&6;}
2486    case $cache_file in
2487      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2488      *)                      . "./$cache_file";;
2489    esac
2490  fi
2491else
2492  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2493$as_echo "$as_me: creating cache $cache_file" >&6;}
2494  >$cache_file
2495fi
2496
2497gt_needs="$gt_needs "
2498# Check that the precious variables saved in the cache have kept the same
2499# value.
2500ac_cache_corrupted=false
2501for ac_var in $ac_precious_vars; do
2502  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2503  eval ac_new_set=\$ac_env_${ac_var}_set
2504  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2505  eval ac_new_val=\$ac_env_${ac_var}_value
2506  case $ac_old_set,$ac_new_set in
2507    set,)
2508      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2509$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2510      ac_cache_corrupted=: ;;
2511    ,set)
2512      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2513$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2514      ac_cache_corrupted=: ;;
2515    ,);;
2516    *)
2517      if test "x$ac_old_val" != "x$ac_new_val"; then
2518	# differences in whitespace do not lead to failure.
2519	ac_old_val_w=`echo x $ac_old_val`
2520	ac_new_val_w=`echo x $ac_new_val`
2521	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2522	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2523$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2524	  ac_cache_corrupted=:
2525	else
2526	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2527$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2528	  eval $ac_var=\$ac_old_val
2529	fi
2530	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2531$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2532	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2533$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2534      fi;;
2535  esac
2536  # Pass precious variables to config.status.
2537  if test "$ac_new_set" = set; then
2538    case $ac_new_val in
2539    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2540    *) ac_arg=$ac_var=$ac_new_val ;;
2541    esac
2542    case " $ac_configure_args " in
2543      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2544      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2545    esac
2546  fi
2547done
2548if $ac_cache_corrupted; then
2549  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2551  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2552$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2553  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2554fi
2555## -------------------- ##
2556## Main body of script. ##
2557## -------------------- ##
2558
2559ac_ext=c
2560ac_cpp='$CPP $CPPFLAGS'
2561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2563ac_compiler_gnu=$ac_cv_c_compiler_gnu
2564
2565
2566am__api_version='1.14'
2567
2568ac_aux_dir=
2569for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2570  if test -f "$ac_dir/install-sh"; then
2571    ac_aux_dir=$ac_dir
2572    ac_install_sh="$ac_aux_dir/install-sh -c"
2573    break
2574  elif test -f "$ac_dir/install.sh"; then
2575    ac_aux_dir=$ac_dir
2576    ac_install_sh="$ac_aux_dir/install.sh -c"
2577    break
2578  elif test -f "$ac_dir/shtool"; then
2579    ac_aux_dir=$ac_dir
2580    ac_install_sh="$ac_aux_dir/shtool install -c"
2581    break
2582  fi
2583done
2584if test -z "$ac_aux_dir"; then
2585  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2586fi
2587
2588# These three variables are undocumented and unsupported,
2589# and are intended to be withdrawn in a future Autoconf release.
2590# They can cause serious problems if a builder's source tree is in a directory
2591# whose full name contains unusual characters.
2592ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2593ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2594ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2595
2596
2597# Find a good install program.  We prefer a C program (faster),
2598# so one script is as good as another.  But avoid the broken or
2599# incompatible versions:
2600# SysV /etc/install, /usr/sbin/install
2601# SunOS /usr/etc/install
2602# IRIX /sbin/install
2603# AIX /bin/install
2604# AmigaOS /C/install, which installs bootblocks on floppy discs
2605# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2606# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2607# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2608# OS/2's system install, which has a completely different semantic
2609# ./install, which can be erroneously created by make from ./install.sh.
2610# Reject install programs that cannot install multiple files.
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2612$as_echo_n "checking for a BSD-compatible install... " >&6; }
2613if test -z "$INSTALL"; then
2614if ${ac_cv_path_install+:} false; then :
2615  $as_echo_n "(cached) " >&6
2616else
2617  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH
2619do
2620  IFS=$as_save_IFS
2621  test -z "$as_dir" && as_dir=.
2622    # Account for people who put trailing slashes in PATH elements.
2623case $as_dir/ in #((
2624  ./ | .// | /[cC]/* | \
2625  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2626  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2627  /usr/ucb/* ) ;;
2628  *)
2629    # OSF1 and SCO ODT 3.0 have their own names for install.
2630    # Don't use installbsd from OSF since it installs stuff as root
2631    # by default.
2632    for ac_prog in ginstall scoinst install; do
2633      for ac_exec_ext in '' $ac_executable_extensions; do
2634	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2635	  if test $ac_prog = install &&
2636	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2637	    # AIX install.  It has an incompatible calling convention.
2638	    :
2639	  elif test $ac_prog = install &&
2640	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2641	    # program-specific install script used by HP pwplus--don't use.
2642	    :
2643	  else
2644	    rm -rf conftest.one conftest.two conftest.dir
2645	    echo one > conftest.one
2646	    echo two > conftest.two
2647	    mkdir conftest.dir
2648	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2649	      test -s conftest.one && test -s conftest.two &&
2650	      test -s conftest.dir/conftest.one &&
2651	      test -s conftest.dir/conftest.two
2652	    then
2653	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2654	      break 3
2655	    fi
2656	  fi
2657	fi
2658      done
2659    done
2660    ;;
2661esac
2662
2663  done
2664IFS=$as_save_IFS
2665
2666rm -rf conftest.one conftest.two conftest.dir
2667
2668fi
2669  if test "${ac_cv_path_install+set}" = set; then
2670    INSTALL=$ac_cv_path_install
2671  else
2672    # As a last resort, use the slow shell script.  Don't cache a
2673    # value for INSTALL within a source directory, because that will
2674    # break other packages using the cache if that directory is
2675    # removed, or if the value is a relative name.
2676    INSTALL=$ac_install_sh
2677  fi
2678fi
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2680$as_echo "$INSTALL" >&6; }
2681
2682# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2683# It thinks the first close brace ends the variable substitution.
2684test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2685
2686test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2687
2688test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2689
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2691$as_echo_n "checking whether build environment is sane... " >&6; }
2692# Reject unsafe characters in $srcdir or the absolute working directory
2693# name.  Accept space and tab only in the latter.
2694am_lf='
2695'
2696case `pwd` in
2697  *[\\\"\#\$\&\'\`$am_lf]*)
2698    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2699esac
2700case $srcdir in
2701  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2702    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2703esac
2704
2705# Do 'set' in a subshell so we don't clobber the current shell's
2706# arguments.  Must try -L first in case configure is actually a
2707# symlink; some systems play weird games with the mod time of symlinks
2708# (eg FreeBSD returns the mod time of the symlink's containing
2709# directory).
2710if (
2711   am_has_slept=no
2712   for am_try in 1 2; do
2713     echo "timestamp, slept: $am_has_slept" > conftest.file
2714     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2715     if test "$*" = "X"; then
2716	# -L didn't work.
2717	set X `ls -t "$srcdir/configure" conftest.file`
2718     fi
2719     if test "$*" != "X $srcdir/configure conftest.file" \
2720	&& test "$*" != "X conftest.file $srcdir/configure"; then
2721
2722	# If neither matched, then we have a broken ls.  This can happen
2723	# if, for instance, CONFIG_SHELL is bash and it inherits a
2724	# broken ls alias from the environment.  This has actually
2725	# happened.  Such a system could not be considered "sane".
2726	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2727  alias in your environment" "$LINENO" 5
2728     fi
2729     if test "$2" = conftest.file || test $am_try -eq 2; then
2730       break
2731     fi
2732     # Just in case.
2733     sleep 1
2734     am_has_slept=yes
2735   done
2736   test "$2" = conftest.file
2737   )
2738then
2739   # Ok.
2740   :
2741else
2742   as_fn_error $? "newly created file is older than distributed files!
2743Check your system clock" "$LINENO" 5
2744fi
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2746$as_echo "yes" >&6; }
2747# If we didn't sleep, we still need to ensure time stamps of config.status and
2748# generated files are strictly newer.
2749am_sleep_pid=
2750if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2751  ( sleep 1 ) &
2752  am_sleep_pid=$!
2753fi
2754
2755rm -f conftest.file
2756
2757test "$program_prefix" != NONE &&
2758  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2759# Use a double $ so make ignores it.
2760test "$program_suffix" != NONE &&
2761  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2762# Double any \ or $.
2763# By default was `s,x,x', remove it if useless.
2764ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2765program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2766
2767# Expand $ac_aux_dir to an absolute path.
2768am_aux_dir=`cd "$ac_aux_dir" && pwd`
2769
2770if test x"${MISSING+set}" != xset; then
2771  case $am_aux_dir in
2772  *\ * | *\	*)
2773    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2774  *)
2775    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2776  esac
2777fi
2778# Use eval to expand $SHELL
2779if eval "$MISSING --is-lightweight"; then
2780  am_missing_run="$MISSING "
2781else
2782  am_missing_run=
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2784$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2785fi
2786
2787if test x"${install_sh}" != xset; then
2788  case $am_aux_dir in
2789  *\ * | *\	*)
2790    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2791  *)
2792    install_sh="\${SHELL} $am_aux_dir/install-sh"
2793  esac
2794fi
2795
2796# Installed binaries are usually stripped using 'strip' when the user
2797# run "make install-strip".  However 'strip' might not be the right
2798# tool to use in cross-compilation environments, therefore Automake
2799# will honor the 'STRIP' environment variable to overrule this program.
2800if test "$cross_compiling" != no; then
2801  if test -n "$ac_tool_prefix"; then
2802  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2803set dummy ${ac_tool_prefix}strip; ac_word=$2
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805$as_echo_n "checking for $ac_word... " >&6; }
2806if ${ac_cv_prog_STRIP+:} false; then :
2807  $as_echo_n "(cached) " >&6
2808else
2809  if test -n "$STRIP"; then
2810  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2811else
2812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813for as_dir in $PATH
2814do
2815  IFS=$as_save_IFS
2816  test -z "$as_dir" && as_dir=.
2817    for ac_exec_ext in '' $ac_executable_extensions; do
2818  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2819    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821    break 2
2822  fi
2823done
2824  done
2825IFS=$as_save_IFS
2826
2827fi
2828fi
2829STRIP=$ac_cv_prog_STRIP
2830if test -n "$STRIP"; then
2831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2832$as_echo "$STRIP" >&6; }
2833else
2834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835$as_echo "no" >&6; }
2836fi
2837
2838
2839fi
2840if test -z "$ac_cv_prog_STRIP"; then
2841  ac_ct_STRIP=$STRIP
2842  # Extract the first word of "strip", so it can be a program name with args.
2843set dummy strip; ac_word=$2
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845$as_echo_n "checking for $ac_word... " >&6; }
2846if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2847  $as_echo_n "(cached) " >&6
2848else
2849  if test -n "$ac_ct_STRIP"; then
2850  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855  IFS=$as_save_IFS
2856  test -z "$as_dir" && as_dir=.
2857    for ac_exec_ext in '' $ac_executable_extensions; do
2858  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859    ac_cv_prog_ac_ct_STRIP="strip"
2860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861    break 2
2862  fi
2863done
2864  done
2865IFS=$as_save_IFS
2866
2867fi
2868fi
2869ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2870if test -n "$ac_ct_STRIP"; then
2871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2872$as_echo "$ac_ct_STRIP" >&6; }
2873else
2874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875$as_echo "no" >&6; }
2876fi
2877
2878  if test "x$ac_ct_STRIP" = x; then
2879    STRIP=":"
2880  else
2881    case $cross_compiling:$ac_tool_warned in
2882yes:)
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2885ac_tool_warned=yes ;;
2886esac
2887    STRIP=$ac_ct_STRIP
2888  fi
2889else
2890  STRIP="$ac_cv_prog_STRIP"
2891fi
2892
2893fi
2894INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2895
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2897$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2898if test -z "$MKDIR_P"; then
2899  if ${ac_cv_path_mkdir+:} false; then :
2900  $as_echo_n "(cached) " >&6
2901else
2902  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2904do
2905  IFS=$as_save_IFS
2906  test -z "$as_dir" && as_dir=.
2907    for ac_prog in mkdir gmkdir; do
2908	 for ac_exec_ext in '' $ac_executable_extensions; do
2909	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2910	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2911	     'mkdir (GNU coreutils) '* | \
2912	     'mkdir (coreutils) '* | \
2913	     'mkdir (fileutils) '4.1*)
2914	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2915	       break 3;;
2916	   esac
2917	 done
2918       done
2919  done
2920IFS=$as_save_IFS
2921
2922fi
2923
2924  test -d ./--version && rmdir ./--version
2925  if test "${ac_cv_path_mkdir+set}" = set; then
2926    MKDIR_P="$ac_cv_path_mkdir -p"
2927  else
2928    # As a last resort, use the slow shell script.  Don't cache a
2929    # value for MKDIR_P within a source directory, because that will
2930    # break other packages using the cache if that directory is
2931    # removed, or if the value is a relative name.
2932    MKDIR_P="$ac_install_sh -d"
2933  fi
2934fi
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2936$as_echo "$MKDIR_P" >&6; }
2937
2938for ac_prog in gawk mawk nawk awk
2939do
2940  # Extract the first word of "$ac_prog", so it can be a program name with args.
2941set dummy $ac_prog; ac_word=$2
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943$as_echo_n "checking for $ac_word... " >&6; }
2944if ${ac_cv_prog_AWK+:} false; then :
2945  $as_echo_n "(cached) " >&6
2946else
2947  if test -n "$AWK"; then
2948  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2949else
2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951for as_dir in $PATH
2952do
2953  IFS=$as_save_IFS
2954  test -z "$as_dir" && as_dir=.
2955    for ac_exec_ext in '' $ac_executable_extensions; do
2956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957    ac_cv_prog_AWK="$ac_prog"
2958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959    break 2
2960  fi
2961done
2962  done
2963IFS=$as_save_IFS
2964
2965fi
2966fi
2967AWK=$ac_cv_prog_AWK
2968if test -n "$AWK"; then
2969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2970$as_echo "$AWK" >&6; }
2971else
2972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973$as_echo "no" >&6; }
2974fi
2975
2976
2977  test -n "$AWK" && break
2978done
2979
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2981$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2982set x ${MAKE-make}
2983ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2984if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2985  $as_echo_n "(cached) " >&6
2986else
2987  cat >conftest.make <<\_ACEOF
2988SHELL = /bin/sh
2989all:
2990	@echo '@@@%%%=$(MAKE)=@@@%%%'
2991_ACEOF
2992# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2993case `${MAKE-make} -f conftest.make 2>/dev/null` in
2994  *@@@%%%=?*=@@@%%%*)
2995    eval ac_cv_prog_make_${ac_make}_set=yes;;
2996  *)
2997    eval ac_cv_prog_make_${ac_make}_set=no;;
2998esac
2999rm -f conftest.make
3000fi
3001if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3003$as_echo "yes" >&6; }
3004  SET_MAKE=
3005else
3006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007$as_echo "no" >&6; }
3008  SET_MAKE="MAKE=${MAKE-make}"
3009fi
3010
3011rm -rf .tst 2>/dev/null
3012mkdir .tst 2>/dev/null
3013if test -d .tst; then
3014  am__leading_dot=.
3015else
3016  am__leading_dot=_
3017fi
3018rmdir .tst 2>/dev/null
3019
3020# Check whether --enable-silent-rules was given.
3021if test "${enable_silent_rules+set}" = set; then :
3022  enableval=$enable_silent_rules;
3023fi
3024
3025case $enable_silent_rules in # (((
3026  yes) AM_DEFAULT_VERBOSITY=0;;
3027   no) AM_DEFAULT_VERBOSITY=1;;
3028    *) AM_DEFAULT_VERBOSITY=1;;
3029esac
3030am_make=${MAKE-make}
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3032$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3033if ${am_cv_make_support_nested_variables+:} false; then :
3034  $as_echo_n "(cached) " >&6
3035else
3036  if $as_echo 'TRUE=$(BAR$(V))
3037BAR0=false
3038BAR1=true
3039V=1
3040am__doit:
3041	@$(TRUE)
3042.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3043  am_cv_make_support_nested_variables=yes
3044else
3045  am_cv_make_support_nested_variables=no
3046fi
3047fi
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3049$as_echo "$am_cv_make_support_nested_variables" >&6; }
3050if test $am_cv_make_support_nested_variables = yes; then
3051    AM_V='$(V)'
3052  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3053else
3054  AM_V=$AM_DEFAULT_VERBOSITY
3055  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3056fi
3057AM_BACKSLASH='\'
3058
3059if test "`cd $srcdir && pwd`" != "`pwd`"; then
3060  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3061  # is not polluted with repeated "-I."
3062  am__isrc=' -I$(srcdir)'
3063  # test to see if srcdir already configured
3064  if test -f $srcdir/config.status; then
3065    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3066  fi
3067fi
3068
3069# test whether we have cygpath
3070if test -z "$CYGPATH_W"; then
3071  if (cygpath --version) >/dev/null 2>/dev/null; then
3072    CYGPATH_W='cygpath -w'
3073  else
3074    CYGPATH_W=echo
3075  fi
3076fi
3077
3078
3079# Define the identity of the package.
3080 PACKAGE='aqualung'
3081 VERSION='1.0'
3082
3083
3084cat >>confdefs.h <<_ACEOF
3085#define PACKAGE "$PACKAGE"
3086_ACEOF
3087
3088
3089cat >>confdefs.h <<_ACEOF
3090#define VERSION "$VERSION"
3091_ACEOF
3092
3093# Some tools Automake needs.
3094
3095ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3096
3097
3098AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3099
3100
3101AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3102
3103
3104AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3105
3106
3107MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3108
3109# For better backward compatibility.  To be removed once Automake 1.9.x
3110# dies out for good.  For more background, see:
3111# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3112# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3113mkdir_p='$(MKDIR_P)'
3114
3115# We need awk for the "check" target.  The system "awk" is bad on
3116# some platforms.
3117# Always define AMTAR for backward compatibility.  Yes, it's still used
3118# in the wild :-(  We should find a proper way to deprecate it ...
3119AMTAR='$${TAR-tar}'
3120
3121
3122# We'll loop over all known methods to create a tar archive until one works.
3123_am_tools='gnutar  pax cpio none'
3124
3125am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3126
3127
3128
3129
3130
3131
3132# POSIX will say in a future version that running "rm -f" with no argument
3133# is OK; and we want to be able to make that assumption in our Makefile
3134# recipes.  So use an aggressive probe to check that the usage we want is
3135# actually supported "in the wild" to an acceptable degree.
3136# See automake bug#10828.
3137# To make any issue more visible, cause the running configure to be aborted
3138# by default if the 'rm' program in use doesn't match our expectations; the
3139# user can still override this though.
3140if rm -f && rm -fr && rm -rf; then : OK; else
3141  cat >&2 <<'END'
3142Oops!
3143
3144Your 'rm' program seems unable to run without file operands specified
3145on the command line, even when the '-f' option is present.  This is contrary
3146to the behaviour of most rm programs out there, and not conforming with
3147the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3148
3149Please tell bug-automake@gnu.org about your system, including the value
3150of your $PATH and any error possibly output before this message.  This
3151can help us improve future automake versions.
3152
3153END
3154  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3155    echo 'Configuration will proceed anyway, since you have set the' >&2
3156    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3157    echo >&2
3158  else
3159    cat >&2 <<'END'
3160Aborting the configuration process, to ensure you take notice of the issue.
3161
3162You can download and install GNU coreutils to get an 'rm' implementation
3163that behaves properly: <http://www.gnu.org/software/coreutils/>.
3164
3165If you want to complete the configuration process using your problematic
3166'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3167to "yes", and re-run configure.
3168
3169END
3170    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3171  fi
3172fi
3173
3174
3175ac_config_headers="$ac_config_headers config.h"
3176
3177ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in skin/Makefile skin/dark/Makefile skin/default/Makefile skin/metal/Makefile skin/ocean/Makefile skin/plain/Makefile skin/woody/Makefile skin/no_skin/Makefile src/Makefile src/decoder/Makefile src/encoder/Makefile src/img/Makefile"
3178
3179# Make sure we can run config.sub.
3180$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3181  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3182
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3184$as_echo_n "checking build system type... " >&6; }
3185if ${ac_cv_build+:} false; then :
3186  $as_echo_n "(cached) " >&6
3187else
3188  ac_build_alias=$build_alias
3189test "x$ac_build_alias" = x &&
3190  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3191test "x$ac_build_alias" = x &&
3192  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3193ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3194  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3195
3196fi
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3198$as_echo "$ac_cv_build" >&6; }
3199case $ac_cv_build in
3200*-*-*) ;;
3201*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3202esac
3203build=$ac_cv_build
3204ac_save_IFS=$IFS; IFS='-'
3205set x $ac_cv_build
3206shift
3207build_cpu=$1
3208build_vendor=$2
3209shift; shift
3210# Remember, the first character of IFS is used to create $*,
3211# except with old shells:
3212build_os=$*
3213IFS=$ac_save_IFS
3214case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3215
3216
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3218$as_echo_n "checking host system type... " >&6; }
3219if ${ac_cv_host+:} false; then :
3220  $as_echo_n "(cached) " >&6
3221else
3222  if test "x$host_alias" = x; then
3223  ac_cv_host=$ac_cv_build
3224else
3225  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3226    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3227fi
3228
3229fi
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3231$as_echo "$ac_cv_host" >&6; }
3232case $ac_cv_host in
3233*-*-*) ;;
3234*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3235esac
3236host=$ac_cv_host
3237ac_save_IFS=$IFS; IFS='-'
3238set x $ac_cv_host
3239shift
3240host_cpu=$1
3241host_vendor=$2
3242shift; shift
3243# Remember, the first character of IFS is used to create $*,
3244# except with old shells:
3245host_os=$*
3246IFS=$ac_save_IFS
3247case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3248
3249
3250
3251
3252# Checks for programs.
3253ac_ext=c
3254ac_cpp='$CPP $CPPFLAGS'
3255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257ac_compiler_gnu=$ac_cv_c_compiler_gnu
3258if test -n "$ac_tool_prefix"; then
3259  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3260set dummy ${ac_tool_prefix}gcc; ac_word=$2
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262$as_echo_n "checking for $ac_word... " >&6; }
3263if ${ac_cv_prog_CC+:} false; then :
3264  $as_echo_n "(cached) " >&6
3265else
3266  if test -n "$CC"; then
3267  ac_cv_prog_CC="$CC" # Let the user override the test.
3268else
3269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270for as_dir in $PATH
3271do
3272  IFS=$as_save_IFS
3273  test -z "$as_dir" && as_dir=.
3274    for ac_exec_ext in '' $ac_executable_extensions; do
3275  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3276    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278    break 2
3279  fi
3280done
3281  done
3282IFS=$as_save_IFS
3283
3284fi
3285fi
3286CC=$ac_cv_prog_CC
3287if test -n "$CC"; then
3288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3289$as_echo "$CC" >&6; }
3290else
3291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292$as_echo "no" >&6; }
3293fi
3294
3295
3296fi
3297if test -z "$ac_cv_prog_CC"; then
3298  ac_ct_CC=$CC
3299  # Extract the first word of "gcc", so it can be a program name with args.
3300set dummy gcc; ac_word=$2
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302$as_echo_n "checking for $ac_word... " >&6; }
3303if ${ac_cv_prog_ac_ct_CC+:} false; then :
3304  $as_echo_n "(cached) " >&6
3305else
3306  if test -n "$ac_ct_CC"; then
3307  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3308else
3309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310for as_dir in $PATH
3311do
3312  IFS=$as_save_IFS
3313  test -z "$as_dir" && as_dir=.
3314    for ac_exec_ext in '' $ac_executable_extensions; do
3315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3316    ac_cv_prog_ac_ct_CC="gcc"
3317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318    break 2
3319  fi
3320done
3321  done
3322IFS=$as_save_IFS
3323
3324fi
3325fi
3326ac_ct_CC=$ac_cv_prog_ac_ct_CC
3327if test -n "$ac_ct_CC"; then
3328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3329$as_echo "$ac_ct_CC" >&6; }
3330else
3331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332$as_echo "no" >&6; }
3333fi
3334
3335  if test "x$ac_ct_CC" = x; then
3336    CC=""
3337  else
3338    case $cross_compiling:$ac_tool_warned in
3339yes:)
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3342ac_tool_warned=yes ;;
3343esac
3344    CC=$ac_ct_CC
3345  fi
3346else
3347  CC="$ac_cv_prog_CC"
3348fi
3349
3350if test -z "$CC"; then
3351          if test -n "$ac_tool_prefix"; then
3352    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3353set dummy ${ac_tool_prefix}cc; ac_word=$2
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355$as_echo_n "checking for $ac_word... " >&6; }
3356if ${ac_cv_prog_CC+:} false; then :
3357  $as_echo_n "(cached) " >&6
3358else
3359  if test -n "$CC"; then
3360  ac_cv_prog_CC="$CC" # Let the user override the test.
3361else
3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH
3364do
3365  IFS=$as_save_IFS
3366  test -z "$as_dir" && as_dir=.
3367    for ac_exec_ext in '' $ac_executable_extensions; do
3368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369    ac_cv_prog_CC="${ac_tool_prefix}cc"
3370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371    break 2
3372  fi
3373done
3374  done
3375IFS=$as_save_IFS
3376
3377fi
3378fi
3379CC=$ac_cv_prog_CC
3380if test -n "$CC"; then
3381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3382$as_echo "$CC" >&6; }
3383else
3384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385$as_echo "no" >&6; }
3386fi
3387
3388
3389  fi
3390fi
3391if test -z "$CC"; then
3392  # Extract the first word of "cc", so it can be a program name with args.
3393set dummy cc; ac_word=$2
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395$as_echo_n "checking for $ac_word... " >&6; }
3396if ${ac_cv_prog_CC+:} false; then :
3397  $as_echo_n "(cached) " >&6
3398else
3399  if test -n "$CC"; then
3400  ac_cv_prog_CC="$CC" # Let the user override the test.
3401else
3402  ac_prog_rejected=no
3403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404for as_dir in $PATH
3405do
3406  IFS=$as_save_IFS
3407  test -z "$as_dir" && as_dir=.
3408    for ac_exec_ext in '' $ac_executable_extensions; do
3409  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3411       ac_prog_rejected=yes
3412       continue
3413     fi
3414    ac_cv_prog_CC="cc"
3415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416    break 2
3417  fi
3418done
3419  done
3420IFS=$as_save_IFS
3421
3422if test $ac_prog_rejected = yes; then
3423  # We found a bogon in the path, so make sure we never use it.
3424  set dummy $ac_cv_prog_CC
3425  shift
3426  if test $# != 0; then
3427    # We chose a different compiler from the bogus one.
3428    # However, it has the same basename, so the bogon will be chosen
3429    # first if we set CC to just the basename; use the full file name.
3430    shift
3431    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3432  fi
3433fi
3434fi
3435fi
3436CC=$ac_cv_prog_CC
3437if test -n "$CC"; then
3438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3439$as_echo "$CC" >&6; }
3440else
3441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442$as_echo "no" >&6; }
3443fi
3444
3445
3446fi
3447if test -z "$CC"; then
3448  if test -n "$ac_tool_prefix"; then
3449  for ac_prog in cl.exe
3450  do
3451    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3452set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454$as_echo_n "checking for $ac_word... " >&6; }
3455if ${ac_cv_prog_CC+:} false; then :
3456  $as_echo_n "(cached) " >&6
3457else
3458  if test -n "$CC"; then
3459  ac_cv_prog_CC="$CC" # Let the user override the test.
3460else
3461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462for as_dir in $PATH
3463do
3464  IFS=$as_save_IFS
3465  test -z "$as_dir" && as_dir=.
3466    for ac_exec_ext in '' $ac_executable_extensions; do
3467  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470    break 2
3471  fi
3472done
3473  done
3474IFS=$as_save_IFS
3475
3476fi
3477fi
3478CC=$ac_cv_prog_CC
3479if test -n "$CC"; then
3480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3481$as_echo "$CC" >&6; }
3482else
3483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484$as_echo "no" >&6; }
3485fi
3486
3487
3488    test -n "$CC" && break
3489  done
3490fi
3491if test -z "$CC"; then
3492  ac_ct_CC=$CC
3493  for ac_prog in cl.exe
3494do
3495  # Extract the first word of "$ac_prog", so it can be a program name with args.
3496set dummy $ac_prog; ac_word=$2
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498$as_echo_n "checking for $ac_word... " >&6; }
3499if ${ac_cv_prog_ac_ct_CC+:} false; then :
3500  $as_echo_n "(cached) " >&6
3501else
3502  if test -n "$ac_ct_CC"; then
3503  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3504else
3505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506for as_dir in $PATH
3507do
3508  IFS=$as_save_IFS
3509  test -z "$as_dir" && as_dir=.
3510    for ac_exec_ext in '' $ac_executable_extensions; do
3511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512    ac_cv_prog_ac_ct_CC="$ac_prog"
3513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514    break 2
3515  fi
3516done
3517  done
3518IFS=$as_save_IFS
3519
3520fi
3521fi
3522ac_ct_CC=$ac_cv_prog_ac_ct_CC
3523if test -n "$ac_ct_CC"; then
3524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3525$as_echo "$ac_ct_CC" >&6; }
3526else
3527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528$as_echo "no" >&6; }
3529fi
3530
3531
3532  test -n "$ac_ct_CC" && break
3533done
3534
3535  if test "x$ac_ct_CC" = x; then
3536    CC=""
3537  else
3538    case $cross_compiling:$ac_tool_warned in
3539yes:)
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542ac_tool_warned=yes ;;
3543esac
3544    CC=$ac_ct_CC
3545  fi
3546fi
3547
3548fi
3549
3550
3551test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553as_fn_error $? "no acceptable C compiler found in \$PATH
3554See \`config.log' for more details" "$LINENO" 5; }
3555
3556# Provide some information about the compiler.
3557$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3558set X $ac_compile
3559ac_compiler=$2
3560for ac_option in --version -v -V -qversion; do
3561  { { ac_try="$ac_compiler $ac_option >&5"
3562case "(($ac_try" in
3563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564  *) ac_try_echo=$ac_try;;
3565esac
3566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567$as_echo "$ac_try_echo"; } >&5
3568  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3569  ac_status=$?
3570  if test -s conftest.err; then
3571    sed '10a\
3572... rest of stderr output deleted ...
3573         10q' conftest.err >conftest.er1
3574    cat conftest.er1 >&5
3575  fi
3576  rm -f conftest.er1 conftest.err
3577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578  test $ac_status = 0; }
3579done
3580
3581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582/* end confdefs.h.  */
3583
3584int
3585main ()
3586{
3587
3588  ;
3589  return 0;
3590}
3591_ACEOF
3592ac_clean_files_save=$ac_clean_files
3593ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3594# Try to create an executable without -o first, disregard a.out.
3595# It will help us diagnose broken compilers, and finding out an intuition
3596# of exeext.
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3598$as_echo_n "checking whether the C compiler works... " >&6; }
3599ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3600
3601# The possible output files:
3602ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3603
3604ac_rmfiles=
3605for ac_file in $ac_files
3606do
3607  case $ac_file in
3608    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3609    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3610  esac
3611done
3612rm -f $ac_rmfiles
3613
3614if { { ac_try="$ac_link_default"
3615case "(($ac_try" in
3616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617  *) ac_try_echo=$ac_try;;
3618esac
3619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3620$as_echo "$ac_try_echo"; } >&5
3621  (eval "$ac_link_default") 2>&5
3622  ac_status=$?
3623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3624  test $ac_status = 0; }; then :
3625  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3626# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3627# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3628# so that the user can short-circuit this test for compilers unknown to
3629# Autoconf.
3630for ac_file in $ac_files ''
3631do
3632  test -f "$ac_file" || continue
3633  case $ac_file in
3634    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3635	;;
3636    [ab].out )
3637	# We found the default executable, but exeext='' is most
3638	# certainly right.
3639	break;;
3640    *.* )
3641	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3642	then :; else
3643	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3644	fi
3645	# We set ac_cv_exeext here because the later test for it is not
3646	# safe: cross compilers may not add the suffix if given an `-o'
3647	# argument, so we may need to know it at that point already.
3648	# Even if this section looks crufty: it has the advantage of
3649	# actually working.
3650	break;;
3651    * )
3652	break;;
3653  esac
3654done
3655test "$ac_cv_exeext" = no && ac_cv_exeext=
3656
3657else
3658  ac_file=''
3659fi
3660if test -z "$ac_file"; then :
3661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662$as_echo "no" >&6; }
3663$as_echo "$as_me: failed program was:" >&5
3664sed 's/^/| /' conftest.$ac_ext >&5
3665
3666{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668as_fn_error 77 "C compiler cannot create executables
3669See \`config.log' for more details" "$LINENO" 5; }
3670else
3671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3672$as_echo "yes" >&6; }
3673fi
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3675$as_echo_n "checking for C compiler default output file name... " >&6; }
3676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3677$as_echo "$ac_file" >&6; }
3678ac_exeext=$ac_cv_exeext
3679
3680rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3681ac_clean_files=$ac_clean_files_save
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3683$as_echo_n "checking for suffix of executables... " >&6; }
3684if { { ac_try="$ac_link"
3685case "(($ac_try" in
3686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687  *) ac_try_echo=$ac_try;;
3688esac
3689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690$as_echo "$ac_try_echo"; } >&5
3691  (eval "$ac_link") 2>&5
3692  ac_status=$?
3693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694  test $ac_status = 0; }; then :
3695  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3696# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3697# work properly (i.e., refer to `conftest.exe'), while it won't with
3698# `rm'.
3699for ac_file in conftest.exe conftest conftest.*; do
3700  test -f "$ac_file" || continue
3701  case $ac_file in
3702    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3703    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3704	  break;;
3705    * ) break;;
3706  esac
3707done
3708else
3709  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3711as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3712See \`config.log' for more details" "$LINENO" 5; }
3713fi
3714rm -f conftest conftest$ac_cv_exeext
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3716$as_echo "$ac_cv_exeext" >&6; }
3717
3718rm -f conftest.$ac_ext
3719EXEEXT=$ac_cv_exeext
3720ac_exeext=$EXEEXT
3721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722/* end confdefs.h.  */
3723#include <stdio.h>
3724int
3725main ()
3726{
3727FILE *f = fopen ("conftest.out", "w");
3728 return ferror (f) || fclose (f) != 0;
3729
3730  ;
3731  return 0;
3732}
3733_ACEOF
3734ac_clean_files="$ac_clean_files conftest.out"
3735# Check that the compiler produces executables we can run.  If not, either
3736# the compiler is broken, or we cross compile.
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3738$as_echo_n "checking whether we are cross compiling... " >&6; }
3739if test "$cross_compiling" != yes; then
3740  { { ac_try="$ac_link"
3741case "(($ac_try" in
3742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743  *) ac_try_echo=$ac_try;;
3744esac
3745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746$as_echo "$ac_try_echo"; } >&5
3747  (eval "$ac_link") 2>&5
3748  ac_status=$?
3749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750  test $ac_status = 0; }
3751  if { ac_try='./conftest$ac_cv_exeext'
3752  { { case "(($ac_try" in
3753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754  *) ac_try_echo=$ac_try;;
3755esac
3756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3757$as_echo "$ac_try_echo"; } >&5
3758  (eval "$ac_try") 2>&5
3759  ac_status=$?
3760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761  test $ac_status = 0; }; }; then
3762    cross_compiling=no
3763  else
3764    if test "$cross_compiling" = maybe; then
3765	cross_compiling=yes
3766    else
3767	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3769as_fn_error $? "cannot run C compiled programs.
3770If you meant to cross compile, use \`--host'.
3771See \`config.log' for more details" "$LINENO" 5; }
3772    fi
3773  fi
3774fi
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3776$as_echo "$cross_compiling" >&6; }
3777
3778rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3779ac_clean_files=$ac_clean_files_save
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3781$as_echo_n "checking for suffix of object files... " >&6; }
3782if ${ac_cv_objext+:} false; then :
3783  $as_echo_n "(cached) " >&6
3784else
3785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786/* end confdefs.h.  */
3787
3788int
3789main ()
3790{
3791
3792  ;
3793  return 0;
3794}
3795_ACEOF
3796rm -f conftest.o conftest.obj
3797if { { ac_try="$ac_compile"
3798case "(($ac_try" in
3799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800  *) ac_try_echo=$ac_try;;
3801esac
3802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803$as_echo "$ac_try_echo"; } >&5
3804  (eval "$ac_compile") 2>&5
3805  ac_status=$?
3806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807  test $ac_status = 0; }; then :
3808  for ac_file in conftest.o conftest.obj conftest.*; do
3809  test -f "$ac_file" || continue;
3810  case $ac_file in
3811    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3812    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3813       break;;
3814  esac
3815done
3816else
3817  $as_echo "$as_me: failed program was:" >&5
3818sed 's/^/| /' conftest.$ac_ext >&5
3819
3820{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3822as_fn_error $? "cannot compute suffix of object files: cannot compile
3823See \`config.log' for more details" "$LINENO" 5; }
3824fi
3825rm -f conftest.$ac_cv_objext conftest.$ac_ext
3826fi
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3828$as_echo "$ac_cv_objext" >&6; }
3829OBJEXT=$ac_cv_objext
3830ac_objext=$OBJEXT
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3832$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3833if ${ac_cv_c_compiler_gnu+:} false; then :
3834  $as_echo_n "(cached) " >&6
3835else
3836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837/* end confdefs.h.  */
3838
3839int
3840main ()
3841{
3842#ifndef __GNUC__
3843       choke me
3844#endif
3845
3846  ;
3847  return 0;
3848}
3849_ACEOF
3850if ac_fn_c_try_compile "$LINENO"; then :
3851  ac_compiler_gnu=yes
3852else
3853  ac_compiler_gnu=no
3854fi
3855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856ac_cv_c_compiler_gnu=$ac_compiler_gnu
3857
3858fi
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3860$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3861if test $ac_compiler_gnu = yes; then
3862  GCC=yes
3863else
3864  GCC=
3865fi
3866ac_test_CFLAGS=${CFLAGS+set}
3867ac_save_CFLAGS=$CFLAGS
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3869$as_echo_n "checking whether $CC accepts -g... " >&6; }
3870if ${ac_cv_prog_cc_g+:} false; then :
3871  $as_echo_n "(cached) " >&6
3872else
3873  ac_save_c_werror_flag=$ac_c_werror_flag
3874   ac_c_werror_flag=yes
3875   ac_cv_prog_cc_g=no
3876   CFLAGS="-g"
3877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878/* end confdefs.h.  */
3879
3880int
3881main ()
3882{
3883
3884  ;
3885  return 0;
3886}
3887_ACEOF
3888if ac_fn_c_try_compile "$LINENO"; then :
3889  ac_cv_prog_cc_g=yes
3890else
3891  CFLAGS=""
3892      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893/* end confdefs.h.  */
3894
3895int
3896main ()
3897{
3898
3899  ;
3900  return 0;
3901}
3902_ACEOF
3903if ac_fn_c_try_compile "$LINENO"; then :
3904
3905else
3906  ac_c_werror_flag=$ac_save_c_werror_flag
3907	 CFLAGS="-g"
3908	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909/* end confdefs.h.  */
3910
3911int
3912main ()
3913{
3914
3915  ;
3916  return 0;
3917}
3918_ACEOF
3919if ac_fn_c_try_compile "$LINENO"; then :
3920  ac_cv_prog_cc_g=yes
3921fi
3922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923fi
3924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925fi
3926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927   ac_c_werror_flag=$ac_save_c_werror_flag
3928fi
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3930$as_echo "$ac_cv_prog_cc_g" >&6; }
3931if test "$ac_test_CFLAGS" = set; then
3932  CFLAGS=$ac_save_CFLAGS
3933elif test $ac_cv_prog_cc_g = yes; then
3934  if test "$GCC" = yes; then
3935    CFLAGS="-g -O2"
3936  else
3937    CFLAGS="-g"
3938  fi
3939else
3940  if test "$GCC" = yes; then
3941    CFLAGS="-O2"
3942  else
3943    CFLAGS=
3944  fi
3945fi
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3947$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3948if ${ac_cv_prog_cc_c89+:} false; then :
3949  $as_echo_n "(cached) " >&6
3950else
3951  ac_cv_prog_cc_c89=no
3952ac_save_CC=$CC
3953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954/* end confdefs.h.  */
3955#include <stdarg.h>
3956#include <stdio.h>
3957struct stat;
3958/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3959struct buf { int x; };
3960FILE * (*rcsopen) (struct buf *, struct stat *, int);
3961static char *e (p, i)
3962     char **p;
3963     int i;
3964{
3965  return p[i];
3966}
3967static char *f (char * (*g) (char **, int), char **p, ...)
3968{
3969  char *s;
3970  va_list v;
3971  va_start (v,p);
3972  s = g (p, va_arg (v,int));
3973  va_end (v);
3974  return s;
3975}
3976
3977/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3978   function prototypes and stuff, but not '\xHH' hex character constants.
3979   These don't provoke an error unfortunately, instead are silently treated
3980   as 'x'.  The following induces an error, until -std is added to get
3981   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3982   array size at least.  It's necessary to write '\x00'==0 to get something
3983   that's true only with -std.  */
3984int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3985
3986/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3987   inside strings and character constants.  */
3988#define FOO(x) 'x'
3989int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3990
3991int test (int i, double x);
3992struct s1 {int (*f) (int a);};
3993struct s2 {int (*f) (double a);};
3994int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3995int argc;
3996char **argv;
3997int
3998main ()
3999{
4000return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4001  ;
4002  return 0;
4003}
4004_ACEOF
4005for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4006	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4007do
4008  CC="$ac_save_CC $ac_arg"
4009  if ac_fn_c_try_compile "$LINENO"; then :
4010  ac_cv_prog_cc_c89=$ac_arg
4011fi
4012rm -f core conftest.err conftest.$ac_objext
4013  test "x$ac_cv_prog_cc_c89" != "xno" && break
4014done
4015rm -f conftest.$ac_ext
4016CC=$ac_save_CC
4017
4018fi
4019# AC_CACHE_VAL
4020case "x$ac_cv_prog_cc_c89" in
4021  x)
4022    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4023$as_echo "none needed" >&6; } ;;
4024  xno)
4025    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4026$as_echo "unsupported" >&6; } ;;
4027  *)
4028    CC="$CC $ac_cv_prog_cc_c89"
4029    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4030$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4031esac
4032if test "x$ac_cv_prog_cc_c89" != xno; then :
4033
4034fi
4035
4036ac_ext=c
4037ac_cpp='$CPP $CPPFLAGS'
4038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041
4042ac_ext=c
4043ac_cpp='$CPP $CPPFLAGS'
4044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046ac_compiler_gnu=$ac_cv_c_compiler_gnu
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4048$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4049if ${am_cv_prog_cc_c_o+:} false; then :
4050  $as_echo_n "(cached) " >&6
4051else
4052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053/* end confdefs.h.  */
4054
4055int
4056main ()
4057{
4058
4059  ;
4060  return 0;
4061}
4062_ACEOF
4063  # Make sure it works both with $CC and with simple cc.
4064  # Following AC_PROG_CC_C_O, we do the test twice because some
4065  # compilers refuse to overwrite an existing .o file with -o,
4066  # though they will create one.
4067  am_cv_prog_cc_c_o=yes
4068  for am_i in 1 2; do
4069    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4070   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4071   ac_status=$?
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); } \
4074         && test -f conftest2.$ac_objext; then
4075      : OK
4076    else
4077      am_cv_prog_cc_c_o=no
4078      break
4079    fi
4080  done
4081  rm -f core conftest*
4082  unset am_i
4083fi
4084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4085$as_echo "$am_cv_prog_cc_c_o" >&6; }
4086if test "$am_cv_prog_cc_c_o" != yes; then
4087   # Losing compiler, so override with the script.
4088   # FIXME: It is wrong to rewrite CC.
4089   # But if we don't then we get into trouble of one sort or another.
4090   # A longer-term fix would be to have automake use am__CC in this case,
4091   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4092   CC="$am_aux_dir/compile $CC"
4093fi
4094ac_ext=c
4095ac_cpp='$CPP $CPPFLAGS'
4096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4098ac_compiler_gnu=$ac_cv_c_compiler_gnu
4099
4100DEPDIR="${am__leading_dot}deps"
4101
4102ac_config_commands="$ac_config_commands depfiles"
4103
4104
4105am_make=${MAKE-make}
4106cat > confinc << 'END'
4107am__doit:
4108	@echo this is the am__doit target
4109.PHONY: am__doit
4110END
4111# If we don't find an include directive, just comment out the code.
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4113$as_echo_n "checking for style of include used by $am_make... " >&6; }
4114am__include="#"
4115am__quote=
4116_am_result=none
4117# First try GNU make style include.
4118echo "include confinc" > confmf
4119# Ignore all kinds of additional output from 'make'.
4120case `$am_make -s -f confmf 2> /dev/null` in #(
4121*the\ am__doit\ target*)
4122  am__include=include
4123  am__quote=
4124  _am_result=GNU
4125  ;;
4126esac
4127# Now try BSD make style include.
4128if test "$am__include" = "#"; then
4129   echo '.include "confinc"' > confmf
4130   case `$am_make -s -f confmf 2> /dev/null` in #(
4131   *the\ am__doit\ target*)
4132     am__include=.include
4133     am__quote="\""
4134     _am_result=BSD
4135     ;;
4136   esac
4137fi
4138
4139
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4141$as_echo "$_am_result" >&6; }
4142rm -f confinc confmf
4143
4144# Check whether --enable-dependency-tracking was given.
4145if test "${enable_dependency_tracking+set}" = set; then :
4146  enableval=$enable_dependency_tracking;
4147fi
4148
4149if test "x$enable_dependency_tracking" != xno; then
4150  am_depcomp="$ac_aux_dir/depcomp"
4151  AMDEPBACKSLASH='\'
4152  am__nodep='_no'
4153fi
4154 if test "x$enable_dependency_tracking" != xno; then
4155  AMDEP_TRUE=
4156  AMDEP_FALSE='#'
4157else
4158  AMDEP_TRUE='#'
4159  AMDEP_FALSE=
4160fi
4161
4162
4163
4164depcc="$CC"   am_compiler_list=
4165
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4167$as_echo_n "checking dependency style of $depcc... " >&6; }
4168if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4169  $as_echo_n "(cached) " >&6
4170else
4171  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4172  # We make a subdir and do the tests there.  Otherwise we can end up
4173  # making bogus files that we don't know about and never remove.  For
4174  # instance it was reported that on HP-UX the gcc test will end up
4175  # making a dummy file named 'D' -- because '-MD' means "put the output
4176  # in D".
4177  rm -rf conftest.dir
4178  mkdir conftest.dir
4179  # Copy depcomp to subdir because otherwise we won't find it if we're
4180  # using a relative directory.
4181  cp "$am_depcomp" conftest.dir
4182  cd conftest.dir
4183  # We will build objects and dependencies in a subdirectory because
4184  # it helps to detect inapplicable dependency modes.  For instance
4185  # both Tru64's cc and ICC support -MD to output dependencies as a
4186  # side effect of compilation, but ICC will put the dependencies in
4187  # the current directory while Tru64 will put them in the object
4188  # directory.
4189  mkdir sub
4190
4191  am_cv_CC_dependencies_compiler_type=none
4192  if test "$am_compiler_list" = ""; then
4193     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4194  fi
4195  am__universal=false
4196  case " $depcc " in #(
4197     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4198     esac
4199
4200  for depmode in $am_compiler_list; do
4201    # Setup a source with many dependencies, because some compilers
4202    # like to wrap large dependency lists on column 80 (with \), and
4203    # we should not choose a depcomp mode which is confused by this.
4204    #
4205    # We need to recreate these files for each test, as the compiler may
4206    # overwrite some of them when testing with obscure command lines.
4207    # This happens at least with the AIX C compiler.
4208    : > sub/conftest.c
4209    for i in 1 2 3 4 5 6; do
4210      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4211      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4212      # Solaris 10 /bin/sh.
4213      echo '/* dummy */' > sub/conftst$i.h
4214    done
4215    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4216
4217    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4218    # mode.  It turns out that the SunPro C++ compiler does not properly
4219    # handle '-M -o', and we need to detect this.  Also, some Intel
4220    # versions had trouble with output in subdirs.
4221    am__obj=sub/conftest.${OBJEXT-o}
4222    am__minus_obj="-o $am__obj"
4223    case $depmode in
4224    gcc)
4225      # This depmode causes a compiler race in universal mode.
4226      test "$am__universal" = false || continue
4227      ;;
4228    nosideeffect)
4229      # After this tag, mechanisms are not by side-effect, so they'll
4230      # only be used when explicitly requested.
4231      if test "x$enable_dependency_tracking" = xyes; then
4232	continue
4233      else
4234	break
4235      fi
4236      ;;
4237    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4238      # This compiler won't grok '-c -o', but also, the minuso test has
4239      # not run yet.  These depmodes are late enough in the game, and
4240      # so weak that their functioning should not be impacted.
4241      am__obj=conftest.${OBJEXT-o}
4242      am__minus_obj=
4243      ;;
4244    none) break ;;
4245    esac
4246    if depmode=$depmode \
4247       source=sub/conftest.c object=$am__obj \
4248       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4249       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4250         >/dev/null 2>conftest.err &&
4251       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4252       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4253       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4254       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4255      # icc doesn't choke on unknown options, it will just issue warnings
4256      # or remarks (even with -Werror).  So we grep stderr for any message
4257      # that says an option was ignored or not supported.
4258      # When given -MP, icc 7.0 and 7.1 complain thusly:
4259      #   icc: Command line warning: ignoring option '-M'; no argument required
4260      # The diagnosis changed in icc 8.0:
4261      #   icc: Command line remark: option '-MP' not supported
4262      if (grep 'ignoring option' conftest.err ||
4263          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4264        am_cv_CC_dependencies_compiler_type=$depmode
4265        break
4266      fi
4267    fi
4268  done
4269
4270  cd ..
4271  rm -rf conftest.dir
4272else
4273  am_cv_CC_dependencies_compiler_type=none
4274fi
4275
4276fi
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4278$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4279CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4280
4281 if
4282  test "x$enable_dependency_tracking" != xno \
4283  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4284  am__fastdepCC_TRUE=
4285  am__fastdepCC_FALSE='#'
4286else
4287  am__fastdepCC_TRUE='#'
4288  am__fastdepCC_FALSE=
4289fi
4290
4291
4292if test -n "$ac_tool_prefix"; then
4293  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4294set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296$as_echo_n "checking for $ac_word... " >&6; }
4297if ${ac_cv_prog_RANLIB+:} false; then :
4298  $as_echo_n "(cached) " >&6
4299else
4300  if test -n "$RANLIB"; then
4301  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4302else
4303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304for as_dir in $PATH
4305do
4306  IFS=$as_save_IFS
4307  test -z "$as_dir" && as_dir=.
4308    for ac_exec_ext in '' $ac_executable_extensions; do
4309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4310    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4312    break 2
4313  fi
4314done
4315  done
4316IFS=$as_save_IFS
4317
4318fi
4319fi
4320RANLIB=$ac_cv_prog_RANLIB
4321if test -n "$RANLIB"; then
4322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4323$as_echo "$RANLIB" >&6; }
4324else
4325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326$as_echo "no" >&6; }
4327fi
4328
4329
4330fi
4331if test -z "$ac_cv_prog_RANLIB"; then
4332  ac_ct_RANLIB=$RANLIB
4333  # Extract the first word of "ranlib", so it can be a program name with args.
4334set dummy ranlib; ac_word=$2
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336$as_echo_n "checking for $ac_word... " >&6; }
4337if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4338  $as_echo_n "(cached) " >&6
4339else
4340  if test -n "$ac_ct_RANLIB"; then
4341  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4342else
4343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344for as_dir in $PATH
4345do
4346  IFS=$as_save_IFS
4347  test -z "$as_dir" && as_dir=.
4348    for ac_exec_ext in '' $ac_executable_extensions; do
4349  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4350    ac_cv_prog_ac_ct_RANLIB="ranlib"
4351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352    break 2
4353  fi
4354done
4355  done
4356IFS=$as_save_IFS
4357
4358fi
4359fi
4360ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4361if test -n "$ac_ct_RANLIB"; then
4362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4363$as_echo "$ac_ct_RANLIB" >&6; }
4364else
4365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366$as_echo "no" >&6; }
4367fi
4368
4369  if test "x$ac_ct_RANLIB" = x; then
4370    RANLIB=":"
4371  else
4372    case $cross_compiling:$ac_tool_warned in
4373yes:)
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4376ac_tool_warned=yes ;;
4377esac
4378    RANLIB=$ac_ct_RANLIB
4379  fi
4380else
4381  RANLIB="$ac_cv_prog_RANLIB"
4382fi
4383
4384ac_ext=cpp
4385ac_cpp='$CXXCPP $CPPFLAGS'
4386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4389if test -z "$CXX"; then
4390  if test -n "$CCC"; then
4391    CXX=$CCC
4392  else
4393    if test -n "$ac_tool_prefix"; then
4394  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4395  do
4396    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4397set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399$as_echo_n "checking for $ac_word... " >&6; }
4400if ${ac_cv_prog_CXX+:} false; then :
4401  $as_echo_n "(cached) " >&6
4402else
4403  if test -n "$CXX"; then
4404  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4405else
4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
4408do
4409  IFS=$as_save_IFS
4410  test -z "$as_dir" && as_dir=.
4411    for ac_exec_ext in '' $ac_executable_extensions; do
4412  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4413    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415    break 2
4416  fi
4417done
4418  done
4419IFS=$as_save_IFS
4420
4421fi
4422fi
4423CXX=$ac_cv_prog_CXX
4424if test -n "$CXX"; then
4425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4426$as_echo "$CXX" >&6; }
4427else
4428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429$as_echo "no" >&6; }
4430fi
4431
4432
4433    test -n "$CXX" && break
4434  done
4435fi
4436if test -z "$CXX"; then
4437  ac_ct_CXX=$CXX
4438  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4439do
4440  # Extract the first word of "$ac_prog", so it can be a program name with args.
4441set dummy $ac_prog; ac_word=$2
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443$as_echo_n "checking for $ac_word... " >&6; }
4444if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4445  $as_echo_n "(cached) " >&6
4446else
4447  if test -n "$ac_ct_CXX"; then
4448  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4449else
4450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451for as_dir in $PATH
4452do
4453  IFS=$as_save_IFS
4454  test -z "$as_dir" && as_dir=.
4455    for ac_exec_ext in '' $ac_executable_extensions; do
4456  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4457    ac_cv_prog_ac_ct_CXX="$ac_prog"
4458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4459    break 2
4460  fi
4461done
4462  done
4463IFS=$as_save_IFS
4464
4465fi
4466fi
4467ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4468if test -n "$ac_ct_CXX"; then
4469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4470$as_echo "$ac_ct_CXX" >&6; }
4471else
4472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473$as_echo "no" >&6; }
4474fi
4475
4476
4477  test -n "$ac_ct_CXX" && break
4478done
4479
4480  if test "x$ac_ct_CXX" = x; then
4481    CXX="g++"
4482  else
4483    case $cross_compiling:$ac_tool_warned in
4484yes:)
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4487ac_tool_warned=yes ;;
4488esac
4489    CXX=$ac_ct_CXX
4490  fi
4491fi
4492
4493  fi
4494fi
4495# Provide some information about the compiler.
4496$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4497set X $ac_compile
4498ac_compiler=$2
4499for ac_option in --version -v -V -qversion; do
4500  { { ac_try="$ac_compiler $ac_option >&5"
4501case "(($ac_try" in
4502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503  *) ac_try_echo=$ac_try;;
4504esac
4505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4506$as_echo "$ac_try_echo"; } >&5
4507  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4508  ac_status=$?
4509  if test -s conftest.err; then
4510    sed '10a\
4511... rest of stderr output deleted ...
4512         10q' conftest.err >conftest.er1
4513    cat conftest.er1 >&5
4514  fi
4515  rm -f conftest.er1 conftest.err
4516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4517  test $ac_status = 0; }
4518done
4519
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4521$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4522if ${ac_cv_cxx_compiler_gnu+:} false; then :
4523  $as_echo_n "(cached) " >&6
4524else
4525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526/* end confdefs.h.  */
4527
4528int
4529main ()
4530{
4531#ifndef __GNUC__
4532       choke me
4533#endif
4534
4535  ;
4536  return 0;
4537}
4538_ACEOF
4539if ac_fn_cxx_try_compile "$LINENO"; then :
4540  ac_compiler_gnu=yes
4541else
4542  ac_compiler_gnu=no
4543fi
4544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4546
4547fi
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4549$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4550if test $ac_compiler_gnu = yes; then
4551  GXX=yes
4552else
4553  GXX=
4554fi
4555ac_test_CXXFLAGS=${CXXFLAGS+set}
4556ac_save_CXXFLAGS=$CXXFLAGS
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4558$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4559if ${ac_cv_prog_cxx_g+:} false; then :
4560  $as_echo_n "(cached) " >&6
4561else
4562  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4563   ac_cxx_werror_flag=yes
4564   ac_cv_prog_cxx_g=no
4565   CXXFLAGS="-g"
4566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567/* end confdefs.h.  */
4568
4569int
4570main ()
4571{
4572
4573  ;
4574  return 0;
4575}
4576_ACEOF
4577if ac_fn_cxx_try_compile "$LINENO"; then :
4578  ac_cv_prog_cxx_g=yes
4579else
4580  CXXFLAGS=""
4581      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582/* end confdefs.h.  */
4583
4584int
4585main ()
4586{
4587
4588  ;
4589  return 0;
4590}
4591_ACEOF
4592if ac_fn_cxx_try_compile "$LINENO"; then :
4593
4594else
4595  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4596	 CXXFLAGS="-g"
4597	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598/* end confdefs.h.  */
4599
4600int
4601main ()
4602{
4603
4604  ;
4605  return 0;
4606}
4607_ACEOF
4608if ac_fn_cxx_try_compile "$LINENO"; then :
4609  ac_cv_prog_cxx_g=yes
4610fi
4611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612fi
4613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614fi
4615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4617fi
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4619$as_echo "$ac_cv_prog_cxx_g" >&6; }
4620if test "$ac_test_CXXFLAGS" = set; then
4621  CXXFLAGS=$ac_save_CXXFLAGS
4622elif test $ac_cv_prog_cxx_g = yes; then
4623  if test "$GXX" = yes; then
4624    CXXFLAGS="-g -O2"
4625  else
4626    CXXFLAGS="-g"
4627  fi
4628else
4629  if test "$GXX" = yes; then
4630    CXXFLAGS="-O2"
4631  else
4632    CXXFLAGS=
4633  fi
4634fi
4635ac_ext=c
4636ac_cpp='$CPP $CPPFLAGS'
4637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639ac_compiler_gnu=$ac_cv_c_compiler_gnu
4640
4641depcc="$CXX"  am_compiler_list=
4642
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4644$as_echo_n "checking dependency style of $depcc... " >&6; }
4645if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4646  $as_echo_n "(cached) " >&6
4647else
4648  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4649  # We make a subdir and do the tests there.  Otherwise we can end up
4650  # making bogus files that we don't know about and never remove.  For
4651  # instance it was reported that on HP-UX the gcc test will end up
4652  # making a dummy file named 'D' -- because '-MD' means "put the output
4653  # in D".
4654  rm -rf conftest.dir
4655  mkdir conftest.dir
4656  # Copy depcomp to subdir because otherwise we won't find it if we're
4657  # using a relative directory.
4658  cp "$am_depcomp" conftest.dir
4659  cd conftest.dir
4660  # We will build objects and dependencies in a subdirectory because
4661  # it helps to detect inapplicable dependency modes.  For instance
4662  # both Tru64's cc and ICC support -MD to output dependencies as a
4663  # side effect of compilation, but ICC will put the dependencies in
4664  # the current directory while Tru64 will put them in the object
4665  # directory.
4666  mkdir sub
4667
4668  am_cv_CXX_dependencies_compiler_type=none
4669  if test "$am_compiler_list" = ""; then
4670     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4671  fi
4672  am__universal=false
4673  case " $depcc " in #(
4674     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4675     esac
4676
4677  for depmode in $am_compiler_list; do
4678    # Setup a source with many dependencies, because some compilers
4679    # like to wrap large dependency lists on column 80 (with \), and
4680    # we should not choose a depcomp mode which is confused by this.
4681    #
4682    # We need to recreate these files for each test, as the compiler may
4683    # overwrite some of them when testing with obscure command lines.
4684    # This happens at least with the AIX C compiler.
4685    : > sub/conftest.c
4686    for i in 1 2 3 4 5 6; do
4687      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4688      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4689      # Solaris 10 /bin/sh.
4690      echo '/* dummy */' > sub/conftst$i.h
4691    done
4692    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4693
4694    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4695    # mode.  It turns out that the SunPro C++ compiler does not properly
4696    # handle '-M -o', and we need to detect this.  Also, some Intel
4697    # versions had trouble with output in subdirs.
4698    am__obj=sub/conftest.${OBJEXT-o}
4699    am__minus_obj="-o $am__obj"
4700    case $depmode in
4701    gcc)
4702      # This depmode causes a compiler race in universal mode.
4703      test "$am__universal" = false || continue
4704      ;;
4705    nosideeffect)
4706      # After this tag, mechanisms are not by side-effect, so they'll
4707      # only be used when explicitly requested.
4708      if test "x$enable_dependency_tracking" = xyes; then
4709	continue
4710      else
4711	break
4712      fi
4713      ;;
4714    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4715      # This compiler won't grok '-c -o', but also, the minuso test has
4716      # not run yet.  These depmodes are late enough in the game, and
4717      # so weak that their functioning should not be impacted.
4718      am__obj=conftest.${OBJEXT-o}
4719      am__minus_obj=
4720      ;;
4721    none) break ;;
4722    esac
4723    if depmode=$depmode \
4724       source=sub/conftest.c object=$am__obj \
4725       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4726       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4727         >/dev/null 2>conftest.err &&
4728       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4729       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4730       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4731       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4732      # icc doesn't choke on unknown options, it will just issue warnings
4733      # or remarks (even with -Werror).  So we grep stderr for any message
4734      # that says an option was ignored or not supported.
4735      # When given -MP, icc 7.0 and 7.1 complain thusly:
4736      #   icc: Command line warning: ignoring option '-M'; no argument required
4737      # The diagnosis changed in icc 8.0:
4738      #   icc: Command line remark: option '-MP' not supported
4739      if (grep 'ignoring option' conftest.err ||
4740          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4741        am_cv_CXX_dependencies_compiler_type=$depmode
4742        break
4743      fi
4744    fi
4745  done
4746
4747  cd ..
4748  rm -rf conftest.dir
4749else
4750  am_cv_CXX_dependencies_compiler_type=none
4751fi
4752
4753fi
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4755$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4756CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4757
4758 if
4759  test "x$enable_dependency_tracking" != xno \
4760  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4761  am__fastdepCXX_TRUE=
4762  am__fastdepCXX_FALSE='#'
4763else
4764  am__fastdepCXX_TRUE='#'
4765  am__fastdepCXX_FALSE=
4766fi
4767
4768
4769
4770
4771ac_ext=c
4772ac_cpp='$CPP $CPPFLAGS'
4773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4775ac_compiler_gnu=$ac_cv_c_compiler_gnu
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4777$as_echo_n "checking how to run the C preprocessor... " >&6; }
4778# On Suns, sometimes $CPP names a directory.
4779if test -n "$CPP" && test -d "$CPP"; then
4780  CPP=
4781fi
4782if test -z "$CPP"; then
4783  if ${ac_cv_prog_CPP+:} false; then :
4784  $as_echo_n "(cached) " >&6
4785else
4786      # Double quotes because CPP needs to be expanded
4787    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4788    do
4789      ac_preproc_ok=false
4790for ac_c_preproc_warn_flag in '' yes
4791do
4792  # Use a header file that comes with gcc, so configuring glibc
4793  # with a fresh cross-compiler works.
4794  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4795  # <limits.h> exists even on freestanding compilers.
4796  # On the NeXT, cc -E runs the code through the compiler's parser,
4797  # not just through cpp. "Syntax error" is here to catch this case.
4798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799/* end confdefs.h.  */
4800#ifdef __STDC__
4801# include <limits.h>
4802#else
4803# include <assert.h>
4804#endif
4805		     Syntax error
4806_ACEOF
4807if ac_fn_c_try_cpp "$LINENO"; then :
4808
4809else
4810  # Broken: fails on valid input.
4811continue
4812fi
4813rm -f conftest.err conftest.i conftest.$ac_ext
4814
4815  # OK, works on sane cases.  Now check whether nonexistent headers
4816  # can be detected and how.
4817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818/* end confdefs.h.  */
4819#include <ac_nonexistent.h>
4820_ACEOF
4821if ac_fn_c_try_cpp "$LINENO"; then :
4822  # Broken: success on invalid input.
4823continue
4824else
4825  # Passes both tests.
4826ac_preproc_ok=:
4827break
4828fi
4829rm -f conftest.err conftest.i conftest.$ac_ext
4830
4831done
4832# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4833rm -f conftest.i conftest.err conftest.$ac_ext
4834if $ac_preproc_ok; then :
4835  break
4836fi
4837
4838    done
4839    ac_cv_prog_CPP=$CPP
4840
4841fi
4842  CPP=$ac_cv_prog_CPP
4843else
4844  ac_cv_prog_CPP=$CPP
4845fi
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4847$as_echo "$CPP" >&6; }
4848ac_preproc_ok=false
4849for ac_c_preproc_warn_flag in '' yes
4850do
4851  # Use a header file that comes with gcc, so configuring glibc
4852  # with a fresh cross-compiler works.
4853  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4854  # <limits.h> exists even on freestanding compilers.
4855  # On the NeXT, cc -E runs the code through the compiler's parser,
4856  # not just through cpp. "Syntax error" is here to catch this case.
4857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858/* end confdefs.h.  */
4859#ifdef __STDC__
4860# include <limits.h>
4861#else
4862# include <assert.h>
4863#endif
4864		     Syntax error
4865_ACEOF
4866if ac_fn_c_try_cpp "$LINENO"; then :
4867
4868else
4869  # Broken: fails on valid input.
4870continue
4871fi
4872rm -f conftest.err conftest.i conftest.$ac_ext
4873
4874  # OK, works on sane cases.  Now check whether nonexistent headers
4875  # can be detected and how.
4876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877/* end confdefs.h.  */
4878#include <ac_nonexistent.h>
4879_ACEOF
4880if ac_fn_c_try_cpp "$LINENO"; then :
4881  # Broken: success on invalid input.
4882continue
4883else
4884  # Passes both tests.
4885ac_preproc_ok=:
4886break
4887fi
4888rm -f conftest.err conftest.i conftest.$ac_ext
4889
4890done
4891# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4892rm -f conftest.i conftest.err conftest.$ac_ext
4893if $ac_preproc_ok; then :
4894
4895else
4896  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4897$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4898as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4899See \`config.log' for more details" "$LINENO" 5; }
4900fi
4901
4902ac_ext=c
4903ac_cpp='$CPP $CPPFLAGS'
4904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4906ac_compiler_gnu=$ac_cv_c_compiler_gnu
4907
4908
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4910$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4911if ${ac_cv_path_GREP+:} false; then :
4912  $as_echo_n "(cached) " >&6
4913else
4914  if test -z "$GREP"; then
4915  ac_path_GREP_found=false
4916  # Loop through the user's path and test for each of PROGNAME-LIST
4917  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4919do
4920  IFS=$as_save_IFS
4921  test -z "$as_dir" && as_dir=.
4922    for ac_prog in grep ggrep; do
4923    for ac_exec_ext in '' $ac_executable_extensions; do
4924      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4925      as_fn_executable_p "$ac_path_GREP" || continue
4926# Check for GNU ac_path_GREP and select it if it is found.
4927  # Check for GNU $ac_path_GREP
4928case `"$ac_path_GREP" --version 2>&1` in
4929*GNU*)
4930  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4931*)
4932  ac_count=0
4933  $as_echo_n 0123456789 >"conftest.in"
4934  while :
4935  do
4936    cat "conftest.in" "conftest.in" >"conftest.tmp"
4937    mv "conftest.tmp" "conftest.in"
4938    cp "conftest.in" "conftest.nl"
4939    $as_echo 'GREP' >> "conftest.nl"
4940    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4941    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4942    as_fn_arith $ac_count + 1 && ac_count=$as_val
4943    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4944      # Best one so far, save it but keep looking for a better one
4945      ac_cv_path_GREP="$ac_path_GREP"
4946      ac_path_GREP_max=$ac_count
4947    fi
4948    # 10*(2^10) chars as input seems more than enough
4949    test $ac_count -gt 10 && break
4950  done
4951  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4952esac
4953
4954      $ac_path_GREP_found && break 3
4955    done
4956  done
4957  done
4958IFS=$as_save_IFS
4959  if test -z "$ac_cv_path_GREP"; then
4960    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4961  fi
4962else
4963  ac_cv_path_GREP=$GREP
4964fi
4965
4966fi
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4968$as_echo "$ac_cv_path_GREP" >&6; }
4969 GREP="$ac_cv_path_GREP"
4970
4971
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4973$as_echo_n "checking for egrep... " >&6; }
4974if ${ac_cv_path_EGREP+:} false; then :
4975  $as_echo_n "(cached) " >&6
4976else
4977  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4978   then ac_cv_path_EGREP="$GREP -E"
4979   else
4980     if test -z "$EGREP"; then
4981  ac_path_EGREP_found=false
4982  # Loop through the user's path and test for each of PROGNAME-LIST
4983  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4985do
4986  IFS=$as_save_IFS
4987  test -z "$as_dir" && as_dir=.
4988    for ac_prog in egrep; do
4989    for ac_exec_ext in '' $ac_executable_extensions; do
4990      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4991      as_fn_executable_p "$ac_path_EGREP" || continue
4992# Check for GNU ac_path_EGREP and select it if it is found.
4993  # Check for GNU $ac_path_EGREP
4994case `"$ac_path_EGREP" --version 2>&1` in
4995*GNU*)
4996  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4997*)
4998  ac_count=0
4999  $as_echo_n 0123456789 >"conftest.in"
5000  while :
5001  do
5002    cat "conftest.in" "conftest.in" >"conftest.tmp"
5003    mv "conftest.tmp" "conftest.in"
5004    cp "conftest.in" "conftest.nl"
5005    $as_echo 'EGREP' >> "conftest.nl"
5006    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5007    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5008    as_fn_arith $ac_count + 1 && ac_count=$as_val
5009    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5010      # Best one so far, save it but keep looking for a better one
5011      ac_cv_path_EGREP="$ac_path_EGREP"
5012      ac_path_EGREP_max=$ac_count
5013    fi
5014    # 10*(2^10) chars as input seems more than enough
5015    test $ac_count -gt 10 && break
5016  done
5017  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5018esac
5019
5020      $ac_path_EGREP_found && break 3
5021    done
5022  done
5023  done
5024IFS=$as_save_IFS
5025  if test -z "$ac_cv_path_EGREP"; then
5026    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5027  fi
5028else
5029  ac_cv_path_EGREP=$EGREP
5030fi
5031
5032   fi
5033fi
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5035$as_echo "$ac_cv_path_EGREP" >&6; }
5036 EGREP="$ac_cv_path_EGREP"
5037
5038
5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5040$as_echo_n "checking for ANSI C header files... " >&6; }
5041if ${ac_cv_header_stdc+:} false; then :
5042  $as_echo_n "(cached) " >&6
5043else
5044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045/* end confdefs.h.  */
5046#include <stdlib.h>
5047#include <stdarg.h>
5048#include <string.h>
5049#include <float.h>
5050
5051int
5052main ()
5053{
5054
5055  ;
5056  return 0;
5057}
5058_ACEOF
5059if ac_fn_c_try_compile "$LINENO"; then :
5060  ac_cv_header_stdc=yes
5061else
5062  ac_cv_header_stdc=no
5063fi
5064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065
5066if test $ac_cv_header_stdc = yes; then
5067  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069/* end confdefs.h.  */
5070#include <string.h>
5071
5072_ACEOF
5073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5074  $EGREP "memchr" >/dev/null 2>&1; then :
5075
5076else
5077  ac_cv_header_stdc=no
5078fi
5079rm -f conftest*
5080
5081fi
5082
5083if test $ac_cv_header_stdc = yes; then
5084  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086/* end confdefs.h.  */
5087#include <stdlib.h>
5088
5089_ACEOF
5090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5091  $EGREP "free" >/dev/null 2>&1; then :
5092
5093else
5094  ac_cv_header_stdc=no
5095fi
5096rm -f conftest*
5097
5098fi
5099
5100if test $ac_cv_header_stdc = yes; then
5101  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5102  if test "$cross_compiling" = yes; then :
5103  :
5104else
5105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106/* end confdefs.h.  */
5107#include <ctype.h>
5108#include <stdlib.h>
5109#if ((' ' & 0x0FF) == 0x020)
5110# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5111# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5112#else
5113# define ISLOWER(c) \
5114		   (('a' <= (c) && (c) <= 'i') \
5115		     || ('j' <= (c) && (c) <= 'r') \
5116		     || ('s' <= (c) && (c) <= 'z'))
5117# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5118#endif
5119
5120#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5121int
5122main ()
5123{
5124  int i;
5125  for (i = 0; i < 256; i++)
5126    if (XOR (islower (i), ISLOWER (i))
5127	|| toupper (i) != TOUPPER (i))
5128      return 2;
5129  return 0;
5130}
5131_ACEOF
5132if ac_fn_c_try_run "$LINENO"; then :
5133
5134else
5135  ac_cv_header_stdc=no
5136fi
5137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5138  conftest.$ac_objext conftest.beam conftest.$ac_ext
5139fi
5140
5141fi
5142fi
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5144$as_echo "$ac_cv_header_stdc" >&6; }
5145if test $ac_cv_header_stdc = yes; then
5146
5147$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5148
5149fi
5150
5151# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5152for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5153		  inttypes.h stdint.h unistd.h
5154do :
5155  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5156ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5157"
5158if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5159  cat >>confdefs.h <<_ACEOF
5160#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5161_ACEOF
5162
5163fi
5164
5165done
5166
5167
5168
5169  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5170if test "x$ac_cv_header_minix_config_h" = xyes; then :
5171  MINIX=yes
5172else
5173  MINIX=
5174fi
5175
5176
5177  if test "$MINIX" = yes; then
5178
5179$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5180
5181
5182$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5183
5184
5185$as_echo "#define _MINIX 1" >>confdefs.h
5186
5187  fi
5188
5189
5190  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5191$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5192if ${ac_cv_safe_to_define___extensions__+:} false; then :
5193  $as_echo_n "(cached) " >&6
5194else
5195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196/* end confdefs.h.  */
5197
5198#         define __EXTENSIONS__ 1
5199          $ac_includes_default
5200int
5201main ()
5202{
5203
5204  ;
5205  return 0;
5206}
5207_ACEOF
5208if ac_fn_c_try_compile "$LINENO"; then :
5209  ac_cv_safe_to_define___extensions__=yes
5210else
5211  ac_cv_safe_to_define___extensions__=no
5212fi
5213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214fi
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5216$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5217  test $ac_cv_safe_to_define___extensions__ = yes &&
5218    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5219
5220  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5221
5222  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5223
5224  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5225
5226  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5227
5228
5229
5230
5231mkdir_p="$MKDIR_P"
5232case $mkdir_p in
5233  [\\/$]* | ?:[\\/]*) ;;
5234  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5235esac
5236
5237
5238  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5239$as_echo_n "checking whether NLS is requested... " >&6; }
5240    # Check whether --enable-nls was given.
5241if test "${enable_nls+set}" = set; then :
5242  enableval=$enable_nls; USE_NLS=$enableval
5243else
5244  USE_NLS=yes
5245fi
5246
5247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5248$as_echo "$USE_NLS" >&6; }
5249
5250
5251
5252
5253      GETTEXT_MACRO_VERSION=0.17
5254
5255
5256
5257
5258# Prepare PATH_SEPARATOR.
5259# The user is always right.
5260if test "${PATH_SEPARATOR+set}" != set; then
5261  echo "#! /bin/sh" >conf$$.sh
5262  echo  "exit 0"   >>conf$$.sh
5263  chmod +x conf$$.sh
5264  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5265    PATH_SEPARATOR=';'
5266  else
5267    PATH_SEPARATOR=:
5268  fi
5269  rm -f conf$$.sh
5270fi
5271
5272# Find out how to test for executable files. Don't use a zero-byte file,
5273# as systems may use methods other than mode bits to determine executability.
5274cat >conf$$.file <<_ASEOF
5275#! /bin/sh
5276exit 0
5277_ASEOF
5278chmod +x conf$$.file
5279if test -x conf$$.file >/dev/null 2>&1; then
5280  ac_executable_p="test -x"
5281else
5282  ac_executable_p="test -f"
5283fi
5284rm -f conf$$.file
5285
5286# Extract the first word of "msgfmt", so it can be a program name with args.
5287set dummy msgfmt; ac_word=$2
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289$as_echo_n "checking for $ac_word... " >&6; }
5290if ${ac_cv_path_MSGFMT+:} false; then :
5291  $as_echo_n "(cached) " >&6
5292else
5293  case "$MSGFMT" in
5294  [\\/]* | ?:[\\/]*)
5295    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5296    ;;
5297  *)
5298    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5299    for ac_dir in $PATH; do
5300      IFS="$ac_save_IFS"
5301      test -z "$ac_dir" && ac_dir=.
5302      for ac_exec_ext in '' $ac_executable_extensions; do
5303        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5304          echo "$as_me: trying $ac_dir/$ac_word..." >&5
5305          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5306     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5307            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5308            break 2
5309          fi
5310        fi
5311      done
5312    done
5313    IFS="$ac_save_IFS"
5314  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5315    ;;
5316esac
5317fi
5318MSGFMT="$ac_cv_path_MSGFMT"
5319if test "$MSGFMT" != ":"; then
5320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5321$as_echo "$MSGFMT" >&6; }
5322else
5323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324$as_echo "no" >&6; }
5325fi
5326
5327  # Extract the first word of "gmsgfmt", so it can be a program name with args.
5328set dummy gmsgfmt; ac_word=$2
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330$as_echo_n "checking for $ac_word... " >&6; }
5331if ${ac_cv_path_GMSGFMT+:} false; then :
5332  $as_echo_n "(cached) " >&6
5333else
5334  case $GMSGFMT in
5335  [\\/]* | ?:[\\/]*)
5336  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5337  ;;
5338  *)
5339  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340for as_dir in $PATH
5341do
5342  IFS=$as_save_IFS
5343  test -z "$as_dir" && as_dir=.
5344    for ac_exec_ext in '' $ac_executable_extensions; do
5345  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5346    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5347    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5348    break 2
5349  fi
5350done
5351  done
5352IFS=$as_save_IFS
5353
5354  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5355  ;;
5356esac
5357fi
5358GMSGFMT=$ac_cv_path_GMSGFMT
5359if test -n "$GMSGFMT"; then
5360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5361$as_echo "$GMSGFMT" >&6; }
5362else
5363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364$as_echo "no" >&6; }
5365fi
5366
5367
5368
5369    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5370    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5371    *) MSGFMT_015=$MSGFMT ;;
5372  esac
5373
5374  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5375    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5376    *) GMSGFMT_015=$GMSGFMT ;;
5377  esac
5378
5379
5380
5381# Prepare PATH_SEPARATOR.
5382# The user is always right.
5383if test "${PATH_SEPARATOR+set}" != set; then
5384  echo "#! /bin/sh" >conf$$.sh
5385  echo  "exit 0"   >>conf$$.sh
5386  chmod +x conf$$.sh
5387  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5388    PATH_SEPARATOR=';'
5389  else
5390    PATH_SEPARATOR=:
5391  fi
5392  rm -f conf$$.sh
5393fi
5394
5395# Find out how to test for executable files. Don't use a zero-byte file,
5396# as systems may use methods other than mode bits to determine executability.
5397cat >conf$$.file <<_ASEOF
5398#! /bin/sh
5399exit 0
5400_ASEOF
5401chmod +x conf$$.file
5402if test -x conf$$.file >/dev/null 2>&1; then
5403  ac_executable_p="test -x"
5404else
5405  ac_executable_p="test -f"
5406fi
5407rm -f conf$$.file
5408
5409# Extract the first word of "xgettext", so it can be a program name with args.
5410set dummy xgettext; ac_word=$2
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412$as_echo_n "checking for $ac_word... " >&6; }
5413if ${ac_cv_path_XGETTEXT+:} false; then :
5414  $as_echo_n "(cached) " >&6
5415else
5416  case "$XGETTEXT" in
5417  [\\/]* | ?:[\\/]*)
5418    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5419    ;;
5420  *)
5421    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5422    for ac_dir in $PATH; do
5423      IFS="$ac_save_IFS"
5424      test -z "$ac_dir" && ac_dir=.
5425      for ac_exec_ext in '' $ac_executable_extensions; do
5426        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5427          echo "$as_me: trying $ac_dir/$ac_word..." >&5
5428          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5429     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5430            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5431            break 2
5432          fi
5433        fi
5434      done
5435    done
5436    IFS="$ac_save_IFS"
5437  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5438    ;;
5439esac
5440fi
5441XGETTEXT="$ac_cv_path_XGETTEXT"
5442if test "$XGETTEXT" != ":"; then
5443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5444$as_echo "$XGETTEXT" >&6; }
5445else
5446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447$as_echo "no" >&6; }
5448fi
5449
5450    rm -f messages.po
5451
5452    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5453    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5454    *) XGETTEXT_015=$XGETTEXT ;;
5455  esac
5456
5457
5458
5459# Prepare PATH_SEPARATOR.
5460# The user is always right.
5461if test "${PATH_SEPARATOR+set}" != set; then
5462  echo "#! /bin/sh" >conf$$.sh
5463  echo  "exit 0"   >>conf$$.sh
5464  chmod +x conf$$.sh
5465  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5466    PATH_SEPARATOR=';'
5467  else
5468    PATH_SEPARATOR=:
5469  fi
5470  rm -f conf$$.sh
5471fi
5472
5473# Find out how to test for executable files. Don't use a zero-byte file,
5474# as systems may use methods other than mode bits to determine executability.
5475cat >conf$$.file <<_ASEOF
5476#! /bin/sh
5477exit 0
5478_ASEOF
5479chmod +x conf$$.file
5480if test -x conf$$.file >/dev/null 2>&1; then
5481  ac_executable_p="test -x"
5482else
5483  ac_executable_p="test -f"
5484fi
5485rm -f conf$$.file
5486
5487# Extract the first word of "msgmerge", so it can be a program name with args.
5488set dummy msgmerge; ac_word=$2
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5490$as_echo_n "checking for $ac_word... " >&6; }
5491if ${ac_cv_path_MSGMERGE+:} false; then :
5492  $as_echo_n "(cached) " >&6
5493else
5494  case "$MSGMERGE" in
5495  [\\/]* | ?:[\\/]*)
5496    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5497    ;;
5498  *)
5499    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5500    for ac_dir in $PATH; do
5501      IFS="$ac_save_IFS"
5502      test -z "$ac_dir" && ac_dir=.
5503      for ac_exec_ext in '' $ac_executable_extensions; do
5504        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5505          echo "$as_me: trying $ac_dir/$ac_word..." >&5
5506          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5507            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5508            break 2
5509          fi
5510        fi
5511      done
5512    done
5513    IFS="$ac_save_IFS"
5514  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5515    ;;
5516esac
5517fi
5518MSGMERGE="$ac_cv_path_MSGMERGE"
5519if test "$MSGMERGE" != ":"; then
5520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5521$as_echo "$MSGMERGE" >&6; }
5522else
5523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524$as_echo "no" >&6; }
5525fi
5526
5527
5528        test -n "$localedir" || localedir='${datadir}/locale'
5529
5530
5531    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5532
5533
5534  ac_config_commands="$ac_config_commands po-directories"
5535
5536
5537
5538      if test "X$prefix" = "XNONE"; then
5539    acl_final_prefix="$ac_default_prefix"
5540  else
5541    acl_final_prefix="$prefix"
5542  fi
5543  if test "X$exec_prefix" = "XNONE"; then
5544    acl_final_exec_prefix='${prefix}'
5545  else
5546    acl_final_exec_prefix="$exec_prefix"
5547  fi
5548  acl_save_prefix="$prefix"
5549  prefix="$acl_final_prefix"
5550  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5551  prefix="$acl_save_prefix"
5552
5553
5554# Check whether --with-gnu-ld was given.
5555if test "${with_gnu_ld+set}" = set; then :
5556  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5557else
5558  with_gnu_ld=no
5559fi
5560
5561# Prepare PATH_SEPARATOR.
5562# The user is always right.
5563if test "${PATH_SEPARATOR+set}" != set; then
5564  echo "#! /bin/sh" >conf$$.sh
5565  echo  "exit 0"   >>conf$$.sh
5566  chmod +x conf$$.sh
5567  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5568    PATH_SEPARATOR=';'
5569  else
5570    PATH_SEPARATOR=:
5571  fi
5572  rm -f conf$$.sh
5573fi
5574ac_prog=ld
5575if test "$GCC" = yes; then
5576  # Check if gcc -print-prog-name=ld gives a path.
5577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5578$as_echo_n "checking for ld used by GCC... " >&6; }
5579  case $host in
5580  *-*-mingw*)
5581    # gcc leaves a trailing carriage return which upsets mingw
5582    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5583  *)
5584    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5585  esac
5586  case $ac_prog in
5587    # Accept absolute paths.
5588    [\\/]* | [A-Za-z]:[\\/]*)
5589      re_direlt='/[^/][^/]*/\.\./'
5590      # Canonicalize the path of ld
5591      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5592      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5593	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5594      done
5595      test -z "$LD" && LD="$ac_prog"
5596      ;;
5597  "")
5598    # If it fails, then pretend we aren't using GCC.
5599    ac_prog=ld
5600    ;;
5601  *)
5602    # If it is relative, then search for the first ld in PATH.
5603    with_gnu_ld=unknown
5604    ;;
5605  esac
5606elif test "$with_gnu_ld" = yes; then
5607  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5608$as_echo_n "checking for GNU ld... " >&6; }
5609else
5610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5611$as_echo_n "checking for non-GNU ld... " >&6; }
5612fi
5613if ${acl_cv_path_LD+:} false; then :
5614  $as_echo_n "(cached) " >&6
5615else
5616  if test -z "$LD"; then
5617  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5618  for ac_dir in $PATH; do
5619    test -z "$ac_dir" && ac_dir=.
5620    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5621      acl_cv_path_LD="$ac_dir/$ac_prog"
5622      # Check to see if the program is GNU ld.  I'd rather use --version,
5623      # but apparently some GNU ld's only accept -v.
5624      # Break only if it was the GNU/non-GNU ld that we prefer.
5625      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5626      *GNU* | *'with BFD'*)
5627	test "$with_gnu_ld" != no && break ;;
5628      *)
5629	test "$with_gnu_ld" != yes && break ;;
5630      esac
5631    fi
5632  done
5633  IFS="$ac_save_ifs"
5634else
5635  acl_cv_path_LD="$LD" # Let the user override the test with a path.
5636fi
5637fi
5638
5639LD="$acl_cv_path_LD"
5640if test -n "$LD"; then
5641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5642$as_echo "$LD" >&6; }
5643else
5644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645$as_echo "no" >&6; }
5646fi
5647test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5649$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5650if ${acl_cv_prog_gnu_ld+:} false; then :
5651  $as_echo_n "(cached) " >&6
5652else
5653  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5654case `$LD -v 2>&1 </dev/null` in
5655*GNU* | *'with BFD'*)
5656  acl_cv_prog_gnu_ld=yes ;;
5657*)
5658  acl_cv_prog_gnu_ld=no ;;
5659esac
5660fi
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5662$as_echo "$acl_cv_prog_gnu_ld" >&6; }
5663with_gnu_ld=$acl_cv_prog_gnu_ld
5664
5665
5666
5667
5668                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5669$as_echo_n "checking for shared library run path origin... " >&6; }
5670if ${acl_cv_rpath+:} false; then :
5671  $as_echo_n "(cached) " >&6
5672else
5673
5674    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5675    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5676    . ./conftest.sh
5677    rm -f ./conftest.sh
5678    acl_cv_rpath=done
5679
5680fi
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5682$as_echo "$acl_cv_rpath" >&6; }
5683  wl="$acl_cv_wl"
5684  acl_libext="$acl_cv_libext"
5685  acl_shlibext="$acl_cv_shlibext"
5686  acl_libname_spec="$acl_cv_libname_spec"
5687  acl_library_names_spec="$acl_cv_library_names_spec"
5688  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5689  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5690  acl_hardcode_direct="$acl_cv_hardcode_direct"
5691  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5692    # Check whether --enable-rpath was given.
5693if test "${enable_rpath+set}" = set; then :
5694  enableval=$enable_rpath; :
5695else
5696  enable_rpath=yes
5697fi
5698
5699
5700
5701                  acl_libdirstem=lib
5702  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5703  if test -n "$searchpath"; then
5704    acl_save_IFS="${IFS= 	}"; IFS=":"
5705    for searchdir in $searchpath; do
5706      if test -d "$searchdir"; then
5707        case "$searchdir" in
5708          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5709          *) searchdir=`cd "$searchdir" && pwd`
5710             case "$searchdir" in
5711               */lib64 ) acl_libdirstem=lib64 ;;
5712             esac ;;
5713        esac
5714      fi
5715    done
5716    IFS="$acl_save_IFS"
5717  fi
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727    use_additional=yes
5728
5729  acl_save_prefix="$prefix"
5730  prefix="$acl_final_prefix"
5731  acl_save_exec_prefix="$exec_prefix"
5732  exec_prefix="$acl_final_exec_prefix"
5733
5734    eval additional_includedir=\"$includedir\"
5735    eval additional_libdir=\"$libdir\"
5736
5737  exec_prefix="$acl_save_exec_prefix"
5738  prefix="$acl_save_prefix"
5739
5740
5741# Check whether --with-libiconv-prefix was given.
5742if test "${with_libiconv_prefix+set}" = set; then :
5743  withval=$with_libiconv_prefix;
5744    if test "X$withval" = "Xno"; then
5745      use_additional=no
5746    else
5747      if test "X$withval" = "X"; then
5748
5749  acl_save_prefix="$prefix"
5750  prefix="$acl_final_prefix"
5751  acl_save_exec_prefix="$exec_prefix"
5752  exec_prefix="$acl_final_exec_prefix"
5753
5754          eval additional_includedir=\"$includedir\"
5755          eval additional_libdir=\"$libdir\"
5756
5757  exec_prefix="$acl_save_exec_prefix"
5758  prefix="$acl_save_prefix"
5759
5760      else
5761        additional_includedir="$withval/include"
5762        additional_libdir="$withval/$acl_libdirstem"
5763      fi
5764    fi
5765
5766fi
5767
5768      LIBICONV=
5769  LTLIBICONV=
5770  INCICONV=
5771  LIBICONV_PREFIX=
5772  rpathdirs=
5773  ltrpathdirs=
5774  names_already_handled=
5775  names_next_round='iconv '
5776  while test -n "$names_next_round"; do
5777    names_this_round="$names_next_round"
5778    names_next_round=
5779    for name in $names_this_round; do
5780      already_handled=
5781      for n in $names_already_handled; do
5782        if test "$n" = "$name"; then
5783          already_handled=yes
5784          break
5785        fi
5786      done
5787      if test -z "$already_handled"; then
5788        names_already_handled="$names_already_handled $name"
5789                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5790        eval value=\"\$HAVE_LIB$uppername\"
5791        if test -n "$value"; then
5792          if test "$value" = yes; then
5793            eval value=\"\$LIB$uppername\"
5794            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5795            eval value=\"\$LTLIB$uppername\"
5796            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5797          else
5798                                    :
5799          fi
5800        else
5801                              found_dir=
5802          found_la=
5803          found_so=
5804          found_a=
5805          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
5806          if test -n "$acl_shlibext"; then
5807            shrext=".$acl_shlibext"             # typically: shrext=.so
5808          else
5809            shrext=
5810          fi
5811          if test $use_additional = yes; then
5812            dir="$additional_libdir"
5813                                    if test -n "$acl_shlibext"; then
5814              if test -f "$dir/$libname$shrext"; then
5815                found_dir="$dir"
5816                found_so="$dir/$libname$shrext"
5817              else
5818                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5819                  ver=`(cd "$dir" && \
5820                        for f in "$libname$shrext".*; do echo "$f"; done \
5821                        | sed -e "s,^$libname$shrext\\\\.,," \
5822                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5823                        | sed 1q ) 2>/dev/null`
5824                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5825                    found_dir="$dir"
5826                    found_so="$dir/$libname$shrext.$ver"
5827                  fi
5828                else
5829                  eval library_names=\"$acl_library_names_spec\"
5830                  for f in $library_names; do
5831                    if test -f "$dir/$f"; then
5832                      found_dir="$dir"
5833                      found_so="$dir/$f"
5834                      break
5835                    fi
5836                  done
5837                fi
5838              fi
5839            fi
5840                        if test "X$found_dir" = "X"; then
5841              if test -f "$dir/$libname.$acl_libext"; then
5842                found_dir="$dir"
5843                found_a="$dir/$libname.$acl_libext"
5844              fi
5845            fi
5846            if test "X$found_dir" != "X"; then
5847              if test -f "$dir/$libname.la"; then
5848                found_la="$dir/$libname.la"
5849              fi
5850            fi
5851          fi
5852          if test "X$found_dir" = "X"; then
5853            for x in $LDFLAGS $LTLIBICONV; do
5854
5855  acl_save_prefix="$prefix"
5856  prefix="$acl_final_prefix"
5857  acl_save_exec_prefix="$exec_prefix"
5858  exec_prefix="$acl_final_exec_prefix"
5859  eval x=\"$x\"
5860  exec_prefix="$acl_save_exec_prefix"
5861  prefix="$acl_save_prefix"
5862
5863              case "$x" in
5864                -L*)
5865                  dir=`echo "X$x" | sed -e 's/^X-L//'`
5866                                    if test -n "$acl_shlibext"; then
5867                    if test -f "$dir/$libname$shrext"; then
5868                      found_dir="$dir"
5869                      found_so="$dir/$libname$shrext"
5870                    else
5871                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5872                        ver=`(cd "$dir" && \
5873                              for f in "$libname$shrext".*; do echo "$f"; done \
5874                              | sed -e "s,^$libname$shrext\\\\.,," \
5875                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5876                              | sed 1q ) 2>/dev/null`
5877                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5878                          found_dir="$dir"
5879                          found_so="$dir/$libname$shrext.$ver"
5880                        fi
5881                      else
5882                        eval library_names=\"$acl_library_names_spec\"
5883                        for f in $library_names; do
5884                          if test -f "$dir/$f"; then
5885                            found_dir="$dir"
5886                            found_so="$dir/$f"
5887                            break
5888                          fi
5889                        done
5890                      fi
5891                    fi
5892                  fi
5893                                    if test "X$found_dir" = "X"; then
5894                    if test -f "$dir/$libname.$acl_libext"; then
5895                      found_dir="$dir"
5896                      found_a="$dir/$libname.$acl_libext"
5897                    fi
5898                  fi
5899                  if test "X$found_dir" != "X"; then
5900                    if test -f "$dir/$libname.la"; then
5901                      found_la="$dir/$libname.la"
5902                    fi
5903                  fi
5904                  ;;
5905              esac
5906              if test "X$found_dir" != "X"; then
5907                break
5908              fi
5909            done
5910          fi
5911          if test "X$found_dir" != "X"; then
5912                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5913            if test "X$found_so" != "X"; then
5914                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5915                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5916              else
5917                                                                                haveit=
5918                for x in $ltrpathdirs; do
5919                  if test "X$x" = "X$found_dir"; then
5920                    haveit=yes
5921                    break
5922                  fi
5923                done
5924                if test -z "$haveit"; then
5925                  ltrpathdirs="$ltrpathdirs $found_dir"
5926                fi
5927                                if test "$acl_hardcode_direct" = yes; then
5928                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5929                else
5930                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5931                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5932                                                            haveit=
5933                    for x in $rpathdirs; do
5934                      if test "X$x" = "X$found_dir"; then
5935                        haveit=yes
5936                        break
5937                      fi
5938                    done
5939                    if test -z "$haveit"; then
5940                      rpathdirs="$rpathdirs $found_dir"
5941                    fi
5942                  else
5943                                                                                haveit=
5944                    for x in $LDFLAGS $LIBICONV; do
5945
5946  acl_save_prefix="$prefix"
5947  prefix="$acl_final_prefix"
5948  acl_save_exec_prefix="$exec_prefix"
5949  exec_prefix="$acl_final_exec_prefix"
5950  eval x=\"$x\"
5951  exec_prefix="$acl_save_exec_prefix"
5952  prefix="$acl_save_prefix"
5953
5954                      if test "X$x" = "X-L$found_dir"; then
5955                        haveit=yes
5956                        break
5957                      fi
5958                    done
5959                    if test -z "$haveit"; then
5960                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5961                    fi
5962                    if test "$acl_hardcode_minus_L" != no; then
5963                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5964                    else
5965                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5966                    fi
5967                  fi
5968                fi
5969              fi
5970            else
5971              if test "X$found_a" != "X"; then
5972                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5973              else
5974                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5975              fi
5976            fi
5977                        additional_includedir=
5978            case "$found_dir" in
5979              */$acl_libdirstem | */$acl_libdirstem/)
5980                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5981                LIBICONV_PREFIX="$basedir"
5982                additional_includedir="$basedir/include"
5983                ;;
5984            esac
5985            if test "X$additional_includedir" != "X"; then
5986                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
5987                haveit=
5988                if test "X$additional_includedir" = "X/usr/local/include"; then
5989                  if test -n "$GCC"; then
5990                    case $host_os in
5991                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5992                    esac
5993                  fi
5994                fi
5995                if test -z "$haveit"; then
5996                  for x in $CPPFLAGS $INCICONV; do
5997
5998  acl_save_prefix="$prefix"
5999  prefix="$acl_final_prefix"
6000  acl_save_exec_prefix="$exec_prefix"
6001  exec_prefix="$acl_final_exec_prefix"
6002  eval x=\"$x\"
6003  exec_prefix="$acl_save_exec_prefix"
6004  prefix="$acl_save_prefix"
6005
6006                    if test "X$x" = "X-I$additional_includedir"; then
6007                      haveit=yes
6008                      break
6009                    fi
6010                  done
6011                  if test -z "$haveit"; then
6012                    if test -d "$additional_includedir"; then
6013                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6014                    fi
6015                  fi
6016                fi
6017              fi
6018            fi
6019                        if test -n "$found_la"; then
6020                                                        save_libdir="$libdir"
6021              case "$found_la" in
6022                */* | *\\*) . "$found_la" ;;
6023                *) . "./$found_la" ;;
6024              esac
6025              libdir="$save_libdir"
6026                            for dep in $dependency_libs; do
6027                case "$dep" in
6028                  -L*)
6029                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6030                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6031                      haveit=
6032                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6033                        if test -n "$GCC"; then
6034                          case $host_os in
6035                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6036                          esac
6037                        fi
6038                      fi
6039                      if test -z "$haveit"; then
6040                        haveit=
6041                        for x in $LDFLAGS $LIBICONV; do
6042
6043  acl_save_prefix="$prefix"
6044  prefix="$acl_final_prefix"
6045  acl_save_exec_prefix="$exec_prefix"
6046  exec_prefix="$acl_final_exec_prefix"
6047  eval x=\"$x\"
6048  exec_prefix="$acl_save_exec_prefix"
6049  prefix="$acl_save_prefix"
6050
6051                          if test "X$x" = "X-L$additional_libdir"; then
6052                            haveit=yes
6053                            break
6054                          fi
6055                        done
6056                        if test -z "$haveit"; then
6057                          if test -d "$additional_libdir"; then
6058                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6059                          fi
6060                        fi
6061                        haveit=
6062                        for x in $LDFLAGS $LTLIBICONV; do
6063
6064  acl_save_prefix="$prefix"
6065  prefix="$acl_final_prefix"
6066  acl_save_exec_prefix="$exec_prefix"
6067  exec_prefix="$acl_final_exec_prefix"
6068  eval x=\"$x\"
6069  exec_prefix="$acl_save_exec_prefix"
6070  prefix="$acl_save_prefix"
6071
6072                          if test "X$x" = "X-L$additional_libdir"; then
6073                            haveit=yes
6074                            break
6075                          fi
6076                        done
6077                        if test -z "$haveit"; then
6078                          if test -d "$additional_libdir"; then
6079                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6080                          fi
6081                        fi
6082                      fi
6083                    fi
6084                    ;;
6085                  -R*)
6086                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
6087                    if test "$enable_rpath" != no; then
6088                                                                  haveit=
6089                      for x in $rpathdirs; do
6090                        if test "X$x" = "X$dir"; then
6091                          haveit=yes
6092                          break
6093                        fi
6094                      done
6095                      if test -z "$haveit"; then
6096                        rpathdirs="$rpathdirs $dir"
6097                      fi
6098                                                                  haveit=
6099                      for x in $ltrpathdirs; do
6100                        if test "X$x" = "X$dir"; then
6101                          haveit=yes
6102                          break
6103                        fi
6104                      done
6105                      if test -z "$haveit"; then
6106                        ltrpathdirs="$ltrpathdirs $dir"
6107                      fi
6108                    fi
6109                    ;;
6110                  -l*)
6111                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6112                    ;;
6113                  *.la)
6114                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6115                    ;;
6116                  *)
6117                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6118                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6119                    ;;
6120                esac
6121              done
6122            fi
6123          else
6124                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6125            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6126          fi
6127        fi
6128      fi
6129    done
6130  done
6131  if test "X$rpathdirs" != "X"; then
6132    if test -n "$acl_hardcode_libdir_separator"; then
6133                        alldirs=
6134      for found_dir in $rpathdirs; do
6135        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6136      done
6137            acl_save_libdir="$libdir"
6138      libdir="$alldirs"
6139      eval flag=\"$acl_hardcode_libdir_flag_spec\"
6140      libdir="$acl_save_libdir"
6141      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6142    else
6143            for found_dir in $rpathdirs; do
6144        acl_save_libdir="$libdir"
6145        libdir="$found_dir"
6146        eval flag=\"$acl_hardcode_libdir_flag_spec\"
6147        libdir="$acl_save_libdir"
6148        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6149      done
6150    fi
6151  fi
6152  if test "X$ltrpathdirs" != "X"; then
6153            for found_dir in $ltrpathdirs; do
6154      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6155    done
6156  fi
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6183$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6184if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6185  $as_echo_n "(cached) " >&6
6186else
6187  gt_save_LIBS="$LIBS"
6188     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6189     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190/* end confdefs.h.  */
6191#include <CoreFoundation/CFPreferences.h>
6192int
6193main ()
6194{
6195CFPreferencesCopyAppValue(NULL, NULL)
6196  ;
6197  return 0;
6198}
6199_ACEOF
6200if ac_fn_c_try_link "$LINENO"; then :
6201  gt_cv_func_CFPreferencesCopyAppValue=yes
6202else
6203  gt_cv_func_CFPreferencesCopyAppValue=no
6204fi
6205rm -f core conftest.err conftest.$ac_objext \
6206    conftest$ac_exeext conftest.$ac_ext
6207     LIBS="$gt_save_LIBS"
6208fi
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6210$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6211  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6212
6213$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6214
6215  fi
6216    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6217$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6218if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6219  $as_echo_n "(cached) " >&6
6220else
6221  gt_save_LIBS="$LIBS"
6222     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6223     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224/* end confdefs.h.  */
6225#include <CoreFoundation/CFLocale.h>
6226int
6227main ()
6228{
6229CFLocaleCopyCurrent();
6230  ;
6231  return 0;
6232}
6233_ACEOF
6234if ac_fn_c_try_link "$LINENO"; then :
6235  gt_cv_func_CFLocaleCopyCurrent=yes
6236else
6237  gt_cv_func_CFLocaleCopyCurrent=no
6238fi
6239rm -f core conftest.err conftest.$ac_objext \
6240    conftest$ac_exeext conftest.$ac_ext
6241     LIBS="$gt_save_LIBS"
6242fi
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6244$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6245  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6246
6247$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6248
6249  fi
6250  INTL_MACOSX_LIBS=
6251  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6252    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6253  fi
6254
6255
6256
6257
6258
6259
6260  LIBINTL=
6261  LTLIBINTL=
6262  POSUB=
6263
6264    case " $gt_needs " in
6265    *" need-formatstring-macros "*) gt_api_version=3 ;;
6266    *" need-ngettext "*) gt_api_version=2 ;;
6267    *) gt_api_version=1 ;;
6268  esac
6269  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6270  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6271
6272    if test "$USE_NLS" = "yes"; then
6273    gt_use_preinstalled_gnugettext=no
6274
6275
6276        if test $gt_api_version -ge 3; then
6277          gt_revision_test_code='
6278#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6279#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6280#endif
6281typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6282'
6283        else
6284          gt_revision_test_code=
6285        fi
6286        if test $gt_api_version -ge 2; then
6287          gt_expression_test_code=' + * ngettext ("", "", 0)'
6288        else
6289          gt_expression_test_code=
6290        fi
6291
6292        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6293$as_echo_n "checking for GNU gettext in libc... " >&6; }
6294if eval \${$gt_func_gnugettext_libc+:} false; then :
6295  $as_echo_n "(cached) " >&6
6296else
6297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h.  */
6299#include <libintl.h>
6300$gt_revision_test_code
6301extern int _nl_msg_cat_cntr;
6302extern int *_nl_domain_bindings;
6303int
6304main ()
6305{
6306bindtextdomain ("", "");
6307return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6308  ;
6309  return 0;
6310}
6311_ACEOF
6312if ac_fn_c_try_link "$LINENO"; then :
6313  eval "$gt_func_gnugettext_libc=yes"
6314else
6315  eval "$gt_func_gnugettext_libc=no"
6316fi
6317rm -f core conftest.err conftest.$ac_objext \
6318    conftest$ac_exeext conftest.$ac_ext
6319fi
6320eval ac_res=\$$gt_func_gnugettext_libc
6321	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6322$as_echo "$ac_res" >&6; }
6323
6324        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6325
6326
6327
6328
6329
6330          am_save_CPPFLAGS="$CPPFLAGS"
6331
6332  for element in $INCICONV; do
6333    haveit=
6334    for x in $CPPFLAGS; do
6335
6336  acl_save_prefix="$prefix"
6337  prefix="$acl_final_prefix"
6338  acl_save_exec_prefix="$exec_prefix"
6339  exec_prefix="$acl_final_exec_prefix"
6340  eval x=\"$x\"
6341  exec_prefix="$acl_save_exec_prefix"
6342  prefix="$acl_save_prefix"
6343
6344      if test "X$x" = "X$element"; then
6345        haveit=yes
6346        break
6347      fi
6348    done
6349    if test -z "$haveit"; then
6350      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6351    fi
6352  done
6353
6354
6355  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6356$as_echo_n "checking for iconv... " >&6; }
6357if ${am_cv_func_iconv+:} false; then :
6358  $as_echo_n "(cached) " >&6
6359else
6360
6361    am_cv_func_iconv="no, consider installing GNU libiconv"
6362    am_cv_lib_iconv=no
6363    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364/* end confdefs.h.  */
6365#include <stdlib.h>
6366#include <iconv.h>
6367int
6368main ()
6369{
6370iconv_t cd = iconv_open("","");
6371       iconv(cd,NULL,NULL,NULL,NULL);
6372       iconv_close(cd);
6373  ;
6374  return 0;
6375}
6376_ACEOF
6377if ac_fn_c_try_link "$LINENO"; then :
6378  am_cv_func_iconv=yes
6379fi
6380rm -f core conftest.err conftest.$ac_objext \
6381    conftest$ac_exeext conftest.$ac_ext
6382    if test "$am_cv_func_iconv" != yes; then
6383      am_save_LIBS="$LIBS"
6384      LIBS="$LIBS $LIBICONV"
6385      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386/* end confdefs.h.  */
6387#include <stdlib.h>
6388#include <iconv.h>
6389int
6390main ()
6391{
6392iconv_t cd = iconv_open("","");
6393         iconv(cd,NULL,NULL,NULL,NULL);
6394         iconv_close(cd);
6395  ;
6396  return 0;
6397}
6398_ACEOF
6399if ac_fn_c_try_link "$LINENO"; then :
6400  am_cv_lib_iconv=yes
6401        am_cv_func_iconv=yes
6402fi
6403rm -f core conftest.err conftest.$ac_objext \
6404    conftest$ac_exeext conftest.$ac_ext
6405      LIBS="$am_save_LIBS"
6406    fi
6407
6408fi
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6410$as_echo "$am_cv_func_iconv" >&6; }
6411  if test "$am_cv_func_iconv" = yes; then
6412    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6413$as_echo_n "checking for working iconv... " >&6; }
6414if ${am_cv_func_iconv_works+:} false; then :
6415  $as_echo_n "(cached) " >&6
6416else
6417
6418            am_save_LIBS="$LIBS"
6419      if test $am_cv_lib_iconv = yes; then
6420        LIBS="$LIBS $LIBICONV"
6421      fi
6422      if test "$cross_compiling" = yes; then :
6423  case "$host_os" in
6424           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6425           *)            am_cv_func_iconv_works="guessing yes" ;;
6426         esac
6427else
6428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429/* end confdefs.h.  */
6430
6431#include <iconv.h>
6432#include <string.h>
6433int main ()
6434{
6435  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6436     returns.  */
6437  {
6438    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6439    if (cd_utf8_to_88591 != (iconv_t)(-1))
6440      {
6441        static const char input[] = "\342\202\254"; /* EURO SIGN */
6442        char buf[10];
6443        const char *inptr = input;
6444        size_t inbytesleft = strlen (input);
6445        char *outptr = buf;
6446        size_t outbytesleft = sizeof (buf);
6447        size_t res = iconv (cd_utf8_to_88591,
6448                            (char **) &inptr, &inbytesleft,
6449                            &outptr, &outbytesleft);
6450        if (res == 0)
6451          return 1;
6452      }
6453  }
6454#if 0 /* This bug could be worked around by the caller.  */
6455  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
6456  {
6457    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6458    if (cd_88591_to_utf8 != (iconv_t)(-1))
6459      {
6460        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6461        char buf[50];
6462        const char *inptr = input;
6463        size_t inbytesleft = strlen (input);
6464        char *outptr = buf;
6465        size_t outbytesleft = sizeof (buf);
6466        size_t res = iconv (cd_88591_to_utf8,
6467                            (char **) &inptr, &inbytesleft,
6468                            &outptr, &outbytesleft);
6469        if ((int)res > 0)
6470          return 1;
6471      }
6472  }
6473#endif
6474  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6475     provided.  */
6476  if (/* Try standardized names.  */
6477      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6478      /* Try IRIX, OSF/1 names.  */
6479      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6480      /* Try AIX names.  */
6481      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6482      /* Try HP-UX names.  */
6483      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6484    return 1;
6485  return 0;
6486}
6487_ACEOF
6488if ac_fn_c_try_run "$LINENO"; then :
6489  am_cv_func_iconv_works=yes
6490else
6491  am_cv_func_iconv_works=no
6492fi
6493rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6494  conftest.$ac_objext conftest.beam conftest.$ac_ext
6495fi
6496
6497      LIBS="$am_save_LIBS"
6498
6499fi
6500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6501$as_echo "$am_cv_func_iconv_works" >&6; }
6502    case "$am_cv_func_iconv_works" in
6503      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6504      *)   am_func_iconv=yes ;;
6505    esac
6506  else
6507    am_func_iconv=no am_cv_lib_iconv=no
6508  fi
6509  if test "$am_func_iconv" = yes; then
6510
6511$as_echo "#define HAVE_ICONV 1" >>confdefs.h
6512
6513  fi
6514  if test "$am_cv_lib_iconv" = yes; then
6515    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6516$as_echo_n "checking how to link with libiconv... " >&6; }
6517    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6518$as_echo "$LIBICONV" >&6; }
6519  else
6520            CPPFLAGS="$am_save_CPPFLAGS"
6521    LIBICONV=
6522    LTLIBICONV=
6523  fi
6524
6525
6526
6527
6528
6529
6530
6531
6532    use_additional=yes
6533
6534  acl_save_prefix="$prefix"
6535  prefix="$acl_final_prefix"
6536  acl_save_exec_prefix="$exec_prefix"
6537  exec_prefix="$acl_final_exec_prefix"
6538
6539    eval additional_includedir=\"$includedir\"
6540    eval additional_libdir=\"$libdir\"
6541
6542  exec_prefix="$acl_save_exec_prefix"
6543  prefix="$acl_save_prefix"
6544
6545
6546# Check whether --with-libintl-prefix was given.
6547if test "${with_libintl_prefix+set}" = set; then :
6548  withval=$with_libintl_prefix;
6549    if test "X$withval" = "Xno"; then
6550      use_additional=no
6551    else
6552      if test "X$withval" = "X"; then
6553
6554  acl_save_prefix="$prefix"
6555  prefix="$acl_final_prefix"
6556  acl_save_exec_prefix="$exec_prefix"
6557  exec_prefix="$acl_final_exec_prefix"
6558
6559          eval additional_includedir=\"$includedir\"
6560          eval additional_libdir=\"$libdir\"
6561
6562  exec_prefix="$acl_save_exec_prefix"
6563  prefix="$acl_save_prefix"
6564
6565      else
6566        additional_includedir="$withval/include"
6567        additional_libdir="$withval/$acl_libdirstem"
6568      fi
6569    fi
6570
6571fi
6572
6573      LIBINTL=
6574  LTLIBINTL=
6575  INCINTL=
6576  LIBINTL_PREFIX=
6577  rpathdirs=
6578  ltrpathdirs=
6579  names_already_handled=
6580  names_next_round='intl '
6581  while test -n "$names_next_round"; do
6582    names_this_round="$names_next_round"
6583    names_next_round=
6584    for name in $names_this_round; do
6585      already_handled=
6586      for n in $names_already_handled; do
6587        if test "$n" = "$name"; then
6588          already_handled=yes
6589          break
6590        fi
6591      done
6592      if test -z "$already_handled"; then
6593        names_already_handled="$names_already_handled $name"
6594                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6595        eval value=\"\$HAVE_LIB$uppername\"
6596        if test -n "$value"; then
6597          if test "$value" = yes; then
6598            eval value=\"\$LIB$uppername\"
6599            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6600            eval value=\"\$LTLIB$uppername\"
6601            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6602          else
6603                                    :
6604          fi
6605        else
6606                              found_dir=
6607          found_la=
6608          found_so=
6609          found_a=
6610          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6611          if test -n "$acl_shlibext"; then
6612            shrext=".$acl_shlibext"             # typically: shrext=.so
6613          else
6614            shrext=
6615          fi
6616          if test $use_additional = yes; then
6617            dir="$additional_libdir"
6618                                    if test -n "$acl_shlibext"; then
6619              if test -f "$dir/$libname$shrext"; then
6620                found_dir="$dir"
6621                found_so="$dir/$libname$shrext"
6622              else
6623                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6624                  ver=`(cd "$dir" && \
6625                        for f in "$libname$shrext".*; do echo "$f"; done \
6626                        | sed -e "s,^$libname$shrext\\\\.,," \
6627                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6628                        | sed 1q ) 2>/dev/null`
6629                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6630                    found_dir="$dir"
6631                    found_so="$dir/$libname$shrext.$ver"
6632                  fi
6633                else
6634                  eval library_names=\"$acl_library_names_spec\"
6635                  for f in $library_names; do
6636                    if test -f "$dir/$f"; then
6637                      found_dir="$dir"
6638                      found_so="$dir/$f"
6639                      break
6640                    fi
6641                  done
6642                fi
6643              fi
6644            fi
6645                        if test "X$found_dir" = "X"; then
6646              if test -f "$dir/$libname.$acl_libext"; then
6647                found_dir="$dir"
6648                found_a="$dir/$libname.$acl_libext"
6649              fi
6650            fi
6651            if test "X$found_dir" != "X"; then
6652              if test -f "$dir/$libname.la"; then
6653                found_la="$dir/$libname.la"
6654              fi
6655            fi
6656          fi
6657          if test "X$found_dir" = "X"; then
6658            for x in $LDFLAGS $LTLIBINTL; do
6659
6660  acl_save_prefix="$prefix"
6661  prefix="$acl_final_prefix"
6662  acl_save_exec_prefix="$exec_prefix"
6663  exec_prefix="$acl_final_exec_prefix"
6664  eval x=\"$x\"
6665  exec_prefix="$acl_save_exec_prefix"
6666  prefix="$acl_save_prefix"
6667
6668              case "$x" in
6669                -L*)
6670                  dir=`echo "X$x" | sed -e 's/^X-L//'`
6671                                    if test -n "$acl_shlibext"; then
6672                    if test -f "$dir/$libname$shrext"; then
6673                      found_dir="$dir"
6674                      found_so="$dir/$libname$shrext"
6675                    else
6676                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6677                        ver=`(cd "$dir" && \
6678                              for f in "$libname$shrext".*; do echo "$f"; done \
6679                              | sed -e "s,^$libname$shrext\\\\.,," \
6680                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6681                              | sed 1q ) 2>/dev/null`
6682                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6683                          found_dir="$dir"
6684                          found_so="$dir/$libname$shrext.$ver"
6685                        fi
6686                      else
6687                        eval library_names=\"$acl_library_names_spec\"
6688                        for f in $library_names; do
6689                          if test -f "$dir/$f"; then
6690                            found_dir="$dir"
6691                            found_so="$dir/$f"
6692                            break
6693                          fi
6694                        done
6695                      fi
6696                    fi
6697                  fi
6698                                    if test "X$found_dir" = "X"; then
6699                    if test -f "$dir/$libname.$acl_libext"; then
6700                      found_dir="$dir"
6701                      found_a="$dir/$libname.$acl_libext"
6702                    fi
6703                  fi
6704                  if test "X$found_dir" != "X"; then
6705                    if test -f "$dir/$libname.la"; then
6706                      found_la="$dir/$libname.la"
6707                    fi
6708                  fi
6709                  ;;
6710              esac
6711              if test "X$found_dir" != "X"; then
6712                break
6713              fi
6714            done
6715          fi
6716          if test "X$found_dir" != "X"; then
6717                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6718            if test "X$found_so" != "X"; then
6719                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6720                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6721              else
6722                                                                                haveit=
6723                for x in $ltrpathdirs; do
6724                  if test "X$x" = "X$found_dir"; then
6725                    haveit=yes
6726                    break
6727                  fi
6728                done
6729                if test -z "$haveit"; then
6730                  ltrpathdirs="$ltrpathdirs $found_dir"
6731                fi
6732                                if test "$acl_hardcode_direct" = yes; then
6733                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6734                else
6735                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6736                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6737                                                            haveit=
6738                    for x in $rpathdirs; do
6739                      if test "X$x" = "X$found_dir"; then
6740                        haveit=yes
6741                        break
6742                      fi
6743                    done
6744                    if test -z "$haveit"; then
6745                      rpathdirs="$rpathdirs $found_dir"
6746                    fi
6747                  else
6748                                                                                haveit=
6749                    for x in $LDFLAGS $LIBINTL; do
6750
6751  acl_save_prefix="$prefix"
6752  prefix="$acl_final_prefix"
6753  acl_save_exec_prefix="$exec_prefix"
6754  exec_prefix="$acl_final_exec_prefix"
6755  eval x=\"$x\"
6756  exec_prefix="$acl_save_exec_prefix"
6757  prefix="$acl_save_prefix"
6758
6759                      if test "X$x" = "X-L$found_dir"; then
6760                        haveit=yes
6761                        break
6762                      fi
6763                    done
6764                    if test -z "$haveit"; then
6765                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6766                    fi
6767                    if test "$acl_hardcode_minus_L" != no; then
6768                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6769                    else
6770                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6771                    fi
6772                  fi
6773                fi
6774              fi
6775            else
6776              if test "X$found_a" != "X"; then
6777                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6778              else
6779                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6780              fi
6781            fi
6782                        additional_includedir=
6783            case "$found_dir" in
6784              */$acl_libdirstem | */$acl_libdirstem/)
6785                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6786                LIBINTL_PREFIX="$basedir"
6787                additional_includedir="$basedir/include"
6788                ;;
6789            esac
6790            if test "X$additional_includedir" != "X"; then
6791                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
6792                haveit=
6793                if test "X$additional_includedir" = "X/usr/local/include"; then
6794                  if test -n "$GCC"; then
6795                    case $host_os in
6796                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6797                    esac
6798                  fi
6799                fi
6800                if test -z "$haveit"; then
6801                  for x in $CPPFLAGS $INCINTL; do
6802
6803  acl_save_prefix="$prefix"
6804  prefix="$acl_final_prefix"
6805  acl_save_exec_prefix="$exec_prefix"
6806  exec_prefix="$acl_final_exec_prefix"
6807  eval x=\"$x\"
6808  exec_prefix="$acl_save_exec_prefix"
6809  prefix="$acl_save_prefix"
6810
6811                    if test "X$x" = "X-I$additional_includedir"; then
6812                      haveit=yes
6813                      break
6814                    fi
6815                  done
6816                  if test -z "$haveit"; then
6817                    if test -d "$additional_includedir"; then
6818                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6819                    fi
6820                  fi
6821                fi
6822              fi
6823            fi
6824                        if test -n "$found_la"; then
6825                                                        save_libdir="$libdir"
6826              case "$found_la" in
6827                */* | *\\*) . "$found_la" ;;
6828                *) . "./$found_la" ;;
6829              esac
6830              libdir="$save_libdir"
6831                            for dep in $dependency_libs; do
6832                case "$dep" in
6833                  -L*)
6834                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6835                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6836                      haveit=
6837                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6838                        if test -n "$GCC"; then
6839                          case $host_os in
6840                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6841                          esac
6842                        fi
6843                      fi
6844                      if test -z "$haveit"; then
6845                        haveit=
6846                        for x in $LDFLAGS $LIBINTL; do
6847
6848  acl_save_prefix="$prefix"
6849  prefix="$acl_final_prefix"
6850  acl_save_exec_prefix="$exec_prefix"
6851  exec_prefix="$acl_final_exec_prefix"
6852  eval x=\"$x\"
6853  exec_prefix="$acl_save_exec_prefix"
6854  prefix="$acl_save_prefix"
6855
6856                          if test "X$x" = "X-L$additional_libdir"; then
6857                            haveit=yes
6858                            break
6859                          fi
6860                        done
6861                        if test -z "$haveit"; then
6862                          if test -d "$additional_libdir"; then
6863                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6864                          fi
6865                        fi
6866                        haveit=
6867                        for x in $LDFLAGS $LTLIBINTL; do
6868
6869  acl_save_prefix="$prefix"
6870  prefix="$acl_final_prefix"
6871  acl_save_exec_prefix="$exec_prefix"
6872  exec_prefix="$acl_final_exec_prefix"
6873  eval x=\"$x\"
6874  exec_prefix="$acl_save_exec_prefix"
6875  prefix="$acl_save_prefix"
6876
6877                          if test "X$x" = "X-L$additional_libdir"; then
6878                            haveit=yes
6879                            break
6880                          fi
6881                        done
6882                        if test -z "$haveit"; then
6883                          if test -d "$additional_libdir"; then
6884                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6885                          fi
6886                        fi
6887                      fi
6888                    fi
6889                    ;;
6890                  -R*)
6891                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
6892                    if test "$enable_rpath" != no; then
6893                                                                  haveit=
6894                      for x in $rpathdirs; do
6895                        if test "X$x" = "X$dir"; then
6896                          haveit=yes
6897                          break
6898                        fi
6899                      done
6900                      if test -z "$haveit"; then
6901                        rpathdirs="$rpathdirs $dir"
6902                      fi
6903                                                                  haveit=
6904                      for x in $ltrpathdirs; do
6905                        if test "X$x" = "X$dir"; then
6906                          haveit=yes
6907                          break
6908                        fi
6909                      done
6910                      if test -z "$haveit"; then
6911                        ltrpathdirs="$ltrpathdirs $dir"
6912                      fi
6913                    fi
6914                    ;;
6915                  -l*)
6916                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6917                    ;;
6918                  *.la)
6919                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6920                    ;;
6921                  *)
6922                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6923                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6924                    ;;
6925                esac
6926              done
6927            fi
6928          else
6929                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6930            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6931          fi
6932        fi
6933      fi
6934    done
6935  done
6936  if test "X$rpathdirs" != "X"; then
6937    if test -n "$acl_hardcode_libdir_separator"; then
6938                        alldirs=
6939      for found_dir in $rpathdirs; do
6940        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6941      done
6942            acl_save_libdir="$libdir"
6943      libdir="$alldirs"
6944      eval flag=\"$acl_hardcode_libdir_flag_spec\"
6945      libdir="$acl_save_libdir"
6946      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6947    else
6948            for found_dir in $rpathdirs; do
6949        acl_save_libdir="$libdir"
6950        libdir="$found_dir"
6951        eval flag=\"$acl_hardcode_libdir_flag_spec\"
6952        libdir="$acl_save_libdir"
6953        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6954      done
6955    fi
6956  fi
6957  if test "X$ltrpathdirs" != "X"; then
6958            for found_dir in $ltrpathdirs; do
6959      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6960    done
6961  fi
6962
6963          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6964$as_echo_n "checking for GNU gettext in libintl... " >&6; }
6965if eval \${$gt_func_gnugettext_libintl+:} false; then :
6966  $as_echo_n "(cached) " >&6
6967else
6968  gt_save_CPPFLAGS="$CPPFLAGS"
6969            CPPFLAGS="$CPPFLAGS $INCINTL"
6970            gt_save_LIBS="$LIBS"
6971            LIBS="$LIBS $LIBINTL"
6972                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973/* end confdefs.h.  */
6974#include <libintl.h>
6975$gt_revision_test_code
6976extern int _nl_msg_cat_cntr;
6977extern
6978#ifdef __cplusplus
6979"C"
6980#endif
6981const char *_nl_expand_alias (const char *);
6982int
6983main ()
6984{
6985bindtextdomain ("", "");
6986return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6987  ;
6988  return 0;
6989}
6990_ACEOF
6991if ac_fn_c_try_link "$LINENO"; then :
6992  eval "$gt_func_gnugettext_libintl=yes"
6993else
6994  eval "$gt_func_gnugettext_libintl=no"
6995fi
6996rm -f core conftest.err conftest.$ac_objext \
6997    conftest$ac_exeext conftest.$ac_ext
6998                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6999              LIBS="$LIBS $LIBICONV"
7000              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001/* end confdefs.h.  */
7002#include <libintl.h>
7003$gt_revision_test_code
7004extern int _nl_msg_cat_cntr;
7005extern
7006#ifdef __cplusplus
7007"C"
7008#endif
7009const char *_nl_expand_alias (const char *);
7010int
7011main ()
7012{
7013bindtextdomain ("", "");
7014return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7015  ;
7016  return 0;
7017}
7018_ACEOF
7019if ac_fn_c_try_link "$LINENO"; then :
7020  LIBINTL="$LIBINTL $LIBICONV"
7021                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7022                eval "$gt_func_gnugettext_libintl=yes"
7023
7024fi
7025rm -f core conftest.err conftest.$ac_objext \
7026    conftest$ac_exeext conftest.$ac_ext
7027            fi
7028            CPPFLAGS="$gt_save_CPPFLAGS"
7029            LIBS="$gt_save_LIBS"
7030fi
7031eval ac_res=\$$gt_func_gnugettext_libintl
7032	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7033$as_echo "$ac_res" >&6; }
7034        fi
7035
7036                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7037           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7038                && test "$PACKAGE" != gettext-runtime \
7039                && test "$PACKAGE" != gettext-tools; }; then
7040          gt_use_preinstalled_gnugettext=yes
7041        else
7042                    LIBINTL=
7043          LTLIBINTL=
7044          INCINTL=
7045        fi
7046
7047
7048
7049    if test -n "$INTL_MACOSX_LIBS"; then
7050      if test "$gt_use_preinstalled_gnugettext" = "yes" \
7051         || test "$nls_cv_use_gnu_gettext" = "yes"; then
7052                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7053        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7054      fi
7055    fi
7056
7057    if test "$gt_use_preinstalled_gnugettext" = "yes" \
7058       || test "$nls_cv_use_gnu_gettext" = "yes"; then
7059
7060$as_echo "#define ENABLE_NLS 1" >>confdefs.h
7061
7062    else
7063      USE_NLS=no
7064    fi
7065  fi
7066
7067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7068$as_echo_n "checking whether to use NLS... " >&6; }
7069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7070$as_echo "$USE_NLS" >&6; }
7071  if test "$USE_NLS" = "yes"; then
7072    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7073$as_echo_n "checking where the gettext function comes from... " >&6; }
7074    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7075      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7076        gt_source="external libintl"
7077      else
7078        gt_source="libc"
7079      fi
7080    else
7081      gt_source="included intl directory"
7082    fi
7083    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7084$as_echo "$gt_source" >&6; }
7085  fi
7086
7087  if test "$USE_NLS" = "yes"; then
7088
7089    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7090      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7091        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7092$as_echo_n "checking how to link with libintl... " >&6; }
7093        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7094$as_echo "$LIBINTL" >&6; }
7095
7096  for element in $INCINTL; do
7097    haveit=
7098    for x in $CPPFLAGS; do
7099
7100  acl_save_prefix="$prefix"
7101  prefix="$acl_final_prefix"
7102  acl_save_exec_prefix="$exec_prefix"
7103  exec_prefix="$acl_final_exec_prefix"
7104  eval x=\"$x\"
7105  exec_prefix="$acl_save_exec_prefix"
7106  prefix="$acl_save_prefix"
7107
7108      if test "X$x" = "X$element"; then
7109        haveit=yes
7110        break
7111      fi
7112    done
7113    if test -z "$haveit"; then
7114      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7115    fi
7116  done
7117
7118      fi
7119
7120
7121$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7122
7123
7124$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7125
7126    fi
7127
7128        POSUB=po
7129  fi
7130
7131
7132
7133    INTLLIBS="$LIBINTL"
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7150	if test -n "$ac_tool_prefix"; then
7151  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7152set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154$as_echo_n "checking for $ac_word... " >&6; }
7155if ${ac_cv_path_PKG_CONFIG+:} false; then :
7156  $as_echo_n "(cached) " >&6
7157else
7158  case $PKG_CONFIG in
7159  [\\/]* | ?:[\\/]*)
7160  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7161  ;;
7162  *)
7163  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164for as_dir in $PATH
7165do
7166  IFS=$as_save_IFS
7167  test -z "$as_dir" && as_dir=.
7168    for ac_exec_ext in '' $ac_executable_extensions; do
7169  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172    break 2
7173  fi
7174done
7175  done
7176IFS=$as_save_IFS
7177
7178  ;;
7179esac
7180fi
7181PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7182if test -n "$PKG_CONFIG"; then
7183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7184$as_echo "$PKG_CONFIG" >&6; }
7185else
7186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187$as_echo "no" >&6; }
7188fi
7189
7190
7191fi
7192if test -z "$ac_cv_path_PKG_CONFIG"; then
7193  ac_pt_PKG_CONFIG=$PKG_CONFIG
7194  # Extract the first word of "pkg-config", so it can be a program name with args.
7195set dummy pkg-config; ac_word=$2
7196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197$as_echo_n "checking for $ac_word... " >&6; }
7198if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7199  $as_echo_n "(cached) " >&6
7200else
7201  case $ac_pt_PKG_CONFIG in
7202  [\\/]* | ?:[\\/]*)
7203  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7204  ;;
7205  *)
7206  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207for as_dir in $PATH
7208do
7209  IFS=$as_save_IFS
7210  test -z "$as_dir" && as_dir=.
7211    for ac_exec_ext in '' $ac_executable_extensions; do
7212  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7213    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215    break 2
7216  fi
7217done
7218  done
7219IFS=$as_save_IFS
7220
7221  ;;
7222esac
7223fi
7224ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7225if test -n "$ac_pt_PKG_CONFIG"; then
7226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7227$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7228else
7229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230$as_echo "no" >&6; }
7231fi
7232
7233  if test "x$ac_pt_PKG_CONFIG" = x; then
7234    PKG_CONFIG=""
7235  else
7236    case $cross_compiling:$ac_tool_warned in
7237yes:)
7238{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7239$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7240ac_tool_warned=yes ;;
7241esac
7242    PKG_CONFIG=$ac_pt_PKG_CONFIG
7243  fi
7244else
7245  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7246fi
7247
7248fi
7249if test -n "$PKG_CONFIG"; then
7250	_pkg_min_version=0.9.0
7251	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7252$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7253	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7254		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7255$as_echo "yes" >&6; }
7256	else
7257		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258$as_echo "no" >&6; }
7259		PKG_CONFIG=""
7260	fi
7261fi
7262
7263
7264# Checks for libraries.
7265# opportunistic
7266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
7267$as_echo_n "checking for gzopen in -lz... " >&6; }
7268if ${ac_cv_lib_z_gzopen+:} false; then :
7269  $as_echo_n "(cached) " >&6
7270else
7271  ac_check_lib_save_LIBS=$LIBS
7272LIBS="-lz  $LIBS"
7273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274/* end confdefs.h.  */
7275
7276/* Override any GCC internal prototype to avoid an error.
7277   Use char because int might match the return type of a GCC
7278   builtin and then its argument prototype would still apply.  */
7279#ifdef __cplusplus
7280extern "C"
7281#endif
7282char gzopen ();
7283int
7284main ()
7285{
7286return gzopen ();
7287  ;
7288  return 0;
7289}
7290_ACEOF
7291if ac_fn_c_try_link "$LINENO"; then :
7292  ac_cv_lib_z_gzopen=yes
7293else
7294  ac_cv_lib_z_gzopen=no
7295fi
7296rm -f core conftest.err conftest.$ac_objext \
7297    conftest$ac_exeext conftest.$ac_ext
7298LIBS=$ac_check_lib_save_LIBS
7299fi
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
7301$as_echo "$ac_cv_lib_z_gzopen" >&6; }
7302if test "x$ac_cv_lib_z_gzopen" = xyes; then :
7303  cat >>confdefs.h <<_ACEOF
7304#define HAVE_LIBZ 1
7305_ACEOF
7306
7307  LIBS="-lz $LIBS"
7308
7309fi
7310
7311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5
7312$as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; }
7313if ${ac_cv_lib_bz2_BZ2_bzopen+:} false; then :
7314  $as_echo_n "(cached) " >&6
7315else
7316  ac_check_lib_save_LIBS=$LIBS
7317LIBS="-lbz2  $LIBS"
7318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319/* end confdefs.h.  */
7320
7321/* Override any GCC internal prototype to avoid an error.
7322   Use char because int might match the return type of a GCC
7323   builtin and then its argument prototype would still apply.  */
7324#ifdef __cplusplus
7325extern "C"
7326#endif
7327char BZ2_bzopen ();
7328int
7329main ()
7330{
7331return BZ2_bzopen ();
7332  ;
7333  return 0;
7334}
7335_ACEOF
7336if ac_fn_c_try_link "$LINENO"; then :
7337  ac_cv_lib_bz2_BZ2_bzopen=yes
7338else
7339  ac_cv_lib_bz2_BZ2_bzopen=no
7340fi
7341rm -f core conftest.err conftest.$ac_objext \
7342    conftest$ac_exeext conftest.$ac_ext
7343LIBS=$ac_check_lib_save_LIBS
7344fi
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
7346$as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
7347if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes; then :
7348  cat >>confdefs.h <<_ACEOF
7349#define HAVE_LIBBZ2 1
7350_ACEOF
7351
7352  LIBS="-lbz2 $LIBS"
7353
7354fi
7355
7356# required
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
7358$as_echo_n "checking for library containing floor... " >&6; }
7359if ${ac_cv_search_floor+:} false; then :
7360  $as_echo_n "(cached) " >&6
7361else
7362  ac_func_search_save_LIBS=$LIBS
7363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364/* end confdefs.h.  */
7365
7366/* Override any GCC internal prototype to avoid an error.
7367   Use char because int might match the return type of a GCC
7368   builtin and then its argument prototype would still apply.  */
7369#ifdef __cplusplus
7370extern "C"
7371#endif
7372char floor ();
7373int
7374main ()
7375{
7376return floor ();
7377  ;
7378  return 0;
7379}
7380_ACEOF
7381for ac_lib in '' m; do
7382  if test -z "$ac_lib"; then
7383    ac_res="none required"
7384  else
7385    ac_res=-l$ac_lib
7386    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7387  fi
7388  if ac_fn_c_try_link "$LINENO"; then :
7389  ac_cv_search_floor=$ac_res
7390fi
7391rm -f core conftest.err conftest.$ac_objext \
7392    conftest$ac_exeext
7393  if ${ac_cv_search_floor+:} false; then :
7394  break
7395fi
7396done
7397if ${ac_cv_search_floor+:} false; then :
7398
7399else
7400  ac_cv_search_floor=no
7401fi
7402rm conftest.$ac_ext
7403LIBS=$ac_func_search_save_LIBS
7404fi
7405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
7406$as_echo "$ac_cv_search_floor" >&6; }
7407ac_res=$ac_cv_search_floor
7408if test "$ac_res" != no; then :
7409  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7410
7411else
7412  as_fn_error $? "POSIX math.h functions are required to build Aqualung" "$LINENO" 5
7413fi
7414
7415
7416pkg_failed=no
7417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml" >&5
7418$as_echo_n "checking for xml... " >&6; }
7419
7420if test -n "$xml_CFLAGS"; then
7421    pkg_cv_xml_CFLAGS="$xml_CFLAGS"
7422 elif test -n "$PKG_CONFIG"; then
7423    if test -n "$PKG_CONFIG" && \
7424    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
7425  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
7426  ac_status=$?
7427  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7428  test $ac_status = 0; }; then
7429  pkg_cv_xml_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
7430		      test "x$?" != "x0" && pkg_failed=yes
7431else
7432  pkg_failed=yes
7433fi
7434 else
7435    pkg_failed=untried
7436fi
7437if test -n "$xml_LIBS"; then
7438    pkg_cv_xml_LIBS="$xml_LIBS"
7439 elif test -n "$PKG_CONFIG"; then
7440    if test -n "$PKG_CONFIG" && \
7441    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
7442  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
7443  ac_status=$?
7444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7445  test $ac_status = 0; }; then
7446  pkg_cv_xml_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
7447		      test "x$?" != "x0" && pkg_failed=yes
7448else
7449  pkg_failed=yes
7450fi
7451 else
7452    pkg_failed=untried
7453fi
7454
7455
7456
7457if test $pkg_failed = yes; then
7458   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459$as_echo "no" >&6; }
7460
7461if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7462        _pkg_short_errors_supported=yes
7463else
7464        _pkg_short_errors_supported=no
7465fi
7466        if test $_pkg_short_errors_supported = yes; then
7467	        xml_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
7468        else
7469	        xml_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
7470        fi
7471	# Put the nasty error message in config.log where it belongs
7472	echo "$xml_PKG_ERRORS" >&5
7473
7474	as_fn_error $? "Package requirements (libxml-2.0) were not met:
7475
7476$xml_PKG_ERRORS
7477
7478Consider adjusting the PKG_CONFIG_PATH environment variable if you
7479installed software in a non-standard prefix.
7480
7481Alternatively, you may set the environment variables xml_CFLAGS
7482and xml_LIBS to avoid the need to call pkg-config.
7483See the pkg-config man page for more details." "$LINENO" 5
7484elif test $pkg_failed = untried; then
7485     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486$as_echo "no" >&6; }
7487	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7489as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
7490is in your PATH or set the PKG_CONFIG environment variable to the full
7491path to pkg-config.
7492
7493Alternatively, you may set the environment variables xml_CFLAGS
7494and xml_LIBS to avoid the need to call pkg-config.
7495See the pkg-config man page for more details.
7496
7497To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7498See \`config.log' for more details" "$LINENO" 5; }
7499else
7500	xml_CFLAGS=$pkg_cv_xml_CFLAGS
7501	xml_LIBS=$pkg_cv_xml_LIBS
7502        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7503$as_echo "yes" >&6; }
7504
7505fi
7506
7507pkg_failed=no
7508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib" >&5
7509$as_echo_n "checking for glib... " >&6; }
7510
7511if test -n "$glib_CFLAGS"; then
7512    pkg_cv_glib_CFLAGS="$glib_CFLAGS"
7513 elif test -n "$PKG_CONFIG"; then
7514    if test -n "$PKG_CONFIG" && \
7515    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.14 gthread-2.0\""; } >&5
7516  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.14 gthread-2.0") 2>&5
7517  ac_status=$?
7518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7519  test $ac_status = 0; }; then
7520  pkg_cv_glib_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.14 gthread-2.0" 2>/dev/null`
7521		      test "x$?" != "x0" && pkg_failed=yes
7522else
7523  pkg_failed=yes
7524fi
7525 else
7526    pkg_failed=untried
7527fi
7528if test -n "$glib_LIBS"; then
7529    pkg_cv_glib_LIBS="$glib_LIBS"
7530 elif test -n "$PKG_CONFIG"; then
7531    if test -n "$PKG_CONFIG" && \
7532    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.14 gthread-2.0\""; } >&5
7533  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.14 gthread-2.0") 2>&5
7534  ac_status=$?
7535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7536  test $ac_status = 0; }; then
7537  pkg_cv_glib_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.14 gthread-2.0" 2>/dev/null`
7538		      test "x$?" != "x0" && pkg_failed=yes
7539else
7540  pkg_failed=yes
7541fi
7542 else
7543    pkg_failed=untried
7544fi
7545
7546
7547
7548if test $pkg_failed = yes; then
7549   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550$as_echo "no" >&6; }
7551
7552if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7553        _pkg_short_errors_supported=yes
7554else
7555        _pkg_short_errors_supported=no
7556fi
7557        if test $_pkg_short_errors_supported = yes; then
7558	        glib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.14 gthread-2.0" 2>&1`
7559        else
7560	        glib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.14 gthread-2.0" 2>&1`
7561        fi
7562	# Put the nasty error message in config.log where it belongs
7563	echo "$glib_PKG_ERRORS" >&5
7564
7565	as_fn_error $? "Package requirements (glib-2.0 >= 2.14 gthread-2.0) were not met:
7566
7567$glib_PKG_ERRORS
7568
7569Consider adjusting the PKG_CONFIG_PATH environment variable if you
7570installed software in a non-standard prefix.
7571
7572Alternatively, you may set the environment variables glib_CFLAGS
7573and glib_LIBS to avoid the need to call pkg-config.
7574See the pkg-config man page for more details." "$LINENO" 5
7575elif test $pkg_failed = untried; then
7576     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577$as_echo "no" >&6; }
7578	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7580as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
7581is in your PATH or set the PKG_CONFIG environment variable to the full
7582path to pkg-config.
7583
7584Alternatively, you may set the environment variables glib_CFLAGS
7585and glib_LIBS to avoid the need to call pkg-config.
7586See the pkg-config man page for more details.
7587
7588To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7589See \`config.log' for more details" "$LINENO" 5; }
7590else
7591	glib_CFLAGS=$pkg_cv_glib_CFLAGS
7592	glib_LIBS=$pkg_cv_glib_LIBS
7593        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7594$as_echo "yes" >&6; }
7595
7596fi
7597
7598pkg_failed=no
7599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk" >&5
7600$as_echo_n "checking for gtk... " >&6; }
7601
7602if test -n "$gtk_CFLAGS"; then
7603    pkg_cv_gtk_CFLAGS="$gtk_CFLAGS"
7604 elif test -n "$PKG_CONFIG"; then
7605    if test -n "$PKG_CONFIG" && \
7606    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
7607  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
7608  ac_status=$?
7609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7610  test $ac_status = 0; }; then
7611  pkg_cv_gtk_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18" 2>/dev/null`
7612		      test "x$?" != "x0" && pkg_failed=yes
7613else
7614  pkg_failed=yes
7615fi
7616 else
7617    pkg_failed=untried
7618fi
7619if test -n "$gtk_LIBS"; then
7620    pkg_cv_gtk_LIBS="$gtk_LIBS"
7621 elif test -n "$PKG_CONFIG"; then
7622    if test -n "$PKG_CONFIG" && \
7623    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5
7624  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5
7625  ac_status=$?
7626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7627  test $ac_status = 0; }; then
7628  pkg_cv_gtk_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18" 2>/dev/null`
7629		      test "x$?" != "x0" && pkg_failed=yes
7630else
7631  pkg_failed=yes
7632fi
7633 else
7634    pkg_failed=untried
7635fi
7636
7637
7638
7639if test $pkg_failed = yes; then
7640   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641$as_echo "no" >&6; }
7642
7643if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7644        _pkg_short_errors_supported=yes
7645else
7646        _pkg_short_errors_supported=no
7647fi
7648        if test $_pkg_short_errors_supported = yes; then
7649	        gtk_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
7650        else
7651	        gtk_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18" 2>&1`
7652        fi
7653	# Put the nasty error message in config.log where it belongs
7654	echo "$gtk_PKG_ERRORS" >&5
7655
7656	as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18) were not met:
7657
7658$gtk_PKG_ERRORS
7659
7660Consider adjusting the PKG_CONFIG_PATH environment variable if you
7661installed software in a non-standard prefix.
7662
7663Alternatively, you may set the environment variables gtk_CFLAGS
7664and gtk_LIBS to avoid the need to call pkg-config.
7665See the pkg-config man page for more details." "$LINENO" 5
7666elif test $pkg_failed = untried; then
7667     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668$as_echo "no" >&6; }
7669	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7671as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
7672is in your PATH or set the PKG_CONFIG environment variable to the full
7673path to pkg-config.
7674
7675Alternatively, you may set the environment variables gtk_CFLAGS
7676and gtk_LIBS to avoid the need to call pkg-config.
7677See the pkg-config man page for more details.
7678
7679To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7680See \`config.log' for more details" "$LINENO" 5; }
7681else
7682	gtk_CFLAGS=$pkg_cv_gtk_CFLAGS
7683	gtk_LIBS=$pkg_cv_gtk_LIBS
7684        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7685$as_echo "yes" >&6; }
7686
7687fi
7688
7689
7690# Checks for header files.
7691for ac_header in dlfcn.h errno.h fcntl.h sys/ioctl.h
7692do :
7693  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7694ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7695if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7696  cat >>confdefs.h <<_ACEOF
7697#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7698_ACEOF
7699
7700fi
7701
7702done
7703
7704
7705
7706# Checks for typedefs, structures, and compiler characteristics.
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7708$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7709if ${ac_cv_c_const+:} false; then :
7710  $as_echo_n "(cached) " >&6
7711else
7712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713/* end confdefs.h.  */
7714
7715int
7716main ()
7717{
7718
7719#ifndef __cplusplus
7720  /* Ultrix mips cc rejects this sort of thing.  */
7721  typedef int charset[2];
7722  const charset cs = { 0, 0 };
7723  /* SunOS 4.1.1 cc rejects this.  */
7724  char const *const *pcpcc;
7725  char **ppc;
7726  /* NEC SVR4.0.2 mips cc rejects this.  */
7727  struct point {int x, y;};
7728  static struct point const zero = {0,0};
7729  /* AIX XL C 1.02.0.0 rejects this.
7730     It does not let you subtract one const X* pointer from another in
7731     an arm of an if-expression whose if-part is not a constant
7732     expression */
7733  const char *g = "string";
7734  pcpcc = &g + (g ? g-g : 0);
7735  /* HPUX 7.0 cc rejects these. */
7736  ++pcpcc;
7737  ppc = (char**) pcpcc;
7738  pcpcc = (char const *const *) ppc;
7739  { /* SCO 3.2v4 cc rejects this sort of thing.  */
7740    char tx;
7741    char *t = &tx;
7742    char const *s = 0 ? (char *) 0 : (char const *) 0;
7743
7744    *t++ = 0;
7745    if (s) return 0;
7746  }
7747  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7748    int x[] = {25, 17};
7749    const int *foo = &x[0];
7750    ++foo;
7751  }
7752  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7753    typedef const int *iptr;
7754    iptr p = 0;
7755    ++p;
7756  }
7757  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7758       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7759    struct s { int j; const int *ap[3]; } bx;
7760    struct s *b = &bx; b->j = 5;
7761  }
7762  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7763    const int foo = 10;
7764    if (!foo) return 0;
7765  }
7766  return !cs[0] && !zero.x;
7767#endif
7768
7769  ;
7770  return 0;
7771}
7772_ACEOF
7773if ac_fn_c_try_compile "$LINENO"; then :
7774  ac_cv_c_const=yes
7775else
7776  ac_cv_c_const=no
7777fi
7778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779fi
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7781$as_echo "$ac_cv_c_const" >&6; }
7782if test $ac_cv_c_const = no; then
7783
7784$as_echo "#define const /**/" >>confdefs.h
7785
7786fi
7787
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7789$as_echo_n "checking for inline... " >&6; }
7790if ${ac_cv_c_inline+:} false; then :
7791  $as_echo_n "(cached) " >&6
7792else
7793  ac_cv_c_inline=no
7794for ac_kw in inline __inline__ __inline; do
7795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796/* end confdefs.h.  */
7797#ifndef __cplusplus
7798typedef int foo_t;
7799static $ac_kw foo_t static_foo () {return 0; }
7800$ac_kw foo_t foo () {return 0; }
7801#endif
7802
7803_ACEOF
7804if ac_fn_c_try_compile "$LINENO"; then :
7805  ac_cv_c_inline=$ac_kw
7806fi
7807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7808  test "$ac_cv_c_inline" != no && break
7809done
7810
7811fi
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7813$as_echo "$ac_cv_c_inline" >&6; }
7814
7815case $ac_cv_c_inline in
7816  inline | yes) ;;
7817  *)
7818    case $ac_cv_c_inline in
7819      no) ac_val=;;
7820      *) ac_val=$ac_cv_c_inline;;
7821    esac
7822    cat >>confdefs.h <<_ACEOF
7823#ifndef __cplusplus
7824#define inline $ac_val
7825#endif
7826_ACEOF
7827    ;;
7828esac
7829
7830ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7831if test "x$ac_cv_type_size_t" = xyes; then :
7832
7833else
7834
7835cat >>confdefs.h <<_ACEOF
7836#define size_t unsigned int
7837_ACEOF
7838
7839fi
7840
7841
7842
7843# Checks for library functions.
7844for ac_header in stdlib.h
7845do :
7846  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
7847if test "x$ac_cv_header_stdlib_h" = xyes; then :
7848  cat >>confdefs.h <<_ACEOF
7849#define HAVE_STDLIB_H 1
7850_ACEOF
7851
7852fi
7853
7854done
7855
7856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
7857$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7858if ${ac_cv_func_malloc_0_nonnull+:} false; then :
7859  $as_echo_n "(cached) " >&6
7860else
7861  if test "$cross_compiling" = yes; then :
7862  ac_cv_func_malloc_0_nonnull=no
7863else
7864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865/* end confdefs.h.  */
7866#if defined STDC_HEADERS || defined HAVE_STDLIB_H
7867# include <stdlib.h>
7868#else
7869char *malloc ();
7870#endif
7871
7872int
7873main ()
7874{
7875return ! malloc (0);
7876  ;
7877  return 0;
7878}
7879_ACEOF
7880if ac_fn_c_try_run "$LINENO"; then :
7881  ac_cv_func_malloc_0_nonnull=yes
7882else
7883  ac_cv_func_malloc_0_nonnull=no
7884fi
7885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7886  conftest.$ac_objext conftest.beam conftest.$ac_ext
7887fi
7888
7889fi
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
7891$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7892if test $ac_cv_func_malloc_0_nonnull = yes; then :
7893
7894$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
7895
7896else
7897  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
7898
7899   case " $LIBOBJS " in
7900  *" malloc.$ac_objext "* ) ;;
7901  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7902 ;;
7903esac
7904
7905
7906$as_echo "#define malloc rpl_malloc" >>confdefs.h
7907
7908fi
7909
7910
7911for ac_func in memset mkdir psiginfo strcasestr strdup strndup strrchr strstr
7912do :
7913  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7914ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7915if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7916  cat >>confdefs.h <<_ACEOF
7917#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7918_ACEOF
7919
7920fi
7921done
7922
7923
7924
7925# Platform-specific tweaks.
7926# Check whether --enable-largefile was given.
7927if test "${enable_largefile+set}" = set; then :
7928  enableval=$enable_largefile;
7929fi
7930
7931if test "$enable_largefile" != no; then
7932
7933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7934$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7935if ${ac_cv_sys_largefile_CC+:} false; then :
7936  $as_echo_n "(cached) " >&6
7937else
7938  ac_cv_sys_largefile_CC=no
7939     if test "$GCC" != yes; then
7940       ac_save_CC=$CC
7941       while :; do
7942	 # IRIX 6.2 and later do not support large files by default,
7943	 # so use the C compiler's -n32 option if that helps.
7944	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945/* end confdefs.h.  */
7946#include <sys/types.h>
7947 /* Check that off_t can represent 2**63 - 1 correctly.
7948    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7949    since some C++ compilers masquerading as C compilers
7950    incorrectly reject 9223372036854775807.  */
7951#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7952  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7953		       && LARGE_OFF_T % 2147483647 == 1)
7954		      ? 1 : -1];
7955int
7956main ()
7957{
7958
7959  ;
7960  return 0;
7961}
7962_ACEOF
7963	 if ac_fn_c_try_compile "$LINENO"; then :
7964  break
7965fi
7966rm -f core conftest.err conftest.$ac_objext
7967	 CC="$CC -n32"
7968	 if ac_fn_c_try_compile "$LINENO"; then :
7969  ac_cv_sys_largefile_CC=' -n32'; break
7970fi
7971rm -f core conftest.err conftest.$ac_objext
7972	 break
7973       done
7974       CC=$ac_save_CC
7975       rm -f conftest.$ac_ext
7976    fi
7977fi
7978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7979$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7980  if test "$ac_cv_sys_largefile_CC" != no; then
7981    CC=$CC$ac_cv_sys_largefile_CC
7982  fi
7983
7984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7985$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7986if ${ac_cv_sys_file_offset_bits+:} false; then :
7987  $as_echo_n "(cached) " >&6
7988else
7989  while :; do
7990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991/* end confdefs.h.  */
7992#include <sys/types.h>
7993 /* Check that off_t can represent 2**63 - 1 correctly.
7994    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7995    since some C++ compilers masquerading as C compilers
7996    incorrectly reject 9223372036854775807.  */
7997#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7998  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7999		       && LARGE_OFF_T % 2147483647 == 1)
8000		      ? 1 : -1];
8001int
8002main ()
8003{
8004
8005  ;
8006  return 0;
8007}
8008_ACEOF
8009if ac_fn_c_try_compile "$LINENO"; then :
8010  ac_cv_sys_file_offset_bits=no; break
8011fi
8012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014/* end confdefs.h.  */
8015#define _FILE_OFFSET_BITS 64
8016#include <sys/types.h>
8017 /* Check that off_t can represent 2**63 - 1 correctly.
8018    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8019    since some C++ compilers masquerading as C compilers
8020    incorrectly reject 9223372036854775807.  */
8021#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8022  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8023		       && LARGE_OFF_T % 2147483647 == 1)
8024		      ? 1 : -1];
8025int
8026main ()
8027{
8028
8029  ;
8030  return 0;
8031}
8032_ACEOF
8033if ac_fn_c_try_compile "$LINENO"; then :
8034  ac_cv_sys_file_offset_bits=64; break
8035fi
8036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8037  ac_cv_sys_file_offset_bits=unknown
8038  break
8039done
8040fi
8041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8042$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8043case $ac_cv_sys_file_offset_bits in #(
8044  no | unknown) ;;
8045  *)
8046cat >>confdefs.h <<_ACEOF
8047#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8048_ACEOF
8049;;
8050esac
8051rm -rf conftest*
8052  if test $ac_cv_sys_file_offset_bits = unknown; then
8053    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8054$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8055if ${ac_cv_sys_large_files+:} false; then :
8056  $as_echo_n "(cached) " >&6
8057else
8058  while :; do
8059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060/* end confdefs.h.  */
8061#include <sys/types.h>
8062 /* Check that off_t can represent 2**63 - 1 correctly.
8063    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8064    since some C++ compilers masquerading as C compilers
8065    incorrectly reject 9223372036854775807.  */
8066#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8067  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8068		       && LARGE_OFF_T % 2147483647 == 1)
8069		      ? 1 : -1];
8070int
8071main ()
8072{
8073
8074  ;
8075  return 0;
8076}
8077_ACEOF
8078if ac_fn_c_try_compile "$LINENO"; then :
8079  ac_cv_sys_large_files=no; break
8080fi
8081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083/* end confdefs.h.  */
8084#define _LARGE_FILES 1
8085#include <sys/types.h>
8086 /* Check that off_t can represent 2**63 - 1 correctly.
8087    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8088    since some C++ compilers masquerading as C compilers
8089    incorrectly reject 9223372036854775807.  */
8090#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8091  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8092		       && LARGE_OFF_T % 2147483647 == 1)
8093		      ? 1 : -1];
8094int
8095main ()
8096{
8097
8098  ;
8099  return 0;
8100}
8101_ACEOF
8102if ac_fn_c_try_compile "$LINENO"; then :
8103  ac_cv_sys_large_files=1; break
8104fi
8105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106  ac_cv_sys_large_files=unknown
8107  break
8108done
8109fi
8110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8111$as_echo "$ac_cv_sys_large_files" >&6; }
8112case $ac_cv_sys_large_files in #(
8113  no | unknown) ;;
8114  *)
8115cat >>confdefs.h <<_ACEOF
8116#define _LARGE_FILES $ac_cv_sys_large_files
8117_ACEOF
8118;;
8119esac
8120rm -rf conftest*
8121  fi
8122
8123
8124fi
8125
8126case $host_os in #(
8127  cygwin*) :
8128    if test "x$GCC" = xyes; then :
8129  CPPFLAGS="-mwin32 $CPPFLAGS"
8130fi ;; #(
8131  *) :
8132    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8133$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8134if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8135  $as_echo_n "(cached) " >&6
8136else
8137  ac_check_lib_save_LIBS=$LIBS
8138LIBS="-lpthread  $LIBS"
8139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140/* end confdefs.h.  */
8141
8142/* Override any GCC internal prototype to avoid an error.
8143   Use char because int might match the return type of a GCC
8144   builtin and then its argument prototype would still apply.  */
8145#ifdef __cplusplus
8146extern "C"
8147#endif
8148char pthread_create ();
8149int
8150main ()
8151{
8152return pthread_create ();
8153  ;
8154  return 0;
8155}
8156_ACEOF
8157if ac_fn_c_try_link "$LINENO"; then :
8158  ac_cv_lib_pthread_pthread_create=yes
8159else
8160  ac_cv_lib_pthread_pthread_create=no
8161fi
8162rm -f core conftest.err conftest.$ac_objext \
8163    conftest$ac_exeext conftest.$ac_ext
8164LIBS=$ac_check_lib_save_LIBS
8165fi
8166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8167$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8168if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8169  cat >>confdefs.h <<_ACEOF
8170#define HAVE_LIBPTHREAD 1
8171_ACEOF
8172
8173  LIBS="-lpthread $LIBS"
8174
8175else
8176  as_fn_error $? "pthreads are required to build Aqualung" "$LINENO" 5
8177fi
8178 ;;
8179esac
8180
8181
8182
8183
8184#
8185# Feature Options
8186#
8187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
8188$as_echo_n "checking for type of build... " >&6; }
8189buildtype='release'
8190# Check whether --enable-debug was given.
8191if test "${enable_debug+set}" = set; then :
8192  enableval=$enable_debug; if test "x$enable_debug" = xyes; then :
8193  buildtype='debug'
8194fi
8195fi
8196
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $buildtype" >&5
8198$as_echo "$buildtype" >&6; }
8199if test "x$buildtype" = xrelease; then :
8200
8201$as_echo "#define RELEASE_BUILD 1" >>confdefs.h
8202
8203else
8204
8205                                        ac_fn_c_check_func "$LINENO" "backtrace_symbols" "ac_cv_func_backtrace_symbols"
8206if test "x$ac_cv_func_backtrace_symbols" = xyes; then :
8207
8208else
8209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols in -lexecinfo" >&5
8210$as_echo_n "checking for backtrace_symbols in -lexecinfo... " >&6; }
8211if ${ac_cv_lib_execinfo_backtrace_symbols+:} false; then :
8212  $as_echo_n "(cached) " >&6
8213else
8214  ac_check_lib_save_LIBS=$LIBS
8215LIBS="-lexecinfo  $LIBS"
8216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217/* end confdefs.h.  */
8218
8219/* Override any GCC internal prototype to avoid an error.
8220   Use char because int might match the return type of a GCC
8221   builtin and then its argument prototype would still apply.  */
8222#ifdef __cplusplus
8223extern "C"
8224#endif
8225char backtrace_symbols ();
8226int
8227main ()
8228{
8229return backtrace_symbols ();
8230  ;
8231  return 0;
8232}
8233_ACEOF
8234if ac_fn_c_try_link "$LINENO"; then :
8235  ac_cv_lib_execinfo_backtrace_symbols=yes
8236else
8237  ac_cv_lib_execinfo_backtrace_symbols=no
8238fi
8239rm -f core conftest.err conftest.$ac_objext \
8240    conftest$ac_exeext conftest.$ac_ext
8241LIBS=$ac_check_lib_save_LIBS
8242fi
8243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_execinfo_backtrace_symbols" >&5
8244$as_echo "$ac_cv_lib_execinfo_backtrace_symbols" >&6; }
8245if test "x$ac_cv_lib_execinfo_backtrace_symbols" = xyes; then :
8246  debug_LIBS=-lexecinfo
8247
8248else
8249  as_fn_error $? "debug builds need backtrace support" "$LINENO" 5
8250fi
8251
8252fi
8253
8254                                                        if test "x$GCC" = xyes; then :
8255
8256            debug_LDFLAGS=-rdynamic
8257
8258            CFLAGS="$CFLAGS -ggdb -g -O0"
8259
8260fi
8261        if test "x$GXX" = xyes; then :
8262  CXXFLAGS="$CXXFLAGS -ggdb -g -O0"
8263fi
8264
8265$as_echo "#define DEBUG_BUILD 1" >>confdefs.h
8266
8267
8268fi
8269
8270# Check whether --enable-jack_mgmt was given.
8271if test "${enable_jack_mgmt+set}" = set; then :
8272  enableval=$enable_jack_mgmt;
8273else
8274  enable_jack_mgmt='yes'
8275fi
8276
8277# see JACK output driver check below
8278
8279# Check whether --enable-loop was given.
8280if test "${enable_loop+set}" = set; then :
8281  enableval=$enable_loop;
8282else
8283  enable_loop='yes'
8284fi
8285
8286if test "x$enable_loop" = xyes; then :
8287
8288$as_echo "#define HAVE_LOOP 1" >>confdefs.h
8289
8290fi
8291 if test "x$enable_loop" = 'xyes'; then
8292  HAVE_LOOP_TRUE=
8293  HAVE_LOOP_FALSE='#'
8294else
8295  HAVE_LOOP_TRUE='#'
8296  HAVE_LOOP_FALSE=
8297fi
8298
8299
8300# Check whether --enable-podcast was given.
8301if test "${enable_podcast+set}" = set; then :
8302  enableval=$enable_podcast;
8303else
8304  enable_podcast='yes'
8305fi
8306
8307if test "x$enable_podcast" = xyes; then :
8308
8309$as_echo "#define HAVE_PODCAST 1" >>confdefs.h
8310
8311fi
8312 if test "x$enable_podcast" = 'xyes'; then
8313  HAVE_PODCAST_TRUE=
8314  HAVE_PODCAST_FALSE='#'
8315else
8316  HAVE_PODCAST_TRUE='#'
8317  HAVE_PODCAST_FALSE=
8318fi
8319
8320
8321# Check whether --enable-systray was given.
8322if test "${enable_systray+set}" = set; then :
8323  enableval=$enable_systray;
8324else
8325  enable_systray='yes'
8326fi
8327
8328if test "x$enable_systray" = xyes; then :
8329
8330$as_echo "#define HAVE_SYSTRAY 1" >>confdefs.h
8331
8332fi
8333
8334# Check whether --enable-transcoding was given.
8335if test "${enable_transcoding+set}" = set; then :
8336  enableval=$enable_transcoding;
8337else
8338  enable_transcoding='yes'
8339fi
8340
8341if test "x$enable_transcoding" = xyes; then :
8342
8343else
8344
8345                    with_lame='no'
8346    with_vorbisenc='no'
8347
8348fi
8349
8350
8351#
8352# Output Driver Library Options
8353#
8354
8355
8356# Check whether --with-alsa was given.
8357if test "${with_alsa+set}" = set; then :
8358  withval=$with_alsa;
8359else
8360  with_alsa='detect'
8361fi
8362
8363    if test "x$with_alsa" = xno; then :
8364
8365else
8366
8367        { $as_echo "$as_me:${as_lineno-$LINENO}: ALSA Support" >&5
8368$as_echo "$as_me: ALSA Support" >&6;}
8369
8370pkg_failed=no
8371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alsa" >&5
8372$as_echo_n "checking for alsa... " >&6; }
8373
8374if test -n "$alsa_CFLAGS"; then
8375    pkg_cv_alsa_CFLAGS="$alsa_CFLAGS"
8376 elif test -n "$PKG_CONFIG"; then
8377    if test -n "$PKG_CONFIG" && \
8378    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
8379  ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
8380  ac_status=$?
8381  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8382  test $ac_status = 0; }; then
8383  pkg_cv_alsa_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
8384		      test "x$?" != "x0" && pkg_failed=yes
8385else
8386  pkg_failed=yes
8387fi
8388 else
8389    pkg_failed=untried
8390fi
8391if test -n "$alsa_LIBS"; then
8392    pkg_cv_alsa_LIBS="$alsa_LIBS"
8393 elif test -n "$PKG_CONFIG"; then
8394    if test -n "$PKG_CONFIG" && \
8395    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
8396  ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
8397  ac_status=$?
8398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8399  test $ac_status = 0; }; then
8400  pkg_cv_alsa_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
8401		      test "x$?" != "x0" && pkg_failed=yes
8402else
8403  pkg_failed=yes
8404fi
8405 else
8406    pkg_failed=untried
8407fi
8408
8409
8410
8411if test $pkg_failed = yes; then
8412   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413$as_echo "no" >&6; }
8414
8415if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8416        _pkg_short_errors_supported=yes
8417else
8418        _pkg_short_errors_supported=no
8419fi
8420        if test $_pkg_short_errors_supported = yes; then
8421	        alsa_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "alsa" 2>&1`
8422        else
8423	        alsa_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "alsa" 2>&1`
8424        fi
8425	# Put the nasty error message in config.log where it belongs
8426	echo "$alsa_PKG_ERRORS" >&5
8427
8428	if test "x$with_alsa" = xyes; then :
8429  as_fn_error $? "ALSA support requires libasound" "$LINENO" 5
8430fi
8431elif test $pkg_failed = untried; then
8432     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433$as_echo "no" >&6; }
8434	if test "x$with_alsa" = xyes; then :
8435  as_fn_error $? "ALSA support requires libasound" "$LINENO" 5
8436fi
8437else
8438	alsa_CFLAGS=$pkg_cv_alsa_CFLAGS
8439	alsa_LIBS=$pkg_cv_alsa_LIBS
8440        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8441$as_echo "yes" >&6; }
8442
8443    if test "x$with_alsa" = xdetect; then :
8444  with_alsa='yes (found)'
8445fi
8446
8447
8448fi
8449        case $with_alsa in #(
8450  detect) :
8451    with_alsa='not found' ;; #(
8452  yes*) :
8453
8454$as_echo "#define HAVE_ALSA 1" >>confdefs.h
8455 ;; #(
8456  *) :
8457     ;;
8458esac
8459
8460fi
8461     if expr "X$with_alsa" : 'Xyes' >/dev/null; then
8462  HAVE_ALSA_TRUE=
8463  HAVE_ALSA_FALSE='#'
8464else
8465  HAVE_ALSA_TRUE='#'
8466  HAVE_ALSA_FALSE=
8467fi
8468
8469
8470
8471
8472
8473# Check whether --with-jack was given.
8474if test "${with_jack+set}" = set; then :
8475  withval=$with_jack;
8476else
8477  with_jack='detect'
8478fi
8479
8480    if test "x$with_jack" = xno; then :
8481
8482else
8483
8484        { $as_echo "$as_me:${as_lineno-$LINENO}: JACK Support" >&5
8485$as_echo "$as_me: JACK Support" >&6;}
8486        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack_on_info_shutdown in -ljack" >&5
8487$as_echo_n "checking for jack_on_info_shutdown in -ljack... " >&6; }
8488if ${ac_cv_lib_jack_jack_on_info_shutdown+:} false; then :
8489  $as_echo_n "(cached) " >&6
8490else
8491  ac_check_lib_save_LIBS=$LIBS
8492LIBS="-ljack  $LIBS"
8493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494/* end confdefs.h.  */
8495
8496/* Override any GCC internal prototype to avoid an error.
8497   Use char because int might match the return type of a GCC
8498   builtin and then its argument prototype would still apply.  */
8499#ifdef __cplusplus
8500extern "C"
8501#endif
8502char jack_on_info_shutdown ();
8503int
8504main ()
8505{
8506return jack_on_info_shutdown ();
8507  ;
8508  return 0;
8509}
8510_ACEOF
8511if ac_fn_c_try_link "$LINENO"; then :
8512  ac_cv_lib_jack_jack_on_info_shutdown=yes
8513else
8514  ac_cv_lib_jack_jack_on_info_shutdown=no
8515fi
8516rm -f core conftest.err conftest.$ac_objext \
8517    conftest$ac_exeext conftest.$ac_ext
8518LIBS=$ac_check_lib_save_LIBS
8519fi
8520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jack_jack_on_info_shutdown" >&5
8521$as_echo "$ac_cv_lib_jack_jack_on_info_shutdown" >&6; }
8522if test "x$ac_cv_lib_jack_jack_on_info_shutdown" = xyes; then :
8523
8524    if test "x$with_jack" = xdetect; then :
8525  with_jack='yes (found)'
8526fi
8527    jack_LIBS='-ljack'
8528
8529
8530else
8531  if test "x$with_jack" = xyes; then :
8532  as_fn_error $? "JACK support requires libjack" "$LINENO" 5
8533fi
8534fi
8535
8536        case $with_jack in #(
8537  detect) :
8538    with_jack='not found' ;; #(
8539  yes*) :
8540
8541$as_echo "#define HAVE_JACK 1" >>confdefs.h
8542 ;; #(
8543  *) :
8544     ;;
8545esac
8546
8547fi
8548     if expr "X$with_jack" : 'Xyes' >/dev/null; then
8549  HAVE_JACK_TRUE=
8550  HAVE_JACK_FALSE='#'
8551else
8552  HAVE_JACK_TRUE='#'
8553  HAVE_JACK_FALSE=
8554fi
8555
8556
8557case $enable_jack_mgmt/$with_jack in #(
8558  yes/yes*) :
8559
8560$as_echo "#define HAVE_JACK_MGMT 1" >>confdefs.h
8561 ;; #(
8562  *) :
8563    enable_jack_mgmt='no' ;;
8564esac
8565 if test "x$enable_jack_mgmt" = 'xyes'; then
8566  HAVE_JACK_MGMT_TRUE=
8567  HAVE_JACK_MGMT_FALSE='#'
8568else
8569  HAVE_JACK_MGMT_TRUE='#'
8570  HAVE_JACK_MGMT_FALSE=
8571fi
8572
8573
8574
8575# Check whether --with-oss was given.
8576if test "${with_oss+set}" = set; then :
8577  withval=$with_oss;
8578else
8579  with_oss='detect'
8580fi
8581
8582if test "x$with_oss" = xno; then :
8583
8584else
8585
8586    { $as_echo "$as_me:${as_lineno-$LINENO}: OSS Support" >&5
8587$as_echo "$as_me: OSS Support" >&6;}
8588                for ac_header in sys/soundcard.h soundcard.h linux/soundcard.h
8589do :
8590  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8591ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8592if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8593  cat >>confdefs.h <<_ACEOF
8594#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8595_ACEOF
8596 case $with_oss in #(
8597  *yes) :
8598     ;; #(
8599  *) :
8600    with_oss='yes (found)' ;;
8601esac
8602else
8603  with_oss="Z$with_oss"
8604fi
8605
8606done
8607
8608    case $with_oss in #(
8609  ZZZyes) :
8610    as_fn_error $? "OSS support requires soundcard.h" "$LINENO" 5 ;; #(
8611  *found*) :
8612    with_oss='yes (found)' ;; #(
8613  *yes*) :
8614    with_oss='yes' ;; #(
8615  *) :
8616    with_oss='not found' ;;
8617esac
8618    case $with_oss in #(
8619  yes*) :
8620
8621        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8622$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8623if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
8624  $as_echo_n "(cached) " >&6
8625else
8626  ac_check_lib_save_LIBS=$LIBS
8627LIBS="-lossaudio  $LIBS"
8628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629/* end confdefs.h.  */
8630
8631/* Override any GCC internal prototype to avoid an error.
8632   Use char because int might match the return type of a GCC
8633   builtin and then its argument prototype would still apply.  */
8634#ifdef __cplusplus
8635extern "C"
8636#endif
8637char _oss_ioctl ();
8638int
8639main ()
8640{
8641return _oss_ioctl ();
8642  ;
8643  return 0;
8644}
8645_ACEOF
8646if ac_fn_c_try_link "$LINENO"; then :
8647  ac_cv_lib_ossaudio__oss_ioctl=yes
8648else
8649  ac_cv_lib_ossaudio__oss_ioctl=no
8650fi
8651rm -f core conftest.err conftest.$ac_objext \
8652    conftest$ac_exeext conftest.$ac_ext
8653LIBS=$ac_check_lib_save_LIBS
8654fi
8655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8656$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8657if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
8658  oss_LIBS=-lossaudio
8659
8660fi
8661
8662
8663$as_echo "#define HAVE_OSS 1" >>confdefs.h
8664
8665     ;; #(
8666  *) :
8667     ;;
8668esac
8669
8670fi
8671 if expr "X$with_oss" : 'Xyes' >/dev/null; then
8672  HAVE_OSS_TRUE=
8673  HAVE_OSS_FALSE='#'
8674else
8675  HAVE_OSS_TRUE='#'
8676  HAVE_OSS_FALSE=
8677fi
8678
8679
8680
8681
8682# Check whether --with-pulse was given.
8683if test "${with_pulse+set}" = set; then :
8684  withval=$with_pulse;
8685else
8686  with_pulse='detect'
8687fi
8688
8689    if test "x$with_pulse" = xno; then :
8690
8691else
8692
8693        { $as_echo "$as_me:${as_lineno-$LINENO}: PulseAudio Support" >&5
8694$as_echo "$as_me: PulseAudio Support" >&6;}
8695
8696pkg_failed=no
8697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pulse" >&5
8698$as_echo_n "checking for pulse... " >&6; }
8699
8700if test -n "$pulse_CFLAGS"; then
8701    pkg_cv_pulse_CFLAGS="$pulse_CFLAGS"
8702 elif test -n "$PKG_CONFIG"; then
8703    if test -n "$PKG_CONFIG" && \
8704    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\""; } >&5
8705  ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8706  ac_status=$?
8707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8708  test $ac_status = 0; }; then
8709  pkg_cv_pulse_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
8710		      test "x$?" != "x0" && pkg_failed=yes
8711else
8712  pkg_failed=yes
8713fi
8714 else
8715    pkg_failed=untried
8716fi
8717if test -n "$pulse_LIBS"; then
8718    pkg_cv_pulse_LIBS="$pulse_LIBS"
8719 elif test -n "$PKG_CONFIG"; then
8720    if test -n "$PKG_CONFIG" && \
8721    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\""; } >&5
8722  ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8723  ac_status=$?
8724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8725  test $ac_status = 0; }; then
8726  pkg_cv_pulse_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
8727		      test "x$?" != "x0" && pkg_failed=yes
8728else
8729  pkg_failed=yes
8730fi
8731 else
8732    pkg_failed=untried
8733fi
8734
8735
8736
8737if test $pkg_failed = yes; then
8738   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739$as_echo "no" >&6; }
8740
8741if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8742        _pkg_short_errors_supported=yes
8743else
8744        _pkg_short_errors_supported=no
8745fi
8746        if test $_pkg_short_errors_supported = yes; then
8747	        pulse_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple" 2>&1`
8748        else
8749	        pulse_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple" 2>&1`
8750        fi
8751	# Put the nasty error message in config.log where it belongs
8752	echo "$pulse_PKG_ERRORS" >&5
8753
8754	if test "x$with_pulse" = xyes; then :
8755  as_fn_error $? "$pulse_PKG_ERRORS" "$LINENO" 5
8756fi
8757elif test $pkg_failed = untried; then
8758     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759$as_echo "no" >&6; }
8760	if test "x$with_pulse" = xyes; then :
8761  as_fn_error $? "$pulse_PKG_ERRORS" "$LINENO" 5
8762fi
8763else
8764	pulse_CFLAGS=$pkg_cv_pulse_CFLAGS
8765	pulse_LIBS=$pkg_cv_pulse_LIBS
8766        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8767$as_echo "yes" >&6; }
8768
8769    if test "x$with_pulse" = xdetect; then :
8770  with_pulse='yes (found)'
8771fi
8772
8773
8774fi
8775        case $with_pulse in #(
8776  detect) :
8777    with_pulse='not found' ;; #(
8778  yes*) :
8779
8780$as_echo "#define HAVE_PULSE 1" >>confdefs.h
8781 ;; #(
8782  *) :
8783     ;;
8784esac
8785
8786fi
8787     if expr "X$with_pulse" : 'Xyes' >/dev/null; then
8788  HAVE_PULSE_TRUE=
8789  HAVE_PULSE_FALSE='#'
8790else
8791  HAVE_PULSE_TRUE='#'
8792  HAVE_PULSE_FALSE=
8793fi
8794
8795
8796
8797
8798
8799# Check whether --with-sndio was given.
8800if test "${with_sndio+set}" = set; then :
8801  withval=$with_sndio;
8802else
8803  with_sndio='detect'
8804fi
8805
8806    if test "x$with_sndio" = xno; then :
8807
8808else
8809
8810        { $as_echo "$as_me:${as_lineno-$LINENO}: sndio Support" >&5
8811$as_echo "$as_me: sndio Support" >&6;}
8812        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
8813$as_echo_n "checking for sio_open in -lsndio... " >&6; }
8814if ${ac_cv_lib_sndio_sio_open+:} false; then :
8815  $as_echo_n "(cached) " >&6
8816else
8817  ac_check_lib_save_LIBS=$LIBS
8818LIBS="-lsndio  $LIBS"
8819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820/* end confdefs.h.  */
8821
8822/* Override any GCC internal prototype to avoid an error.
8823   Use char because int might match the return type of a GCC
8824   builtin and then its argument prototype would still apply.  */
8825#ifdef __cplusplus
8826extern "C"
8827#endif
8828char sio_open ();
8829int
8830main ()
8831{
8832return sio_open ();
8833  ;
8834  return 0;
8835}
8836_ACEOF
8837if ac_fn_c_try_link "$LINENO"; then :
8838  ac_cv_lib_sndio_sio_open=yes
8839else
8840  ac_cv_lib_sndio_sio_open=no
8841fi
8842rm -f core conftest.err conftest.$ac_objext \
8843    conftest$ac_exeext conftest.$ac_ext
8844LIBS=$ac_check_lib_save_LIBS
8845fi
8846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
8847$as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
8848if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
8849
8850    if test "x$with_sndio" = xdetect; then :
8851  with_sndio='yes (found)'
8852fi
8853    sndio_LIBS='-lsndio'
8854
8855
8856else
8857  if test "x$with_sndio" = xyes; then :
8858  as_fn_error $? "sndio support requires libsndio" "$LINENO" 5
8859fi
8860fi
8861
8862        case $with_sndio in #(
8863  detect) :
8864    with_sndio='not found' ;; #(
8865  yes*) :
8866
8867$as_echo "#define HAVE_SNDIO 1" >>confdefs.h
8868 ;; #(
8869  *) :
8870     ;;
8871esac
8872
8873fi
8874     if expr "X$with_sndio" : 'Xyes' >/dev/null; then
8875  HAVE_SNDIO_TRUE=
8876  HAVE_SNDIO_FALSE='#'
8877else
8878  HAVE_SNDIO_TRUE='#'
8879  HAVE_SNDIO_FALSE=
8880fi
8881
8882
8883
8884
8885
8886# Check whether --with-winmm was given.
8887if test "${with_winmm+set}" = set; then :
8888  withval=$with_winmm;
8889else
8890  with_winmm='detect'
8891fi
8892
8893    if test "x$with_winmm" = xno; then :
8894
8895else
8896
8897        { $as_echo "$as_me:${as_lineno-$LINENO}: Windows Multimedia Extensions API Support" >&5
8898$as_echo "$as_me: Windows Multimedia Extensions API Support" >&6;}
8899
8900    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for platform support" >&5
8901$as_echo_n "checking for platform support... " >&6; }
8902    case $host_os in #(
8903  cygwin*) :
8904    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8905$as_echo "yes" >&6; } ;; #(
8906  *) :
8907
8908        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8909$as_echo "no" >&6; }
8910        if test "x$with_winmm" = xyes; then :
8911  as_fn_error $? "WinMM is only supported on Microsoft Windows" "$LINENO" 5
8912fi
8913        with_winmm="not supported on $host_os"
8914     ;;
8915esac
8916    case $with_winmm in #(
8917  yes|detect) :
8918    ac_fn_c_check_header_compile "$LINENO" "mmsystem.h" "ac_cv_header_mmsystem_h" "#include <windows.h>
8919"
8920if test "x$ac_cv_header_mmsystem_h" = xyes; then :
8921
8922    if test "x$with_winmm" = xdetect; then :
8923  with_winmm='yes (found)'
8924fi
8925    winmm_LIBS='-lwinmm'
8926
8927
8928else
8929  if test "x$with_winmm" = xyes; then :
8930  as_fn_error $? "WinMM support requires mmsystem.h" "$LINENO" 5
8931fi
8932fi
8933
8934 ;; #(
8935  *) :
8936     ;;
8937esac
8938
8939        case $with_winmm in #(
8940  detect) :
8941    with_winmm='not found' ;; #(
8942  yes*) :
8943
8944$as_echo "#define HAVE_WINMM 1" >>confdefs.h
8945 ;; #(
8946  *) :
8947     ;;
8948esac
8949
8950fi
8951     if expr "X$with_winmm" : 'Xyes' >/dev/null; then
8952  HAVE_WINMM_TRUE=
8953  HAVE_WINMM_FALSE='#'
8954else
8955  HAVE_WINMM_TRUE='#'
8956  HAVE_WINMM_FALSE=
8957fi
8958
8959
8960
8961
8962#
8963# Codec Library Options
8964#
8965
8966
8967# Check whether --with-flac was given.
8968if test "${with_flac+set}" = set; then :
8969  withval=$with_flac;
8970else
8971  with_flac='detect'
8972fi
8973
8974    if test "x$with_flac" = xno; then :
8975
8976else
8977
8978        { $as_echo "$as_me:${as_lineno-$LINENO}: Free Lossless Audio Codec Support" >&5
8979$as_echo "$as_me: Free Lossless Audio Codec Support" >&6;}
8980
8981pkg_failed=no
8982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flac" >&5
8983$as_echo_n "checking for flac... " >&6; }
8984
8985if test -n "$flac_CFLAGS"; then
8986    pkg_cv_flac_CFLAGS="$flac_CFLAGS"
8987 elif test -n "$PKG_CONFIG"; then
8988    if test -n "$PKG_CONFIG" && \
8989    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac\""; } >&5
8990  ($PKG_CONFIG --exists --print-errors "flac") 2>&5
8991  ac_status=$?
8992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8993  test $ac_status = 0; }; then
8994  pkg_cv_flac_CFLAGS=`$PKG_CONFIG --cflags "flac" 2>/dev/null`
8995		      test "x$?" != "x0" && pkg_failed=yes
8996else
8997  pkg_failed=yes
8998fi
8999 else
9000    pkg_failed=untried
9001fi
9002if test -n "$flac_LIBS"; then
9003    pkg_cv_flac_LIBS="$flac_LIBS"
9004 elif test -n "$PKG_CONFIG"; then
9005    if test -n "$PKG_CONFIG" && \
9006    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac\""; } >&5
9007  ($PKG_CONFIG --exists --print-errors "flac") 2>&5
9008  ac_status=$?
9009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9010  test $ac_status = 0; }; then
9011  pkg_cv_flac_LIBS=`$PKG_CONFIG --libs "flac" 2>/dev/null`
9012		      test "x$?" != "x0" && pkg_failed=yes
9013else
9014  pkg_failed=yes
9015fi
9016 else
9017    pkg_failed=untried
9018fi
9019
9020
9021
9022if test $pkg_failed = yes; then
9023   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024$as_echo "no" >&6; }
9025
9026if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9027        _pkg_short_errors_supported=yes
9028else
9029        _pkg_short_errors_supported=no
9030fi
9031        if test $_pkg_short_errors_supported = yes; then
9032	        flac_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "flac" 2>&1`
9033        else
9034	        flac_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "flac" 2>&1`
9035        fi
9036	# Put the nasty error message in config.log where it belongs
9037	echo "$flac_PKG_ERRORS" >&5
9038
9039	if test "x$with_flac" = xyes; then :
9040  as_fn_error $? "$flac_PKG_ERRORS" "$LINENO" 5
9041fi
9042elif test $pkg_failed = untried; then
9043     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044$as_echo "no" >&6; }
9045	if test "x$with_flac" = xyes; then :
9046  as_fn_error $? "$flac_PKG_ERRORS" "$LINENO" 5
9047fi
9048else
9049	flac_CFLAGS=$pkg_cv_flac_CFLAGS
9050	flac_LIBS=$pkg_cv_flac_LIBS
9051        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9052$as_echo "yes" >&6; }
9053
9054    if test "x$with_flac" = xdetect; then :
9055  with_flac='yes (found)'
9056fi
9057
9058
9059fi
9060        case $with_flac in #(
9061  detect) :
9062    with_flac='not found' ;; #(
9063  yes*) :
9064
9065$as_echo "#define HAVE_FLAC 1" >>confdefs.h
9066 ;; #(
9067  *) :
9068     ;;
9069esac
9070
9071fi
9072     if expr "X$with_flac" : 'Xyes' >/dev/null; then
9073  HAVE_FLAC_TRUE=
9074  HAVE_FLAC_FALSE='#'
9075else
9076  HAVE_FLAC_TRUE='#'
9077  HAVE_FLAC_FALSE=
9078fi
9079
9080
9081if test "x$enable_transcoding" = xyes; then :
9082  with_flac_enc="$with_flac"
9083else
9084  with_flac_enc='no'
9085fi
9086case $with_flac_enc in #(
9087  yes*) :
9088
9089$as_echo "#define HAVE_FLAC_ENC 1" >>confdefs.h
9090 ;; #(
9091  *) :
9092     ;;
9093esac
9094
9095
9096
9097# Check whether --with-lame was given.
9098if test "${with_lame+set}" = set; then :
9099  withval=$with_lame;
9100else
9101  with_lame='detect'
9102fi
9103
9104    if test "x$with_lame" = xno; then :
9105
9106else
9107
9108        { $as_echo "$as_me:${as_lineno-$LINENO}: LAME MP3 Encoding Support" >&5
9109$as_echo "$as_me: LAME MP3 Encoding Support" >&6;}
9110        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lame_init in -lmp3lame" >&5
9111$as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
9112if ${ac_cv_lib_mp3lame_lame_init+:} false; then :
9113  $as_echo_n "(cached) " >&6
9114else
9115  ac_check_lib_save_LIBS=$LIBS
9116LIBS="-lmp3lame  $LIBS"
9117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118/* end confdefs.h.  */
9119
9120/* Override any GCC internal prototype to avoid an error.
9121   Use char because int might match the return type of a GCC
9122   builtin and then its argument prototype would still apply.  */
9123#ifdef __cplusplus
9124extern "C"
9125#endif
9126char lame_init ();
9127int
9128main ()
9129{
9130return lame_init ();
9131  ;
9132  return 0;
9133}
9134_ACEOF
9135if ac_fn_c_try_link "$LINENO"; then :
9136  ac_cv_lib_mp3lame_lame_init=yes
9137else
9138  ac_cv_lib_mp3lame_lame_init=no
9139fi
9140rm -f core conftest.err conftest.$ac_objext \
9141    conftest$ac_exeext conftest.$ac_ext
9142LIBS=$ac_check_lib_save_LIBS
9143fi
9144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp3lame_lame_init" >&5
9145$as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
9146if test "x$ac_cv_lib_mp3lame_lame_init" = xyes; then :
9147
9148    if test "x$with_lame" = xdetect; then :
9149  with_lame='yes (found)'
9150fi
9151    lame_LIBS='-lmp3lame'
9152
9153
9154else
9155  if test "x$with_lame" = xyes; then :
9156  as_fn_error $? "LAME support requires libmp3lame" "$LINENO" 5
9157fi
9158fi
9159
9160        case $with_lame in #(
9161  detect) :
9162    with_lame='not found' ;; #(
9163  yes*) :
9164
9165$as_echo "#define HAVE_LAME 1" >>confdefs.h
9166 ;; #(
9167  *) :
9168     ;;
9169esac
9170
9171fi
9172     if expr "X$with_lame" : 'Xyes' >/dev/null; then
9173  HAVE_LAME_TRUE=
9174  HAVE_LAME_FALSE='#'
9175else
9176  HAVE_LAME_TRUE='#'
9177  HAVE_LAME_FALSE=
9178fi
9179
9180
9181
9182
9183
9184# Check whether --with-lavc was given.
9185if test "${with_lavc+set}" = set; then :
9186  withval=$with_lavc;
9187else
9188  with_lavc='detect'
9189fi
9190
9191    if test "x$with_lavc" = xno; then :
9192
9193else
9194
9195        { $as_echo "$as_me:${as_lineno-$LINENO}: Libav / FFmpeg Support" >&5
9196$as_echo "$as_me: Libav / FFmpeg Support" >&6;}
9197
9198pkg_failed=no
9199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lavc" >&5
9200$as_echo_n "checking for lavc... " >&6; }
9201
9202if test -n "$lavc_CFLAGS"; then
9203    pkg_cv_lavc_CFLAGS="$lavc_CFLAGS"
9204 elif test -n "$PKG_CONFIG"; then
9205    if test -n "$PKG_CONFIG" && \
9206    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec libavformat libavutil\""; } >&5
9207  ($PKG_CONFIG --exists --print-errors "libavcodec libavformat libavutil") 2>&5
9208  ac_status=$?
9209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9210  test $ac_status = 0; }; then
9211  pkg_cv_lavc_CFLAGS=`$PKG_CONFIG --cflags "libavcodec libavformat libavutil" 2>/dev/null`
9212		      test "x$?" != "x0" && pkg_failed=yes
9213else
9214  pkg_failed=yes
9215fi
9216 else
9217    pkg_failed=untried
9218fi
9219if test -n "$lavc_LIBS"; then
9220    pkg_cv_lavc_LIBS="$lavc_LIBS"
9221 elif test -n "$PKG_CONFIG"; then
9222    if test -n "$PKG_CONFIG" && \
9223    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavcodec libavformat libavutil\""; } >&5
9224  ($PKG_CONFIG --exists --print-errors "libavcodec libavformat libavutil") 2>&5
9225  ac_status=$?
9226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9227  test $ac_status = 0; }; then
9228  pkg_cv_lavc_LIBS=`$PKG_CONFIG --libs "libavcodec libavformat libavutil" 2>/dev/null`
9229		      test "x$?" != "x0" && pkg_failed=yes
9230else
9231  pkg_failed=yes
9232fi
9233 else
9234    pkg_failed=untried
9235fi
9236
9237
9238
9239if test $pkg_failed = yes; then
9240   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9241$as_echo "no" >&6; }
9242
9243if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9244        _pkg_short_errors_supported=yes
9245else
9246        _pkg_short_errors_supported=no
9247fi
9248        if test $_pkg_short_errors_supported = yes; then
9249	        lavc_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libavcodec libavformat libavutil" 2>&1`
9250        else
9251	        lavc_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libavcodec libavformat libavutil" 2>&1`
9252        fi
9253	# Put the nasty error message in config.log where it belongs
9254	echo "$lavc_PKG_ERRORS" >&5
9255
9256	if test "x$with_lavc" = xyes; then :
9257  as_fn_error $? "$lavc_PKG_ERRORS" "$LINENO" 5
9258fi
9259elif test $pkg_failed = untried; then
9260     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9261$as_echo "no" >&6; }
9262	if test "x$with_lavc" = xyes; then :
9263  as_fn_error $? "$lavc_PKG_ERRORS" "$LINENO" 5
9264fi
9265else
9266	lavc_CFLAGS=$pkg_cv_lavc_CFLAGS
9267	lavc_LIBS=$pkg_cv_lavc_LIBS
9268        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9269$as_echo "yes" >&6; }
9270
9271    if test "x$with_lavc" = xdetect; then :
9272  with_lavc='yes (found)'
9273fi
9274
9275
9276fi
9277        case $with_lavc in #(
9278  detect) :
9279    with_lavc='not found' ;; #(
9280  yes*) :
9281
9282$as_echo "#define HAVE_LAVC 1" >>confdefs.h
9283 ;; #(
9284  *) :
9285     ;;
9286esac
9287
9288fi
9289     if expr "X$with_lavc" : 'Xyes' >/dev/null; then
9290  HAVE_LAVC_TRUE=
9291  HAVE_LAVC_FALSE='#'
9292else
9293  HAVE_LAVC_TRUE='#'
9294  HAVE_LAVC_FALSE=
9295fi
9296
9297
9298
9299
9300
9301# Check whether --with-mac was given.
9302if test "${with_mac+set}" = set; then :
9303  withval=$with_mac;
9304else
9305  with_mac='detect'
9306fi
9307
9308    if test "x$with_mac" = xno; then :
9309
9310else
9311
9312        { $as_echo "$as_me:${as_lineno-$LINENO}: Monkey's Audio Codec Support" >&5
9313$as_echo "$as_me: Monkey's Audio Codec Support" >&6;}
9314        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateIAPEDecompress in -lmac" >&5
9315$as_echo_n "checking for CreateIAPEDecompress in -lmac... " >&6; }
9316if ${ac_cv_lib_mac_CreateIAPEDecompress+:} false; then :
9317  $as_echo_n "(cached) " >&6
9318else
9319  ac_check_lib_save_LIBS=$LIBS
9320LIBS="-lmac -lstdc++ $LIBS"
9321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322/* end confdefs.h.  */
9323
9324/* Override any GCC internal prototype to avoid an error.
9325   Use char because int might match the return type of a GCC
9326   builtin and then its argument prototype would still apply.  */
9327#ifdef __cplusplus
9328extern "C"
9329#endif
9330char CreateIAPEDecompress ();
9331int
9332main ()
9333{
9334return CreateIAPEDecompress ();
9335  ;
9336  return 0;
9337}
9338_ACEOF
9339if ac_fn_c_try_link "$LINENO"; then :
9340  ac_cv_lib_mac_CreateIAPEDecompress=yes
9341else
9342  ac_cv_lib_mac_CreateIAPEDecompress=no
9343fi
9344rm -f core conftest.err conftest.$ac_objext \
9345    conftest$ac_exeext conftest.$ac_ext
9346LIBS=$ac_check_lib_save_LIBS
9347fi
9348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mac_CreateIAPEDecompress" >&5
9349$as_echo "$ac_cv_lib_mac_CreateIAPEDecompress" >&6; }
9350if test "x$ac_cv_lib_mac_CreateIAPEDecompress" = xyes; then :
9351
9352    if test "x$with_mac" = xdetect; then :
9353  with_mac='yes (found)'
9354fi
9355    mac_LIBS='-lmac -lstdc++'
9356
9357
9358else
9359  if test "x$with_mac" = xyes; then :
9360  as_fn_error $? "Monkey's Audio Codec support requires libmac" "$LINENO" 5
9361fi
9362fi
9363
9364        case $with_mac in #(
9365  detect) :
9366    with_mac='not found' ;; #(
9367  yes*) :
9368
9369$as_echo "#define HAVE_MAC 1" >>confdefs.h
9370 ;; #(
9371  *) :
9372     ;;
9373esac
9374
9375fi
9376     if expr "X$with_mac" : 'Xyes' >/dev/null; then
9377  HAVE_MAC_TRUE=
9378  HAVE_MAC_FALSE='#'
9379else
9380  HAVE_MAC_TRUE='#'
9381  HAVE_MAC_FALSE=
9382fi
9383
9384
9385
9386
9387
9388# Check whether --with-mod was given.
9389if test "${with_mod+set}" = set; then :
9390  withval=$with_mod;
9391else
9392  with_mod='detect'
9393fi
9394
9395    if test "x$with_mod" = xno; then :
9396
9397else
9398
9399        { $as_echo "$as_me:${as_lineno-$LINENO}: MOD Audio Support" >&5
9400$as_echo "$as_me: MOD Audio Support" >&6;}
9401
9402pkg_failed=no
9403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mod" >&5
9404$as_echo_n "checking for mod... " >&6; }
9405
9406if test -n "$mod_CFLAGS"; then
9407    pkg_cv_mod_CFLAGS="$mod_CFLAGS"
9408 elif test -n "$PKG_CONFIG"; then
9409    if test -n "$PKG_CONFIG" && \
9410    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmodplug >= 0.8.4\""; } >&5
9411  ($PKG_CONFIG --exists --print-errors "libmodplug >= 0.8.4") 2>&5
9412  ac_status=$?
9413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9414  test $ac_status = 0; }; then
9415  pkg_cv_mod_CFLAGS=`$PKG_CONFIG --cflags "libmodplug >= 0.8.4" 2>/dev/null`
9416		      test "x$?" != "x0" && pkg_failed=yes
9417else
9418  pkg_failed=yes
9419fi
9420 else
9421    pkg_failed=untried
9422fi
9423if test -n "$mod_LIBS"; then
9424    pkg_cv_mod_LIBS="$mod_LIBS"
9425 elif test -n "$PKG_CONFIG"; then
9426    if test -n "$PKG_CONFIG" && \
9427    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmodplug >= 0.8.4\""; } >&5
9428  ($PKG_CONFIG --exists --print-errors "libmodplug >= 0.8.4") 2>&5
9429  ac_status=$?
9430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9431  test $ac_status = 0; }; then
9432  pkg_cv_mod_LIBS=`$PKG_CONFIG --libs "libmodplug >= 0.8.4" 2>/dev/null`
9433		      test "x$?" != "x0" && pkg_failed=yes
9434else
9435  pkg_failed=yes
9436fi
9437 else
9438    pkg_failed=untried
9439fi
9440
9441
9442
9443if test $pkg_failed = yes; then
9444   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9445$as_echo "no" >&6; }
9446
9447if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9448        _pkg_short_errors_supported=yes
9449else
9450        _pkg_short_errors_supported=no
9451fi
9452        if test $_pkg_short_errors_supported = yes; then
9453	        mod_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmodplug >= 0.8.4" 2>&1`
9454        else
9455	        mod_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmodplug >= 0.8.4" 2>&1`
9456        fi
9457	# Put the nasty error message in config.log where it belongs
9458	echo "$mod_PKG_ERRORS" >&5
9459
9460	if test "x$with_mod" = xyes; then :
9461  as_fn_error $? "$mod_PKG_ERRORS" "$LINENO" 5
9462fi
9463elif test $pkg_failed = untried; then
9464     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9465$as_echo "no" >&6; }
9466	if test "x$with_mod" = xyes; then :
9467  as_fn_error $? "$mod_PKG_ERRORS" "$LINENO" 5
9468fi
9469else
9470	mod_CFLAGS=$pkg_cv_mod_CFLAGS
9471	mod_LIBS=$pkg_cv_mod_LIBS
9472        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9473$as_echo "yes" >&6; }
9474
9475    if test "x$with_mod" = xdetect; then :
9476  with_mod='yes (found)'
9477fi
9478
9479
9480fi
9481        case $with_mod in #(
9482  detect) :
9483    with_mod='not found' ;; #(
9484  yes*) :
9485
9486$as_echo "#define HAVE_MOD 1" >>confdefs.h
9487 ;; #(
9488  *) :
9489     ;;
9490esac
9491
9492fi
9493     if expr "X$with_mod" : 'Xyes' >/dev/null; then
9494  HAVE_MOD_TRUE=
9495  HAVE_MOD_FALSE='#'
9496else
9497  HAVE_MOD_TRUE='#'
9498  HAVE_MOD_FALSE=
9499fi
9500
9501
9502
9503
9504
9505# Check whether --with-mpc was given.
9506if test "${with_mpc+set}" = set; then :
9507  withval=$with_mpc;
9508else
9509  with_mpc='detect'
9510fi
9511
9512    if test "x$with_mpc" = xno; then :
9513
9514else
9515
9516        { $as_echo "$as_me:${as_lineno-$LINENO}: Musepack Support" >&5
9517$as_echo "$as_me: Musepack Support" >&6;}
9518
9519    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpc_demux_init in -lmpcdec" >&5
9520$as_echo_n "checking for mpc_demux_init in -lmpcdec... " >&6; }
9521if ${ac_cv_lib_mpcdec_mpc_demux_init+:} false; then :
9522  $as_echo_n "(cached) " >&6
9523else
9524  ac_check_lib_save_LIBS=$LIBS
9525LIBS="-lmpcdec  $LIBS"
9526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527/* end confdefs.h.  */
9528
9529/* Override any GCC internal prototype to avoid an error.
9530   Use char because int might match the return type of a GCC
9531   builtin and then its argument prototype would still apply.  */
9532#ifdef __cplusplus
9533extern "C"
9534#endif
9535char mpc_demux_init ();
9536int
9537main ()
9538{
9539return mpc_demux_init ();
9540  ;
9541  return 0;
9542}
9543_ACEOF
9544if ac_fn_c_try_link "$LINENO"; then :
9545  ac_cv_lib_mpcdec_mpc_demux_init=yes
9546else
9547  ac_cv_lib_mpcdec_mpc_demux_init=no
9548fi
9549rm -f core conftest.err conftest.$ac_objext \
9550    conftest$ac_exeext conftest.$ac_ext
9551LIBS=$ac_check_lib_save_LIBS
9552fi
9553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpcdec_mpc_demux_init" >&5
9554$as_echo "$ac_cv_lib_mpcdec_mpc_demux_init" >&6; }
9555if test "x$ac_cv_lib_mpcdec_mpc_demux_init" = xyes; then :
9556
9557    if test "x$with_mpc" = xdetect; then :
9558  with_mpc='yes (found)'
9559fi
9560    mpc_LIBS='-lmpcdec'
9561
9562
9563else
9564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpc_streaminfo_init in -lmpcdec" >&5
9565$as_echo_n "checking for mpc_streaminfo_init in -lmpcdec... " >&6; }
9566if ${ac_cv_lib_mpcdec_mpc_streaminfo_init+:} false; then :
9567  $as_echo_n "(cached) " >&6
9568else
9569  ac_check_lib_save_LIBS=$LIBS
9570LIBS="-lmpcdec  $LIBS"
9571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9572/* end confdefs.h.  */
9573
9574/* Override any GCC internal prototype to avoid an error.
9575   Use char because int might match the return type of a GCC
9576   builtin and then its argument prototype would still apply.  */
9577#ifdef __cplusplus
9578extern "C"
9579#endif
9580char mpc_streaminfo_init ();
9581int
9582main ()
9583{
9584return mpc_streaminfo_init ();
9585  ;
9586  return 0;
9587}
9588_ACEOF
9589if ac_fn_c_try_link "$LINENO"; then :
9590  ac_cv_lib_mpcdec_mpc_streaminfo_init=yes
9591else
9592  ac_cv_lib_mpcdec_mpc_streaminfo_init=no
9593fi
9594rm -f core conftest.err conftest.$ac_objext \
9595    conftest$ac_exeext conftest.$ac_ext
9596LIBS=$ac_check_lib_save_LIBS
9597fi
9598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpcdec_mpc_streaminfo_init" >&5
9599$as_echo "$ac_cv_lib_mpcdec_mpc_streaminfo_init" >&6; }
9600if test "x$ac_cv_lib_mpcdec_mpc_streaminfo_init" = xyes; then :
9601
9602
9603    if test "x$with_mpc" = xdetect; then :
9604  with_mpc='yes (found)'
9605fi
9606    mpc_LIBS='-lmpcdec'
9607
9608
9609
9610$as_echo "#define MPC_OLD_API 1" >>confdefs.h
9611
9612
9613else
9614  if test "x$with_mpc" = xyes; then :
9615  as_fn_error $? "Musepack support requires libmpcdec" "$LINENO" 5
9616fi
9617fi
9618
9619fi
9620
9621
9622        case $with_mpc in #(
9623  detect) :
9624    with_mpc='not found' ;; #(
9625  yes*) :
9626
9627$as_echo "#define HAVE_MPC 1" >>confdefs.h
9628 ;; #(
9629  *) :
9630     ;;
9631esac
9632
9633fi
9634     if expr "X$with_mpc" : 'Xyes' >/dev/null; then
9635  HAVE_MPC_TRUE=
9636  HAVE_MPC_FALSE='#'
9637else
9638  HAVE_MPC_TRUE='#'
9639  HAVE_MPC_FALSE=
9640fi
9641
9642
9643
9644
9645
9646# Check whether --with-mpeg was given.
9647if test "${with_mpeg+set}" = set; then :
9648  withval=$with_mpeg;
9649else
9650  with_mpeg='detect'
9651fi
9652
9653    if test "x$with_mpeg" = xno; then :
9654
9655else
9656
9657        { $as_echo "$as_me:${as_lineno-$LINENO}: MPEG Audio Support" >&5
9658$as_echo "$as_me: MPEG Audio Support" >&6;}
9659
9660pkg_failed=no
9661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mad" >&5
9662$as_echo_n "checking for mad... " >&6; }
9663
9664if test -n "$mad_CFLAGS"; then
9665    pkg_cv_mad_CFLAGS="$mad_CFLAGS"
9666 elif test -n "$PKG_CONFIG"; then
9667    if test -n "$PKG_CONFIG" && \
9668    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mad\""; } >&5
9669  ($PKG_CONFIG --exists --print-errors "mad") 2>&5
9670  ac_status=$?
9671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9672  test $ac_status = 0; }; then
9673  pkg_cv_mad_CFLAGS=`$PKG_CONFIG --cflags "mad" 2>/dev/null`
9674		      test "x$?" != "x0" && pkg_failed=yes
9675else
9676  pkg_failed=yes
9677fi
9678 else
9679    pkg_failed=untried
9680fi
9681if test -n "$mad_LIBS"; then
9682    pkg_cv_mad_LIBS="$mad_LIBS"
9683 elif test -n "$PKG_CONFIG"; then
9684    if test -n "$PKG_CONFIG" && \
9685    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mad\""; } >&5
9686  ($PKG_CONFIG --exists --print-errors "mad") 2>&5
9687  ac_status=$?
9688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9689  test $ac_status = 0; }; then
9690  pkg_cv_mad_LIBS=`$PKG_CONFIG --libs "mad" 2>/dev/null`
9691		      test "x$?" != "x0" && pkg_failed=yes
9692else
9693  pkg_failed=yes
9694fi
9695 else
9696    pkg_failed=untried
9697fi
9698
9699
9700
9701if test $pkg_failed = yes; then
9702   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9703$as_echo "no" >&6; }
9704
9705if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9706        _pkg_short_errors_supported=yes
9707else
9708        _pkg_short_errors_supported=no
9709fi
9710        if test $_pkg_short_errors_supported = yes; then
9711	        mad_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mad" 2>&1`
9712        else
9713	        mad_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mad" 2>&1`
9714        fi
9715	# Put the nasty error message in config.log where it belongs
9716	echo "$mad_PKG_ERRORS" >&5
9717
9718	if test "x$with_mpeg" = xyes; then :
9719  as_fn_error $? "$mad_PKG_ERRORS" "$LINENO" 5
9720fi
9721elif test $pkg_failed = untried; then
9722     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9723$as_echo "no" >&6; }
9724	if test "x$with_mpeg" = xyes; then :
9725  as_fn_error $? "$mad_PKG_ERRORS" "$LINENO" 5
9726fi
9727else
9728	mad_CFLAGS=$pkg_cv_mad_CFLAGS
9729	mad_LIBS=$pkg_cv_mad_LIBS
9730        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9731$as_echo "yes" >&6; }
9732
9733    if test "x$with_mpeg" = xdetect; then :
9734  with_mpeg='yes (found)'
9735fi
9736
9737
9738fi
9739        case $with_mpeg in #(
9740  detect) :
9741    with_mpeg='not found' ;; #(
9742  yes*) :
9743
9744$as_echo "#define HAVE_MPEG 1" >>confdefs.h
9745 ;; #(
9746  *) :
9747     ;;
9748esac
9749
9750fi
9751     if expr "X$with_mpeg" : 'Xyes' >/dev/null; then
9752  HAVE_MPEG_TRUE=
9753  HAVE_MPEG_FALSE='#'
9754else
9755  HAVE_MPEG_TRUE='#'
9756  HAVE_MPEG_FALSE=
9757fi
9758
9759
9760
9761
9762
9763# Check whether --with-sndfile was given.
9764if test "${with_sndfile+set}" = set; then :
9765  withval=$with_sndfile;
9766else
9767  with_sndfile='detect'
9768fi
9769
9770    if test "x$with_sndfile" = xno; then :
9771
9772else
9773
9774        { $as_echo "$as_me:${as_lineno-$LINENO}: sndfile (WAV, AIFF, etc.) Support" >&5
9775$as_echo "$as_me: sndfile (WAV, AIFF, etc.) Support" >&6;}
9776
9777
9778pkg_failed=no
9779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndfile" >&5
9780$as_echo_n "checking for sndfile... " >&6; }
9781
9782if test -n "$sndfile_CFLAGS"; then
9783    pkg_cv_sndfile_CFLAGS="$sndfile_CFLAGS"
9784 elif test -n "$PKG_CONFIG"; then
9785    if test -n "$PKG_CONFIG" && \
9786    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.17\""; } >&5
9787  ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.17") 2>&5
9788  ac_status=$?
9789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9790  test $ac_status = 0; }; then
9791  pkg_cv_sndfile_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.17" 2>/dev/null`
9792		      test "x$?" != "x0" && pkg_failed=yes
9793else
9794  pkg_failed=yes
9795fi
9796 else
9797    pkg_failed=untried
9798fi
9799if test -n "$sndfile_LIBS"; then
9800    pkg_cv_sndfile_LIBS="$sndfile_LIBS"
9801 elif test -n "$PKG_CONFIG"; then
9802    if test -n "$PKG_CONFIG" && \
9803    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.17\""; } >&5
9804  ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.17") 2>&5
9805  ac_status=$?
9806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9807  test $ac_status = 0; }; then
9808  pkg_cv_sndfile_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.17" 2>/dev/null`
9809		      test "x$?" != "x0" && pkg_failed=yes
9810else
9811  pkg_failed=yes
9812fi
9813 else
9814    pkg_failed=untried
9815fi
9816
9817
9818
9819if test $pkg_failed = yes; then
9820   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9821$as_echo "no" >&6; }
9822
9823if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9824        _pkg_short_errors_supported=yes
9825else
9826        _pkg_short_errors_supported=no
9827fi
9828        if test $_pkg_short_errors_supported = yes; then
9829	        sndfile_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.17" 2>&1`
9830        else
9831	        sndfile_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.17" 2>&1`
9832        fi
9833	# Put the nasty error message in config.log where it belongs
9834	echo "$sndfile_PKG_ERRORS" >&5
9835
9836	if test "x$with_sndfile" = xyes; then :
9837  as_fn_error $? "$sndfile_PKG_ERRORS" "$LINENO" 5
9838fi
9839elif test $pkg_failed = untried; then
9840     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9841$as_echo "no" >&6; }
9842	if test "x$with_sndfile" = xyes; then :
9843  as_fn_error $? "$sndfile_PKG_ERRORS" "$LINENO" 5
9844fi
9845else
9846	sndfile_CFLAGS=$pkg_cv_sndfile_CFLAGS
9847	sndfile_LIBS=$pkg_cv_sndfile_LIBS
9848        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9849$as_echo "yes" >&6; }
9850
9851    if test "x$with_sndfile" = xdetect; then :
9852  with_sndfile='yes (found)'
9853fi
9854
9855
9856fi
9857    if test -n "$PKG_CONFIG" && \
9858    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.18\""; } >&5
9859  ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.18") 2>&5
9860  ac_status=$?
9861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9862  test $ac_status = 0; }; then
9863
9864$as_echo "#define HAVE_SNDFILE_1_0_18 1" >>confdefs.h
9865
9866fi
9867
9868        case $with_sndfile in #(
9869  detect) :
9870    with_sndfile='not found' ;; #(
9871  yes*) :
9872
9873$as_echo "#define HAVE_SNDFILE 1" >>confdefs.h
9874 ;; #(
9875  *) :
9876     ;;
9877esac
9878
9879fi
9880     if expr "X$with_sndfile" : 'Xyes' >/dev/null; then
9881  HAVE_SNDFILE_TRUE=
9882  HAVE_SNDFILE_FALSE='#'
9883else
9884  HAVE_SNDFILE_TRUE='#'
9885  HAVE_SNDFILE_FALSE=
9886fi
9887
9888
9889if test "x$enable_transcoding" = xyes; then :
9890  with_sndfile_enc="$with_sndfile"
9891else
9892  with_sndfile_enc='no'
9893fi
9894case $with_sndfile_enc in #(
9895  yes*) :
9896
9897$as_echo "#define HAVE_SNDFILE_ENC 1" >>confdefs.h
9898 ;; #(
9899  *) :
9900     ;;
9901esac
9902
9903
9904
9905# Check whether --with-speex was given.
9906if test "${with_speex+set}" = set; then :
9907  withval=$with_speex;
9908else
9909  with_speex='detect'
9910fi
9911
9912    if test "x$with_speex" = xno; then :
9913
9914else
9915
9916        { $as_echo "$as_me:${as_lineno-$LINENO}: Ogg Speex Support" >&5
9917$as_echo "$as_me: Ogg Speex Support" >&6;}
9918
9919pkg_failed=no
9920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex" >&5
9921$as_echo_n "checking for speex... " >&6; }
9922
9923if test -n "$speex_CFLAGS"; then
9924    pkg_cv_speex_CFLAGS="$speex_CFLAGS"
9925 elif test -n "$PKG_CONFIG"; then
9926    if test -n "$PKG_CONFIG" && \
9927    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"oggz speex ogg\""; } >&5
9928  ($PKG_CONFIG --exists --print-errors "oggz speex ogg") 2>&5
9929  ac_status=$?
9930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9931  test $ac_status = 0; }; then
9932  pkg_cv_speex_CFLAGS=`$PKG_CONFIG --cflags "oggz speex ogg" 2>/dev/null`
9933		      test "x$?" != "x0" && pkg_failed=yes
9934else
9935  pkg_failed=yes
9936fi
9937 else
9938    pkg_failed=untried
9939fi
9940if test -n "$speex_LIBS"; then
9941    pkg_cv_speex_LIBS="$speex_LIBS"
9942 elif test -n "$PKG_CONFIG"; then
9943    if test -n "$PKG_CONFIG" && \
9944    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"oggz speex ogg\""; } >&5
9945  ($PKG_CONFIG --exists --print-errors "oggz speex ogg") 2>&5
9946  ac_status=$?
9947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9948  test $ac_status = 0; }; then
9949  pkg_cv_speex_LIBS=`$PKG_CONFIG --libs "oggz speex ogg" 2>/dev/null`
9950		      test "x$?" != "x0" && pkg_failed=yes
9951else
9952  pkg_failed=yes
9953fi
9954 else
9955    pkg_failed=untried
9956fi
9957
9958
9959
9960if test $pkg_failed = yes; then
9961   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962$as_echo "no" >&6; }
9963
9964if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9965        _pkg_short_errors_supported=yes
9966else
9967        _pkg_short_errors_supported=no
9968fi
9969        if test $_pkg_short_errors_supported = yes; then
9970	        speex_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "oggz speex ogg" 2>&1`
9971        else
9972	        speex_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "oggz speex ogg" 2>&1`
9973        fi
9974	# Put the nasty error message in config.log where it belongs
9975	echo "$speex_PKG_ERRORS" >&5
9976
9977	if test "x$with_speex" = xyes; then :
9978  as_fn_error $? "$speex_PKG_ERRORS" "$LINENO" 5
9979fi
9980elif test $pkg_failed = untried; then
9981     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9982$as_echo "no" >&6; }
9983	if test "x$with_speex" = xyes; then :
9984  as_fn_error $? "$speex_PKG_ERRORS" "$LINENO" 5
9985fi
9986else
9987	speex_CFLAGS=$pkg_cv_speex_CFLAGS
9988	speex_LIBS=$pkg_cv_speex_LIBS
9989        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9990$as_echo "yes" >&6; }
9991
9992    if test "x$with_speex" = xdetect; then :
9993  with_speex='yes (found)'
9994fi
9995
9996
9997fi
9998        case $with_speex in #(
9999  detect) :
10000    with_speex='not found' ;; #(
10001  yes*) :
10002
10003$as_echo "#define HAVE_SPEEX 1" >>confdefs.h
10004 ;; #(
10005  *) :
10006     ;;
10007esac
10008
10009fi
10010     if expr "X$with_speex" : 'Xyes' >/dev/null; then
10011  HAVE_SPEEX_TRUE=
10012  HAVE_SPEEX_FALSE='#'
10013else
10014  HAVE_SPEEX_TRUE='#'
10015  HAVE_SPEEX_FALSE=
10016fi
10017
10018
10019
10020
10021
10022# Check whether --with-vorbis was given.
10023if test "${with_vorbis+set}" = set; then :
10024  withval=$with_vorbis;
10025else
10026  with_vorbis='detect'
10027fi
10028
10029    if test "x$with_vorbis" = xno; then :
10030
10031else
10032
10033        { $as_echo "$as_me:${as_lineno-$LINENO}: Ogg Vorbis Support" >&5
10034$as_echo "$as_me: Ogg Vorbis Support" >&6;}
10035
10036pkg_failed=no
10037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbis" >&5
10038$as_echo_n "checking for vorbis... " >&6; }
10039
10040if test -n "$vorbis_CFLAGS"; then
10041    pkg_cv_vorbis_CFLAGS="$vorbis_CFLAGS"
10042 elif test -n "$PKG_CONFIG"; then
10043    if test -n "$PKG_CONFIG" && \
10044    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbis vorbisfile ogg\""; } >&5
10045  ($PKG_CONFIG --exists --print-errors "vorbis vorbisfile ogg") 2>&5
10046  ac_status=$?
10047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10048  test $ac_status = 0; }; then
10049  pkg_cv_vorbis_CFLAGS=`$PKG_CONFIG --cflags "vorbis vorbisfile ogg" 2>/dev/null`
10050		      test "x$?" != "x0" && pkg_failed=yes
10051else
10052  pkg_failed=yes
10053fi
10054 else
10055    pkg_failed=untried
10056fi
10057if test -n "$vorbis_LIBS"; then
10058    pkg_cv_vorbis_LIBS="$vorbis_LIBS"
10059 elif test -n "$PKG_CONFIG"; then
10060    if test -n "$PKG_CONFIG" && \
10061    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbis vorbisfile ogg\""; } >&5
10062  ($PKG_CONFIG --exists --print-errors "vorbis vorbisfile ogg") 2>&5
10063  ac_status=$?
10064  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10065  test $ac_status = 0; }; then
10066  pkg_cv_vorbis_LIBS=`$PKG_CONFIG --libs "vorbis vorbisfile ogg" 2>/dev/null`
10067		      test "x$?" != "x0" && pkg_failed=yes
10068else
10069  pkg_failed=yes
10070fi
10071 else
10072    pkg_failed=untried
10073fi
10074
10075
10076
10077if test $pkg_failed = yes; then
10078   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079$as_echo "no" >&6; }
10080
10081if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10082        _pkg_short_errors_supported=yes
10083else
10084        _pkg_short_errors_supported=no
10085fi
10086        if test $_pkg_short_errors_supported = yes; then
10087	        vorbis_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "vorbis vorbisfile ogg" 2>&1`
10088        else
10089	        vorbis_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "vorbis vorbisfile ogg" 2>&1`
10090        fi
10091	# Put the nasty error message in config.log where it belongs
10092	echo "$vorbis_PKG_ERRORS" >&5
10093
10094	if test "x$with_vorbis" = xyes; then :
10095  as_fn_error $? "$vorbis_PKG_ERRORS" "$LINENO" 5
10096fi
10097elif test $pkg_failed = untried; then
10098     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10099$as_echo "no" >&6; }
10100	if test "x$with_vorbis" = xyes; then :
10101  as_fn_error $? "$vorbis_PKG_ERRORS" "$LINENO" 5
10102fi
10103else
10104	vorbis_CFLAGS=$pkg_cv_vorbis_CFLAGS
10105	vorbis_LIBS=$pkg_cv_vorbis_LIBS
10106        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10107$as_echo "yes" >&6; }
10108
10109    if test "x$with_vorbis" = xdetect; then :
10110  with_vorbis='yes (found)'
10111fi
10112
10113
10114fi
10115        case $with_vorbis in #(
10116  detect) :
10117    with_vorbis='not found' ;; #(
10118  yes*) :
10119
10120$as_echo "#define HAVE_VORBIS 1" >>confdefs.h
10121 ;; #(
10122  *) :
10123     ;;
10124esac
10125
10126fi
10127     if expr "X$with_vorbis" : 'Xyes' >/dev/null; then
10128  HAVE_VORBIS_TRUE=
10129  HAVE_VORBIS_FALSE='#'
10130else
10131  HAVE_VORBIS_TRUE='#'
10132  HAVE_VORBIS_FALSE=
10133fi
10134
10135
10136
10137
10138
10139# Check whether --with-vorbisenc was given.
10140if test "${with_vorbisenc+set}" = set; then :
10141  withval=$with_vorbisenc;
10142else
10143  with_vorbisenc='detect'
10144fi
10145
10146    if test "x$with_vorbisenc" = xno; then :
10147
10148else
10149
10150        { $as_echo "$as_me:${as_lineno-$LINENO}: Ogg Vorbis Encoding Support" >&5
10151$as_echo "$as_me: Ogg Vorbis Encoding Support" >&6;}
10152
10153pkg_failed=no
10154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbisenc" >&5
10155$as_echo_n "checking for vorbisenc... " >&6; }
10156
10157if test -n "$vorbisenc_CFLAGS"; then
10158    pkg_cv_vorbisenc_CFLAGS="$vorbisenc_CFLAGS"
10159 elif test -n "$PKG_CONFIG"; then
10160    if test -n "$PKG_CONFIG" && \
10161    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbisenc ogg\""; } >&5
10162  ($PKG_CONFIG --exists --print-errors "vorbisenc ogg") 2>&5
10163  ac_status=$?
10164  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10165  test $ac_status = 0; }; then
10166  pkg_cv_vorbisenc_CFLAGS=`$PKG_CONFIG --cflags "vorbisenc ogg" 2>/dev/null`
10167		      test "x$?" != "x0" && pkg_failed=yes
10168else
10169  pkg_failed=yes
10170fi
10171 else
10172    pkg_failed=untried
10173fi
10174if test -n "$vorbisenc_LIBS"; then
10175    pkg_cv_vorbisenc_LIBS="$vorbisenc_LIBS"
10176 elif test -n "$PKG_CONFIG"; then
10177    if test -n "$PKG_CONFIG" && \
10178    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbisenc ogg\""; } >&5
10179  ($PKG_CONFIG --exists --print-errors "vorbisenc ogg") 2>&5
10180  ac_status=$?
10181  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10182  test $ac_status = 0; }; then
10183  pkg_cv_vorbisenc_LIBS=`$PKG_CONFIG --libs "vorbisenc ogg" 2>/dev/null`
10184		      test "x$?" != "x0" && pkg_failed=yes
10185else
10186  pkg_failed=yes
10187fi
10188 else
10189    pkg_failed=untried
10190fi
10191
10192
10193
10194if test $pkg_failed = yes; then
10195   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10196$as_echo "no" >&6; }
10197
10198if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10199        _pkg_short_errors_supported=yes
10200else
10201        _pkg_short_errors_supported=no
10202fi
10203        if test $_pkg_short_errors_supported = yes; then
10204	        vorbisenc_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "vorbisenc ogg" 2>&1`
10205        else
10206	        vorbisenc_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "vorbisenc ogg" 2>&1`
10207        fi
10208	# Put the nasty error message in config.log where it belongs
10209	echo "$vorbisenc_PKG_ERRORS" >&5
10210
10211	if test "x$with_vorbisenc" = xyes; then :
10212  as_fn_error $? "$vorbisenc_PKG_ERRORS" "$LINENO" 5
10213fi
10214elif test $pkg_failed = untried; then
10215     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10216$as_echo "no" >&6; }
10217	if test "x$with_vorbisenc" = xyes; then :
10218  as_fn_error $? "$vorbisenc_PKG_ERRORS" "$LINENO" 5
10219fi
10220else
10221	vorbisenc_CFLAGS=$pkg_cv_vorbisenc_CFLAGS
10222	vorbisenc_LIBS=$pkg_cv_vorbisenc_LIBS
10223        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10224$as_echo "yes" >&6; }
10225
10226    if test "x$with_vorbisenc" = xdetect; then :
10227  with_vorbisenc='yes (found)'
10228fi
10229
10230
10231fi
10232        case $with_vorbisenc in #(
10233  detect) :
10234    with_vorbisenc='not found' ;; #(
10235  yes*) :
10236
10237$as_echo "#define HAVE_VORBISENC 1" >>confdefs.h
10238 ;; #(
10239  *) :
10240     ;;
10241esac
10242
10243fi
10244     if expr "X$with_vorbisenc" : 'Xyes' >/dev/null; then
10245  HAVE_VORBISENC_TRUE=
10246  HAVE_VORBISENC_FALSE='#'
10247else
10248  HAVE_VORBISENC_TRUE='#'
10249  HAVE_VORBISENC_FALSE=
10250fi
10251
10252
10253case $with_flac_enc/$with_lame/$with_sndfile_enc/$with_vorbisenc in #(
10254  *yes*) :
10255
10256$as_echo "#define HAVE_TRANSCODING 1" >>confdefs.h
10257 ;; #(
10258  *) :
10259    enable_transcoding='no' ;;
10260esac
10261 if test "x$enable_transcoding" = 'xyes'; then
10262  HAVE_TRANSCODING_TRUE=
10263  HAVE_TRANSCODING_FALSE='#'
10264else
10265  HAVE_TRANSCODING_TRUE='#'
10266  HAVE_TRANSCODING_FALSE=
10267fi
10268
10269
10270
10271
10272# Check whether --with-wavpack was given.
10273if test "${with_wavpack+set}" = set; then :
10274  withval=$with_wavpack;
10275else
10276  with_wavpack='detect'
10277fi
10278
10279    if test "x$with_wavpack" = xno; then :
10280
10281else
10282
10283        { $as_echo "$as_me:${as_lineno-$LINENO}: WavPack Support" >&5
10284$as_echo "$as_me: WavPack Support" >&6;}
10285
10286pkg_failed=no
10287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wavpack" >&5
10288$as_echo_n "checking for wavpack... " >&6; }
10289
10290if test -n "$wavpack_CFLAGS"; then
10291    pkg_cv_wavpack_CFLAGS="$wavpack_CFLAGS"
10292 elif test -n "$PKG_CONFIG"; then
10293    if test -n "$PKG_CONFIG" && \
10294    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wavpack >= 4.40.0\""; } >&5
10295  ($PKG_CONFIG --exists --print-errors "wavpack >= 4.40.0") 2>&5
10296  ac_status=$?
10297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10298  test $ac_status = 0; }; then
10299  pkg_cv_wavpack_CFLAGS=`$PKG_CONFIG --cflags "wavpack >= 4.40.0" 2>/dev/null`
10300		      test "x$?" != "x0" && pkg_failed=yes
10301else
10302  pkg_failed=yes
10303fi
10304 else
10305    pkg_failed=untried
10306fi
10307if test -n "$wavpack_LIBS"; then
10308    pkg_cv_wavpack_LIBS="$wavpack_LIBS"
10309 elif test -n "$PKG_CONFIG"; then
10310    if test -n "$PKG_CONFIG" && \
10311    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wavpack >= 4.40.0\""; } >&5
10312  ($PKG_CONFIG --exists --print-errors "wavpack >= 4.40.0") 2>&5
10313  ac_status=$?
10314  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10315  test $ac_status = 0; }; then
10316  pkg_cv_wavpack_LIBS=`$PKG_CONFIG --libs "wavpack >= 4.40.0" 2>/dev/null`
10317		      test "x$?" != "x0" && pkg_failed=yes
10318else
10319  pkg_failed=yes
10320fi
10321 else
10322    pkg_failed=untried
10323fi
10324
10325
10326
10327if test $pkg_failed = yes; then
10328   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329$as_echo "no" >&6; }
10330
10331if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10332        _pkg_short_errors_supported=yes
10333else
10334        _pkg_short_errors_supported=no
10335fi
10336        if test $_pkg_short_errors_supported = yes; then
10337	        wavpack_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wavpack >= 4.40.0" 2>&1`
10338        else
10339	        wavpack_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wavpack >= 4.40.0" 2>&1`
10340        fi
10341	# Put the nasty error message in config.log where it belongs
10342	echo "$wavpack_PKG_ERRORS" >&5
10343
10344	if test "x$with_wavpack" = xyes; then :
10345  as_fn_error $? "$wavpack_PKG_ERRORS" "$LINENO" 5
10346fi
10347elif test $pkg_failed = untried; then
10348     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349$as_echo "no" >&6; }
10350	if test "x$with_wavpack" = xyes; then :
10351  as_fn_error $? "$wavpack_PKG_ERRORS" "$LINENO" 5
10352fi
10353else
10354	wavpack_CFLAGS=$pkg_cv_wavpack_CFLAGS
10355	wavpack_LIBS=$pkg_cv_wavpack_LIBS
10356        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10357$as_echo "yes" >&6; }
10358
10359    if test "x$with_wavpack" = xdetect; then :
10360  with_wavpack='yes (found)'
10361fi
10362
10363
10364fi
10365        case $with_wavpack in #(
10366  detect) :
10367    with_wavpack='not found' ;; #(
10368  yes*) :
10369
10370$as_echo "#define HAVE_WAVPACK 1" >>confdefs.h
10371 ;; #(
10372  *) :
10373     ;;
10374esac
10375
10376fi
10377     if expr "X$with_wavpack" : 'Xyes' >/dev/null; then
10378  HAVE_WAVPACK_TRUE=
10379  HAVE_WAVPACK_FALSE='#'
10380else
10381  HAVE_WAVPACK_TRUE='#'
10382  HAVE_WAVPACK_FALSE=
10383fi
10384
10385
10386
10387
10388#
10389# DSP Library Options
10390#
10391
10392
10393# Check whether --with-ladspa was given.
10394if test "${with_ladspa+set}" = set; then :
10395  withval=$with_ladspa;
10396else
10397  with_ladspa='detect'
10398fi
10399
10400    if test "x$with_ladspa" = xno; then :
10401
10402else
10403
10404        { $as_echo "$as_me:${as_lineno-$LINENO}: LADSPA Plugin Support" >&5
10405$as_echo "$as_me: LADSPA Plugin Support" >&6;}
10406
10407
10408pkg_failed=no
10409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrdf" >&5
10410$as_echo_n "checking for lrdf... " >&6; }
10411
10412if test -n "$lrdf_CFLAGS"; then
10413    pkg_cv_lrdf_CFLAGS="$lrdf_CFLAGS"
10414 elif test -n "$PKG_CONFIG"; then
10415    if test -n "$PKG_CONFIG" && \
10416    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lrdf >= 0.4.0\""; } >&5
10417  ($PKG_CONFIG --exists --print-errors "lrdf >= 0.4.0") 2>&5
10418  ac_status=$?
10419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10420  test $ac_status = 0; }; then
10421  pkg_cv_lrdf_CFLAGS=`$PKG_CONFIG --cflags "lrdf >= 0.4.0" 2>/dev/null`
10422		      test "x$?" != "x0" && pkg_failed=yes
10423else
10424  pkg_failed=yes
10425fi
10426 else
10427    pkg_failed=untried
10428fi
10429if test -n "$lrdf_LIBS"; then
10430    pkg_cv_lrdf_LIBS="$lrdf_LIBS"
10431 elif test -n "$PKG_CONFIG"; then
10432    if test -n "$PKG_CONFIG" && \
10433    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lrdf >= 0.4.0\""; } >&5
10434  ($PKG_CONFIG --exists --print-errors "lrdf >= 0.4.0") 2>&5
10435  ac_status=$?
10436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10437  test $ac_status = 0; }; then
10438  pkg_cv_lrdf_LIBS=`$PKG_CONFIG --libs "lrdf >= 0.4.0" 2>/dev/null`
10439		      test "x$?" != "x0" && pkg_failed=yes
10440else
10441  pkg_failed=yes
10442fi
10443 else
10444    pkg_failed=untried
10445fi
10446
10447
10448
10449if test $pkg_failed = yes; then
10450   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10451$as_echo "no" >&6; }
10452
10453if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10454        _pkg_short_errors_supported=yes
10455else
10456        _pkg_short_errors_supported=no
10457fi
10458        if test $_pkg_short_errors_supported = yes; then
10459	        lrdf_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lrdf >= 0.4.0" 2>&1`
10460        else
10461	        lrdf_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lrdf >= 0.4.0" 2>&1`
10462        fi
10463	# Put the nasty error message in config.log where it belongs
10464	echo "$lrdf_PKG_ERRORS" >&5
10465
10466	if test "x$with_ladspa" = xyes; then :
10467  as_fn_error $? "LADSPA support requires liblrdf >= 0.4.0" "$LINENO" 5
10468fi
10469elif test $pkg_failed = untried; then
10470     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471$as_echo "no" >&6; }
10472	if test "x$with_ladspa" = xyes; then :
10473  as_fn_error $? "LADSPA support requires liblrdf >= 0.4.0" "$LINENO" 5
10474fi
10475else
10476	lrdf_CFLAGS=$pkg_cv_lrdf_CFLAGS
10477	lrdf_LIBS=$pkg_cv_lrdf_LIBS
10478        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10479$as_echo "yes" >&6; }
10480
10481    if test "x$with_ladspa" = xdetect; then :
10482  with_ladspa='yes (found)'
10483fi
10484
10485
10486fi
10487    case $with_ladspa in #(
10488  yes*) :
10489    ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10490if test "x$ac_cv_func_dlopen" = xyes; then :
10491
10492else
10493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10494$as_echo_n "checking for dlopen in -ldl... " >&6; }
10495if ${ac_cv_lib_dl_dlopen+:} false; then :
10496  $as_echo_n "(cached) " >&6
10497else
10498  ac_check_lib_save_LIBS=$LIBS
10499LIBS="-ldl  $LIBS"
10500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501/* end confdefs.h.  */
10502
10503/* Override any GCC internal prototype to avoid an error.
10504   Use char because int might match the return type of a GCC
10505   builtin and then its argument prototype would still apply.  */
10506#ifdef __cplusplus
10507extern "C"
10508#endif
10509char dlopen ();
10510int
10511main ()
10512{
10513return dlopen ();
10514  ;
10515  return 0;
10516}
10517_ACEOF
10518if ac_fn_c_try_link "$LINENO"; then :
10519  ac_cv_lib_dl_dlopen=yes
10520else
10521  ac_cv_lib_dl_dlopen=no
10522fi
10523rm -f core conftest.err conftest.$ac_objext \
10524    conftest$ac_exeext conftest.$ac_ext
10525LIBS=$ac_check_lib_save_LIBS
10526fi
10527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10528$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10529if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10530  lrdf_LIBS="$lrdf_LIBS -ldl"
10531else
10532
10533                if test "x$with_ladspa" = xyes; then :
10534  as_fn_error $? "LADSPA support requires dynamic loading" "$LINENO" 5
10535fi
10536                with_ladspa='no (missing dlopen)'
10537
10538fi
10539
10540fi
10541 ;; #(
10542  *) :
10543     ;;
10544esac
10545
10546        case $with_ladspa in #(
10547  detect) :
10548    with_ladspa='not found' ;; #(
10549  yes*) :
10550
10551$as_echo "#define HAVE_LADSPA 1" >>confdefs.h
10552 ;; #(
10553  *) :
10554     ;;
10555esac
10556
10557fi
10558     if expr "X$with_ladspa" : 'Xyes' >/dev/null; then
10559  HAVE_LADSPA_TRUE=
10560  HAVE_LADSPA_FALSE='#'
10561else
10562  HAVE_LADSPA_TRUE='#'
10563  HAVE_LADSPA_FALSE=
10564fi
10565
10566
10567
10568
10569
10570# Check whether --with-src was given.
10571if test "${with_src+set}" = set; then :
10572  withval=$with_src;
10573else
10574  with_src='detect'
10575fi
10576
10577    if test "x$with_src" = xno; then :
10578
10579else
10580
10581        { $as_echo "$as_me:${as_lineno-$LINENO}: Sample Rate Converter Support" >&5
10582$as_echo "$as_me: Sample Rate Converter Support" >&6;}
10583
10584pkg_failed=no
10585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for src" >&5
10586$as_echo_n "checking for src... " >&6; }
10587
10588if test -n "$src_CFLAGS"; then
10589    pkg_cv_src_CFLAGS="$src_CFLAGS"
10590 elif test -n "$PKG_CONFIG"; then
10591    if test -n "$PKG_CONFIG" && \
10592    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate\""; } >&5
10593  ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5
10594  ac_status=$?
10595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10596  test $ac_status = 0; }; then
10597  pkg_cv_src_CFLAGS=`$PKG_CONFIG --cflags "samplerate" 2>/dev/null`
10598		      test "x$?" != "x0" && pkg_failed=yes
10599else
10600  pkg_failed=yes
10601fi
10602 else
10603    pkg_failed=untried
10604fi
10605if test -n "$src_LIBS"; then
10606    pkg_cv_src_LIBS="$src_LIBS"
10607 elif test -n "$PKG_CONFIG"; then
10608    if test -n "$PKG_CONFIG" && \
10609    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate\""; } >&5
10610  ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5
10611  ac_status=$?
10612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10613  test $ac_status = 0; }; then
10614  pkg_cv_src_LIBS=`$PKG_CONFIG --libs "samplerate" 2>/dev/null`
10615		      test "x$?" != "x0" && pkg_failed=yes
10616else
10617  pkg_failed=yes
10618fi
10619 else
10620    pkg_failed=untried
10621fi
10622
10623
10624
10625if test $pkg_failed = yes; then
10626   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627$as_echo "no" >&6; }
10628
10629if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10630        _pkg_short_errors_supported=yes
10631else
10632        _pkg_short_errors_supported=no
10633fi
10634        if test $_pkg_short_errors_supported = yes; then
10635	        src_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "samplerate" 2>&1`
10636        else
10637	        src_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "samplerate" 2>&1`
10638        fi
10639	# Put the nasty error message in config.log where it belongs
10640	echo "$src_PKG_ERRORS" >&5
10641
10642	if test "x$with_src" = xyes; then :
10643  as_fn_error $? "$src_PKG_ERRORS" "$LINENO" 5
10644fi
10645elif test $pkg_failed = untried; then
10646     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647$as_echo "no" >&6; }
10648	if test "x$with_src" = xyes; then :
10649  as_fn_error $? "$src_PKG_ERRORS" "$LINENO" 5
10650fi
10651else
10652	src_CFLAGS=$pkg_cv_src_CFLAGS
10653	src_LIBS=$pkg_cv_src_LIBS
10654        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10655$as_echo "yes" >&6; }
10656
10657    if test "x$with_src" = xdetect; then :
10658  with_src='yes (found)'
10659fi
10660
10661
10662fi
10663        case $with_src in #(
10664  detect) :
10665    with_src='not found' ;; #(
10666  yes*) :
10667
10668$as_echo "#define HAVE_SRC 1" >>confdefs.h
10669 ;; #(
10670  *) :
10671     ;;
10672esac
10673
10674fi
10675     if expr "X$with_src" : 'Xyes' >/dev/null; then
10676  HAVE_SRC_TRUE=
10677  HAVE_SRC_FALSE='#'
10678else
10679  HAVE_SRC_TRUE='#'
10680  HAVE_SRC_FALSE=
10681fi
10682
10683
10684
10685
10686#
10687# Hardware Library Options
10688#
10689
10690
10691# Check whether --with-cdda was given.
10692if test "${with_cdda+set}" = set; then :
10693  withval=$with_cdda;
10694else
10695  with_cdda='detect'
10696fi
10697
10698    if test "x$with_cdda" = xno; then :
10699
10700else
10701
10702        { $as_echo "$as_me:${as_lineno-$LINENO}: Compact Disc Digital Audio Support" >&5
10703$as_echo "$as_me: Compact Disc Digital Audio Support" >&6;}
10704
10705pkg_failed=no
10706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdio" >&5
10707$as_echo_n "checking for cdio... " >&6; }
10708
10709if test -n "$cdio_CFLAGS"; then
10710    pkg_cv_cdio_CFLAGS="$cdio_CFLAGS"
10711 elif test -n "$PKG_CONFIG"; then
10712    if test -n "$PKG_CONFIG" && \
10713    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcdio >= 0.76 libcdio_paranoia\""; } >&5
10714  ($PKG_CONFIG --exists --print-errors "libcdio >= 0.76 libcdio_paranoia") 2>&5
10715  ac_status=$?
10716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10717  test $ac_status = 0; }; then
10718  pkg_cv_cdio_CFLAGS=`$PKG_CONFIG --cflags "libcdio >= 0.76 libcdio_paranoia" 2>/dev/null`
10719		      test "x$?" != "x0" && pkg_failed=yes
10720else
10721  pkg_failed=yes
10722fi
10723 else
10724    pkg_failed=untried
10725fi
10726if test -n "$cdio_LIBS"; then
10727    pkg_cv_cdio_LIBS="$cdio_LIBS"
10728 elif test -n "$PKG_CONFIG"; then
10729    if test -n "$PKG_CONFIG" && \
10730    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcdio >= 0.76 libcdio_paranoia\""; } >&5
10731  ($PKG_CONFIG --exists --print-errors "libcdio >= 0.76 libcdio_paranoia") 2>&5
10732  ac_status=$?
10733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10734  test $ac_status = 0; }; then
10735  pkg_cv_cdio_LIBS=`$PKG_CONFIG --libs "libcdio >= 0.76 libcdio_paranoia" 2>/dev/null`
10736		      test "x$?" != "x0" && pkg_failed=yes
10737else
10738  pkg_failed=yes
10739fi
10740 else
10741    pkg_failed=untried
10742fi
10743
10744
10745
10746if test $pkg_failed = yes; then
10747   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10748$as_echo "no" >&6; }
10749
10750if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10751        _pkg_short_errors_supported=yes
10752else
10753        _pkg_short_errors_supported=no
10754fi
10755        if test $_pkg_short_errors_supported = yes; then
10756	        cdio_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcdio >= 0.76 libcdio_paranoia" 2>&1`
10757        else
10758	        cdio_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcdio >= 0.76 libcdio_paranoia" 2>&1`
10759        fi
10760	# Put the nasty error message in config.log where it belongs
10761	echo "$cdio_PKG_ERRORS" >&5
10762
10763	if test "x$with_cdda" = xyes; then :
10764  as_fn_error $? "$cdio_PKG_ERRORS" "$LINENO" 5
10765fi
10766elif test $pkg_failed = untried; then
10767     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768$as_echo "no" >&6; }
10769	if test "x$with_cdda" = xyes; then :
10770  as_fn_error $? "$cdio_PKG_ERRORS" "$LINENO" 5
10771fi
10772else
10773	cdio_CFLAGS=$pkg_cv_cdio_CFLAGS
10774	cdio_LIBS=$pkg_cv_cdio_LIBS
10775        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10776$as_echo "yes" >&6; }
10777
10778
10779    if test "x$with_cdda" = xdetect; then :
10780  with_cdda='yes (found)'
10781fi
10782
10783
10784            for ac_header in cdio/paranoia/cdda.h cdio/paranoia/paranoia.h
10785do :
10786  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10787ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10788if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10789  cat >>confdefs.h <<_ACEOF
10790#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10791_ACEOF
10792
10793fi
10794
10795done
10796
10797
10798fi
10799        case $with_cdda in #(
10800  detect) :
10801    with_cdda='not found' ;; #(
10802  yes*) :
10803
10804$as_echo "#define HAVE_CDDA 1" >>confdefs.h
10805 ;; #(
10806  *) :
10807     ;;
10808esac
10809
10810fi
10811     if expr "X$with_cdda" : 'Xyes' >/dev/null; then
10812  HAVE_CDDA_TRUE=
10813  HAVE_CDDA_FALSE='#'
10814else
10815  HAVE_CDDA_TRUE='#'
10816  HAVE_CDDA_FALSE=
10817fi
10818
10819
10820
10821
10822
10823# Check whether --with-ifp was given.
10824if test "${with_ifp+set}" = set; then :
10825  withval=$with_ifp;
10826else
10827  with_ifp='detect'
10828fi
10829
10830    if test "x$with_ifp" = xno; then :
10831
10832else
10833
10834        { $as_echo "$as_me:${as_lineno-$LINENO}: iRiver iFP Support" >&5
10835$as_echo "$as_me: iRiver iFP Support" >&6;}
10836        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_init in -lusb" >&5
10837$as_echo_n "checking for usb_init in -lusb... " >&6; }
10838if ${ac_cv_lib_usb_usb_init+:} false; then :
10839  $as_echo_n "(cached) " >&6
10840else
10841  ac_check_lib_save_LIBS=$LIBS
10842LIBS="-lusb  $LIBS"
10843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844/* end confdefs.h.  */
10845
10846/* Override any GCC internal prototype to avoid an error.
10847   Use char because int might match the return type of a GCC
10848   builtin and then its argument prototype would still apply.  */
10849#ifdef __cplusplus
10850extern "C"
10851#endif
10852char usb_init ();
10853int
10854main ()
10855{
10856return usb_init ();
10857  ;
10858  return 0;
10859}
10860_ACEOF
10861if ac_fn_c_try_link "$LINENO"; then :
10862  ac_cv_lib_usb_usb_init=yes
10863else
10864  ac_cv_lib_usb_usb_init=no
10865fi
10866rm -f core conftest.err conftest.$ac_objext \
10867    conftest$ac_exeext conftest.$ac_ext
10868LIBS=$ac_check_lib_save_LIBS
10869fi
10870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_init" >&5
10871$as_echo "$ac_cv_lib_usb_usb_init" >&6; }
10872if test "x$ac_cv_lib_usb_usb_init" = xyes; then :
10873  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ifp_find_device in -lifp" >&5
10874$as_echo_n "checking for ifp_find_device in -lifp... " >&6; }
10875if ${ac_cv_lib_ifp_ifp_find_device+:} false; then :
10876  $as_echo_n "(cached) " >&6
10877else
10878  ac_check_lib_save_LIBS=$LIBS
10879LIBS="-lifp  $LIBS"
10880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881/* end confdefs.h.  */
10882
10883/* Override any GCC internal prototype to avoid an error.
10884   Use char because int might match the return type of a GCC
10885   builtin and then its argument prototype would still apply.  */
10886#ifdef __cplusplus
10887extern "C"
10888#endif
10889char ifp_find_device ();
10890int
10891main ()
10892{
10893return ifp_find_device ();
10894  ;
10895  return 0;
10896}
10897_ACEOF
10898if ac_fn_c_try_link "$LINENO"; then :
10899  ac_cv_lib_ifp_ifp_find_device=yes
10900else
10901  ac_cv_lib_ifp_ifp_find_device=no
10902fi
10903rm -f core conftest.err conftest.$ac_objext \
10904    conftest$ac_exeext conftest.$ac_ext
10905LIBS=$ac_check_lib_save_LIBS
10906fi
10907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ifp_ifp_find_device" >&5
10908$as_echo "$ac_cv_lib_ifp_ifp_find_device" >&6; }
10909if test "x$ac_cv_lib_ifp_ifp_find_device" = xyes; then :
10910
10911    if test "x$with_ifp" = xdetect; then :
10912  with_ifp='yes (found)'
10913fi
10914    ifp_LIBS='-lusb -lifp'
10915
10916
10917else
10918  if test "x$with_ifp" = xyes; then :
10919  as_fn_error $? "iRiver iFP support requires libifp" "$LINENO" 5
10920fi
10921fi
10922
10923else
10924  if test "x$with_ifp" = xyes; then :
10925  as_fn_error $? "iRiver iFP support requires libusb" "$LINENO" 5
10926fi
10927fi
10928
10929        case $with_ifp in #(
10930  detect) :
10931    with_ifp='not found' ;; #(
10932  yes*) :
10933
10934$as_echo "#define HAVE_IFP 1" >>confdefs.h
10935 ;; #(
10936  *) :
10937     ;;
10938esac
10939
10940fi
10941     if expr "X$with_ifp" : 'Xyes' >/dev/null; then
10942  HAVE_IFP_TRUE=
10943  HAVE_IFP_FALSE='#'
10944else
10945  HAVE_IFP_TRUE='#'
10946  HAVE_IFP_FALSE=
10947fi
10948
10949
10950
10951
10952#
10953# Miscellaneous Library Options
10954#
10955
10956
10957# Check whether --with-cddb was given.
10958if test "${with_cddb+set}" = set; then :
10959  withval=$with_cddb;
10960else
10961  with_cddb='detect'
10962fi
10963
10964    if test "x$with_cddb" = xno; then :
10965
10966else
10967
10968        { $as_echo "$as_me:${as_lineno-$LINENO}: Compact Disc Database Support" >&5
10969$as_echo "$as_me: Compact Disc Database Support" >&6;}
10970
10971
10972pkg_failed=no
10973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cddb" >&5
10974$as_echo_n "checking for cddb... " >&6; }
10975
10976if test -n "$cddb_CFLAGS"; then
10977    pkg_cv_cddb_CFLAGS="$cddb_CFLAGS"
10978 elif test -n "$PKG_CONFIG"; then
10979    if test -n "$PKG_CONFIG" && \
10980    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcddb >= 1.2.1\""; } >&5
10981  ($PKG_CONFIG --exists --print-errors "libcddb >= 1.2.1") 2>&5
10982  ac_status=$?
10983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10984  test $ac_status = 0; }; then
10985  pkg_cv_cddb_CFLAGS=`$PKG_CONFIG --cflags "libcddb >= 1.2.1" 2>/dev/null`
10986		      test "x$?" != "x0" && pkg_failed=yes
10987else
10988  pkg_failed=yes
10989fi
10990 else
10991    pkg_failed=untried
10992fi
10993if test -n "$cddb_LIBS"; then
10994    pkg_cv_cddb_LIBS="$cddb_LIBS"
10995 elif test -n "$PKG_CONFIG"; then
10996    if test -n "$PKG_CONFIG" && \
10997    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcddb >= 1.2.1\""; } >&5
10998  ($PKG_CONFIG --exists --print-errors "libcddb >= 1.2.1") 2>&5
10999  ac_status=$?
11000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11001  test $ac_status = 0; }; then
11002  pkg_cv_cddb_LIBS=`$PKG_CONFIG --libs "libcddb >= 1.2.1" 2>/dev/null`
11003		      test "x$?" != "x0" && pkg_failed=yes
11004else
11005  pkg_failed=yes
11006fi
11007 else
11008    pkg_failed=untried
11009fi
11010
11011
11012
11013if test $pkg_failed = yes; then
11014   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015$as_echo "no" >&6; }
11016
11017if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11018        _pkg_short_errors_supported=yes
11019else
11020        _pkg_short_errors_supported=no
11021fi
11022        if test $_pkg_short_errors_supported = yes; then
11023	        cddb_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcddb >= 1.2.1" 2>&1`
11024        else
11025	        cddb_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcddb >= 1.2.1" 2>&1`
11026        fi
11027	# Put the nasty error message in config.log where it belongs
11028	echo "$cddb_PKG_ERRORS" >&5
11029
11030	if test "x$with_cddb" = xyes; then :
11031  as_fn_error $? "$cddb_PKG_ERRORS" "$LINENO" 5
11032fi
11033elif test $pkg_failed = untried; then
11034     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035$as_echo "no" >&6; }
11036	if test "x$with_cddb" = xyes; then :
11037  as_fn_error $? "$cddb_PKG_ERRORS" "$LINENO" 5
11038fi
11039else
11040	cddb_CFLAGS=$pkg_cv_cddb_CFLAGS
11041	cddb_LIBS=$pkg_cv_cddb_LIBS
11042        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11043$as_echo "yes" >&6; }
11044
11045    if test "x$with_cddb" = xdetect; then :
11046  with_cddb='yes (found)'
11047fi
11048
11049
11050fi
11051    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cddb_disc_get_revision in -lcddb" >&5
11052$as_echo_n "checking for cddb_disc_get_revision in -lcddb... " >&6; }
11053if ${ac_cv_lib_cddb_cddb_disc_get_revision+:} false; then :
11054  $as_echo_n "(cached) " >&6
11055else
11056  ac_check_lib_save_LIBS=$LIBS
11057LIBS="-lcddb  $LIBS"
11058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059/* end confdefs.h.  */
11060
11061/* Override any GCC internal prototype to avoid an error.
11062   Use char because int might match the return type of a GCC
11063   builtin and then its argument prototype would still apply.  */
11064#ifdef __cplusplus
11065extern "C"
11066#endif
11067char cddb_disc_get_revision ();
11068int
11069main ()
11070{
11071return cddb_disc_get_revision ();
11072  ;
11073  return 0;
11074}
11075_ACEOF
11076if ac_fn_c_try_link "$LINENO"; then :
11077  ac_cv_lib_cddb_cddb_disc_get_revision=yes
11078else
11079  ac_cv_lib_cddb_cddb_disc_get_revision=no
11080fi
11081rm -f core conftest.err conftest.$ac_objext \
11082    conftest$ac_exeext conftest.$ac_ext
11083LIBS=$ac_check_lib_save_LIBS
11084fi
11085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cddb_cddb_disc_get_revision" >&5
11086$as_echo "$ac_cv_lib_cddb_cddb_disc_get_revision" >&6; }
11087if test "x$ac_cv_lib_cddb_cddb_disc_get_revision" = xyes; then :
11088
11089$as_echo "#define LIBCDDB_REVISION 1" >>confdefs.h
11090
11091fi
11092
11093
11094        case $with_cddb in #(
11095  detect) :
11096    with_cddb='not found' ;; #(
11097  yes*) :
11098
11099$as_echo "#define HAVE_CDDB 1" >>confdefs.h
11100 ;; #(
11101  *) :
11102     ;;
11103esac
11104
11105fi
11106     if expr "X$with_cddb" : 'Xyes' >/dev/null; then
11107  HAVE_CDDB_TRUE=
11108  HAVE_CDDB_FALSE='#'
11109else
11110  HAVE_CDDB_TRUE='#'
11111  HAVE_CDDB_FALSE=
11112fi
11113
11114
11115
11116
11117
11118# Check whether --with-lua was given.
11119if test "${with_lua+set}" = set; then :
11120  withval=$with_lua;
11121else
11122  with_lua='detect'
11123fi
11124
11125    if test "x$with_lua" = xno; then :
11126
11127else
11128
11129        { $as_echo "$as_me:${as_lineno-$LINENO}: Lua Extension Support" >&5
11130$as_echo "$as_me: Lua Extension Support" >&6;}
11131
11132pkg_failed=no
11133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
11134$as_echo_n "checking for lua... " >&6; }
11135
11136if test -n "$lua_CFLAGS"; then
11137    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
11138 elif test -n "$PKG_CONFIG"; then
11139    if test -n "$PKG_CONFIG" && \
11140    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
11141  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
11142  ac_status=$?
11143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11144  test $ac_status = 0; }; then
11145  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
11146		      test "x$?" != "x0" && pkg_failed=yes
11147else
11148  pkg_failed=yes
11149fi
11150 else
11151    pkg_failed=untried
11152fi
11153if test -n "$lua_LIBS"; then
11154    pkg_cv_lua_LIBS="$lua_LIBS"
11155 elif test -n "$PKG_CONFIG"; then
11156    if test -n "$PKG_CONFIG" && \
11157    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
11158  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
11159  ac_status=$?
11160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11161  test $ac_status = 0; }; then
11162  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
11163		      test "x$?" != "x0" && pkg_failed=yes
11164else
11165  pkg_failed=yes
11166fi
11167 else
11168    pkg_failed=untried
11169fi
11170
11171
11172
11173if test $pkg_failed = yes; then
11174   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11175$as_echo "no" >&6; }
11176
11177if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11178        _pkg_short_errors_supported=yes
11179else
11180        _pkg_short_errors_supported=no
11181fi
11182        if test $_pkg_short_errors_supported = yes; then
11183	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
11184        else
11185	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
11186        fi
11187	# Put the nasty error message in config.log where it belongs
11188	echo "$lua_PKG_ERRORS" >&5
11189
11190
11191pkg_failed=no
11192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
11193$as_echo_n "checking for lua... " >&6; }
11194
11195if test -n "$lua_CFLAGS"; then
11196    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
11197 elif test -n "$PKG_CONFIG"; then
11198    if test -n "$PKG_CONFIG" && \
11199    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
11200  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
11201  ac_status=$?
11202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11203  test $ac_status = 0; }; then
11204  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.2" 2>/dev/null`
11205		      test "x$?" != "x0" && pkg_failed=yes
11206else
11207  pkg_failed=yes
11208fi
11209 else
11210    pkg_failed=untried
11211fi
11212if test -n "$lua_LIBS"; then
11213    pkg_cv_lua_LIBS="$lua_LIBS"
11214 elif test -n "$PKG_CONFIG"; then
11215    if test -n "$PKG_CONFIG" && \
11216    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
11217  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
11218  ac_status=$?
11219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11220  test $ac_status = 0; }; then
11221  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua-5.2" 2>/dev/null`
11222		      test "x$?" != "x0" && pkg_failed=yes
11223else
11224  pkg_failed=yes
11225fi
11226 else
11227    pkg_failed=untried
11228fi
11229
11230
11231
11232if test $pkg_failed = yes; then
11233   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234$as_echo "no" >&6; }
11235
11236if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11237        _pkg_short_errors_supported=yes
11238else
11239        _pkg_short_errors_supported=no
11240fi
11241        if test $_pkg_short_errors_supported = yes; then
11242	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.2" 2>&1`
11243        else
11244	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.2" 2>&1`
11245        fi
11246	# Put the nasty error message in config.log where it belongs
11247	echo "$lua_PKG_ERRORS" >&5
11248
11249
11250pkg_failed=no
11251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
11252$as_echo_n "checking for lua... " >&6; }
11253
11254if test -n "$lua_CFLAGS"; then
11255    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
11256 elif test -n "$PKG_CONFIG"; then
11257    if test -n "$PKG_CONFIG" && \
11258    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
11259  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
11260  ac_status=$?
11261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11262  test $ac_status = 0; }; then
11263  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
11264		      test "x$?" != "x0" && pkg_failed=yes
11265else
11266  pkg_failed=yes
11267fi
11268 else
11269    pkg_failed=untried
11270fi
11271if test -n "$lua_LIBS"; then
11272    pkg_cv_lua_LIBS="$lua_LIBS"
11273 elif test -n "$PKG_CONFIG"; then
11274    if test -n "$PKG_CONFIG" && \
11275    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
11276  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
11277  ac_status=$?
11278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11279  test $ac_status = 0; }; then
11280  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
11281		      test "x$?" != "x0" && pkg_failed=yes
11282else
11283  pkg_failed=yes
11284fi
11285 else
11286    pkg_failed=untried
11287fi
11288
11289
11290
11291if test $pkg_failed = yes; then
11292   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293$as_echo "no" >&6; }
11294
11295if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11296        _pkg_short_errors_supported=yes
11297else
11298        _pkg_short_errors_supported=no
11299fi
11300        if test $_pkg_short_errors_supported = yes; then
11301	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
11302        else
11303	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
11304        fi
11305	# Put the nasty error message in config.log where it belongs
11306	echo "$lua_PKG_ERRORS" >&5
11307
11308
11309pkg_failed=no
11310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
11311$as_echo_n "checking for lua... " >&6; }
11312
11313if test -n "$lua_CFLAGS"; then
11314    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
11315 elif test -n "$PKG_CONFIG"; then
11316    if test -n "$PKG_CONFIG" && \
11317    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
11318  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
11319  ac_status=$?
11320  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11321  test $ac_status = 0; }; then
11322  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
11323		      test "x$?" != "x0" && pkg_failed=yes
11324else
11325  pkg_failed=yes
11326fi
11327 else
11328    pkg_failed=untried
11329fi
11330if test -n "$lua_LIBS"; then
11331    pkg_cv_lua_LIBS="$lua_LIBS"
11332 elif test -n "$PKG_CONFIG"; then
11333    if test -n "$PKG_CONFIG" && \
11334    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
11335  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
11336  ac_status=$?
11337  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11338  test $ac_status = 0; }; then
11339  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
11340		      test "x$?" != "x0" && pkg_failed=yes
11341else
11342  pkg_failed=yes
11343fi
11344 else
11345    pkg_failed=untried
11346fi
11347
11348
11349
11350if test $pkg_failed = yes; then
11351   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352$as_echo "no" >&6; }
11353
11354if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11355        _pkg_short_errors_supported=yes
11356else
11357        _pkg_short_errors_supported=no
11358fi
11359        if test $_pkg_short_errors_supported = yes; then
11360	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
11361        else
11362	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
11363        fi
11364	# Put the nasty error message in config.log where it belongs
11365	echo "$lua_PKG_ERRORS" >&5
11366
11367
11368pkg_failed=no
11369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
11370$as_echo_n "checking for lua... " >&6; }
11371
11372if test -n "$lua_CFLAGS"; then
11373    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
11374 elif test -n "$PKG_CONFIG"; then
11375    if test -n "$PKG_CONFIG" && \
11376    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
11377  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
11378  ac_status=$?
11379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11380  test $ac_status = 0; }; then
11381  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
11382		      test "x$?" != "x0" && pkg_failed=yes
11383else
11384  pkg_failed=yes
11385fi
11386 else
11387    pkg_failed=untried
11388fi
11389if test -n "$lua_LIBS"; then
11390    pkg_cv_lua_LIBS="$lua_LIBS"
11391 elif test -n "$PKG_CONFIG"; then
11392    if test -n "$PKG_CONFIG" && \
11393    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
11394  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
11395  ac_status=$?
11396  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11397  test $ac_status = 0; }; then
11398  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
11399		      test "x$?" != "x0" && pkg_failed=yes
11400else
11401  pkg_failed=yes
11402fi
11403 else
11404    pkg_failed=untried
11405fi
11406
11407
11408
11409if test $pkg_failed = yes; then
11410   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11411$as_echo "no" >&6; }
11412
11413if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11414        _pkg_short_errors_supported=yes
11415else
11416        _pkg_short_errors_supported=no
11417fi
11418        if test $_pkg_short_errors_supported = yes; then
11419	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
11420        else
11421	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
11422        fi
11423	# Put the nasty error message in config.log where it belongs
11424	echo "$lua_PKG_ERRORS" >&5
11425
11426
11427pkg_failed=no
11428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
11429$as_echo_n "checking for lua... " >&6; }
11430
11431if test -n "$lua_CFLAGS"; then
11432    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
11433 elif test -n "$PKG_CONFIG"; then
11434    if test -n "$PKG_CONFIG" && \
11435    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
11436  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
11437  ac_status=$?
11438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11439  test $ac_status = 0; }; then
11440  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
11441		      test "x$?" != "x0" && pkg_failed=yes
11442else
11443  pkg_failed=yes
11444fi
11445 else
11446    pkg_failed=untried
11447fi
11448if test -n "$lua_LIBS"; then
11449    pkg_cv_lua_LIBS="$lua_LIBS"
11450 elif test -n "$PKG_CONFIG"; then
11451    if test -n "$PKG_CONFIG" && \
11452    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
11453  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
11454  ac_status=$?
11455  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11456  test $ac_status = 0; }; then
11457  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
11458		      test "x$?" != "x0" && pkg_failed=yes
11459else
11460  pkg_failed=yes
11461fi
11462 else
11463    pkg_failed=untried
11464fi
11465
11466
11467
11468if test $pkg_failed = yes; then
11469   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11470$as_echo "no" >&6; }
11471
11472if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11473        _pkg_short_errors_supported=yes
11474else
11475        _pkg_short_errors_supported=no
11476fi
11477        if test $_pkg_short_errors_supported = yes; then
11478	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
11479        else
11480	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
11481        fi
11482	# Put the nasty error message in config.log where it belongs
11483	echo "$lua_PKG_ERRORS" >&5
11484
11485
11486pkg_failed=no
11487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
11488$as_echo_n "checking for lua... " >&6; }
11489
11490if test -n "$lua_CFLAGS"; then
11491    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
11492 elif test -n "$PKG_CONFIG"; then
11493    if test -n "$PKG_CONFIG" && \
11494    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
11495  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
11496  ac_status=$?
11497  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11498  test $ac_status = 0; }; then
11499  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
11500		      test "x$?" != "x0" && pkg_failed=yes
11501else
11502  pkg_failed=yes
11503fi
11504 else
11505    pkg_failed=untried
11506fi
11507if test -n "$lua_LIBS"; then
11508    pkg_cv_lua_LIBS="$lua_LIBS"
11509 elif test -n "$PKG_CONFIG"; then
11510    if test -n "$PKG_CONFIG" && \
11511    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
11512  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
11513  ac_status=$?
11514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11515  test $ac_status = 0; }; then
11516  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
11517		      test "x$?" != "x0" && pkg_failed=yes
11518else
11519  pkg_failed=yes
11520fi
11521 else
11522    pkg_failed=untried
11523fi
11524
11525
11526
11527if test $pkg_failed = yes; then
11528   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529$as_echo "no" >&6; }
11530
11531if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11532        _pkg_short_errors_supported=yes
11533else
11534        _pkg_short_errors_supported=no
11535fi
11536        if test $_pkg_short_errors_supported = yes; then
11537	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
11538        else
11539	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
11540        fi
11541	# Put the nasty error message in config.log where it belongs
11542	echo "$lua_PKG_ERRORS" >&5
11543
11544
11545pkg_failed=no
11546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
11547$as_echo_n "checking for lua... " >&6; }
11548
11549if test -n "$lua_CFLAGS"; then
11550    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
11551 elif test -n "$PKG_CONFIG"; then
11552    if test -n "$PKG_CONFIG" && \
11553    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
11554  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
11555  ac_status=$?
11556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11557  test $ac_status = 0; }; then
11558  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
11559		      test "x$?" != "x0" && pkg_failed=yes
11560else
11561  pkg_failed=yes
11562fi
11563 else
11564    pkg_failed=untried
11565fi
11566if test -n "$lua_LIBS"; then
11567    pkg_cv_lua_LIBS="$lua_LIBS"
11568 elif test -n "$PKG_CONFIG"; then
11569    if test -n "$PKG_CONFIG" && \
11570    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
11571  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
11572  ac_status=$?
11573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11574  test $ac_status = 0; }; then
11575  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
11576		      test "x$?" != "x0" && pkg_failed=yes
11577else
11578  pkg_failed=yes
11579fi
11580 else
11581    pkg_failed=untried
11582fi
11583
11584
11585
11586if test $pkg_failed = yes; then
11587   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11588$as_echo "no" >&6; }
11589
11590if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11591        _pkg_short_errors_supported=yes
11592else
11593        _pkg_short_errors_supported=no
11594fi
11595        if test $_pkg_short_errors_supported = yes; then
11596	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
11597        else
11598	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
11599        fi
11600	# Put the nasty error message in config.log where it belongs
11601	echo "$lua_PKG_ERRORS" >&5
11602
11603	if test "x$with_lua" = xyes; then :
11604  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
11605fi
11606elif test $pkg_failed = untried; then
11607     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608$as_echo "no" >&6; }
11609	if test "x$with_lua" = xyes; then :
11610  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
11611fi
11612else
11613	lua_CFLAGS=$pkg_cv_lua_CFLAGS
11614	lua_LIBS=$pkg_cv_lua_LIBS
11615        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11616$as_echo "yes" >&6; }
11617
11618    if test "x$with_lua" = xdetect; then :
11619  with_lua='yes (found)'
11620fi
11621
11622
11623fi
11624elif test $pkg_failed = untried; then
11625     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11626$as_echo "no" >&6; }
11627
11628pkg_failed=no
11629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
11630$as_echo_n "checking for lua... " >&6; }
11631
11632if test -n "$lua_CFLAGS"; then
11633    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
11634 elif test -n "$PKG_CONFIG"; then
11635    if test -n "$PKG_CONFIG" && \
11636    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
11637  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
11638  ac_status=$?
11639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11640  test $ac_status = 0; }; then
11641  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
11642		      test "x$?" != "x0" && pkg_failed=yes
11643else
11644  pkg_failed=yes
11645fi
11646 else
11647    pkg_failed=untried
11648fi
11649if test -n "$lua_LIBS"; then
11650    pkg_cv_lua_LIBS="$lua_LIBS"
11651 elif test -n "$PKG_CONFIG"; then
11652    if test -n "$PKG_CONFIG" && \
11653    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
11654  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
11655  ac_status=$?
11656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11657  test $ac_status = 0; }; then
11658  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
11659		      test "x$?" != "x0" && pkg_failed=yes
11660else
11661  pkg_failed=yes
11662fi
11663 else
11664    pkg_failed=untried
11665fi
11666
11667
11668
11669if test $pkg_failed = yes; then
11670   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11671$as_echo "no" >&6; }
11672
11673if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11674        _pkg_short_errors_supported=yes
11675else
11676        _pkg_short_errors_supported=no
11677fi
11678        if test $_pkg_short_errors_supported = yes; then
11679	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
11680        else
11681	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
11682        fi
11683	# Put the nasty error message in config.log where it belongs
11684	echo "$lua_PKG_ERRORS" >&5
11685
11686	if test "x$with_lua" = xyes; then :
11687  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
11688fi
11689elif test $pkg_failed = untried; then
11690     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691$as_echo "no" >&6; }
11692	if test "x$with_lua" = xyes; then :
11693  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
11694fi
11695else
11696	lua_CFLAGS=$pkg_cv_lua_CFLAGS
11697	lua_LIBS=$pkg_cv_lua_LIBS
11698        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11699$as_echo "yes" >&6; }
11700
11701    if test "x$with_lua" = xdetect; then :
11702  with_lua='yes (found)'
11703fi
11704
11705
11706fi
11707else
11708	lua_CFLAGS=$pkg_cv_lua_CFLAGS
11709	lua_LIBS=$pkg_cv_lua_LIBS
11710        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11711$as_echo "yes" >&6; }
11712
11713    if test "x$with_lua" = xdetect; then :
11714  with_lua='yes (found)'
11715fi
11716
11717
11718fi
11719elif test $pkg_failed = untried; then
11720     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721$as_echo "no" >&6; }
11722
11723pkg_failed=no
11724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
11725$as_echo_n "checking for lua... " >&6; }
11726
11727if test -n "$lua_CFLAGS"; then
11728    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
11729 elif test -n "$PKG_CONFIG"; then
11730    if test -n "$PKG_CONFIG" && \
11731    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
11732  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
11733  ac_status=$?
11734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11735  test $ac_status = 0; }; then
11736  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
11737		      test "x$?" != "x0" && pkg_failed=yes
11738else
11739  pkg_failed=yes
11740fi
11741 else
11742    pkg_failed=untried
11743fi
11744if test -n "$lua_LIBS"; then
11745    pkg_cv_lua_LIBS="$lua_LIBS"
11746 elif test -n "$PKG_CONFIG"; then
11747    if test -n "$PKG_CONFIG" && \
11748    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
11749  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
11750  ac_status=$?
11751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11752  test $ac_status = 0; }; then
11753  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
11754		      test "x$?" != "x0" && pkg_failed=yes
11755else
11756  pkg_failed=yes
11757fi
11758 else
11759    pkg_failed=untried
11760fi
11761
11762
11763
11764if test $pkg_failed = yes; then
11765   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766$as_echo "no" >&6; }
11767
11768if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11769        _pkg_short_errors_supported=yes
11770else
11771        _pkg_short_errors_supported=no
11772fi
11773        if test $_pkg_short_errors_supported = yes; then
11774	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
11775        else
11776	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
11777        fi
11778	# Put the nasty error message in config.log where it belongs
11779	echo "$lua_PKG_ERRORS" >&5
11780
11781
11782pkg_failed=no
11783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
11784$as_echo_n "checking for lua... " >&6; }
11785
11786if test -n "$lua_CFLAGS"; then
11787    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
11788 elif test -n "$PKG_CONFIG"; then
11789    if test -n "$PKG_CONFIG" && \
11790    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
11791  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
11792  ac_status=$?
11793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11794  test $ac_status = 0; }; then
11795  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
11796		      test "x$?" != "x0" && pkg_failed=yes
11797else
11798  pkg_failed=yes
11799fi
11800 else
11801    pkg_failed=untried
11802fi
11803if test -n "$lua_LIBS"; then
11804    pkg_cv_lua_LIBS="$lua_LIBS"
11805 elif test -n "$PKG_CONFIG"; then
11806    if test -n "$PKG_CONFIG" && \
11807    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
11808  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
11809  ac_status=$?
11810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11811  test $ac_status = 0; }; then
11812  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
11813		      test "x$?" != "x0" && pkg_failed=yes
11814else
11815  pkg_failed=yes
11816fi
11817 else
11818    pkg_failed=untried
11819fi
11820
11821
11822
11823if test $pkg_failed = yes; then
11824   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825$as_echo "no" >&6; }
11826
11827if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11828        _pkg_short_errors_supported=yes
11829else
11830        _pkg_short_errors_supported=no
11831fi
11832        if test $_pkg_short_errors_supported = yes; then
11833	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
11834        else
11835	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
11836        fi
11837	# Put the nasty error message in config.log where it belongs
11838	echo "$lua_PKG_ERRORS" >&5
11839
11840	if test "x$with_lua" = xyes; then :
11841  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
11842fi
11843elif test $pkg_failed = untried; then
11844     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845$as_echo "no" >&6; }
11846	if test "x$with_lua" = xyes; then :
11847  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
11848fi
11849else
11850	lua_CFLAGS=$pkg_cv_lua_CFLAGS
11851	lua_LIBS=$pkg_cv_lua_LIBS
11852        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11853$as_echo "yes" >&6; }
11854
11855    if test "x$with_lua" = xdetect; then :
11856  with_lua='yes (found)'
11857fi
11858
11859
11860fi
11861elif test $pkg_failed = untried; then
11862     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863$as_echo "no" >&6; }
11864
11865pkg_failed=no
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
11867$as_echo_n "checking for lua... " >&6; }
11868
11869if test -n "$lua_CFLAGS"; then
11870    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
11871 elif test -n "$PKG_CONFIG"; then
11872    if test -n "$PKG_CONFIG" && \
11873    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
11874  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
11875  ac_status=$?
11876  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11877  test $ac_status = 0; }; then
11878  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
11879		      test "x$?" != "x0" && pkg_failed=yes
11880else
11881  pkg_failed=yes
11882fi
11883 else
11884    pkg_failed=untried
11885fi
11886if test -n "$lua_LIBS"; then
11887    pkg_cv_lua_LIBS="$lua_LIBS"
11888 elif test -n "$PKG_CONFIG"; then
11889    if test -n "$PKG_CONFIG" && \
11890    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
11891  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
11892  ac_status=$?
11893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11894  test $ac_status = 0; }; then
11895  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
11896		      test "x$?" != "x0" && pkg_failed=yes
11897else
11898  pkg_failed=yes
11899fi
11900 else
11901    pkg_failed=untried
11902fi
11903
11904
11905
11906if test $pkg_failed = yes; then
11907   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908$as_echo "no" >&6; }
11909
11910if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11911        _pkg_short_errors_supported=yes
11912else
11913        _pkg_short_errors_supported=no
11914fi
11915        if test $_pkg_short_errors_supported = yes; then
11916	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
11917        else
11918	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
11919        fi
11920	# Put the nasty error message in config.log where it belongs
11921	echo "$lua_PKG_ERRORS" >&5
11922
11923	if test "x$with_lua" = xyes; then :
11924  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
11925fi
11926elif test $pkg_failed = untried; then
11927     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928$as_echo "no" >&6; }
11929	if test "x$with_lua" = xyes; then :
11930  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
11931fi
11932else
11933	lua_CFLAGS=$pkg_cv_lua_CFLAGS
11934	lua_LIBS=$pkg_cv_lua_LIBS
11935        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11936$as_echo "yes" >&6; }
11937
11938    if test "x$with_lua" = xdetect; then :
11939  with_lua='yes (found)'
11940fi
11941
11942
11943fi
11944else
11945	lua_CFLAGS=$pkg_cv_lua_CFLAGS
11946	lua_LIBS=$pkg_cv_lua_LIBS
11947        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11948$as_echo "yes" >&6; }
11949
11950    if test "x$with_lua" = xdetect; then :
11951  with_lua='yes (found)'
11952fi
11953
11954
11955fi
11956else
11957	lua_CFLAGS=$pkg_cv_lua_CFLAGS
11958	lua_LIBS=$pkg_cv_lua_LIBS
11959        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11960$as_echo "yes" >&6; }
11961
11962    if test "x$with_lua" = xdetect; then :
11963  with_lua='yes (found)'
11964fi
11965
11966
11967fi
11968elif test $pkg_failed = untried; then
11969     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11970$as_echo "no" >&6; }
11971
11972pkg_failed=no
11973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
11974$as_echo_n "checking for lua... " >&6; }
11975
11976if test -n "$lua_CFLAGS"; then
11977    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
11978 elif test -n "$PKG_CONFIG"; then
11979    if test -n "$PKG_CONFIG" && \
11980    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
11981  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
11982  ac_status=$?
11983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11984  test $ac_status = 0; }; then
11985  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
11986		      test "x$?" != "x0" && pkg_failed=yes
11987else
11988  pkg_failed=yes
11989fi
11990 else
11991    pkg_failed=untried
11992fi
11993if test -n "$lua_LIBS"; then
11994    pkg_cv_lua_LIBS="$lua_LIBS"
11995 elif test -n "$PKG_CONFIG"; then
11996    if test -n "$PKG_CONFIG" && \
11997    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
11998  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
11999  ac_status=$?
12000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12001  test $ac_status = 0; }; then
12002  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
12003		      test "x$?" != "x0" && pkg_failed=yes
12004else
12005  pkg_failed=yes
12006fi
12007 else
12008    pkg_failed=untried
12009fi
12010
12011
12012
12013if test $pkg_failed = yes; then
12014   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12015$as_echo "no" >&6; }
12016
12017if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12018        _pkg_short_errors_supported=yes
12019else
12020        _pkg_short_errors_supported=no
12021fi
12022        if test $_pkg_short_errors_supported = yes; then
12023	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
12024        else
12025	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
12026        fi
12027	# Put the nasty error message in config.log where it belongs
12028	echo "$lua_PKG_ERRORS" >&5
12029
12030
12031pkg_failed=no
12032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
12033$as_echo_n "checking for lua... " >&6; }
12034
12035if test -n "$lua_CFLAGS"; then
12036    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
12037 elif test -n "$PKG_CONFIG"; then
12038    if test -n "$PKG_CONFIG" && \
12039    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
12040  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
12041  ac_status=$?
12042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12043  test $ac_status = 0; }; then
12044  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
12045		      test "x$?" != "x0" && pkg_failed=yes
12046else
12047  pkg_failed=yes
12048fi
12049 else
12050    pkg_failed=untried
12051fi
12052if test -n "$lua_LIBS"; then
12053    pkg_cv_lua_LIBS="$lua_LIBS"
12054 elif test -n "$PKG_CONFIG"; then
12055    if test -n "$PKG_CONFIG" && \
12056    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
12057  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
12058  ac_status=$?
12059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12060  test $ac_status = 0; }; then
12061  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
12062		      test "x$?" != "x0" && pkg_failed=yes
12063else
12064  pkg_failed=yes
12065fi
12066 else
12067    pkg_failed=untried
12068fi
12069
12070
12071
12072if test $pkg_failed = yes; then
12073   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074$as_echo "no" >&6; }
12075
12076if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12077        _pkg_short_errors_supported=yes
12078else
12079        _pkg_short_errors_supported=no
12080fi
12081        if test $_pkg_short_errors_supported = yes; then
12082	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
12083        else
12084	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
12085        fi
12086	# Put the nasty error message in config.log where it belongs
12087	echo "$lua_PKG_ERRORS" >&5
12088
12089
12090pkg_failed=no
12091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
12092$as_echo_n "checking for lua... " >&6; }
12093
12094if test -n "$lua_CFLAGS"; then
12095    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
12096 elif test -n "$PKG_CONFIG"; then
12097    if test -n "$PKG_CONFIG" && \
12098    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
12099  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
12100  ac_status=$?
12101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12102  test $ac_status = 0; }; then
12103  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
12104		      test "x$?" != "x0" && pkg_failed=yes
12105else
12106  pkg_failed=yes
12107fi
12108 else
12109    pkg_failed=untried
12110fi
12111if test -n "$lua_LIBS"; then
12112    pkg_cv_lua_LIBS="$lua_LIBS"
12113 elif test -n "$PKG_CONFIG"; then
12114    if test -n "$PKG_CONFIG" && \
12115    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
12116  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
12117  ac_status=$?
12118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12119  test $ac_status = 0; }; then
12120  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
12121		      test "x$?" != "x0" && pkg_failed=yes
12122else
12123  pkg_failed=yes
12124fi
12125 else
12126    pkg_failed=untried
12127fi
12128
12129
12130
12131if test $pkg_failed = yes; then
12132   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133$as_echo "no" >&6; }
12134
12135if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12136        _pkg_short_errors_supported=yes
12137else
12138        _pkg_short_errors_supported=no
12139fi
12140        if test $_pkg_short_errors_supported = yes; then
12141	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
12142        else
12143	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
12144        fi
12145	# Put the nasty error message in config.log where it belongs
12146	echo "$lua_PKG_ERRORS" >&5
12147
12148	if test "x$with_lua" = xyes; then :
12149  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
12150fi
12151elif test $pkg_failed = untried; then
12152     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153$as_echo "no" >&6; }
12154	if test "x$with_lua" = xyes; then :
12155  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
12156fi
12157else
12158	lua_CFLAGS=$pkg_cv_lua_CFLAGS
12159	lua_LIBS=$pkg_cv_lua_LIBS
12160        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12161$as_echo "yes" >&6; }
12162
12163    if test "x$with_lua" = xdetect; then :
12164  with_lua='yes (found)'
12165fi
12166
12167
12168fi
12169elif test $pkg_failed = untried; then
12170     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12171$as_echo "no" >&6; }
12172
12173pkg_failed=no
12174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
12175$as_echo_n "checking for lua... " >&6; }
12176
12177if test -n "$lua_CFLAGS"; then
12178    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
12179 elif test -n "$PKG_CONFIG"; then
12180    if test -n "$PKG_CONFIG" && \
12181    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
12182  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
12183  ac_status=$?
12184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12185  test $ac_status = 0; }; then
12186  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
12187		      test "x$?" != "x0" && pkg_failed=yes
12188else
12189  pkg_failed=yes
12190fi
12191 else
12192    pkg_failed=untried
12193fi
12194if test -n "$lua_LIBS"; then
12195    pkg_cv_lua_LIBS="$lua_LIBS"
12196 elif test -n "$PKG_CONFIG"; then
12197    if test -n "$PKG_CONFIG" && \
12198    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
12199  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
12200  ac_status=$?
12201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12202  test $ac_status = 0; }; then
12203  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
12204		      test "x$?" != "x0" && pkg_failed=yes
12205else
12206  pkg_failed=yes
12207fi
12208 else
12209    pkg_failed=untried
12210fi
12211
12212
12213
12214if test $pkg_failed = yes; then
12215   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216$as_echo "no" >&6; }
12217
12218if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12219        _pkg_short_errors_supported=yes
12220else
12221        _pkg_short_errors_supported=no
12222fi
12223        if test $_pkg_short_errors_supported = yes; then
12224	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
12225        else
12226	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
12227        fi
12228	# Put the nasty error message in config.log where it belongs
12229	echo "$lua_PKG_ERRORS" >&5
12230
12231	if test "x$with_lua" = xyes; then :
12232  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
12233fi
12234elif test $pkg_failed = untried; then
12235     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236$as_echo "no" >&6; }
12237	if test "x$with_lua" = xyes; then :
12238  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
12239fi
12240else
12241	lua_CFLAGS=$pkg_cv_lua_CFLAGS
12242	lua_LIBS=$pkg_cv_lua_LIBS
12243        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12244$as_echo "yes" >&6; }
12245
12246    if test "x$with_lua" = xdetect; then :
12247  with_lua='yes (found)'
12248fi
12249
12250
12251fi
12252else
12253	lua_CFLAGS=$pkg_cv_lua_CFLAGS
12254	lua_LIBS=$pkg_cv_lua_LIBS
12255        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12256$as_echo "yes" >&6; }
12257
12258    if test "x$with_lua" = xdetect; then :
12259  with_lua='yes (found)'
12260fi
12261
12262
12263fi
12264elif test $pkg_failed = untried; then
12265     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266$as_echo "no" >&6; }
12267
12268pkg_failed=no
12269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
12270$as_echo_n "checking for lua... " >&6; }
12271
12272if test -n "$lua_CFLAGS"; then
12273    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
12274 elif test -n "$PKG_CONFIG"; then
12275    if test -n "$PKG_CONFIG" && \
12276    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
12277  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
12278  ac_status=$?
12279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12280  test $ac_status = 0; }; then
12281  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
12282		      test "x$?" != "x0" && pkg_failed=yes
12283else
12284  pkg_failed=yes
12285fi
12286 else
12287    pkg_failed=untried
12288fi
12289if test -n "$lua_LIBS"; then
12290    pkg_cv_lua_LIBS="$lua_LIBS"
12291 elif test -n "$PKG_CONFIG"; then
12292    if test -n "$PKG_CONFIG" && \
12293    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
12294  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
12295  ac_status=$?
12296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12297  test $ac_status = 0; }; then
12298  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
12299		      test "x$?" != "x0" && pkg_failed=yes
12300else
12301  pkg_failed=yes
12302fi
12303 else
12304    pkg_failed=untried
12305fi
12306
12307
12308
12309if test $pkg_failed = yes; then
12310   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311$as_echo "no" >&6; }
12312
12313if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12314        _pkg_short_errors_supported=yes
12315else
12316        _pkg_short_errors_supported=no
12317fi
12318        if test $_pkg_short_errors_supported = yes; then
12319	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
12320        else
12321	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
12322        fi
12323	# Put the nasty error message in config.log where it belongs
12324	echo "$lua_PKG_ERRORS" >&5
12325
12326
12327pkg_failed=no
12328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
12329$as_echo_n "checking for lua... " >&6; }
12330
12331if test -n "$lua_CFLAGS"; then
12332    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
12333 elif test -n "$PKG_CONFIG"; then
12334    if test -n "$PKG_CONFIG" && \
12335    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
12336  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
12337  ac_status=$?
12338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12339  test $ac_status = 0; }; then
12340  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
12341		      test "x$?" != "x0" && pkg_failed=yes
12342else
12343  pkg_failed=yes
12344fi
12345 else
12346    pkg_failed=untried
12347fi
12348if test -n "$lua_LIBS"; then
12349    pkg_cv_lua_LIBS="$lua_LIBS"
12350 elif test -n "$PKG_CONFIG"; then
12351    if test -n "$PKG_CONFIG" && \
12352    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
12353  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
12354  ac_status=$?
12355  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12356  test $ac_status = 0; }; then
12357  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
12358		      test "x$?" != "x0" && pkg_failed=yes
12359else
12360  pkg_failed=yes
12361fi
12362 else
12363    pkg_failed=untried
12364fi
12365
12366
12367
12368if test $pkg_failed = yes; then
12369   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370$as_echo "no" >&6; }
12371
12372if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12373        _pkg_short_errors_supported=yes
12374else
12375        _pkg_short_errors_supported=no
12376fi
12377        if test $_pkg_short_errors_supported = yes; then
12378	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
12379        else
12380	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
12381        fi
12382	# Put the nasty error message in config.log where it belongs
12383	echo "$lua_PKG_ERRORS" >&5
12384
12385	if test "x$with_lua" = xyes; then :
12386  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
12387fi
12388elif test $pkg_failed = untried; then
12389     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390$as_echo "no" >&6; }
12391	if test "x$with_lua" = xyes; then :
12392  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
12393fi
12394else
12395	lua_CFLAGS=$pkg_cv_lua_CFLAGS
12396	lua_LIBS=$pkg_cv_lua_LIBS
12397        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12398$as_echo "yes" >&6; }
12399
12400    if test "x$with_lua" = xdetect; then :
12401  with_lua='yes (found)'
12402fi
12403
12404
12405fi
12406elif test $pkg_failed = untried; then
12407     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12408$as_echo "no" >&6; }
12409
12410pkg_failed=no
12411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
12412$as_echo_n "checking for lua... " >&6; }
12413
12414if test -n "$lua_CFLAGS"; then
12415    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
12416 elif test -n "$PKG_CONFIG"; then
12417    if test -n "$PKG_CONFIG" && \
12418    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
12419  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
12420  ac_status=$?
12421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12422  test $ac_status = 0; }; then
12423  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
12424		      test "x$?" != "x0" && pkg_failed=yes
12425else
12426  pkg_failed=yes
12427fi
12428 else
12429    pkg_failed=untried
12430fi
12431if test -n "$lua_LIBS"; then
12432    pkg_cv_lua_LIBS="$lua_LIBS"
12433 elif test -n "$PKG_CONFIG"; then
12434    if test -n "$PKG_CONFIG" && \
12435    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
12436  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
12437  ac_status=$?
12438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12439  test $ac_status = 0; }; then
12440  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
12441		      test "x$?" != "x0" && pkg_failed=yes
12442else
12443  pkg_failed=yes
12444fi
12445 else
12446    pkg_failed=untried
12447fi
12448
12449
12450
12451if test $pkg_failed = yes; then
12452   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453$as_echo "no" >&6; }
12454
12455if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12456        _pkg_short_errors_supported=yes
12457else
12458        _pkg_short_errors_supported=no
12459fi
12460        if test $_pkg_short_errors_supported = yes; then
12461	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
12462        else
12463	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
12464        fi
12465	# Put the nasty error message in config.log where it belongs
12466	echo "$lua_PKG_ERRORS" >&5
12467
12468	if test "x$with_lua" = xyes; then :
12469  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
12470fi
12471elif test $pkg_failed = untried; then
12472     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473$as_echo "no" >&6; }
12474	if test "x$with_lua" = xyes; then :
12475  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
12476fi
12477else
12478	lua_CFLAGS=$pkg_cv_lua_CFLAGS
12479	lua_LIBS=$pkg_cv_lua_LIBS
12480        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12481$as_echo "yes" >&6; }
12482
12483    if test "x$with_lua" = xdetect; then :
12484  with_lua='yes (found)'
12485fi
12486
12487
12488fi
12489else
12490	lua_CFLAGS=$pkg_cv_lua_CFLAGS
12491	lua_LIBS=$pkg_cv_lua_LIBS
12492        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12493$as_echo "yes" >&6; }
12494
12495    if test "x$with_lua" = xdetect; then :
12496  with_lua='yes (found)'
12497fi
12498
12499
12500fi
12501else
12502	lua_CFLAGS=$pkg_cv_lua_CFLAGS
12503	lua_LIBS=$pkg_cv_lua_LIBS
12504        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12505$as_echo "yes" >&6; }
12506
12507    if test "x$with_lua" = xdetect; then :
12508  with_lua='yes (found)'
12509fi
12510
12511
12512fi
12513else
12514	lua_CFLAGS=$pkg_cv_lua_CFLAGS
12515	lua_LIBS=$pkg_cv_lua_LIBS
12516        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12517$as_echo "yes" >&6; }
12518
12519    if test "x$with_lua" = xdetect; then :
12520  with_lua='yes (found)'
12521fi
12522
12523
12524fi
12525elif test $pkg_failed = untried; then
12526     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527$as_echo "no" >&6; }
12528
12529pkg_failed=no
12530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
12531$as_echo_n "checking for lua... " >&6; }
12532
12533if test -n "$lua_CFLAGS"; then
12534    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
12535 elif test -n "$PKG_CONFIG"; then
12536    if test -n "$PKG_CONFIG" && \
12537    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
12538  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
12539  ac_status=$?
12540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12541  test $ac_status = 0; }; then
12542  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
12543		      test "x$?" != "x0" && pkg_failed=yes
12544else
12545  pkg_failed=yes
12546fi
12547 else
12548    pkg_failed=untried
12549fi
12550if test -n "$lua_LIBS"; then
12551    pkg_cv_lua_LIBS="$lua_LIBS"
12552 elif test -n "$PKG_CONFIG"; then
12553    if test -n "$PKG_CONFIG" && \
12554    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
12555  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
12556  ac_status=$?
12557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12558  test $ac_status = 0; }; then
12559  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
12560		      test "x$?" != "x0" && pkg_failed=yes
12561else
12562  pkg_failed=yes
12563fi
12564 else
12565    pkg_failed=untried
12566fi
12567
12568
12569
12570if test $pkg_failed = yes; then
12571   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12572$as_echo "no" >&6; }
12573
12574if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12575        _pkg_short_errors_supported=yes
12576else
12577        _pkg_short_errors_supported=no
12578fi
12579        if test $_pkg_short_errors_supported = yes; then
12580	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
12581        else
12582	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
12583        fi
12584	# Put the nasty error message in config.log where it belongs
12585	echo "$lua_PKG_ERRORS" >&5
12586
12587
12588pkg_failed=no
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
12590$as_echo_n "checking for lua... " >&6; }
12591
12592if test -n "$lua_CFLAGS"; then
12593    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
12594 elif test -n "$PKG_CONFIG"; then
12595    if test -n "$PKG_CONFIG" && \
12596    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
12597  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
12598  ac_status=$?
12599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12600  test $ac_status = 0; }; then
12601  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
12602		      test "x$?" != "x0" && pkg_failed=yes
12603else
12604  pkg_failed=yes
12605fi
12606 else
12607    pkg_failed=untried
12608fi
12609if test -n "$lua_LIBS"; then
12610    pkg_cv_lua_LIBS="$lua_LIBS"
12611 elif test -n "$PKG_CONFIG"; then
12612    if test -n "$PKG_CONFIG" && \
12613    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
12614  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
12615  ac_status=$?
12616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12617  test $ac_status = 0; }; then
12618  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
12619		      test "x$?" != "x0" && pkg_failed=yes
12620else
12621  pkg_failed=yes
12622fi
12623 else
12624    pkg_failed=untried
12625fi
12626
12627
12628
12629if test $pkg_failed = yes; then
12630   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631$as_echo "no" >&6; }
12632
12633if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12634        _pkg_short_errors_supported=yes
12635else
12636        _pkg_short_errors_supported=no
12637fi
12638        if test $_pkg_short_errors_supported = yes; then
12639	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
12640        else
12641	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
12642        fi
12643	# Put the nasty error message in config.log where it belongs
12644	echo "$lua_PKG_ERRORS" >&5
12645
12646
12647pkg_failed=no
12648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
12649$as_echo_n "checking for lua... " >&6; }
12650
12651if test -n "$lua_CFLAGS"; then
12652    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
12653 elif test -n "$PKG_CONFIG"; then
12654    if test -n "$PKG_CONFIG" && \
12655    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
12656  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
12657  ac_status=$?
12658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12659  test $ac_status = 0; }; then
12660  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
12661		      test "x$?" != "x0" && pkg_failed=yes
12662else
12663  pkg_failed=yes
12664fi
12665 else
12666    pkg_failed=untried
12667fi
12668if test -n "$lua_LIBS"; then
12669    pkg_cv_lua_LIBS="$lua_LIBS"
12670 elif test -n "$PKG_CONFIG"; then
12671    if test -n "$PKG_CONFIG" && \
12672    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
12673  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
12674  ac_status=$?
12675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12676  test $ac_status = 0; }; then
12677  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
12678		      test "x$?" != "x0" && pkg_failed=yes
12679else
12680  pkg_failed=yes
12681fi
12682 else
12683    pkg_failed=untried
12684fi
12685
12686
12687
12688if test $pkg_failed = yes; then
12689   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12690$as_echo "no" >&6; }
12691
12692if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12693        _pkg_short_errors_supported=yes
12694else
12695        _pkg_short_errors_supported=no
12696fi
12697        if test $_pkg_short_errors_supported = yes; then
12698	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
12699        else
12700	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
12701        fi
12702	# Put the nasty error message in config.log where it belongs
12703	echo "$lua_PKG_ERRORS" >&5
12704
12705
12706pkg_failed=no
12707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
12708$as_echo_n "checking for lua... " >&6; }
12709
12710if test -n "$lua_CFLAGS"; then
12711    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
12712 elif test -n "$PKG_CONFIG"; then
12713    if test -n "$PKG_CONFIG" && \
12714    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
12715  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
12716  ac_status=$?
12717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12718  test $ac_status = 0; }; then
12719  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
12720		      test "x$?" != "x0" && pkg_failed=yes
12721else
12722  pkg_failed=yes
12723fi
12724 else
12725    pkg_failed=untried
12726fi
12727if test -n "$lua_LIBS"; then
12728    pkg_cv_lua_LIBS="$lua_LIBS"
12729 elif test -n "$PKG_CONFIG"; then
12730    if test -n "$PKG_CONFIG" && \
12731    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
12732  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
12733  ac_status=$?
12734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12735  test $ac_status = 0; }; then
12736  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
12737		      test "x$?" != "x0" && pkg_failed=yes
12738else
12739  pkg_failed=yes
12740fi
12741 else
12742    pkg_failed=untried
12743fi
12744
12745
12746
12747if test $pkg_failed = yes; then
12748   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749$as_echo "no" >&6; }
12750
12751if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12752        _pkg_short_errors_supported=yes
12753else
12754        _pkg_short_errors_supported=no
12755fi
12756        if test $_pkg_short_errors_supported = yes; then
12757	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
12758        else
12759	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
12760        fi
12761	# Put the nasty error message in config.log where it belongs
12762	echo "$lua_PKG_ERRORS" >&5
12763
12764	if test "x$with_lua" = xyes; then :
12765  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
12766fi
12767elif test $pkg_failed = untried; then
12768     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769$as_echo "no" >&6; }
12770	if test "x$with_lua" = xyes; then :
12771  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
12772fi
12773else
12774	lua_CFLAGS=$pkg_cv_lua_CFLAGS
12775	lua_LIBS=$pkg_cv_lua_LIBS
12776        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12777$as_echo "yes" >&6; }
12778
12779    if test "x$with_lua" = xdetect; then :
12780  with_lua='yes (found)'
12781fi
12782
12783
12784fi
12785elif test $pkg_failed = untried; then
12786     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787$as_echo "no" >&6; }
12788
12789pkg_failed=no
12790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
12791$as_echo_n "checking for lua... " >&6; }
12792
12793if test -n "$lua_CFLAGS"; then
12794    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
12795 elif test -n "$PKG_CONFIG"; then
12796    if test -n "$PKG_CONFIG" && \
12797    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
12798  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
12799  ac_status=$?
12800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12801  test $ac_status = 0; }; then
12802  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
12803		      test "x$?" != "x0" && pkg_failed=yes
12804else
12805  pkg_failed=yes
12806fi
12807 else
12808    pkg_failed=untried
12809fi
12810if test -n "$lua_LIBS"; then
12811    pkg_cv_lua_LIBS="$lua_LIBS"
12812 elif test -n "$PKG_CONFIG"; then
12813    if test -n "$PKG_CONFIG" && \
12814    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
12815  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
12816  ac_status=$?
12817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12818  test $ac_status = 0; }; then
12819  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
12820		      test "x$?" != "x0" && pkg_failed=yes
12821else
12822  pkg_failed=yes
12823fi
12824 else
12825    pkg_failed=untried
12826fi
12827
12828
12829
12830if test $pkg_failed = yes; then
12831   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832$as_echo "no" >&6; }
12833
12834if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12835        _pkg_short_errors_supported=yes
12836else
12837        _pkg_short_errors_supported=no
12838fi
12839        if test $_pkg_short_errors_supported = yes; then
12840	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
12841        else
12842	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
12843        fi
12844	# Put the nasty error message in config.log where it belongs
12845	echo "$lua_PKG_ERRORS" >&5
12846
12847	if test "x$with_lua" = xyes; then :
12848  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
12849fi
12850elif test $pkg_failed = untried; then
12851     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12852$as_echo "no" >&6; }
12853	if test "x$with_lua" = xyes; then :
12854  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
12855fi
12856else
12857	lua_CFLAGS=$pkg_cv_lua_CFLAGS
12858	lua_LIBS=$pkg_cv_lua_LIBS
12859        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12860$as_echo "yes" >&6; }
12861
12862    if test "x$with_lua" = xdetect; then :
12863  with_lua='yes (found)'
12864fi
12865
12866
12867fi
12868else
12869	lua_CFLAGS=$pkg_cv_lua_CFLAGS
12870	lua_LIBS=$pkg_cv_lua_LIBS
12871        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12872$as_echo "yes" >&6; }
12873
12874    if test "x$with_lua" = xdetect; then :
12875  with_lua='yes (found)'
12876fi
12877
12878
12879fi
12880elif test $pkg_failed = untried; then
12881     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882$as_echo "no" >&6; }
12883
12884pkg_failed=no
12885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
12886$as_echo_n "checking for lua... " >&6; }
12887
12888if test -n "$lua_CFLAGS"; then
12889    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
12890 elif test -n "$PKG_CONFIG"; then
12891    if test -n "$PKG_CONFIG" && \
12892    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
12893  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
12894  ac_status=$?
12895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12896  test $ac_status = 0; }; then
12897  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
12898		      test "x$?" != "x0" && pkg_failed=yes
12899else
12900  pkg_failed=yes
12901fi
12902 else
12903    pkg_failed=untried
12904fi
12905if test -n "$lua_LIBS"; then
12906    pkg_cv_lua_LIBS="$lua_LIBS"
12907 elif test -n "$PKG_CONFIG"; then
12908    if test -n "$PKG_CONFIG" && \
12909    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
12910  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
12911  ac_status=$?
12912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12913  test $ac_status = 0; }; then
12914  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
12915		      test "x$?" != "x0" && pkg_failed=yes
12916else
12917  pkg_failed=yes
12918fi
12919 else
12920    pkg_failed=untried
12921fi
12922
12923
12924
12925if test $pkg_failed = yes; then
12926   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12927$as_echo "no" >&6; }
12928
12929if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12930        _pkg_short_errors_supported=yes
12931else
12932        _pkg_short_errors_supported=no
12933fi
12934        if test $_pkg_short_errors_supported = yes; then
12935	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
12936        else
12937	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
12938        fi
12939	# Put the nasty error message in config.log where it belongs
12940	echo "$lua_PKG_ERRORS" >&5
12941
12942
12943pkg_failed=no
12944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
12945$as_echo_n "checking for lua... " >&6; }
12946
12947if test -n "$lua_CFLAGS"; then
12948    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
12949 elif test -n "$PKG_CONFIG"; then
12950    if test -n "$PKG_CONFIG" && \
12951    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
12952  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
12953  ac_status=$?
12954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12955  test $ac_status = 0; }; then
12956  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
12957		      test "x$?" != "x0" && pkg_failed=yes
12958else
12959  pkg_failed=yes
12960fi
12961 else
12962    pkg_failed=untried
12963fi
12964if test -n "$lua_LIBS"; then
12965    pkg_cv_lua_LIBS="$lua_LIBS"
12966 elif test -n "$PKG_CONFIG"; then
12967    if test -n "$PKG_CONFIG" && \
12968    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
12969  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
12970  ac_status=$?
12971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12972  test $ac_status = 0; }; then
12973  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
12974		      test "x$?" != "x0" && pkg_failed=yes
12975else
12976  pkg_failed=yes
12977fi
12978 else
12979    pkg_failed=untried
12980fi
12981
12982
12983
12984if test $pkg_failed = yes; then
12985   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986$as_echo "no" >&6; }
12987
12988if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12989        _pkg_short_errors_supported=yes
12990else
12991        _pkg_short_errors_supported=no
12992fi
12993        if test $_pkg_short_errors_supported = yes; then
12994	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
12995        else
12996	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
12997        fi
12998	# Put the nasty error message in config.log where it belongs
12999	echo "$lua_PKG_ERRORS" >&5
13000
13001	if test "x$with_lua" = xyes; then :
13002  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
13003fi
13004elif test $pkg_failed = untried; then
13005     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13006$as_echo "no" >&6; }
13007	if test "x$with_lua" = xyes; then :
13008  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
13009fi
13010else
13011	lua_CFLAGS=$pkg_cv_lua_CFLAGS
13012	lua_LIBS=$pkg_cv_lua_LIBS
13013        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13014$as_echo "yes" >&6; }
13015
13016    if test "x$with_lua" = xdetect; then :
13017  with_lua='yes (found)'
13018fi
13019
13020
13021fi
13022elif test $pkg_failed = untried; then
13023     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024$as_echo "no" >&6; }
13025
13026pkg_failed=no
13027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
13028$as_echo_n "checking for lua... " >&6; }
13029
13030if test -n "$lua_CFLAGS"; then
13031    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
13032 elif test -n "$PKG_CONFIG"; then
13033    if test -n "$PKG_CONFIG" && \
13034    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
13035  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
13036  ac_status=$?
13037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13038  test $ac_status = 0; }; then
13039  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
13040		      test "x$?" != "x0" && pkg_failed=yes
13041else
13042  pkg_failed=yes
13043fi
13044 else
13045    pkg_failed=untried
13046fi
13047if test -n "$lua_LIBS"; then
13048    pkg_cv_lua_LIBS="$lua_LIBS"
13049 elif test -n "$PKG_CONFIG"; then
13050    if test -n "$PKG_CONFIG" && \
13051    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
13052  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
13053  ac_status=$?
13054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13055  test $ac_status = 0; }; then
13056  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
13057		      test "x$?" != "x0" && pkg_failed=yes
13058else
13059  pkg_failed=yes
13060fi
13061 else
13062    pkg_failed=untried
13063fi
13064
13065
13066
13067if test $pkg_failed = yes; then
13068   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069$as_echo "no" >&6; }
13070
13071if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13072        _pkg_short_errors_supported=yes
13073else
13074        _pkg_short_errors_supported=no
13075fi
13076        if test $_pkg_short_errors_supported = yes; then
13077	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
13078        else
13079	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
13080        fi
13081	# Put the nasty error message in config.log where it belongs
13082	echo "$lua_PKG_ERRORS" >&5
13083
13084	if test "x$with_lua" = xyes; then :
13085  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
13086fi
13087elif test $pkg_failed = untried; then
13088     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089$as_echo "no" >&6; }
13090	if test "x$with_lua" = xyes; then :
13091  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
13092fi
13093else
13094	lua_CFLAGS=$pkg_cv_lua_CFLAGS
13095	lua_LIBS=$pkg_cv_lua_LIBS
13096        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13097$as_echo "yes" >&6; }
13098
13099    if test "x$with_lua" = xdetect; then :
13100  with_lua='yes (found)'
13101fi
13102
13103
13104fi
13105else
13106	lua_CFLAGS=$pkg_cv_lua_CFLAGS
13107	lua_LIBS=$pkg_cv_lua_LIBS
13108        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13109$as_echo "yes" >&6; }
13110
13111    if test "x$with_lua" = xdetect; then :
13112  with_lua='yes (found)'
13113fi
13114
13115
13116fi
13117else
13118	lua_CFLAGS=$pkg_cv_lua_CFLAGS
13119	lua_LIBS=$pkg_cv_lua_LIBS
13120        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13121$as_echo "yes" >&6; }
13122
13123    if test "x$with_lua" = xdetect; then :
13124  with_lua='yes (found)'
13125fi
13126
13127
13128fi
13129elif test $pkg_failed = untried; then
13130     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13131$as_echo "no" >&6; }
13132
13133pkg_failed=no
13134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
13135$as_echo_n "checking for lua... " >&6; }
13136
13137if test -n "$lua_CFLAGS"; then
13138    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
13139 elif test -n "$PKG_CONFIG"; then
13140    if test -n "$PKG_CONFIG" && \
13141    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
13142  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
13143  ac_status=$?
13144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13145  test $ac_status = 0; }; then
13146  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
13147		      test "x$?" != "x0" && pkg_failed=yes
13148else
13149  pkg_failed=yes
13150fi
13151 else
13152    pkg_failed=untried
13153fi
13154if test -n "$lua_LIBS"; then
13155    pkg_cv_lua_LIBS="$lua_LIBS"
13156 elif test -n "$PKG_CONFIG"; then
13157    if test -n "$PKG_CONFIG" && \
13158    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
13159  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
13160  ac_status=$?
13161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13162  test $ac_status = 0; }; then
13163  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
13164		      test "x$?" != "x0" && pkg_failed=yes
13165else
13166  pkg_failed=yes
13167fi
13168 else
13169    pkg_failed=untried
13170fi
13171
13172
13173
13174if test $pkg_failed = yes; then
13175   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13176$as_echo "no" >&6; }
13177
13178if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13179        _pkg_short_errors_supported=yes
13180else
13181        _pkg_short_errors_supported=no
13182fi
13183        if test $_pkg_short_errors_supported = yes; then
13184	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
13185        else
13186	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
13187        fi
13188	# Put the nasty error message in config.log where it belongs
13189	echo "$lua_PKG_ERRORS" >&5
13190
13191
13192pkg_failed=no
13193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
13194$as_echo_n "checking for lua... " >&6; }
13195
13196if test -n "$lua_CFLAGS"; then
13197    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
13198 elif test -n "$PKG_CONFIG"; then
13199    if test -n "$PKG_CONFIG" && \
13200    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
13201  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
13202  ac_status=$?
13203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13204  test $ac_status = 0; }; then
13205  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
13206		      test "x$?" != "x0" && pkg_failed=yes
13207else
13208  pkg_failed=yes
13209fi
13210 else
13211    pkg_failed=untried
13212fi
13213if test -n "$lua_LIBS"; then
13214    pkg_cv_lua_LIBS="$lua_LIBS"
13215 elif test -n "$PKG_CONFIG"; then
13216    if test -n "$PKG_CONFIG" && \
13217    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
13218  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
13219  ac_status=$?
13220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13221  test $ac_status = 0; }; then
13222  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
13223		      test "x$?" != "x0" && pkg_failed=yes
13224else
13225  pkg_failed=yes
13226fi
13227 else
13228    pkg_failed=untried
13229fi
13230
13231
13232
13233if test $pkg_failed = yes; then
13234   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13235$as_echo "no" >&6; }
13236
13237if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13238        _pkg_short_errors_supported=yes
13239else
13240        _pkg_short_errors_supported=no
13241fi
13242        if test $_pkg_short_errors_supported = yes; then
13243	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
13244        else
13245	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
13246        fi
13247	# Put the nasty error message in config.log where it belongs
13248	echo "$lua_PKG_ERRORS" >&5
13249
13250
13251pkg_failed=no
13252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
13253$as_echo_n "checking for lua... " >&6; }
13254
13255if test -n "$lua_CFLAGS"; then
13256    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
13257 elif test -n "$PKG_CONFIG"; then
13258    if test -n "$PKG_CONFIG" && \
13259    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
13260  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
13261  ac_status=$?
13262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13263  test $ac_status = 0; }; then
13264  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
13265		      test "x$?" != "x0" && pkg_failed=yes
13266else
13267  pkg_failed=yes
13268fi
13269 else
13270    pkg_failed=untried
13271fi
13272if test -n "$lua_LIBS"; then
13273    pkg_cv_lua_LIBS="$lua_LIBS"
13274 elif test -n "$PKG_CONFIG"; then
13275    if test -n "$PKG_CONFIG" && \
13276    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
13277  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
13278  ac_status=$?
13279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13280  test $ac_status = 0; }; then
13281  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
13282		      test "x$?" != "x0" && pkg_failed=yes
13283else
13284  pkg_failed=yes
13285fi
13286 else
13287    pkg_failed=untried
13288fi
13289
13290
13291
13292if test $pkg_failed = yes; then
13293   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294$as_echo "no" >&6; }
13295
13296if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13297        _pkg_short_errors_supported=yes
13298else
13299        _pkg_short_errors_supported=no
13300fi
13301        if test $_pkg_short_errors_supported = yes; then
13302	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
13303        else
13304	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
13305        fi
13306	# Put the nasty error message in config.log where it belongs
13307	echo "$lua_PKG_ERRORS" >&5
13308
13309	if test "x$with_lua" = xyes; then :
13310  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
13311fi
13312elif test $pkg_failed = untried; then
13313     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314$as_echo "no" >&6; }
13315	if test "x$with_lua" = xyes; then :
13316  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
13317fi
13318else
13319	lua_CFLAGS=$pkg_cv_lua_CFLAGS
13320	lua_LIBS=$pkg_cv_lua_LIBS
13321        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13322$as_echo "yes" >&6; }
13323
13324    if test "x$with_lua" = xdetect; then :
13325  with_lua='yes (found)'
13326fi
13327
13328
13329fi
13330elif test $pkg_failed = untried; then
13331     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13332$as_echo "no" >&6; }
13333
13334pkg_failed=no
13335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
13336$as_echo_n "checking for lua... " >&6; }
13337
13338if test -n "$lua_CFLAGS"; then
13339    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
13340 elif test -n "$PKG_CONFIG"; then
13341    if test -n "$PKG_CONFIG" && \
13342    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
13343  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
13344  ac_status=$?
13345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13346  test $ac_status = 0; }; then
13347  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
13348		      test "x$?" != "x0" && pkg_failed=yes
13349else
13350  pkg_failed=yes
13351fi
13352 else
13353    pkg_failed=untried
13354fi
13355if test -n "$lua_LIBS"; then
13356    pkg_cv_lua_LIBS="$lua_LIBS"
13357 elif test -n "$PKG_CONFIG"; then
13358    if test -n "$PKG_CONFIG" && \
13359    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
13360  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
13361  ac_status=$?
13362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13363  test $ac_status = 0; }; then
13364  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
13365		      test "x$?" != "x0" && pkg_failed=yes
13366else
13367  pkg_failed=yes
13368fi
13369 else
13370    pkg_failed=untried
13371fi
13372
13373
13374
13375if test $pkg_failed = yes; then
13376   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377$as_echo "no" >&6; }
13378
13379if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13380        _pkg_short_errors_supported=yes
13381else
13382        _pkg_short_errors_supported=no
13383fi
13384        if test $_pkg_short_errors_supported = yes; then
13385	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
13386        else
13387	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
13388        fi
13389	# Put the nasty error message in config.log where it belongs
13390	echo "$lua_PKG_ERRORS" >&5
13391
13392	if test "x$with_lua" = xyes; then :
13393  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
13394fi
13395elif test $pkg_failed = untried; then
13396     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13397$as_echo "no" >&6; }
13398	if test "x$with_lua" = xyes; then :
13399  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
13400fi
13401else
13402	lua_CFLAGS=$pkg_cv_lua_CFLAGS
13403	lua_LIBS=$pkg_cv_lua_LIBS
13404        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13405$as_echo "yes" >&6; }
13406
13407    if test "x$with_lua" = xdetect; then :
13408  with_lua='yes (found)'
13409fi
13410
13411
13412fi
13413else
13414	lua_CFLAGS=$pkg_cv_lua_CFLAGS
13415	lua_LIBS=$pkg_cv_lua_LIBS
13416        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13417$as_echo "yes" >&6; }
13418
13419    if test "x$with_lua" = xdetect; then :
13420  with_lua='yes (found)'
13421fi
13422
13423
13424fi
13425elif test $pkg_failed = untried; then
13426     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427$as_echo "no" >&6; }
13428
13429pkg_failed=no
13430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
13431$as_echo_n "checking for lua... " >&6; }
13432
13433if test -n "$lua_CFLAGS"; then
13434    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
13435 elif test -n "$PKG_CONFIG"; then
13436    if test -n "$PKG_CONFIG" && \
13437    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
13438  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
13439  ac_status=$?
13440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13441  test $ac_status = 0; }; then
13442  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
13443		      test "x$?" != "x0" && pkg_failed=yes
13444else
13445  pkg_failed=yes
13446fi
13447 else
13448    pkg_failed=untried
13449fi
13450if test -n "$lua_LIBS"; then
13451    pkg_cv_lua_LIBS="$lua_LIBS"
13452 elif test -n "$PKG_CONFIG"; then
13453    if test -n "$PKG_CONFIG" && \
13454    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
13455  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
13456  ac_status=$?
13457  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13458  test $ac_status = 0; }; then
13459  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
13460		      test "x$?" != "x0" && pkg_failed=yes
13461else
13462  pkg_failed=yes
13463fi
13464 else
13465    pkg_failed=untried
13466fi
13467
13468
13469
13470if test $pkg_failed = yes; then
13471   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13472$as_echo "no" >&6; }
13473
13474if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13475        _pkg_short_errors_supported=yes
13476else
13477        _pkg_short_errors_supported=no
13478fi
13479        if test $_pkg_short_errors_supported = yes; then
13480	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
13481        else
13482	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
13483        fi
13484	# Put the nasty error message in config.log where it belongs
13485	echo "$lua_PKG_ERRORS" >&5
13486
13487
13488pkg_failed=no
13489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
13490$as_echo_n "checking for lua... " >&6; }
13491
13492if test -n "$lua_CFLAGS"; then
13493    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
13494 elif test -n "$PKG_CONFIG"; then
13495    if test -n "$PKG_CONFIG" && \
13496    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
13497  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
13498  ac_status=$?
13499  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13500  test $ac_status = 0; }; then
13501  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
13502		      test "x$?" != "x0" && pkg_failed=yes
13503else
13504  pkg_failed=yes
13505fi
13506 else
13507    pkg_failed=untried
13508fi
13509if test -n "$lua_LIBS"; then
13510    pkg_cv_lua_LIBS="$lua_LIBS"
13511 elif test -n "$PKG_CONFIG"; then
13512    if test -n "$PKG_CONFIG" && \
13513    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
13514  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
13515  ac_status=$?
13516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13517  test $ac_status = 0; }; then
13518  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
13519		      test "x$?" != "x0" && pkg_failed=yes
13520else
13521  pkg_failed=yes
13522fi
13523 else
13524    pkg_failed=untried
13525fi
13526
13527
13528
13529if test $pkg_failed = yes; then
13530   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13531$as_echo "no" >&6; }
13532
13533if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13534        _pkg_short_errors_supported=yes
13535else
13536        _pkg_short_errors_supported=no
13537fi
13538        if test $_pkg_short_errors_supported = yes; then
13539	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
13540        else
13541	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
13542        fi
13543	# Put the nasty error message in config.log where it belongs
13544	echo "$lua_PKG_ERRORS" >&5
13545
13546	if test "x$with_lua" = xyes; then :
13547  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
13548fi
13549elif test $pkg_failed = untried; then
13550     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551$as_echo "no" >&6; }
13552	if test "x$with_lua" = xyes; then :
13553  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
13554fi
13555else
13556	lua_CFLAGS=$pkg_cv_lua_CFLAGS
13557	lua_LIBS=$pkg_cv_lua_LIBS
13558        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13559$as_echo "yes" >&6; }
13560
13561    if test "x$with_lua" = xdetect; then :
13562  with_lua='yes (found)'
13563fi
13564
13565
13566fi
13567elif test $pkg_failed = untried; then
13568     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13569$as_echo "no" >&6; }
13570
13571pkg_failed=no
13572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
13573$as_echo_n "checking for lua... " >&6; }
13574
13575if test -n "$lua_CFLAGS"; then
13576    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
13577 elif test -n "$PKG_CONFIG"; then
13578    if test -n "$PKG_CONFIG" && \
13579    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
13580  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
13581  ac_status=$?
13582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13583  test $ac_status = 0; }; then
13584  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
13585		      test "x$?" != "x0" && pkg_failed=yes
13586else
13587  pkg_failed=yes
13588fi
13589 else
13590    pkg_failed=untried
13591fi
13592if test -n "$lua_LIBS"; then
13593    pkg_cv_lua_LIBS="$lua_LIBS"
13594 elif test -n "$PKG_CONFIG"; then
13595    if test -n "$PKG_CONFIG" && \
13596    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
13597  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
13598  ac_status=$?
13599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13600  test $ac_status = 0; }; then
13601  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
13602		      test "x$?" != "x0" && pkg_failed=yes
13603else
13604  pkg_failed=yes
13605fi
13606 else
13607    pkg_failed=untried
13608fi
13609
13610
13611
13612if test $pkg_failed = yes; then
13613   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614$as_echo "no" >&6; }
13615
13616if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13617        _pkg_short_errors_supported=yes
13618else
13619        _pkg_short_errors_supported=no
13620fi
13621        if test $_pkg_short_errors_supported = yes; then
13622	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
13623        else
13624	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
13625        fi
13626	# Put the nasty error message in config.log where it belongs
13627	echo "$lua_PKG_ERRORS" >&5
13628
13629	if test "x$with_lua" = xyes; then :
13630  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
13631fi
13632elif test $pkg_failed = untried; then
13633     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13634$as_echo "no" >&6; }
13635	if test "x$with_lua" = xyes; then :
13636  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
13637fi
13638else
13639	lua_CFLAGS=$pkg_cv_lua_CFLAGS
13640	lua_LIBS=$pkg_cv_lua_LIBS
13641        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13642$as_echo "yes" >&6; }
13643
13644    if test "x$with_lua" = xdetect; then :
13645  with_lua='yes (found)'
13646fi
13647
13648
13649fi
13650else
13651	lua_CFLAGS=$pkg_cv_lua_CFLAGS
13652	lua_LIBS=$pkg_cv_lua_LIBS
13653        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13654$as_echo "yes" >&6; }
13655
13656    if test "x$with_lua" = xdetect; then :
13657  with_lua='yes (found)'
13658fi
13659
13660
13661fi
13662else
13663	lua_CFLAGS=$pkg_cv_lua_CFLAGS
13664	lua_LIBS=$pkg_cv_lua_LIBS
13665        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13666$as_echo "yes" >&6; }
13667
13668    if test "x$with_lua" = xdetect; then :
13669  with_lua='yes (found)'
13670fi
13671
13672
13673fi
13674else
13675	lua_CFLAGS=$pkg_cv_lua_CFLAGS
13676	lua_LIBS=$pkg_cv_lua_LIBS
13677        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13678$as_echo "yes" >&6; }
13679
13680    if test "x$with_lua" = xdetect; then :
13681  with_lua='yes (found)'
13682fi
13683
13684
13685fi
13686else
13687	lua_CFLAGS=$pkg_cv_lua_CFLAGS
13688	lua_LIBS=$pkg_cv_lua_LIBS
13689        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13690$as_echo "yes" >&6; }
13691
13692    if test "x$with_lua" = xdetect; then :
13693  with_lua='yes (found)'
13694fi
13695
13696
13697fi
13698elif test $pkg_failed = untried; then
13699     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13700$as_echo "no" >&6; }
13701
13702pkg_failed=no
13703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
13704$as_echo_n "checking for lua... " >&6; }
13705
13706if test -n "$lua_CFLAGS"; then
13707    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
13708 elif test -n "$PKG_CONFIG"; then
13709    if test -n "$PKG_CONFIG" && \
13710    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
13711  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
13712  ac_status=$?
13713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13714  test $ac_status = 0; }; then
13715  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
13716		      test "x$?" != "x0" && pkg_failed=yes
13717else
13718  pkg_failed=yes
13719fi
13720 else
13721    pkg_failed=untried
13722fi
13723if test -n "$lua_LIBS"; then
13724    pkg_cv_lua_LIBS="$lua_LIBS"
13725 elif test -n "$PKG_CONFIG"; then
13726    if test -n "$PKG_CONFIG" && \
13727    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
13728  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
13729  ac_status=$?
13730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13731  test $ac_status = 0; }; then
13732  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
13733		      test "x$?" != "x0" && pkg_failed=yes
13734else
13735  pkg_failed=yes
13736fi
13737 else
13738    pkg_failed=untried
13739fi
13740
13741
13742
13743if test $pkg_failed = yes; then
13744   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13745$as_echo "no" >&6; }
13746
13747if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13748        _pkg_short_errors_supported=yes
13749else
13750        _pkg_short_errors_supported=no
13751fi
13752        if test $_pkg_short_errors_supported = yes; then
13753	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
13754        else
13755	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
13756        fi
13757	# Put the nasty error message in config.log where it belongs
13758	echo "$lua_PKG_ERRORS" >&5
13759
13760
13761pkg_failed=no
13762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
13763$as_echo_n "checking for lua... " >&6; }
13764
13765if test -n "$lua_CFLAGS"; then
13766    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
13767 elif test -n "$PKG_CONFIG"; then
13768    if test -n "$PKG_CONFIG" && \
13769    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
13770  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
13771  ac_status=$?
13772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13773  test $ac_status = 0; }; then
13774  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
13775		      test "x$?" != "x0" && pkg_failed=yes
13776else
13777  pkg_failed=yes
13778fi
13779 else
13780    pkg_failed=untried
13781fi
13782if test -n "$lua_LIBS"; then
13783    pkg_cv_lua_LIBS="$lua_LIBS"
13784 elif test -n "$PKG_CONFIG"; then
13785    if test -n "$PKG_CONFIG" && \
13786    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
13787  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
13788  ac_status=$?
13789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13790  test $ac_status = 0; }; then
13791  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
13792		      test "x$?" != "x0" && pkg_failed=yes
13793else
13794  pkg_failed=yes
13795fi
13796 else
13797    pkg_failed=untried
13798fi
13799
13800
13801
13802if test $pkg_failed = yes; then
13803   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13804$as_echo "no" >&6; }
13805
13806if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13807        _pkg_short_errors_supported=yes
13808else
13809        _pkg_short_errors_supported=no
13810fi
13811        if test $_pkg_short_errors_supported = yes; then
13812	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
13813        else
13814	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
13815        fi
13816	# Put the nasty error message in config.log where it belongs
13817	echo "$lua_PKG_ERRORS" >&5
13818
13819
13820pkg_failed=no
13821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
13822$as_echo_n "checking for lua... " >&6; }
13823
13824if test -n "$lua_CFLAGS"; then
13825    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
13826 elif test -n "$PKG_CONFIG"; then
13827    if test -n "$PKG_CONFIG" && \
13828    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
13829  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
13830  ac_status=$?
13831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13832  test $ac_status = 0; }; then
13833  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
13834		      test "x$?" != "x0" && pkg_failed=yes
13835else
13836  pkg_failed=yes
13837fi
13838 else
13839    pkg_failed=untried
13840fi
13841if test -n "$lua_LIBS"; then
13842    pkg_cv_lua_LIBS="$lua_LIBS"
13843 elif test -n "$PKG_CONFIG"; then
13844    if test -n "$PKG_CONFIG" && \
13845    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
13846  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
13847  ac_status=$?
13848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13849  test $ac_status = 0; }; then
13850  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
13851		      test "x$?" != "x0" && pkg_failed=yes
13852else
13853  pkg_failed=yes
13854fi
13855 else
13856    pkg_failed=untried
13857fi
13858
13859
13860
13861if test $pkg_failed = yes; then
13862   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13863$as_echo "no" >&6; }
13864
13865if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13866        _pkg_short_errors_supported=yes
13867else
13868        _pkg_short_errors_supported=no
13869fi
13870        if test $_pkg_short_errors_supported = yes; then
13871	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
13872        else
13873	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
13874        fi
13875	# Put the nasty error message in config.log where it belongs
13876	echo "$lua_PKG_ERRORS" >&5
13877
13878
13879pkg_failed=no
13880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
13881$as_echo_n "checking for lua... " >&6; }
13882
13883if test -n "$lua_CFLAGS"; then
13884    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
13885 elif test -n "$PKG_CONFIG"; then
13886    if test -n "$PKG_CONFIG" && \
13887    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
13888  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
13889  ac_status=$?
13890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13891  test $ac_status = 0; }; then
13892  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
13893		      test "x$?" != "x0" && pkg_failed=yes
13894else
13895  pkg_failed=yes
13896fi
13897 else
13898    pkg_failed=untried
13899fi
13900if test -n "$lua_LIBS"; then
13901    pkg_cv_lua_LIBS="$lua_LIBS"
13902 elif test -n "$PKG_CONFIG"; then
13903    if test -n "$PKG_CONFIG" && \
13904    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
13905  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
13906  ac_status=$?
13907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13908  test $ac_status = 0; }; then
13909  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
13910		      test "x$?" != "x0" && pkg_failed=yes
13911else
13912  pkg_failed=yes
13913fi
13914 else
13915    pkg_failed=untried
13916fi
13917
13918
13919
13920if test $pkg_failed = yes; then
13921   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13922$as_echo "no" >&6; }
13923
13924if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13925        _pkg_short_errors_supported=yes
13926else
13927        _pkg_short_errors_supported=no
13928fi
13929        if test $_pkg_short_errors_supported = yes; then
13930	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
13931        else
13932	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
13933        fi
13934	# Put the nasty error message in config.log where it belongs
13935	echo "$lua_PKG_ERRORS" >&5
13936
13937
13938pkg_failed=no
13939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
13940$as_echo_n "checking for lua... " >&6; }
13941
13942if test -n "$lua_CFLAGS"; then
13943    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
13944 elif test -n "$PKG_CONFIG"; then
13945    if test -n "$PKG_CONFIG" && \
13946    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
13947  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
13948  ac_status=$?
13949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13950  test $ac_status = 0; }; then
13951  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
13952		      test "x$?" != "x0" && pkg_failed=yes
13953else
13954  pkg_failed=yes
13955fi
13956 else
13957    pkg_failed=untried
13958fi
13959if test -n "$lua_LIBS"; then
13960    pkg_cv_lua_LIBS="$lua_LIBS"
13961 elif test -n "$PKG_CONFIG"; then
13962    if test -n "$PKG_CONFIG" && \
13963    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
13964  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
13965  ac_status=$?
13966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13967  test $ac_status = 0; }; then
13968  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
13969		      test "x$?" != "x0" && pkg_failed=yes
13970else
13971  pkg_failed=yes
13972fi
13973 else
13974    pkg_failed=untried
13975fi
13976
13977
13978
13979if test $pkg_failed = yes; then
13980   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13981$as_echo "no" >&6; }
13982
13983if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13984        _pkg_short_errors_supported=yes
13985else
13986        _pkg_short_errors_supported=no
13987fi
13988        if test $_pkg_short_errors_supported = yes; then
13989	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
13990        else
13991	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
13992        fi
13993	# Put the nasty error message in config.log where it belongs
13994	echo "$lua_PKG_ERRORS" >&5
13995
13996	if test "x$with_lua" = xyes; then :
13997  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
13998fi
13999elif test $pkg_failed = untried; then
14000     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14001$as_echo "no" >&6; }
14002	if test "x$with_lua" = xyes; then :
14003  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
14004fi
14005else
14006	lua_CFLAGS=$pkg_cv_lua_CFLAGS
14007	lua_LIBS=$pkg_cv_lua_LIBS
14008        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14009$as_echo "yes" >&6; }
14010
14011    if test "x$with_lua" = xdetect; then :
14012  with_lua='yes (found)'
14013fi
14014
14015
14016fi
14017elif test $pkg_failed = untried; then
14018     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14019$as_echo "no" >&6; }
14020
14021pkg_failed=no
14022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
14023$as_echo_n "checking for lua... " >&6; }
14024
14025if test -n "$lua_CFLAGS"; then
14026    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
14027 elif test -n "$PKG_CONFIG"; then
14028    if test -n "$PKG_CONFIG" && \
14029    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
14030  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
14031  ac_status=$?
14032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14033  test $ac_status = 0; }; then
14034  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
14035		      test "x$?" != "x0" && pkg_failed=yes
14036else
14037  pkg_failed=yes
14038fi
14039 else
14040    pkg_failed=untried
14041fi
14042if test -n "$lua_LIBS"; then
14043    pkg_cv_lua_LIBS="$lua_LIBS"
14044 elif test -n "$PKG_CONFIG"; then
14045    if test -n "$PKG_CONFIG" && \
14046    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
14047  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
14048  ac_status=$?
14049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14050  test $ac_status = 0; }; then
14051  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
14052		      test "x$?" != "x0" && pkg_failed=yes
14053else
14054  pkg_failed=yes
14055fi
14056 else
14057    pkg_failed=untried
14058fi
14059
14060
14061
14062if test $pkg_failed = yes; then
14063   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14064$as_echo "no" >&6; }
14065
14066if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14067        _pkg_short_errors_supported=yes
14068else
14069        _pkg_short_errors_supported=no
14070fi
14071        if test $_pkg_short_errors_supported = yes; then
14072	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
14073        else
14074	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
14075        fi
14076	# Put the nasty error message in config.log where it belongs
14077	echo "$lua_PKG_ERRORS" >&5
14078
14079	if test "x$with_lua" = xyes; then :
14080  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
14081fi
14082elif test $pkg_failed = untried; then
14083     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14084$as_echo "no" >&6; }
14085	if test "x$with_lua" = xyes; then :
14086  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
14087fi
14088else
14089	lua_CFLAGS=$pkg_cv_lua_CFLAGS
14090	lua_LIBS=$pkg_cv_lua_LIBS
14091        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14092$as_echo "yes" >&6; }
14093
14094    if test "x$with_lua" = xdetect; then :
14095  with_lua='yes (found)'
14096fi
14097
14098
14099fi
14100else
14101	lua_CFLAGS=$pkg_cv_lua_CFLAGS
14102	lua_LIBS=$pkg_cv_lua_LIBS
14103        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14104$as_echo "yes" >&6; }
14105
14106    if test "x$with_lua" = xdetect; then :
14107  with_lua='yes (found)'
14108fi
14109
14110
14111fi
14112elif test $pkg_failed = untried; then
14113     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14114$as_echo "no" >&6; }
14115
14116pkg_failed=no
14117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
14118$as_echo_n "checking for lua... " >&6; }
14119
14120if test -n "$lua_CFLAGS"; then
14121    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
14122 elif test -n "$PKG_CONFIG"; then
14123    if test -n "$PKG_CONFIG" && \
14124    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
14125  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
14126  ac_status=$?
14127  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14128  test $ac_status = 0; }; then
14129  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
14130		      test "x$?" != "x0" && pkg_failed=yes
14131else
14132  pkg_failed=yes
14133fi
14134 else
14135    pkg_failed=untried
14136fi
14137if test -n "$lua_LIBS"; then
14138    pkg_cv_lua_LIBS="$lua_LIBS"
14139 elif test -n "$PKG_CONFIG"; then
14140    if test -n "$PKG_CONFIG" && \
14141    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
14142  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
14143  ac_status=$?
14144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14145  test $ac_status = 0; }; then
14146  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
14147		      test "x$?" != "x0" && pkg_failed=yes
14148else
14149  pkg_failed=yes
14150fi
14151 else
14152    pkg_failed=untried
14153fi
14154
14155
14156
14157if test $pkg_failed = yes; then
14158   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14159$as_echo "no" >&6; }
14160
14161if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14162        _pkg_short_errors_supported=yes
14163else
14164        _pkg_short_errors_supported=no
14165fi
14166        if test $_pkg_short_errors_supported = yes; then
14167	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
14168        else
14169	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
14170        fi
14171	# Put the nasty error message in config.log where it belongs
14172	echo "$lua_PKG_ERRORS" >&5
14173
14174
14175pkg_failed=no
14176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
14177$as_echo_n "checking for lua... " >&6; }
14178
14179if test -n "$lua_CFLAGS"; then
14180    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
14181 elif test -n "$PKG_CONFIG"; then
14182    if test -n "$PKG_CONFIG" && \
14183    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
14184  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
14185  ac_status=$?
14186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14187  test $ac_status = 0; }; then
14188  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
14189		      test "x$?" != "x0" && pkg_failed=yes
14190else
14191  pkg_failed=yes
14192fi
14193 else
14194    pkg_failed=untried
14195fi
14196if test -n "$lua_LIBS"; then
14197    pkg_cv_lua_LIBS="$lua_LIBS"
14198 elif test -n "$PKG_CONFIG"; then
14199    if test -n "$PKG_CONFIG" && \
14200    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
14201  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
14202  ac_status=$?
14203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14204  test $ac_status = 0; }; then
14205  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
14206		      test "x$?" != "x0" && pkg_failed=yes
14207else
14208  pkg_failed=yes
14209fi
14210 else
14211    pkg_failed=untried
14212fi
14213
14214
14215
14216if test $pkg_failed = yes; then
14217   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14218$as_echo "no" >&6; }
14219
14220if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14221        _pkg_short_errors_supported=yes
14222else
14223        _pkg_short_errors_supported=no
14224fi
14225        if test $_pkg_short_errors_supported = yes; then
14226	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
14227        else
14228	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
14229        fi
14230	# Put the nasty error message in config.log where it belongs
14231	echo "$lua_PKG_ERRORS" >&5
14232
14233	if test "x$with_lua" = xyes; then :
14234  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
14235fi
14236elif test $pkg_failed = untried; then
14237     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14238$as_echo "no" >&6; }
14239	if test "x$with_lua" = xyes; then :
14240  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
14241fi
14242else
14243	lua_CFLAGS=$pkg_cv_lua_CFLAGS
14244	lua_LIBS=$pkg_cv_lua_LIBS
14245        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14246$as_echo "yes" >&6; }
14247
14248    if test "x$with_lua" = xdetect; then :
14249  with_lua='yes (found)'
14250fi
14251
14252
14253fi
14254elif test $pkg_failed = untried; then
14255     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14256$as_echo "no" >&6; }
14257
14258pkg_failed=no
14259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
14260$as_echo_n "checking for lua... " >&6; }
14261
14262if test -n "$lua_CFLAGS"; then
14263    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
14264 elif test -n "$PKG_CONFIG"; then
14265    if test -n "$PKG_CONFIG" && \
14266    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
14267  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
14268  ac_status=$?
14269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14270  test $ac_status = 0; }; then
14271  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
14272		      test "x$?" != "x0" && pkg_failed=yes
14273else
14274  pkg_failed=yes
14275fi
14276 else
14277    pkg_failed=untried
14278fi
14279if test -n "$lua_LIBS"; then
14280    pkg_cv_lua_LIBS="$lua_LIBS"
14281 elif test -n "$PKG_CONFIG"; then
14282    if test -n "$PKG_CONFIG" && \
14283    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
14284  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
14285  ac_status=$?
14286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14287  test $ac_status = 0; }; then
14288  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
14289		      test "x$?" != "x0" && pkg_failed=yes
14290else
14291  pkg_failed=yes
14292fi
14293 else
14294    pkg_failed=untried
14295fi
14296
14297
14298
14299if test $pkg_failed = yes; then
14300   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14301$as_echo "no" >&6; }
14302
14303if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14304        _pkg_short_errors_supported=yes
14305else
14306        _pkg_short_errors_supported=no
14307fi
14308        if test $_pkg_short_errors_supported = yes; then
14309	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
14310        else
14311	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
14312        fi
14313	# Put the nasty error message in config.log where it belongs
14314	echo "$lua_PKG_ERRORS" >&5
14315
14316	if test "x$with_lua" = xyes; then :
14317  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
14318fi
14319elif test $pkg_failed = untried; then
14320     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14321$as_echo "no" >&6; }
14322	if test "x$with_lua" = xyes; then :
14323  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
14324fi
14325else
14326	lua_CFLAGS=$pkg_cv_lua_CFLAGS
14327	lua_LIBS=$pkg_cv_lua_LIBS
14328        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14329$as_echo "yes" >&6; }
14330
14331    if test "x$with_lua" = xdetect; then :
14332  with_lua='yes (found)'
14333fi
14334
14335
14336fi
14337else
14338	lua_CFLAGS=$pkg_cv_lua_CFLAGS
14339	lua_LIBS=$pkg_cv_lua_LIBS
14340        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14341$as_echo "yes" >&6; }
14342
14343    if test "x$with_lua" = xdetect; then :
14344  with_lua='yes (found)'
14345fi
14346
14347
14348fi
14349else
14350	lua_CFLAGS=$pkg_cv_lua_CFLAGS
14351	lua_LIBS=$pkg_cv_lua_LIBS
14352        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14353$as_echo "yes" >&6; }
14354
14355    if test "x$with_lua" = xdetect; then :
14356  with_lua='yes (found)'
14357fi
14358
14359
14360fi
14361elif test $pkg_failed = untried; then
14362     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14363$as_echo "no" >&6; }
14364
14365pkg_failed=no
14366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
14367$as_echo_n "checking for lua... " >&6; }
14368
14369if test -n "$lua_CFLAGS"; then
14370    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
14371 elif test -n "$PKG_CONFIG"; then
14372    if test -n "$PKG_CONFIG" && \
14373    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
14374  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
14375  ac_status=$?
14376  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14377  test $ac_status = 0; }; then
14378  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
14379		      test "x$?" != "x0" && pkg_failed=yes
14380else
14381  pkg_failed=yes
14382fi
14383 else
14384    pkg_failed=untried
14385fi
14386if test -n "$lua_LIBS"; then
14387    pkg_cv_lua_LIBS="$lua_LIBS"
14388 elif test -n "$PKG_CONFIG"; then
14389    if test -n "$PKG_CONFIG" && \
14390    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
14391  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
14392  ac_status=$?
14393  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14394  test $ac_status = 0; }; then
14395  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
14396		      test "x$?" != "x0" && pkg_failed=yes
14397else
14398  pkg_failed=yes
14399fi
14400 else
14401    pkg_failed=untried
14402fi
14403
14404
14405
14406if test $pkg_failed = yes; then
14407   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14408$as_echo "no" >&6; }
14409
14410if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14411        _pkg_short_errors_supported=yes
14412else
14413        _pkg_short_errors_supported=no
14414fi
14415        if test $_pkg_short_errors_supported = yes; then
14416	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
14417        else
14418	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
14419        fi
14420	# Put the nasty error message in config.log where it belongs
14421	echo "$lua_PKG_ERRORS" >&5
14422
14423
14424pkg_failed=no
14425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
14426$as_echo_n "checking for lua... " >&6; }
14427
14428if test -n "$lua_CFLAGS"; then
14429    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
14430 elif test -n "$PKG_CONFIG"; then
14431    if test -n "$PKG_CONFIG" && \
14432    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
14433  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
14434  ac_status=$?
14435  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14436  test $ac_status = 0; }; then
14437  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
14438		      test "x$?" != "x0" && pkg_failed=yes
14439else
14440  pkg_failed=yes
14441fi
14442 else
14443    pkg_failed=untried
14444fi
14445if test -n "$lua_LIBS"; then
14446    pkg_cv_lua_LIBS="$lua_LIBS"
14447 elif test -n "$PKG_CONFIG"; then
14448    if test -n "$PKG_CONFIG" && \
14449    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
14450  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
14451  ac_status=$?
14452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14453  test $ac_status = 0; }; then
14454  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
14455		      test "x$?" != "x0" && pkg_failed=yes
14456else
14457  pkg_failed=yes
14458fi
14459 else
14460    pkg_failed=untried
14461fi
14462
14463
14464
14465if test $pkg_failed = yes; then
14466   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14467$as_echo "no" >&6; }
14468
14469if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14470        _pkg_short_errors_supported=yes
14471else
14472        _pkg_short_errors_supported=no
14473fi
14474        if test $_pkg_short_errors_supported = yes; then
14475	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
14476        else
14477	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
14478        fi
14479	# Put the nasty error message in config.log where it belongs
14480	echo "$lua_PKG_ERRORS" >&5
14481
14482
14483pkg_failed=no
14484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
14485$as_echo_n "checking for lua... " >&6; }
14486
14487if test -n "$lua_CFLAGS"; then
14488    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
14489 elif test -n "$PKG_CONFIG"; then
14490    if test -n "$PKG_CONFIG" && \
14491    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
14492  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
14493  ac_status=$?
14494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14495  test $ac_status = 0; }; then
14496  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
14497		      test "x$?" != "x0" && pkg_failed=yes
14498else
14499  pkg_failed=yes
14500fi
14501 else
14502    pkg_failed=untried
14503fi
14504if test -n "$lua_LIBS"; then
14505    pkg_cv_lua_LIBS="$lua_LIBS"
14506 elif test -n "$PKG_CONFIG"; then
14507    if test -n "$PKG_CONFIG" && \
14508    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
14509  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
14510  ac_status=$?
14511  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14512  test $ac_status = 0; }; then
14513  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
14514		      test "x$?" != "x0" && pkg_failed=yes
14515else
14516  pkg_failed=yes
14517fi
14518 else
14519    pkg_failed=untried
14520fi
14521
14522
14523
14524if test $pkg_failed = yes; then
14525   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14526$as_echo "no" >&6; }
14527
14528if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14529        _pkg_short_errors_supported=yes
14530else
14531        _pkg_short_errors_supported=no
14532fi
14533        if test $_pkg_short_errors_supported = yes; then
14534	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
14535        else
14536	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
14537        fi
14538	# Put the nasty error message in config.log where it belongs
14539	echo "$lua_PKG_ERRORS" >&5
14540
14541	if test "x$with_lua" = xyes; then :
14542  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
14543fi
14544elif test $pkg_failed = untried; then
14545     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14546$as_echo "no" >&6; }
14547	if test "x$with_lua" = xyes; then :
14548  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
14549fi
14550else
14551	lua_CFLAGS=$pkg_cv_lua_CFLAGS
14552	lua_LIBS=$pkg_cv_lua_LIBS
14553        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14554$as_echo "yes" >&6; }
14555
14556    if test "x$with_lua" = xdetect; then :
14557  with_lua='yes (found)'
14558fi
14559
14560
14561fi
14562elif test $pkg_failed = untried; then
14563     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14564$as_echo "no" >&6; }
14565
14566pkg_failed=no
14567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
14568$as_echo_n "checking for lua... " >&6; }
14569
14570if test -n "$lua_CFLAGS"; then
14571    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
14572 elif test -n "$PKG_CONFIG"; then
14573    if test -n "$PKG_CONFIG" && \
14574    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
14575  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
14576  ac_status=$?
14577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14578  test $ac_status = 0; }; then
14579  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
14580		      test "x$?" != "x0" && pkg_failed=yes
14581else
14582  pkg_failed=yes
14583fi
14584 else
14585    pkg_failed=untried
14586fi
14587if test -n "$lua_LIBS"; then
14588    pkg_cv_lua_LIBS="$lua_LIBS"
14589 elif test -n "$PKG_CONFIG"; then
14590    if test -n "$PKG_CONFIG" && \
14591    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
14592  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
14593  ac_status=$?
14594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14595  test $ac_status = 0; }; then
14596  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
14597		      test "x$?" != "x0" && pkg_failed=yes
14598else
14599  pkg_failed=yes
14600fi
14601 else
14602    pkg_failed=untried
14603fi
14604
14605
14606
14607if test $pkg_failed = yes; then
14608   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14609$as_echo "no" >&6; }
14610
14611if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14612        _pkg_short_errors_supported=yes
14613else
14614        _pkg_short_errors_supported=no
14615fi
14616        if test $_pkg_short_errors_supported = yes; then
14617	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
14618        else
14619	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
14620        fi
14621	# Put the nasty error message in config.log where it belongs
14622	echo "$lua_PKG_ERRORS" >&5
14623
14624	if test "x$with_lua" = xyes; then :
14625  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
14626fi
14627elif test $pkg_failed = untried; then
14628     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14629$as_echo "no" >&6; }
14630	if test "x$with_lua" = xyes; then :
14631  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
14632fi
14633else
14634	lua_CFLAGS=$pkg_cv_lua_CFLAGS
14635	lua_LIBS=$pkg_cv_lua_LIBS
14636        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14637$as_echo "yes" >&6; }
14638
14639    if test "x$with_lua" = xdetect; then :
14640  with_lua='yes (found)'
14641fi
14642
14643
14644fi
14645else
14646	lua_CFLAGS=$pkg_cv_lua_CFLAGS
14647	lua_LIBS=$pkg_cv_lua_LIBS
14648        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14649$as_echo "yes" >&6; }
14650
14651    if test "x$with_lua" = xdetect; then :
14652  with_lua='yes (found)'
14653fi
14654
14655
14656fi
14657elif test $pkg_failed = untried; then
14658     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14659$as_echo "no" >&6; }
14660
14661pkg_failed=no
14662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
14663$as_echo_n "checking for lua... " >&6; }
14664
14665if test -n "$lua_CFLAGS"; then
14666    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
14667 elif test -n "$PKG_CONFIG"; then
14668    if test -n "$PKG_CONFIG" && \
14669    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
14670  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
14671  ac_status=$?
14672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14673  test $ac_status = 0; }; then
14674  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
14675		      test "x$?" != "x0" && pkg_failed=yes
14676else
14677  pkg_failed=yes
14678fi
14679 else
14680    pkg_failed=untried
14681fi
14682if test -n "$lua_LIBS"; then
14683    pkg_cv_lua_LIBS="$lua_LIBS"
14684 elif test -n "$PKG_CONFIG"; then
14685    if test -n "$PKG_CONFIG" && \
14686    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
14687  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
14688  ac_status=$?
14689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14690  test $ac_status = 0; }; then
14691  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
14692		      test "x$?" != "x0" && pkg_failed=yes
14693else
14694  pkg_failed=yes
14695fi
14696 else
14697    pkg_failed=untried
14698fi
14699
14700
14701
14702if test $pkg_failed = yes; then
14703   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14704$as_echo "no" >&6; }
14705
14706if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14707        _pkg_short_errors_supported=yes
14708else
14709        _pkg_short_errors_supported=no
14710fi
14711        if test $_pkg_short_errors_supported = yes; then
14712	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
14713        else
14714	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
14715        fi
14716	# Put the nasty error message in config.log where it belongs
14717	echo "$lua_PKG_ERRORS" >&5
14718
14719
14720pkg_failed=no
14721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
14722$as_echo_n "checking for lua... " >&6; }
14723
14724if test -n "$lua_CFLAGS"; then
14725    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
14726 elif test -n "$PKG_CONFIG"; then
14727    if test -n "$PKG_CONFIG" && \
14728    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
14729  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
14730  ac_status=$?
14731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14732  test $ac_status = 0; }; then
14733  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
14734		      test "x$?" != "x0" && pkg_failed=yes
14735else
14736  pkg_failed=yes
14737fi
14738 else
14739    pkg_failed=untried
14740fi
14741if test -n "$lua_LIBS"; then
14742    pkg_cv_lua_LIBS="$lua_LIBS"
14743 elif test -n "$PKG_CONFIG"; then
14744    if test -n "$PKG_CONFIG" && \
14745    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
14746  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
14747  ac_status=$?
14748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14749  test $ac_status = 0; }; then
14750  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
14751		      test "x$?" != "x0" && pkg_failed=yes
14752else
14753  pkg_failed=yes
14754fi
14755 else
14756    pkg_failed=untried
14757fi
14758
14759
14760
14761if test $pkg_failed = yes; then
14762   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14763$as_echo "no" >&6; }
14764
14765if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14766        _pkg_short_errors_supported=yes
14767else
14768        _pkg_short_errors_supported=no
14769fi
14770        if test $_pkg_short_errors_supported = yes; then
14771	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
14772        else
14773	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
14774        fi
14775	# Put the nasty error message in config.log where it belongs
14776	echo "$lua_PKG_ERRORS" >&5
14777
14778	if test "x$with_lua" = xyes; then :
14779  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
14780fi
14781elif test $pkg_failed = untried; then
14782     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14783$as_echo "no" >&6; }
14784	if test "x$with_lua" = xyes; then :
14785  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
14786fi
14787else
14788	lua_CFLAGS=$pkg_cv_lua_CFLAGS
14789	lua_LIBS=$pkg_cv_lua_LIBS
14790        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14791$as_echo "yes" >&6; }
14792
14793    if test "x$with_lua" = xdetect; then :
14794  with_lua='yes (found)'
14795fi
14796
14797
14798fi
14799elif test $pkg_failed = untried; then
14800     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14801$as_echo "no" >&6; }
14802
14803pkg_failed=no
14804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
14805$as_echo_n "checking for lua... " >&6; }
14806
14807if test -n "$lua_CFLAGS"; then
14808    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
14809 elif test -n "$PKG_CONFIG"; then
14810    if test -n "$PKG_CONFIG" && \
14811    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
14812  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
14813  ac_status=$?
14814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14815  test $ac_status = 0; }; then
14816  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
14817		      test "x$?" != "x0" && pkg_failed=yes
14818else
14819  pkg_failed=yes
14820fi
14821 else
14822    pkg_failed=untried
14823fi
14824if test -n "$lua_LIBS"; then
14825    pkg_cv_lua_LIBS="$lua_LIBS"
14826 elif test -n "$PKG_CONFIG"; then
14827    if test -n "$PKG_CONFIG" && \
14828    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
14829  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
14830  ac_status=$?
14831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14832  test $ac_status = 0; }; then
14833  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
14834		      test "x$?" != "x0" && pkg_failed=yes
14835else
14836  pkg_failed=yes
14837fi
14838 else
14839    pkg_failed=untried
14840fi
14841
14842
14843
14844if test $pkg_failed = yes; then
14845   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14846$as_echo "no" >&6; }
14847
14848if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14849        _pkg_short_errors_supported=yes
14850else
14851        _pkg_short_errors_supported=no
14852fi
14853        if test $_pkg_short_errors_supported = yes; then
14854	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
14855        else
14856	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
14857        fi
14858	# Put the nasty error message in config.log where it belongs
14859	echo "$lua_PKG_ERRORS" >&5
14860
14861	if test "x$with_lua" = xyes; then :
14862  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
14863fi
14864elif test $pkg_failed = untried; then
14865     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14866$as_echo "no" >&6; }
14867	if test "x$with_lua" = xyes; then :
14868  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
14869fi
14870else
14871	lua_CFLAGS=$pkg_cv_lua_CFLAGS
14872	lua_LIBS=$pkg_cv_lua_LIBS
14873        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14874$as_echo "yes" >&6; }
14875
14876    if test "x$with_lua" = xdetect; then :
14877  with_lua='yes (found)'
14878fi
14879
14880
14881fi
14882else
14883	lua_CFLAGS=$pkg_cv_lua_CFLAGS
14884	lua_LIBS=$pkg_cv_lua_LIBS
14885        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14886$as_echo "yes" >&6; }
14887
14888    if test "x$with_lua" = xdetect; then :
14889  with_lua='yes (found)'
14890fi
14891
14892
14893fi
14894else
14895	lua_CFLAGS=$pkg_cv_lua_CFLAGS
14896	lua_LIBS=$pkg_cv_lua_LIBS
14897        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14898$as_echo "yes" >&6; }
14899
14900    if test "x$with_lua" = xdetect; then :
14901  with_lua='yes (found)'
14902fi
14903
14904
14905fi
14906else
14907	lua_CFLAGS=$pkg_cv_lua_CFLAGS
14908	lua_LIBS=$pkg_cv_lua_LIBS
14909        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14910$as_echo "yes" >&6; }
14911
14912    if test "x$with_lua" = xdetect; then :
14913  with_lua='yes (found)'
14914fi
14915
14916
14917fi
14918elif test $pkg_failed = untried; then
14919     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14920$as_echo "no" >&6; }
14921
14922pkg_failed=no
14923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
14924$as_echo_n "checking for lua... " >&6; }
14925
14926if test -n "$lua_CFLAGS"; then
14927    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
14928 elif test -n "$PKG_CONFIG"; then
14929    if test -n "$PKG_CONFIG" && \
14930    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
14931  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
14932  ac_status=$?
14933  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14934  test $ac_status = 0; }; then
14935  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
14936		      test "x$?" != "x0" && pkg_failed=yes
14937else
14938  pkg_failed=yes
14939fi
14940 else
14941    pkg_failed=untried
14942fi
14943if test -n "$lua_LIBS"; then
14944    pkg_cv_lua_LIBS="$lua_LIBS"
14945 elif test -n "$PKG_CONFIG"; then
14946    if test -n "$PKG_CONFIG" && \
14947    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
14948  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
14949  ac_status=$?
14950  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14951  test $ac_status = 0; }; then
14952  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
14953		      test "x$?" != "x0" && pkg_failed=yes
14954else
14955  pkg_failed=yes
14956fi
14957 else
14958    pkg_failed=untried
14959fi
14960
14961
14962
14963if test $pkg_failed = yes; then
14964   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14965$as_echo "no" >&6; }
14966
14967if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14968        _pkg_short_errors_supported=yes
14969else
14970        _pkg_short_errors_supported=no
14971fi
14972        if test $_pkg_short_errors_supported = yes; then
14973	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
14974        else
14975	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
14976        fi
14977	# Put the nasty error message in config.log where it belongs
14978	echo "$lua_PKG_ERRORS" >&5
14979
14980
14981pkg_failed=no
14982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
14983$as_echo_n "checking for lua... " >&6; }
14984
14985if test -n "$lua_CFLAGS"; then
14986    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
14987 elif test -n "$PKG_CONFIG"; then
14988    if test -n "$PKG_CONFIG" && \
14989    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
14990  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
14991  ac_status=$?
14992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14993  test $ac_status = 0; }; then
14994  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
14995		      test "x$?" != "x0" && pkg_failed=yes
14996else
14997  pkg_failed=yes
14998fi
14999 else
15000    pkg_failed=untried
15001fi
15002if test -n "$lua_LIBS"; then
15003    pkg_cv_lua_LIBS="$lua_LIBS"
15004 elif test -n "$PKG_CONFIG"; then
15005    if test -n "$PKG_CONFIG" && \
15006    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
15007  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
15008  ac_status=$?
15009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15010  test $ac_status = 0; }; then
15011  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
15012		      test "x$?" != "x0" && pkg_failed=yes
15013else
15014  pkg_failed=yes
15015fi
15016 else
15017    pkg_failed=untried
15018fi
15019
15020
15021
15022if test $pkg_failed = yes; then
15023   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15024$as_echo "no" >&6; }
15025
15026if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15027        _pkg_short_errors_supported=yes
15028else
15029        _pkg_short_errors_supported=no
15030fi
15031        if test $_pkg_short_errors_supported = yes; then
15032	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
15033        else
15034	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
15035        fi
15036	# Put the nasty error message in config.log where it belongs
15037	echo "$lua_PKG_ERRORS" >&5
15038
15039
15040pkg_failed=no
15041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
15042$as_echo_n "checking for lua... " >&6; }
15043
15044if test -n "$lua_CFLAGS"; then
15045    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
15046 elif test -n "$PKG_CONFIG"; then
15047    if test -n "$PKG_CONFIG" && \
15048    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
15049  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
15050  ac_status=$?
15051  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15052  test $ac_status = 0; }; then
15053  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
15054		      test "x$?" != "x0" && pkg_failed=yes
15055else
15056  pkg_failed=yes
15057fi
15058 else
15059    pkg_failed=untried
15060fi
15061if test -n "$lua_LIBS"; then
15062    pkg_cv_lua_LIBS="$lua_LIBS"
15063 elif test -n "$PKG_CONFIG"; then
15064    if test -n "$PKG_CONFIG" && \
15065    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
15066  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
15067  ac_status=$?
15068  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15069  test $ac_status = 0; }; then
15070  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
15071		      test "x$?" != "x0" && pkg_failed=yes
15072else
15073  pkg_failed=yes
15074fi
15075 else
15076    pkg_failed=untried
15077fi
15078
15079
15080
15081if test $pkg_failed = yes; then
15082   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15083$as_echo "no" >&6; }
15084
15085if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15086        _pkg_short_errors_supported=yes
15087else
15088        _pkg_short_errors_supported=no
15089fi
15090        if test $_pkg_short_errors_supported = yes; then
15091	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
15092        else
15093	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
15094        fi
15095	# Put the nasty error message in config.log where it belongs
15096	echo "$lua_PKG_ERRORS" >&5
15097
15098
15099pkg_failed=no
15100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
15101$as_echo_n "checking for lua... " >&6; }
15102
15103if test -n "$lua_CFLAGS"; then
15104    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
15105 elif test -n "$PKG_CONFIG"; then
15106    if test -n "$PKG_CONFIG" && \
15107    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
15108  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
15109  ac_status=$?
15110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15111  test $ac_status = 0; }; then
15112  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
15113		      test "x$?" != "x0" && pkg_failed=yes
15114else
15115  pkg_failed=yes
15116fi
15117 else
15118    pkg_failed=untried
15119fi
15120if test -n "$lua_LIBS"; then
15121    pkg_cv_lua_LIBS="$lua_LIBS"
15122 elif test -n "$PKG_CONFIG"; then
15123    if test -n "$PKG_CONFIG" && \
15124    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
15125  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
15126  ac_status=$?
15127  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15128  test $ac_status = 0; }; then
15129  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
15130		      test "x$?" != "x0" && pkg_failed=yes
15131else
15132  pkg_failed=yes
15133fi
15134 else
15135    pkg_failed=untried
15136fi
15137
15138
15139
15140if test $pkg_failed = yes; then
15141   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15142$as_echo "no" >&6; }
15143
15144if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15145        _pkg_short_errors_supported=yes
15146else
15147        _pkg_short_errors_supported=no
15148fi
15149        if test $_pkg_short_errors_supported = yes; then
15150	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
15151        else
15152	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
15153        fi
15154	# Put the nasty error message in config.log where it belongs
15155	echo "$lua_PKG_ERRORS" >&5
15156
15157	if test "x$with_lua" = xyes; then :
15158  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
15159fi
15160elif test $pkg_failed = untried; then
15161     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15162$as_echo "no" >&6; }
15163	if test "x$with_lua" = xyes; then :
15164  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
15165fi
15166else
15167	lua_CFLAGS=$pkg_cv_lua_CFLAGS
15168	lua_LIBS=$pkg_cv_lua_LIBS
15169        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15170$as_echo "yes" >&6; }
15171
15172    if test "x$with_lua" = xdetect; then :
15173  with_lua='yes (found)'
15174fi
15175
15176
15177fi
15178elif test $pkg_failed = untried; then
15179     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15180$as_echo "no" >&6; }
15181
15182pkg_failed=no
15183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
15184$as_echo_n "checking for lua... " >&6; }
15185
15186if test -n "$lua_CFLAGS"; then
15187    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
15188 elif test -n "$PKG_CONFIG"; then
15189    if test -n "$PKG_CONFIG" && \
15190    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
15191  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
15192  ac_status=$?
15193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15194  test $ac_status = 0; }; then
15195  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
15196		      test "x$?" != "x0" && pkg_failed=yes
15197else
15198  pkg_failed=yes
15199fi
15200 else
15201    pkg_failed=untried
15202fi
15203if test -n "$lua_LIBS"; then
15204    pkg_cv_lua_LIBS="$lua_LIBS"
15205 elif test -n "$PKG_CONFIG"; then
15206    if test -n "$PKG_CONFIG" && \
15207    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
15208  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
15209  ac_status=$?
15210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15211  test $ac_status = 0; }; then
15212  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
15213		      test "x$?" != "x0" && pkg_failed=yes
15214else
15215  pkg_failed=yes
15216fi
15217 else
15218    pkg_failed=untried
15219fi
15220
15221
15222
15223if test $pkg_failed = yes; then
15224   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15225$as_echo "no" >&6; }
15226
15227if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15228        _pkg_short_errors_supported=yes
15229else
15230        _pkg_short_errors_supported=no
15231fi
15232        if test $_pkg_short_errors_supported = yes; then
15233	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
15234        else
15235	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
15236        fi
15237	# Put the nasty error message in config.log where it belongs
15238	echo "$lua_PKG_ERRORS" >&5
15239
15240	if test "x$with_lua" = xyes; then :
15241  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
15242fi
15243elif test $pkg_failed = untried; then
15244     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15245$as_echo "no" >&6; }
15246	if test "x$with_lua" = xyes; then :
15247  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
15248fi
15249else
15250	lua_CFLAGS=$pkg_cv_lua_CFLAGS
15251	lua_LIBS=$pkg_cv_lua_LIBS
15252        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15253$as_echo "yes" >&6; }
15254
15255    if test "x$with_lua" = xdetect; then :
15256  with_lua='yes (found)'
15257fi
15258
15259
15260fi
15261else
15262	lua_CFLAGS=$pkg_cv_lua_CFLAGS
15263	lua_LIBS=$pkg_cv_lua_LIBS
15264        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15265$as_echo "yes" >&6; }
15266
15267    if test "x$with_lua" = xdetect; then :
15268  with_lua='yes (found)'
15269fi
15270
15271
15272fi
15273elif test $pkg_failed = untried; then
15274     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15275$as_echo "no" >&6; }
15276
15277pkg_failed=no
15278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
15279$as_echo_n "checking for lua... " >&6; }
15280
15281if test -n "$lua_CFLAGS"; then
15282    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
15283 elif test -n "$PKG_CONFIG"; then
15284    if test -n "$PKG_CONFIG" && \
15285    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
15286  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
15287  ac_status=$?
15288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15289  test $ac_status = 0; }; then
15290  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
15291		      test "x$?" != "x0" && pkg_failed=yes
15292else
15293  pkg_failed=yes
15294fi
15295 else
15296    pkg_failed=untried
15297fi
15298if test -n "$lua_LIBS"; then
15299    pkg_cv_lua_LIBS="$lua_LIBS"
15300 elif test -n "$PKG_CONFIG"; then
15301    if test -n "$PKG_CONFIG" && \
15302    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
15303  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
15304  ac_status=$?
15305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15306  test $ac_status = 0; }; then
15307  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
15308		      test "x$?" != "x0" && pkg_failed=yes
15309else
15310  pkg_failed=yes
15311fi
15312 else
15313    pkg_failed=untried
15314fi
15315
15316
15317
15318if test $pkg_failed = yes; then
15319   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15320$as_echo "no" >&6; }
15321
15322if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15323        _pkg_short_errors_supported=yes
15324else
15325        _pkg_short_errors_supported=no
15326fi
15327        if test $_pkg_short_errors_supported = yes; then
15328	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
15329        else
15330	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
15331        fi
15332	# Put the nasty error message in config.log where it belongs
15333	echo "$lua_PKG_ERRORS" >&5
15334
15335
15336pkg_failed=no
15337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
15338$as_echo_n "checking for lua... " >&6; }
15339
15340if test -n "$lua_CFLAGS"; then
15341    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
15342 elif test -n "$PKG_CONFIG"; then
15343    if test -n "$PKG_CONFIG" && \
15344    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
15345  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
15346  ac_status=$?
15347  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15348  test $ac_status = 0; }; then
15349  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
15350		      test "x$?" != "x0" && pkg_failed=yes
15351else
15352  pkg_failed=yes
15353fi
15354 else
15355    pkg_failed=untried
15356fi
15357if test -n "$lua_LIBS"; then
15358    pkg_cv_lua_LIBS="$lua_LIBS"
15359 elif test -n "$PKG_CONFIG"; then
15360    if test -n "$PKG_CONFIG" && \
15361    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
15362  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
15363  ac_status=$?
15364  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15365  test $ac_status = 0; }; then
15366  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
15367		      test "x$?" != "x0" && pkg_failed=yes
15368else
15369  pkg_failed=yes
15370fi
15371 else
15372    pkg_failed=untried
15373fi
15374
15375
15376
15377if test $pkg_failed = yes; then
15378   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15379$as_echo "no" >&6; }
15380
15381if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15382        _pkg_short_errors_supported=yes
15383else
15384        _pkg_short_errors_supported=no
15385fi
15386        if test $_pkg_short_errors_supported = yes; then
15387	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
15388        else
15389	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
15390        fi
15391	# Put the nasty error message in config.log where it belongs
15392	echo "$lua_PKG_ERRORS" >&5
15393
15394	if test "x$with_lua" = xyes; then :
15395  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
15396fi
15397elif test $pkg_failed = untried; then
15398     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15399$as_echo "no" >&6; }
15400	if test "x$with_lua" = xyes; then :
15401  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
15402fi
15403else
15404	lua_CFLAGS=$pkg_cv_lua_CFLAGS
15405	lua_LIBS=$pkg_cv_lua_LIBS
15406        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15407$as_echo "yes" >&6; }
15408
15409    if test "x$with_lua" = xdetect; then :
15410  with_lua='yes (found)'
15411fi
15412
15413
15414fi
15415elif test $pkg_failed = untried; then
15416     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15417$as_echo "no" >&6; }
15418
15419pkg_failed=no
15420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
15421$as_echo_n "checking for lua... " >&6; }
15422
15423if test -n "$lua_CFLAGS"; then
15424    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
15425 elif test -n "$PKG_CONFIG"; then
15426    if test -n "$PKG_CONFIG" && \
15427    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
15428  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
15429  ac_status=$?
15430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15431  test $ac_status = 0; }; then
15432  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
15433		      test "x$?" != "x0" && pkg_failed=yes
15434else
15435  pkg_failed=yes
15436fi
15437 else
15438    pkg_failed=untried
15439fi
15440if test -n "$lua_LIBS"; then
15441    pkg_cv_lua_LIBS="$lua_LIBS"
15442 elif test -n "$PKG_CONFIG"; then
15443    if test -n "$PKG_CONFIG" && \
15444    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
15445  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
15446  ac_status=$?
15447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15448  test $ac_status = 0; }; then
15449  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
15450		      test "x$?" != "x0" && pkg_failed=yes
15451else
15452  pkg_failed=yes
15453fi
15454 else
15455    pkg_failed=untried
15456fi
15457
15458
15459
15460if test $pkg_failed = yes; then
15461   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15462$as_echo "no" >&6; }
15463
15464if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15465        _pkg_short_errors_supported=yes
15466else
15467        _pkg_short_errors_supported=no
15468fi
15469        if test $_pkg_short_errors_supported = yes; then
15470	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
15471        else
15472	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
15473        fi
15474	# Put the nasty error message in config.log where it belongs
15475	echo "$lua_PKG_ERRORS" >&5
15476
15477	if test "x$with_lua" = xyes; then :
15478  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
15479fi
15480elif test $pkg_failed = untried; then
15481     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15482$as_echo "no" >&6; }
15483	if test "x$with_lua" = xyes; then :
15484  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
15485fi
15486else
15487	lua_CFLAGS=$pkg_cv_lua_CFLAGS
15488	lua_LIBS=$pkg_cv_lua_LIBS
15489        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15490$as_echo "yes" >&6; }
15491
15492    if test "x$with_lua" = xdetect; then :
15493  with_lua='yes (found)'
15494fi
15495
15496
15497fi
15498else
15499	lua_CFLAGS=$pkg_cv_lua_CFLAGS
15500	lua_LIBS=$pkg_cv_lua_LIBS
15501        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15502$as_echo "yes" >&6; }
15503
15504    if test "x$with_lua" = xdetect; then :
15505  with_lua='yes (found)'
15506fi
15507
15508
15509fi
15510else
15511	lua_CFLAGS=$pkg_cv_lua_CFLAGS
15512	lua_LIBS=$pkg_cv_lua_LIBS
15513        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15514$as_echo "yes" >&6; }
15515
15516    if test "x$with_lua" = xdetect; then :
15517  with_lua='yes (found)'
15518fi
15519
15520
15521fi
15522elif test $pkg_failed = untried; then
15523     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15524$as_echo "no" >&6; }
15525
15526pkg_failed=no
15527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
15528$as_echo_n "checking for lua... " >&6; }
15529
15530if test -n "$lua_CFLAGS"; then
15531    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
15532 elif test -n "$PKG_CONFIG"; then
15533    if test -n "$PKG_CONFIG" && \
15534    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
15535  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
15536  ac_status=$?
15537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15538  test $ac_status = 0; }; then
15539  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
15540		      test "x$?" != "x0" && pkg_failed=yes
15541else
15542  pkg_failed=yes
15543fi
15544 else
15545    pkg_failed=untried
15546fi
15547if test -n "$lua_LIBS"; then
15548    pkg_cv_lua_LIBS="$lua_LIBS"
15549 elif test -n "$PKG_CONFIG"; then
15550    if test -n "$PKG_CONFIG" && \
15551    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
15552  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
15553  ac_status=$?
15554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15555  test $ac_status = 0; }; then
15556  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
15557		      test "x$?" != "x0" && pkg_failed=yes
15558else
15559  pkg_failed=yes
15560fi
15561 else
15562    pkg_failed=untried
15563fi
15564
15565
15566
15567if test $pkg_failed = yes; then
15568   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15569$as_echo "no" >&6; }
15570
15571if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15572        _pkg_short_errors_supported=yes
15573else
15574        _pkg_short_errors_supported=no
15575fi
15576        if test $_pkg_short_errors_supported = yes; then
15577	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
15578        else
15579	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
15580        fi
15581	# Put the nasty error message in config.log where it belongs
15582	echo "$lua_PKG_ERRORS" >&5
15583
15584
15585pkg_failed=no
15586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
15587$as_echo_n "checking for lua... " >&6; }
15588
15589if test -n "$lua_CFLAGS"; then
15590    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
15591 elif test -n "$PKG_CONFIG"; then
15592    if test -n "$PKG_CONFIG" && \
15593    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
15594  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
15595  ac_status=$?
15596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15597  test $ac_status = 0; }; then
15598  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
15599		      test "x$?" != "x0" && pkg_failed=yes
15600else
15601  pkg_failed=yes
15602fi
15603 else
15604    pkg_failed=untried
15605fi
15606if test -n "$lua_LIBS"; then
15607    pkg_cv_lua_LIBS="$lua_LIBS"
15608 elif test -n "$PKG_CONFIG"; then
15609    if test -n "$PKG_CONFIG" && \
15610    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
15611  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
15612  ac_status=$?
15613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15614  test $ac_status = 0; }; then
15615  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
15616		      test "x$?" != "x0" && pkg_failed=yes
15617else
15618  pkg_failed=yes
15619fi
15620 else
15621    pkg_failed=untried
15622fi
15623
15624
15625
15626if test $pkg_failed = yes; then
15627   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15628$as_echo "no" >&6; }
15629
15630if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15631        _pkg_short_errors_supported=yes
15632else
15633        _pkg_short_errors_supported=no
15634fi
15635        if test $_pkg_short_errors_supported = yes; then
15636	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
15637        else
15638	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
15639        fi
15640	# Put the nasty error message in config.log where it belongs
15641	echo "$lua_PKG_ERRORS" >&5
15642
15643
15644pkg_failed=no
15645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
15646$as_echo_n "checking for lua... " >&6; }
15647
15648if test -n "$lua_CFLAGS"; then
15649    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
15650 elif test -n "$PKG_CONFIG"; then
15651    if test -n "$PKG_CONFIG" && \
15652    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
15653  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
15654  ac_status=$?
15655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15656  test $ac_status = 0; }; then
15657  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
15658		      test "x$?" != "x0" && pkg_failed=yes
15659else
15660  pkg_failed=yes
15661fi
15662 else
15663    pkg_failed=untried
15664fi
15665if test -n "$lua_LIBS"; then
15666    pkg_cv_lua_LIBS="$lua_LIBS"
15667 elif test -n "$PKG_CONFIG"; then
15668    if test -n "$PKG_CONFIG" && \
15669    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
15670  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
15671  ac_status=$?
15672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15673  test $ac_status = 0; }; then
15674  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
15675		      test "x$?" != "x0" && pkg_failed=yes
15676else
15677  pkg_failed=yes
15678fi
15679 else
15680    pkg_failed=untried
15681fi
15682
15683
15684
15685if test $pkg_failed = yes; then
15686   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15687$as_echo "no" >&6; }
15688
15689if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15690        _pkg_short_errors_supported=yes
15691else
15692        _pkg_short_errors_supported=no
15693fi
15694        if test $_pkg_short_errors_supported = yes; then
15695	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
15696        else
15697	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
15698        fi
15699	# Put the nasty error message in config.log where it belongs
15700	echo "$lua_PKG_ERRORS" >&5
15701
15702	if test "x$with_lua" = xyes; then :
15703  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
15704fi
15705elif test $pkg_failed = untried; then
15706     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15707$as_echo "no" >&6; }
15708	if test "x$with_lua" = xyes; then :
15709  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
15710fi
15711else
15712	lua_CFLAGS=$pkg_cv_lua_CFLAGS
15713	lua_LIBS=$pkg_cv_lua_LIBS
15714        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15715$as_echo "yes" >&6; }
15716
15717    if test "x$with_lua" = xdetect; then :
15718  with_lua='yes (found)'
15719fi
15720
15721
15722fi
15723elif test $pkg_failed = untried; then
15724     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15725$as_echo "no" >&6; }
15726
15727pkg_failed=no
15728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
15729$as_echo_n "checking for lua... " >&6; }
15730
15731if test -n "$lua_CFLAGS"; then
15732    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
15733 elif test -n "$PKG_CONFIG"; then
15734    if test -n "$PKG_CONFIG" && \
15735    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
15736  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
15737  ac_status=$?
15738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15739  test $ac_status = 0; }; then
15740  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
15741		      test "x$?" != "x0" && pkg_failed=yes
15742else
15743  pkg_failed=yes
15744fi
15745 else
15746    pkg_failed=untried
15747fi
15748if test -n "$lua_LIBS"; then
15749    pkg_cv_lua_LIBS="$lua_LIBS"
15750 elif test -n "$PKG_CONFIG"; then
15751    if test -n "$PKG_CONFIG" && \
15752    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
15753  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
15754  ac_status=$?
15755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15756  test $ac_status = 0; }; then
15757  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
15758		      test "x$?" != "x0" && pkg_failed=yes
15759else
15760  pkg_failed=yes
15761fi
15762 else
15763    pkg_failed=untried
15764fi
15765
15766
15767
15768if test $pkg_failed = yes; then
15769   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15770$as_echo "no" >&6; }
15771
15772if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15773        _pkg_short_errors_supported=yes
15774else
15775        _pkg_short_errors_supported=no
15776fi
15777        if test $_pkg_short_errors_supported = yes; then
15778	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
15779        else
15780	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
15781        fi
15782	# Put the nasty error message in config.log where it belongs
15783	echo "$lua_PKG_ERRORS" >&5
15784
15785	if test "x$with_lua" = xyes; then :
15786  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
15787fi
15788elif test $pkg_failed = untried; then
15789     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15790$as_echo "no" >&6; }
15791	if test "x$with_lua" = xyes; then :
15792  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
15793fi
15794else
15795	lua_CFLAGS=$pkg_cv_lua_CFLAGS
15796	lua_LIBS=$pkg_cv_lua_LIBS
15797        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15798$as_echo "yes" >&6; }
15799
15800    if test "x$with_lua" = xdetect; then :
15801  with_lua='yes (found)'
15802fi
15803
15804
15805fi
15806else
15807	lua_CFLAGS=$pkg_cv_lua_CFLAGS
15808	lua_LIBS=$pkg_cv_lua_LIBS
15809        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15810$as_echo "yes" >&6; }
15811
15812    if test "x$with_lua" = xdetect; then :
15813  with_lua='yes (found)'
15814fi
15815
15816
15817fi
15818elif test $pkg_failed = untried; then
15819     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15820$as_echo "no" >&6; }
15821
15822pkg_failed=no
15823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
15824$as_echo_n "checking for lua... " >&6; }
15825
15826if test -n "$lua_CFLAGS"; then
15827    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
15828 elif test -n "$PKG_CONFIG"; then
15829    if test -n "$PKG_CONFIG" && \
15830    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
15831  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
15832  ac_status=$?
15833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15834  test $ac_status = 0; }; then
15835  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
15836		      test "x$?" != "x0" && pkg_failed=yes
15837else
15838  pkg_failed=yes
15839fi
15840 else
15841    pkg_failed=untried
15842fi
15843if test -n "$lua_LIBS"; then
15844    pkg_cv_lua_LIBS="$lua_LIBS"
15845 elif test -n "$PKG_CONFIG"; then
15846    if test -n "$PKG_CONFIG" && \
15847    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
15848  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
15849  ac_status=$?
15850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15851  test $ac_status = 0; }; then
15852  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
15853		      test "x$?" != "x0" && pkg_failed=yes
15854else
15855  pkg_failed=yes
15856fi
15857 else
15858    pkg_failed=untried
15859fi
15860
15861
15862
15863if test $pkg_failed = yes; then
15864   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15865$as_echo "no" >&6; }
15866
15867if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15868        _pkg_short_errors_supported=yes
15869else
15870        _pkg_short_errors_supported=no
15871fi
15872        if test $_pkg_short_errors_supported = yes; then
15873	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
15874        else
15875	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
15876        fi
15877	# Put the nasty error message in config.log where it belongs
15878	echo "$lua_PKG_ERRORS" >&5
15879
15880
15881pkg_failed=no
15882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
15883$as_echo_n "checking for lua... " >&6; }
15884
15885if test -n "$lua_CFLAGS"; then
15886    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
15887 elif test -n "$PKG_CONFIG"; then
15888    if test -n "$PKG_CONFIG" && \
15889    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
15890  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
15891  ac_status=$?
15892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15893  test $ac_status = 0; }; then
15894  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
15895		      test "x$?" != "x0" && pkg_failed=yes
15896else
15897  pkg_failed=yes
15898fi
15899 else
15900    pkg_failed=untried
15901fi
15902if test -n "$lua_LIBS"; then
15903    pkg_cv_lua_LIBS="$lua_LIBS"
15904 elif test -n "$PKG_CONFIG"; then
15905    if test -n "$PKG_CONFIG" && \
15906    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
15907  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
15908  ac_status=$?
15909  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15910  test $ac_status = 0; }; then
15911  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
15912		      test "x$?" != "x0" && pkg_failed=yes
15913else
15914  pkg_failed=yes
15915fi
15916 else
15917    pkg_failed=untried
15918fi
15919
15920
15921
15922if test $pkg_failed = yes; then
15923   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15924$as_echo "no" >&6; }
15925
15926if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15927        _pkg_short_errors_supported=yes
15928else
15929        _pkg_short_errors_supported=no
15930fi
15931        if test $_pkg_short_errors_supported = yes; then
15932	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
15933        else
15934	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
15935        fi
15936	# Put the nasty error message in config.log where it belongs
15937	echo "$lua_PKG_ERRORS" >&5
15938
15939	if test "x$with_lua" = xyes; then :
15940  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
15941fi
15942elif test $pkg_failed = untried; then
15943     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15944$as_echo "no" >&6; }
15945	if test "x$with_lua" = xyes; then :
15946  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
15947fi
15948else
15949	lua_CFLAGS=$pkg_cv_lua_CFLAGS
15950	lua_LIBS=$pkg_cv_lua_LIBS
15951        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15952$as_echo "yes" >&6; }
15953
15954    if test "x$with_lua" = xdetect; then :
15955  with_lua='yes (found)'
15956fi
15957
15958
15959fi
15960elif test $pkg_failed = untried; then
15961     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15962$as_echo "no" >&6; }
15963
15964pkg_failed=no
15965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
15966$as_echo_n "checking for lua... " >&6; }
15967
15968if test -n "$lua_CFLAGS"; then
15969    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
15970 elif test -n "$PKG_CONFIG"; then
15971    if test -n "$PKG_CONFIG" && \
15972    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
15973  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
15974  ac_status=$?
15975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15976  test $ac_status = 0; }; then
15977  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
15978		      test "x$?" != "x0" && pkg_failed=yes
15979else
15980  pkg_failed=yes
15981fi
15982 else
15983    pkg_failed=untried
15984fi
15985if test -n "$lua_LIBS"; then
15986    pkg_cv_lua_LIBS="$lua_LIBS"
15987 elif test -n "$PKG_CONFIG"; then
15988    if test -n "$PKG_CONFIG" && \
15989    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
15990  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
15991  ac_status=$?
15992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15993  test $ac_status = 0; }; then
15994  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
15995		      test "x$?" != "x0" && pkg_failed=yes
15996else
15997  pkg_failed=yes
15998fi
15999 else
16000    pkg_failed=untried
16001fi
16002
16003
16004
16005if test $pkg_failed = yes; then
16006   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16007$as_echo "no" >&6; }
16008
16009if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16010        _pkg_short_errors_supported=yes
16011else
16012        _pkg_short_errors_supported=no
16013fi
16014        if test $_pkg_short_errors_supported = yes; then
16015	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
16016        else
16017	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
16018        fi
16019	# Put the nasty error message in config.log where it belongs
16020	echo "$lua_PKG_ERRORS" >&5
16021
16022	if test "x$with_lua" = xyes; then :
16023  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
16024fi
16025elif test $pkg_failed = untried; then
16026     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16027$as_echo "no" >&6; }
16028	if test "x$with_lua" = xyes; then :
16029  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
16030fi
16031else
16032	lua_CFLAGS=$pkg_cv_lua_CFLAGS
16033	lua_LIBS=$pkg_cv_lua_LIBS
16034        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16035$as_echo "yes" >&6; }
16036
16037    if test "x$with_lua" = xdetect; then :
16038  with_lua='yes (found)'
16039fi
16040
16041
16042fi
16043else
16044	lua_CFLAGS=$pkg_cv_lua_CFLAGS
16045	lua_LIBS=$pkg_cv_lua_LIBS
16046        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16047$as_echo "yes" >&6; }
16048
16049    if test "x$with_lua" = xdetect; then :
16050  with_lua='yes (found)'
16051fi
16052
16053
16054fi
16055else
16056	lua_CFLAGS=$pkg_cv_lua_CFLAGS
16057	lua_LIBS=$pkg_cv_lua_LIBS
16058        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16059$as_echo "yes" >&6; }
16060
16061    if test "x$with_lua" = xdetect; then :
16062  with_lua='yes (found)'
16063fi
16064
16065
16066fi
16067else
16068	lua_CFLAGS=$pkg_cv_lua_CFLAGS
16069	lua_LIBS=$pkg_cv_lua_LIBS
16070        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16071$as_echo "yes" >&6; }
16072
16073    if test "x$with_lua" = xdetect; then :
16074  with_lua='yes (found)'
16075fi
16076
16077
16078fi
16079else
16080	lua_CFLAGS=$pkg_cv_lua_CFLAGS
16081	lua_LIBS=$pkg_cv_lua_LIBS
16082        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16083$as_echo "yes" >&6; }
16084
16085    if test "x$with_lua" = xdetect; then :
16086  with_lua='yes (found)'
16087fi
16088
16089
16090fi
16091else
16092	lua_CFLAGS=$pkg_cv_lua_CFLAGS
16093	lua_LIBS=$pkg_cv_lua_LIBS
16094        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16095$as_echo "yes" >&6; }
16096
16097    if test "x$with_lua" = xdetect; then :
16098  with_lua='yes (found)'
16099fi
16100
16101
16102fi
16103elif test $pkg_failed = untried; then
16104     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16105$as_echo "no" >&6; }
16106
16107pkg_failed=no
16108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
16109$as_echo_n "checking for lua... " >&6; }
16110
16111if test -n "$lua_CFLAGS"; then
16112    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
16113 elif test -n "$PKG_CONFIG"; then
16114    if test -n "$PKG_CONFIG" && \
16115    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
16116  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
16117  ac_status=$?
16118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16119  test $ac_status = 0; }; then
16120  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
16121		      test "x$?" != "x0" && pkg_failed=yes
16122else
16123  pkg_failed=yes
16124fi
16125 else
16126    pkg_failed=untried
16127fi
16128if test -n "$lua_LIBS"; then
16129    pkg_cv_lua_LIBS="$lua_LIBS"
16130 elif test -n "$PKG_CONFIG"; then
16131    if test -n "$PKG_CONFIG" && \
16132    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
16133  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
16134  ac_status=$?
16135  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16136  test $ac_status = 0; }; then
16137  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
16138		      test "x$?" != "x0" && pkg_failed=yes
16139else
16140  pkg_failed=yes
16141fi
16142 else
16143    pkg_failed=untried
16144fi
16145
16146
16147
16148if test $pkg_failed = yes; then
16149   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16150$as_echo "no" >&6; }
16151
16152if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16153        _pkg_short_errors_supported=yes
16154else
16155        _pkg_short_errors_supported=no
16156fi
16157        if test $_pkg_short_errors_supported = yes; then
16158	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
16159        else
16160	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
16161        fi
16162	# Put the nasty error message in config.log where it belongs
16163	echo "$lua_PKG_ERRORS" >&5
16164
16165
16166pkg_failed=no
16167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
16168$as_echo_n "checking for lua... " >&6; }
16169
16170if test -n "$lua_CFLAGS"; then
16171    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
16172 elif test -n "$PKG_CONFIG"; then
16173    if test -n "$PKG_CONFIG" && \
16174    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
16175  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
16176  ac_status=$?
16177  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16178  test $ac_status = 0; }; then
16179  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
16180		      test "x$?" != "x0" && pkg_failed=yes
16181else
16182  pkg_failed=yes
16183fi
16184 else
16185    pkg_failed=untried
16186fi
16187if test -n "$lua_LIBS"; then
16188    pkg_cv_lua_LIBS="$lua_LIBS"
16189 elif test -n "$PKG_CONFIG"; then
16190    if test -n "$PKG_CONFIG" && \
16191    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
16192  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
16193  ac_status=$?
16194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16195  test $ac_status = 0; }; then
16196  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
16197		      test "x$?" != "x0" && pkg_failed=yes
16198else
16199  pkg_failed=yes
16200fi
16201 else
16202    pkg_failed=untried
16203fi
16204
16205
16206
16207if test $pkg_failed = yes; then
16208   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16209$as_echo "no" >&6; }
16210
16211if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16212        _pkg_short_errors_supported=yes
16213else
16214        _pkg_short_errors_supported=no
16215fi
16216        if test $_pkg_short_errors_supported = yes; then
16217	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
16218        else
16219	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
16220        fi
16221	# Put the nasty error message in config.log where it belongs
16222	echo "$lua_PKG_ERRORS" >&5
16223
16224
16225pkg_failed=no
16226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
16227$as_echo_n "checking for lua... " >&6; }
16228
16229if test -n "$lua_CFLAGS"; then
16230    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
16231 elif test -n "$PKG_CONFIG"; then
16232    if test -n "$PKG_CONFIG" && \
16233    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
16234  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
16235  ac_status=$?
16236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16237  test $ac_status = 0; }; then
16238  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
16239		      test "x$?" != "x0" && pkg_failed=yes
16240else
16241  pkg_failed=yes
16242fi
16243 else
16244    pkg_failed=untried
16245fi
16246if test -n "$lua_LIBS"; then
16247    pkg_cv_lua_LIBS="$lua_LIBS"
16248 elif test -n "$PKG_CONFIG"; then
16249    if test -n "$PKG_CONFIG" && \
16250    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
16251  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
16252  ac_status=$?
16253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16254  test $ac_status = 0; }; then
16255  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
16256		      test "x$?" != "x0" && pkg_failed=yes
16257else
16258  pkg_failed=yes
16259fi
16260 else
16261    pkg_failed=untried
16262fi
16263
16264
16265
16266if test $pkg_failed = yes; then
16267   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16268$as_echo "no" >&6; }
16269
16270if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16271        _pkg_short_errors_supported=yes
16272else
16273        _pkg_short_errors_supported=no
16274fi
16275        if test $_pkg_short_errors_supported = yes; then
16276	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
16277        else
16278	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
16279        fi
16280	# Put the nasty error message in config.log where it belongs
16281	echo "$lua_PKG_ERRORS" >&5
16282
16283
16284pkg_failed=no
16285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
16286$as_echo_n "checking for lua... " >&6; }
16287
16288if test -n "$lua_CFLAGS"; then
16289    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
16290 elif test -n "$PKG_CONFIG"; then
16291    if test -n "$PKG_CONFIG" && \
16292    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
16293  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
16294  ac_status=$?
16295  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16296  test $ac_status = 0; }; then
16297  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
16298		      test "x$?" != "x0" && pkg_failed=yes
16299else
16300  pkg_failed=yes
16301fi
16302 else
16303    pkg_failed=untried
16304fi
16305if test -n "$lua_LIBS"; then
16306    pkg_cv_lua_LIBS="$lua_LIBS"
16307 elif test -n "$PKG_CONFIG"; then
16308    if test -n "$PKG_CONFIG" && \
16309    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
16310  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
16311  ac_status=$?
16312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16313  test $ac_status = 0; }; then
16314  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
16315		      test "x$?" != "x0" && pkg_failed=yes
16316else
16317  pkg_failed=yes
16318fi
16319 else
16320    pkg_failed=untried
16321fi
16322
16323
16324
16325if test $pkg_failed = yes; then
16326   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16327$as_echo "no" >&6; }
16328
16329if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16330        _pkg_short_errors_supported=yes
16331else
16332        _pkg_short_errors_supported=no
16333fi
16334        if test $_pkg_short_errors_supported = yes; then
16335	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
16336        else
16337	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
16338        fi
16339	# Put the nasty error message in config.log where it belongs
16340	echo "$lua_PKG_ERRORS" >&5
16341
16342
16343pkg_failed=no
16344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
16345$as_echo_n "checking for lua... " >&6; }
16346
16347if test -n "$lua_CFLAGS"; then
16348    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
16349 elif test -n "$PKG_CONFIG"; then
16350    if test -n "$PKG_CONFIG" && \
16351    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
16352  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
16353  ac_status=$?
16354  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16355  test $ac_status = 0; }; then
16356  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
16357		      test "x$?" != "x0" && pkg_failed=yes
16358else
16359  pkg_failed=yes
16360fi
16361 else
16362    pkg_failed=untried
16363fi
16364if test -n "$lua_LIBS"; then
16365    pkg_cv_lua_LIBS="$lua_LIBS"
16366 elif test -n "$PKG_CONFIG"; then
16367    if test -n "$PKG_CONFIG" && \
16368    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
16369  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
16370  ac_status=$?
16371  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16372  test $ac_status = 0; }; then
16373  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
16374		      test "x$?" != "x0" && pkg_failed=yes
16375else
16376  pkg_failed=yes
16377fi
16378 else
16379    pkg_failed=untried
16380fi
16381
16382
16383
16384if test $pkg_failed = yes; then
16385   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16386$as_echo "no" >&6; }
16387
16388if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16389        _pkg_short_errors_supported=yes
16390else
16391        _pkg_short_errors_supported=no
16392fi
16393        if test $_pkg_short_errors_supported = yes; then
16394	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
16395        else
16396	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
16397        fi
16398	# Put the nasty error message in config.log where it belongs
16399	echo "$lua_PKG_ERRORS" >&5
16400
16401
16402pkg_failed=no
16403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
16404$as_echo_n "checking for lua... " >&6; }
16405
16406if test -n "$lua_CFLAGS"; then
16407    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
16408 elif test -n "$PKG_CONFIG"; then
16409    if test -n "$PKG_CONFIG" && \
16410    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
16411  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
16412  ac_status=$?
16413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16414  test $ac_status = 0; }; then
16415  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
16416		      test "x$?" != "x0" && pkg_failed=yes
16417else
16418  pkg_failed=yes
16419fi
16420 else
16421    pkg_failed=untried
16422fi
16423if test -n "$lua_LIBS"; then
16424    pkg_cv_lua_LIBS="$lua_LIBS"
16425 elif test -n "$PKG_CONFIG"; then
16426    if test -n "$PKG_CONFIG" && \
16427    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
16428  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
16429  ac_status=$?
16430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16431  test $ac_status = 0; }; then
16432  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
16433		      test "x$?" != "x0" && pkg_failed=yes
16434else
16435  pkg_failed=yes
16436fi
16437 else
16438    pkg_failed=untried
16439fi
16440
16441
16442
16443if test $pkg_failed = yes; then
16444   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16445$as_echo "no" >&6; }
16446
16447if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16448        _pkg_short_errors_supported=yes
16449else
16450        _pkg_short_errors_supported=no
16451fi
16452        if test $_pkg_short_errors_supported = yes; then
16453	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
16454        else
16455	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
16456        fi
16457	# Put the nasty error message in config.log where it belongs
16458	echo "$lua_PKG_ERRORS" >&5
16459
16460	if test "x$with_lua" = xyes; then :
16461  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
16462fi
16463elif test $pkg_failed = untried; then
16464     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16465$as_echo "no" >&6; }
16466	if test "x$with_lua" = xyes; then :
16467  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
16468fi
16469else
16470	lua_CFLAGS=$pkg_cv_lua_CFLAGS
16471	lua_LIBS=$pkg_cv_lua_LIBS
16472        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16473$as_echo "yes" >&6; }
16474
16475    if test "x$with_lua" = xdetect; then :
16476  with_lua='yes (found)'
16477fi
16478
16479
16480fi
16481elif test $pkg_failed = untried; then
16482     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16483$as_echo "no" >&6; }
16484
16485pkg_failed=no
16486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
16487$as_echo_n "checking for lua... " >&6; }
16488
16489if test -n "$lua_CFLAGS"; then
16490    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
16491 elif test -n "$PKG_CONFIG"; then
16492    if test -n "$PKG_CONFIG" && \
16493    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
16494  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
16495  ac_status=$?
16496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16497  test $ac_status = 0; }; then
16498  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
16499		      test "x$?" != "x0" && pkg_failed=yes
16500else
16501  pkg_failed=yes
16502fi
16503 else
16504    pkg_failed=untried
16505fi
16506if test -n "$lua_LIBS"; then
16507    pkg_cv_lua_LIBS="$lua_LIBS"
16508 elif test -n "$PKG_CONFIG"; then
16509    if test -n "$PKG_CONFIG" && \
16510    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
16511  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
16512  ac_status=$?
16513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16514  test $ac_status = 0; }; then
16515  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
16516		      test "x$?" != "x0" && pkg_failed=yes
16517else
16518  pkg_failed=yes
16519fi
16520 else
16521    pkg_failed=untried
16522fi
16523
16524
16525
16526if test $pkg_failed = yes; then
16527   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16528$as_echo "no" >&6; }
16529
16530if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16531        _pkg_short_errors_supported=yes
16532else
16533        _pkg_short_errors_supported=no
16534fi
16535        if test $_pkg_short_errors_supported = yes; then
16536	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
16537        else
16538	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
16539        fi
16540	# Put the nasty error message in config.log where it belongs
16541	echo "$lua_PKG_ERRORS" >&5
16542
16543	if test "x$with_lua" = xyes; then :
16544  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
16545fi
16546elif test $pkg_failed = untried; then
16547     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16548$as_echo "no" >&6; }
16549	if test "x$with_lua" = xyes; then :
16550  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
16551fi
16552else
16553	lua_CFLAGS=$pkg_cv_lua_CFLAGS
16554	lua_LIBS=$pkg_cv_lua_LIBS
16555        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16556$as_echo "yes" >&6; }
16557
16558    if test "x$with_lua" = xdetect; then :
16559  with_lua='yes (found)'
16560fi
16561
16562
16563fi
16564else
16565	lua_CFLAGS=$pkg_cv_lua_CFLAGS
16566	lua_LIBS=$pkg_cv_lua_LIBS
16567        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16568$as_echo "yes" >&6; }
16569
16570    if test "x$with_lua" = xdetect; then :
16571  with_lua='yes (found)'
16572fi
16573
16574
16575fi
16576elif test $pkg_failed = untried; then
16577     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16578$as_echo "no" >&6; }
16579
16580pkg_failed=no
16581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
16582$as_echo_n "checking for lua... " >&6; }
16583
16584if test -n "$lua_CFLAGS"; then
16585    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
16586 elif test -n "$PKG_CONFIG"; then
16587    if test -n "$PKG_CONFIG" && \
16588    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
16589  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
16590  ac_status=$?
16591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16592  test $ac_status = 0; }; then
16593  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
16594		      test "x$?" != "x0" && pkg_failed=yes
16595else
16596  pkg_failed=yes
16597fi
16598 else
16599    pkg_failed=untried
16600fi
16601if test -n "$lua_LIBS"; then
16602    pkg_cv_lua_LIBS="$lua_LIBS"
16603 elif test -n "$PKG_CONFIG"; then
16604    if test -n "$PKG_CONFIG" && \
16605    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
16606  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
16607  ac_status=$?
16608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16609  test $ac_status = 0; }; then
16610  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
16611		      test "x$?" != "x0" && pkg_failed=yes
16612else
16613  pkg_failed=yes
16614fi
16615 else
16616    pkg_failed=untried
16617fi
16618
16619
16620
16621if test $pkg_failed = yes; then
16622   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16623$as_echo "no" >&6; }
16624
16625if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16626        _pkg_short_errors_supported=yes
16627else
16628        _pkg_short_errors_supported=no
16629fi
16630        if test $_pkg_short_errors_supported = yes; then
16631	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
16632        else
16633	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
16634        fi
16635	# Put the nasty error message in config.log where it belongs
16636	echo "$lua_PKG_ERRORS" >&5
16637
16638
16639pkg_failed=no
16640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
16641$as_echo_n "checking for lua... " >&6; }
16642
16643if test -n "$lua_CFLAGS"; then
16644    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
16645 elif test -n "$PKG_CONFIG"; then
16646    if test -n "$PKG_CONFIG" && \
16647    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
16648  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
16649  ac_status=$?
16650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16651  test $ac_status = 0; }; then
16652  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
16653		      test "x$?" != "x0" && pkg_failed=yes
16654else
16655  pkg_failed=yes
16656fi
16657 else
16658    pkg_failed=untried
16659fi
16660if test -n "$lua_LIBS"; then
16661    pkg_cv_lua_LIBS="$lua_LIBS"
16662 elif test -n "$PKG_CONFIG"; then
16663    if test -n "$PKG_CONFIG" && \
16664    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
16665  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
16666  ac_status=$?
16667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16668  test $ac_status = 0; }; then
16669  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
16670		      test "x$?" != "x0" && pkg_failed=yes
16671else
16672  pkg_failed=yes
16673fi
16674 else
16675    pkg_failed=untried
16676fi
16677
16678
16679
16680if test $pkg_failed = yes; then
16681   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16682$as_echo "no" >&6; }
16683
16684if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16685        _pkg_short_errors_supported=yes
16686else
16687        _pkg_short_errors_supported=no
16688fi
16689        if test $_pkg_short_errors_supported = yes; then
16690	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
16691        else
16692	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
16693        fi
16694	# Put the nasty error message in config.log where it belongs
16695	echo "$lua_PKG_ERRORS" >&5
16696
16697	if test "x$with_lua" = xyes; then :
16698  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
16699fi
16700elif test $pkg_failed = untried; then
16701     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16702$as_echo "no" >&6; }
16703	if test "x$with_lua" = xyes; then :
16704  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
16705fi
16706else
16707	lua_CFLAGS=$pkg_cv_lua_CFLAGS
16708	lua_LIBS=$pkg_cv_lua_LIBS
16709        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16710$as_echo "yes" >&6; }
16711
16712    if test "x$with_lua" = xdetect; then :
16713  with_lua='yes (found)'
16714fi
16715
16716
16717fi
16718elif test $pkg_failed = untried; then
16719     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16720$as_echo "no" >&6; }
16721
16722pkg_failed=no
16723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
16724$as_echo_n "checking for lua... " >&6; }
16725
16726if test -n "$lua_CFLAGS"; then
16727    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
16728 elif test -n "$PKG_CONFIG"; then
16729    if test -n "$PKG_CONFIG" && \
16730    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
16731  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
16732  ac_status=$?
16733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16734  test $ac_status = 0; }; then
16735  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
16736		      test "x$?" != "x0" && pkg_failed=yes
16737else
16738  pkg_failed=yes
16739fi
16740 else
16741    pkg_failed=untried
16742fi
16743if test -n "$lua_LIBS"; then
16744    pkg_cv_lua_LIBS="$lua_LIBS"
16745 elif test -n "$PKG_CONFIG"; then
16746    if test -n "$PKG_CONFIG" && \
16747    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
16748  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
16749  ac_status=$?
16750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16751  test $ac_status = 0; }; then
16752  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
16753		      test "x$?" != "x0" && pkg_failed=yes
16754else
16755  pkg_failed=yes
16756fi
16757 else
16758    pkg_failed=untried
16759fi
16760
16761
16762
16763if test $pkg_failed = yes; then
16764   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16765$as_echo "no" >&6; }
16766
16767if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16768        _pkg_short_errors_supported=yes
16769else
16770        _pkg_short_errors_supported=no
16771fi
16772        if test $_pkg_short_errors_supported = yes; then
16773	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
16774        else
16775	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
16776        fi
16777	# Put the nasty error message in config.log where it belongs
16778	echo "$lua_PKG_ERRORS" >&5
16779
16780	if test "x$with_lua" = xyes; then :
16781  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
16782fi
16783elif test $pkg_failed = untried; then
16784     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16785$as_echo "no" >&6; }
16786	if test "x$with_lua" = xyes; then :
16787  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
16788fi
16789else
16790	lua_CFLAGS=$pkg_cv_lua_CFLAGS
16791	lua_LIBS=$pkg_cv_lua_LIBS
16792        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16793$as_echo "yes" >&6; }
16794
16795    if test "x$with_lua" = xdetect; then :
16796  with_lua='yes (found)'
16797fi
16798
16799
16800fi
16801else
16802	lua_CFLAGS=$pkg_cv_lua_CFLAGS
16803	lua_LIBS=$pkg_cv_lua_LIBS
16804        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16805$as_echo "yes" >&6; }
16806
16807    if test "x$with_lua" = xdetect; then :
16808  with_lua='yes (found)'
16809fi
16810
16811
16812fi
16813else
16814	lua_CFLAGS=$pkg_cv_lua_CFLAGS
16815	lua_LIBS=$pkg_cv_lua_LIBS
16816        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16817$as_echo "yes" >&6; }
16818
16819    if test "x$with_lua" = xdetect; then :
16820  with_lua='yes (found)'
16821fi
16822
16823
16824fi
16825elif test $pkg_failed = untried; then
16826     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16827$as_echo "no" >&6; }
16828
16829pkg_failed=no
16830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
16831$as_echo_n "checking for lua... " >&6; }
16832
16833if test -n "$lua_CFLAGS"; then
16834    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
16835 elif test -n "$PKG_CONFIG"; then
16836    if test -n "$PKG_CONFIG" && \
16837    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
16838  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
16839  ac_status=$?
16840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16841  test $ac_status = 0; }; then
16842  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
16843		      test "x$?" != "x0" && pkg_failed=yes
16844else
16845  pkg_failed=yes
16846fi
16847 else
16848    pkg_failed=untried
16849fi
16850if test -n "$lua_LIBS"; then
16851    pkg_cv_lua_LIBS="$lua_LIBS"
16852 elif test -n "$PKG_CONFIG"; then
16853    if test -n "$PKG_CONFIG" && \
16854    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
16855  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
16856  ac_status=$?
16857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16858  test $ac_status = 0; }; then
16859  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
16860		      test "x$?" != "x0" && pkg_failed=yes
16861else
16862  pkg_failed=yes
16863fi
16864 else
16865    pkg_failed=untried
16866fi
16867
16868
16869
16870if test $pkg_failed = yes; then
16871   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16872$as_echo "no" >&6; }
16873
16874if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16875        _pkg_short_errors_supported=yes
16876else
16877        _pkg_short_errors_supported=no
16878fi
16879        if test $_pkg_short_errors_supported = yes; then
16880	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
16881        else
16882	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
16883        fi
16884	# Put the nasty error message in config.log where it belongs
16885	echo "$lua_PKG_ERRORS" >&5
16886
16887
16888pkg_failed=no
16889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
16890$as_echo_n "checking for lua... " >&6; }
16891
16892if test -n "$lua_CFLAGS"; then
16893    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
16894 elif test -n "$PKG_CONFIG"; then
16895    if test -n "$PKG_CONFIG" && \
16896    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
16897  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
16898  ac_status=$?
16899  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16900  test $ac_status = 0; }; then
16901  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
16902		      test "x$?" != "x0" && pkg_failed=yes
16903else
16904  pkg_failed=yes
16905fi
16906 else
16907    pkg_failed=untried
16908fi
16909if test -n "$lua_LIBS"; then
16910    pkg_cv_lua_LIBS="$lua_LIBS"
16911 elif test -n "$PKG_CONFIG"; then
16912    if test -n "$PKG_CONFIG" && \
16913    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
16914  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
16915  ac_status=$?
16916  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16917  test $ac_status = 0; }; then
16918  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
16919		      test "x$?" != "x0" && pkg_failed=yes
16920else
16921  pkg_failed=yes
16922fi
16923 else
16924    pkg_failed=untried
16925fi
16926
16927
16928
16929if test $pkg_failed = yes; then
16930   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16931$as_echo "no" >&6; }
16932
16933if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16934        _pkg_short_errors_supported=yes
16935else
16936        _pkg_short_errors_supported=no
16937fi
16938        if test $_pkg_short_errors_supported = yes; then
16939	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
16940        else
16941	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
16942        fi
16943	# Put the nasty error message in config.log where it belongs
16944	echo "$lua_PKG_ERRORS" >&5
16945
16946
16947pkg_failed=no
16948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
16949$as_echo_n "checking for lua... " >&6; }
16950
16951if test -n "$lua_CFLAGS"; then
16952    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
16953 elif test -n "$PKG_CONFIG"; then
16954    if test -n "$PKG_CONFIG" && \
16955    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
16956  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
16957  ac_status=$?
16958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16959  test $ac_status = 0; }; then
16960  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
16961		      test "x$?" != "x0" && pkg_failed=yes
16962else
16963  pkg_failed=yes
16964fi
16965 else
16966    pkg_failed=untried
16967fi
16968if test -n "$lua_LIBS"; then
16969    pkg_cv_lua_LIBS="$lua_LIBS"
16970 elif test -n "$PKG_CONFIG"; then
16971    if test -n "$PKG_CONFIG" && \
16972    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
16973  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
16974  ac_status=$?
16975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16976  test $ac_status = 0; }; then
16977  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
16978		      test "x$?" != "x0" && pkg_failed=yes
16979else
16980  pkg_failed=yes
16981fi
16982 else
16983    pkg_failed=untried
16984fi
16985
16986
16987
16988if test $pkg_failed = yes; then
16989   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16990$as_echo "no" >&6; }
16991
16992if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16993        _pkg_short_errors_supported=yes
16994else
16995        _pkg_short_errors_supported=no
16996fi
16997        if test $_pkg_short_errors_supported = yes; then
16998	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
16999        else
17000	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
17001        fi
17002	# Put the nasty error message in config.log where it belongs
17003	echo "$lua_PKG_ERRORS" >&5
17004
17005	if test "x$with_lua" = xyes; then :
17006  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
17007fi
17008elif test $pkg_failed = untried; then
17009     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17010$as_echo "no" >&6; }
17011	if test "x$with_lua" = xyes; then :
17012  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
17013fi
17014else
17015	lua_CFLAGS=$pkg_cv_lua_CFLAGS
17016	lua_LIBS=$pkg_cv_lua_LIBS
17017        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17018$as_echo "yes" >&6; }
17019
17020    if test "x$with_lua" = xdetect; then :
17021  with_lua='yes (found)'
17022fi
17023
17024
17025fi
17026elif test $pkg_failed = untried; then
17027     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17028$as_echo "no" >&6; }
17029
17030pkg_failed=no
17031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
17032$as_echo_n "checking for lua... " >&6; }
17033
17034if test -n "$lua_CFLAGS"; then
17035    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
17036 elif test -n "$PKG_CONFIG"; then
17037    if test -n "$PKG_CONFIG" && \
17038    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
17039  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
17040  ac_status=$?
17041  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17042  test $ac_status = 0; }; then
17043  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
17044		      test "x$?" != "x0" && pkg_failed=yes
17045else
17046  pkg_failed=yes
17047fi
17048 else
17049    pkg_failed=untried
17050fi
17051if test -n "$lua_LIBS"; then
17052    pkg_cv_lua_LIBS="$lua_LIBS"
17053 elif test -n "$PKG_CONFIG"; then
17054    if test -n "$PKG_CONFIG" && \
17055    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
17056  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
17057  ac_status=$?
17058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17059  test $ac_status = 0; }; then
17060  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
17061		      test "x$?" != "x0" && pkg_failed=yes
17062else
17063  pkg_failed=yes
17064fi
17065 else
17066    pkg_failed=untried
17067fi
17068
17069
17070
17071if test $pkg_failed = yes; then
17072   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17073$as_echo "no" >&6; }
17074
17075if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17076        _pkg_short_errors_supported=yes
17077else
17078        _pkg_short_errors_supported=no
17079fi
17080        if test $_pkg_short_errors_supported = yes; then
17081	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
17082        else
17083	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
17084        fi
17085	# Put the nasty error message in config.log where it belongs
17086	echo "$lua_PKG_ERRORS" >&5
17087
17088	if test "x$with_lua" = xyes; then :
17089  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
17090fi
17091elif test $pkg_failed = untried; then
17092     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17093$as_echo "no" >&6; }
17094	if test "x$with_lua" = xyes; then :
17095  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
17096fi
17097else
17098	lua_CFLAGS=$pkg_cv_lua_CFLAGS
17099	lua_LIBS=$pkg_cv_lua_LIBS
17100        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17101$as_echo "yes" >&6; }
17102
17103    if test "x$with_lua" = xdetect; then :
17104  with_lua='yes (found)'
17105fi
17106
17107
17108fi
17109else
17110	lua_CFLAGS=$pkg_cv_lua_CFLAGS
17111	lua_LIBS=$pkg_cv_lua_LIBS
17112        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17113$as_echo "yes" >&6; }
17114
17115    if test "x$with_lua" = xdetect; then :
17116  with_lua='yes (found)'
17117fi
17118
17119
17120fi
17121elif test $pkg_failed = untried; then
17122     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17123$as_echo "no" >&6; }
17124
17125pkg_failed=no
17126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
17127$as_echo_n "checking for lua... " >&6; }
17128
17129if test -n "$lua_CFLAGS"; then
17130    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
17131 elif test -n "$PKG_CONFIG"; then
17132    if test -n "$PKG_CONFIG" && \
17133    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
17134  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
17135  ac_status=$?
17136  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17137  test $ac_status = 0; }; then
17138  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
17139		      test "x$?" != "x0" && pkg_failed=yes
17140else
17141  pkg_failed=yes
17142fi
17143 else
17144    pkg_failed=untried
17145fi
17146if test -n "$lua_LIBS"; then
17147    pkg_cv_lua_LIBS="$lua_LIBS"
17148 elif test -n "$PKG_CONFIG"; then
17149    if test -n "$PKG_CONFIG" && \
17150    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
17151  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
17152  ac_status=$?
17153  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17154  test $ac_status = 0; }; then
17155  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
17156		      test "x$?" != "x0" && pkg_failed=yes
17157else
17158  pkg_failed=yes
17159fi
17160 else
17161    pkg_failed=untried
17162fi
17163
17164
17165
17166if test $pkg_failed = yes; then
17167   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17168$as_echo "no" >&6; }
17169
17170if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17171        _pkg_short_errors_supported=yes
17172else
17173        _pkg_short_errors_supported=no
17174fi
17175        if test $_pkg_short_errors_supported = yes; then
17176	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
17177        else
17178	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
17179        fi
17180	# Put the nasty error message in config.log where it belongs
17181	echo "$lua_PKG_ERRORS" >&5
17182
17183
17184pkg_failed=no
17185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
17186$as_echo_n "checking for lua... " >&6; }
17187
17188if test -n "$lua_CFLAGS"; then
17189    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
17190 elif test -n "$PKG_CONFIG"; then
17191    if test -n "$PKG_CONFIG" && \
17192    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
17193  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
17194  ac_status=$?
17195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17196  test $ac_status = 0; }; then
17197  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
17198		      test "x$?" != "x0" && pkg_failed=yes
17199else
17200  pkg_failed=yes
17201fi
17202 else
17203    pkg_failed=untried
17204fi
17205if test -n "$lua_LIBS"; then
17206    pkg_cv_lua_LIBS="$lua_LIBS"
17207 elif test -n "$PKG_CONFIG"; then
17208    if test -n "$PKG_CONFIG" && \
17209    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
17210  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
17211  ac_status=$?
17212  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17213  test $ac_status = 0; }; then
17214  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
17215		      test "x$?" != "x0" && pkg_failed=yes
17216else
17217  pkg_failed=yes
17218fi
17219 else
17220    pkg_failed=untried
17221fi
17222
17223
17224
17225if test $pkg_failed = yes; then
17226   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17227$as_echo "no" >&6; }
17228
17229if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17230        _pkg_short_errors_supported=yes
17231else
17232        _pkg_short_errors_supported=no
17233fi
17234        if test $_pkg_short_errors_supported = yes; then
17235	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
17236        else
17237	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
17238        fi
17239	# Put the nasty error message in config.log where it belongs
17240	echo "$lua_PKG_ERRORS" >&5
17241
17242	if test "x$with_lua" = xyes; then :
17243  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
17244fi
17245elif test $pkg_failed = untried; then
17246     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17247$as_echo "no" >&6; }
17248	if test "x$with_lua" = xyes; then :
17249  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
17250fi
17251else
17252	lua_CFLAGS=$pkg_cv_lua_CFLAGS
17253	lua_LIBS=$pkg_cv_lua_LIBS
17254        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17255$as_echo "yes" >&6; }
17256
17257    if test "x$with_lua" = xdetect; then :
17258  with_lua='yes (found)'
17259fi
17260
17261
17262fi
17263elif test $pkg_failed = untried; then
17264     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17265$as_echo "no" >&6; }
17266
17267pkg_failed=no
17268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
17269$as_echo_n "checking for lua... " >&6; }
17270
17271if test -n "$lua_CFLAGS"; then
17272    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
17273 elif test -n "$PKG_CONFIG"; then
17274    if test -n "$PKG_CONFIG" && \
17275    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
17276  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
17277  ac_status=$?
17278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17279  test $ac_status = 0; }; then
17280  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
17281		      test "x$?" != "x0" && pkg_failed=yes
17282else
17283  pkg_failed=yes
17284fi
17285 else
17286    pkg_failed=untried
17287fi
17288if test -n "$lua_LIBS"; then
17289    pkg_cv_lua_LIBS="$lua_LIBS"
17290 elif test -n "$PKG_CONFIG"; then
17291    if test -n "$PKG_CONFIG" && \
17292    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
17293  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
17294  ac_status=$?
17295  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17296  test $ac_status = 0; }; then
17297  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
17298		      test "x$?" != "x0" && pkg_failed=yes
17299else
17300  pkg_failed=yes
17301fi
17302 else
17303    pkg_failed=untried
17304fi
17305
17306
17307
17308if test $pkg_failed = yes; then
17309   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17310$as_echo "no" >&6; }
17311
17312if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17313        _pkg_short_errors_supported=yes
17314else
17315        _pkg_short_errors_supported=no
17316fi
17317        if test $_pkg_short_errors_supported = yes; then
17318	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
17319        else
17320	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
17321        fi
17322	# Put the nasty error message in config.log where it belongs
17323	echo "$lua_PKG_ERRORS" >&5
17324
17325	if test "x$with_lua" = xyes; then :
17326  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
17327fi
17328elif test $pkg_failed = untried; then
17329     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17330$as_echo "no" >&6; }
17331	if test "x$with_lua" = xyes; then :
17332  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
17333fi
17334else
17335	lua_CFLAGS=$pkg_cv_lua_CFLAGS
17336	lua_LIBS=$pkg_cv_lua_LIBS
17337        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17338$as_echo "yes" >&6; }
17339
17340    if test "x$with_lua" = xdetect; then :
17341  with_lua='yes (found)'
17342fi
17343
17344
17345fi
17346else
17347	lua_CFLAGS=$pkg_cv_lua_CFLAGS
17348	lua_LIBS=$pkg_cv_lua_LIBS
17349        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17350$as_echo "yes" >&6; }
17351
17352    if test "x$with_lua" = xdetect; then :
17353  with_lua='yes (found)'
17354fi
17355
17356
17357fi
17358else
17359	lua_CFLAGS=$pkg_cv_lua_CFLAGS
17360	lua_LIBS=$pkg_cv_lua_LIBS
17361        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17362$as_echo "yes" >&6; }
17363
17364    if test "x$with_lua" = xdetect; then :
17365  with_lua='yes (found)'
17366fi
17367
17368
17369fi
17370else
17371	lua_CFLAGS=$pkg_cv_lua_CFLAGS
17372	lua_LIBS=$pkg_cv_lua_LIBS
17373        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17374$as_echo "yes" >&6; }
17375
17376    if test "x$with_lua" = xdetect; then :
17377  with_lua='yes (found)'
17378fi
17379
17380
17381fi
17382elif test $pkg_failed = untried; then
17383     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17384$as_echo "no" >&6; }
17385
17386pkg_failed=no
17387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
17388$as_echo_n "checking for lua... " >&6; }
17389
17390if test -n "$lua_CFLAGS"; then
17391    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
17392 elif test -n "$PKG_CONFIG"; then
17393    if test -n "$PKG_CONFIG" && \
17394    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
17395  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
17396  ac_status=$?
17397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17398  test $ac_status = 0; }; then
17399  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
17400		      test "x$?" != "x0" && pkg_failed=yes
17401else
17402  pkg_failed=yes
17403fi
17404 else
17405    pkg_failed=untried
17406fi
17407if test -n "$lua_LIBS"; then
17408    pkg_cv_lua_LIBS="$lua_LIBS"
17409 elif test -n "$PKG_CONFIG"; then
17410    if test -n "$PKG_CONFIG" && \
17411    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
17412  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
17413  ac_status=$?
17414  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17415  test $ac_status = 0; }; then
17416  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
17417		      test "x$?" != "x0" && pkg_failed=yes
17418else
17419  pkg_failed=yes
17420fi
17421 else
17422    pkg_failed=untried
17423fi
17424
17425
17426
17427if test $pkg_failed = yes; then
17428   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17429$as_echo "no" >&6; }
17430
17431if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17432        _pkg_short_errors_supported=yes
17433else
17434        _pkg_short_errors_supported=no
17435fi
17436        if test $_pkg_short_errors_supported = yes; then
17437	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
17438        else
17439	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
17440        fi
17441	# Put the nasty error message in config.log where it belongs
17442	echo "$lua_PKG_ERRORS" >&5
17443
17444
17445pkg_failed=no
17446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
17447$as_echo_n "checking for lua... " >&6; }
17448
17449if test -n "$lua_CFLAGS"; then
17450    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
17451 elif test -n "$PKG_CONFIG"; then
17452    if test -n "$PKG_CONFIG" && \
17453    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
17454  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
17455  ac_status=$?
17456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17457  test $ac_status = 0; }; then
17458  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
17459		      test "x$?" != "x0" && pkg_failed=yes
17460else
17461  pkg_failed=yes
17462fi
17463 else
17464    pkg_failed=untried
17465fi
17466if test -n "$lua_LIBS"; then
17467    pkg_cv_lua_LIBS="$lua_LIBS"
17468 elif test -n "$PKG_CONFIG"; then
17469    if test -n "$PKG_CONFIG" && \
17470    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
17471  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
17472  ac_status=$?
17473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17474  test $ac_status = 0; }; then
17475  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
17476		      test "x$?" != "x0" && pkg_failed=yes
17477else
17478  pkg_failed=yes
17479fi
17480 else
17481    pkg_failed=untried
17482fi
17483
17484
17485
17486if test $pkg_failed = yes; then
17487   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17488$as_echo "no" >&6; }
17489
17490if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17491        _pkg_short_errors_supported=yes
17492else
17493        _pkg_short_errors_supported=no
17494fi
17495        if test $_pkg_short_errors_supported = yes; then
17496	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
17497        else
17498	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
17499        fi
17500	# Put the nasty error message in config.log where it belongs
17501	echo "$lua_PKG_ERRORS" >&5
17502
17503
17504pkg_failed=no
17505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
17506$as_echo_n "checking for lua... " >&6; }
17507
17508if test -n "$lua_CFLAGS"; then
17509    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
17510 elif test -n "$PKG_CONFIG"; then
17511    if test -n "$PKG_CONFIG" && \
17512    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
17513  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
17514  ac_status=$?
17515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17516  test $ac_status = 0; }; then
17517  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
17518		      test "x$?" != "x0" && pkg_failed=yes
17519else
17520  pkg_failed=yes
17521fi
17522 else
17523    pkg_failed=untried
17524fi
17525if test -n "$lua_LIBS"; then
17526    pkg_cv_lua_LIBS="$lua_LIBS"
17527 elif test -n "$PKG_CONFIG"; then
17528    if test -n "$PKG_CONFIG" && \
17529    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
17530  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
17531  ac_status=$?
17532  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17533  test $ac_status = 0; }; then
17534  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
17535		      test "x$?" != "x0" && pkg_failed=yes
17536else
17537  pkg_failed=yes
17538fi
17539 else
17540    pkg_failed=untried
17541fi
17542
17543
17544
17545if test $pkg_failed = yes; then
17546   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17547$as_echo "no" >&6; }
17548
17549if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17550        _pkg_short_errors_supported=yes
17551else
17552        _pkg_short_errors_supported=no
17553fi
17554        if test $_pkg_short_errors_supported = yes; then
17555	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
17556        else
17557	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
17558        fi
17559	# Put the nasty error message in config.log where it belongs
17560	echo "$lua_PKG_ERRORS" >&5
17561
17562
17563pkg_failed=no
17564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
17565$as_echo_n "checking for lua... " >&6; }
17566
17567if test -n "$lua_CFLAGS"; then
17568    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
17569 elif test -n "$PKG_CONFIG"; then
17570    if test -n "$PKG_CONFIG" && \
17571    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
17572  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
17573  ac_status=$?
17574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17575  test $ac_status = 0; }; then
17576  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
17577		      test "x$?" != "x0" && pkg_failed=yes
17578else
17579  pkg_failed=yes
17580fi
17581 else
17582    pkg_failed=untried
17583fi
17584if test -n "$lua_LIBS"; then
17585    pkg_cv_lua_LIBS="$lua_LIBS"
17586 elif test -n "$PKG_CONFIG"; then
17587    if test -n "$PKG_CONFIG" && \
17588    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
17589  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
17590  ac_status=$?
17591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17592  test $ac_status = 0; }; then
17593  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
17594		      test "x$?" != "x0" && pkg_failed=yes
17595else
17596  pkg_failed=yes
17597fi
17598 else
17599    pkg_failed=untried
17600fi
17601
17602
17603
17604if test $pkg_failed = yes; then
17605   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17606$as_echo "no" >&6; }
17607
17608if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17609        _pkg_short_errors_supported=yes
17610else
17611        _pkg_short_errors_supported=no
17612fi
17613        if test $_pkg_short_errors_supported = yes; then
17614	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
17615        else
17616	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
17617        fi
17618	# Put the nasty error message in config.log where it belongs
17619	echo "$lua_PKG_ERRORS" >&5
17620
17621	if test "x$with_lua" = xyes; then :
17622  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
17623fi
17624elif test $pkg_failed = untried; then
17625     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17626$as_echo "no" >&6; }
17627	if test "x$with_lua" = xyes; then :
17628  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
17629fi
17630else
17631	lua_CFLAGS=$pkg_cv_lua_CFLAGS
17632	lua_LIBS=$pkg_cv_lua_LIBS
17633        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17634$as_echo "yes" >&6; }
17635
17636    if test "x$with_lua" = xdetect; then :
17637  with_lua='yes (found)'
17638fi
17639
17640
17641fi
17642elif test $pkg_failed = untried; then
17643     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17644$as_echo "no" >&6; }
17645
17646pkg_failed=no
17647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
17648$as_echo_n "checking for lua... " >&6; }
17649
17650if test -n "$lua_CFLAGS"; then
17651    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
17652 elif test -n "$PKG_CONFIG"; then
17653    if test -n "$PKG_CONFIG" && \
17654    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
17655  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
17656  ac_status=$?
17657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17658  test $ac_status = 0; }; then
17659  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
17660		      test "x$?" != "x0" && pkg_failed=yes
17661else
17662  pkg_failed=yes
17663fi
17664 else
17665    pkg_failed=untried
17666fi
17667if test -n "$lua_LIBS"; then
17668    pkg_cv_lua_LIBS="$lua_LIBS"
17669 elif test -n "$PKG_CONFIG"; then
17670    if test -n "$PKG_CONFIG" && \
17671    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
17672  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
17673  ac_status=$?
17674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17675  test $ac_status = 0; }; then
17676  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
17677		      test "x$?" != "x0" && pkg_failed=yes
17678else
17679  pkg_failed=yes
17680fi
17681 else
17682    pkg_failed=untried
17683fi
17684
17685
17686
17687if test $pkg_failed = yes; then
17688   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17689$as_echo "no" >&6; }
17690
17691if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17692        _pkg_short_errors_supported=yes
17693else
17694        _pkg_short_errors_supported=no
17695fi
17696        if test $_pkg_short_errors_supported = yes; then
17697	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
17698        else
17699	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
17700        fi
17701	# Put the nasty error message in config.log where it belongs
17702	echo "$lua_PKG_ERRORS" >&5
17703
17704	if test "x$with_lua" = xyes; then :
17705  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
17706fi
17707elif test $pkg_failed = untried; then
17708     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17709$as_echo "no" >&6; }
17710	if test "x$with_lua" = xyes; then :
17711  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
17712fi
17713else
17714	lua_CFLAGS=$pkg_cv_lua_CFLAGS
17715	lua_LIBS=$pkg_cv_lua_LIBS
17716        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17717$as_echo "yes" >&6; }
17718
17719    if test "x$with_lua" = xdetect; then :
17720  with_lua='yes (found)'
17721fi
17722
17723
17724fi
17725else
17726	lua_CFLAGS=$pkg_cv_lua_CFLAGS
17727	lua_LIBS=$pkg_cv_lua_LIBS
17728        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17729$as_echo "yes" >&6; }
17730
17731    if test "x$with_lua" = xdetect; then :
17732  with_lua='yes (found)'
17733fi
17734
17735
17736fi
17737elif test $pkg_failed = untried; then
17738     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17739$as_echo "no" >&6; }
17740
17741pkg_failed=no
17742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
17743$as_echo_n "checking for lua... " >&6; }
17744
17745if test -n "$lua_CFLAGS"; then
17746    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
17747 elif test -n "$PKG_CONFIG"; then
17748    if test -n "$PKG_CONFIG" && \
17749    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
17750  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
17751  ac_status=$?
17752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17753  test $ac_status = 0; }; then
17754  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
17755		      test "x$?" != "x0" && pkg_failed=yes
17756else
17757  pkg_failed=yes
17758fi
17759 else
17760    pkg_failed=untried
17761fi
17762if test -n "$lua_LIBS"; then
17763    pkg_cv_lua_LIBS="$lua_LIBS"
17764 elif test -n "$PKG_CONFIG"; then
17765    if test -n "$PKG_CONFIG" && \
17766    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
17767  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
17768  ac_status=$?
17769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17770  test $ac_status = 0; }; then
17771  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
17772		      test "x$?" != "x0" && pkg_failed=yes
17773else
17774  pkg_failed=yes
17775fi
17776 else
17777    pkg_failed=untried
17778fi
17779
17780
17781
17782if test $pkg_failed = yes; then
17783   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17784$as_echo "no" >&6; }
17785
17786if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17787        _pkg_short_errors_supported=yes
17788else
17789        _pkg_short_errors_supported=no
17790fi
17791        if test $_pkg_short_errors_supported = yes; then
17792	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
17793        else
17794	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
17795        fi
17796	# Put the nasty error message in config.log where it belongs
17797	echo "$lua_PKG_ERRORS" >&5
17798
17799
17800pkg_failed=no
17801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
17802$as_echo_n "checking for lua... " >&6; }
17803
17804if test -n "$lua_CFLAGS"; then
17805    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
17806 elif test -n "$PKG_CONFIG"; then
17807    if test -n "$PKG_CONFIG" && \
17808    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
17809  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
17810  ac_status=$?
17811  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17812  test $ac_status = 0; }; then
17813  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
17814		      test "x$?" != "x0" && pkg_failed=yes
17815else
17816  pkg_failed=yes
17817fi
17818 else
17819    pkg_failed=untried
17820fi
17821if test -n "$lua_LIBS"; then
17822    pkg_cv_lua_LIBS="$lua_LIBS"
17823 elif test -n "$PKG_CONFIG"; then
17824    if test -n "$PKG_CONFIG" && \
17825    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
17826  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
17827  ac_status=$?
17828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17829  test $ac_status = 0; }; then
17830  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
17831		      test "x$?" != "x0" && pkg_failed=yes
17832else
17833  pkg_failed=yes
17834fi
17835 else
17836    pkg_failed=untried
17837fi
17838
17839
17840
17841if test $pkg_failed = yes; then
17842   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17843$as_echo "no" >&6; }
17844
17845if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17846        _pkg_short_errors_supported=yes
17847else
17848        _pkg_short_errors_supported=no
17849fi
17850        if test $_pkg_short_errors_supported = yes; then
17851	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
17852        else
17853	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
17854        fi
17855	# Put the nasty error message in config.log where it belongs
17856	echo "$lua_PKG_ERRORS" >&5
17857
17858	if test "x$with_lua" = xyes; then :
17859  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
17860fi
17861elif test $pkg_failed = untried; then
17862     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17863$as_echo "no" >&6; }
17864	if test "x$with_lua" = xyes; then :
17865  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
17866fi
17867else
17868	lua_CFLAGS=$pkg_cv_lua_CFLAGS
17869	lua_LIBS=$pkg_cv_lua_LIBS
17870        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17871$as_echo "yes" >&6; }
17872
17873    if test "x$with_lua" = xdetect; then :
17874  with_lua='yes (found)'
17875fi
17876
17877
17878fi
17879elif test $pkg_failed = untried; then
17880     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17881$as_echo "no" >&6; }
17882
17883pkg_failed=no
17884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
17885$as_echo_n "checking for lua... " >&6; }
17886
17887if test -n "$lua_CFLAGS"; then
17888    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
17889 elif test -n "$PKG_CONFIG"; then
17890    if test -n "$PKG_CONFIG" && \
17891    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
17892  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
17893  ac_status=$?
17894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17895  test $ac_status = 0; }; then
17896  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
17897		      test "x$?" != "x0" && pkg_failed=yes
17898else
17899  pkg_failed=yes
17900fi
17901 else
17902    pkg_failed=untried
17903fi
17904if test -n "$lua_LIBS"; then
17905    pkg_cv_lua_LIBS="$lua_LIBS"
17906 elif test -n "$PKG_CONFIG"; then
17907    if test -n "$PKG_CONFIG" && \
17908    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
17909  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
17910  ac_status=$?
17911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17912  test $ac_status = 0; }; then
17913  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
17914		      test "x$?" != "x0" && pkg_failed=yes
17915else
17916  pkg_failed=yes
17917fi
17918 else
17919    pkg_failed=untried
17920fi
17921
17922
17923
17924if test $pkg_failed = yes; then
17925   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17926$as_echo "no" >&6; }
17927
17928if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17929        _pkg_short_errors_supported=yes
17930else
17931        _pkg_short_errors_supported=no
17932fi
17933        if test $_pkg_short_errors_supported = yes; then
17934	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
17935        else
17936	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
17937        fi
17938	# Put the nasty error message in config.log where it belongs
17939	echo "$lua_PKG_ERRORS" >&5
17940
17941	if test "x$with_lua" = xyes; then :
17942  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
17943fi
17944elif test $pkg_failed = untried; then
17945     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17946$as_echo "no" >&6; }
17947	if test "x$with_lua" = xyes; then :
17948  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
17949fi
17950else
17951	lua_CFLAGS=$pkg_cv_lua_CFLAGS
17952	lua_LIBS=$pkg_cv_lua_LIBS
17953        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17954$as_echo "yes" >&6; }
17955
17956    if test "x$with_lua" = xdetect; then :
17957  with_lua='yes (found)'
17958fi
17959
17960
17961fi
17962else
17963	lua_CFLAGS=$pkg_cv_lua_CFLAGS
17964	lua_LIBS=$pkg_cv_lua_LIBS
17965        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17966$as_echo "yes" >&6; }
17967
17968    if test "x$with_lua" = xdetect; then :
17969  with_lua='yes (found)'
17970fi
17971
17972
17973fi
17974else
17975	lua_CFLAGS=$pkg_cv_lua_CFLAGS
17976	lua_LIBS=$pkg_cv_lua_LIBS
17977        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17978$as_echo "yes" >&6; }
17979
17980    if test "x$with_lua" = xdetect; then :
17981  with_lua='yes (found)'
17982fi
17983
17984
17985fi
17986elif test $pkg_failed = untried; then
17987     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17988$as_echo "no" >&6; }
17989
17990pkg_failed=no
17991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
17992$as_echo_n "checking for lua... " >&6; }
17993
17994if test -n "$lua_CFLAGS"; then
17995    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
17996 elif test -n "$PKG_CONFIG"; then
17997    if test -n "$PKG_CONFIG" && \
17998    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
17999  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
18000  ac_status=$?
18001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18002  test $ac_status = 0; }; then
18003  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
18004		      test "x$?" != "x0" && pkg_failed=yes
18005else
18006  pkg_failed=yes
18007fi
18008 else
18009    pkg_failed=untried
18010fi
18011if test -n "$lua_LIBS"; then
18012    pkg_cv_lua_LIBS="$lua_LIBS"
18013 elif test -n "$PKG_CONFIG"; then
18014    if test -n "$PKG_CONFIG" && \
18015    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
18016  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
18017  ac_status=$?
18018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18019  test $ac_status = 0; }; then
18020  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
18021		      test "x$?" != "x0" && pkg_failed=yes
18022else
18023  pkg_failed=yes
18024fi
18025 else
18026    pkg_failed=untried
18027fi
18028
18029
18030
18031if test $pkg_failed = yes; then
18032   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18033$as_echo "no" >&6; }
18034
18035if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18036        _pkg_short_errors_supported=yes
18037else
18038        _pkg_short_errors_supported=no
18039fi
18040        if test $_pkg_short_errors_supported = yes; then
18041	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
18042        else
18043	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
18044        fi
18045	# Put the nasty error message in config.log where it belongs
18046	echo "$lua_PKG_ERRORS" >&5
18047
18048
18049pkg_failed=no
18050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
18051$as_echo_n "checking for lua... " >&6; }
18052
18053if test -n "$lua_CFLAGS"; then
18054    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
18055 elif test -n "$PKG_CONFIG"; then
18056    if test -n "$PKG_CONFIG" && \
18057    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
18058  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
18059  ac_status=$?
18060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18061  test $ac_status = 0; }; then
18062  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
18063		      test "x$?" != "x0" && pkg_failed=yes
18064else
18065  pkg_failed=yes
18066fi
18067 else
18068    pkg_failed=untried
18069fi
18070if test -n "$lua_LIBS"; then
18071    pkg_cv_lua_LIBS="$lua_LIBS"
18072 elif test -n "$PKG_CONFIG"; then
18073    if test -n "$PKG_CONFIG" && \
18074    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
18075  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
18076  ac_status=$?
18077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18078  test $ac_status = 0; }; then
18079  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
18080		      test "x$?" != "x0" && pkg_failed=yes
18081else
18082  pkg_failed=yes
18083fi
18084 else
18085    pkg_failed=untried
18086fi
18087
18088
18089
18090if test $pkg_failed = yes; then
18091   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18092$as_echo "no" >&6; }
18093
18094if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18095        _pkg_short_errors_supported=yes
18096else
18097        _pkg_short_errors_supported=no
18098fi
18099        if test $_pkg_short_errors_supported = yes; then
18100	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
18101        else
18102	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
18103        fi
18104	# Put the nasty error message in config.log where it belongs
18105	echo "$lua_PKG_ERRORS" >&5
18106
18107
18108pkg_failed=no
18109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
18110$as_echo_n "checking for lua... " >&6; }
18111
18112if test -n "$lua_CFLAGS"; then
18113    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
18114 elif test -n "$PKG_CONFIG"; then
18115    if test -n "$PKG_CONFIG" && \
18116    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
18117  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
18118  ac_status=$?
18119  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18120  test $ac_status = 0; }; then
18121  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
18122		      test "x$?" != "x0" && pkg_failed=yes
18123else
18124  pkg_failed=yes
18125fi
18126 else
18127    pkg_failed=untried
18128fi
18129if test -n "$lua_LIBS"; then
18130    pkg_cv_lua_LIBS="$lua_LIBS"
18131 elif test -n "$PKG_CONFIG"; then
18132    if test -n "$PKG_CONFIG" && \
18133    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
18134  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
18135  ac_status=$?
18136  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18137  test $ac_status = 0; }; then
18138  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
18139		      test "x$?" != "x0" && pkg_failed=yes
18140else
18141  pkg_failed=yes
18142fi
18143 else
18144    pkg_failed=untried
18145fi
18146
18147
18148
18149if test $pkg_failed = yes; then
18150   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18151$as_echo "no" >&6; }
18152
18153if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18154        _pkg_short_errors_supported=yes
18155else
18156        _pkg_short_errors_supported=no
18157fi
18158        if test $_pkg_short_errors_supported = yes; then
18159	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
18160        else
18161	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
18162        fi
18163	# Put the nasty error message in config.log where it belongs
18164	echo "$lua_PKG_ERRORS" >&5
18165
18166	if test "x$with_lua" = xyes; then :
18167  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
18168fi
18169elif test $pkg_failed = untried; then
18170     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18171$as_echo "no" >&6; }
18172	if test "x$with_lua" = xyes; then :
18173  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
18174fi
18175else
18176	lua_CFLAGS=$pkg_cv_lua_CFLAGS
18177	lua_LIBS=$pkg_cv_lua_LIBS
18178        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18179$as_echo "yes" >&6; }
18180
18181    if test "x$with_lua" = xdetect; then :
18182  with_lua='yes (found)'
18183fi
18184
18185
18186fi
18187elif test $pkg_failed = untried; then
18188     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18189$as_echo "no" >&6; }
18190
18191pkg_failed=no
18192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
18193$as_echo_n "checking for lua... " >&6; }
18194
18195if test -n "$lua_CFLAGS"; then
18196    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
18197 elif test -n "$PKG_CONFIG"; then
18198    if test -n "$PKG_CONFIG" && \
18199    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
18200  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
18201  ac_status=$?
18202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18203  test $ac_status = 0; }; then
18204  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
18205		      test "x$?" != "x0" && pkg_failed=yes
18206else
18207  pkg_failed=yes
18208fi
18209 else
18210    pkg_failed=untried
18211fi
18212if test -n "$lua_LIBS"; then
18213    pkg_cv_lua_LIBS="$lua_LIBS"
18214 elif test -n "$PKG_CONFIG"; then
18215    if test -n "$PKG_CONFIG" && \
18216    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
18217  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
18218  ac_status=$?
18219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18220  test $ac_status = 0; }; then
18221  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
18222		      test "x$?" != "x0" && pkg_failed=yes
18223else
18224  pkg_failed=yes
18225fi
18226 else
18227    pkg_failed=untried
18228fi
18229
18230
18231
18232if test $pkg_failed = yes; then
18233   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18234$as_echo "no" >&6; }
18235
18236if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18237        _pkg_short_errors_supported=yes
18238else
18239        _pkg_short_errors_supported=no
18240fi
18241        if test $_pkg_short_errors_supported = yes; then
18242	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
18243        else
18244	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
18245        fi
18246	# Put the nasty error message in config.log where it belongs
18247	echo "$lua_PKG_ERRORS" >&5
18248
18249	if test "x$with_lua" = xyes; then :
18250  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
18251fi
18252elif test $pkg_failed = untried; then
18253     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18254$as_echo "no" >&6; }
18255	if test "x$with_lua" = xyes; then :
18256  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
18257fi
18258else
18259	lua_CFLAGS=$pkg_cv_lua_CFLAGS
18260	lua_LIBS=$pkg_cv_lua_LIBS
18261        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18262$as_echo "yes" >&6; }
18263
18264    if test "x$with_lua" = xdetect; then :
18265  with_lua='yes (found)'
18266fi
18267
18268
18269fi
18270else
18271	lua_CFLAGS=$pkg_cv_lua_CFLAGS
18272	lua_LIBS=$pkg_cv_lua_LIBS
18273        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18274$as_echo "yes" >&6; }
18275
18276    if test "x$with_lua" = xdetect; then :
18277  with_lua='yes (found)'
18278fi
18279
18280
18281fi
18282elif test $pkg_failed = untried; then
18283     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18284$as_echo "no" >&6; }
18285
18286pkg_failed=no
18287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
18288$as_echo_n "checking for lua... " >&6; }
18289
18290if test -n "$lua_CFLAGS"; then
18291    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
18292 elif test -n "$PKG_CONFIG"; then
18293    if test -n "$PKG_CONFIG" && \
18294    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
18295  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
18296  ac_status=$?
18297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18298  test $ac_status = 0; }; then
18299  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
18300		      test "x$?" != "x0" && pkg_failed=yes
18301else
18302  pkg_failed=yes
18303fi
18304 else
18305    pkg_failed=untried
18306fi
18307if test -n "$lua_LIBS"; then
18308    pkg_cv_lua_LIBS="$lua_LIBS"
18309 elif test -n "$PKG_CONFIG"; then
18310    if test -n "$PKG_CONFIG" && \
18311    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
18312  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
18313  ac_status=$?
18314  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18315  test $ac_status = 0; }; then
18316  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
18317		      test "x$?" != "x0" && pkg_failed=yes
18318else
18319  pkg_failed=yes
18320fi
18321 else
18322    pkg_failed=untried
18323fi
18324
18325
18326
18327if test $pkg_failed = yes; then
18328   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18329$as_echo "no" >&6; }
18330
18331if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18332        _pkg_short_errors_supported=yes
18333else
18334        _pkg_short_errors_supported=no
18335fi
18336        if test $_pkg_short_errors_supported = yes; then
18337	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
18338        else
18339	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
18340        fi
18341	# Put the nasty error message in config.log where it belongs
18342	echo "$lua_PKG_ERRORS" >&5
18343
18344
18345pkg_failed=no
18346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
18347$as_echo_n "checking for lua... " >&6; }
18348
18349if test -n "$lua_CFLAGS"; then
18350    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
18351 elif test -n "$PKG_CONFIG"; then
18352    if test -n "$PKG_CONFIG" && \
18353    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
18354  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
18355  ac_status=$?
18356  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18357  test $ac_status = 0; }; then
18358  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
18359		      test "x$?" != "x0" && pkg_failed=yes
18360else
18361  pkg_failed=yes
18362fi
18363 else
18364    pkg_failed=untried
18365fi
18366if test -n "$lua_LIBS"; then
18367    pkg_cv_lua_LIBS="$lua_LIBS"
18368 elif test -n "$PKG_CONFIG"; then
18369    if test -n "$PKG_CONFIG" && \
18370    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
18371  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
18372  ac_status=$?
18373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18374  test $ac_status = 0; }; then
18375  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
18376		      test "x$?" != "x0" && pkg_failed=yes
18377else
18378  pkg_failed=yes
18379fi
18380 else
18381    pkg_failed=untried
18382fi
18383
18384
18385
18386if test $pkg_failed = yes; then
18387   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18388$as_echo "no" >&6; }
18389
18390if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18391        _pkg_short_errors_supported=yes
18392else
18393        _pkg_short_errors_supported=no
18394fi
18395        if test $_pkg_short_errors_supported = yes; then
18396	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
18397        else
18398	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
18399        fi
18400	# Put the nasty error message in config.log where it belongs
18401	echo "$lua_PKG_ERRORS" >&5
18402
18403	if test "x$with_lua" = xyes; then :
18404  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
18405fi
18406elif test $pkg_failed = untried; then
18407     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18408$as_echo "no" >&6; }
18409	if test "x$with_lua" = xyes; then :
18410  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
18411fi
18412else
18413	lua_CFLAGS=$pkg_cv_lua_CFLAGS
18414	lua_LIBS=$pkg_cv_lua_LIBS
18415        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18416$as_echo "yes" >&6; }
18417
18418    if test "x$with_lua" = xdetect; then :
18419  with_lua='yes (found)'
18420fi
18421
18422
18423fi
18424elif test $pkg_failed = untried; then
18425     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18426$as_echo "no" >&6; }
18427
18428pkg_failed=no
18429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
18430$as_echo_n "checking for lua... " >&6; }
18431
18432if test -n "$lua_CFLAGS"; then
18433    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
18434 elif test -n "$PKG_CONFIG"; then
18435    if test -n "$PKG_CONFIG" && \
18436    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
18437  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
18438  ac_status=$?
18439  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18440  test $ac_status = 0; }; then
18441  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
18442		      test "x$?" != "x0" && pkg_failed=yes
18443else
18444  pkg_failed=yes
18445fi
18446 else
18447    pkg_failed=untried
18448fi
18449if test -n "$lua_LIBS"; then
18450    pkg_cv_lua_LIBS="$lua_LIBS"
18451 elif test -n "$PKG_CONFIG"; then
18452    if test -n "$PKG_CONFIG" && \
18453    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
18454  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
18455  ac_status=$?
18456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18457  test $ac_status = 0; }; then
18458  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
18459		      test "x$?" != "x0" && pkg_failed=yes
18460else
18461  pkg_failed=yes
18462fi
18463 else
18464    pkg_failed=untried
18465fi
18466
18467
18468
18469if test $pkg_failed = yes; then
18470   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18471$as_echo "no" >&6; }
18472
18473if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18474        _pkg_short_errors_supported=yes
18475else
18476        _pkg_short_errors_supported=no
18477fi
18478        if test $_pkg_short_errors_supported = yes; then
18479	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
18480        else
18481	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
18482        fi
18483	# Put the nasty error message in config.log where it belongs
18484	echo "$lua_PKG_ERRORS" >&5
18485
18486	if test "x$with_lua" = xyes; then :
18487  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
18488fi
18489elif test $pkg_failed = untried; then
18490     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18491$as_echo "no" >&6; }
18492	if test "x$with_lua" = xyes; then :
18493  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
18494fi
18495else
18496	lua_CFLAGS=$pkg_cv_lua_CFLAGS
18497	lua_LIBS=$pkg_cv_lua_LIBS
18498        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18499$as_echo "yes" >&6; }
18500
18501    if test "x$with_lua" = xdetect; then :
18502  with_lua='yes (found)'
18503fi
18504
18505
18506fi
18507else
18508	lua_CFLAGS=$pkg_cv_lua_CFLAGS
18509	lua_LIBS=$pkg_cv_lua_LIBS
18510        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18511$as_echo "yes" >&6; }
18512
18513    if test "x$with_lua" = xdetect; then :
18514  with_lua='yes (found)'
18515fi
18516
18517
18518fi
18519else
18520	lua_CFLAGS=$pkg_cv_lua_CFLAGS
18521	lua_LIBS=$pkg_cv_lua_LIBS
18522        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18523$as_echo "yes" >&6; }
18524
18525    if test "x$with_lua" = xdetect; then :
18526  with_lua='yes (found)'
18527fi
18528
18529
18530fi
18531else
18532	lua_CFLAGS=$pkg_cv_lua_CFLAGS
18533	lua_LIBS=$pkg_cv_lua_LIBS
18534        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18535$as_echo "yes" >&6; }
18536
18537    if test "x$with_lua" = xdetect; then :
18538  with_lua='yes (found)'
18539fi
18540
18541
18542fi
18543else
18544	lua_CFLAGS=$pkg_cv_lua_CFLAGS
18545	lua_LIBS=$pkg_cv_lua_LIBS
18546        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18547$as_echo "yes" >&6; }
18548
18549    if test "x$with_lua" = xdetect; then :
18550  with_lua='yes (found)'
18551fi
18552
18553
18554fi
18555elif test $pkg_failed = untried; then
18556     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18557$as_echo "no" >&6; }
18558
18559pkg_failed=no
18560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
18561$as_echo_n "checking for lua... " >&6; }
18562
18563if test -n "$lua_CFLAGS"; then
18564    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
18565 elif test -n "$PKG_CONFIG"; then
18566    if test -n "$PKG_CONFIG" && \
18567    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
18568  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
18569  ac_status=$?
18570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18571  test $ac_status = 0; }; then
18572  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
18573		      test "x$?" != "x0" && pkg_failed=yes
18574else
18575  pkg_failed=yes
18576fi
18577 else
18578    pkg_failed=untried
18579fi
18580if test -n "$lua_LIBS"; then
18581    pkg_cv_lua_LIBS="$lua_LIBS"
18582 elif test -n "$PKG_CONFIG"; then
18583    if test -n "$PKG_CONFIG" && \
18584    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
18585  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
18586  ac_status=$?
18587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18588  test $ac_status = 0; }; then
18589  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
18590		      test "x$?" != "x0" && pkg_failed=yes
18591else
18592  pkg_failed=yes
18593fi
18594 else
18595    pkg_failed=untried
18596fi
18597
18598
18599
18600if test $pkg_failed = yes; then
18601   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18602$as_echo "no" >&6; }
18603
18604if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18605        _pkg_short_errors_supported=yes
18606else
18607        _pkg_short_errors_supported=no
18608fi
18609        if test $_pkg_short_errors_supported = yes; then
18610	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
18611        else
18612	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
18613        fi
18614	# Put the nasty error message in config.log where it belongs
18615	echo "$lua_PKG_ERRORS" >&5
18616
18617
18618pkg_failed=no
18619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
18620$as_echo_n "checking for lua... " >&6; }
18621
18622if test -n "$lua_CFLAGS"; then
18623    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
18624 elif test -n "$PKG_CONFIG"; then
18625    if test -n "$PKG_CONFIG" && \
18626    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
18627  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
18628  ac_status=$?
18629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18630  test $ac_status = 0; }; then
18631  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
18632		      test "x$?" != "x0" && pkg_failed=yes
18633else
18634  pkg_failed=yes
18635fi
18636 else
18637    pkg_failed=untried
18638fi
18639if test -n "$lua_LIBS"; then
18640    pkg_cv_lua_LIBS="$lua_LIBS"
18641 elif test -n "$PKG_CONFIG"; then
18642    if test -n "$PKG_CONFIG" && \
18643    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
18644  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
18645  ac_status=$?
18646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18647  test $ac_status = 0; }; then
18648  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
18649		      test "x$?" != "x0" && pkg_failed=yes
18650else
18651  pkg_failed=yes
18652fi
18653 else
18654    pkg_failed=untried
18655fi
18656
18657
18658
18659if test $pkg_failed = yes; then
18660   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18661$as_echo "no" >&6; }
18662
18663if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18664        _pkg_short_errors_supported=yes
18665else
18666        _pkg_short_errors_supported=no
18667fi
18668        if test $_pkg_short_errors_supported = yes; then
18669	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
18670        else
18671	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
18672        fi
18673	# Put the nasty error message in config.log where it belongs
18674	echo "$lua_PKG_ERRORS" >&5
18675
18676
18677pkg_failed=no
18678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
18679$as_echo_n "checking for lua... " >&6; }
18680
18681if test -n "$lua_CFLAGS"; then
18682    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
18683 elif test -n "$PKG_CONFIG"; then
18684    if test -n "$PKG_CONFIG" && \
18685    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
18686  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
18687  ac_status=$?
18688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18689  test $ac_status = 0; }; then
18690  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
18691		      test "x$?" != "x0" && pkg_failed=yes
18692else
18693  pkg_failed=yes
18694fi
18695 else
18696    pkg_failed=untried
18697fi
18698if test -n "$lua_LIBS"; then
18699    pkg_cv_lua_LIBS="$lua_LIBS"
18700 elif test -n "$PKG_CONFIG"; then
18701    if test -n "$PKG_CONFIG" && \
18702    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
18703  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
18704  ac_status=$?
18705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18706  test $ac_status = 0; }; then
18707  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
18708		      test "x$?" != "x0" && pkg_failed=yes
18709else
18710  pkg_failed=yes
18711fi
18712 else
18713    pkg_failed=untried
18714fi
18715
18716
18717
18718if test $pkg_failed = yes; then
18719   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18720$as_echo "no" >&6; }
18721
18722if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18723        _pkg_short_errors_supported=yes
18724else
18725        _pkg_short_errors_supported=no
18726fi
18727        if test $_pkg_short_errors_supported = yes; then
18728	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
18729        else
18730	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
18731        fi
18732	# Put the nasty error message in config.log where it belongs
18733	echo "$lua_PKG_ERRORS" >&5
18734
18735
18736pkg_failed=no
18737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
18738$as_echo_n "checking for lua... " >&6; }
18739
18740if test -n "$lua_CFLAGS"; then
18741    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
18742 elif test -n "$PKG_CONFIG"; then
18743    if test -n "$PKG_CONFIG" && \
18744    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
18745  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
18746  ac_status=$?
18747  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18748  test $ac_status = 0; }; then
18749  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
18750		      test "x$?" != "x0" && pkg_failed=yes
18751else
18752  pkg_failed=yes
18753fi
18754 else
18755    pkg_failed=untried
18756fi
18757if test -n "$lua_LIBS"; then
18758    pkg_cv_lua_LIBS="$lua_LIBS"
18759 elif test -n "$PKG_CONFIG"; then
18760    if test -n "$PKG_CONFIG" && \
18761    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
18762  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
18763  ac_status=$?
18764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18765  test $ac_status = 0; }; then
18766  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
18767		      test "x$?" != "x0" && pkg_failed=yes
18768else
18769  pkg_failed=yes
18770fi
18771 else
18772    pkg_failed=untried
18773fi
18774
18775
18776
18777if test $pkg_failed = yes; then
18778   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18779$as_echo "no" >&6; }
18780
18781if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18782        _pkg_short_errors_supported=yes
18783else
18784        _pkg_short_errors_supported=no
18785fi
18786        if test $_pkg_short_errors_supported = yes; then
18787	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
18788        else
18789	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
18790        fi
18791	# Put the nasty error message in config.log where it belongs
18792	echo "$lua_PKG_ERRORS" >&5
18793
18794
18795pkg_failed=no
18796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
18797$as_echo_n "checking for lua... " >&6; }
18798
18799if test -n "$lua_CFLAGS"; then
18800    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
18801 elif test -n "$PKG_CONFIG"; then
18802    if test -n "$PKG_CONFIG" && \
18803    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
18804  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
18805  ac_status=$?
18806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18807  test $ac_status = 0; }; then
18808  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
18809		      test "x$?" != "x0" && pkg_failed=yes
18810else
18811  pkg_failed=yes
18812fi
18813 else
18814    pkg_failed=untried
18815fi
18816if test -n "$lua_LIBS"; then
18817    pkg_cv_lua_LIBS="$lua_LIBS"
18818 elif test -n "$PKG_CONFIG"; then
18819    if test -n "$PKG_CONFIG" && \
18820    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
18821  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
18822  ac_status=$?
18823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18824  test $ac_status = 0; }; then
18825  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
18826		      test "x$?" != "x0" && pkg_failed=yes
18827else
18828  pkg_failed=yes
18829fi
18830 else
18831    pkg_failed=untried
18832fi
18833
18834
18835
18836if test $pkg_failed = yes; then
18837   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18838$as_echo "no" >&6; }
18839
18840if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18841        _pkg_short_errors_supported=yes
18842else
18843        _pkg_short_errors_supported=no
18844fi
18845        if test $_pkg_short_errors_supported = yes; then
18846	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
18847        else
18848	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
18849        fi
18850	# Put the nasty error message in config.log where it belongs
18851	echo "$lua_PKG_ERRORS" >&5
18852
18853	if test "x$with_lua" = xyes; then :
18854  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
18855fi
18856elif test $pkg_failed = untried; then
18857     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18858$as_echo "no" >&6; }
18859	if test "x$with_lua" = xyes; then :
18860  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
18861fi
18862else
18863	lua_CFLAGS=$pkg_cv_lua_CFLAGS
18864	lua_LIBS=$pkg_cv_lua_LIBS
18865        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18866$as_echo "yes" >&6; }
18867
18868    if test "x$with_lua" = xdetect; then :
18869  with_lua='yes (found)'
18870fi
18871
18872
18873fi
18874elif test $pkg_failed = untried; then
18875     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18876$as_echo "no" >&6; }
18877
18878pkg_failed=no
18879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
18880$as_echo_n "checking for lua... " >&6; }
18881
18882if test -n "$lua_CFLAGS"; then
18883    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
18884 elif test -n "$PKG_CONFIG"; then
18885    if test -n "$PKG_CONFIG" && \
18886    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
18887  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
18888  ac_status=$?
18889  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18890  test $ac_status = 0; }; then
18891  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
18892		      test "x$?" != "x0" && pkg_failed=yes
18893else
18894  pkg_failed=yes
18895fi
18896 else
18897    pkg_failed=untried
18898fi
18899if test -n "$lua_LIBS"; then
18900    pkg_cv_lua_LIBS="$lua_LIBS"
18901 elif test -n "$PKG_CONFIG"; then
18902    if test -n "$PKG_CONFIG" && \
18903    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
18904  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
18905  ac_status=$?
18906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18907  test $ac_status = 0; }; then
18908  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
18909		      test "x$?" != "x0" && pkg_failed=yes
18910else
18911  pkg_failed=yes
18912fi
18913 else
18914    pkg_failed=untried
18915fi
18916
18917
18918
18919if test $pkg_failed = yes; then
18920   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18921$as_echo "no" >&6; }
18922
18923if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18924        _pkg_short_errors_supported=yes
18925else
18926        _pkg_short_errors_supported=no
18927fi
18928        if test $_pkg_short_errors_supported = yes; then
18929	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
18930        else
18931	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
18932        fi
18933	# Put the nasty error message in config.log where it belongs
18934	echo "$lua_PKG_ERRORS" >&5
18935
18936	if test "x$with_lua" = xyes; then :
18937  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
18938fi
18939elif test $pkg_failed = untried; then
18940     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18941$as_echo "no" >&6; }
18942	if test "x$with_lua" = xyes; then :
18943  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
18944fi
18945else
18946	lua_CFLAGS=$pkg_cv_lua_CFLAGS
18947	lua_LIBS=$pkg_cv_lua_LIBS
18948        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18949$as_echo "yes" >&6; }
18950
18951    if test "x$with_lua" = xdetect; then :
18952  with_lua='yes (found)'
18953fi
18954
18955
18956fi
18957else
18958	lua_CFLAGS=$pkg_cv_lua_CFLAGS
18959	lua_LIBS=$pkg_cv_lua_LIBS
18960        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18961$as_echo "yes" >&6; }
18962
18963    if test "x$with_lua" = xdetect; then :
18964  with_lua='yes (found)'
18965fi
18966
18967
18968fi
18969elif test $pkg_failed = untried; then
18970     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18971$as_echo "no" >&6; }
18972
18973pkg_failed=no
18974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
18975$as_echo_n "checking for lua... " >&6; }
18976
18977if test -n "$lua_CFLAGS"; then
18978    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
18979 elif test -n "$PKG_CONFIG"; then
18980    if test -n "$PKG_CONFIG" && \
18981    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
18982  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
18983  ac_status=$?
18984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18985  test $ac_status = 0; }; then
18986  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
18987		      test "x$?" != "x0" && pkg_failed=yes
18988else
18989  pkg_failed=yes
18990fi
18991 else
18992    pkg_failed=untried
18993fi
18994if test -n "$lua_LIBS"; then
18995    pkg_cv_lua_LIBS="$lua_LIBS"
18996 elif test -n "$PKG_CONFIG"; then
18997    if test -n "$PKG_CONFIG" && \
18998    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
18999  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
19000  ac_status=$?
19001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19002  test $ac_status = 0; }; then
19003  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
19004		      test "x$?" != "x0" && pkg_failed=yes
19005else
19006  pkg_failed=yes
19007fi
19008 else
19009    pkg_failed=untried
19010fi
19011
19012
19013
19014if test $pkg_failed = yes; then
19015   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19016$as_echo "no" >&6; }
19017
19018if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19019        _pkg_short_errors_supported=yes
19020else
19021        _pkg_short_errors_supported=no
19022fi
19023        if test $_pkg_short_errors_supported = yes; then
19024	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
19025        else
19026	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
19027        fi
19028	# Put the nasty error message in config.log where it belongs
19029	echo "$lua_PKG_ERRORS" >&5
19030
19031
19032pkg_failed=no
19033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
19034$as_echo_n "checking for lua... " >&6; }
19035
19036if test -n "$lua_CFLAGS"; then
19037    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
19038 elif test -n "$PKG_CONFIG"; then
19039    if test -n "$PKG_CONFIG" && \
19040    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
19041  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
19042  ac_status=$?
19043  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19044  test $ac_status = 0; }; then
19045  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
19046		      test "x$?" != "x0" && pkg_failed=yes
19047else
19048  pkg_failed=yes
19049fi
19050 else
19051    pkg_failed=untried
19052fi
19053if test -n "$lua_LIBS"; then
19054    pkg_cv_lua_LIBS="$lua_LIBS"
19055 elif test -n "$PKG_CONFIG"; then
19056    if test -n "$PKG_CONFIG" && \
19057    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
19058  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
19059  ac_status=$?
19060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19061  test $ac_status = 0; }; then
19062  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
19063		      test "x$?" != "x0" && pkg_failed=yes
19064else
19065  pkg_failed=yes
19066fi
19067 else
19068    pkg_failed=untried
19069fi
19070
19071
19072
19073if test $pkg_failed = yes; then
19074   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19075$as_echo "no" >&6; }
19076
19077if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19078        _pkg_short_errors_supported=yes
19079else
19080        _pkg_short_errors_supported=no
19081fi
19082        if test $_pkg_short_errors_supported = yes; then
19083	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
19084        else
19085	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
19086        fi
19087	# Put the nasty error message in config.log where it belongs
19088	echo "$lua_PKG_ERRORS" >&5
19089
19090	if test "x$with_lua" = xyes; then :
19091  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
19092fi
19093elif test $pkg_failed = untried; then
19094     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19095$as_echo "no" >&6; }
19096	if test "x$with_lua" = xyes; then :
19097  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
19098fi
19099else
19100	lua_CFLAGS=$pkg_cv_lua_CFLAGS
19101	lua_LIBS=$pkg_cv_lua_LIBS
19102        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19103$as_echo "yes" >&6; }
19104
19105    if test "x$with_lua" = xdetect; then :
19106  with_lua='yes (found)'
19107fi
19108
19109
19110fi
19111elif test $pkg_failed = untried; then
19112     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19113$as_echo "no" >&6; }
19114
19115pkg_failed=no
19116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
19117$as_echo_n "checking for lua... " >&6; }
19118
19119if test -n "$lua_CFLAGS"; then
19120    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
19121 elif test -n "$PKG_CONFIG"; then
19122    if test -n "$PKG_CONFIG" && \
19123    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
19124  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
19125  ac_status=$?
19126  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19127  test $ac_status = 0; }; then
19128  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
19129		      test "x$?" != "x0" && pkg_failed=yes
19130else
19131  pkg_failed=yes
19132fi
19133 else
19134    pkg_failed=untried
19135fi
19136if test -n "$lua_LIBS"; then
19137    pkg_cv_lua_LIBS="$lua_LIBS"
19138 elif test -n "$PKG_CONFIG"; then
19139    if test -n "$PKG_CONFIG" && \
19140    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
19141  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
19142  ac_status=$?
19143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19144  test $ac_status = 0; }; then
19145  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
19146		      test "x$?" != "x0" && pkg_failed=yes
19147else
19148  pkg_failed=yes
19149fi
19150 else
19151    pkg_failed=untried
19152fi
19153
19154
19155
19156if test $pkg_failed = yes; then
19157   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19158$as_echo "no" >&6; }
19159
19160if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19161        _pkg_short_errors_supported=yes
19162else
19163        _pkg_short_errors_supported=no
19164fi
19165        if test $_pkg_short_errors_supported = yes; then
19166	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
19167        else
19168	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
19169        fi
19170	# Put the nasty error message in config.log where it belongs
19171	echo "$lua_PKG_ERRORS" >&5
19172
19173	if test "x$with_lua" = xyes; then :
19174  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
19175fi
19176elif test $pkg_failed = untried; then
19177     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19178$as_echo "no" >&6; }
19179	if test "x$with_lua" = xyes; then :
19180  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
19181fi
19182else
19183	lua_CFLAGS=$pkg_cv_lua_CFLAGS
19184	lua_LIBS=$pkg_cv_lua_LIBS
19185        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19186$as_echo "yes" >&6; }
19187
19188    if test "x$with_lua" = xdetect; then :
19189  with_lua='yes (found)'
19190fi
19191
19192
19193fi
19194else
19195	lua_CFLAGS=$pkg_cv_lua_CFLAGS
19196	lua_LIBS=$pkg_cv_lua_LIBS
19197        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19198$as_echo "yes" >&6; }
19199
19200    if test "x$with_lua" = xdetect; then :
19201  with_lua='yes (found)'
19202fi
19203
19204
19205fi
19206else
19207	lua_CFLAGS=$pkg_cv_lua_CFLAGS
19208	lua_LIBS=$pkg_cv_lua_LIBS
19209        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19210$as_echo "yes" >&6; }
19211
19212    if test "x$with_lua" = xdetect; then :
19213  with_lua='yes (found)'
19214fi
19215
19216
19217fi
19218elif test $pkg_failed = untried; then
19219     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19220$as_echo "no" >&6; }
19221
19222pkg_failed=no
19223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
19224$as_echo_n "checking for lua... " >&6; }
19225
19226if test -n "$lua_CFLAGS"; then
19227    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
19228 elif test -n "$PKG_CONFIG"; then
19229    if test -n "$PKG_CONFIG" && \
19230    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
19231  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
19232  ac_status=$?
19233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19234  test $ac_status = 0; }; then
19235  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
19236		      test "x$?" != "x0" && pkg_failed=yes
19237else
19238  pkg_failed=yes
19239fi
19240 else
19241    pkg_failed=untried
19242fi
19243if test -n "$lua_LIBS"; then
19244    pkg_cv_lua_LIBS="$lua_LIBS"
19245 elif test -n "$PKG_CONFIG"; then
19246    if test -n "$PKG_CONFIG" && \
19247    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
19248  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
19249  ac_status=$?
19250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19251  test $ac_status = 0; }; then
19252  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
19253		      test "x$?" != "x0" && pkg_failed=yes
19254else
19255  pkg_failed=yes
19256fi
19257 else
19258    pkg_failed=untried
19259fi
19260
19261
19262
19263if test $pkg_failed = yes; then
19264   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19265$as_echo "no" >&6; }
19266
19267if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19268        _pkg_short_errors_supported=yes
19269else
19270        _pkg_short_errors_supported=no
19271fi
19272        if test $_pkg_short_errors_supported = yes; then
19273	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
19274        else
19275	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
19276        fi
19277	# Put the nasty error message in config.log where it belongs
19278	echo "$lua_PKG_ERRORS" >&5
19279
19280
19281pkg_failed=no
19282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
19283$as_echo_n "checking for lua... " >&6; }
19284
19285if test -n "$lua_CFLAGS"; then
19286    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
19287 elif test -n "$PKG_CONFIG"; then
19288    if test -n "$PKG_CONFIG" && \
19289    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
19290  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
19291  ac_status=$?
19292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19293  test $ac_status = 0; }; then
19294  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
19295		      test "x$?" != "x0" && pkg_failed=yes
19296else
19297  pkg_failed=yes
19298fi
19299 else
19300    pkg_failed=untried
19301fi
19302if test -n "$lua_LIBS"; then
19303    pkg_cv_lua_LIBS="$lua_LIBS"
19304 elif test -n "$PKG_CONFIG"; then
19305    if test -n "$PKG_CONFIG" && \
19306    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
19307  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
19308  ac_status=$?
19309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19310  test $ac_status = 0; }; then
19311  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
19312		      test "x$?" != "x0" && pkg_failed=yes
19313else
19314  pkg_failed=yes
19315fi
19316 else
19317    pkg_failed=untried
19318fi
19319
19320
19321
19322if test $pkg_failed = yes; then
19323   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19324$as_echo "no" >&6; }
19325
19326if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19327        _pkg_short_errors_supported=yes
19328else
19329        _pkg_short_errors_supported=no
19330fi
19331        if test $_pkg_short_errors_supported = yes; then
19332	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
19333        else
19334	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
19335        fi
19336	# Put the nasty error message in config.log where it belongs
19337	echo "$lua_PKG_ERRORS" >&5
19338
19339
19340pkg_failed=no
19341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
19342$as_echo_n "checking for lua... " >&6; }
19343
19344if test -n "$lua_CFLAGS"; then
19345    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
19346 elif test -n "$PKG_CONFIG"; then
19347    if test -n "$PKG_CONFIG" && \
19348    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
19349  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
19350  ac_status=$?
19351  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19352  test $ac_status = 0; }; then
19353  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
19354		      test "x$?" != "x0" && pkg_failed=yes
19355else
19356  pkg_failed=yes
19357fi
19358 else
19359    pkg_failed=untried
19360fi
19361if test -n "$lua_LIBS"; then
19362    pkg_cv_lua_LIBS="$lua_LIBS"
19363 elif test -n "$PKG_CONFIG"; then
19364    if test -n "$PKG_CONFIG" && \
19365    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
19366  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
19367  ac_status=$?
19368  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19369  test $ac_status = 0; }; then
19370  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
19371		      test "x$?" != "x0" && pkg_failed=yes
19372else
19373  pkg_failed=yes
19374fi
19375 else
19376    pkg_failed=untried
19377fi
19378
19379
19380
19381if test $pkg_failed = yes; then
19382   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19383$as_echo "no" >&6; }
19384
19385if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19386        _pkg_short_errors_supported=yes
19387else
19388        _pkg_short_errors_supported=no
19389fi
19390        if test $_pkg_short_errors_supported = yes; then
19391	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
19392        else
19393	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
19394        fi
19395	# Put the nasty error message in config.log where it belongs
19396	echo "$lua_PKG_ERRORS" >&5
19397
19398	if test "x$with_lua" = xyes; then :
19399  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
19400fi
19401elif test $pkg_failed = untried; then
19402     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19403$as_echo "no" >&6; }
19404	if test "x$with_lua" = xyes; then :
19405  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
19406fi
19407else
19408	lua_CFLAGS=$pkg_cv_lua_CFLAGS
19409	lua_LIBS=$pkg_cv_lua_LIBS
19410        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19411$as_echo "yes" >&6; }
19412
19413    if test "x$with_lua" = xdetect; then :
19414  with_lua='yes (found)'
19415fi
19416
19417
19418fi
19419elif test $pkg_failed = untried; then
19420     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19421$as_echo "no" >&6; }
19422
19423pkg_failed=no
19424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
19425$as_echo_n "checking for lua... " >&6; }
19426
19427if test -n "$lua_CFLAGS"; then
19428    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
19429 elif test -n "$PKG_CONFIG"; then
19430    if test -n "$PKG_CONFIG" && \
19431    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
19432  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
19433  ac_status=$?
19434  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19435  test $ac_status = 0; }; then
19436  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
19437		      test "x$?" != "x0" && pkg_failed=yes
19438else
19439  pkg_failed=yes
19440fi
19441 else
19442    pkg_failed=untried
19443fi
19444if test -n "$lua_LIBS"; then
19445    pkg_cv_lua_LIBS="$lua_LIBS"
19446 elif test -n "$PKG_CONFIG"; then
19447    if test -n "$PKG_CONFIG" && \
19448    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
19449  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
19450  ac_status=$?
19451  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19452  test $ac_status = 0; }; then
19453  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
19454		      test "x$?" != "x0" && pkg_failed=yes
19455else
19456  pkg_failed=yes
19457fi
19458 else
19459    pkg_failed=untried
19460fi
19461
19462
19463
19464if test $pkg_failed = yes; then
19465   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19466$as_echo "no" >&6; }
19467
19468if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19469        _pkg_short_errors_supported=yes
19470else
19471        _pkg_short_errors_supported=no
19472fi
19473        if test $_pkg_short_errors_supported = yes; then
19474	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
19475        else
19476	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
19477        fi
19478	# Put the nasty error message in config.log where it belongs
19479	echo "$lua_PKG_ERRORS" >&5
19480
19481	if test "x$with_lua" = xyes; then :
19482  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
19483fi
19484elif test $pkg_failed = untried; then
19485     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19486$as_echo "no" >&6; }
19487	if test "x$with_lua" = xyes; then :
19488  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
19489fi
19490else
19491	lua_CFLAGS=$pkg_cv_lua_CFLAGS
19492	lua_LIBS=$pkg_cv_lua_LIBS
19493        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19494$as_echo "yes" >&6; }
19495
19496    if test "x$with_lua" = xdetect; then :
19497  with_lua='yes (found)'
19498fi
19499
19500
19501fi
19502else
19503	lua_CFLAGS=$pkg_cv_lua_CFLAGS
19504	lua_LIBS=$pkg_cv_lua_LIBS
19505        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19506$as_echo "yes" >&6; }
19507
19508    if test "x$with_lua" = xdetect; then :
19509  with_lua='yes (found)'
19510fi
19511
19512
19513fi
19514elif test $pkg_failed = untried; then
19515     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19516$as_echo "no" >&6; }
19517
19518pkg_failed=no
19519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
19520$as_echo_n "checking for lua... " >&6; }
19521
19522if test -n "$lua_CFLAGS"; then
19523    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
19524 elif test -n "$PKG_CONFIG"; then
19525    if test -n "$PKG_CONFIG" && \
19526    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
19527  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
19528  ac_status=$?
19529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19530  test $ac_status = 0; }; then
19531  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
19532		      test "x$?" != "x0" && pkg_failed=yes
19533else
19534  pkg_failed=yes
19535fi
19536 else
19537    pkg_failed=untried
19538fi
19539if test -n "$lua_LIBS"; then
19540    pkg_cv_lua_LIBS="$lua_LIBS"
19541 elif test -n "$PKG_CONFIG"; then
19542    if test -n "$PKG_CONFIG" && \
19543    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
19544  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
19545  ac_status=$?
19546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19547  test $ac_status = 0; }; then
19548  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
19549		      test "x$?" != "x0" && pkg_failed=yes
19550else
19551  pkg_failed=yes
19552fi
19553 else
19554    pkg_failed=untried
19555fi
19556
19557
19558
19559if test $pkg_failed = yes; then
19560   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19561$as_echo "no" >&6; }
19562
19563if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19564        _pkg_short_errors_supported=yes
19565else
19566        _pkg_short_errors_supported=no
19567fi
19568        if test $_pkg_short_errors_supported = yes; then
19569	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
19570        else
19571	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
19572        fi
19573	# Put the nasty error message in config.log where it belongs
19574	echo "$lua_PKG_ERRORS" >&5
19575
19576
19577pkg_failed=no
19578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
19579$as_echo_n "checking for lua... " >&6; }
19580
19581if test -n "$lua_CFLAGS"; then
19582    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
19583 elif test -n "$PKG_CONFIG"; then
19584    if test -n "$PKG_CONFIG" && \
19585    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
19586  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
19587  ac_status=$?
19588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19589  test $ac_status = 0; }; then
19590  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
19591		      test "x$?" != "x0" && pkg_failed=yes
19592else
19593  pkg_failed=yes
19594fi
19595 else
19596    pkg_failed=untried
19597fi
19598if test -n "$lua_LIBS"; then
19599    pkg_cv_lua_LIBS="$lua_LIBS"
19600 elif test -n "$PKG_CONFIG"; then
19601    if test -n "$PKG_CONFIG" && \
19602    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
19603  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
19604  ac_status=$?
19605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19606  test $ac_status = 0; }; then
19607  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
19608		      test "x$?" != "x0" && pkg_failed=yes
19609else
19610  pkg_failed=yes
19611fi
19612 else
19613    pkg_failed=untried
19614fi
19615
19616
19617
19618if test $pkg_failed = yes; then
19619   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19620$as_echo "no" >&6; }
19621
19622if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19623        _pkg_short_errors_supported=yes
19624else
19625        _pkg_short_errors_supported=no
19626fi
19627        if test $_pkg_short_errors_supported = yes; then
19628	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
19629        else
19630	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
19631        fi
19632	# Put the nasty error message in config.log where it belongs
19633	echo "$lua_PKG_ERRORS" >&5
19634
19635	if test "x$with_lua" = xyes; then :
19636  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
19637fi
19638elif test $pkg_failed = untried; then
19639     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19640$as_echo "no" >&6; }
19641	if test "x$with_lua" = xyes; then :
19642  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
19643fi
19644else
19645	lua_CFLAGS=$pkg_cv_lua_CFLAGS
19646	lua_LIBS=$pkg_cv_lua_LIBS
19647        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19648$as_echo "yes" >&6; }
19649
19650    if test "x$with_lua" = xdetect; then :
19651  with_lua='yes (found)'
19652fi
19653
19654
19655fi
19656elif test $pkg_failed = untried; then
19657     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19658$as_echo "no" >&6; }
19659
19660pkg_failed=no
19661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
19662$as_echo_n "checking for lua... " >&6; }
19663
19664if test -n "$lua_CFLAGS"; then
19665    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
19666 elif test -n "$PKG_CONFIG"; then
19667    if test -n "$PKG_CONFIG" && \
19668    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
19669  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
19670  ac_status=$?
19671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19672  test $ac_status = 0; }; then
19673  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
19674		      test "x$?" != "x0" && pkg_failed=yes
19675else
19676  pkg_failed=yes
19677fi
19678 else
19679    pkg_failed=untried
19680fi
19681if test -n "$lua_LIBS"; then
19682    pkg_cv_lua_LIBS="$lua_LIBS"
19683 elif test -n "$PKG_CONFIG"; then
19684    if test -n "$PKG_CONFIG" && \
19685    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
19686  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
19687  ac_status=$?
19688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19689  test $ac_status = 0; }; then
19690  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
19691		      test "x$?" != "x0" && pkg_failed=yes
19692else
19693  pkg_failed=yes
19694fi
19695 else
19696    pkg_failed=untried
19697fi
19698
19699
19700
19701if test $pkg_failed = yes; then
19702   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19703$as_echo "no" >&6; }
19704
19705if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19706        _pkg_short_errors_supported=yes
19707else
19708        _pkg_short_errors_supported=no
19709fi
19710        if test $_pkg_short_errors_supported = yes; then
19711	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
19712        else
19713	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
19714        fi
19715	# Put the nasty error message in config.log where it belongs
19716	echo "$lua_PKG_ERRORS" >&5
19717
19718	if test "x$with_lua" = xyes; then :
19719  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
19720fi
19721elif test $pkg_failed = untried; then
19722     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19723$as_echo "no" >&6; }
19724	if test "x$with_lua" = xyes; then :
19725  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
19726fi
19727else
19728	lua_CFLAGS=$pkg_cv_lua_CFLAGS
19729	lua_LIBS=$pkg_cv_lua_LIBS
19730        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19731$as_echo "yes" >&6; }
19732
19733    if test "x$with_lua" = xdetect; then :
19734  with_lua='yes (found)'
19735fi
19736
19737
19738fi
19739else
19740	lua_CFLAGS=$pkg_cv_lua_CFLAGS
19741	lua_LIBS=$pkg_cv_lua_LIBS
19742        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19743$as_echo "yes" >&6; }
19744
19745    if test "x$with_lua" = xdetect; then :
19746  with_lua='yes (found)'
19747fi
19748
19749
19750fi
19751else
19752	lua_CFLAGS=$pkg_cv_lua_CFLAGS
19753	lua_LIBS=$pkg_cv_lua_LIBS
19754        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19755$as_echo "yes" >&6; }
19756
19757    if test "x$with_lua" = xdetect; then :
19758  with_lua='yes (found)'
19759fi
19760
19761
19762fi
19763else
19764	lua_CFLAGS=$pkg_cv_lua_CFLAGS
19765	lua_LIBS=$pkg_cv_lua_LIBS
19766        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19767$as_echo "yes" >&6; }
19768
19769    if test "x$with_lua" = xdetect; then :
19770  with_lua='yes (found)'
19771fi
19772
19773
19774fi
19775elif test $pkg_failed = untried; then
19776     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19777$as_echo "no" >&6; }
19778
19779pkg_failed=no
19780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
19781$as_echo_n "checking for lua... " >&6; }
19782
19783if test -n "$lua_CFLAGS"; then
19784    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
19785 elif test -n "$PKG_CONFIG"; then
19786    if test -n "$PKG_CONFIG" && \
19787    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
19788  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
19789  ac_status=$?
19790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19791  test $ac_status = 0; }; then
19792  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
19793		      test "x$?" != "x0" && pkg_failed=yes
19794else
19795  pkg_failed=yes
19796fi
19797 else
19798    pkg_failed=untried
19799fi
19800if test -n "$lua_LIBS"; then
19801    pkg_cv_lua_LIBS="$lua_LIBS"
19802 elif test -n "$PKG_CONFIG"; then
19803    if test -n "$PKG_CONFIG" && \
19804    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
19805  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
19806  ac_status=$?
19807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19808  test $ac_status = 0; }; then
19809  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
19810		      test "x$?" != "x0" && pkg_failed=yes
19811else
19812  pkg_failed=yes
19813fi
19814 else
19815    pkg_failed=untried
19816fi
19817
19818
19819
19820if test $pkg_failed = yes; then
19821   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19822$as_echo "no" >&6; }
19823
19824if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19825        _pkg_short_errors_supported=yes
19826else
19827        _pkg_short_errors_supported=no
19828fi
19829        if test $_pkg_short_errors_supported = yes; then
19830	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
19831        else
19832	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
19833        fi
19834	# Put the nasty error message in config.log where it belongs
19835	echo "$lua_PKG_ERRORS" >&5
19836
19837
19838pkg_failed=no
19839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
19840$as_echo_n "checking for lua... " >&6; }
19841
19842if test -n "$lua_CFLAGS"; then
19843    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
19844 elif test -n "$PKG_CONFIG"; then
19845    if test -n "$PKG_CONFIG" && \
19846    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
19847  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
19848  ac_status=$?
19849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19850  test $ac_status = 0; }; then
19851  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
19852		      test "x$?" != "x0" && pkg_failed=yes
19853else
19854  pkg_failed=yes
19855fi
19856 else
19857    pkg_failed=untried
19858fi
19859if test -n "$lua_LIBS"; then
19860    pkg_cv_lua_LIBS="$lua_LIBS"
19861 elif test -n "$PKG_CONFIG"; then
19862    if test -n "$PKG_CONFIG" && \
19863    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
19864  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
19865  ac_status=$?
19866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19867  test $ac_status = 0; }; then
19868  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
19869		      test "x$?" != "x0" && pkg_failed=yes
19870else
19871  pkg_failed=yes
19872fi
19873 else
19874    pkg_failed=untried
19875fi
19876
19877
19878
19879if test $pkg_failed = yes; then
19880   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19881$as_echo "no" >&6; }
19882
19883if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19884        _pkg_short_errors_supported=yes
19885else
19886        _pkg_short_errors_supported=no
19887fi
19888        if test $_pkg_short_errors_supported = yes; then
19889	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
19890        else
19891	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
19892        fi
19893	# Put the nasty error message in config.log where it belongs
19894	echo "$lua_PKG_ERRORS" >&5
19895
19896
19897pkg_failed=no
19898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
19899$as_echo_n "checking for lua... " >&6; }
19900
19901if test -n "$lua_CFLAGS"; then
19902    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
19903 elif test -n "$PKG_CONFIG"; then
19904    if test -n "$PKG_CONFIG" && \
19905    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
19906  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
19907  ac_status=$?
19908  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19909  test $ac_status = 0; }; then
19910  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
19911		      test "x$?" != "x0" && pkg_failed=yes
19912else
19913  pkg_failed=yes
19914fi
19915 else
19916    pkg_failed=untried
19917fi
19918if test -n "$lua_LIBS"; then
19919    pkg_cv_lua_LIBS="$lua_LIBS"
19920 elif test -n "$PKG_CONFIG"; then
19921    if test -n "$PKG_CONFIG" && \
19922    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
19923  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
19924  ac_status=$?
19925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19926  test $ac_status = 0; }; then
19927  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
19928		      test "x$?" != "x0" && pkg_failed=yes
19929else
19930  pkg_failed=yes
19931fi
19932 else
19933    pkg_failed=untried
19934fi
19935
19936
19937
19938if test $pkg_failed = yes; then
19939   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19940$as_echo "no" >&6; }
19941
19942if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19943        _pkg_short_errors_supported=yes
19944else
19945        _pkg_short_errors_supported=no
19946fi
19947        if test $_pkg_short_errors_supported = yes; then
19948	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
19949        else
19950	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
19951        fi
19952	# Put the nasty error message in config.log where it belongs
19953	echo "$lua_PKG_ERRORS" >&5
19954
19955
19956pkg_failed=no
19957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
19958$as_echo_n "checking for lua... " >&6; }
19959
19960if test -n "$lua_CFLAGS"; then
19961    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
19962 elif test -n "$PKG_CONFIG"; then
19963    if test -n "$PKG_CONFIG" && \
19964    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
19965  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
19966  ac_status=$?
19967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19968  test $ac_status = 0; }; then
19969  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
19970		      test "x$?" != "x0" && pkg_failed=yes
19971else
19972  pkg_failed=yes
19973fi
19974 else
19975    pkg_failed=untried
19976fi
19977if test -n "$lua_LIBS"; then
19978    pkg_cv_lua_LIBS="$lua_LIBS"
19979 elif test -n "$PKG_CONFIG"; then
19980    if test -n "$PKG_CONFIG" && \
19981    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
19982  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
19983  ac_status=$?
19984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19985  test $ac_status = 0; }; then
19986  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
19987		      test "x$?" != "x0" && pkg_failed=yes
19988else
19989  pkg_failed=yes
19990fi
19991 else
19992    pkg_failed=untried
19993fi
19994
19995
19996
19997if test $pkg_failed = yes; then
19998   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19999$as_echo "no" >&6; }
20000
20001if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20002        _pkg_short_errors_supported=yes
20003else
20004        _pkg_short_errors_supported=no
20005fi
20006        if test $_pkg_short_errors_supported = yes; then
20007	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
20008        else
20009	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
20010        fi
20011	# Put the nasty error message in config.log where it belongs
20012	echo "$lua_PKG_ERRORS" >&5
20013
20014	if test "x$with_lua" = xyes; then :
20015  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
20016fi
20017elif test $pkg_failed = untried; then
20018     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20019$as_echo "no" >&6; }
20020	if test "x$with_lua" = xyes; then :
20021  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
20022fi
20023else
20024	lua_CFLAGS=$pkg_cv_lua_CFLAGS
20025	lua_LIBS=$pkg_cv_lua_LIBS
20026        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20027$as_echo "yes" >&6; }
20028
20029    if test "x$with_lua" = xdetect; then :
20030  with_lua='yes (found)'
20031fi
20032
20033
20034fi
20035elif test $pkg_failed = untried; then
20036     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20037$as_echo "no" >&6; }
20038
20039pkg_failed=no
20040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
20041$as_echo_n "checking for lua... " >&6; }
20042
20043if test -n "$lua_CFLAGS"; then
20044    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
20045 elif test -n "$PKG_CONFIG"; then
20046    if test -n "$PKG_CONFIG" && \
20047    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
20048  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
20049  ac_status=$?
20050  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20051  test $ac_status = 0; }; then
20052  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
20053		      test "x$?" != "x0" && pkg_failed=yes
20054else
20055  pkg_failed=yes
20056fi
20057 else
20058    pkg_failed=untried
20059fi
20060if test -n "$lua_LIBS"; then
20061    pkg_cv_lua_LIBS="$lua_LIBS"
20062 elif test -n "$PKG_CONFIG"; then
20063    if test -n "$PKG_CONFIG" && \
20064    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
20065  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
20066  ac_status=$?
20067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20068  test $ac_status = 0; }; then
20069  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
20070		      test "x$?" != "x0" && pkg_failed=yes
20071else
20072  pkg_failed=yes
20073fi
20074 else
20075    pkg_failed=untried
20076fi
20077
20078
20079
20080if test $pkg_failed = yes; then
20081   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20082$as_echo "no" >&6; }
20083
20084if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20085        _pkg_short_errors_supported=yes
20086else
20087        _pkg_short_errors_supported=no
20088fi
20089        if test $_pkg_short_errors_supported = yes; then
20090	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
20091        else
20092	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
20093        fi
20094	# Put the nasty error message in config.log where it belongs
20095	echo "$lua_PKG_ERRORS" >&5
20096
20097	if test "x$with_lua" = xyes; then :
20098  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
20099fi
20100elif test $pkg_failed = untried; then
20101     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20102$as_echo "no" >&6; }
20103	if test "x$with_lua" = xyes; then :
20104  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
20105fi
20106else
20107	lua_CFLAGS=$pkg_cv_lua_CFLAGS
20108	lua_LIBS=$pkg_cv_lua_LIBS
20109        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20110$as_echo "yes" >&6; }
20111
20112    if test "x$with_lua" = xdetect; then :
20113  with_lua='yes (found)'
20114fi
20115
20116
20117fi
20118else
20119	lua_CFLAGS=$pkg_cv_lua_CFLAGS
20120	lua_LIBS=$pkg_cv_lua_LIBS
20121        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20122$as_echo "yes" >&6; }
20123
20124    if test "x$with_lua" = xdetect; then :
20125  with_lua='yes (found)'
20126fi
20127
20128
20129fi
20130elif test $pkg_failed = untried; then
20131     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20132$as_echo "no" >&6; }
20133
20134pkg_failed=no
20135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
20136$as_echo_n "checking for lua... " >&6; }
20137
20138if test -n "$lua_CFLAGS"; then
20139    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
20140 elif test -n "$PKG_CONFIG"; then
20141    if test -n "$PKG_CONFIG" && \
20142    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
20143  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
20144  ac_status=$?
20145  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20146  test $ac_status = 0; }; then
20147  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
20148		      test "x$?" != "x0" && pkg_failed=yes
20149else
20150  pkg_failed=yes
20151fi
20152 else
20153    pkg_failed=untried
20154fi
20155if test -n "$lua_LIBS"; then
20156    pkg_cv_lua_LIBS="$lua_LIBS"
20157 elif test -n "$PKG_CONFIG"; then
20158    if test -n "$PKG_CONFIG" && \
20159    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
20160  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
20161  ac_status=$?
20162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20163  test $ac_status = 0; }; then
20164  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
20165		      test "x$?" != "x0" && pkg_failed=yes
20166else
20167  pkg_failed=yes
20168fi
20169 else
20170    pkg_failed=untried
20171fi
20172
20173
20174
20175if test $pkg_failed = yes; then
20176   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20177$as_echo "no" >&6; }
20178
20179if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20180        _pkg_short_errors_supported=yes
20181else
20182        _pkg_short_errors_supported=no
20183fi
20184        if test $_pkg_short_errors_supported = yes; then
20185	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
20186        else
20187	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
20188        fi
20189	# Put the nasty error message in config.log where it belongs
20190	echo "$lua_PKG_ERRORS" >&5
20191
20192
20193pkg_failed=no
20194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
20195$as_echo_n "checking for lua... " >&6; }
20196
20197if test -n "$lua_CFLAGS"; then
20198    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
20199 elif test -n "$PKG_CONFIG"; then
20200    if test -n "$PKG_CONFIG" && \
20201    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
20202  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
20203  ac_status=$?
20204  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20205  test $ac_status = 0; }; then
20206  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
20207		      test "x$?" != "x0" && pkg_failed=yes
20208else
20209  pkg_failed=yes
20210fi
20211 else
20212    pkg_failed=untried
20213fi
20214if test -n "$lua_LIBS"; then
20215    pkg_cv_lua_LIBS="$lua_LIBS"
20216 elif test -n "$PKG_CONFIG"; then
20217    if test -n "$PKG_CONFIG" && \
20218    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
20219  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
20220  ac_status=$?
20221  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20222  test $ac_status = 0; }; then
20223  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
20224		      test "x$?" != "x0" && pkg_failed=yes
20225else
20226  pkg_failed=yes
20227fi
20228 else
20229    pkg_failed=untried
20230fi
20231
20232
20233
20234if test $pkg_failed = yes; then
20235   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20236$as_echo "no" >&6; }
20237
20238if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20239        _pkg_short_errors_supported=yes
20240else
20241        _pkg_short_errors_supported=no
20242fi
20243        if test $_pkg_short_errors_supported = yes; then
20244	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
20245        else
20246	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
20247        fi
20248	# Put the nasty error message in config.log where it belongs
20249	echo "$lua_PKG_ERRORS" >&5
20250
20251	if test "x$with_lua" = xyes; then :
20252  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
20253fi
20254elif test $pkg_failed = untried; then
20255     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20256$as_echo "no" >&6; }
20257	if test "x$with_lua" = xyes; then :
20258  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
20259fi
20260else
20261	lua_CFLAGS=$pkg_cv_lua_CFLAGS
20262	lua_LIBS=$pkg_cv_lua_LIBS
20263        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20264$as_echo "yes" >&6; }
20265
20266    if test "x$with_lua" = xdetect; then :
20267  with_lua='yes (found)'
20268fi
20269
20270
20271fi
20272elif test $pkg_failed = untried; then
20273     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20274$as_echo "no" >&6; }
20275
20276pkg_failed=no
20277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
20278$as_echo_n "checking for lua... " >&6; }
20279
20280if test -n "$lua_CFLAGS"; then
20281    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
20282 elif test -n "$PKG_CONFIG"; then
20283    if test -n "$PKG_CONFIG" && \
20284    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
20285  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
20286  ac_status=$?
20287  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20288  test $ac_status = 0; }; then
20289  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
20290		      test "x$?" != "x0" && pkg_failed=yes
20291else
20292  pkg_failed=yes
20293fi
20294 else
20295    pkg_failed=untried
20296fi
20297if test -n "$lua_LIBS"; then
20298    pkg_cv_lua_LIBS="$lua_LIBS"
20299 elif test -n "$PKG_CONFIG"; then
20300    if test -n "$PKG_CONFIG" && \
20301    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
20302  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
20303  ac_status=$?
20304  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20305  test $ac_status = 0; }; then
20306  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
20307		      test "x$?" != "x0" && pkg_failed=yes
20308else
20309  pkg_failed=yes
20310fi
20311 else
20312    pkg_failed=untried
20313fi
20314
20315
20316
20317if test $pkg_failed = yes; then
20318   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20319$as_echo "no" >&6; }
20320
20321if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20322        _pkg_short_errors_supported=yes
20323else
20324        _pkg_short_errors_supported=no
20325fi
20326        if test $_pkg_short_errors_supported = yes; then
20327	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
20328        else
20329	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
20330        fi
20331	# Put the nasty error message in config.log where it belongs
20332	echo "$lua_PKG_ERRORS" >&5
20333
20334	if test "x$with_lua" = xyes; then :
20335  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
20336fi
20337elif test $pkg_failed = untried; then
20338     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20339$as_echo "no" >&6; }
20340	if test "x$with_lua" = xyes; then :
20341  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
20342fi
20343else
20344	lua_CFLAGS=$pkg_cv_lua_CFLAGS
20345	lua_LIBS=$pkg_cv_lua_LIBS
20346        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20347$as_echo "yes" >&6; }
20348
20349    if test "x$with_lua" = xdetect; then :
20350  with_lua='yes (found)'
20351fi
20352
20353
20354fi
20355else
20356	lua_CFLAGS=$pkg_cv_lua_CFLAGS
20357	lua_LIBS=$pkg_cv_lua_LIBS
20358        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20359$as_echo "yes" >&6; }
20360
20361    if test "x$with_lua" = xdetect; then :
20362  with_lua='yes (found)'
20363fi
20364
20365
20366fi
20367else
20368	lua_CFLAGS=$pkg_cv_lua_CFLAGS
20369	lua_LIBS=$pkg_cv_lua_LIBS
20370        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20371$as_echo "yes" >&6; }
20372
20373    if test "x$with_lua" = xdetect; then :
20374  with_lua='yes (found)'
20375fi
20376
20377
20378fi
20379elif test $pkg_failed = untried; then
20380     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20381$as_echo "no" >&6; }
20382
20383pkg_failed=no
20384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
20385$as_echo_n "checking for lua... " >&6; }
20386
20387if test -n "$lua_CFLAGS"; then
20388    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
20389 elif test -n "$PKG_CONFIG"; then
20390    if test -n "$PKG_CONFIG" && \
20391    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
20392  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
20393  ac_status=$?
20394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20395  test $ac_status = 0; }; then
20396  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
20397		      test "x$?" != "x0" && pkg_failed=yes
20398else
20399  pkg_failed=yes
20400fi
20401 else
20402    pkg_failed=untried
20403fi
20404if test -n "$lua_LIBS"; then
20405    pkg_cv_lua_LIBS="$lua_LIBS"
20406 elif test -n "$PKG_CONFIG"; then
20407    if test -n "$PKG_CONFIG" && \
20408    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
20409  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
20410  ac_status=$?
20411  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20412  test $ac_status = 0; }; then
20413  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
20414		      test "x$?" != "x0" && pkg_failed=yes
20415else
20416  pkg_failed=yes
20417fi
20418 else
20419    pkg_failed=untried
20420fi
20421
20422
20423
20424if test $pkg_failed = yes; then
20425   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20426$as_echo "no" >&6; }
20427
20428if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20429        _pkg_short_errors_supported=yes
20430else
20431        _pkg_short_errors_supported=no
20432fi
20433        if test $_pkg_short_errors_supported = yes; then
20434	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
20435        else
20436	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
20437        fi
20438	# Put the nasty error message in config.log where it belongs
20439	echo "$lua_PKG_ERRORS" >&5
20440
20441
20442pkg_failed=no
20443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
20444$as_echo_n "checking for lua... " >&6; }
20445
20446if test -n "$lua_CFLAGS"; then
20447    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
20448 elif test -n "$PKG_CONFIG"; then
20449    if test -n "$PKG_CONFIG" && \
20450    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
20451  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
20452  ac_status=$?
20453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20454  test $ac_status = 0; }; then
20455  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
20456		      test "x$?" != "x0" && pkg_failed=yes
20457else
20458  pkg_failed=yes
20459fi
20460 else
20461    pkg_failed=untried
20462fi
20463if test -n "$lua_LIBS"; then
20464    pkg_cv_lua_LIBS="$lua_LIBS"
20465 elif test -n "$PKG_CONFIG"; then
20466    if test -n "$PKG_CONFIG" && \
20467    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
20468  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
20469  ac_status=$?
20470  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20471  test $ac_status = 0; }; then
20472  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
20473		      test "x$?" != "x0" && pkg_failed=yes
20474else
20475  pkg_failed=yes
20476fi
20477 else
20478    pkg_failed=untried
20479fi
20480
20481
20482
20483if test $pkg_failed = yes; then
20484   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20485$as_echo "no" >&6; }
20486
20487if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20488        _pkg_short_errors_supported=yes
20489else
20490        _pkg_short_errors_supported=no
20491fi
20492        if test $_pkg_short_errors_supported = yes; then
20493	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
20494        else
20495	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
20496        fi
20497	# Put the nasty error message in config.log where it belongs
20498	echo "$lua_PKG_ERRORS" >&5
20499
20500
20501pkg_failed=no
20502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
20503$as_echo_n "checking for lua... " >&6; }
20504
20505if test -n "$lua_CFLAGS"; then
20506    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
20507 elif test -n "$PKG_CONFIG"; then
20508    if test -n "$PKG_CONFIG" && \
20509    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
20510  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
20511  ac_status=$?
20512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20513  test $ac_status = 0; }; then
20514  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
20515		      test "x$?" != "x0" && pkg_failed=yes
20516else
20517  pkg_failed=yes
20518fi
20519 else
20520    pkg_failed=untried
20521fi
20522if test -n "$lua_LIBS"; then
20523    pkg_cv_lua_LIBS="$lua_LIBS"
20524 elif test -n "$PKG_CONFIG"; then
20525    if test -n "$PKG_CONFIG" && \
20526    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
20527  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
20528  ac_status=$?
20529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20530  test $ac_status = 0; }; then
20531  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
20532		      test "x$?" != "x0" && pkg_failed=yes
20533else
20534  pkg_failed=yes
20535fi
20536 else
20537    pkg_failed=untried
20538fi
20539
20540
20541
20542if test $pkg_failed = yes; then
20543   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20544$as_echo "no" >&6; }
20545
20546if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20547        _pkg_short_errors_supported=yes
20548else
20549        _pkg_short_errors_supported=no
20550fi
20551        if test $_pkg_short_errors_supported = yes; then
20552	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
20553        else
20554	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
20555        fi
20556	# Put the nasty error message in config.log where it belongs
20557	echo "$lua_PKG_ERRORS" >&5
20558
20559	if test "x$with_lua" = xyes; then :
20560  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
20561fi
20562elif test $pkg_failed = untried; then
20563     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20564$as_echo "no" >&6; }
20565	if test "x$with_lua" = xyes; then :
20566  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
20567fi
20568else
20569	lua_CFLAGS=$pkg_cv_lua_CFLAGS
20570	lua_LIBS=$pkg_cv_lua_LIBS
20571        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20572$as_echo "yes" >&6; }
20573
20574    if test "x$with_lua" = xdetect; then :
20575  with_lua='yes (found)'
20576fi
20577
20578
20579fi
20580elif test $pkg_failed = untried; then
20581     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20582$as_echo "no" >&6; }
20583
20584pkg_failed=no
20585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
20586$as_echo_n "checking for lua... " >&6; }
20587
20588if test -n "$lua_CFLAGS"; then
20589    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
20590 elif test -n "$PKG_CONFIG"; then
20591    if test -n "$PKG_CONFIG" && \
20592    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
20593  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
20594  ac_status=$?
20595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20596  test $ac_status = 0; }; then
20597  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
20598		      test "x$?" != "x0" && pkg_failed=yes
20599else
20600  pkg_failed=yes
20601fi
20602 else
20603    pkg_failed=untried
20604fi
20605if test -n "$lua_LIBS"; then
20606    pkg_cv_lua_LIBS="$lua_LIBS"
20607 elif test -n "$PKG_CONFIG"; then
20608    if test -n "$PKG_CONFIG" && \
20609    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
20610  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
20611  ac_status=$?
20612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20613  test $ac_status = 0; }; then
20614  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
20615		      test "x$?" != "x0" && pkg_failed=yes
20616else
20617  pkg_failed=yes
20618fi
20619 else
20620    pkg_failed=untried
20621fi
20622
20623
20624
20625if test $pkg_failed = yes; then
20626   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20627$as_echo "no" >&6; }
20628
20629if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20630        _pkg_short_errors_supported=yes
20631else
20632        _pkg_short_errors_supported=no
20633fi
20634        if test $_pkg_short_errors_supported = yes; then
20635	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
20636        else
20637	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
20638        fi
20639	# Put the nasty error message in config.log where it belongs
20640	echo "$lua_PKG_ERRORS" >&5
20641
20642	if test "x$with_lua" = xyes; then :
20643  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
20644fi
20645elif test $pkg_failed = untried; then
20646     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20647$as_echo "no" >&6; }
20648	if test "x$with_lua" = xyes; then :
20649  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
20650fi
20651else
20652	lua_CFLAGS=$pkg_cv_lua_CFLAGS
20653	lua_LIBS=$pkg_cv_lua_LIBS
20654        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20655$as_echo "yes" >&6; }
20656
20657    if test "x$with_lua" = xdetect; then :
20658  with_lua='yes (found)'
20659fi
20660
20661
20662fi
20663else
20664	lua_CFLAGS=$pkg_cv_lua_CFLAGS
20665	lua_LIBS=$pkg_cv_lua_LIBS
20666        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20667$as_echo "yes" >&6; }
20668
20669    if test "x$with_lua" = xdetect; then :
20670  with_lua='yes (found)'
20671fi
20672
20673
20674fi
20675elif test $pkg_failed = untried; then
20676     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20677$as_echo "no" >&6; }
20678
20679pkg_failed=no
20680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
20681$as_echo_n "checking for lua... " >&6; }
20682
20683if test -n "$lua_CFLAGS"; then
20684    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
20685 elif test -n "$PKG_CONFIG"; then
20686    if test -n "$PKG_CONFIG" && \
20687    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
20688  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
20689  ac_status=$?
20690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20691  test $ac_status = 0; }; then
20692  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
20693		      test "x$?" != "x0" && pkg_failed=yes
20694else
20695  pkg_failed=yes
20696fi
20697 else
20698    pkg_failed=untried
20699fi
20700if test -n "$lua_LIBS"; then
20701    pkg_cv_lua_LIBS="$lua_LIBS"
20702 elif test -n "$PKG_CONFIG"; then
20703    if test -n "$PKG_CONFIG" && \
20704    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
20705  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
20706  ac_status=$?
20707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20708  test $ac_status = 0; }; then
20709  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
20710		      test "x$?" != "x0" && pkg_failed=yes
20711else
20712  pkg_failed=yes
20713fi
20714 else
20715    pkg_failed=untried
20716fi
20717
20718
20719
20720if test $pkg_failed = yes; then
20721   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20722$as_echo "no" >&6; }
20723
20724if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20725        _pkg_short_errors_supported=yes
20726else
20727        _pkg_short_errors_supported=no
20728fi
20729        if test $_pkg_short_errors_supported = yes; then
20730	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
20731        else
20732	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
20733        fi
20734	# Put the nasty error message in config.log where it belongs
20735	echo "$lua_PKG_ERRORS" >&5
20736
20737
20738pkg_failed=no
20739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
20740$as_echo_n "checking for lua... " >&6; }
20741
20742if test -n "$lua_CFLAGS"; then
20743    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
20744 elif test -n "$PKG_CONFIG"; then
20745    if test -n "$PKG_CONFIG" && \
20746    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
20747  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
20748  ac_status=$?
20749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20750  test $ac_status = 0; }; then
20751  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
20752		      test "x$?" != "x0" && pkg_failed=yes
20753else
20754  pkg_failed=yes
20755fi
20756 else
20757    pkg_failed=untried
20758fi
20759if test -n "$lua_LIBS"; then
20760    pkg_cv_lua_LIBS="$lua_LIBS"
20761 elif test -n "$PKG_CONFIG"; then
20762    if test -n "$PKG_CONFIG" && \
20763    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
20764  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
20765  ac_status=$?
20766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20767  test $ac_status = 0; }; then
20768  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
20769		      test "x$?" != "x0" && pkg_failed=yes
20770else
20771  pkg_failed=yes
20772fi
20773 else
20774    pkg_failed=untried
20775fi
20776
20777
20778
20779if test $pkg_failed = yes; then
20780   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20781$as_echo "no" >&6; }
20782
20783if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20784        _pkg_short_errors_supported=yes
20785else
20786        _pkg_short_errors_supported=no
20787fi
20788        if test $_pkg_short_errors_supported = yes; then
20789	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
20790        else
20791	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
20792        fi
20793	# Put the nasty error message in config.log where it belongs
20794	echo "$lua_PKG_ERRORS" >&5
20795
20796	if test "x$with_lua" = xyes; then :
20797  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
20798fi
20799elif test $pkg_failed = untried; then
20800     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20801$as_echo "no" >&6; }
20802	if test "x$with_lua" = xyes; then :
20803  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
20804fi
20805else
20806	lua_CFLAGS=$pkg_cv_lua_CFLAGS
20807	lua_LIBS=$pkg_cv_lua_LIBS
20808        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20809$as_echo "yes" >&6; }
20810
20811    if test "x$with_lua" = xdetect; then :
20812  with_lua='yes (found)'
20813fi
20814
20815
20816fi
20817elif test $pkg_failed = untried; then
20818     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20819$as_echo "no" >&6; }
20820
20821pkg_failed=no
20822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
20823$as_echo_n "checking for lua... " >&6; }
20824
20825if test -n "$lua_CFLAGS"; then
20826    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
20827 elif test -n "$PKG_CONFIG"; then
20828    if test -n "$PKG_CONFIG" && \
20829    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
20830  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
20831  ac_status=$?
20832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20833  test $ac_status = 0; }; then
20834  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
20835		      test "x$?" != "x0" && pkg_failed=yes
20836else
20837  pkg_failed=yes
20838fi
20839 else
20840    pkg_failed=untried
20841fi
20842if test -n "$lua_LIBS"; then
20843    pkg_cv_lua_LIBS="$lua_LIBS"
20844 elif test -n "$PKG_CONFIG"; then
20845    if test -n "$PKG_CONFIG" && \
20846    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
20847  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
20848  ac_status=$?
20849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20850  test $ac_status = 0; }; then
20851  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
20852		      test "x$?" != "x0" && pkg_failed=yes
20853else
20854  pkg_failed=yes
20855fi
20856 else
20857    pkg_failed=untried
20858fi
20859
20860
20861
20862if test $pkg_failed = yes; then
20863   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20864$as_echo "no" >&6; }
20865
20866if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20867        _pkg_short_errors_supported=yes
20868else
20869        _pkg_short_errors_supported=no
20870fi
20871        if test $_pkg_short_errors_supported = yes; then
20872	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
20873        else
20874	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
20875        fi
20876	# Put the nasty error message in config.log where it belongs
20877	echo "$lua_PKG_ERRORS" >&5
20878
20879	if test "x$with_lua" = xyes; then :
20880  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
20881fi
20882elif test $pkg_failed = untried; then
20883     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20884$as_echo "no" >&6; }
20885	if test "x$with_lua" = xyes; then :
20886  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
20887fi
20888else
20889	lua_CFLAGS=$pkg_cv_lua_CFLAGS
20890	lua_LIBS=$pkg_cv_lua_LIBS
20891        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20892$as_echo "yes" >&6; }
20893
20894    if test "x$with_lua" = xdetect; then :
20895  with_lua='yes (found)'
20896fi
20897
20898
20899fi
20900else
20901	lua_CFLAGS=$pkg_cv_lua_CFLAGS
20902	lua_LIBS=$pkg_cv_lua_LIBS
20903        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20904$as_echo "yes" >&6; }
20905
20906    if test "x$with_lua" = xdetect; then :
20907  with_lua='yes (found)'
20908fi
20909
20910
20911fi
20912else
20913	lua_CFLAGS=$pkg_cv_lua_CFLAGS
20914	lua_LIBS=$pkg_cv_lua_LIBS
20915        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20916$as_echo "yes" >&6; }
20917
20918    if test "x$with_lua" = xdetect; then :
20919  with_lua='yes (found)'
20920fi
20921
20922
20923fi
20924else
20925	lua_CFLAGS=$pkg_cv_lua_CFLAGS
20926	lua_LIBS=$pkg_cv_lua_LIBS
20927        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20928$as_echo "yes" >&6; }
20929
20930    if test "x$with_lua" = xdetect; then :
20931  with_lua='yes (found)'
20932fi
20933
20934
20935fi
20936else
20937	lua_CFLAGS=$pkg_cv_lua_CFLAGS
20938	lua_LIBS=$pkg_cv_lua_LIBS
20939        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20940$as_echo "yes" >&6; }
20941
20942    if test "x$with_lua" = xdetect; then :
20943  with_lua='yes (found)'
20944fi
20945
20946
20947fi
20948else
20949	lua_CFLAGS=$pkg_cv_lua_CFLAGS
20950	lua_LIBS=$pkg_cv_lua_LIBS
20951        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20952$as_echo "yes" >&6; }
20953
20954    if test "x$with_lua" = xdetect; then :
20955  with_lua='yes (found)'
20956fi
20957
20958
20959fi
20960else
20961	lua_CFLAGS=$pkg_cv_lua_CFLAGS
20962	lua_LIBS=$pkg_cv_lua_LIBS
20963        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20964$as_echo "yes" >&6; }
20965
20966    if test "x$with_lua" = xdetect; then :
20967  with_lua='yes (found)'
20968fi
20969
20970
20971fi
20972elif test $pkg_failed = untried; then
20973     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20974$as_echo "no" >&6; }
20975
20976pkg_failed=no
20977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
20978$as_echo_n "checking for lua... " >&6; }
20979
20980if test -n "$lua_CFLAGS"; then
20981    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
20982 elif test -n "$PKG_CONFIG"; then
20983    if test -n "$PKG_CONFIG" && \
20984    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
20985  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
20986  ac_status=$?
20987  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20988  test $ac_status = 0; }; then
20989  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.2" 2>/dev/null`
20990		      test "x$?" != "x0" && pkg_failed=yes
20991else
20992  pkg_failed=yes
20993fi
20994 else
20995    pkg_failed=untried
20996fi
20997if test -n "$lua_LIBS"; then
20998    pkg_cv_lua_LIBS="$lua_LIBS"
20999 elif test -n "$PKG_CONFIG"; then
21000    if test -n "$PKG_CONFIG" && \
21001    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
21002  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
21003  ac_status=$?
21004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21005  test $ac_status = 0; }; then
21006  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua-5.2" 2>/dev/null`
21007		      test "x$?" != "x0" && pkg_failed=yes
21008else
21009  pkg_failed=yes
21010fi
21011 else
21012    pkg_failed=untried
21013fi
21014
21015
21016
21017if test $pkg_failed = yes; then
21018   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21019$as_echo "no" >&6; }
21020
21021if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21022        _pkg_short_errors_supported=yes
21023else
21024        _pkg_short_errors_supported=no
21025fi
21026        if test $_pkg_short_errors_supported = yes; then
21027	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.2" 2>&1`
21028        else
21029	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.2" 2>&1`
21030        fi
21031	# Put the nasty error message in config.log where it belongs
21032	echo "$lua_PKG_ERRORS" >&5
21033
21034
21035pkg_failed=no
21036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
21037$as_echo_n "checking for lua... " >&6; }
21038
21039if test -n "$lua_CFLAGS"; then
21040    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
21041 elif test -n "$PKG_CONFIG"; then
21042    if test -n "$PKG_CONFIG" && \
21043    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
21044  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
21045  ac_status=$?
21046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21047  test $ac_status = 0; }; then
21048  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
21049		      test "x$?" != "x0" && pkg_failed=yes
21050else
21051  pkg_failed=yes
21052fi
21053 else
21054    pkg_failed=untried
21055fi
21056if test -n "$lua_LIBS"; then
21057    pkg_cv_lua_LIBS="$lua_LIBS"
21058 elif test -n "$PKG_CONFIG"; then
21059    if test -n "$PKG_CONFIG" && \
21060    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
21061  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
21062  ac_status=$?
21063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21064  test $ac_status = 0; }; then
21065  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
21066		      test "x$?" != "x0" && pkg_failed=yes
21067else
21068  pkg_failed=yes
21069fi
21070 else
21071    pkg_failed=untried
21072fi
21073
21074
21075
21076if test $pkg_failed = yes; then
21077   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21078$as_echo "no" >&6; }
21079
21080if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21081        _pkg_short_errors_supported=yes
21082else
21083        _pkg_short_errors_supported=no
21084fi
21085        if test $_pkg_short_errors_supported = yes; then
21086	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
21087        else
21088	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
21089        fi
21090	# Put the nasty error message in config.log where it belongs
21091	echo "$lua_PKG_ERRORS" >&5
21092
21093
21094pkg_failed=no
21095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
21096$as_echo_n "checking for lua... " >&6; }
21097
21098if test -n "$lua_CFLAGS"; then
21099    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
21100 elif test -n "$PKG_CONFIG"; then
21101    if test -n "$PKG_CONFIG" && \
21102    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
21103  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
21104  ac_status=$?
21105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21106  test $ac_status = 0; }; then
21107  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
21108		      test "x$?" != "x0" && pkg_failed=yes
21109else
21110  pkg_failed=yes
21111fi
21112 else
21113    pkg_failed=untried
21114fi
21115if test -n "$lua_LIBS"; then
21116    pkg_cv_lua_LIBS="$lua_LIBS"
21117 elif test -n "$PKG_CONFIG"; then
21118    if test -n "$PKG_CONFIG" && \
21119    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
21120  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
21121  ac_status=$?
21122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21123  test $ac_status = 0; }; then
21124  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
21125		      test "x$?" != "x0" && pkg_failed=yes
21126else
21127  pkg_failed=yes
21128fi
21129 else
21130    pkg_failed=untried
21131fi
21132
21133
21134
21135if test $pkg_failed = yes; then
21136   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21137$as_echo "no" >&6; }
21138
21139if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21140        _pkg_short_errors_supported=yes
21141else
21142        _pkg_short_errors_supported=no
21143fi
21144        if test $_pkg_short_errors_supported = yes; then
21145	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
21146        else
21147	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
21148        fi
21149	# Put the nasty error message in config.log where it belongs
21150	echo "$lua_PKG_ERRORS" >&5
21151
21152
21153pkg_failed=no
21154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
21155$as_echo_n "checking for lua... " >&6; }
21156
21157if test -n "$lua_CFLAGS"; then
21158    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
21159 elif test -n "$PKG_CONFIG"; then
21160    if test -n "$PKG_CONFIG" && \
21161    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
21162  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
21163  ac_status=$?
21164  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21165  test $ac_status = 0; }; then
21166  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
21167		      test "x$?" != "x0" && pkg_failed=yes
21168else
21169  pkg_failed=yes
21170fi
21171 else
21172    pkg_failed=untried
21173fi
21174if test -n "$lua_LIBS"; then
21175    pkg_cv_lua_LIBS="$lua_LIBS"
21176 elif test -n "$PKG_CONFIG"; then
21177    if test -n "$PKG_CONFIG" && \
21178    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
21179  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
21180  ac_status=$?
21181  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21182  test $ac_status = 0; }; then
21183  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
21184		      test "x$?" != "x0" && pkg_failed=yes
21185else
21186  pkg_failed=yes
21187fi
21188 else
21189    pkg_failed=untried
21190fi
21191
21192
21193
21194if test $pkg_failed = yes; then
21195   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21196$as_echo "no" >&6; }
21197
21198if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21199        _pkg_short_errors_supported=yes
21200else
21201        _pkg_short_errors_supported=no
21202fi
21203        if test $_pkg_short_errors_supported = yes; then
21204	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
21205        else
21206	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
21207        fi
21208	# Put the nasty error message in config.log where it belongs
21209	echo "$lua_PKG_ERRORS" >&5
21210
21211
21212pkg_failed=no
21213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
21214$as_echo_n "checking for lua... " >&6; }
21215
21216if test -n "$lua_CFLAGS"; then
21217    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
21218 elif test -n "$PKG_CONFIG"; then
21219    if test -n "$PKG_CONFIG" && \
21220    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
21221  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
21222  ac_status=$?
21223  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21224  test $ac_status = 0; }; then
21225  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
21226		      test "x$?" != "x0" && pkg_failed=yes
21227else
21228  pkg_failed=yes
21229fi
21230 else
21231    pkg_failed=untried
21232fi
21233if test -n "$lua_LIBS"; then
21234    pkg_cv_lua_LIBS="$lua_LIBS"
21235 elif test -n "$PKG_CONFIG"; then
21236    if test -n "$PKG_CONFIG" && \
21237    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
21238  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
21239  ac_status=$?
21240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21241  test $ac_status = 0; }; then
21242  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
21243		      test "x$?" != "x0" && pkg_failed=yes
21244else
21245  pkg_failed=yes
21246fi
21247 else
21248    pkg_failed=untried
21249fi
21250
21251
21252
21253if test $pkg_failed = yes; then
21254   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21255$as_echo "no" >&6; }
21256
21257if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21258        _pkg_short_errors_supported=yes
21259else
21260        _pkg_short_errors_supported=no
21261fi
21262        if test $_pkg_short_errors_supported = yes; then
21263	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
21264        else
21265	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
21266        fi
21267	# Put the nasty error message in config.log where it belongs
21268	echo "$lua_PKG_ERRORS" >&5
21269
21270
21271pkg_failed=no
21272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
21273$as_echo_n "checking for lua... " >&6; }
21274
21275if test -n "$lua_CFLAGS"; then
21276    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
21277 elif test -n "$PKG_CONFIG"; then
21278    if test -n "$PKG_CONFIG" && \
21279    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
21280  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
21281  ac_status=$?
21282  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21283  test $ac_status = 0; }; then
21284  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
21285		      test "x$?" != "x0" && pkg_failed=yes
21286else
21287  pkg_failed=yes
21288fi
21289 else
21290    pkg_failed=untried
21291fi
21292if test -n "$lua_LIBS"; then
21293    pkg_cv_lua_LIBS="$lua_LIBS"
21294 elif test -n "$PKG_CONFIG"; then
21295    if test -n "$PKG_CONFIG" && \
21296    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
21297  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
21298  ac_status=$?
21299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21300  test $ac_status = 0; }; then
21301  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
21302		      test "x$?" != "x0" && pkg_failed=yes
21303else
21304  pkg_failed=yes
21305fi
21306 else
21307    pkg_failed=untried
21308fi
21309
21310
21311
21312if test $pkg_failed = yes; then
21313   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21314$as_echo "no" >&6; }
21315
21316if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21317        _pkg_short_errors_supported=yes
21318else
21319        _pkg_short_errors_supported=no
21320fi
21321        if test $_pkg_short_errors_supported = yes; then
21322	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
21323        else
21324	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
21325        fi
21326	# Put the nasty error message in config.log where it belongs
21327	echo "$lua_PKG_ERRORS" >&5
21328
21329
21330pkg_failed=no
21331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
21332$as_echo_n "checking for lua... " >&6; }
21333
21334if test -n "$lua_CFLAGS"; then
21335    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
21336 elif test -n "$PKG_CONFIG"; then
21337    if test -n "$PKG_CONFIG" && \
21338    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
21339  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
21340  ac_status=$?
21341  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21342  test $ac_status = 0; }; then
21343  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
21344		      test "x$?" != "x0" && pkg_failed=yes
21345else
21346  pkg_failed=yes
21347fi
21348 else
21349    pkg_failed=untried
21350fi
21351if test -n "$lua_LIBS"; then
21352    pkg_cv_lua_LIBS="$lua_LIBS"
21353 elif test -n "$PKG_CONFIG"; then
21354    if test -n "$PKG_CONFIG" && \
21355    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
21356  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
21357  ac_status=$?
21358  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21359  test $ac_status = 0; }; then
21360  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
21361		      test "x$?" != "x0" && pkg_failed=yes
21362else
21363  pkg_failed=yes
21364fi
21365 else
21366    pkg_failed=untried
21367fi
21368
21369
21370
21371if test $pkg_failed = yes; then
21372   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21373$as_echo "no" >&6; }
21374
21375if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21376        _pkg_short_errors_supported=yes
21377else
21378        _pkg_short_errors_supported=no
21379fi
21380        if test $_pkg_short_errors_supported = yes; then
21381	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
21382        else
21383	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
21384        fi
21385	# Put the nasty error message in config.log where it belongs
21386	echo "$lua_PKG_ERRORS" >&5
21387
21388	if test "x$with_lua" = xyes; then :
21389  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
21390fi
21391elif test $pkg_failed = untried; then
21392     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21393$as_echo "no" >&6; }
21394	if test "x$with_lua" = xyes; then :
21395  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
21396fi
21397else
21398	lua_CFLAGS=$pkg_cv_lua_CFLAGS
21399	lua_LIBS=$pkg_cv_lua_LIBS
21400        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21401$as_echo "yes" >&6; }
21402
21403    if test "x$with_lua" = xdetect; then :
21404  with_lua='yes (found)'
21405fi
21406
21407
21408fi
21409elif test $pkg_failed = untried; then
21410     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21411$as_echo "no" >&6; }
21412
21413pkg_failed=no
21414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
21415$as_echo_n "checking for lua... " >&6; }
21416
21417if test -n "$lua_CFLAGS"; then
21418    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
21419 elif test -n "$PKG_CONFIG"; then
21420    if test -n "$PKG_CONFIG" && \
21421    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
21422  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
21423  ac_status=$?
21424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21425  test $ac_status = 0; }; then
21426  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
21427		      test "x$?" != "x0" && pkg_failed=yes
21428else
21429  pkg_failed=yes
21430fi
21431 else
21432    pkg_failed=untried
21433fi
21434if test -n "$lua_LIBS"; then
21435    pkg_cv_lua_LIBS="$lua_LIBS"
21436 elif test -n "$PKG_CONFIG"; then
21437    if test -n "$PKG_CONFIG" && \
21438    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
21439  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
21440  ac_status=$?
21441  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21442  test $ac_status = 0; }; then
21443  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
21444		      test "x$?" != "x0" && pkg_failed=yes
21445else
21446  pkg_failed=yes
21447fi
21448 else
21449    pkg_failed=untried
21450fi
21451
21452
21453
21454if test $pkg_failed = yes; then
21455   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21456$as_echo "no" >&6; }
21457
21458if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21459        _pkg_short_errors_supported=yes
21460else
21461        _pkg_short_errors_supported=no
21462fi
21463        if test $_pkg_short_errors_supported = yes; then
21464	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
21465        else
21466	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
21467        fi
21468	# Put the nasty error message in config.log where it belongs
21469	echo "$lua_PKG_ERRORS" >&5
21470
21471	if test "x$with_lua" = xyes; then :
21472  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
21473fi
21474elif test $pkg_failed = untried; then
21475     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21476$as_echo "no" >&6; }
21477	if test "x$with_lua" = xyes; then :
21478  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
21479fi
21480else
21481	lua_CFLAGS=$pkg_cv_lua_CFLAGS
21482	lua_LIBS=$pkg_cv_lua_LIBS
21483        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21484$as_echo "yes" >&6; }
21485
21486    if test "x$with_lua" = xdetect; then :
21487  with_lua='yes (found)'
21488fi
21489
21490
21491fi
21492else
21493	lua_CFLAGS=$pkg_cv_lua_CFLAGS
21494	lua_LIBS=$pkg_cv_lua_LIBS
21495        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21496$as_echo "yes" >&6; }
21497
21498    if test "x$with_lua" = xdetect; then :
21499  with_lua='yes (found)'
21500fi
21501
21502
21503fi
21504elif test $pkg_failed = untried; then
21505     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21506$as_echo "no" >&6; }
21507
21508pkg_failed=no
21509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
21510$as_echo_n "checking for lua... " >&6; }
21511
21512if test -n "$lua_CFLAGS"; then
21513    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
21514 elif test -n "$PKG_CONFIG"; then
21515    if test -n "$PKG_CONFIG" && \
21516    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
21517  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
21518  ac_status=$?
21519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21520  test $ac_status = 0; }; then
21521  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
21522		      test "x$?" != "x0" && pkg_failed=yes
21523else
21524  pkg_failed=yes
21525fi
21526 else
21527    pkg_failed=untried
21528fi
21529if test -n "$lua_LIBS"; then
21530    pkg_cv_lua_LIBS="$lua_LIBS"
21531 elif test -n "$PKG_CONFIG"; then
21532    if test -n "$PKG_CONFIG" && \
21533    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
21534  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
21535  ac_status=$?
21536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21537  test $ac_status = 0; }; then
21538  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
21539		      test "x$?" != "x0" && pkg_failed=yes
21540else
21541  pkg_failed=yes
21542fi
21543 else
21544    pkg_failed=untried
21545fi
21546
21547
21548
21549if test $pkg_failed = yes; then
21550   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21551$as_echo "no" >&6; }
21552
21553if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21554        _pkg_short_errors_supported=yes
21555else
21556        _pkg_short_errors_supported=no
21557fi
21558        if test $_pkg_short_errors_supported = yes; then
21559	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
21560        else
21561	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
21562        fi
21563	# Put the nasty error message in config.log where it belongs
21564	echo "$lua_PKG_ERRORS" >&5
21565
21566
21567pkg_failed=no
21568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
21569$as_echo_n "checking for lua... " >&6; }
21570
21571if test -n "$lua_CFLAGS"; then
21572    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
21573 elif test -n "$PKG_CONFIG"; then
21574    if test -n "$PKG_CONFIG" && \
21575    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
21576  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
21577  ac_status=$?
21578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21579  test $ac_status = 0; }; then
21580  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
21581		      test "x$?" != "x0" && pkg_failed=yes
21582else
21583  pkg_failed=yes
21584fi
21585 else
21586    pkg_failed=untried
21587fi
21588if test -n "$lua_LIBS"; then
21589    pkg_cv_lua_LIBS="$lua_LIBS"
21590 elif test -n "$PKG_CONFIG"; then
21591    if test -n "$PKG_CONFIG" && \
21592    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
21593  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
21594  ac_status=$?
21595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21596  test $ac_status = 0; }; then
21597  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
21598		      test "x$?" != "x0" && pkg_failed=yes
21599else
21600  pkg_failed=yes
21601fi
21602 else
21603    pkg_failed=untried
21604fi
21605
21606
21607
21608if test $pkg_failed = yes; then
21609   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21610$as_echo "no" >&6; }
21611
21612if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21613        _pkg_short_errors_supported=yes
21614else
21615        _pkg_short_errors_supported=no
21616fi
21617        if test $_pkg_short_errors_supported = yes; then
21618	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
21619        else
21620	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
21621        fi
21622	# Put the nasty error message in config.log where it belongs
21623	echo "$lua_PKG_ERRORS" >&5
21624
21625	if test "x$with_lua" = xyes; then :
21626  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
21627fi
21628elif test $pkg_failed = untried; then
21629     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21630$as_echo "no" >&6; }
21631	if test "x$with_lua" = xyes; then :
21632  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
21633fi
21634else
21635	lua_CFLAGS=$pkg_cv_lua_CFLAGS
21636	lua_LIBS=$pkg_cv_lua_LIBS
21637        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21638$as_echo "yes" >&6; }
21639
21640    if test "x$with_lua" = xdetect; then :
21641  with_lua='yes (found)'
21642fi
21643
21644
21645fi
21646elif test $pkg_failed = untried; then
21647     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21648$as_echo "no" >&6; }
21649
21650pkg_failed=no
21651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
21652$as_echo_n "checking for lua... " >&6; }
21653
21654if test -n "$lua_CFLAGS"; then
21655    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
21656 elif test -n "$PKG_CONFIG"; then
21657    if test -n "$PKG_CONFIG" && \
21658    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
21659  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
21660  ac_status=$?
21661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21662  test $ac_status = 0; }; then
21663  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
21664		      test "x$?" != "x0" && pkg_failed=yes
21665else
21666  pkg_failed=yes
21667fi
21668 else
21669    pkg_failed=untried
21670fi
21671if test -n "$lua_LIBS"; then
21672    pkg_cv_lua_LIBS="$lua_LIBS"
21673 elif test -n "$PKG_CONFIG"; then
21674    if test -n "$PKG_CONFIG" && \
21675    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
21676  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
21677  ac_status=$?
21678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21679  test $ac_status = 0; }; then
21680  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
21681		      test "x$?" != "x0" && pkg_failed=yes
21682else
21683  pkg_failed=yes
21684fi
21685 else
21686    pkg_failed=untried
21687fi
21688
21689
21690
21691if test $pkg_failed = yes; then
21692   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21693$as_echo "no" >&6; }
21694
21695if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21696        _pkg_short_errors_supported=yes
21697else
21698        _pkg_short_errors_supported=no
21699fi
21700        if test $_pkg_short_errors_supported = yes; then
21701	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
21702        else
21703	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
21704        fi
21705	# Put the nasty error message in config.log where it belongs
21706	echo "$lua_PKG_ERRORS" >&5
21707
21708	if test "x$with_lua" = xyes; then :
21709  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
21710fi
21711elif test $pkg_failed = untried; then
21712     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21713$as_echo "no" >&6; }
21714	if test "x$with_lua" = xyes; then :
21715  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
21716fi
21717else
21718	lua_CFLAGS=$pkg_cv_lua_CFLAGS
21719	lua_LIBS=$pkg_cv_lua_LIBS
21720        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21721$as_echo "yes" >&6; }
21722
21723    if test "x$with_lua" = xdetect; then :
21724  with_lua='yes (found)'
21725fi
21726
21727
21728fi
21729else
21730	lua_CFLAGS=$pkg_cv_lua_CFLAGS
21731	lua_LIBS=$pkg_cv_lua_LIBS
21732        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21733$as_echo "yes" >&6; }
21734
21735    if test "x$with_lua" = xdetect; then :
21736  with_lua='yes (found)'
21737fi
21738
21739
21740fi
21741else
21742	lua_CFLAGS=$pkg_cv_lua_CFLAGS
21743	lua_LIBS=$pkg_cv_lua_LIBS
21744        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21745$as_echo "yes" >&6; }
21746
21747    if test "x$with_lua" = xdetect; then :
21748  with_lua='yes (found)'
21749fi
21750
21751
21752fi
21753elif test $pkg_failed = untried; then
21754     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21755$as_echo "no" >&6; }
21756
21757pkg_failed=no
21758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
21759$as_echo_n "checking for lua... " >&6; }
21760
21761if test -n "$lua_CFLAGS"; then
21762    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
21763 elif test -n "$PKG_CONFIG"; then
21764    if test -n "$PKG_CONFIG" && \
21765    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
21766  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
21767  ac_status=$?
21768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21769  test $ac_status = 0; }; then
21770  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
21771		      test "x$?" != "x0" && pkg_failed=yes
21772else
21773  pkg_failed=yes
21774fi
21775 else
21776    pkg_failed=untried
21777fi
21778if test -n "$lua_LIBS"; then
21779    pkg_cv_lua_LIBS="$lua_LIBS"
21780 elif test -n "$PKG_CONFIG"; then
21781    if test -n "$PKG_CONFIG" && \
21782    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
21783  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
21784  ac_status=$?
21785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21786  test $ac_status = 0; }; then
21787  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
21788		      test "x$?" != "x0" && pkg_failed=yes
21789else
21790  pkg_failed=yes
21791fi
21792 else
21793    pkg_failed=untried
21794fi
21795
21796
21797
21798if test $pkg_failed = yes; then
21799   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21800$as_echo "no" >&6; }
21801
21802if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21803        _pkg_short_errors_supported=yes
21804else
21805        _pkg_short_errors_supported=no
21806fi
21807        if test $_pkg_short_errors_supported = yes; then
21808	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
21809        else
21810	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
21811        fi
21812	# Put the nasty error message in config.log where it belongs
21813	echo "$lua_PKG_ERRORS" >&5
21814
21815
21816pkg_failed=no
21817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
21818$as_echo_n "checking for lua... " >&6; }
21819
21820if test -n "$lua_CFLAGS"; then
21821    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
21822 elif test -n "$PKG_CONFIG"; then
21823    if test -n "$PKG_CONFIG" && \
21824    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
21825  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
21826  ac_status=$?
21827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21828  test $ac_status = 0; }; then
21829  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
21830		      test "x$?" != "x0" && pkg_failed=yes
21831else
21832  pkg_failed=yes
21833fi
21834 else
21835    pkg_failed=untried
21836fi
21837if test -n "$lua_LIBS"; then
21838    pkg_cv_lua_LIBS="$lua_LIBS"
21839 elif test -n "$PKG_CONFIG"; then
21840    if test -n "$PKG_CONFIG" && \
21841    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
21842  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
21843  ac_status=$?
21844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21845  test $ac_status = 0; }; then
21846  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
21847		      test "x$?" != "x0" && pkg_failed=yes
21848else
21849  pkg_failed=yes
21850fi
21851 else
21852    pkg_failed=untried
21853fi
21854
21855
21856
21857if test $pkg_failed = yes; then
21858   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21859$as_echo "no" >&6; }
21860
21861if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21862        _pkg_short_errors_supported=yes
21863else
21864        _pkg_short_errors_supported=no
21865fi
21866        if test $_pkg_short_errors_supported = yes; then
21867	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
21868        else
21869	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
21870        fi
21871	# Put the nasty error message in config.log where it belongs
21872	echo "$lua_PKG_ERRORS" >&5
21873
21874
21875pkg_failed=no
21876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
21877$as_echo_n "checking for lua... " >&6; }
21878
21879if test -n "$lua_CFLAGS"; then
21880    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
21881 elif test -n "$PKG_CONFIG"; then
21882    if test -n "$PKG_CONFIG" && \
21883    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
21884  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
21885  ac_status=$?
21886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21887  test $ac_status = 0; }; then
21888  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
21889		      test "x$?" != "x0" && pkg_failed=yes
21890else
21891  pkg_failed=yes
21892fi
21893 else
21894    pkg_failed=untried
21895fi
21896if test -n "$lua_LIBS"; then
21897    pkg_cv_lua_LIBS="$lua_LIBS"
21898 elif test -n "$PKG_CONFIG"; then
21899    if test -n "$PKG_CONFIG" && \
21900    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
21901  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
21902  ac_status=$?
21903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21904  test $ac_status = 0; }; then
21905  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
21906		      test "x$?" != "x0" && pkg_failed=yes
21907else
21908  pkg_failed=yes
21909fi
21910 else
21911    pkg_failed=untried
21912fi
21913
21914
21915
21916if test $pkg_failed = yes; then
21917   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21918$as_echo "no" >&6; }
21919
21920if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21921        _pkg_short_errors_supported=yes
21922else
21923        _pkg_short_errors_supported=no
21924fi
21925        if test $_pkg_short_errors_supported = yes; then
21926	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
21927        else
21928	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
21929        fi
21930	# Put the nasty error message in config.log where it belongs
21931	echo "$lua_PKG_ERRORS" >&5
21932
21933	if test "x$with_lua" = xyes; then :
21934  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
21935fi
21936elif test $pkg_failed = untried; then
21937     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21938$as_echo "no" >&6; }
21939	if test "x$with_lua" = xyes; then :
21940  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
21941fi
21942else
21943	lua_CFLAGS=$pkg_cv_lua_CFLAGS
21944	lua_LIBS=$pkg_cv_lua_LIBS
21945        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21946$as_echo "yes" >&6; }
21947
21948    if test "x$with_lua" = xdetect; then :
21949  with_lua='yes (found)'
21950fi
21951
21952
21953fi
21954elif test $pkg_failed = untried; then
21955     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21956$as_echo "no" >&6; }
21957
21958pkg_failed=no
21959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
21960$as_echo_n "checking for lua... " >&6; }
21961
21962if test -n "$lua_CFLAGS"; then
21963    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
21964 elif test -n "$PKG_CONFIG"; then
21965    if test -n "$PKG_CONFIG" && \
21966    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
21967  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
21968  ac_status=$?
21969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21970  test $ac_status = 0; }; then
21971  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
21972		      test "x$?" != "x0" && pkg_failed=yes
21973else
21974  pkg_failed=yes
21975fi
21976 else
21977    pkg_failed=untried
21978fi
21979if test -n "$lua_LIBS"; then
21980    pkg_cv_lua_LIBS="$lua_LIBS"
21981 elif test -n "$PKG_CONFIG"; then
21982    if test -n "$PKG_CONFIG" && \
21983    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
21984  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
21985  ac_status=$?
21986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21987  test $ac_status = 0; }; then
21988  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
21989		      test "x$?" != "x0" && pkg_failed=yes
21990else
21991  pkg_failed=yes
21992fi
21993 else
21994    pkg_failed=untried
21995fi
21996
21997
21998
21999if test $pkg_failed = yes; then
22000   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22001$as_echo "no" >&6; }
22002
22003if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22004        _pkg_short_errors_supported=yes
22005else
22006        _pkg_short_errors_supported=no
22007fi
22008        if test $_pkg_short_errors_supported = yes; then
22009	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
22010        else
22011	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
22012        fi
22013	# Put the nasty error message in config.log where it belongs
22014	echo "$lua_PKG_ERRORS" >&5
22015
22016	if test "x$with_lua" = xyes; then :
22017  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
22018fi
22019elif test $pkg_failed = untried; then
22020     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22021$as_echo "no" >&6; }
22022	if test "x$with_lua" = xyes; then :
22023  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
22024fi
22025else
22026	lua_CFLAGS=$pkg_cv_lua_CFLAGS
22027	lua_LIBS=$pkg_cv_lua_LIBS
22028        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22029$as_echo "yes" >&6; }
22030
22031    if test "x$with_lua" = xdetect; then :
22032  with_lua='yes (found)'
22033fi
22034
22035
22036fi
22037else
22038	lua_CFLAGS=$pkg_cv_lua_CFLAGS
22039	lua_LIBS=$pkg_cv_lua_LIBS
22040        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22041$as_echo "yes" >&6; }
22042
22043    if test "x$with_lua" = xdetect; then :
22044  with_lua='yes (found)'
22045fi
22046
22047
22048fi
22049elif test $pkg_failed = untried; then
22050     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22051$as_echo "no" >&6; }
22052
22053pkg_failed=no
22054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
22055$as_echo_n "checking for lua... " >&6; }
22056
22057if test -n "$lua_CFLAGS"; then
22058    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
22059 elif test -n "$PKG_CONFIG"; then
22060    if test -n "$PKG_CONFIG" && \
22061    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
22062  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
22063  ac_status=$?
22064  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22065  test $ac_status = 0; }; then
22066  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
22067		      test "x$?" != "x0" && pkg_failed=yes
22068else
22069  pkg_failed=yes
22070fi
22071 else
22072    pkg_failed=untried
22073fi
22074if test -n "$lua_LIBS"; then
22075    pkg_cv_lua_LIBS="$lua_LIBS"
22076 elif test -n "$PKG_CONFIG"; then
22077    if test -n "$PKG_CONFIG" && \
22078    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
22079  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
22080  ac_status=$?
22081  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22082  test $ac_status = 0; }; then
22083  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
22084		      test "x$?" != "x0" && pkg_failed=yes
22085else
22086  pkg_failed=yes
22087fi
22088 else
22089    pkg_failed=untried
22090fi
22091
22092
22093
22094if test $pkg_failed = yes; then
22095   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22096$as_echo "no" >&6; }
22097
22098if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22099        _pkg_short_errors_supported=yes
22100else
22101        _pkg_short_errors_supported=no
22102fi
22103        if test $_pkg_short_errors_supported = yes; then
22104	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
22105        else
22106	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
22107        fi
22108	# Put the nasty error message in config.log where it belongs
22109	echo "$lua_PKG_ERRORS" >&5
22110
22111
22112pkg_failed=no
22113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
22114$as_echo_n "checking for lua... " >&6; }
22115
22116if test -n "$lua_CFLAGS"; then
22117    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
22118 elif test -n "$PKG_CONFIG"; then
22119    if test -n "$PKG_CONFIG" && \
22120    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
22121  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
22122  ac_status=$?
22123  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22124  test $ac_status = 0; }; then
22125  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
22126		      test "x$?" != "x0" && pkg_failed=yes
22127else
22128  pkg_failed=yes
22129fi
22130 else
22131    pkg_failed=untried
22132fi
22133if test -n "$lua_LIBS"; then
22134    pkg_cv_lua_LIBS="$lua_LIBS"
22135 elif test -n "$PKG_CONFIG"; then
22136    if test -n "$PKG_CONFIG" && \
22137    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
22138  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
22139  ac_status=$?
22140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22141  test $ac_status = 0; }; then
22142  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
22143		      test "x$?" != "x0" && pkg_failed=yes
22144else
22145  pkg_failed=yes
22146fi
22147 else
22148    pkg_failed=untried
22149fi
22150
22151
22152
22153if test $pkg_failed = yes; then
22154   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22155$as_echo "no" >&6; }
22156
22157if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22158        _pkg_short_errors_supported=yes
22159else
22160        _pkg_short_errors_supported=no
22161fi
22162        if test $_pkg_short_errors_supported = yes; then
22163	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
22164        else
22165	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
22166        fi
22167	# Put the nasty error message in config.log where it belongs
22168	echo "$lua_PKG_ERRORS" >&5
22169
22170	if test "x$with_lua" = xyes; then :
22171  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
22172fi
22173elif test $pkg_failed = untried; then
22174     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22175$as_echo "no" >&6; }
22176	if test "x$with_lua" = xyes; then :
22177  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
22178fi
22179else
22180	lua_CFLAGS=$pkg_cv_lua_CFLAGS
22181	lua_LIBS=$pkg_cv_lua_LIBS
22182        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22183$as_echo "yes" >&6; }
22184
22185    if test "x$with_lua" = xdetect; then :
22186  with_lua='yes (found)'
22187fi
22188
22189
22190fi
22191elif test $pkg_failed = untried; then
22192     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22193$as_echo "no" >&6; }
22194
22195pkg_failed=no
22196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
22197$as_echo_n "checking for lua... " >&6; }
22198
22199if test -n "$lua_CFLAGS"; then
22200    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
22201 elif test -n "$PKG_CONFIG"; then
22202    if test -n "$PKG_CONFIG" && \
22203    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
22204  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
22205  ac_status=$?
22206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22207  test $ac_status = 0; }; then
22208  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
22209		      test "x$?" != "x0" && pkg_failed=yes
22210else
22211  pkg_failed=yes
22212fi
22213 else
22214    pkg_failed=untried
22215fi
22216if test -n "$lua_LIBS"; then
22217    pkg_cv_lua_LIBS="$lua_LIBS"
22218 elif test -n "$PKG_CONFIG"; then
22219    if test -n "$PKG_CONFIG" && \
22220    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
22221  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
22222  ac_status=$?
22223  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22224  test $ac_status = 0; }; then
22225  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
22226		      test "x$?" != "x0" && pkg_failed=yes
22227else
22228  pkg_failed=yes
22229fi
22230 else
22231    pkg_failed=untried
22232fi
22233
22234
22235
22236if test $pkg_failed = yes; then
22237   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22238$as_echo "no" >&6; }
22239
22240if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22241        _pkg_short_errors_supported=yes
22242else
22243        _pkg_short_errors_supported=no
22244fi
22245        if test $_pkg_short_errors_supported = yes; then
22246	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
22247        else
22248	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
22249        fi
22250	# Put the nasty error message in config.log where it belongs
22251	echo "$lua_PKG_ERRORS" >&5
22252
22253	if test "x$with_lua" = xyes; then :
22254  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
22255fi
22256elif test $pkg_failed = untried; then
22257     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22258$as_echo "no" >&6; }
22259	if test "x$with_lua" = xyes; then :
22260  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
22261fi
22262else
22263	lua_CFLAGS=$pkg_cv_lua_CFLAGS
22264	lua_LIBS=$pkg_cv_lua_LIBS
22265        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22266$as_echo "yes" >&6; }
22267
22268    if test "x$with_lua" = xdetect; then :
22269  with_lua='yes (found)'
22270fi
22271
22272
22273fi
22274else
22275	lua_CFLAGS=$pkg_cv_lua_CFLAGS
22276	lua_LIBS=$pkg_cv_lua_LIBS
22277        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22278$as_echo "yes" >&6; }
22279
22280    if test "x$with_lua" = xdetect; then :
22281  with_lua='yes (found)'
22282fi
22283
22284
22285fi
22286else
22287	lua_CFLAGS=$pkg_cv_lua_CFLAGS
22288	lua_LIBS=$pkg_cv_lua_LIBS
22289        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22290$as_echo "yes" >&6; }
22291
22292    if test "x$with_lua" = xdetect; then :
22293  with_lua='yes (found)'
22294fi
22295
22296
22297fi
22298else
22299	lua_CFLAGS=$pkg_cv_lua_CFLAGS
22300	lua_LIBS=$pkg_cv_lua_LIBS
22301        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22302$as_echo "yes" >&6; }
22303
22304    if test "x$with_lua" = xdetect; then :
22305  with_lua='yes (found)'
22306fi
22307
22308
22309fi
22310elif test $pkg_failed = untried; then
22311     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22312$as_echo "no" >&6; }
22313
22314pkg_failed=no
22315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
22316$as_echo_n "checking for lua... " >&6; }
22317
22318if test -n "$lua_CFLAGS"; then
22319    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
22320 elif test -n "$PKG_CONFIG"; then
22321    if test -n "$PKG_CONFIG" && \
22322    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
22323  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
22324  ac_status=$?
22325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22326  test $ac_status = 0; }; then
22327  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
22328		      test "x$?" != "x0" && pkg_failed=yes
22329else
22330  pkg_failed=yes
22331fi
22332 else
22333    pkg_failed=untried
22334fi
22335if test -n "$lua_LIBS"; then
22336    pkg_cv_lua_LIBS="$lua_LIBS"
22337 elif test -n "$PKG_CONFIG"; then
22338    if test -n "$PKG_CONFIG" && \
22339    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
22340  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
22341  ac_status=$?
22342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22343  test $ac_status = 0; }; then
22344  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
22345		      test "x$?" != "x0" && pkg_failed=yes
22346else
22347  pkg_failed=yes
22348fi
22349 else
22350    pkg_failed=untried
22351fi
22352
22353
22354
22355if test $pkg_failed = yes; then
22356   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22357$as_echo "no" >&6; }
22358
22359if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22360        _pkg_short_errors_supported=yes
22361else
22362        _pkg_short_errors_supported=no
22363fi
22364        if test $_pkg_short_errors_supported = yes; then
22365	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
22366        else
22367	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
22368        fi
22369	# Put the nasty error message in config.log where it belongs
22370	echo "$lua_PKG_ERRORS" >&5
22371
22372
22373pkg_failed=no
22374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
22375$as_echo_n "checking for lua... " >&6; }
22376
22377if test -n "$lua_CFLAGS"; then
22378    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
22379 elif test -n "$PKG_CONFIG"; then
22380    if test -n "$PKG_CONFIG" && \
22381    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
22382  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
22383  ac_status=$?
22384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22385  test $ac_status = 0; }; then
22386  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
22387		      test "x$?" != "x0" && pkg_failed=yes
22388else
22389  pkg_failed=yes
22390fi
22391 else
22392    pkg_failed=untried
22393fi
22394if test -n "$lua_LIBS"; then
22395    pkg_cv_lua_LIBS="$lua_LIBS"
22396 elif test -n "$PKG_CONFIG"; then
22397    if test -n "$PKG_CONFIG" && \
22398    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
22399  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
22400  ac_status=$?
22401  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22402  test $ac_status = 0; }; then
22403  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
22404		      test "x$?" != "x0" && pkg_failed=yes
22405else
22406  pkg_failed=yes
22407fi
22408 else
22409    pkg_failed=untried
22410fi
22411
22412
22413
22414if test $pkg_failed = yes; then
22415   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22416$as_echo "no" >&6; }
22417
22418if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22419        _pkg_short_errors_supported=yes
22420else
22421        _pkg_short_errors_supported=no
22422fi
22423        if test $_pkg_short_errors_supported = yes; then
22424	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
22425        else
22426	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
22427        fi
22428	# Put the nasty error message in config.log where it belongs
22429	echo "$lua_PKG_ERRORS" >&5
22430
22431
22432pkg_failed=no
22433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
22434$as_echo_n "checking for lua... " >&6; }
22435
22436if test -n "$lua_CFLAGS"; then
22437    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
22438 elif test -n "$PKG_CONFIG"; then
22439    if test -n "$PKG_CONFIG" && \
22440    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
22441  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
22442  ac_status=$?
22443  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22444  test $ac_status = 0; }; then
22445  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
22446		      test "x$?" != "x0" && pkg_failed=yes
22447else
22448  pkg_failed=yes
22449fi
22450 else
22451    pkg_failed=untried
22452fi
22453if test -n "$lua_LIBS"; then
22454    pkg_cv_lua_LIBS="$lua_LIBS"
22455 elif test -n "$PKG_CONFIG"; then
22456    if test -n "$PKG_CONFIG" && \
22457    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
22458  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
22459  ac_status=$?
22460  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22461  test $ac_status = 0; }; then
22462  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
22463		      test "x$?" != "x0" && pkg_failed=yes
22464else
22465  pkg_failed=yes
22466fi
22467 else
22468    pkg_failed=untried
22469fi
22470
22471
22472
22473if test $pkg_failed = yes; then
22474   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22475$as_echo "no" >&6; }
22476
22477if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22478        _pkg_short_errors_supported=yes
22479else
22480        _pkg_short_errors_supported=no
22481fi
22482        if test $_pkg_short_errors_supported = yes; then
22483	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
22484        else
22485	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
22486        fi
22487	# Put the nasty error message in config.log where it belongs
22488	echo "$lua_PKG_ERRORS" >&5
22489
22490
22491pkg_failed=no
22492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
22493$as_echo_n "checking for lua... " >&6; }
22494
22495if test -n "$lua_CFLAGS"; then
22496    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
22497 elif test -n "$PKG_CONFIG"; then
22498    if test -n "$PKG_CONFIG" && \
22499    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
22500  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
22501  ac_status=$?
22502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22503  test $ac_status = 0; }; then
22504  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
22505		      test "x$?" != "x0" && pkg_failed=yes
22506else
22507  pkg_failed=yes
22508fi
22509 else
22510    pkg_failed=untried
22511fi
22512if test -n "$lua_LIBS"; then
22513    pkg_cv_lua_LIBS="$lua_LIBS"
22514 elif test -n "$PKG_CONFIG"; then
22515    if test -n "$PKG_CONFIG" && \
22516    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
22517  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
22518  ac_status=$?
22519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22520  test $ac_status = 0; }; then
22521  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
22522		      test "x$?" != "x0" && pkg_failed=yes
22523else
22524  pkg_failed=yes
22525fi
22526 else
22527    pkg_failed=untried
22528fi
22529
22530
22531
22532if test $pkg_failed = yes; then
22533   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22534$as_echo "no" >&6; }
22535
22536if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22537        _pkg_short_errors_supported=yes
22538else
22539        _pkg_short_errors_supported=no
22540fi
22541        if test $_pkg_short_errors_supported = yes; then
22542	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
22543        else
22544	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
22545        fi
22546	# Put the nasty error message in config.log where it belongs
22547	echo "$lua_PKG_ERRORS" >&5
22548
22549	if test "x$with_lua" = xyes; then :
22550  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
22551fi
22552elif test $pkg_failed = untried; then
22553     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22554$as_echo "no" >&6; }
22555	if test "x$with_lua" = xyes; then :
22556  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
22557fi
22558else
22559	lua_CFLAGS=$pkg_cv_lua_CFLAGS
22560	lua_LIBS=$pkg_cv_lua_LIBS
22561        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22562$as_echo "yes" >&6; }
22563
22564    if test "x$with_lua" = xdetect; then :
22565  with_lua='yes (found)'
22566fi
22567
22568
22569fi
22570elif test $pkg_failed = untried; then
22571     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22572$as_echo "no" >&6; }
22573
22574pkg_failed=no
22575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
22576$as_echo_n "checking for lua... " >&6; }
22577
22578if test -n "$lua_CFLAGS"; then
22579    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
22580 elif test -n "$PKG_CONFIG"; then
22581    if test -n "$PKG_CONFIG" && \
22582    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
22583  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
22584  ac_status=$?
22585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22586  test $ac_status = 0; }; then
22587  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
22588		      test "x$?" != "x0" && pkg_failed=yes
22589else
22590  pkg_failed=yes
22591fi
22592 else
22593    pkg_failed=untried
22594fi
22595if test -n "$lua_LIBS"; then
22596    pkg_cv_lua_LIBS="$lua_LIBS"
22597 elif test -n "$PKG_CONFIG"; then
22598    if test -n "$PKG_CONFIG" && \
22599    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
22600  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
22601  ac_status=$?
22602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22603  test $ac_status = 0; }; then
22604  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
22605		      test "x$?" != "x0" && pkg_failed=yes
22606else
22607  pkg_failed=yes
22608fi
22609 else
22610    pkg_failed=untried
22611fi
22612
22613
22614
22615if test $pkg_failed = yes; then
22616   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22617$as_echo "no" >&6; }
22618
22619if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22620        _pkg_short_errors_supported=yes
22621else
22622        _pkg_short_errors_supported=no
22623fi
22624        if test $_pkg_short_errors_supported = yes; then
22625	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
22626        else
22627	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
22628        fi
22629	# Put the nasty error message in config.log where it belongs
22630	echo "$lua_PKG_ERRORS" >&5
22631
22632	if test "x$with_lua" = xyes; then :
22633  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
22634fi
22635elif test $pkg_failed = untried; then
22636     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22637$as_echo "no" >&6; }
22638	if test "x$with_lua" = xyes; then :
22639  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
22640fi
22641else
22642	lua_CFLAGS=$pkg_cv_lua_CFLAGS
22643	lua_LIBS=$pkg_cv_lua_LIBS
22644        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22645$as_echo "yes" >&6; }
22646
22647    if test "x$with_lua" = xdetect; then :
22648  with_lua='yes (found)'
22649fi
22650
22651
22652fi
22653else
22654	lua_CFLAGS=$pkg_cv_lua_CFLAGS
22655	lua_LIBS=$pkg_cv_lua_LIBS
22656        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22657$as_echo "yes" >&6; }
22658
22659    if test "x$with_lua" = xdetect; then :
22660  with_lua='yes (found)'
22661fi
22662
22663
22664fi
22665elif test $pkg_failed = untried; then
22666     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22667$as_echo "no" >&6; }
22668
22669pkg_failed=no
22670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
22671$as_echo_n "checking for lua... " >&6; }
22672
22673if test -n "$lua_CFLAGS"; then
22674    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
22675 elif test -n "$PKG_CONFIG"; then
22676    if test -n "$PKG_CONFIG" && \
22677    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
22678  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
22679  ac_status=$?
22680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22681  test $ac_status = 0; }; then
22682  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
22683		      test "x$?" != "x0" && pkg_failed=yes
22684else
22685  pkg_failed=yes
22686fi
22687 else
22688    pkg_failed=untried
22689fi
22690if test -n "$lua_LIBS"; then
22691    pkg_cv_lua_LIBS="$lua_LIBS"
22692 elif test -n "$PKG_CONFIG"; then
22693    if test -n "$PKG_CONFIG" && \
22694    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
22695  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
22696  ac_status=$?
22697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22698  test $ac_status = 0; }; then
22699  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
22700		      test "x$?" != "x0" && pkg_failed=yes
22701else
22702  pkg_failed=yes
22703fi
22704 else
22705    pkg_failed=untried
22706fi
22707
22708
22709
22710if test $pkg_failed = yes; then
22711   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22712$as_echo "no" >&6; }
22713
22714if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22715        _pkg_short_errors_supported=yes
22716else
22717        _pkg_short_errors_supported=no
22718fi
22719        if test $_pkg_short_errors_supported = yes; then
22720	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
22721        else
22722	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
22723        fi
22724	# Put the nasty error message in config.log where it belongs
22725	echo "$lua_PKG_ERRORS" >&5
22726
22727
22728pkg_failed=no
22729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
22730$as_echo_n "checking for lua... " >&6; }
22731
22732if test -n "$lua_CFLAGS"; then
22733    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
22734 elif test -n "$PKG_CONFIG"; then
22735    if test -n "$PKG_CONFIG" && \
22736    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
22737  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
22738  ac_status=$?
22739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22740  test $ac_status = 0; }; then
22741  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
22742		      test "x$?" != "x0" && pkg_failed=yes
22743else
22744  pkg_failed=yes
22745fi
22746 else
22747    pkg_failed=untried
22748fi
22749if test -n "$lua_LIBS"; then
22750    pkg_cv_lua_LIBS="$lua_LIBS"
22751 elif test -n "$PKG_CONFIG"; then
22752    if test -n "$PKG_CONFIG" && \
22753    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
22754  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
22755  ac_status=$?
22756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22757  test $ac_status = 0; }; then
22758  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
22759		      test "x$?" != "x0" && pkg_failed=yes
22760else
22761  pkg_failed=yes
22762fi
22763 else
22764    pkg_failed=untried
22765fi
22766
22767
22768
22769if test $pkg_failed = yes; then
22770   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22771$as_echo "no" >&6; }
22772
22773if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22774        _pkg_short_errors_supported=yes
22775else
22776        _pkg_short_errors_supported=no
22777fi
22778        if test $_pkg_short_errors_supported = yes; then
22779	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
22780        else
22781	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
22782        fi
22783	# Put the nasty error message in config.log where it belongs
22784	echo "$lua_PKG_ERRORS" >&5
22785
22786	if test "x$with_lua" = xyes; then :
22787  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
22788fi
22789elif test $pkg_failed = untried; then
22790     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22791$as_echo "no" >&6; }
22792	if test "x$with_lua" = xyes; then :
22793  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
22794fi
22795else
22796	lua_CFLAGS=$pkg_cv_lua_CFLAGS
22797	lua_LIBS=$pkg_cv_lua_LIBS
22798        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22799$as_echo "yes" >&6; }
22800
22801    if test "x$with_lua" = xdetect; then :
22802  with_lua='yes (found)'
22803fi
22804
22805
22806fi
22807elif test $pkg_failed = untried; then
22808     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22809$as_echo "no" >&6; }
22810
22811pkg_failed=no
22812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
22813$as_echo_n "checking for lua... " >&6; }
22814
22815if test -n "$lua_CFLAGS"; then
22816    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
22817 elif test -n "$PKG_CONFIG"; then
22818    if test -n "$PKG_CONFIG" && \
22819    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
22820  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
22821  ac_status=$?
22822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22823  test $ac_status = 0; }; then
22824  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
22825		      test "x$?" != "x0" && pkg_failed=yes
22826else
22827  pkg_failed=yes
22828fi
22829 else
22830    pkg_failed=untried
22831fi
22832if test -n "$lua_LIBS"; then
22833    pkg_cv_lua_LIBS="$lua_LIBS"
22834 elif test -n "$PKG_CONFIG"; then
22835    if test -n "$PKG_CONFIG" && \
22836    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
22837  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
22838  ac_status=$?
22839  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22840  test $ac_status = 0; }; then
22841  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
22842		      test "x$?" != "x0" && pkg_failed=yes
22843else
22844  pkg_failed=yes
22845fi
22846 else
22847    pkg_failed=untried
22848fi
22849
22850
22851
22852if test $pkg_failed = yes; then
22853   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22854$as_echo "no" >&6; }
22855
22856if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22857        _pkg_short_errors_supported=yes
22858else
22859        _pkg_short_errors_supported=no
22860fi
22861        if test $_pkg_short_errors_supported = yes; then
22862	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
22863        else
22864	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
22865        fi
22866	# Put the nasty error message in config.log where it belongs
22867	echo "$lua_PKG_ERRORS" >&5
22868
22869	if test "x$with_lua" = xyes; then :
22870  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
22871fi
22872elif test $pkg_failed = untried; then
22873     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22874$as_echo "no" >&6; }
22875	if test "x$with_lua" = xyes; then :
22876  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
22877fi
22878else
22879	lua_CFLAGS=$pkg_cv_lua_CFLAGS
22880	lua_LIBS=$pkg_cv_lua_LIBS
22881        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22882$as_echo "yes" >&6; }
22883
22884    if test "x$with_lua" = xdetect; then :
22885  with_lua='yes (found)'
22886fi
22887
22888
22889fi
22890else
22891	lua_CFLAGS=$pkg_cv_lua_CFLAGS
22892	lua_LIBS=$pkg_cv_lua_LIBS
22893        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22894$as_echo "yes" >&6; }
22895
22896    if test "x$with_lua" = xdetect; then :
22897  with_lua='yes (found)'
22898fi
22899
22900
22901fi
22902else
22903	lua_CFLAGS=$pkg_cv_lua_CFLAGS
22904	lua_LIBS=$pkg_cv_lua_LIBS
22905        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22906$as_echo "yes" >&6; }
22907
22908    if test "x$with_lua" = xdetect; then :
22909  with_lua='yes (found)'
22910fi
22911
22912
22913fi
22914elif test $pkg_failed = untried; then
22915     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22916$as_echo "no" >&6; }
22917
22918pkg_failed=no
22919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
22920$as_echo_n "checking for lua... " >&6; }
22921
22922if test -n "$lua_CFLAGS"; then
22923    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
22924 elif test -n "$PKG_CONFIG"; then
22925    if test -n "$PKG_CONFIG" && \
22926    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
22927  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
22928  ac_status=$?
22929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22930  test $ac_status = 0; }; then
22931  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
22932		      test "x$?" != "x0" && pkg_failed=yes
22933else
22934  pkg_failed=yes
22935fi
22936 else
22937    pkg_failed=untried
22938fi
22939if test -n "$lua_LIBS"; then
22940    pkg_cv_lua_LIBS="$lua_LIBS"
22941 elif test -n "$PKG_CONFIG"; then
22942    if test -n "$PKG_CONFIG" && \
22943    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
22944  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
22945  ac_status=$?
22946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22947  test $ac_status = 0; }; then
22948  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
22949		      test "x$?" != "x0" && pkg_failed=yes
22950else
22951  pkg_failed=yes
22952fi
22953 else
22954    pkg_failed=untried
22955fi
22956
22957
22958
22959if test $pkg_failed = yes; then
22960   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22961$as_echo "no" >&6; }
22962
22963if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22964        _pkg_short_errors_supported=yes
22965else
22966        _pkg_short_errors_supported=no
22967fi
22968        if test $_pkg_short_errors_supported = yes; then
22969	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
22970        else
22971	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
22972        fi
22973	# Put the nasty error message in config.log where it belongs
22974	echo "$lua_PKG_ERRORS" >&5
22975
22976
22977pkg_failed=no
22978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
22979$as_echo_n "checking for lua... " >&6; }
22980
22981if test -n "$lua_CFLAGS"; then
22982    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
22983 elif test -n "$PKG_CONFIG"; then
22984    if test -n "$PKG_CONFIG" && \
22985    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
22986  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
22987  ac_status=$?
22988  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22989  test $ac_status = 0; }; then
22990  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
22991		      test "x$?" != "x0" && pkg_failed=yes
22992else
22993  pkg_failed=yes
22994fi
22995 else
22996    pkg_failed=untried
22997fi
22998if test -n "$lua_LIBS"; then
22999    pkg_cv_lua_LIBS="$lua_LIBS"
23000 elif test -n "$PKG_CONFIG"; then
23001    if test -n "$PKG_CONFIG" && \
23002    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
23003  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
23004  ac_status=$?
23005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23006  test $ac_status = 0; }; then
23007  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
23008		      test "x$?" != "x0" && pkg_failed=yes
23009else
23010  pkg_failed=yes
23011fi
23012 else
23013    pkg_failed=untried
23014fi
23015
23016
23017
23018if test $pkg_failed = yes; then
23019   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23020$as_echo "no" >&6; }
23021
23022if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23023        _pkg_short_errors_supported=yes
23024else
23025        _pkg_short_errors_supported=no
23026fi
23027        if test $_pkg_short_errors_supported = yes; then
23028	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
23029        else
23030	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
23031        fi
23032	# Put the nasty error message in config.log where it belongs
23033	echo "$lua_PKG_ERRORS" >&5
23034
23035
23036pkg_failed=no
23037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
23038$as_echo_n "checking for lua... " >&6; }
23039
23040if test -n "$lua_CFLAGS"; then
23041    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
23042 elif test -n "$PKG_CONFIG"; then
23043    if test -n "$PKG_CONFIG" && \
23044    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
23045  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23046  ac_status=$?
23047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23048  test $ac_status = 0; }; then
23049  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
23050		      test "x$?" != "x0" && pkg_failed=yes
23051else
23052  pkg_failed=yes
23053fi
23054 else
23055    pkg_failed=untried
23056fi
23057if test -n "$lua_LIBS"; then
23058    pkg_cv_lua_LIBS="$lua_LIBS"
23059 elif test -n "$PKG_CONFIG"; then
23060    if test -n "$PKG_CONFIG" && \
23061    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
23062  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23063  ac_status=$?
23064  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23065  test $ac_status = 0; }; then
23066  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
23067		      test "x$?" != "x0" && pkg_failed=yes
23068else
23069  pkg_failed=yes
23070fi
23071 else
23072    pkg_failed=untried
23073fi
23074
23075
23076
23077if test $pkg_failed = yes; then
23078   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23079$as_echo "no" >&6; }
23080
23081if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23082        _pkg_short_errors_supported=yes
23083else
23084        _pkg_short_errors_supported=no
23085fi
23086        if test $_pkg_short_errors_supported = yes; then
23087	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
23088        else
23089	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
23090        fi
23091	# Put the nasty error message in config.log where it belongs
23092	echo "$lua_PKG_ERRORS" >&5
23093
23094	if test "x$with_lua" = xyes; then :
23095  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
23096fi
23097elif test $pkg_failed = untried; then
23098     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23099$as_echo "no" >&6; }
23100	if test "x$with_lua" = xyes; then :
23101  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
23102fi
23103else
23104	lua_CFLAGS=$pkg_cv_lua_CFLAGS
23105	lua_LIBS=$pkg_cv_lua_LIBS
23106        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23107$as_echo "yes" >&6; }
23108
23109    if test "x$with_lua" = xdetect; then :
23110  with_lua='yes (found)'
23111fi
23112
23113
23114fi
23115elif test $pkg_failed = untried; then
23116     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23117$as_echo "no" >&6; }
23118
23119pkg_failed=no
23120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
23121$as_echo_n "checking for lua... " >&6; }
23122
23123if test -n "$lua_CFLAGS"; then
23124    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
23125 elif test -n "$PKG_CONFIG"; then
23126    if test -n "$PKG_CONFIG" && \
23127    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
23128  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23129  ac_status=$?
23130  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23131  test $ac_status = 0; }; then
23132  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
23133		      test "x$?" != "x0" && pkg_failed=yes
23134else
23135  pkg_failed=yes
23136fi
23137 else
23138    pkg_failed=untried
23139fi
23140if test -n "$lua_LIBS"; then
23141    pkg_cv_lua_LIBS="$lua_LIBS"
23142 elif test -n "$PKG_CONFIG"; then
23143    if test -n "$PKG_CONFIG" && \
23144    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
23145  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23146  ac_status=$?
23147  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23148  test $ac_status = 0; }; then
23149  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
23150		      test "x$?" != "x0" && pkg_failed=yes
23151else
23152  pkg_failed=yes
23153fi
23154 else
23155    pkg_failed=untried
23156fi
23157
23158
23159
23160if test $pkg_failed = yes; then
23161   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23162$as_echo "no" >&6; }
23163
23164if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23165        _pkg_short_errors_supported=yes
23166else
23167        _pkg_short_errors_supported=no
23168fi
23169        if test $_pkg_short_errors_supported = yes; then
23170	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
23171        else
23172	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
23173        fi
23174	# Put the nasty error message in config.log where it belongs
23175	echo "$lua_PKG_ERRORS" >&5
23176
23177	if test "x$with_lua" = xyes; then :
23178  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
23179fi
23180elif test $pkg_failed = untried; then
23181     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23182$as_echo "no" >&6; }
23183	if test "x$with_lua" = xyes; then :
23184  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
23185fi
23186else
23187	lua_CFLAGS=$pkg_cv_lua_CFLAGS
23188	lua_LIBS=$pkg_cv_lua_LIBS
23189        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23190$as_echo "yes" >&6; }
23191
23192    if test "x$with_lua" = xdetect; then :
23193  with_lua='yes (found)'
23194fi
23195
23196
23197fi
23198else
23199	lua_CFLAGS=$pkg_cv_lua_CFLAGS
23200	lua_LIBS=$pkg_cv_lua_LIBS
23201        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23202$as_echo "yes" >&6; }
23203
23204    if test "x$with_lua" = xdetect; then :
23205  with_lua='yes (found)'
23206fi
23207
23208
23209fi
23210elif test $pkg_failed = untried; then
23211     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23212$as_echo "no" >&6; }
23213
23214pkg_failed=no
23215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
23216$as_echo_n "checking for lua... " >&6; }
23217
23218if test -n "$lua_CFLAGS"; then
23219    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
23220 elif test -n "$PKG_CONFIG"; then
23221    if test -n "$PKG_CONFIG" && \
23222    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
23223  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
23224  ac_status=$?
23225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23226  test $ac_status = 0; }; then
23227  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
23228		      test "x$?" != "x0" && pkg_failed=yes
23229else
23230  pkg_failed=yes
23231fi
23232 else
23233    pkg_failed=untried
23234fi
23235if test -n "$lua_LIBS"; then
23236    pkg_cv_lua_LIBS="$lua_LIBS"
23237 elif test -n "$PKG_CONFIG"; then
23238    if test -n "$PKG_CONFIG" && \
23239    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
23240  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
23241  ac_status=$?
23242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23243  test $ac_status = 0; }; then
23244  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
23245		      test "x$?" != "x0" && pkg_failed=yes
23246else
23247  pkg_failed=yes
23248fi
23249 else
23250    pkg_failed=untried
23251fi
23252
23253
23254
23255if test $pkg_failed = yes; then
23256   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23257$as_echo "no" >&6; }
23258
23259if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23260        _pkg_short_errors_supported=yes
23261else
23262        _pkg_short_errors_supported=no
23263fi
23264        if test $_pkg_short_errors_supported = yes; then
23265	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
23266        else
23267	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
23268        fi
23269	# Put the nasty error message in config.log where it belongs
23270	echo "$lua_PKG_ERRORS" >&5
23271
23272
23273pkg_failed=no
23274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
23275$as_echo_n "checking for lua... " >&6; }
23276
23277if test -n "$lua_CFLAGS"; then
23278    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
23279 elif test -n "$PKG_CONFIG"; then
23280    if test -n "$PKG_CONFIG" && \
23281    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
23282  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23283  ac_status=$?
23284  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23285  test $ac_status = 0; }; then
23286  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
23287		      test "x$?" != "x0" && pkg_failed=yes
23288else
23289  pkg_failed=yes
23290fi
23291 else
23292    pkg_failed=untried
23293fi
23294if test -n "$lua_LIBS"; then
23295    pkg_cv_lua_LIBS="$lua_LIBS"
23296 elif test -n "$PKG_CONFIG"; then
23297    if test -n "$PKG_CONFIG" && \
23298    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
23299  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23300  ac_status=$?
23301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23302  test $ac_status = 0; }; then
23303  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
23304		      test "x$?" != "x0" && pkg_failed=yes
23305else
23306  pkg_failed=yes
23307fi
23308 else
23309    pkg_failed=untried
23310fi
23311
23312
23313
23314if test $pkg_failed = yes; then
23315   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23316$as_echo "no" >&6; }
23317
23318if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23319        _pkg_short_errors_supported=yes
23320else
23321        _pkg_short_errors_supported=no
23322fi
23323        if test $_pkg_short_errors_supported = yes; then
23324	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
23325        else
23326	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
23327        fi
23328	# Put the nasty error message in config.log where it belongs
23329	echo "$lua_PKG_ERRORS" >&5
23330
23331	if test "x$with_lua" = xyes; then :
23332  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
23333fi
23334elif test $pkg_failed = untried; then
23335     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23336$as_echo "no" >&6; }
23337	if test "x$with_lua" = xyes; then :
23338  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
23339fi
23340else
23341	lua_CFLAGS=$pkg_cv_lua_CFLAGS
23342	lua_LIBS=$pkg_cv_lua_LIBS
23343        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23344$as_echo "yes" >&6; }
23345
23346    if test "x$with_lua" = xdetect; then :
23347  with_lua='yes (found)'
23348fi
23349
23350
23351fi
23352elif test $pkg_failed = untried; then
23353     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23354$as_echo "no" >&6; }
23355
23356pkg_failed=no
23357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
23358$as_echo_n "checking for lua... " >&6; }
23359
23360if test -n "$lua_CFLAGS"; then
23361    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
23362 elif test -n "$PKG_CONFIG"; then
23363    if test -n "$PKG_CONFIG" && \
23364    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
23365  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23366  ac_status=$?
23367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23368  test $ac_status = 0; }; then
23369  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
23370		      test "x$?" != "x0" && pkg_failed=yes
23371else
23372  pkg_failed=yes
23373fi
23374 else
23375    pkg_failed=untried
23376fi
23377if test -n "$lua_LIBS"; then
23378    pkg_cv_lua_LIBS="$lua_LIBS"
23379 elif test -n "$PKG_CONFIG"; then
23380    if test -n "$PKG_CONFIG" && \
23381    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
23382  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23383  ac_status=$?
23384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23385  test $ac_status = 0; }; then
23386  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
23387		      test "x$?" != "x0" && pkg_failed=yes
23388else
23389  pkg_failed=yes
23390fi
23391 else
23392    pkg_failed=untried
23393fi
23394
23395
23396
23397if test $pkg_failed = yes; then
23398   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23399$as_echo "no" >&6; }
23400
23401if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23402        _pkg_short_errors_supported=yes
23403else
23404        _pkg_short_errors_supported=no
23405fi
23406        if test $_pkg_short_errors_supported = yes; then
23407	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
23408        else
23409	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
23410        fi
23411	# Put the nasty error message in config.log where it belongs
23412	echo "$lua_PKG_ERRORS" >&5
23413
23414	if test "x$with_lua" = xyes; then :
23415  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
23416fi
23417elif test $pkg_failed = untried; then
23418     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23419$as_echo "no" >&6; }
23420	if test "x$with_lua" = xyes; then :
23421  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
23422fi
23423else
23424	lua_CFLAGS=$pkg_cv_lua_CFLAGS
23425	lua_LIBS=$pkg_cv_lua_LIBS
23426        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23427$as_echo "yes" >&6; }
23428
23429    if test "x$with_lua" = xdetect; then :
23430  with_lua='yes (found)'
23431fi
23432
23433
23434fi
23435else
23436	lua_CFLAGS=$pkg_cv_lua_CFLAGS
23437	lua_LIBS=$pkg_cv_lua_LIBS
23438        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23439$as_echo "yes" >&6; }
23440
23441    if test "x$with_lua" = xdetect; then :
23442  with_lua='yes (found)'
23443fi
23444
23445
23446fi
23447else
23448	lua_CFLAGS=$pkg_cv_lua_CFLAGS
23449	lua_LIBS=$pkg_cv_lua_LIBS
23450        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23451$as_echo "yes" >&6; }
23452
23453    if test "x$with_lua" = xdetect; then :
23454  with_lua='yes (found)'
23455fi
23456
23457
23458fi
23459else
23460	lua_CFLAGS=$pkg_cv_lua_CFLAGS
23461	lua_LIBS=$pkg_cv_lua_LIBS
23462        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23463$as_echo "yes" >&6; }
23464
23465    if test "x$with_lua" = xdetect; then :
23466  with_lua='yes (found)'
23467fi
23468
23469
23470fi
23471else
23472	lua_CFLAGS=$pkg_cv_lua_CFLAGS
23473	lua_LIBS=$pkg_cv_lua_LIBS
23474        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23475$as_echo "yes" >&6; }
23476
23477    if test "x$with_lua" = xdetect; then :
23478  with_lua='yes (found)'
23479fi
23480
23481
23482fi
23483elif test $pkg_failed = untried; then
23484     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23485$as_echo "no" >&6; }
23486
23487pkg_failed=no
23488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
23489$as_echo_n "checking for lua... " >&6; }
23490
23491if test -n "$lua_CFLAGS"; then
23492    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
23493 elif test -n "$PKG_CONFIG"; then
23494    if test -n "$PKG_CONFIG" && \
23495    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
23496  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
23497  ac_status=$?
23498  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23499  test $ac_status = 0; }; then
23500  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
23501		      test "x$?" != "x0" && pkg_failed=yes
23502else
23503  pkg_failed=yes
23504fi
23505 else
23506    pkg_failed=untried
23507fi
23508if test -n "$lua_LIBS"; then
23509    pkg_cv_lua_LIBS="$lua_LIBS"
23510 elif test -n "$PKG_CONFIG"; then
23511    if test -n "$PKG_CONFIG" && \
23512    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
23513  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
23514  ac_status=$?
23515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23516  test $ac_status = 0; }; then
23517  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
23518		      test "x$?" != "x0" && pkg_failed=yes
23519else
23520  pkg_failed=yes
23521fi
23522 else
23523    pkg_failed=untried
23524fi
23525
23526
23527
23528if test $pkg_failed = yes; then
23529   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23530$as_echo "no" >&6; }
23531
23532if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23533        _pkg_short_errors_supported=yes
23534else
23535        _pkg_short_errors_supported=no
23536fi
23537        if test $_pkg_short_errors_supported = yes; then
23538	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
23539        else
23540	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
23541        fi
23542	# Put the nasty error message in config.log where it belongs
23543	echo "$lua_PKG_ERRORS" >&5
23544
23545
23546pkg_failed=no
23547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
23548$as_echo_n "checking for lua... " >&6; }
23549
23550if test -n "$lua_CFLAGS"; then
23551    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
23552 elif test -n "$PKG_CONFIG"; then
23553    if test -n "$PKG_CONFIG" && \
23554    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
23555  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
23556  ac_status=$?
23557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23558  test $ac_status = 0; }; then
23559  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
23560		      test "x$?" != "x0" && pkg_failed=yes
23561else
23562  pkg_failed=yes
23563fi
23564 else
23565    pkg_failed=untried
23566fi
23567if test -n "$lua_LIBS"; then
23568    pkg_cv_lua_LIBS="$lua_LIBS"
23569 elif test -n "$PKG_CONFIG"; then
23570    if test -n "$PKG_CONFIG" && \
23571    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
23572  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
23573  ac_status=$?
23574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23575  test $ac_status = 0; }; then
23576  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
23577		      test "x$?" != "x0" && pkg_failed=yes
23578else
23579  pkg_failed=yes
23580fi
23581 else
23582    pkg_failed=untried
23583fi
23584
23585
23586
23587if test $pkg_failed = yes; then
23588   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23589$as_echo "no" >&6; }
23590
23591if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23592        _pkg_short_errors_supported=yes
23593else
23594        _pkg_short_errors_supported=no
23595fi
23596        if test $_pkg_short_errors_supported = yes; then
23597	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
23598        else
23599	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
23600        fi
23601	# Put the nasty error message in config.log where it belongs
23602	echo "$lua_PKG_ERRORS" >&5
23603
23604
23605pkg_failed=no
23606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
23607$as_echo_n "checking for lua... " >&6; }
23608
23609if test -n "$lua_CFLAGS"; then
23610    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
23611 elif test -n "$PKG_CONFIG"; then
23612    if test -n "$PKG_CONFIG" && \
23613    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
23614  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
23615  ac_status=$?
23616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23617  test $ac_status = 0; }; then
23618  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
23619		      test "x$?" != "x0" && pkg_failed=yes
23620else
23621  pkg_failed=yes
23622fi
23623 else
23624    pkg_failed=untried
23625fi
23626if test -n "$lua_LIBS"; then
23627    pkg_cv_lua_LIBS="$lua_LIBS"
23628 elif test -n "$PKG_CONFIG"; then
23629    if test -n "$PKG_CONFIG" && \
23630    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
23631  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
23632  ac_status=$?
23633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23634  test $ac_status = 0; }; then
23635  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
23636		      test "x$?" != "x0" && pkg_failed=yes
23637else
23638  pkg_failed=yes
23639fi
23640 else
23641    pkg_failed=untried
23642fi
23643
23644
23645
23646if test $pkg_failed = yes; then
23647   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23648$as_echo "no" >&6; }
23649
23650if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23651        _pkg_short_errors_supported=yes
23652else
23653        _pkg_short_errors_supported=no
23654fi
23655        if test $_pkg_short_errors_supported = yes; then
23656	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
23657        else
23658	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
23659        fi
23660	# Put the nasty error message in config.log where it belongs
23661	echo "$lua_PKG_ERRORS" >&5
23662
23663
23664pkg_failed=no
23665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
23666$as_echo_n "checking for lua... " >&6; }
23667
23668if test -n "$lua_CFLAGS"; then
23669    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
23670 elif test -n "$PKG_CONFIG"; then
23671    if test -n "$PKG_CONFIG" && \
23672    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
23673  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
23674  ac_status=$?
23675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23676  test $ac_status = 0; }; then
23677  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
23678		      test "x$?" != "x0" && pkg_failed=yes
23679else
23680  pkg_failed=yes
23681fi
23682 else
23683    pkg_failed=untried
23684fi
23685if test -n "$lua_LIBS"; then
23686    pkg_cv_lua_LIBS="$lua_LIBS"
23687 elif test -n "$PKG_CONFIG"; then
23688    if test -n "$PKG_CONFIG" && \
23689    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
23690  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
23691  ac_status=$?
23692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23693  test $ac_status = 0; }; then
23694  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
23695		      test "x$?" != "x0" && pkg_failed=yes
23696else
23697  pkg_failed=yes
23698fi
23699 else
23700    pkg_failed=untried
23701fi
23702
23703
23704
23705if test $pkg_failed = yes; then
23706   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23707$as_echo "no" >&6; }
23708
23709if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23710        _pkg_short_errors_supported=yes
23711else
23712        _pkg_short_errors_supported=no
23713fi
23714        if test $_pkg_short_errors_supported = yes; then
23715	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
23716        else
23717	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
23718        fi
23719	# Put the nasty error message in config.log where it belongs
23720	echo "$lua_PKG_ERRORS" >&5
23721
23722
23723pkg_failed=no
23724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
23725$as_echo_n "checking for lua... " >&6; }
23726
23727if test -n "$lua_CFLAGS"; then
23728    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
23729 elif test -n "$PKG_CONFIG"; then
23730    if test -n "$PKG_CONFIG" && \
23731    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
23732  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23733  ac_status=$?
23734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23735  test $ac_status = 0; }; then
23736  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
23737		      test "x$?" != "x0" && pkg_failed=yes
23738else
23739  pkg_failed=yes
23740fi
23741 else
23742    pkg_failed=untried
23743fi
23744if test -n "$lua_LIBS"; then
23745    pkg_cv_lua_LIBS="$lua_LIBS"
23746 elif test -n "$PKG_CONFIG"; then
23747    if test -n "$PKG_CONFIG" && \
23748    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
23749  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23750  ac_status=$?
23751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23752  test $ac_status = 0; }; then
23753  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
23754		      test "x$?" != "x0" && pkg_failed=yes
23755else
23756  pkg_failed=yes
23757fi
23758 else
23759    pkg_failed=untried
23760fi
23761
23762
23763
23764if test $pkg_failed = yes; then
23765   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23766$as_echo "no" >&6; }
23767
23768if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23769        _pkg_short_errors_supported=yes
23770else
23771        _pkg_short_errors_supported=no
23772fi
23773        if test $_pkg_short_errors_supported = yes; then
23774	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
23775        else
23776	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
23777        fi
23778	# Put the nasty error message in config.log where it belongs
23779	echo "$lua_PKG_ERRORS" >&5
23780
23781	if test "x$with_lua" = xyes; then :
23782  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
23783fi
23784elif test $pkg_failed = untried; then
23785     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23786$as_echo "no" >&6; }
23787	if test "x$with_lua" = xyes; then :
23788  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
23789fi
23790else
23791	lua_CFLAGS=$pkg_cv_lua_CFLAGS
23792	lua_LIBS=$pkg_cv_lua_LIBS
23793        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23794$as_echo "yes" >&6; }
23795
23796    if test "x$with_lua" = xdetect; then :
23797  with_lua='yes (found)'
23798fi
23799
23800
23801fi
23802elif test $pkg_failed = untried; then
23803     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23804$as_echo "no" >&6; }
23805
23806pkg_failed=no
23807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
23808$as_echo_n "checking for lua... " >&6; }
23809
23810if test -n "$lua_CFLAGS"; then
23811    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
23812 elif test -n "$PKG_CONFIG"; then
23813    if test -n "$PKG_CONFIG" && \
23814    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
23815  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23816  ac_status=$?
23817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23818  test $ac_status = 0; }; then
23819  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
23820		      test "x$?" != "x0" && pkg_failed=yes
23821else
23822  pkg_failed=yes
23823fi
23824 else
23825    pkg_failed=untried
23826fi
23827if test -n "$lua_LIBS"; then
23828    pkg_cv_lua_LIBS="$lua_LIBS"
23829 elif test -n "$PKG_CONFIG"; then
23830    if test -n "$PKG_CONFIG" && \
23831    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
23832  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23833  ac_status=$?
23834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23835  test $ac_status = 0; }; then
23836  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
23837		      test "x$?" != "x0" && pkg_failed=yes
23838else
23839  pkg_failed=yes
23840fi
23841 else
23842    pkg_failed=untried
23843fi
23844
23845
23846
23847if test $pkg_failed = yes; then
23848   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23849$as_echo "no" >&6; }
23850
23851if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23852        _pkg_short_errors_supported=yes
23853else
23854        _pkg_short_errors_supported=no
23855fi
23856        if test $_pkg_short_errors_supported = yes; then
23857	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
23858        else
23859	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
23860        fi
23861	# Put the nasty error message in config.log where it belongs
23862	echo "$lua_PKG_ERRORS" >&5
23863
23864	if test "x$with_lua" = xyes; then :
23865  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
23866fi
23867elif test $pkg_failed = untried; then
23868     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23869$as_echo "no" >&6; }
23870	if test "x$with_lua" = xyes; then :
23871  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
23872fi
23873else
23874	lua_CFLAGS=$pkg_cv_lua_CFLAGS
23875	lua_LIBS=$pkg_cv_lua_LIBS
23876        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23877$as_echo "yes" >&6; }
23878
23879    if test "x$with_lua" = xdetect; then :
23880  with_lua='yes (found)'
23881fi
23882
23883
23884fi
23885else
23886	lua_CFLAGS=$pkg_cv_lua_CFLAGS
23887	lua_LIBS=$pkg_cv_lua_LIBS
23888        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23889$as_echo "yes" >&6; }
23890
23891    if test "x$with_lua" = xdetect; then :
23892  with_lua='yes (found)'
23893fi
23894
23895
23896fi
23897elif test $pkg_failed = untried; then
23898     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23899$as_echo "no" >&6; }
23900
23901pkg_failed=no
23902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
23903$as_echo_n "checking for lua... " >&6; }
23904
23905if test -n "$lua_CFLAGS"; then
23906    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
23907 elif test -n "$PKG_CONFIG"; then
23908    if test -n "$PKG_CONFIG" && \
23909    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
23910  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
23911  ac_status=$?
23912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23913  test $ac_status = 0; }; then
23914  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
23915		      test "x$?" != "x0" && pkg_failed=yes
23916else
23917  pkg_failed=yes
23918fi
23919 else
23920    pkg_failed=untried
23921fi
23922if test -n "$lua_LIBS"; then
23923    pkg_cv_lua_LIBS="$lua_LIBS"
23924 elif test -n "$PKG_CONFIG"; then
23925    if test -n "$PKG_CONFIG" && \
23926    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
23927  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
23928  ac_status=$?
23929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23930  test $ac_status = 0; }; then
23931  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
23932		      test "x$?" != "x0" && pkg_failed=yes
23933else
23934  pkg_failed=yes
23935fi
23936 else
23937    pkg_failed=untried
23938fi
23939
23940
23941
23942if test $pkg_failed = yes; then
23943   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23944$as_echo "no" >&6; }
23945
23946if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23947        _pkg_short_errors_supported=yes
23948else
23949        _pkg_short_errors_supported=no
23950fi
23951        if test $_pkg_short_errors_supported = yes; then
23952	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
23953        else
23954	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
23955        fi
23956	# Put the nasty error message in config.log where it belongs
23957	echo "$lua_PKG_ERRORS" >&5
23958
23959
23960pkg_failed=no
23961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
23962$as_echo_n "checking for lua... " >&6; }
23963
23964if test -n "$lua_CFLAGS"; then
23965    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
23966 elif test -n "$PKG_CONFIG"; then
23967    if test -n "$PKG_CONFIG" && \
23968    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
23969  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23970  ac_status=$?
23971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23972  test $ac_status = 0; }; then
23973  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
23974		      test "x$?" != "x0" && pkg_failed=yes
23975else
23976  pkg_failed=yes
23977fi
23978 else
23979    pkg_failed=untried
23980fi
23981if test -n "$lua_LIBS"; then
23982    pkg_cv_lua_LIBS="$lua_LIBS"
23983 elif test -n "$PKG_CONFIG"; then
23984    if test -n "$PKG_CONFIG" && \
23985    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
23986  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23987  ac_status=$?
23988  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23989  test $ac_status = 0; }; then
23990  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
23991		      test "x$?" != "x0" && pkg_failed=yes
23992else
23993  pkg_failed=yes
23994fi
23995 else
23996    pkg_failed=untried
23997fi
23998
23999
24000
24001if test $pkg_failed = yes; then
24002   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24003$as_echo "no" >&6; }
24004
24005if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24006        _pkg_short_errors_supported=yes
24007else
24008        _pkg_short_errors_supported=no
24009fi
24010        if test $_pkg_short_errors_supported = yes; then
24011	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
24012        else
24013	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
24014        fi
24015	# Put the nasty error message in config.log where it belongs
24016	echo "$lua_PKG_ERRORS" >&5
24017
24018	if test "x$with_lua" = xyes; then :
24019  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
24020fi
24021elif test $pkg_failed = untried; then
24022     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24023$as_echo "no" >&6; }
24024	if test "x$with_lua" = xyes; then :
24025  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
24026fi
24027else
24028	lua_CFLAGS=$pkg_cv_lua_CFLAGS
24029	lua_LIBS=$pkg_cv_lua_LIBS
24030        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24031$as_echo "yes" >&6; }
24032
24033    if test "x$with_lua" = xdetect; then :
24034  with_lua='yes (found)'
24035fi
24036
24037
24038fi
24039elif test $pkg_failed = untried; then
24040     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24041$as_echo "no" >&6; }
24042
24043pkg_failed=no
24044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
24045$as_echo_n "checking for lua... " >&6; }
24046
24047if test -n "$lua_CFLAGS"; then
24048    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
24049 elif test -n "$PKG_CONFIG"; then
24050    if test -n "$PKG_CONFIG" && \
24051    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
24052  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
24053  ac_status=$?
24054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24055  test $ac_status = 0; }; then
24056  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
24057		      test "x$?" != "x0" && pkg_failed=yes
24058else
24059  pkg_failed=yes
24060fi
24061 else
24062    pkg_failed=untried
24063fi
24064if test -n "$lua_LIBS"; then
24065    pkg_cv_lua_LIBS="$lua_LIBS"
24066 elif test -n "$PKG_CONFIG"; then
24067    if test -n "$PKG_CONFIG" && \
24068    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
24069  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
24070  ac_status=$?
24071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24072  test $ac_status = 0; }; then
24073  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
24074		      test "x$?" != "x0" && pkg_failed=yes
24075else
24076  pkg_failed=yes
24077fi
24078 else
24079    pkg_failed=untried
24080fi
24081
24082
24083
24084if test $pkg_failed = yes; then
24085   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24086$as_echo "no" >&6; }
24087
24088if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24089        _pkg_short_errors_supported=yes
24090else
24091        _pkg_short_errors_supported=no
24092fi
24093        if test $_pkg_short_errors_supported = yes; then
24094	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
24095        else
24096	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
24097        fi
24098	# Put the nasty error message in config.log where it belongs
24099	echo "$lua_PKG_ERRORS" >&5
24100
24101	if test "x$with_lua" = xyes; then :
24102  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
24103fi
24104elif test $pkg_failed = untried; then
24105     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24106$as_echo "no" >&6; }
24107	if test "x$with_lua" = xyes; then :
24108  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
24109fi
24110else
24111	lua_CFLAGS=$pkg_cv_lua_CFLAGS
24112	lua_LIBS=$pkg_cv_lua_LIBS
24113        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24114$as_echo "yes" >&6; }
24115
24116    if test "x$with_lua" = xdetect; then :
24117  with_lua='yes (found)'
24118fi
24119
24120
24121fi
24122else
24123	lua_CFLAGS=$pkg_cv_lua_CFLAGS
24124	lua_LIBS=$pkg_cv_lua_LIBS
24125        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24126$as_echo "yes" >&6; }
24127
24128    if test "x$with_lua" = xdetect; then :
24129  with_lua='yes (found)'
24130fi
24131
24132
24133fi
24134else
24135	lua_CFLAGS=$pkg_cv_lua_CFLAGS
24136	lua_LIBS=$pkg_cv_lua_LIBS
24137        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24138$as_echo "yes" >&6; }
24139
24140    if test "x$with_lua" = xdetect; then :
24141  with_lua='yes (found)'
24142fi
24143
24144
24145fi
24146elif test $pkg_failed = untried; then
24147     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24148$as_echo "no" >&6; }
24149
24150pkg_failed=no
24151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
24152$as_echo_n "checking for lua... " >&6; }
24153
24154if test -n "$lua_CFLAGS"; then
24155    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
24156 elif test -n "$PKG_CONFIG"; then
24157    if test -n "$PKG_CONFIG" && \
24158    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
24159  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
24160  ac_status=$?
24161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24162  test $ac_status = 0; }; then
24163  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
24164		      test "x$?" != "x0" && pkg_failed=yes
24165else
24166  pkg_failed=yes
24167fi
24168 else
24169    pkg_failed=untried
24170fi
24171if test -n "$lua_LIBS"; then
24172    pkg_cv_lua_LIBS="$lua_LIBS"
24173 elif test -n "$PKG_CONFIG"; then
24174    if test -n "$PKG_CONFIG" && \
24175    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
24176  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
24177  ac_status=$?
24178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24179  test $ac_status = 0; }; then
24180  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
24181		      test "x$?" != "x0" && pkg_failed=yes
24182else
24183  pkg_failed=yes
24184fi
24185 else
24186    pkg_failed=untried
24187fi
24188
24189
24190
24191if test $pkg_failed = yes; then
24192   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24193$as_echo "no" >&6; }
24194
24195if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24196        _pkg_short_errors_supported=yes
24197else
24198        _pkg_short_errors_supported=no
24199fi
24200        if test $_pkg_short_errors_supported = yes; then
24201	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
24202        else
24203	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
24204        fi
24205	# Put the nasty error message in config.log where it belongs
24206	echo "$lua_PKG_ERRORS" >&5
24207
24208
24209pkg_failed=no
24210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
24211$as_echo_n "checking for lua... " >&6; }
24212
24213if test -n "$lua_CFLAGS"; then
24214    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
24215 elif test -n "$PKG_CONFIG"; then
24216    if test -n "$PKG_CONFIG" && \
24217    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
24218  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
24219  ac_status=$?
24220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24221  test $ac_status = 0; }; then
24222  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
24223		      test "x$?" != "x0" && pkg_failed=yes
24224else
24225  pkg_failed=yes
24226fi
24227 else
24228    pkg_failed=untried
24229fi
24230if test -n "$lua_LIBS"; then
24231    pkg_cv_lua_LIBS="$lua_LIBS"
24232 elif test -n "$PKG_CONFIG"; then
24233    if test -n "$PKG_CONFIG" && \
24234    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
24235  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
24236  ac_status=$?
24237  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24238  test $ac_status = 0; }; then
24239  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
24240		      test "x$?" != "x0" && pkg_failed=yes
24241else
24242  pkg_failed=yes
24243fi
24244 else
24245    pkg_failed=untried
24246fi
24247
24248
24249
24250if test $pkg_failed = yes; then
24251   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24252$as_echo "no" >&6; }
24253
24254if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24255        _pkg_short_errors_supported=yes
24256else
24257        _pkg_short_errors_supported=no
24258fi
24259        if test $_pkg_short_errors_supported = yes; then
24260	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
24261        else
24262	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
24263        fi
24264	# Put the nasty error message in config.log where it belongs
24265	echo "$lua_PKG_ERRORS" >&5
24266
24267
24268pkg_failed=no
24269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
24270$as_echo_n "checking for lua... " >&6; }
24271
24272if test -n "$lua_CFLAGS"; then
24273    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
24274 elif test -n "$PKG_CONFIG"; then
24275    if test -n "$PKG_CONFIG" && \
24276    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
24277  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
24278  ac_status=$?
24279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24280  test $ac_status = 0; }; then
24281  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
24282		      test "x$?" != "x0" && pkg_failed=yes
24283else
24284  pkg_failed=yes
24285fi
24286 else
24287    pkg_failed=untried
24288fi
24289if test -n "$lua_LIBS"; then
24290    pkg_cv_lua_LIBS="$lua_LIBS"
24291 elif test -n "$PKG_CONFIG"; then
24292    if test -n "$PKG_CONFIG" && \
24293    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
24294  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
24295  ac_status=$?
24296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24297  test $ac_status = 0; }; then
24298  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
24299		      test "x$?" != "x0" && pkg_failed=yes
24300else
24301  pkg_failed=yes
24302fi
24303 else
24304    pkg_failed=untried
24305fi
24306
24307
24308
24309if test $pkg_failed = yes; then
24310   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24311$as_echo "no" >&6; }
24312
24313if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24314        _pkg_short_errors_supported=yes
24315else
24316        _pkg_short_errors_supported=no
24317fi
24318        if test $_pkg_short_errors_supported = yes; then
24319	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
24320        else
24321	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
24322        fi
24323	# Put the nasty error message in config.log where it belongs
24324	echo "$lua_PKG_ERRORS" >&5
24325
24326	if test "x$with_lua" = xyes; then :
24327  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
24328fi
24329elif test $pkg_failed = untried; then
24330     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24331$as_echo "no" >&6; }
24332	if test "x$with_lua" = xyes; then :
24333  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
24334fi
24335else
24336	lua_CFLAGS=$pkg_cv_lua_CFLAGS
24337	lua_LIBS=$pkg_cv_lua_LIBS
24338        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24339$as_echo "yes" >&6; }
24340
24341    if test "x$with_lua" = xdetect; then :
24342  with_lua='yes (found)'
24343fi
24344
24345
24346fi
24347elif test $pkg_failed = untried; then
24348     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24349$as_echo "no" >&6; }
24350
24351pkg_failed=no
24352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
24353$as_echo_n "checking for lua... " >&6; }
24354
24355if test -n "$lua_CFLAGS"; then
24356    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
24357 elif test -n "$PKG_CONFIG"; then
24358    if test -n "$PKG_CONFIG" && \
24359    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
24360  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
24361  ac_status=$?
24362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24363  test $ac_status = 0; }; then
24364  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
24365		      test "x$?" != "x0" && pkg_failed=yes
24366else
24367  pkg_failed=yes
24368fi
24369 else
24370    pkg_failed=untried
24371fi
24372if test -n "$lua_LIBS"; then
24373    pkg_cv_lua_LIBS="$lua_LIBS"
24374 elif test -n "$PKG_CONFIG"; then
24375    if test -n "$PKG_CONFIG" && \
24376    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
24377  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
24378  ac_status=$?
24379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24380  test $ac_status = 0; }; then
24381  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
24382		      test "x$?" != "x0" && pkg_failed=yes
24383else
24384  pkg_failed=yes
24385fi
24386 else
24387    pkg_failed=untried
24388fi
24389
24390
24391
24392if test $pkg_failed = yes; then
24393   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24394$as_echo "no" >&6; }
24395
24396if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24397        _pkg_short_errors_supported=yes
24398else
24399        _pkg_short_errors_supported=no
24400fi
24401        if test $_pkg_short_errors_supported = yes; then
24402	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
24403        else
24404	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
24405        fi
24406	# Put the nasty error message in config.log where it belongs
24407	echo "$lua_PKG_ERRORS" >&5
24408
24409	if test "x$with_lua" = xyes; then :
24410  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
24411fi
24412elif test $pkg_failed = untried; then
24413     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24414$as_echo "no" >&6; }
24415	if test "x$with_lua" = xyes; then :
24416  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
24417fi
24418else
24419	lua_CFLAGS=$pkg_cv_lua_CFLAGS
24420	lua_LIBS=$pkg_cv_lua_LIBS
24421        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24422$as_echo "yes" >&6; }
24423
24424    if test "x$with_lua" = xdetect; then :
24425  with_lua='yes (found)'
24426fi
24427
24428
24429fi
24430else
24431	lua_CFLAGS=$pkg_cv_lua_CFLAGS
24432	lua_LIBS=$pkg_cv_lua_LIBS
24433        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24434$as_echo "yes" >&6; }
24435
24436    if test "x$with_lua" = xdetect; then :
24437  with_lua='yes (found)'
24438fi
24439
24440
24441fi
24442elif test $pkg_failed = untried; then
24443     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24444$as_echo "no" >&6; }
24445
24446pkg_failed=no
24447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
24448$as_echo_n "checking for lua... " >&6; }
24449
24450if test -n "$lua_CFLAGS"; then
24451    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
24452 elif test -n "$PKG_CONFIG"; then
24453    if test -n "$PKG_CONFIG" && \
24454    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
24455  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
24456  ac_status=$?
24457  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24458  test $ac_status = 0; }; then
24459  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
24460		      test "x$?" != "x0" && pkg_failed=yes
24461else
24462  pkg_failed=yes
24463fi
24464 else
24465    pkg_failed=untried
24466fi
24467if test -n "$lua_LIBS"; then
24468    pkg_cv_lua_LIBS="$lua_LIBS"
24469 elif test -n "$PKG_CONFIG"; then
24470    if test -n "$PKG_CONFIG" && \
24471    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
24472  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
24473  ac_status=$?
24474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24475  test $ac_status = 0; }; then
24476  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
24477		      test "x$?" != "x0" && pkg_failed=yes
24478else
24479  pkg_failed=yes
24480fi
24481 else
24482    pkg_failed=untried
24483fi
24484
24485
24486
24487if test $pkg_failed = yes; then
24488   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24489$as_echo "no" >&6; }
24490
24491if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24492        _pkg_short_errors_supported=yes
24493else
24494        _pkg_short_errors_supported=no
24495fi
24496        if test $_pkg_short_errors_supported = yes; then
24497	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
24498        else
24499	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
24500        fi
24501	# Put the nasty error message in config.log where it belongs
24502	echo "$lua_PKG_ERRORS" >&5
24503
24504
24505pkg_failed=no
24506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
24507$as_echo_n "checking for lua... " >&6; }
24508
24509if test -n "$lua_CFLAGS"; then
24510    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
24511 elif test -n "$PKG_CONFIG"; then
24512    if test -n "$PKG_CONFIG" && \
24513    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
24514  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
24515  ac_status=$?
24516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24517  test $ac_status = 0; }; then
24518  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
24519		      test "x$?" != "x0" && pkg_failed=yes
24520else
24521  pkg_failed=yes
24522fi
24523 else
24524    pkg_failed=untried
24525fi
24526if test -n "$lua_LIBS"; then
24527    pkg_cv_lua_LIBS="$lua_LIBS"
24528 elif test -n "$PKG_CONFIG"; then
24529    if test -n "$PKG_CONFIG" && \
24530    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
24531  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
24532  ac_status=$?
24533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24534  test $ac_status = 0; }; then
24535  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
24536		      test "x$?" != "x0" && pkg_failed=yes
24537else
24538  pkg_failed=yes
24539fi
24540 else
24541    pkg_failed=untried
24542fi
24543
24544
24545
24546if test $pkg_failed = yes; then
24547   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24548$as_echo "no" >&6; }
24549
24550if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24551        _pkg_short_errors_supported=yes
24552else
24553        _pkg_short_errors_supported=no
24554fi
24555        if test $_pkg_short_errors_supported = yes; then
24556	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
24557        else
24558	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
24559        fi
24560	# Put the nasty error message in config.log where it belongs
24561	echo "$lua_PKG_ERRORS" >&5
24562
24563	if test "x$with_lua" = xyes; then :
24564  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
24565fi
24566elif test $pkg_failed = untried; then
24567     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24568$as_echo "no" >&6; }
24569	if test "x$with_lua" = xyes; then :
24570  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
24571fi
24572else
24573	lua_CFLAGS=$pkg_cv_lua_CFLAGS
24574	lua_LIBS=$pkg_cv_lua_LIBS
24575        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24576$as_echo "yes" >&6; }
24577
24578    if test "x$with_lua" = xdetect; then :
24579  with_lua='yes (found)'
24580fi
24581
24582
24583fi
24584elif test $pkg_failed = untried; then
24585     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24586$as_echo "no" >&6; }
24587
24588pkg_failed=no
24589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
24590$as_echo_n "checking for lua... " >&6; }
24591
24592if test -n "$lua_CFLAGS"; then
24593    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
24594 elif test -n "$PKG_CONFIG"; then
24595    if test -n "$PKG_CONFIG" && \
24596    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
24597  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
24598  ac_status=$?
24599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24600  test $ac_status = 0; }; then
24601  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
24602		      test "x$?" != "x0" && pkg_failed=yes
24603else
24604  pkg_failed=yes
24605fi
24606 else
24607    pkg_failed=untried
24608fi
24609if test -n "$lua_LIBS"; then
24610    pkg_cv_lua_LIBS="$lua_LIBS"
24611 elif test -n "$PKG_CONFIG"; then
24612    if test -n "$PKG_CONFIG" && \
24613    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
24614  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
24615  ac_status=$?
24616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24617  test $ac_status = 0; }; then
24618  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
24619		      test "x$?" != "x0" && pkg_failed=yes
24620else
24621  pkg_failed=yes
24622fi
24623 else
24624    pkg_failed=untried
24625fi
24626
24627
24628
24629if test $pkg_failed = yes; then
24630   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24631$as_echo "no" >&6; }
24632
24633if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24634        _pkg_short_errors_supported=yes
24635else
24636        _pkg_short_errors_supported=no
24637fi
24638        if test $_pkg_short_errors_supported = yes; then
24639	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
24640        else
24641	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
24642        fi
24643	# Put the nasty error message in config.log where it belongs
24644	echo "$lua_PKG_ERRORS" >&5
24645
24646	if test "x$with_lua" = xyes; then :
24647  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
24648fi
24649elif test $pkg_failed = untried; then
24650     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24651$as_echo "no" >&6; }
24652	if test "x$with_lua" = xyes; then :
24653  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
24654fi
24655else
24656	lua_CFLAGS=$pkg_cv_lua_CFLAGS
24657	lua_LIBS=$pkg_cv_lua_LIBS
24658        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24659$as_echo "yes" >&6; }
24660
24661    if test "x$with_lua" = xdetect; then :
24662  with_lua='yes (found)'
24663fi
24664
24665
24666fi
24667else
24668	lua_CFLAGS=$pkg_cv_lua_CFLAGS
24669	lua_LIBS=$pkg_cv_lua_LIBS
24670        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24671$as_echo "yes" >&6; }
24672
24673    if test "x$with_lua" = xdetect; then :
24674  with_lua='yes (found)'
24675fi
24676
24677
24678fi
24679else
24680	lua_CFLAGS=$pkg_cv_lua_CFLAGS
24681	lua_LIBS=$pkg_cv_lua_LIBS
24682        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24683$as_echo "yes" >&6; }
24684
24685    if test "x$with_lua" = xdetect; then :
24686  with_lua='yes (found)'
24687fi
24688
24689
24690fi
24691else
24692	lua_CFLAGS=$pkg_cv_lua_CFLAGS
24693	lua_LIBS=$pkg_cv_lua_LIBS
24694        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24695$as_echo "yes" >&6; }
24696
24697    if test "x$with_lua" = xdetect; then :
24698  with_lua='yes (found)'
24699fi
24700
24701
24702fi
24703elif test $pkg_failed = untried; then
24704     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24705$as_echo "no" >&6; }
24706
24707pkg_failed=no
24708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
24709$as_echo_n "checking for lua... " >&6; }
24710
24711if test -n "$lua_CFLAGS"; then
24712    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
24713 elif test -n "$PKG_CONFIG"; then
24714    if test -n "$PKG_CONFIG" && \
24715    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
24716  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
24717  ac_status=$?
24718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24719  test $ac_status = 0; }; then
24720  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
24721		      test "x$?" != "x0" && pkg_failed=yes
24722else
24723  pkg_failed=yes
24724fi
24725 else
24726    pkg_failed=untried
24727fi
24728if test -n "$lua_LIBS"; then
24729    pkg_cv_lua_LIBS="$lua_LIBS"
24730 elif test -n "$PKG_CONFIG"; then
24731    if test -n "$PKG_CONFIG" && \
24732    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
24733  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
24734  ac_status=$?
24735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24736  test $ac_status = 0; }; then
24737  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
24738		      test "x$?" != "x0" && pkg_failed=yes
24739else
24740  pkg_failed=yes
24741fi
24742 else
24743    pkg_failed=untried
24744fi
24745
24746
24747
24748if test $pkg_failed = yes; then
24749   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24750$as_echo "no" >&6; }
24751
24752if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24753        _pkg_short_errors_supported=yes
24754else
24755        _pkg_short_errors_supported=no
24756fi
24757        if test $_pkg_short_errors_supported = yes; then
24758	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
24759        else
24760	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
24761        fi
24762	# Put the nasty error message in config.log where it belongs
24763	echo "$lua_PKG_ERRORS" >&5
24764
24765
24766pkg_failed=no
24767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
24768$as_echo_n "checking for lua... " >&6; }
24769
24770if test -n "$lua_CFLAGS"; then
24771    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
24772 elif test -n "$PKG_CONFIG"; then
24773    if test -n "$PKG_CONFIG" && \
24774    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
24775  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
24776  ac_status=$?
24777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24778  test $ac_status = 0; }; then
24779  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
24780		      test "x$?" != "x0" && pkg_failed=yes
24781else
24782  pkg_failed=yes
24783fi
24784 else
24785    pkg_failed=untried
24786fi
24787if test -n "$lua_LIBS"; then
24788    pkg_cv_lua_LIBS="$lua_LIBS"
24789 elif test -n "$PKG_CONFIG"; then
24790    if test -n "$PKG_CONFIG" && \
24791    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
24792  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
24793  ac_status=$?
24794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24795  test $ac_status = 0; }; then
24796  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
24797		      test "x$?" != "x0" && pkg_failed=yes
24798else
24799  pkg_failed=yes
24800fi
24801 else
24802    pkg_failed=untried
24803fi
24804
24805
24806
24807if test $pkg_failed = yes; then
24808   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24809$as_echo "no" >&6; }
24810
24811if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24812        _pkg_short_errors_supported=yes
24813else
24814        _pkg_short_errors_supported=no
24815fi
24816        if test $_pkg_short_errors_supported = yes; then
24817	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
24818        else
24819	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
24820        fi
24821	# Put the nasty error message in config.log where it belongs
24822	echo "$lua_PKG_ERRORS" >&5
24823
24824
24825pkg_failed=no
24826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
24827$as_echo_n "checking for lua... " >&6; }
24828
24829if test -n "$lua_CFLAGS"; then
24830    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
24831 elif test -n "$PKG_CONFIG"; then
24832    if test -n "$PKG_CONFIG" && \
24833    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
24834  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
24835  ac_status=$?
24836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24837  test $ac_status = 0; }; then
24838  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
24839		      test "x$?" != "x0" && pkg_failed=yes
24840else
24841  pkg_failed=yes
24842fi
24843 else
24844    pkg_failed=untried
24845fi
24846if test -n "$lua_LIBS"; then
24847    pkg_cv_lua_LIBS="$lua_LIBS"
24848 elif test -n "$PKG_CONFIG"; then
24849    if test -n "$PKG_CONFIG" && \
24850    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
24851  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
24852  ac_status=$?
24853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24854  test $ac_status = 0; }; then
24855  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
24856		      test "x$?" != "x0" && pkg_failed=yes
24857else
24858  pkg_failed=yes
24859fi
24860 else
24861    pkg_failed=untried
24862fi
24863
24864
24865
24866if test $pkg_failed = yes; then
24867   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24868$as_echo "no" >&6; }
24869
24870if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24871        _pkg_short_errors_supported=yes
24872else
24873        _pkg_short_errors_supported=no
24874fi
24875        if test $_pkg_short_errors_supported = yes; then
24876	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
24877        else
24878	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
24879        fi
24880	# Put the nasty error message in config.log where it belongs
24881	echo "$lua_PKG_ERRORS" >&5
24882
24883
24884pkg_failed=no
24885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
24886$as_echo_n "checking for lua... " >&6; }
24887
24888if test -n "$lua_CFLAGS"; then
24889    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
24890 elif test -n "$PKG_CONFIG"; then
24891    if test -n "$PKG_CONFIG" && \
24892    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
24893  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
24894  ac_status=$?
24895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24896  test $ac_status = 0; }; then
24897  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
24898		      test "x$?" != "x0" && pkg_failed=yes
24899else
24900  pkg_failed=yes
24901fi
24902 else
24903    pkg_failed=untried
24904fi
24905if test -n "$lua_LIBS"; then
24906    pkg_cv_lua_LIBS="$lua_LIBS"
24907 elif test -n "$PKG_CONFIG"; then
24908    if test -n "$PKG_CONFIG" && \
24909    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
24910  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
24911  ac_status=$?
24912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24913  test $ac_status = 0; }; then
24914  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
24915		      test "x$?" != "x0" && pkg_failed=yes
24916else
24917  pkg_failed=yes
24918fi
24919 else
24920    pkg_failed=untried
24921fi
24922
24923
24924
24925if test $pkg_failed = yes; then
24926   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24927$as_echo "no" >&6; }
24928
24929if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24930        _pkg_short_errors_supported=yes
24931else
24932        _pkg_short_errors_supported=no
24933fi
24934        if test $_pkg_short_errors_supported = yes; then
24935	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
24936        else
24937	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
24938        fi
24939	# Put the nasty error message in config.log where it belongs
24940	echo "$lua_PKG_ERRORS" >&5
24941
24942	if test "x$with_lua" = xyes; then :
24943  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
24944fi
24945elif test $pkg_failed = untried; then
24946     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24947$as_echo "no" >&6; }
24948	if test "x$with_lua" = xyes; then :
24949  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
24950fi
24951else
24952	lua_CFLAGS=$pkg_cv_lua_CFLAGS
24953	lua_LIBS=$pkg_cv_lua_LIBS
24954        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24955$as_echo "yes" >&6; }
24956
24957    if test "x$with_lua" = xdetect; then :
24958  with_lua='yes (found)'
24959fi
24960
24961
24962fi
24963elif test $pkg_failed = untried; then
24964     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24965$as_echo "no" >&6; }
24966
24967pkg_failed=no
24968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
24969$as_echo_n "checking for lua... " >&6; }
24970
24971if test -n "$lua_CFLAGS"; then
24972    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
24973 elif test -n "$PKG_CONFIG"; then
24974    if test -n "$PKG_CONFIG" && \
24975    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
24976  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
24977  ac_status=$?
24978  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24979  test $ac_status = 0; }; then
24980  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
24981		      test "x$?" != "x0" && pkg_failed=yes
24982else
24983  pkg_failed=yes
24984fi
24985 else
24986    pkg_failed=untried
24987fi
24988if test -n "$lua_LIBS"; then
24989    pkg_cv_lua_LIBS="$lua_LIBS"
24990 elif test -n "$PKG_CONFIG"; then
24991    if test -n "$PKG_CONFIG" && \
24992    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
24993  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
24994  ac_status=$?
24995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24996  test $ac_status = 0; }; then
24997  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
24998		      test "x$?" != "x0" && pkg_failed=yes
24999else
25000  pkg_failed=yes
25001fi
25002 else
25003    pkg_failed=untried
25004fi
25005
25006
25007
25008if test $pkg_failed = yes; then
25009   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25010$as_echo "no" >&6; }
25011
25012if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25013        _pkg_short_errors_supported=yes
25014else
25015        _pkg_short_errors_supported=no
25016fi
25017        if test $_pkg_short_errors_supported = yes; then
25018	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
25019        else
25020	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
25021        fi
25022	# Put the nasty error message in config.log where it belongs
25023	echo "$lua_PKG_ERRORS" >&5
25024
25025	if test "x$with_lua" = xyes; then :
25026  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
25027fi
25028elif test $pkg_failed = untried; then
25029     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25030$as_echo "no" >&6; }
25031	if test "x$with_lua" = xyes; then :
25032  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
25033fi
25034else
25035	lua_CFLAGS=$pkg_cv_lua_CFLAGS
25036	lua_LIBS=$pkg_cv_lua_LIBS
25037        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25038$as_echo "yes" >&6; }
25039
25040    if test "x$with_lua" = xdetect; then :
25041  with_lua='yes (found)'
25042fi
25043
25044
25045fi
25046else
25047	lua_CFLAGS=$pkg_cv_lua_CFLAGS
25048	lua_LIBS=$pkg_cv_lua_LIBS
25049        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25050$as_echo "yes" >&6; }
25051
25052    if test "x$with_lua" = xdetect; then :
25053  with_lua='yes (found)'
25054fi
25055
25056
25057fi
25058elif test $pkg_failed = untried; then
25059     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25060$as_echo "no" >&6; }
25061
25062pkg_failed=no
25063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
25064$as_echo_n "checking for lua... " >&6; }
25065
25066if test -n "$lua_CFLAGS"; then
25067    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
25068 elif test -n "$PKG_CONFIG"; then
25069    if test -n "$PKG_CONFIG" && \
25070    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
25071  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
25072  ac_status=$?
25073  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25074  test $ac_status = 0; }; then
25075  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
25076		      test "x$?" != "x0" && pkg_failed=yes
25077else
25078  pkg_failed=yes
25079fi
25080 else
25081    pkg_failed=untried
25082fi
25083if test -n "$lua_LIBS"; then
25084    pkg_cv_lua_LIBS="$lua_LIBS"
25085 elif test -n "$PKG_CONFIG"; then
25086    if test -n "$PKG_CONFIG" && \
25087    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
25088  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
25089  ac_status=$?
25090  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25091  test $ac_status = 0; }; then
25092  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
25093		      test "x$?" != "x0" && pkg_failed=yes
25094else
25095  pkg_failed=yes
25096fi
25097 else
25098    pkg_failed=untried
25099fi
25100
25101
25102
25103if test $pkg_failed = yes; then
25104   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25105$as_echo "no" >&6; }
25106
25107if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25108        _pkg_short_errors_supported=yes
25109else
25110        _pkg_short_errors_supported=no
25111fi
25112        if test $_pkg_short_errors_supported = yes; then
25113	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
25114        else
25115	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
25116        fi
25117	# Put the nasty error message in config.log where it belongs
25118	echo "$lua_PKG_ERRORS" >&5
25119
25120
25121pkg_failed=no
25122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
25123$as_echo_n "checking for lua... " >&6; }
25124
25125if test -n "$lua_CFLAGS"; then
25126    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
25127 elif test -n "$PKG_CONFIG"; then
25128    if test -n "$PKG_CONFIG" && \
25129    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
25130  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
25131  ac_status=$?
25132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25133  test $ac_status = 0; }; then
25134  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
25135		      test "x$?" != "x0" && pkg_failed=yes
25136else
25137  pkg_failed=yes
25138fi
25139 else
25140    pkg_failed=untried
25141fi
25142if test -n "$lua_LIBS"; then
25143    pkg_cv_lua_LIBS="$lua_LIBS"
25144 elif test -n "$PKG_CONFIG"; then
25145    if test -n "$PKG_CONFIG" && \
25146    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
25147  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
25148  ac_status=$?
25149  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25150  test $ac_status = 0; }; then
25151  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
25152		      test "x$?" != "x0" && pkg_failed=yes
25153else
25154  pkg_failed=yes
25155fi
25156 else
25157    pkg_failed=untried
25158fi
25159
25160
25161
25162if test $pkg_failed = yes; then
25163   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25164$as_echo "no" >&6; }
25165
25166if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25167        _pkg_short_errors_supported=yes
25168else
25169        _pkg_short_errors_supported=no
25170fi
25171        if test $_pkg_short_errors_supported = yes; then
25172	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
25173        else
25174	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
25175        fi
25176	# Put the nasty error message in config.log where it belongs
25177	echo "$lua_PKG_ERRORS" >&5
25178
25179	if test "x$with_lua" = xyes; then :
25180  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
25181fi
25182elif test $pkg_failed = untried; then
25183     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25184$as_echo "no" >&6; }
25185	if test "x$with_lua" = xyes; then :
25186  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
25187fi
25188else
25189	lua_CFLAGS=$pkg_cv_lua_CFLAGS
25190	lua_LIBS=$pkg_cv_lua_LIBS
25191        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25192$as_echo "yes" >&6; }
25193
25194    if test "x$with_lua" = xdetect; then :
25195  with_lua='yes (found)'
25196fi
25197
25198
25199fi
25200elif test $pkg_failed = untried; then
25201     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25202$as_echo "no" >&6; }
25203
25204pkg_failed=no
25205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
25206$as_echo_n "checking for lua... " >&6; }
25207
25208if test -n "$lua_CFLAGS"; then
25209    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
25210 elif test -n "$PKG_CONFIG"; then
25211    if test -n "$PKG_CONFIG" && \
25212    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
25213  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
25214  ac_status=$?
25215  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25216  test $ac_status = 0; }; then
25217  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
25218		      test "x$?" != "x0" && pkg_failed=yes
25219else
25220  pkg_failed=yes
25221fi
25222 else
25223    pkg_failed=untried
25224fi
25225if test -n "$lua_LIBS"; then
25226    pkg_cv_lua_LIBS="$lua_LIBS"
25227 elif test -n "$PKG_CONFIG"; then
25228    if test -n "$PKG_CONFIG" && \
25229    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
25230  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
25231  ac_status=$?
25232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25233  test $ac_status = 0; }; then
25234  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
25235		      test "x$?" != "x0" && pkg_failed=yes
25236else
25237  pkg_failed=yes
25238fi
25239 else
25240    pkg_failed=untried
25241fi
25242
25243
25244
25245if test $pkg_failed = yes; then
25246   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25247$as_echo "no" >&6; }
25248
25249if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25250        _pkg_short_errors_supported=yes
25251else
25252        _pkg_short_errors_supported=no
25253fi
25254        if test $_pkg_short_errors_supported = yes; then
25255	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
25256        else
25257	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
25258        fi
25259	# Put the nasty error message in config.log where it belongs
25260	echo "$lua_PKG_ERRORS" >&5
25261
25262	if test "x$with_lua" = xyes; then :
25263  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
25264fi
25265elif test $pkg_failed = untried; then
25266     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25267$as_echo "no" >&6; }
25268	if test "x$with_lua" = xyes; then :
25269  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
25270fi
25271else
25272	lua_CFLAGS=$pkg_cv_lua_CFLAGS
25273	lua_LIBS=$pkg_cv_lua_LIBS
25274        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25275$as_echo "yes" >&6; }
25276
25277    if test "x$with_lua" = xdetect; then :
25278  with_lua='yes (found)'
25279fi
25280
25281
25282fi
25283else
25284	lua_CFLAGS=$pkg_cv_lua_CFLAGS
25285	lua_LIBS=$pkg_cv_lua_LIBS
25286        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25287$as_echo "yes" >&6; }
25288
25289    if test "x$with_lua" = xdetect; then :
25290  with_lua='yes (found)'
25291fi
25292
25293
25294fi
25295else
25296	lua_CFLAGS=$pkg_cv_lua_CFLAGS
25297	lua_LIBS=$pkg_cv_lua_LIBS
25298        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25299$as_echo "yes" >&6; }
25300
25301    if test "x$with_lua" = xdetect; then :
25302  with_lua='yes (found)'
25303fi
25304
25305
25306fi
25307elif test $pkg_failed = untried; then
25308     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25309$as_echo "no" >&6; }
25310
25311pkg_failed=no
25312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
25313$as_echo_n "checking for lua... " >&6; }
25314
25315if test -n "$lua_CFLAGS"; then
25316    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
25317 elif test -n "$PKG_CONFIG"; then
25318    if test -n "$PKG_CONFIG" && \
25319    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
25320  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
25321  ac_status=$?
25322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25323  test $ac_status = 0; }; then
25324  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
25325		      test "x$?" != "x0" && pkg_failed=yes
25326else
25327  pkg_failed=yes
25328fi
25329 else
25330    pkg_failed=untried
25331fi
25332if test -n "$lua_LIBS"; then
25333    pkg_cv_lua_LIBS="$lua_LIBS"
25334 elif test -n "$PKG_CONFIG"; then
25335    if test -n "$PKG_CONFIG" && \
25336    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
25337  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
25338  ac_status=$?
25339  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25340  test $ac_status = 0; }; then
25341  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
25342		      test "x$?" != "x0" && pkg_failed=yes
25343else
25344  pkg_failed=yes
25345fi
25346 else
25347    pkg_failed=untried
25348fi
25349
25350
25351
25352if test $pkg_failed = yes; then
25353   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25354$as_echo "no" >&6; }
25355
25356if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25357        _pkg_short_errors_supported=yes
25358else
25359        _pkg_short_errors_supported=no
25360fi
25361        if test $_pkg_short_errors_supported = yes; then
25362	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
25363        else
25364	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
25365        fi
25366	# Put the nasty error message in config.log where it belongs
25367	echo "$lua_PKG_ERRORS" >&5
25368
25369
25370pkg_failed=no
25371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
25372$as_echo_n "checking for lua... " >&6; }
25373
25374if test -n "$lua_CFLAGS"; then
25375    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
25376 elif test -n "$PKG_CONFIG"; then
25377    if test -n "$PKG_CONFIG" && \
25378    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
25379  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
25380  ac_status=$?
25381  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25382  test $ac_status = 0; }; then
25383  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
25384		      test "x$?" != "x0" && pkg_failed=yes
25385else
25386  pkg_failed=yes
25387fi
25388 else
25389    pkg_failed=untried
25390fi
25391if test -n "$lua_LIBS"; then
25392    pkg_cv_lua_LIBS="$lua_LIBS"
25393 elif test -n "$PKG_CONFIG"; then
25394    if test -n "$PKG_CONFIG" && \
25395    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
25396  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
25397  ac_status=$?
25398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25399  test $ac_status = 0; }; then
25400  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
25401		      test "x$?" != "x0" && pkg_failed=yes
25402else
25403  pkg_failed=yes
25404fi
25405 else
25406    pkg_failed=untried
25407fi
25408
25409
25410
25411if test $pkg_failed = yes; then
25412   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25413$as_echo "no" >&6; }
25414
25415if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25416        _pkg_short_errors_supported=yes
25417else
25418        _pkg_short_errors_supported=no
25419fi
25420        if test $_pkg_short_errors_supported = yes; then
25421	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
25422        else
25423	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
25424        fi
25425	# Put the nasty error message in config.log where it belongs
25426	echo "$lua_PKG_ERRORS" >&5
25427
25428
25429pkg_failed=no
25430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
25431$as_echo_n "checking for lua... " >&6; }
25432
25433if test -n "$lua_CFLAGS"; then
25434    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
25435 elif test -n "$PKG_CONFIG"; then
25436    if test -n "$PKG_CONFIG" && \
25437    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
25438  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
25439  ac_status=$?
25440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25441  test $ac_status = 0; }; then
25442  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
25443		      test "x$?" != "x0" && pkg_failed=yes
25444else
25445  pkg_failed=yes
25446fi
25447 else
25448    pkg_failed=untried
25449fi
25450if test -n "$lua_LIBS"; then
25451    pkg_cv_lua_LIBS="$lua_LIBS"
25452 elif test -n "$PKG_CONFIG"; then
25453    if test -n "$PKG_CONFIG" && \
25454    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
25455  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
25456  ac_status=$?
25457  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25458  test $ac_status = 0; }; then
25459  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
25460		      test "x$?" != "x0" && pkg_failed=yes
25461else
25462  pkg_failed=yes
25463fi
25464 else
25465    pkg_failed=untried
25466fi
25467
25468
25469
25470if test $pkg_failed = yes; then
25471   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25472$as_echo "no" >&6; }
25473
25474if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25475        _pkg_short_errors_supported=yes
25476else
25477        _pkg_short_errors_supported=no
25478fi
25479        if test $_pkg_short_errors_supported = yes; then
25480	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
25481        else
25482	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
25483        fi
25484	# Put the nasty error message in config.log where it belongs
25485	echo "$lua_PKG_ERRORS" >&5
25486
25487	if test "x$with_lua" = xyes; then :
25488  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
25489fi
25490elif test $pkg_failed = untried; then
25491     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25492$as_echo "no" >&6; }
25493	if test "x$with_lua" = xyes; then :
25494  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
25495fi
25496else
25497	lua_CFLAGS=$pkg_cv_lua_CFLAGS
25498	lua_LIBS=$pkg_cv_lua_LIBS
25499        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25500$as_echo "yes" >&6; }
25501
25502    if test "x$with_lua" = xdetect; then :
25503  with_lua='yes (found)'
25504fi
25505
25506
25507fi
25508elif test $pkg_failed = untried; then
25509     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25510$as_echo "no" >&6; }
25511
25512pkg_failed=no
25513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
25514$as_echo_n "checking for lua... " >&6; }
25515
25516if test -n "$lua_CFLAGS"; then
25517    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
25518 elif test -n "$PKG_CONFIG"; then
25519    if test -n "$PKG_CONFIG" && \
25520    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
25521  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
25522  ac_status=$?
25523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25524  test $ac_status = 0; }; then
25525  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
25526		      test "x$?" != "x0" && pkg_failed=yes
25527else
25528  pkg_failed=yes
25529fi
25530 else
25531    pkg_failed=untried
25532fi
25533if test -n "$lua_LIBS"; then
25534    pkg_cv_lua_LIBS="$lua_LIBS"
25535 elif test -n "$PKG_CONFIG"; then
25536    if test -n "$PKG_CONFIG" && \
25537    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
25538  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
25539  ac_status=$?
25540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25541  test $ac_status = 0; }; then
25542  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
25543		      test "x$?" != "x0" && pkg_failed=yes
25544else
25545  pkg_failed=yes
25546fi
25547 else
25548    pkg_failed=untried
25549fi
25550
25551
25552
25553if test $pkg_failed = yes; then
25554   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25555$as_echo "no" >&6; }
25556
25557if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25558        _pkg_short_errors_supported=yes
25559else
25560        _pkg_short_errors_supported=no
25561fi
25562        if test $_pkg_short_errors_supported = yes; then
25563	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
25564        else
25565	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
25566        fi
25567	# Put the nasty error message in config.log where it belongs
25568	echo "$lua_PKG_ERRORS" >&5
25569
25570	if test "x$with_lua" = xyes; then :
25571  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
25572fi
25573elif test $pkg_failed = untried; then
25574     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25575$as_echo "no" >&6; }
25576	if test "x$with_lua" = xyes; then :
25577  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
25578fi
25579else
25580	lua_CFLAGS=$pkg_cv_lua_CFLAGS
25581	lua_LIBS=$pkg_cv_lua_LIBS
25582        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25583$as_echo "yes" >&6; }
25584
25585    if test "x$with_lua" = xdetect; then :
25586  with_lua='yes (found)'
25587fi
25588
25589
25590fi
25591else
25592	lua_CFLAGS=$pkg_cv_lua_CFLAGS
25593	lua_LIBS=$pkg_cv_lua_LIBS
25594        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25595$as_echo "yes" >&6; }
25596
25597    if test "x$with_lua" = xdetect; then :
25598  with_lua='yes (found)'
25599fi
25600
25601
25602fi
25603elif test $pkg_failed = untried; then
25604     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25605$as_echo "no" >&6; }
25606
25607pkg_failed=no
25608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
25609$as_echo_n "checking for lua... " >&6; }
25610
25611if test -n "$lua_CFLAGS"; then
25612    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
25613 elif test -n "$PKG_CONFIG"; then
25614    if test -n "$PKG_CONFIG" && \
25615    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
25616  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
25617  ac_status=$?
25618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25619  test $ac_status = 0; }; then
25620  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
25621		      test "x$?" != "x0" && pkg_failed=yes
25622else
25623  pkg_failed=yes
25624fi
25625 else
25626    pkg_failed=untried
25627fi
25628if test -n "$lua_LIBS"; then
25629    pkg_cv_lua_LIBS="$lua_LIBS"
25630 elif test -n "$PKG_CONFIG"; then
25631    if test -n "$PKG_CONFIG" && \
25632    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
25633  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
25634  ac_status=$?
25635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25636  test $ac_status = 0; }; then
25637  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
25638		      test "x$?" != "x0" && pkg_failed=yes
25639else
25640  pkg_failed=yes
25641fi
25642 else
25643    pkg_failed=untried
25644fi
25645
25646
25647
25648if test $pkg_failed = yes; then
25649   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25650$as_echo "no" >&6; }
25651
25652if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25653        _pkg_short_errors_supported=yes
25654else
25655        _pkg_short_errors_supported=no
25656fi
25657        if test $_pkg_short_errors_supported = yes; then
25658	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
25659        else
25660	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
25661        fi
25662	# Put the nasty error message in config.log where it belongs
25663	echo "$lua_PKG_ERRORS" >&5
25664
25665
25666pkg_failed=no
25667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
25668$as_echo_n "checking for lua... " >&6; }
25669
25670if test -n "$lua_CFLAGS"; then
25671    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
25672 elif test -n "$PKG_CONFIG"; then
25673    if test -n "$PKG_CONFIG" && \
25674    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
25675  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
25676  ac_status=$?
25677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25678  test $ac_status = 0; }; then
25679  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
25680		      test "x$?" != "x0" && pkg_failed=yes
25681else
25682  pkg_failed=yes
25683fi
25684 else
25685    pkg_failed=untried
25686fi
25687if test -n "$lua_LIBS"; then
25688    pkg_cv_lua_LIBS="$lua_LIBS"
25689 elif test -n "$PKG_CONFIG"; then
25690    if test -n "$PKG_CONFIG" && \
25691    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
25692  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
25693  ac_status=$?
25694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25695  test $ac_status = 0; }; then
25696  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
25697		      test "x$?" != "x0" && pkg_failed=yes
25698else
25699  pkg_failed=yes
25700fi
25701 else
25702    pkg_failed=untried
25703fi
25704
25705
25706
25707if test $pkg_failed = yes; then
25708   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25709$as_echo "no" >&6; }
25710
25711if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25712        _pkg_short_errors_supported=yes
25713else
25714        _pkg_short_errors_supported=no
25715fi
25716        if test $_pkg_short_errors_supported = yes; then
25717	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
25718        else
25719	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
25720        fi
25721	# Put the nasty error message in config.log where it belongs
25722	echo "$lua_PKG_ERRORS" >&5
25723
25724	if test "x$with_lua" = xyes; then :
25725  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
25726fi
25727elif test $pkg_failed = untried; then
25728     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25729$as_echo "no" >&6; }
25730	if test "x$with_lua" = xyes; then :
25731  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
25732fi
25733else
25734	lua_CFLAGS=$pkg_cv_lua_CFLAGS
25735	lua_LIBS=$pkg_cv_lua_LIBS
25736        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25737$as_echo "yes" >&6; }
25738
25739    if test "x$with_lua" = xdetect; then :
25740  with_lua='yes (found)'
25741fi
25742
25743
25744fi
25745elif test $pkg_failed = untried; then
25746     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25747$as_echo "no" >&6; }
25748
25749pkg_failed=no
25750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
25751$as_echo_n "checking for lua... " >&6; }
25752
25753if test -n "$lua_CFLAGS"; then
25754    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
25755 elif test -n "$PKG_CONFIG"; then
25756    if test -n "$PKG_CONFIG" && \
25757    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
25758  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
25759  ac_status=$?
25760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25761  test $ac_status = 0; }; then
25762  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
25763		      test "x$?" != "x0" && pkg_failed=yes
25764else
25765  pkg_failed=yes
25766fi
25767 else
25768    pkg_failed=untried
25769fi
25770if test -n "$lua_LIBS"; then
25771    pkg_cv_lua_LIBS="$lua_LIBS"
25772 elif test -n "$PKG_CONFIG"; then
25773    if test -n "$PKG_CONFIG" && \
25774    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
25775  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
25776  ac_status=$?
25777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25778  test $ac_status = 0; }; then
25779  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
25780		      test "x$?" != "x0" && pkg_failed=yes
25781else
25782  pkg_failed=yes
25783fi
25784 else
25785    pkg_failed=untried
25786fi
25787
25788
25789
25790if test $pkg_failed = yes; then
25791   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25792$as_echo "no" >&6; }
25793
25794if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25795        _pkg_short_errors_supported=yes
25796else
25797        _pkg_short_errors_supported=no
25798fi
25799        if test $_pkg_short_errors_supported = yes; then
25800	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
25801        else
25802	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
25803        fi
25804	# Put the nasty error message in config.log where it belongs
25805	echo "$lua_PKG_ERRORS" >&5
25806
25807	if test "x$with_lua" = xyes; then :
25808  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
25809fi
25810elif test $pkg_failed = untried; then
25811     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25812$as_echo "no" >&6; }
25813	if test "x$with_lua" = xyes; then :
25814  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
25815fi
25816else
25817	lua_CFLAGS=$pkg_cv_lua_CFLAGS
25818	lua_LIBS=$pkg_cv_lua_LIBS
25819        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25820$as_echo "yes" >&6; }
25821
25822    if test "x$with_lua" = xdetect; then :
25823  with_lua='yes (found)'
25824fi
25825
25826
25827fi
25828else
25829	lua_CFLAGS=$pkg_cv_lua_CFLAGS
25830	lua_LIBS=$pkg_cv_lua_LIBS
25831        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25832$as_echo "yes" >&6; }
25833
25834    if test "x$with_lua" = xdetect; then :
25835  with_lua='yes (found)'
25836fi
25837
25838
25839fi
25840else
25841	lua_CFLAGS=$pkg_cv_lua_CFLAGS
25842	lua_LIBS=$pkg_cv_lua_LIBS
25843        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25844$as_echo "yes" >&6; }
25845
25846    if test "x$with_lua" = xdetect; then :
25847  with_lua='yes (found)'
25848fi
25849
25850
25851fi
25852else
25853	lua_CFLAGS=$pkg_cv_lua_CFLAGS
25854	lua_LIBS=$pkg_cv_lua_LIBS
25855        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25856$as_echo "yes" >&6; }
25857
25858    if test "x$with_lua" = xdetect; then :
25859  with_lua='yes (found)'
25860fi
25861
25862
25863fi
25864else
25865	lua_CFLAGS=$pkg_cv_lua_CFLAGS
25866	lua_LIBS=$pkg_cv_lua_LIBS
25867        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25868$as_echo "yes" >&6; }
25869
25870    if test "x$with_lua" = xdetect; then :
25871  with_lua='yes (found)'
25872fi
25873
25874
25875fi
25876else
25877	lua_CFLAGS=$pkg_cv_lua_CFLAGS
25878	lua_LIBS=$pkg_cv_lua_LIBS
25879        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25880$as_echo "yes" >&6; }
25881
25882    if test "x$with_lua" = xdetect; then :
25883  with_lua='yes (found)'
25884fi
25885
25886
25887fi
25888elif test $pkg_failed = untried; then
25889     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25890$as_echo "no" >&6; }
25891
25892pkg_failed=no
25893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
25894$as_echo_n "checking for lua... " >&6; }
25895
25896if test -n "$lua_CFLAGS"; then
25897    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
25898 elif test -n "$PKG_CONFIG"; then
25899    if test -n "$PKG_CONFIG" && \
25900    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
25901  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
25902  ac_status=$?
25903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25904  test $ac_status = 0; }; then
25905  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
25906		      test "x$?" != "x0" && pkg_failed=yes
25907else
25908  pkg_failed=yes
25909fi
25910 else
25911    pkg_failed=untried
25912fi
25913if test -n "$lua_LIBS"; then
25914    pkg_cv_lua_LIBS="$lua_LIBS"
25915 elif test -n "$PKG_CONFIG"; then
25916    if test -n "$PKG_CONFIG" && \
25917    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
25918  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
25919  ac_status=$?
25920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25921  test $ac_status = 0; }; then
25922  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
25923		      test "x$?" != "x0" && pkg_failed=yes
25924else
25925  pkg_failed=yes
25926fi
25927 else
25928    pkg_failed=untried
25929fi
25930
25931
25932
25933if test $pkg_failed = yes; then
25934   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25935$as_echo "no" >&6; }
25936
25937if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25938        _pkg_short_errors_supported=yes
25939else
25940        _pkg_short_errors_supported=no
25941fi
25942        if test $_pkg_short_errors_supported = yes; then
25943	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
25944        else
25945	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
25946        fi
25947	# Put the nasty error message in config.log where it belongs
25948	echo "$lua_PKG_ERRORS" >&5
25949
25950
25951pkg_failed=no
25952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
25953$as_echo_n "checking for lua... " >&6; }
25954
25955if test -n "$lua_CFLAGS"; then
25956    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
25957 elif test -n "$PKG_CONFIG"; then
25958    if test -n "$PKG_CONFIG" && \
25959    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
25960  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
25961  ac_status=$?
25962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25963  test $ac_status = 0; }; then
25964  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
25965		      test "x$?" != "x0" && pkg_failed=yes
25966else
25967  pkg_failed=yes
25968fi
25969 else
25970    pkg_failed=untried
25971fi
25972if test -n "$lua_LIBS"; then
25973    pkg_cv_lua_LIBS="$lua_LIBS"
25974 elif test -n "$PKG_CONFIG"; then
25975    if test -n "$PKG_CONFIG" && \
25976    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
25977  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
25978  ac_status=$?
25979  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25980  test $ac_status = 0; }; then
25981  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
25982		      test "x$?" != "x0" && pkg_failed=yes
25983else
25984  pkg_failed=yes
25985fi
25986 else
25987    pkg_failed=untried
25988fi
25989
25990
25991
25992if test $pkg_failed = yes; then
25993   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25994$as_echo "no" >&6; }
25995
25996if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25997        _pkg_short_errors_supported=yes
25998else
25999        _pkg_short_errors_supported=no
26000fi
26001        if test $_pkg_short_errors_supported = yes; then
26002	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
26003        else
26004	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
26005        fi
26006	# Put the nasty error message in config.log where it belongs
26007	echo "$lua_PKG_ERRORS" >&5
26008
26009
26010pkg_failed=no
26011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
26012$as_echo_n "checking for lua... " >&6; }
26013
26014if test -n "$lua_CFLAGS"; then
26015    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
26016 elif test -n "$PKG_CONFIG"; then
26017    if test -n "$PKG_CONFIG" && \
26018    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
26019  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
26020  ac_status=$?
26021  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26022  test $ac_status = 0; }; then
26023  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
26024		      test "x$?" != "x0" && pkg_failed=yes
26025else
26026  pkg_failed=yes
26027fi
26028 else
26029    pkg_failed=untried
26030fi
26031if test -n "$lua_LIBS"; then
26032    pkg_cv_lua_LIBS="$lua_LIBS"
26033 elif test -n "$PKG_CONFIG"; then
26034    if test -n "$PKG_CONFIG" && \
26035    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
26036  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
26037  ac_status=$?
26038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26039  test $ac_status = 0; }; then
26040  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
26041		      test "x$?" != "x0" && pkg_failed=yes
26042else
26043  pkg_failed=yes
26044fi
26045 else
26046    pkg_failed=untried
26047fi
26048
26049
26050
26051if test $pkg_failed = yes; then
26052   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26053$as_echo "no" >&6; }
26054
26055if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26056        _pkg_short_errors_supported=yes
26057else
26058        _pkg_short_errors_supported=no
26059fi
26060        if test $_pkg_short_errors_supported = yes; then
26061	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
26062        else
26063	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
26064        fi
26065	# Put the nasty error message in config.log where it belongs
26066	echo "$lua_PKG_ERRORS" >&5
26067
26068
26069pkg_failed=no
26070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
26071$as_echo_n "checking for lua... " >&6; }
26072
26073if test -n "$lua_CFLAGS"; then
26074    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
26075 elif test -n "$PKG_CONFIG"; then
26076    if test -n "$PKG_CONFIG" && \
26077    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
26078  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
26079  ac_status=$?
26080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26081  test $ac_status = 0; }; then
26082  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
26083		      test "x$?" != "x0" && pkg_failed=yes
26084else
26085  pkg_failed=yes
26086fi
26087 else
26088    pkg_failed=untried
26089fi
26090if test -n "$lua_LIBS"; then
26091    pkg_cv_lua_LIBS="$lua_LIBS"
26092 elif test -n "$PKG_CONFIG"; then
26093    if test -n "$PKG_CONFIG" && \
26094    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
26095  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
26096  ac_status=$?
26097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26098  test $ac_status = 0; }; then
26099  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
26100		      test "x$?" != "x0" && pkg_failed=yes
26101else
26102  pkg_failed=yes
26103fi
26104 else
26105    pkg_failed=untried
26106fi
26107
26108
26109
26110if test $pkg_failed = yes; then
26111   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26112$as_echo "no" >&6; }
26113
26114if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26115        _pkg_short_errors_supported=yes
26116else
26117        _pkg_short_errors_supported=no
26118fi
26119        if test $_pkg_short_errors_supported = yes; then
26120	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
26121        else
26122	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
26123        fi
26124	# Put the nasty error message in config.log where it belongs
26125	echo "$lua_PKG_ERRORS" >&5
26126
26127
26128pkg_failed=no
26129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
26130$as_echo_n "checking for lua... " >&6; }
26131
26132if test -n "$lua_CFLAGS"; then
26133    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
26134 elif test -n "$PKG_CONFIG"; then
26135    if test -n "$PKG_CONFIG" && \
26136    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
26137  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
26138  ac_status=$?
26139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26140  test $ac_status = 0; }; then
26141  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
26142		      test "x$?" != "x0" && pkg_failed=yes
26143else
26144  pkg_failed=yes
26145fi
26146 else
26147    pkg_failed=untried
26148fi
26149if test -n "$lua_LIBS"; then
26150    pkg_cv_lua_LIBS="$lua_LIBS"
26151 elif test -n "$PKG_CONFIG"; then
26152    if test -n "$PKG_CONFIG" && \
26153    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
26154  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
26155  ac_status=$?
26156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26157  test $ac_status = 0; }; then
26158  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
26159		      test "x$?" != "x0" && pkg_failed=yes
26160else
26161  pkg_failed=yes
26162fi
26163 else
26164    pkg_failed=untried
26165fi
26166
26167
26168
26169if test $pkg_failed = yes; then
26170   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26171$as_echo "no" >&6; }
26172
26173if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26174        _pkg_short_errors_supported=yes
26175else
26176        _pkg_short_errors_supported=no
26177fi
26178        if test $_pkg_short_errors_supported = yes; then
26179	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
26180        else
26181	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
26182        fi
26183	# Put the nasty error message in config.log where it belongs
26184	echo "$lua_PKG_ERRORS" >&5
26185
26186
26187pkg_failed=no
26188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
26189$as_echo_n "checking for lua... " >&6; }
26190
26191if test -n "$lua_CFLAGS"; then
26192    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
26193 elif test -n "$PKG_CONFIG"; then
26194    if test -n "$PKG_CONFIG" && \
26195    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
26196  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
26197  ac_status=$?
26198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26199  test $ac_status = 0; }; then
26200  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
26201		      test "x$?" != "x0" && pkg_failed=yes
26202else
26203  pkg_failed=yes
26204fi
26205 else
26206    pkg_failed=untried
26207fi
26208if test -n "$lua_LIBS"; then
26209    pkg_cv_lua_LIBS="$lua_LIBS"
26210 elif test -n "$PKG_CONFIG"; then
26211    if test -n "$PKG_CONFIG" && \
26212    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
26213  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
26214  ac_status=$?
26215  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26216  test $ac_status = 0; }; then
26217  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
26218		      test "x$?" != "x0" && pkg_failed=yes
26219else
26220  pkg_failed=yes
26221fi
26222 else
26223    pkg_failed=untried
26224fi
26225
26226
26227
26228if test $pkg_failed = yes; then
26229   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26230$as_echo "no" >&6; }
26231
26232if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26233        _pkg_short_errors_supported=yes
26234else
26235        _pkg_short_errors_supported=no
26236fi
26237        if test $_pkg_short_errors_supported = yes; then
26238	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
26239        else
26240	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
26241        fi
26242	# Put the nasty error message in config.log where it belongs
26243	echo "$lua_PKG_ERRORS" >&5
26244
26245	if test "x$with_lua" = xyes; then :
26246  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
26247fi
26248elif test $pkg_failed = untried; then
26249     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26250$as_echo "no" >&6; }
26251	if test "x$with_lua" = xyes; then :
26252  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
26253fi
26254else
26255	lua_CFLAGS=$pkg_cv_lua_CFLAGS
26256	lua_LIBS=$pkg_cv_lua_LIBS
26257        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26258$as_echo "yes" >&6; }
26259
26260    if test "x$with_lua" = xdetect; then :
26261  with_lua='yes (found)'
26262fi
26263
26264
26265fi
26266elif test $pkg_failed = untried; then
26267     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26268$as_echo "no" >&6; }
26269
26270pkg_failed=no
26271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
26272$as_echo_n "checking for lua... " >&6; }
26273
26274if test -n "$lua_CFLAGS"; then
26275    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
26276 elif test -n "$PKG_CONFIG"; then
26277    if test -n "$PKG_CONFIG" && \
26278    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
26279  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
26280  ac_status=$?
26281  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26282  test $ac_status = 0; }; then
26283  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
26284		      test "x$?" != "x0" && pkg_failed=yes
26285else
26286  pkg_failed=yes
26287fi
26288 else
26289    pkg_failed=untried
26290fi
26291if test -n "$lua_LIBS"; then
26292    pkg_cv_lua_LIBS="$lua_LIBS"
26293 elif test -n "$PKG_CONFIG"; then
26294    if test -n "$PKG_CONFIG" && \
26295    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
26296  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
26297  ac_status=$?
26298  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26299  test $ac_status = 0; }; then
26300  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
26301		      test "x$?" != "x0" && pkg_failed=yes
26302else
26303  pkg_failed=yes
26304fi
26305 else
26306    pkg_failed=untried
26307fi
26308
26309
26310
26311if test $pkg_failed = yes; then
26312   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26313$as_echo "no" >&6; }
26314
26315if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26316        _pkg_short_errors_supported=yes
26317else
26318        _pkg_short_errors_supported=no
26319fi
26320        if test $_pkg_short_errors_supported = yes; then
26321	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
26322        else
26323	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
26324        fi
26325	# Put the nasty error message in config.log where it belongs
26326	echo "$lua_PKG_ERRORS" >&5
26327
26328	if test "x$with_lua" = xyes; then :
26329  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
26330fi
26331elif test $pkg_failed = untried; then
26332     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26333$as_echo "no" >&6; }
26334	if test "x$with_lua" = xyes; then :
26335  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
26336fi
26337else
26338	lua_CFLAGS=$pkg_cv_lua_CFLAGS
26339	lua_LIBS=$pkg_cv_lua_LIBS
26340        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26341$as_echo "yes" >&6; }
26342
26343    if test "x$with_lua" = xdetect; then :
26344  with_lua='yes (found)'
26345fi
26346
26347
26348fi
26349else
26350	lua_CFLAGS=$pkg_cv_lua_CFLAGS
26351	lua_LIBS=$pkg_cv_lua_LIBS
26352        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26353$as_echo "yes" >&6; }
26354
26355    if test "x$with_lua" = xdetect; then :
26356  with_lua='yes (found)'
26357fi
26358
26359
26360fi
26361elif test $pkg_failed = untried; then
26362     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26363$as_echo "no" >&6; }
26364
26365pkg_failed=no
26366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
26367$as_echo_n "checking for lua... " >&6; }
26368
26369if test -n "$lua_CFLAGS"; then
26370    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
26371 elif test -n "$PKG_CONFIG"; then
26372    if test -n "$PKG_CONFIG" && \
26373    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
26374  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
26375  ac_status=$?
26376  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26377  test $ac_status = 0; }; then
26378  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
26379		      test "x$?" != "x0" && pkg_failed=yes
26380else
26381  pkg_failed=yes
26382fi
26383 else
26384    pkg_failed=untried
26385fi
26386if test -n "$lua_LIBS"; then
26387    pkg_cv_lua_LIBS="$lua_LIBS"
26388 elif test -n "$PKG_CONFIG"; then
26389    if test -n "$PKG_CONFIG" && \
26390    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
26391  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
26392  ac_status=$?
26393  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26394  test $ac_status = 0; }; then
26395  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
26396		      test "x$?" != "x0" && pkg_failed=yes
26397else
26398  pkg_failed=yes
26399fi
26400 else
26401    pkg_failed=untried
26402fi
26403
26404
26405
26406if test $pkg_failed = yes; then
26407   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26408$as_echo "no" >&6; }
26409
26410if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26411        _pkg_short_errors_supported=yes
26412else
26413        _pkg_short_errors_supported=no
26414fi
26415        if test $_pkg_short_errors_supported = yes; then
26416	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
26417        else
26418	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
26419        fi
26420	# Put the nasty error message in config.log where it belongs
26421	echo "$lua_PKG_ERRORS" >&5
26422
26423
26424pkg_failed=no
26425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
26426$as_echo_n "checking for lua... " >&6; }
26427
26428if test -n "$lua_CFLAGS"; then
26429    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
26430 elif test -n "$PKG_CONFIG"; then
26431    if test -n "$PKG_CONFIG" && \
26432    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
26433  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
26434  ac_status=$?
26435  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26436  test $ac_status = 0; }; then
26437  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
26438		      test "x$?" != "x0" && pkg_failed=yes
26439else
26440  pkg_failed=yes
26441fi
26442 else
26443    pkg_failed=untried
26444fi
26445if test -n "$lua_LIBS"; then
26446    pkg_cv_lua_LIBS="$lua_LIBS"
26447 elif test -n "$PKG_CONFIG"; then
26448    if test -n "$PKG_CONFIG" && \
26449    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
26450  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
26451  ac_status=$?
26452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26453  test $ac_status = 0; }; then
26454  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
26455		      test "x$?" != "x0" && pkg_failed=yes
26456else
26457  pkg_failed=yes
26458fi
26459 else
26460    pkg_failed=untried
26461fi
26462
26463
26464
26465if test $pkg_failed = yes; then
26466   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26467$as_echo "no" >&6; }
26468
26469if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26470        _pkg_short_errors_supported=yes
26471else
26472        _pkg_short_errors_supported=no
26473fi
26474        if test $_pkg_short_errors_supported = yes; then
26475	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
26476        else
26477	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
26478        fi
26479	# Put the nasty error message in config.log where it belongs
26480	echo "$lua_PKG_ERRORS" >&5
26481
26482	if test "x$with_lua" = xyes; then :
26483  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
26484fi
26485elif test $pkg_failed = untried; then
26486     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26487$as_echo "no" >&6; }
26488	if test "x$with_lua" = xyes; then :
26489  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
26490fi
26491else
26492	lua_CFLAGS=$pkg_cv_lua_CFLAGS
26493	lua_LIBS=$pkg_cv_lua_LIBS
26494        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26495$as_echo "yes" >&6; }
26496
26497    if test "x$with_lua" = xdetect; then :
26498  with_lua='yes (found)'
26499fi
26500
26501
26502fi
26503elif test $pkg_failed = untried; then
26504     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26505$as_echo "no" >&6; }
26506
26507pkg_failed=no
26508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
26509$as_echo_n "checking for lua... " >&6; }
26510
26511if test -n "$lua_CFLAGS"; then
26512    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
26513 elif test -n "$PKG_CONFIG"; then
26514    if test -n "$PKG_CONFIG" && \
26515    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
26516  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
26517  ac_status=$?
26518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26519  test $ac_status = 0; }; then
26520  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
26521		      test "x$?" != "x0" && pkg_failed=yes
26522else
26523  pkg_failed=yes
26524fi
26525 else
26526    pkg_failed=untried
26527fi
26528if test -n "$lua_LIBS"; then
26529    pkg_cv_lua_LIBS="$lua_LIBS"
26530 elif test -n "$PKG_CONFIG"; then
26531    if test -n "$PKG_CONFIG" && \
26532    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
26533  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
26534  ac_status=$?
26535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26536  test $ac_status = 0; }; then
26537  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
26538		      test "x$?" != "x0" && pkg_failed=yes
26539else
26540  pkg_failed=yes
26541fi
26542 else
26543    pkg_failed=untried
26544fi
26545
26546
26547
26548if test $pkg_failed = yes; then
26549   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26550$as_echo "no" >&6; }
26551
26552if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26553        _pkg_short_errors_supported=yes
26554else
26555        _pkg_short_errors_supported=no
26556fi
26557        if test $_pkg_short_errors_supported = yes; then
26558	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
26559        else
26560	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
26561        fi
26562	# Put the nasty error message in config.log where it belongs
26563	echo "$lua_PKG_ERRORS" >&5
26564
26565	if test "x$with_lua" = xyes; then :
26566  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
26567fi
26568elif test $pkg_failed = untried; then
26569     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26570$as_echo "no" >&6; }
26571	if test "x$with_lua" = xyes; then :
26572  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
26573fi
26574else
26575	lua_CFLAGS=$pkg_cv_lua_CFLAGS
26576	lua_LIBS=$pkg_cv_lua_LIBS
26577        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26578$as_echo "yes" >&6; }
26579
26580    if test "x$with_lua" = xdetect; then :
26581  with_lua='yes (found)'
26582fi
26583
26584
26585fi
26586else
26587	lua_CFLAGS=$pkg_cv_lua_CFLAGS
26588	lua_LIBS=$pkg_cv_lua_LIBS
26589        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26590$as_echo "yes" >&6; }
26591
26592    if test "x$with_lua" = xdetect; then :
26593  with_lua='yes (found)'
26594fi
26595
26596
26597fi
26598else
26599	lua_CFLAGS=$pkg_cv_lua_CFLAGS
26600	lua_LIBS=$pkg_cv_lua_LIBS
26601        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26602$as_echo "yes" >&6; }
26603
26604    if test "x$with_lua" = xdetect; then :
26605  with_lua='yes (found)'
26606fi
26607
26608
26609fi
26610elif test $pkg_failed = untried; then
26611     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26612$as_echo "no" >&6; }
26613
26614pkg_failed=no
26615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
26616$as_echo_n "checking for lua... " >&6; }
26617
26618if test -n "$lua_CFLAGS"; then
26619    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
26620 elif test -n "$PKG_CONFIG"; then
26621    if test -n "$PKG_CONFIG" && \
26622    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
26623  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
26624  ac_status=$?
26625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26626  test $ac_status = 0; }; then
26627  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
26628		      test "x$?" != "x0" && pkg_failed=yes
26629else
26630  pkg_failed=yes
26631fi
26632 else
26633    pkg_failed=untried
26634fi
26635if test -n "$lua_LIBS"; then
26636    pkg_cv_lua_LIBS="$lua_LIBS"
26637 elif test -n "$PKG_CONFIG"; then
26638    if test -n "$PKG_CONFIG" && \
26639    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
26640  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
26641  ac_status=$?
26642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26643  test $ac_status = 0; }; then
26644  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
26645		      test "x$?" != "x0" && pkg_failed=yes
26646else
26647  pkg_failed=yes
26648fi
26649 else
26650    pkg_failed=untried
26651fi
26652
26653
26654
26655if test $pkg_failed = yes; then
26656   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26657$as_echo "no" >&6; }
26658
26659if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26660        _pkg_short_errors_supported=yes
26661else
26662        _pkg_short_errors_supported=no
26663fi
26664        if test $_pkg_short_errors_supported = yes; then
26665	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
26666        else
26667	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
26668        fi
26669	# Put the nasty error message in config.log where it belongs
26670	echo "$lua_PKG_ERRORS" >&5
26671
26672
26673pkg_failed=no
26674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
26675$as_echo_n "checking for lua... " >&6; }
26676
26677if test -n "$lua_CFLAGS"; then
26678    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
26679 elif test -n "$PKG_CONFIG"; then
26680    if test -n "$PKG_CONFIG" && \
26681    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
26682  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
26683  ac_status=$?
26684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26685  test $ac_status = 0; }; then
26686  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
26687		      test "x$?" != "x0" && pkg_failed=yes
26688else
26689  pkg_failed=yes
26690fi
26691 else
26692    pkg_failed=untried
26693fi
26694if test -n "$lua_LIBS"; then
26695    pkg_cv_lua_LIBS="$lua_LIBS"
26696 elif test -n "$PKG_CONFIG"; then
26697    if test -n "$PKG_CONFIG" && \
26698    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
26699  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
26700  ac_status=$?
26701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26702  test $ac_status = 0; }; then
26703  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
26704		      test "x$?" != "x0" && pkg_failed=yes
26705else
26706  pkg_failed=yes
26707fi
26708 else
26709    pkg_failed=untried
26710fi
26711
26712
26713
26714if test $pkg_failed = yes; then
26715   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26716$as_echo "no" >&6; }
26717
26718if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26719        _pkg_short_errors_supported=yes
26720else
26721        _pkg_short_errors_supported=no
26722fi
26723        if test $_pkg_short_errors_supported = yes; then
26724	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
26725        else
26726	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
26727        fi
26728	# Put the nasty error message in config.log where it belongs
26729	echo "$lua_PKG_ERRORS" >&5
26730
26731
26732pkg_failed=no
26733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
26734$as_echo_n "checking for lua... " >&6; }
26735
26736if test -n "$lua_CFLAGS"; then
26737    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
26738 elif test -n "$PKG_CONFIG"; then
26739    if test -n "$PKG_CONFIG" && \
26740    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
26741  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
26742  ac_status=$?
26743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26744  test $ac_status = 0; }; then
26745  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
26746		      test "x$?" != "x0" && pkg_failed=yes
26747else
26748  pkg_failed=yes
26749fi
26750 else
26751    pkg_failed=untried
26752fi
26753if test -n "$lua_LIBS"; then
26754    pkg_cv_lua_LIBS="$lua_LIBS"
26755 elif test -n "$PKG_CONFIG"; then
26756    if test -n "$PKG_CONFIG" && \
26757    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
26758  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
26759  ac_status=$?
26760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26761  test $ac_status = 0; }; then
26762  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
26763		      test "x$?" != "x0" && pkg_failed=yes
26764else
26765  pkg_failed=yes
26766fi
26767 else
26768    pkg_failed=untried
26769fi
26770
26771
26772
26773if test $pkg_failed = yes; then
26774   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26775$as_echo "no" >&6; }
26776
26777if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26778        _pkg_short_errors_supported=yes
26779else
26780        _pkg_short_errors_supported=no
26781fi
26782        if test $_pkg_short_errors_supported = yes; then
26783	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
26784        else
26785	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
26786        fi
26787	# Put the nasty error message in config.log where it belongs
26788	echo "$lua_PKG_ERRORS" >&5
26789
26790	if test "x$with_lua" = xyes; then :
26791  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
26792fi
26793elif test $pkg_failed = untried; then
26794     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26795$as_echo "no" >&6; }
26796	if test "x$with_lua" = xyes; then :
26797  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
26798fi
26799else
26800	lua_CFLAGS=$pkg_cv_lua_CFLAGS
26801	lua_LIBS=$pkg_cv_lua_LIBS
26802        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26803$as_echo "yes" >&6; }
26804
26805    if test "x$with_lua" = xdetect; then :
26806  with_lua='yes (found)'
26807fi
26808
26809
26810fi
26811elif test $pkg_failed = untried; then
26812     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26813$as_echo "no" >&6; }
26814
26815pkg_failed=no
26816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
26817$as_echo_n "checking for lua... " >&6; }
26818
26819if test -n "$lua_CFLAGS"; then
26820    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
26821 elif test -n "$PKG_CONFIG"; then
26822    if test -n "$PKG_CONFIG" && \
26823    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
26824  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
26825  ac_status=$?
26826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26827  test $ac_status = 0; }; then
26828  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
26829		      test "x$?" != "x0" && pkg_failed=yes
26830else
26831  pkg_failed=yes
26832fi
26833 else
26834    pkg_failed=untried
26835fi
26836if test -n "$lua_LIBS"; then
26837    pkg_cv_lua_LIBS="$lua_LIBS"
26838 elif test -n "$PKG_CONFIG"; then
26839    if test -n "$PKG_CONFIG" && \
26840    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
26841  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
26842  ac_status=$?
26843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26844  test $ac_status = 0; }; then
26845  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
26846		      test "x$?" != "x0" && pkg_failed=yes
26847else
26848  pkg_failed=yes
26849fi
26850 else
26851    pkg_failed=untried
26852fi
26853
26854
26855
26856if test $pkg_failed = yes; then
26857   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26858$as_echo "no" >&6; }
26859
26860if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26861        _pkg_short_errors_supported=yes
26862else
26863        _pkg_short_errors_supported=no
26864fi
26865        if test $_pkg_short_errors_supported = yes; then
26866	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
26867        else
26868	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
26869        fi
26870	# Put the nasty error message in config.log where it belongs
26871	echo "$lua_PKG_ERRORS" >&5
26872
26873	if test "x$with_lua" = xyes; then :
26874  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
26875fi
26876elif test $pkg_failed = untried; then
26877     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26878$as_echo "no" >&6; }
26879	if test "x$with_lua" = xyes; then :
26880  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
26881fi
26882else
26883	lua_CFLAGS=$pkg_cv_lua_CFLAGS
26884	lua_LIBS=$pkg_cv_lua_LIBS
26885        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26886$as_echo "yes" >&6; }
26887
26888    if test "x$with_lua" = xdetect; then :
26889  with_lua='yes (found)'
26890fi
26891
26892
26893fi
26894else
26895	lua_CFLAGS=$pkg_cv_lua_CFLAGS
26896	lua_LIBS=$pkg_cv_lua_LIBS
26897        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26898$as_echo "yes" >&6; }
26899
26900    if test "x$with_lua" = xdetect; then :
26901  with_lua='yes (found)'
26902fi
26903
26904
26905fi
26906elif test $pkg_failed = untried; then
26907     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26908$as_echo "no" >&6; }
26909
26910pkg_failed=no
26911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
26912$as_echo_n "checking for lua... " >&6; }
26913
26914if test -n "$lua_CFLAGS"; then
26915    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
26916 elif test -n "$PKG_CONFIG"; then
26917    if test -n "$PKG_CONFIG" && \
26918    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
26919  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
26920  ac_status=$?
26921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26922  test $ac_status = 0; }; then
26923  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
26924		      test "x$?" != "x0" && pkg_failed=yes
26925else
26926  pkg_failed=yes
26927fi
26928 else
26929    pkg_failed=untried
26930fi
26931if test -n "$lua_LIBS"; then
26932    pkg_cv_lua_LIBS="$lua_LIBS"
26933 elif test -n "$PKG_CONFIG"; then
26934    if test -n "$PKG_CONFIG" && \
26935    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
26936  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
26937  ac_status=$?
26938  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26939  test $ac_status = 0; }; then
26940  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
26941		      test "x$?" != "x0" && pkg_failed=yes
26942else
26943  pkg_failed=yes
26944fi
26945 else
26946    pkg_failed=untried
26947fi
26948
26949
26950
26951if test $pkg_failed = yes; then
26952   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26953$as_echo "no" >&6; }
26954
26955if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26956        _pkg_short_errors_supported=yes
26957else
26958        _pkg_short_errors_supported=no
26959fi
26960        if test $_pkg_short_errors_supported = yes; then
26961	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
26962        else
26963	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
26964        fi
26965	# Put the nasty error message in config.log where it belongs
26966	echo "$lua_PKG_ERRORS" >&5
26967
26968
26969pkg_failed=no
26970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
26971$as_echo_n "checking for lua... " >&6; }
26972
26973if test -n "$lua_CFLAGS"; then
26974    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
26975 elif test -n "$PKG_CONFIG"; then
26976    if test -n "$PKG_CONFIG" && \
26977    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
26978  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
26979  ac_status=$?
26980  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26981  test $ac_status = 0; }; then
26982  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
26983		      test "x$?" != "x0" && pkg_failed=yes
26984else
26985  pkg_failed=yes
26986fi
26987 else
26988    pkg_failed=untried
26989fi
26990if test -n "$lua_LIBS"; then
26991    pkg_cv_lua_LIBS="$lua_LIBS"
26992 elif test -n "$PKG_CONFIG"; then
26993    if test -n "$PKG_CONFIG" && \
26994    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
26995  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
26996  ac_status=$?
26997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26998  test $ac_status = 0; }; then
26999  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
27000		      test "x$?" != "x0" && pkg_failed=yes
27001else
27002  pkg_failed=yes
27003fi
27004 else
27005    pkg_failed=untried
27006fi
27007
27008
27009
27010if test $pkg_failed = yes; then
27011   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27012$as_echo "no" >&6; }
27013
27014if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27015        _pkg_short_errors_supported=yes
27016else
27017        _pkg_short_errors_supported=no
27018fi
27019        if test $_pkg_short_errors_supported = yes; then
27020	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
27021        else
27022	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
27023        fi
27024	# Put the nasty error message in config.log where it belongs
27025	echo "$lua_PKG_ERRORS" >&5
27026
27027	if test "x$with_lua" = xyes; then :
27028  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
27029fi
27030elif test $pkg_failed = untried; then
27031     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27032$as_echo "no" >&6; }
27033	if test "x$with_lua" = xyes; then :
27034  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
27035fi
27036else
27037	lua_CFLAGS=$pkg_cv_lua_CFLAGS
27038	lua_LIBS=$pkg_cv_lua_LIBS
27039        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27040$as_echo "yes" >&6; }
27041
27042    if test "x$with_lua" = xdetect; then :
27043  with_lua='yes (found)'
27044fi
27045
27046
27047fi
27048elif test $pkg_failed = untried; then
27049     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27050$as_echo "no" >&6; }
27051
27052pkg_failed=no
27053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
27054$as_echo_n "checking for lua... " >&6; }
27055
27056if test -n "$lua_CFLAGS"; then
27057    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
27058 elif test -n "$PKG_CONFIG"; then
27059    if test -n "$PKG_CONFIG" && \
27060    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
27061  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
27062  ac_status=$?
27063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27064  test $ac_status = 0; }; then
27065  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
27066		      test "x$?" != "x0" && pkg_failed=yes
27067else
27068  pkg_failed=yes
27069fi
27070 else
27071    pkg_failed=untried
27072fi
27073if test -n "$lua_LIBS"; then
27074    pkg_cv_lua_LIBS="$lua_LIBS"
27075 elif test -n "$PKG_CONFIG"; then
27076    if test -n "$PKG_CONFIG" && \
27077    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
27078  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
27079  ac_status=$?
27080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27081  test $ac_status = 0; }; then
27082  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
27083		      test "x$?" != "x0" && pkg_failed=yes
27084else
27085  pkg_failed=yes
27086fi
27087 else
27088    pkg_failed=untried
27089fi
27090
27091
27092
27093if test $pkg_failed = yes; then
27094   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27095$as_echo "no" >&6; }
27096
27097if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27098        _pkg_short_errors_supported=yes
27099else
27100        _pkg_short_errors_supported=no
27101fi
27102        if test $_pkg_short_errors_supported = yes; then
27103	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
27104        else
27105	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
27106        fi
27107	# Put the nasty error message in config.log where it belongs
27108	echo "$lua_PKG_ERRORS" >&5
27109
27110	if test "x$with_lua" = xyes; then :
27111  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
27112fi
27113elif test $pkg_failed = untried; then
27114     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27115$as_echo "no" >&6; }
27116	if test "x$with_lua" = xyes; then :
27117  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
27118fi
27119else
27120	lua_CFLAGS=$pkg_cv_lua_CFLAGS
27121	lua_LIBS=$pkg_cv_lua_LIBS
27122        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27123$as_echo "yes" >&6; }
27124
27125    if test "x$with_lua" = xdetect; then :
27126  with_lua='yes (found)'
27127fi
27128
27129
27130fi
27131else
27132	lua_CFLAGS=$pkg_cv_lua_CFLAGS
27133	lua_LIBS=$pkg_cv_lua_LIBS
27134        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27135$as_echo "yes" >&6; }
27136
27137    if test "x$with_lua" = xdetect; then :
27138  with_lua='yes (found)'
27139fi
27140
27141
27142fi
27143else
27144	lua_CFLAGS=$pkg_cv_lua_CFLAGS
27145	lua_LIBS=$pkg_cv_lua_LIBS
27146        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27147$as_echo "yes" >&6; }
27148
27149    if test "x$with_lua" = xdetect; then :
27150  with_lua='yes (found)'
27151fi
27152
27153
27154fi
27155else
27156	lua_CFLAGS=$pkg_cv_lua_CFLAGS
27157	lua_LIBS=$pkg_cv_lua_LIBS
27158        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27159$as_echo "yes" >&6; }
27160
27161    if test "x$with_lua" = xdetect; then :
27162  with_lua='yes (found)'
27163fi
27164
27165
27166fi
27167elif test $pkg_failed = untried; then
27168     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27169$as_echo "no" >&6; }
27170
27171pkg_failed=no
27172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
27173$as_echo_n "checking for lua... " >&6; }
27174
27175if test -n "$lua_CFLAGS"; then
27176    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
27177 elif test -n "$PKG_CONFIG"; then
27178    if test -n "$PKG_CONFIG" && \
27179    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
27180  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
27181  ac_status=$?
27182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27183  test $ac_status = 0; }; then
27184  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
27185		      test "x$?" != "x0" && pkg_failed=yes
27186else
27187  pkg_failed=yes
27188fi
27189 else
27190    pkg_failed=untried
27191fi
27192if test -n "$lua_LIBS"; then
27193    pkg_cv_lua_LIBS="$lua_LIBS"
27194 elif test -n "$PKG_CONFIG"; then
27195    if test -n "$PKG_CONFIG" && \
27196    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
27197  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
27198  ac_status=$?
27199  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27200  test $ac_status = 0; }; then
27201  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
27202		      test "x$?" != "x0" && pkg_failed=yes
27203else
27204  pkg_failed=yes
27205fi
27206 else
27207    pkg_failed=untried
27208fi
27209
27210
27211
27212if test $pkg_failed = yes; then
27213   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27214$as_echo "no" >&6; }
27215
27216if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27217        _pkg_short_errors_supported=yes
27218else
27219        _pkg_short_errors_supported=no
27220fi
27221        if test $_pkg_short_errors_supported = yes; then
27222	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
27223        else
27224	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
27225        fi
27226	# Put the nasty error message in config.log where it belongs
27227	echo "$lua_PKG_ERRORS" >&5
27228
27229
27230pkg_failed=no
27231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
27232$as_echo_n "checking for lua... " >&6; }
27233
27234if test -n "$lua_CFLAGS"; then
27235    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
27236 elif test -n "$PKG_CONFIG"; then
27237    if test -n "$PKG_CONFIG" && \
27238    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
27239  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
27240  ac_status=$?
27241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27242  test $ac_status = 0; }; then
27243  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
27244		      test "x$?" != "x0" && pkg_failed=yes
27245else
27246  pkg_failed=yes
27247fi
27248 else
27249    pkg_failed=untried
27250fi
27251if test -n "$lua_LIBS"; then
27252    pkg_cv_lua_LIBS="$lua_LIBS"
27253 elif test -n "$PKG_CONFIG"; then
27254    if test -n "$PKG_CONFIG" && \
27255    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
27256  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
27257  ac_status=$?
27258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27259  test $ac_status = 0; }; then
27260  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
27261		      test "x$?" != "x0" && pkg_failed=yes
27262else
27263  pkg_failed=yes
27264fi
27265 else
27266    pkg_failed=untried
27267fi
27268
27269
27270
27271if test $pkg_failed = yes; then
27272   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27273$as_echo "no" >&6; }
27274
27275if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27276        _pkg_short_errors_supported=yes
27277else
27278        _pkg_short_errors_supported=no
27279fi
27280        if test $_pkg_short_errors_supported = yes; then
27281	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
27282        else
27283	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
27284        fi
27285	# Put the nasty error message in config.log where it belongs
27286	echo "$lua_PKG_ERRORS" >&5
27287
27288
27289pkg_failed=no
27290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
27291$as_echo_n "checking for lua... " >&6; }
27292
27293if test -n "$lua_CFLAGS"; then
27294    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
27295 elif test -n "$PKG_CONFIG"; then
27296    if test -n "$PKG_CONFIG" && \
27297    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
27298  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
27299  ac_status=$?
27300  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27301  test $ac_status = 0; }; then
27302  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
27303		      test "x$?" != "x0" && pkg_failed=yes
27304else
27305  pkg_failed=yes
27306fi
27307 else
27308    pkg_failed=untried
27309fi
27310if test -n "$lua_LIBS"; then
27311    pkg_cv_lua_LIBS="$lua_LIBS"
27312 elif test -n "$PKG_CONFIG"; then
27313    if test -n "$PKG_CONFIG" && \
27314    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
27315  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
27316  ac_status=$?
27317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27318  test $ac_status = 0; }; then
27319  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
27320		      test "x$?" != "x0" && pkg_failed=yes
27321else
27322  pkg_failed=yes
27323fi
27324 else
27325    pkg_failed=untried
27326fi
27327
27328
27329
27330if test $pkg_failed = yes; then
27331   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27332$as_echo "no" >&6; }
27333
27334if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27335        _pkg_short_errors_supported=yes
27336else
27337        _pkg_short_errors_supported=no
27338fi
27339        if test $_pkg_short_errors_supported = yes; then
27340	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
27341        else
27342	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
27343        fi
27344	# Put the nasty error message in config.log where it belongs
27345	echo "$lua_PKG_ERRORS" >&5
27346
27347
27348pkg_failed=no
27349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
27350$as_echo_n "checking for lua... " >&6; }
27351
27352if test -n "$lua_CFLAGS"; then
27353    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
27354 elif test -n "$PKG_CONFIG"; then
27355    if test -n "$PKG_CONFIG" && \
27356    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
27357  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
27358  ac_status=$?
27359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27360  test $ac_status = 0; }; then
27361  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
27362		      test "x$?" != "x0" && pkg_failed=yes
27363else
27364  pkg_failed=yes
27365fi
27366 else
27367    pkg_failed=untried
27368fi
27369if test -n "$lua_LIBS"; then
27370    pkg_cv_lua_LIBS="$lua_LIBS"
27371 elif test -n "$PKG_CONFIG"; then
27372    if test -n "$PKG_CONFIG" && \
27373    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
27374  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
27375  ac_status=$?
27376  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27377  test $ac_status = 0; }; then
27378  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
27379		      test "x$?" != "x0" && pkg_failed=yes
27380else
27381  pkg_failed=yes
27382fi
27383 else
27384    pkg_failed=untried
27385fi
27386
27387
27388
27389if test $pkg_failed = yes; then
27390   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27391$as_echo "no" >&6; }
27392
27393if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27394        _pkg_short_errors_supported=yes
27395else
27396        _pkg_short_errors_supported=no
27397fi
27398        if test $_pkg_short_errors_supported = yes; then
27399	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
27400        else
27401	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
27402        fi
27403	# Put the nasty error message in config.log where it belongs
27404	echo "$lua_PKG_ERRORS" >&5
27405
27406	if test "x$with_lua" = xyes; then :
27407  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
27408fi
27409elif test $pkg_failed = untried; then
27410     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27411$as_echo "no" >&6; }
27412	if test "x$with_lua" = xyes; then :
27413  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
27414fi
27415else
27416	lua_CFLAGS=$pkg_cv_lua_CFLAGS
27417	lua_LIBS=$pkg_cv_lua_LIBS
27418        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27419$as_echo "yes" >&6; }
27420
27421    if test "x$with_lua" = xdetect; then :
27422  with_lua='yes (found)'
27423fi
27424
27425
27426fi
27427elif test $pkg_failed = untried; then
27428     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27429$as_echo "no" >&6; }
27430
27431pkg_failed=no
27432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
27433$as_echo_n "checking for lua... " >&6; }
27434
27435if test -n "$lua_CFLAGS"; then
27436    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
27437 elif test -n "$PKG_CONFIG"; then
27438    if test -n "$PKG_CONFIG" && \
27439    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
27440  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
27441  ac_status=$?
27442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27443  test $ac_status = 0; }; then
27444  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
27445		      test "x$?" != "x0" && pkg_failed=yes
27446else
27447  pkg_failed=yes
27448fi
27449 else
27450    pkg_failed=untried
27451fi
27452if test -n "$lua_LIBS"; then
27453    pkg_cv_lua_LIBS="$lua_LIBS"
27454 elif test -n "$PKG_CONFIG"; then
27455    if test -n "$PKG_CONFIG" && \
27456    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
27457  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
27458  ac_status=$?
27459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27460  test $ac_status = 0; }; then
27461  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
27462		      test "x$?" != "x0" && pkg_failed=yes
27463else
27464  pkg_failed=yes
27465fi
27466 else
27467    pkg_failed=untried
27468fi
27469
27470
27471
27472if test $pkg_failed = yes; then
27473   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27474$as_echo "no" >&6; }
27475
27476if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27477        _pkg_short_errors_supported=yes
27478else
27479        _pkg_short_errors_supported=no
27480fi
27481        if test $_pkg_short_errors_supported = yes; then
27482	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
27483        else
27484	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
27485        fi
27486	# Put the nasty error message in config.log where it belongs
27487	echo "$lua_PKG_ERRORS" >&5
27488
27489	if test "x$with_lua" = xyes; then :
27490  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
27491fi
27492elif test $pkg_failed = untried; then
27493     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27494$as_echo "no" >&6; }
27495	if test "x$with_lua" = xyes; then :
27496  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
27497fi
27498else
27499	lua_CFLAGS=$pkg_cv_lua_CFLAGS
27500	lua_LIBS=$pkg_cv_lua_LIBS
27501        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27502$as_echo "yes" >&6; }
27503
27504    if test "x$with_lua" = xdetect; then :
27505  with_lua='yes (found)'
27506fi
27507
27508
27509fi
27510else
27511	lua_CFLAGS=$pkg_cv_lua_CFLAGS
27512	lua_LIBS=$pkg_cv_lua_LIBS
27513        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27514$as_echo "yes" >&6; }
27515
27516    if test "x$with_lua" = xdetect; then :
27517  with_lua='yes (found)'
27518fi
27519
27520
27521fi
27522elif test $pkg_failed = untried; then
27523     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27524$as_echo "no" >&6; }
27525
27526pkg_failed=no
27527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
27528$as_echo_n "checking for lua... " >&6; }
27529
27530if test -n "$lua_CFLAGS"; then
27531    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
27532 elif test -n "$PKG_CONFIG"; then
27533    if test -n "$PKG_CONFIG" && \
27534    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
27535  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
27536  ac_status=$?
27537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27538  test $ac_status = 0; }; then
27539  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
27540		      test "x$?" != "x0" && pkg_failed=yes
27541else
27542  pkg_failed=yes
27543fi
27544 else
27545    pkg_failed=untried
27546fi
27547if test -n "$lua_LIBS"; then
27548    pkg_cv_lua_LIBS="$lua_LIBS"
27549 elif test -n "$PKG_CONFIG"; then
27550    if test -n "$PKG_CONFIG" && \
27551    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
27552  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
27553  ac_status=$?
27554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27555  test $ac_status = 0; }; then
27556  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
27557		      test "x$?" != "x0" && pkg_failed=yes
27558else
27559  pkg_failed=yes
27560fi
27561 else
27562    pkg_failed=untried
27563fi
27564
27565
27566
27567if test $pkg_failed = yes; then
27568   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27569$as_echo "no" >&6; }
27570
27571if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27572        _pkg_short_errors_supported=yes
27573else
27574        _pkg_short_errors_supported=no
27575fi
27576        if test $_pkg_short_errors_supported = yes; then
27577	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
27578        else
27579	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
27580        fi
27581	# Put the nasty error message in config.log where it belongs
27582	echo "$lua_PKG_ERRORS" >&5
27583
27584
27585pkg_failed=no
27586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
27587$as_echo_n "checking for lua... " >&6; }
27588
27589if test -n "$lua_CFLAGS"; then
27590    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
27591 elif test -n "$PKG_CONFIG"; then
27592    if test -n "$PKG_CONFIG" && \
27593    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
27594  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
27595  ac_status=$?
27596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27597  test $ac_status = 0; }; then
27598  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
27599		      test "x$?" != "x0" && pkg_failed=yes
27600else
27601  pkg_failed=yes
27602fi
27603 else
27604    pkg_failed=untried
27605fi
27606if test -n "$lua_LIBS"; then
27607    pkg_cv_lua_LIBS="$lua_LIBS"
27608 elif test -n "$PKG_CONFIG"; then
27609    if test -n "$PKG_CONFIG" && \
27610    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
27611  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
27612  ac_status=$?
27613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27614  test $ac_status = 0; }; then
27615  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
27616		      test "x$?" != "x0" && pkg_failed=yes
27617else
27618  pkg_failed=yes
27619fi
27620 else
27621    pkg_failed=untried
27622fi
27623
27624
27625
27626if test $pkg_failed = yes; then
27627   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27628$as_echo "no" >&6; }
27629
27630if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27631        _pkg_short_errors_supported=yes
27632else
27633        _pkg_short_errors_supported=no
27634fi
27635        if test $_pkg_short_errors_supported = yes; then
27636	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
27637        else
27638	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
27639        fi
27640	# Put the nasty error message in config.log where it belongs
27641	echo "$lua_PKG_ERRORS" >&5
27642
27643	if test "x$with_lua" = xyes; then :
27644  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
27645fi
27646elif test $pkg_failed = untried; then
27647     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27648$as_echo "no" >&6; }
27649	if test "x$with_lua" = xyes; then :
27650  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
27651fi
27652else
27653	lua_CFLAGS=$pkg_cv_lua_CFLAGS
27654	lua_LIBS=$pkg_cv_lua_LIBS
27655        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27656$as_echo "yes" >&6; }
27657
27658    if test "x$with_lua" = xdetect; then :
27659  with_lua='yes (found)'
27660fi
27661
27662
27663fi
27664elif test $pkg_failed = untried; then
27665     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27666$as_echo "no" >&6; }
27667
27668pkg_failed=no
27669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
27670$as_echo_n "checking for lua... " >&6; }
27671
27672if test -n "$lua_CFLAGS"; then
27673    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
27674 elif test -n "$PKG_CONFIG"; then
27675    if test -n "$PKG_CONFIG" && \
27676    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
27677  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
27678  ac_status=$?
27679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27680  test $ac_status = 0; }; then
27681  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
27682		      test "x$?" != "x0" && pkg_failed=yes
27683else
27684  pkg_failed=yes
27685fi
27686 else
27687    pkg_failed=untried
27688fi
27689if test -n "$lua_LIBS"; then
27690    pkg_cv_lua_LIBS="$lua_LIBS"
27691 elif test -n "$PKG_CONFIG"; then
27692    if test -n "$PKG_CONFIG" && \
27693    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
27694  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
27695  ac_status=$?
27696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27697  test $ac_status = 0; }; then
27698  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
27699		      test "x$?" != "x0" && pkg_failed=yes
27700else
27701  pkg_failed=yes
27702fi
27703 else
27704    pkg_failed=untried
27705fi
27706
27707
27708
27709if test $pkg_failed = yes; then
27710   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27711$as_echo "no" >&6; }
27712
27713if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27714        _pkg_short_errors_supported=yes
27715else
27716        _pkg_short_errors_supported=no
27717fi
27718        if test $_pkg_short_errors_supported = yes; then
27719	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
27720        else
27721	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
27722        fi
27723	# Put the nasty error message in config.log where it belongs
27724	echo "$lua_PKG_ERRORS" >&5
27725
27726	if test "x$with_lua" = xyes; then :
27727  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
27728fi
27729elif test $pkg_failed = untried; then
27730     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27731$as_echo "no" >&6; }
27732	if test "x$with_lua" = xyes; then :
27733  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
27734fi
27735else
27736	lua_CFLAGS=$pkg_cv_lua_CFLAGS
27737	lua_LIBS=$pkg_cv_lua_LIBS
27738        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27739$as_echo "yes" >&6; }
27740
27741    if test "x$with_lua" = xdetect; then :
27742  with_lua='yes (found)'
27743fi
27744
27745
27746fi
27747else
27748	lua_CFLAGS=$pkg_cv_lua_CFLAGS
27749	lua_LIBS=$pkg_cv_lua_LIBS
27750        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27751$as_echo "yes" >&6; }
27752
27753    if test "x$with_lua" = xdetect; then :
27754  with_lua='yes (found)'
27755fi
27756
27757
27758fi
27759else
27760	lua_CFLAGS=$pkg_cv_lua_CFLAGS
27761	lua_LIBS=$pkg_cv_lua_LIBS
27762        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27763$as_echo "yes" >&6; }
27764
27765    if test "x$with_lua" = xdetect; then :
27766  with_lua='yes (found)'
27767fi
27768
27769
27770fi
27771elif test $pkg_failed = untried; then
27772     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27773$as_echo "no" >&6; }
27774
27775pkg_failed=no
27776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
27777$as_echo_n "checking for lua... " >&6; }
27778
27779if test -n "$lua_CFLAGS"; then
27780    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
27781 elif test -n "$PKG_CONFIG"; then
27782    if test -n "$PKG_CONFIG" && \
27783    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
27784  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
27785  ac_status=$?
27786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27787  test $ac_status = 0; }; then
27788  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
27789		      test "x$?" != "x0" && pkg_failed=yes
27790else
27791  pkg_failed=yes
27792fi
27793 else
27794    pkg_failed=untried
27795fi
27796if test -n "$lua_LIBS"; then
27797    pkg_cv_lua_LIBS="$lua_LIBS"
27798 elif test -n "$PKG_CONFIG"; then
27799    if test -n "$PKG_CONFIG" && \
27800    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
27801  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
27802  ac_status=$?
27803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27804  test $ac_status = 0; }; then
27805  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
27806		      test "x$?" != "x0" && pkg_failed=yes
27807else
27808  pkg_failed=yes
27809fi
27810 else
27811    pkg_failed=untried
27812fi
27813
27814
27815
27816if test $pkg_failed = yes; then
27817   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27818$as_echo "no" >&6; }
27819
27820if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27821        _pkg_short_errors_supported=yes
27822else
27823        _pkg_short_errors_supported=no
27824fi
27825        if test $_pkg_short_errors_supported = yes; then
27826	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
27827        else
27828	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
27829        fi
27830	# Put the nasty error message in config.log where it belongs
27831	echo "$lua_PKG_ERRORS" >&5
27832
27833
27834pkg_failed=no
27835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
27836$as_echo_n "checking for lua... " >&6; }
27837
27838if test -n "$lua_CFLAGS"; then
27839    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
27840 elif test -n "$PKG_CONFIG"; then
27841    if test -n "$PKG_CONFIG" && \
27842    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
27843  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
27844  ac_status=$?
27845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27846  test $ac_status = 0; }; then
27847  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
27848		      test "x$?" != "x0" && pkg_failed=yes
27849else
27850  pkg_failed=yes
27851fi
27852 else
27853    pkg_failed=untried
27854fi
27855if test -n "$lua_LIBS"; then
27856    pkg_cv_lua_LIBS="$lua_LIBS"
27857 elif test -n "$PKG_CONFIG"; then
27858    if test -n "$PKG_CONFIG" && \
27859    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
27860  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
27861  ac_status=$?
27862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27863  test $ac_status = 0; }; then
27864  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
27865		      test "x$?" != "x0" && pkg_failed=yes
27866else
27867  pkg_failed=yes
27868fi
27869 else
27870    pkg_failed=untried
27871fi
27872
27873
27874
27875if test $pkg_failed = yes; then
27876   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27877$as_echo "no" >&6; }
27878
27879if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27880        _pkg_short_errors_supported=yes
27881else
27882        _pkg_short_errors_supported=no
27883fi
27884        if test $_pkg_short_errors_supported = yes; then
27885	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
27886        else
27887	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
27888        fi
27889	# Put the nasty error message in config.log where it belongs
27890	echo "$lua_PKG_ERRORS" >&5
27891
27892
27893pkg_failed=no
27894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
27895$as_echo_n "checking for lua... " >&6; }
27896
27897if test -n "$lua_CFLAGS"; then
27898    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
27899 elif test -n "$PKG_CONFIG"; then
27900    if test -n "$PKG_CONFIG" && \
27901    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
27902  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
27903  ac_status=$?
27904  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27905  test $ac_status = 0; }; then
27906  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
27907		      test "x$?" != "x0" && pkg_failed=yes
27908else
27909  pkg_failed=yes
27910fi
27911 else
27912    pkg_failed=untried
27913fi
27914if test -n "$lua_LIBS"; then
27915    pkg_cv_lua_LIBS="$lua_LIBS"
27916 elif test -n "$PKG_CONFIG"; then
27917    if test -n "$PKG_CONFIG" && \
27918    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
27919  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
27920  ac_status=$?
27921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27922  test $ac_status = 0; }; then
27923  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
27924		      test "x$?" != "x0" && pkg_failed=yes
27925else
27926  pkg_failed=yes
27927fi
27928 else
27929    pkg_failed=untried
27930fi
27931
27932
27933
27934if test $pkg_failed = yes; then
27935   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27936$as_echo "no" >&6; }
27937
27938if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27939        _pkg_short_errors_supported=yes
27940else
27941        _pkg_short_errors_supported=no
27942fi
27943        if test $_pkg_short_errors_supported = yes; then
27944	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
27945        else
27946	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
27947        fi
27948	# Put the nasty error message in config.log where it belongs
27949	echo "$lua_PKG_ERRORS" >&5
27950
27951	if test "x$with_lua" = xyes; then :
27952  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
27953fi
27954elif test $pkg_failed = untried; then
27955     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27956$as_echo "no" >&6; }
27957	if test "x$with_lua" = xyes; then :
27958  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
27959fi
27960else
27961	lua_CFLAGS=$pkg_cv_lua_CFLAGS
27962	lua_LIBS=$pkg_cv_lua_LIBS
27963        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27964$as_echo "yes" >&6; }
27965
27966    if test "x$with_lua" = xdetect; then :
27967  with_lua='yes (found)'
27968fi
27969
27970
27971fi
27972elif test $pkg_failed = untried; then
27973     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27974$as_echo "no" >&6; }
27975
27976pkg_failed=no
27977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
27978$as_echo_n "checking for lua... " >&6; }
27979
27980if test -n "$lua_CFLAGS"; then
27981    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
27982 elif test -n "$PKG_CONFIG"; then
27983    if test -n "$PKG_CONFIG" && \
27984    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
27985  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
27986  ac_status=$?
27987  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27988  test $ac_status = 0; }; then
27989  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
27990		      test "x$?" != "x0" && pkg_failed=yes
27991else
27992  pkg_failed=yes
27993fi
27994 else
27995    pkg_failed=untried
27996fi
27997if test -n "$lua_LIBS"; then
27998    pkg_cv_lua_LIBS="$lua_LIBS"
27999 elif test -n "$PKG_CONFIG"; then
28000    if test -n "$PKG_CONFIG" && \
28001    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
28002  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
28003  ac_status=$?
28004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28005  test $ac_status = 0; }; then
28006  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
28007		      test "x$?" != "x0" && pkg_failed=yes
28008else
28009  pkg_failed=yes
28010fi
28011 else
28012    pkg_failed=untried
28013fi
28014
28015
28016
28017if test $pkg_failed = yes; then
28018   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28019$as_echo "no" >&6; }
28020
28021if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28022        _pkg_short_errors_supported=yes
28023else
28024        _pkg_short_errors_supported=no
28025fi
28026        if test $_pkg_short_errors_supported = yes; then
28027	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
28028        else
28029	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
28030        fi
28031	# Put the nasty error message in config.log where it belongs
28032	echo "$lua_PKG_ERRORS" >&5
28033
28034	if test "x$with_lua" = xyes; then :
28035  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
28036fi
28037elif test $pkg_failed = untried; then
28038     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28039$as_echo "no" >&6; }
28040	if test "x$with_lua" = xyes; then :
28041  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
28042fi
28043else
28044	lua_CFLAGS=$pkg_cv_lua_CFLAGS
28045	lua_LIBS=$pkg_cv_lua_LIBS
28046        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28047$as_echo "yes" >&6; }
28048
28049    if test "x$with_lua" = xdetect; then :
28050  with_lua='yes (found)'
28051fi
28052
28053
28054fi
28055else
28056	lua_CFLAGS=$pkg_cv_lua_CFLAGS
28057	lua_LIBS=$pkg_cv_lua_LIBS
28058        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28059$as_echo "yes" >&6; }
28060
28061    if test "x$with_lua" = xdetect; then :
28062  with_lua='yes (found)'
28063fi
28064
28065
28066fi
28067elif test $pkg_failed = untried; then
28068     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28069$as_echo "no" >&6; }
28070
28071pkg_failed=no
28072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
28073$as_echo_n "checking for lua... " >&6; }
28074
28075if test -n "$lua_CFLAGS"; then
28076    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
28077 elif test -n "$PKG_CONFIG"; then
28078    if test -n "$PKG_CONFIG" && \
28079    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
28080  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
28081  ac_status=$?
28082  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28083  test $ac_status = 0; }; then
28084  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
28085		      test "x$?" != "x0" && pkg_failed=yes
28086else
28087  pkg_failed=yes
28088fi
28089 else
28090    pkg_failed=untried
28091fi
28092if test -n "$lua_LIBS"; then
28093    pkg_cv_lua_LIBS="$lua_LIBS"
28094 elif test -n "$PKG_CONFIG"; then
28095    if test -n "$PKG_CONFIG" && \
28096    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
28097  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
28098  ac_status=$?
28099  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28100  test $ac_status = 0; }; then
28101  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
28102		      test "x$?" != "x0" && pkg_failed=yes
28103else
28104  pkg_failed=yes
28105fi
28106 else
28107    pkg_failed=untried
28108fi
28109
28110
28111
28112if test $pkg_failed = yes; then
28113   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28114$as_echo "no" >&6; }
28115
28116if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28117        _pkg_short_errors_supported=yes
28118else
28119        _pkg_short_errors_supported=no
28120fi
28121        if test $_pkg_short_errors_supported = yes; then
28122	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
28123        else
28124	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
28125        fi
28126	# Put the nasty error message in config.log where it belongs
28127	echo "$lua_PKG_ERRORS" >&5
28128
28129
28130pkg_failed=no
28131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
28132$as_echo_n "checking for lua... " >&6; }
28133
28134if test -n "$lua_CFLAGS"; then
28135    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
28136 elif test -n "$PKG_CONFIG"; then
28137    if test -n "$PKG_CONFIG" && \
28138    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
28139  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
28140  ac_status=$?
28141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28142  test $ac_status = 0; }; then
28143  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
28144		      test "x$?" != "x0" && pkg_failed=yes
28145else
28146  pkg_failed=yes
28147fi
28148 else
28149    pkg_failed=untried
28150fi
28151if test -n "$lua_LIBS"; then
28152    pkg_cv_lua_LIBS="$lua_LIBS"
28153 elif test -n "$PKG_CONFIG"; then
28154    if test -n "$PKG_CONFIG" && \
28155    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
28156  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
28157  ac_status=$?
28158  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28159  test $ac_status = 0; }; then
28160  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
28161		      test "x$?" != "x0" && pkg_failed=yes
28162else
28163  pkg_failed=yes
28164fi
28165 else
28166    pkg_failed=untried
28167fi
28168
28169
28170
28171if test $pkg_failed = yes; then
28172   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28173$as_echo "no" >&6; }
28174
28175if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28176        _pkg_short_errors_supported=yes
28177else
28178        _pkg_short_errors_supported=no
28179fi
28180        if test $_pkg_short_errors_supported = yes; then
28181	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
28182        else
28183	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
28184        fi
28185	# Put the nasty error message in config.log where it belongs
28186	echo "$lua_PKG_ERRORS" >&5
28187
28188	if test "x$with_lua" = xyes; then :
28189  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
28190fi
28191elif test $pkg_failed = untried; then
28192     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28193$as_echo "no" >&6; }
28194	if test "x$with_lua" = xyes; then :
28195  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
28196fi
28197else
28198	lua_CFLAGS=$pkg_cv_lua_CFLAGS
28199	lua_LIBS=$pkg_cv_lua_LIBS
28200        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28201$as_echo "yes" >&6; }
28202
28203    if test "x$with_lua" = xdetect; then :
28204  with_lua='yes (found)'
28205fi
28206
28207
28208fi
28209elif test $pkg_failed = untried; then
28210     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28211$as_echo "no" >&6; }
28212
28213pkg_failed=no
28214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
28215$as_echo_n "checking for lua... " >&6; }
28216
28217if test -n "$lua_CFLAGS"; then
28218    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
28219 elif test -n "$PKG_CONFIG"; then
28220    if test -n "$PKG_CONFIG" && \
28221    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
28222  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
28223  ac_status=$?
28224  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28225  test $ac_status = 0; }; then
28226  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
28227		      test "x$?" != "x0" && pkg_failed=yes
28228else
28229  pkg_failed=yes
28230fi
28231 else
28232    pkg_failed=untried
28233fi
28234if test -n "$lua_LIBS"; then
28235    pkg_cv_lua_LIBS="$lua_LIBS"
28236 elif test -n "$PKG_CONFIG"; then
28237    if test -n "$PKG_CONFIG" && \
28238    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
28239  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
28240  ac_status=$?
28241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28242  test $ac_status = 0; }; then
28243  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
28244		      test "x$?" != "x0" && pkg_failed=yes
28245else
28246  pkg_failed=yes
28247fi
28248 else
28249    pkg_failed=untried
28250fi
28251
28252
28253
28254if test $pkg_failed = yes; then
28255   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28256$as_echo "no" >&6; }
28257
28258if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28259        _pkg_short_errors_supported=yes
28260else
28261        _pkg_short_errors_supported=no
28262fi
28263        if test $_pkg_short_errors_supported = yes; then
28264	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
28265        else
28266	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
28267        fi
28268	# Put the nasty error message in config.log where it belongs
28269	echo "$lua_PKG_ERRORS" >&5
28270
28271	if test "x$with_lua" = xyes; then :
28272  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
28273fi
28274elif test $pkg_failed = untried; then
28275     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28276$as_echo "no" >&6; }
28277	if test "x$with_lua" = xyes; then :
28278  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
28279fi
28280else
28281	lua_CFLAGS=$pkg_cv_lua_CFLAGS
28282	lua_LIBS=$pkg_cv_lua_LIBS
28283        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28284$as_echo "yes" >&6; }
28285
28286    if test "x$with_lua" = xdetect; then :
28287  with_lua='yes (found)'
28288fi
28289
28290
28291fi
28292else
28293	lua_CFLAGS=$pkg_cv_lua_CFLAGS
28294	lua_LIBS=$pkg_cv_lua_LIBS
28295        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28296$as_echo "yes" >&6; }
28297
28298    if test "x$with_lua" = xdetect; then :
28299  with_lua='yes (found)'
28300fi
28301
28302
28303fi
28304else
28305	lua_CFLAGS=$pkg_cv_lua_CFLAGS
28306	lua_LIBS=$pkg_cv_lua_LIBS
28307        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28308$as_echo "yes" >&6; }
28309
28310    if test "x$with_lua" = xdetect; then :
28311  with_lua='yes (found)'
28312fi
28313
28314
28315fi
28316else
28317	lua_CFLAGS=$pkg_cv_lua_CFLAGS
28318	lua_LIBS=$pkg_cv_lua_LIBS
28319        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28320$as_echo "yes" >&6; }
28321
28322    if test "x$with_lua" = xdetect; then :
28323  with_lua='yes (found)'
28324fi
28325
28326
28327fi
28328else
28329	lua_CFLAGS=$pkg_cv_lua_CFLAGS
28330	lua_LIBS=$pkg_cv_lua_LIBS
28331        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28332$as_echo "yes" >&6; }
28333
28334    if test "x$with_lua" = xdetect; then :
28335  with_lua='yes (found)'
28336fi
28337
28338
28339fi
28340elif test $pkg_failed = untried; then
28341     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28342$as_echo "no" >&6; }
28343
28344pkg_failed=no
28345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
28346$as_echo_n "checking for lua... " >&6; }
28347
28348if test -n "$lua_CFLAGS"; then
28349    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
28350 elif test -n "$PKG_CONFIG"; then
28351    if test -n "$PKG_CONFIG" && \
28352    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
28353  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
28354  ac_status=$?
28355  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28356  test $ac_status = 0; }; then
28357  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
28358		      test "x$?" != "x0" && pkg_failed=yes
28359else
28360  pkg_failed=yes
28361fi
28362 else
28363    pkg_failed=untried
28364fi
28365if test -n "$lua_LIBS"; then
28366    pkg_cv_lua_LIBS="$lua_LIBS"
28367 elif test -n "$PKG_CONFIG"; then
28368    if test -n "$PKG_CONFIG" && \
28369    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
28370  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
28371  ac_status=$?
28372  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28373  test $ac_status = 0; }; then
28374  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
28375		      test "x$?" != "x0" && pkg_failed=yes
28376else
28377  pkg_failed=yes
28378fi
28379 else
28380    pkg_failed=untried
28381fi
28382
28383
28384
28385if test $pkg_failed = yes; then
28386   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28387$as_echo "no" >&6; }
28388
28389if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28390        _pkg_short_errors_supported=yes
28391else
28392        _pkg_short_errors_supported=no
28393fi
28394        if test $_pkg_short_errors_supported = yes; then
28395	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
28396        else
28397	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
28398        fi
28399	# Put the nasty error message in config.log where it belongs
28400	echo "$lua_PKG_ERRORS" >&5
28401
28402
28403pkg_failed=no
28404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
28405$as_echo_n "checking for lua... " >&6; }
28406
28407if test -n "$lua_CFLAGS"; then
28408    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
28409 elif test -n "$PKG_CONFIG"; then
28410    if test -n "$PKG_CONFIG" && \
28411    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
28412  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
28413  ac_status=$?
28414  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28415  test $ac_status = 0; }; then
28416  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
28417		      test "x$?" != "x0" && pkg_failed=yes
28418else
28419  pkg_failed=yes
28420fi
28421 else
28422    pkg_failed=untried
28423fi
28424if test -n "$lua_LIBS"; then
28425    pkg_cv_lua_LIBS="$lua_LIBS"
28426 elif test -n "$PKG_CONFIG"; then
28427    if test -n "$PKG_CONFIG" && \
28428    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
28429  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
28430  ac_status=$?
28431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28432  test $ac_status = 0; }; then
28433  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
28434		      test "x$?" != "x0" && pkg_failed=yes
28435else
28436  pkg_failed=yes
28437fi
28438 else
28439    pkg_failed=untried
28440fi
28441
28442
28443
28444if test $pkg_failed = yes; then
28445   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28446$as_echo "no" >&6; }
28447
28448if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28449        _pkg_short_errors_supported=yes
28450else
28451        _pkg_short_errors_supported=no
28452fi
28453        if test $_pkg_short_errors_supported = yes; then
28454	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
28455        else
28456	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
28457        fi
28458	# Put the nasty error message in config.log where it belongs
28459	echo "$lua_PKG_ERRORS" >&5
28460
28461
28462pkg_failed=no
28463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
28464$as_echo_n "checking for lua... " >&6; }
28465
28466if test -n "$lua_CFLAGS"; then
28467    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
28468 elif test -n "$PKG_CONFIG"; then
28469    if test -n "$PKG_CONFIG" && \
28470    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
28471  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
28472  ac_status=$?
28473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28474  test $ac_status = 0; }; then
28475  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
28476		      test "x$?" != "x0" && pkg_failed=yes
28477else
28478  pkg_failed=yes
28479fi
28480 else
28481    pkg_failed=untried
28482fi
28483if test -n "$lua_LIBS"; then
28484    pkg_cv_lua_LIBS="$lua_LIBS"
28485 elif test -n "$PKG_CONFIG"; then
28486    if test -n "$PKG_CONFIG" && \
28487    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
28488  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
28489  ac_status=$?
28490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28491  test $ac_status = 0; }; then
28492  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
28493		      test "x$?" != "x0" && pkg_failed=yes
28494else
28495  pkg_failed=yes
28496fi
28497 else
28498    pkg_failed=untried
28499fi
28500
28501
28502
28503if test $pkg_failed = yes; then
28504   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28505$as_echo "no" >&6; }
28506
28507if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28508        _pkg_short_errors_supported=yes
28509else
28510        _pkg_short_errors_supported=no
28511fi
28512        if test $_pkg_short_errors_supported = yes; then
28513	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
28514        else
28515	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
28516        fi
28517	# Put the nasty error message in config.log where it belongs
28518	echo "$lua_PKG_ERRORS" >&5
28519
28520
28521pkg_failed=no
28522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
28523$as_echo_n "checking for lua... " >&6; }
28524
28525if test -n "$lua_CFLAGS"; then
28526    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
28527 elif test -n "$PKG_CONFIG"; then
28528    if test -n "$PKG_CONFIG" && \
28529    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
28530  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
28531  ac_status=$?
28532  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28533  test $ac_status = 0; }; then
28534  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
28535		      test "x$?" != "x0" && pkg_failed=yes
28536else
28537  pkg_failed=yes
28538fi
28539 else
28540    pkg_failed=untried
28541fi
28542if test -n "$lua_LIBS"; then
28543    pkg_cv_lua_LIBS="$lua_LIBS"
28544 elif test -n "$PKG_CONFIG"; then
28545    if test -n "$PKG_CONFIG" && \
28546    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
28547  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
28548  ac_status=$?
28549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28550  test $ac_status = 0; }; then
28551  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
28552		      test "x$?" != "x0" && pkg_failed=yes
28553else
28554  pkg_failed=yes
28555fi
28556 else
28557    pkg_failed=untried
28558fi
28559
28560
28561
28562if test $pkg_failed = yes; then
28563   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28564$as_echo "no" >&6; }
28565
28566if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28567        _pkg_short_errors_supported=yes
28568else
28569        _pkg_short_errors_supported=no
28570fi
28571        if test $_pkg_short_errors_supported = yes; then
28572	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
28573        else
28574	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
28575        fi
28576	# Put the nasty error message in config.log where it belongs
28577	echo "$lua_PKG_ERRORS" >&5
28578
28579
28580pkg_failed=no
28581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
28582$as_echo_n "checking for lua... " >&6; }
28583
28584if test -n "$lua_CFLAGS"; then
28585    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
28586 elif test -n "$PKG_CONFIG"; then
28587    if test -n "$PKG_CONFIG" && \
28588    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
28589  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
28590  ac_status=$?
28591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28592  test $ac_status = 0; }; then
28593  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
28594		      test "x$?" != "x0" && pkg_failed=yes
28595else
28596  pkg_failed=yes
28597fi
28598 else
28599    pkg_failed=untried
28600fi
28601if test -n "$lua_LIBS"; then
28602    pkg_cv_lua_LIBS="$lua_LIBS"
28603 elif test -n "$PKG_CONFIG"; then
28604    if test -n "$PKG_CONFIG" && \
28605    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
28606  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
28607  ac_status=$?
28608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28609  test $ac_status = 0; }; then
28610  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
28611		      test "x$?" != "x0" && pkg_failed=yes
28612else
28613  pkg_failed=yes
28614fi
28615 else
28616    pkg_failed=untried
28617fi
28618
28619
28620
28621if test $pkg_failed = yes; then
28622   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28623$as_echo "no" >&6; }
28624
28625if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28626        _pkg_short_errors_supported=yes
28627else
28628        _pkg_short_errors_supported=no
28629fi
28630        if test $_pkg_short_errors_supported = yes; then
28631	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
28632        else
28633	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
28634        fi
28635	# Put the nasty error message in config.log where it belongs
28636	echo "$lua_PKG_ERRORS" >&5
28637
28638	if test "x$with_lua" = xyes; then :
28639  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
28640fi
28641elif test $pkg_failed = untried; then
28642     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28643$as_echo "no" >&6; }
28644	if test "x$with_lua" = xyes; then :
28645  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
28646fi
28647else
28648	lua_CFLAGS=$pkg_cv_lua_CFLAGS
28649	lua_LIBS=$pkg_cv_lua_LIBS
28650        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28651$as_echo "yes" >&6; }
28652
28653    if test "x$with_lua" = xdetect; then :
28654  with_lua='yes (found)'
28655fi
28656
28657
28658fi
28659elif test $pkg_failed = untried; then
28660     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28661$as_echo "no" >&6; }
28662
28663pkg_failed=no
28664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
28665$as_echo_n "checking for lua... " >&6; }
28666
28667if test -n "$lua_CFLAGS"; then
28668    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
28669 elif test -n "$PKG_CONFIG"; then
28670    if test -n "$PKG_CONFIG" && \
28671    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
28672  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
28673  ac_status=$?
28674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28675  test $ac_status = 0; }; then
28676  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
28677		      test "x$?" != "x0" && pkg_failed=yes
28678else
28679  pkg_failed=yes
28680fi
28681 else
28682    pkg_failed=untried
28683fi
28684if test -n "$lua_LIBS"; then
28685    pkg_cv_lua_LIBS="$lua_LIBS"
28686 elif test -n "$PKG_CONFIG"; then
28687    if test -n "$PKG_CONFIG" && \
28688    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
28689  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
28690  ac_status=$?
28691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28692  test $ac_status = 0; }; then
28693  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
28694		      test "x$?" != "x0" && pkg_failed=yes
28695else
28696  pkg_failed=yes
28697fi
28698 else
28699    pkg_failed=untried
28700fi
28701
28702
28703
28704if test $pkg_failed = yes; then
28705   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28706$as_echo "no" >&6; }
28707
28708if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28709        _pkg_short_errors_supported=yes
28710else
28711        _pkg_short_errors_supported=no
28712fi
28713        if test $_pkg_short_errors_supported = yes; then
28714	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
28715        else
28716	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
28717        fi
28718	# Put the nasty error message in config.log where it belongs
28719	echo "$lua_PKG_ERRORS" >&5
28720
28721	if test "x$with_lua" = xyes; then :
28722  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
28723fi
28724elif test $pkg_failed = untried; then
28725     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28726$as_echo "no" >&6; }
28727	if test "x$with_lua" = xyes; then :
28728  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
28729fi
28730else
28731	lua_CFLAGS=$pkg_cv_lua_CFLAGS
28732	lua_LIBS=$pkg_cv_lua_LIBS
28733        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28734$as_echo "yes" >&6; }
28735
28736    if test "x$with_lua" = xdetect; then :
28737  with_lua='yes (found)'
28738fi
28739
28740
28741fi
28742else
28743	lua_CFLAGS=$pkg_cv_lua_CFLAGS
28744	lua_LIBS=$pkg_cv_lua_LIBS
28745        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28746$as_echo "yes" >&6; }
28747
28748    if test "x$with_lua" = xdetect; then :
28749  with_lua='yes (found)'
28750fi
28751
28752
28753fi
28754elif test $pkg_failed = untried; then
28755     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28756$as_echo "no" >&6; }
28757
28758pkg_failed=no
28759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
28760$as_echo_n "checking for lua... " >&6; }
28761
28762if test -n "$lua_CFLAGS"; then
28763    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
28764 elif test -n "$PKG_CONFIG"; then
28765    if test -n "$PKG_CONFIG" && \
28766    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
28767  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
28768  ac_status=$?
28769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28770  test $ac_status = 0; }; then
28771  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
28772		      test "x$?" != "x0" && pkg_failed=yes
28773else
28774  pkg_failed=yes
28775fi
28776 else
28777    pkg_failed=untried
28778fi
28779if test -n "$lua_LIBS"; then
28780    pkg_cv_lua_LIBS="$lua_LIBS"
28781 elif test -n "$PKG_CONFIG"; then
28782    if test -n "$PKG_CONFIG" && \
28783    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
28784  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
28785  ac_status=$?
28786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28787  test $ac_status = 0; }; then
28788  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
28789		      test "x$?" != "x0" && pkg_failed=yes
28790else
28791  pkg_failed=yes
28792fi
28793 else
28794    pkg_failed=untried
28795fi
28796
28797
28798
28799if test $pkg_failed = yes; then
28800   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28801$as_echo "no" >&6; }
28802
28803if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28804        _pkg_short_errors_supported=yes
28805else
28806        _pkg_short_errors_supported=no
28807fi
28808        if test $_pkg_short_errors_supported = yes; then
28809	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
28810        else
28811	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
28812        fi
28813	# Put the nasty error message in config.log where it belongs
28814	echo "$lua_PKG_ERRORS" >&5
28815
28816
28817pkg_failed=no
28818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
28819$as_echo_n "checking for lua... " >&6; }
28820
28821if test -n "$lua_CFLAGS"; then
28822    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
28823 elif test -n "$PKG_CONFIG"; then
28824    if test -n "$PKG_CONFIG" && \
28825    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
28826  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
28827  ac_status=$?
28828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28829  test $ac_status = 0; }; then
28830  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
28831		      test "x$?" != "x0" && pkg_failed=yes
28832else
28833  pkg_failed=yes
28834fi
28835 else
28836    pkg_failed=untried
28837fi
28838if test -n "$lua_LIBS"; then
28839    pkg_cv_lua_LIBS="$lua_LIBS"
28840 elif test -n "$PKG_CONFIG"; then
28841    if test -n "$PKG_CONFIG" && \
28842    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
28843  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
28844  ac_status=$?
28845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28846  test $ac_status = 0; }; then
28847  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
28848		      test "x$?" != "x0" && pkg_failed=yes
28849else
28850  pkg_failed=yes
28851fi
28852 else
28853    pkg_failed=untried
28854fi
28855
28856
28857
28858if test $pkg_failed = yes; then
28859   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28860$as_echo "no" >&6; }
28861
28862if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28863        _pkg_short_errors_supported=yes
28864else
28865        _pkg_short_errors_supported=no
28866fi
28867        if test $_pkg_short_errors_supported = yes; then
28868	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
28869        else
28870	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
28871        fi
28872	# Put the nasty error message in config.log where it belongs
28873	echo "$lua_PKG_ERRORS" >&5
28874
28875	if test "x$with_lua" = xyes; then :
28876  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
28877fi
28878elif test $pkg_failed = untried; then
28879     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28880$as_echo "no" >&6; }
28881	if test "x$with_lua" = xyes; then :
28882  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
28883fi
28884else
28885	lua_CFLAGS=$pkg_cv_lua_CFLAGS
28886	lua_LIBS=$pkg_cv_lua_LIBS
28887        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28888$as_echo "yes" >&6; }
28889
28890    if test "x$with_lua" = xdetect; then :
28891  with_lua='yes (found)'
28892fi
28893
28894
28895fi
28896elif test $pkg_failed = untried; then
28897     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28898$as_echo "no" >&6; }
28899
28900pkg_failed=no
28901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
28902$as_echo_n "checking for lua... " >&6; }
28903
28904if test -n "$lua_CFLAGS"; then
28905    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
28906 elif test -n "$PKG_CONFIG"; then
28907    if test -n "$PKG_CONFIG" && \
28908    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
28909  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
28910  ac_status=$?
28911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28912  test $ac_status = 0; }; then
28913  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
28914		      test "x$?" != "x0" && pkg_failed=yes
28915else
28916  pkg_failed=yes
28917fi
28918 else
28919    pkg_failed=untried
28920fi
28921if test -n "$lua_LIBS"; then
28922    pkg_cv_lua_LIBS="$lua_LIBS"
28923 elif test -n "$PKG_CONFIG"; then
28924    if test -n "$PKG_CONFIG" && \
28925    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
28926  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
28927  ac_status=$?
28928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28929  test $ac_status = 0; }; then
28930  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
28931		      test "x$?" != "x0" && pkg_failed=yes
28932else
28933  pkg_failed=yes
28934fi
28935 else
28936    pkg_failed=untried
28937fi
28938
28939
28940
28941if test $pkg_failed = yes; then
28942   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28943$as_echo "no" >&6; }
28944
28945if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28946        _pkg_short_errors_supported=yes
28947else
28948        _pkg_short_errors_supported=no
28949fi
28950        if test $_pkg_short_errors_supported = yes; then
28951	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
28952        else
28953	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
28954        fi
28955	# Put the nasty error message in config.log where it belongs
28956	echo "$lua_PKG_ERRORS" >&5
28957
28958	if test "x$with_lua" = xyes; then :
28959  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
28960fi
28961elif test $pkg_failed = untried; then
28962     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28963$as_echo "no" >&6; }
28964	if test "x$with_lua" = xyes; then :
28965  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
28966fi
28967else
28968	lua_CFLAGS=$pkg_cv_lua_CFLAGS
28969	lua_LIBS=$pkg_cv_lua_LIBS
28970        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28971$as_echo "yes" >&6; }
28972
28973    if test "x$with_lua" = xdetect; then :
28974  with_lua='yes (found)'
28975fi
28976
28977
28978fi
28979else
28980	lua_CFLAGS=$pkg_cv_lua_CFLAGS
28981	lua_LIBS=$pkg_cv_lua_LIBS
28982        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28983$as_echo "yes" >&6; }
28984
28985    if test "x$with_lua" = xdetect; then :
28986  with_lua='yes (found)'
28987fi
28988
28989
28990fi
28991else
28992	lua_CFLAGS=$pkg_cv_lua_CFLAGS
28993	lua_LIBS=$pkg_cv_lua_LIBS
28994        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28995$as_echo "yes" >&6; }
28996
28997    if test "x$with_lua" = xdetect; then :
28998  with_lua='yes (found)'
28999fi
29000
29001
29002fi
29003elif test $pkg_failed = untried; then
29004     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29005$as_echo "no" >&6; }
29006
29007pkg_failed=no
29008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
29009$as_echo_n "checking for lua... " >&6; }
29010
29011if test -n "$lua_CFLAGS"; then
29012    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
29013 elif test -n "$PKG_CONFIG"; then
29014    if test -n "$PKG_CONFIG" && \
29015    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
29016  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
29017  ac_status=$?
29018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29019  test $ac_status = 0; }; then
29020  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
29021		      test "x$?" != "x0" && pkg_failed=yes
29022else
29023  pkg_failed=yes
29024fi
29025 else
29026    pkg_failed=untried
29027fi
29028if test -n "$lua_LIBS"; then
29029    pkg_cv_lua_LIBS="$lua_LIBS"
29030 elif test -n "$PKG_CONFIG"; then
29031    if test -n "$PKG_CONFIG" && \
29032    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
29033  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
29034  ac_status=$?
29035  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29036  test $ac_status = 0; }; then
29037  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
29038		      test "x$?" != "x0" && pkg_failed=yes
29039else
29040  pkg_failed=yes
29041fi
29042 else
29043    pkg_failed=untried
29044fi
29045
29046
29047
29048if test $pkg_failed = yes; then
29049   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29050$as_echo "no" >&6; }
29051
29052if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29053        _pkg_short_errors_supported=yes
29054else
29055        _pkg_short_errors_supported=no
29056fi
29057        if test $_pkg_short_errors_supported = yes; then
29058	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
29059        else
29060	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
29061        fi
29062	# Put the nasty error message in config.log where it belongs
29063	echo "$lua_PKG_ERRORS" >&5
29064
29065
29066pkg_failed=no
29067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
29068$as_echo_n "checking for lua... " >&6; }
29069
29070if test -n "$lua_CFLAGS"; then
29071    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
29072 elif test -n "$PKG_CONFIG"; then
29073    if test -n "$PKG_CONFIG" && \
29074    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
29075  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
29076  ac_status=$?
29077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29078  test $ac_status = 0; }; then
29079  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
29080		      test "x$?" != "x0" && pkg_failed=yes
29081else
29082  pkg_failed=yes
29083fi
29084 else
29085    pkg_failed=untried
29086fi
29087if test -n "$lua_LIBS"; then
29088    pkg_cv_lua_LIBS="$lua_LIBS"
29089 elif test -n "$PKG_CONFIG"; then
29090    if test -n "$PKG_CONFIG" && \
29091    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
29092  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
29093  ac_status=$?
29094  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29095  test $ac_status = 0; }; then
29096  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
29097		      test "x$?" != "x0" && pkg_failed=yes
29098else
29099  pkg_failed=yes
29100fi
29101 else
29102    pkg_failed=untried
29103fi
29104
29105
29106
29107if test $pkg_failed = yes; then
29108   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29109$as_echo "no" >&6; }
29110
29111if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29112        _pkg_short_errors_supported=yes
29113else
29114        _pkg_short_errors_supported=no
29115fi
29116        if test $_pkg_short_errors_supported = yes; then
29117	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
29118        else
29119	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
29120        fi
29121	# Put the nasty error message in config.log where it belongs
29122	echo "$lua_PKG_ERRORS" >&5
29123
29124
29125pkg_failed=no
29126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
29127$as_echo_n "checking for lua... " >&6; }
29128
29129if test -n "$lua_CFLAGS"; then
29130    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
29131 elif test -n "$PKG_CONFIG"; then
29132    if test -n "$PKG_CONFIG" && \
29133    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
29134  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
29135  ac_status=$?
29136  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29137  test $ac_status = 0; }; then
29138  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
29139		      test "x$?" != "x0" && pkg_failed=yes
29140else
29141  pkg_failed=yes
29142fi
29143 else
29144    pkg_failed=untried
29145fi
29146if test -n "$lua_LIBS"; then
29147    pkg_cv_lua_LIBS="$lua_LIBS"
29148 elif test -n "$PKG_CONFIG"; then
29149    if test -n "$PKG_CONFIG" && \
29150    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
29151  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
29152  ac_status=$?
29153  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29154  test $ac_status = 0; }; then
29155  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
29156		      test "x$?" != "x0" && pkg_failed=yes
29157else
29158  pkg_failed=yes
29159fi
29160 else
29161    pkg_failed=untried
29162fi
29163
29164
29165
29166if test $pkg_failed = yes; then
29167   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29168$as_echo "no" >&6; }
29169
29170if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29171        _pkg_short_errors_supported=yes
29172else
29173        _pkg_short_errors_supported=no
29174fi
29175        if test $_pkg_short_errors_supported = yes; then
29176	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
29177        else
29178	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
29179        fi
29180	# Put the nasty error message in config.log where it belongs
29181	echo "$lua_PKG_ERRORS" >&5
29182
29183	if test "x$with_lua" = xyes; then :
29184  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
29185fi
29186elif test $pkg_failed = untried; then
29187     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29188$as_echo "no" >&6; }
29189	if test "x$with_lua" = xyes; then :
29190  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
29191fi
29192else
29193	lua_CFLAGS=$pkg_cv_lua_CFLAGS
29194	lua_LIBS=$pkg_cv_lua_LIBS
29195        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29196$as_echo "yes" >&6; }
29197
29198    if test "x$with_lua" = xdetect; then :
29199  with_lua='yes (found)'
29200fi
29201
29202
29203fi
29204elif test $pkg_failed = untried; then
29205     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29206$as_echo "no" >&6; }
29207
29208pkg_failed=no
29209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
29210$as_echo_n "checking for lua... " >&6; }
29211
29212if test -n "$lua_CFLAGS"; then
29213    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
29214 elif test -n "$PKG_CONFIG"; then
29215    if test -n "$PKG_CONFIG" && \
29216    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
29217  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
29218  ac_status=$?
29219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29220  test $ac_status = 0; }; then
29221  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
29222		      test "x$?" != "x0" && pkg_failed=yes
29223else
29224  pkg_failed=yes
29225fi
29226 else
29227    pkg_failed=untried
29228fi
29229if test -n "$lua_LIBS"; then
29230    pkg_cv_lua_LIBS="$lua_LIBS"
29231 elif test -n "$PKG_CONFIG"; then
29232    if test -n "$PKG_CONFIG" && \
29233    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
29234  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
29235  ac_status=$?
29236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29237  test $ac_status = 0; }; then
29238  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
29239		      test "x$?" != "x0" && pkg_failed=yes
29240else
29241  pkg_failed=yes
29242fi
29243 else
29244    pkg_failed=untried
29245fi
29246
29247
29248
29249if test $pkg_failed = yes; then
29250   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29251$as_echo "no" >&6; }
29252
29253if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29254        _pkg_short_errors_supported=yes
29255else
29256        _pkg_short_errors_supported=no
29257fi
29258        if test $_pkg_short_errors_supported = yes; then
29259	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
29260        else
29261	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
29262        fi
29263	# Put the nasty error message in config.log where it belongs
29264	echo "$lua_PKG_ERRORS" >&5
29265
29266	if test "x$with_lua" = xyes; then :
29267  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
29268fi
29269elif test $pkg_failed = untried; then
29270     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29271$as_echo "no" >&6; }
29272	if test "x$with_lua" = xyes; then :
29273  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
29274fi
29275else
29276	lua_CFLAGS=$pkg_cv_lua_CFLAGS
29277	lua_LIBS=$pkg_cv_lua_LIBS
29278        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29279$as_echo "yes" >&6; }
29280
29281    if test "x$with_lua" = xdetect; then :
29282  with_lua='yes (found)'
29283fi
29284
29285
29286fi
29287else
29288	lua_CFLAGS=$pkg_cv_lua_CFLAGS
29289	lua_LIBS=$pkg_cv_lua_LIBS
29290        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29291$as_echo "yes" >&6; }
29292
29293    if test "x$with_lua" = xdetect; then :
29294  with_lua='yes (found)'
29295fi
29296
29297
29298fi
29299elif test $pkg_failed = untried; then
29300     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29301$as_echo "no" >&6; }
29302
29303pkg_failed=no
29304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
29305$as_echo_n "checking for lua... " >&6; }
29306
29307if test -n "$lua_CFLAGS"; then
29308    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
29309 elif test -n "$PKG_CONFIG"; then
29310    if test -n "$PKG_CONFIG" && \
29311    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
29312  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
29313  ac_status=$?
29314  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29315  test $ac_status = 0; }; then
29316  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
29317		      test "x$?" != "x0" && pkg_failed=yes
29318else
29319  pkg_failed=yes
29320fi
29321 else
29322    pkg_failed=untried
29323fi
29324if test -n "$lua_LIBS"; then
29325    pkg_cv_lua_LIBS="$lua_LIBS"
29326 elif test -n "$PKG_CONFIG"; then
29327    if test -n "$PKG_CONFIG" && \
29328    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
29329  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
29330  ac_status=$?
29331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29332  test $ac_status = 0; }; then
29333  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
29334		      test "x$?" != "x0" && pkg_failed=yes
29335else
29336  pkg_failed=yes
29337fi
29338 else
29339    pkg_failed=untried
29340fi
29341
29342
29343
29344if test $pkg_failed = yes; then
29345   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29346$as_echo "no" >&6; }
29347
29348if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29349        _pkg_short_errors_supported=yes
29350else
29351        _pkg_short_errors_supported=no
29352fi
29353        if test $_pkg_short_errors_supported = yes; then
29354	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
29355        else
29356	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
29357        fi
29358	# Put the nasty error message in config.log where it belongs
29359	echo "$lua_PKG_ERRORS" >&5
29360
29361
29362pkg_failed=no
29363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
29364$as_echo_n "checking for lua... " >&6; }
29365
29366if test -n "$lua_CFLAGS"; then
29367    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
29368 elif test -n "$PKG_CONFIG"; then
29369    if test -n "$PKG_CONFIG" && \
29370    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
29371  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
29372  ac_status=$?
29373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29374  test $ac_status = 0; }; then
29375  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
29376		      test "x$?" != "x0" && pkg_failed=yes
29377else
29378  pkg_failed=yes
29379fi
29380 else
29381    pkg_failed=untried
29382fi
29383if test -n "$lua_LIBS"; then
29384    pkg_cv_lua_LIBS="$lua_LIBS"
29385 elif test -n "$PKG_CONFIG"; then
29386    if test -n "$PKG_CONFIG" && \
29387    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
29388  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
29389  ac_status=$?
29390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29391  test $ac_status = 0; }; then
29392  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
29393		      test "x$?" != "x0" && pkg_failed=yes
29394else
29395  pkg_failed=yes
29396fi
29397 else
29398    pkg_failed=untried
29399fi
29400
29401
29402
29403if test $pkg_failed = yes; then
29404   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29405$as_echo "no" >&6; }
29406
29407if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29408        _pkg_short_errors_supported=yes
29409else
29410        _pkg_short_errors_supported=no
29411fi
29412        if test $_pkg_short_errors_supported = yes; then
29413	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
29414        else
29415	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
29416        fi
29417	# Put the nasty error message in config.log where it belongs
29418	echo "$lua_PKG_ERRORS" >&5
29419
29420	if test "x$with_lua" = xyes; then :
29421  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
29422fi
29423elif test $pkg_failed = untried; then
29424     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29425$as_echo "no" >&6; }
29426	if test "x$with_lua" = xyes; then :
29427  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
29428fi
29429else
29430	lua_CFLAGS=$pkg_cv_lua_CFLAGS
29431	lua_LIBS=$pkg_cv_lua_LIBS
29432        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29433$as_echo "yes" >&6; }
29434
29435    if test "x$with_lua" = xdetect; then :
29436  with_lua='yes (found)'
29437fi
29438
29439
29440fi
29441elif test $pkg_failed = untried; then
29442     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29443$as_echo "no" >&6; }
29444
29445pkg_failed=no
29446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
29447$as_echo_n "checking for lua... " >&6; }
29448
29449if test -n "$lua_CFLAGS"; then
29450    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
29451 elif test -n "$PKG_CONFIG"; then
29452    if test -n "$PKG_CONFIG" && \
29453    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
29454  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
29455  ac_status=$?
29456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29457  test $ac_status = 0; }; then
29458  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
29459		      test "x$?" != "x0" && pkg_failed=yes
29460else
29461  pkg_failed=yes
29462fi
29463 else
29464    pkg_failed=untried
29465fi
29466if test -n "$lua_LIBS"; then
29467    pkg_cv_lua_LIBS="$lua_LIBS"
29468 elif test -n "$PKG_CONFIG"; then
29469    if test -n "$PKG_CONFIG" && \
29470    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
29471  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
29472  ac_status=$?
29473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29474  test $ac_status = 0; }; then
29475  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
29476		      test "x$?" != "x0" && pkg_failed=yes
29477else
29478  pkg_failed=yes
29479fi
29480 else
29481    pkg_failed=untried
29482fi
29483
29484
29485
29486if test $pkg_failed = yes; then
29487   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29488$as_echo "no" >&6; }
29489
29490if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29491        _pkg_short_errors_supported=yes
29492else
29493        _pkg_short_errors_supported=no
29494fi
29495        if test $_pkg_short_errors_supported = yes; then
29496	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
29497        else
29498	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
29499        fi
29500	# Put the nasty error message in config.log where it belongs
29501	echo "$lua_PKG_ERRORS" >&5
29502
29503	if test "x$with_lua" = xyes; then :
29504  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
29505fi
29506elif test $pkg_failed = untried; then
29507     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29508$as_echo "no" >&6; }
29509	if test "x$with_lua" = xyes; then :
29510  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
29511fi
29512else
29513	lua_CFLAGS=$pkg_cv_lua_CFLAGS
29514	lua_LIBS=$pkg_cv_lua_LIBS
29515        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29516$as_echo "yes" >&6; }
29517
29518    if test "x$with_lua" = xdetect; then :
29519  with_lua='yes (found)'
29520fi
29521
29522
29523fi
29524else
29525	lua_CFLAGS=$pkg_cv_lua_CFLAGS
29526	lua_LIBS=$pkg_cv_lua_LIBS
29527        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29528$as_echo "yes" >&6; }
29529
29530    if test "x$with_lua" = xdetect; then :
29531  with_lua='yes (found)'
29532fi
29533
29534
29535fi
29536else
29537	lua_CFLAGS=$pkg_cv_lua_CFLAGS
29538	lua_LIBS=$pkg_cv_lua_LIBS
29539        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29540$as_echo "yes" >&6; }
29541
29542    if test "x$with_lua" = xdetect; then :
29543  with_lua='yes (found)'
29544fi
29545
29546
29547fi
29548else
29549	lua_CFLAGS=$pkg_cv_lua_CFLAGS
29550	lua_LIBS=$pkg_cv_lua_LIBS
29551        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29552$as_echo "yes" >&6; }
29553
29554    if test "x$with_lua" = xdetect; then :
29555  with_lua='yes (found)'
29556fi
29557
29558
29559fi
29560elif test $pkg_failed = untried; then
29561     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29562$as_echo "no" >&6; }
29563
29564pkg_failed=no
29565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
29566$as_echo_n "checking for lua... " >&6; }
29567
29568if test -n "$lua_CFLAGS"; then
29569    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
29570 elif test -n "$PKG_CONFIG"; then
29571    if test -n "$PKG_CONFIG" && \
29572    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
29573  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
29574  ac_status=$?
29575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29576  test $ac_status = 0; }; then
29577  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
29578		      test "x$?" != "x0" && pkg_failed=yes
29579else
29580  pkg_failed=yes
29581fi
29582 else
29583    pkg_failed=untried
29584fi
29585if test -n "$lua_LIBS"; then
29586    pkg_cv_lua_LIBS="$lua_LIBS"
29587 elif test -n "$PKG_CONFIG"; then
29588    if test -n "$PKG_CONFIG" && \
29589    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
29590  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
29591  ac_status=$?
29592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29593  test $ac_status = 0; }; then
29594  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
29595		      test "x$?" != "x0" && pkg_failed=yes
29596else
29597  pkg_failed=yes
29598fi
29599 else
29600    pkg_failed=untried
29601fi
29602
29603
29604
29605if test $pkg_failed = yes; then
29606   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29607$as_echo "no" >&6; }
29608
29609if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29610        _pkg_short_errors_supported=yes
29611else
29612        _pkg_short_errors_supported=no
29613fi
29614        if test $_pkg_short_errors_supported = yes; then
29615	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
29616        else
29617	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
29618        fi
29619	# Put the nasty error message in config.log where it belongs
29620	echo "$lua_PKG_ERRORS" >&5
29621
29622
29623pkg_failed=no
29624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
29625$as_echo_n "checking for lua... " >&6; }
29626
29627if test -n "$lua_CFLAGS"; then
29628    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
29629 elif test -n "$PKG_CONFIG"; then
29630    if test -n "$PKG_CONFIG" && \
29631    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
29632  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
29633  ac_status=$?
29634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29635  test $ac_status = 0; }; then
29636  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
29637		      test "x$?" != "x0" && pkg_failed=yes
29638else
29639  pkg_failed=yes
29640fi
29641 else
29642    pkg_failed=untried
29643fi
29644if test -n "$lua_LIBS"; then
29645    pkg_cv_lua_LIBS="$lua_LIBS"
29646 elif test -n "$PKG_CONFIG"; then
29647    if test -n "$PKG_CONFIG" && \
29648    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
29649  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
29650  ac_status=$?
29651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29652  test $ac_status = 0; }; then
29653  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
29654		      test "x$?" != "x0" && pkg_failed=yes
29655else
29656  pkg_failed=yes
29657fi
29658 else
29659    pkg_failed=untried
29660fi
29661
29662
29663
29664if test $pkg_failed = yes; then
29665   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29666$as_echo "no" >&6; }
29667
29668if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29669        _pkg_short_errors_supported=yes
29670else
29671        _pkg_short_errors_supported=no
29672fi
29673        if test $_pkg_short_errors_supported = yes; then
29674	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
29675        else
29676	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
29677        fi
29678	# Put the nasty error message in config.log where it belongs
29679	echo "$lua_PKG_ERRORS" >&5
29680
29681
29682pkg_failed=no
29683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
29684$as_echo_n "checking for lua... " >&6; }
29685
29686if test -n "$lua_CFLAGS"; then
29687    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
29688 elif test -n "$PKG_CONFIG"; then
29689    if test -n "$PKG_CONFIG" && \
29690    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
29691  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
29692  ac_status=$?
29693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29694  test $ac_status = 0; }; then
29695  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
29696		      test "x$?" != "x0" && pkg_failed=yes
29697else
29698  pkg_failed=yes
29699fi
29700 else
29701    pkg_failed=untried
29702fi
29703if test -n "$lua_LIBS"; then
29704    pkg_cv_lua_LIBS="$lua_LIBS"
29705 elif test -n "$PKG_CONFIG"; then
29706    if test -n "$PKG_CONFIG" && \
29707    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
29708  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
29709  ac_status=$?
29710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29711  test $ac_status = 0; }; then
29712  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
29713		      test "x$?" != "x0" && pkg_failed=yes
29714else
29715  pkg_failed=yes
29716fi
29717 else
29718    pkg_failed=untried
29719fi
29720
29721
29722
29723if test $pkg_failed = yes; then
29724   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29725$as_echo "no" >&6; }
29726
29727if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29728        _pkg_short_errors_supported=yes
29729else
29730        _pkg_short_errors_supported=no
29731fi
29732        if test $_pkg_short_errors_supported = yes; then
29733	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
29734        else
29735	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
29736        fi
29737	# Put the nasty error message in config.log where it belongs
29738	echo "$lua_PKG_ERRORS" >&5
29739
29740
29741pkg_failed=no
29742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
29743$as_echo_n "checking for lua... " >&6; }
29744
29745if test -n "$lua_CFLAGS"; then
29746    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
29747 elif test -n "$PKG_CONFIG"; then
29748    if test -n "$PKG_CONFIG" && \
29749    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
29750  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
29751  ac_status=$?
29752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29753  test $ac_status = 0; }; then
29754  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
29755		      test "x$?" != "x0" && pkg_failed=yes
29756else
29757  pkg_failed=yes
29758fi
29759 else
29760    pkg_failed=untried
29761fi
29762if test -n "$lua_LIBS"; then
29763    pkg_cv_lua_LIBS="$lua_LIBS"
29764 elif test -n "$PKG_CONFIG"; then
29765    if test -n "$PKG_CONFIG" && \
29766    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
29767  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
29768  ac_status=$?
29769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29770  test $ac_status = 0; }; then
29771  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
29772		      test "x$?" != "x0" && pkg_failed=yes
29773else
29774  pkg_failed=yes
29775fi
29776 else
29777    pkg_failed=untried
29778fi
29779
29780
29781
29782if test $pkg_failed = yes; then
29783   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29784$as_echo "no" >&6; }
29785
29786if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29787        _pkg_short_errors_supported=yes
29788else
29789        _pkg_short_errors_supported=no
29790fi
29791        if test $_pkg_short_errors_supported = yes; then
29792	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
29793        else
29794	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
29795        fi
29796	# Put the nasty error message in config.log where it belongs
29797	echo "$lua_PKG_ERRORS" >&5
29798
29799	if test "x$with_lua" = xyes; then :
29800  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
29801fi
29802elif test $pkg_failed = untried; then
29803     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29804$as_echo "no" >&6; }
29805	if test "x$with_lua" = xyes; then :
29806  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
29807fi
29808else
29809	lua_CFLAGS=$pkg_cv_lua_CFLAGS
29810	lua_LIBS=$pkg_cv_lua_LIBS
29811        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29812$as_echo "yes" >&6; }
29813
29814    if test "x$with_lua" = xdetect; then :
29815  with_lua='yes (found)'
29816fi
29817
29818
29819fi
29820elif test $pkg_failed = untried; then
29821     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29822$as_echo "no" >&6; }
29823
29824pkg_failed=no
29825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
29826$as_echo_n "checking for lua... " >&6; }
29827
29828if test -n "$lua_CFLAGS"; then
29829    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
29830 elif test -n "$PKG_CONFIG"; then
29831    if test -n "$PKG_CONFIG" && \
29832    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
29833  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
29834  ac_status=$?
29835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29836  test $ac_status = 0; }; then
29837  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
29838		      test "x$?" != "x0" && pkg_failed=yes
29839else
29840  pkg_failed=yes
29841fi
29842 else
29843    pkg_failed=untried
29844fi
29845if test -n "$lua_LIBS"; then
29846    pkg_cv_lua_LIBS="$lua_LIBS"
29847 elif test -n "$PKG_CONFIG"; then
29848    if test -n "$PKG_CONFIG" && \
29849    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
29850  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
29851  ac_status=$?
29852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29853  test $ac_status = 0; }; then
29854  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
29855		      test "x$?" != "x0" && pkg_failed=yes
29856else
29857  pkg_failed=yes
29858fi
29859 else
29860    pkg_failed=untried
29861fi
29862
29863
29864
29865if test $pkg_failed = yes; then
29866   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29867$as_echo "no" >&6; }
29868
29869if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29870        _pkg_short_errors_supported=yes
29871else
29872        _pkg_short_errors_supported=no
29873fi
29874        if test $_pkg_short_errors_supported = yes; then
29875	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
29876        else
29877	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
29878        fi
29879	# Put the nasty error message in config.log where it belongs
29880	echo "$lua_PKG_ERRORS" >&5
29881
29882	if test "x$with_lua" = xyes; then :
29883  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
29884fi
29885elif test $pkg_failed = untried; then
29886     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29887$as_echo "no" >&6; }
29888	if test "x$with_lua" = xyes; then :
29889  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
29890fi
29891else
29892	lua_CFLAGS=$pkg_cv_lua_CFLAGS
29893	lua_LIBS=$pkg_cv_lua_LIBS
29894        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29895$as_echo "yes" >&6; }
29896
29897    if test "x$with_lua" = xdetect; then :
29898  with_lua='yes (found)'
29899fi
29900
29901
29902fi
29903else
29904	lua_CFLAGS=$pkg_cv_lua_CFLAGS
29905	lua_LIBS=$pkg_cv_lua_LIBS
29906        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29907$as_echo "yes" >&6; }
29908
29909    if test "x$with_lua" = xdetect; then :
29910  with_lua='yes (found)'
29911fi
29912
29913
29914fi
29915elif test $pkg_failed = untried; then
29916     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29917$as_echo "no" >&6; }
29918
29919pkg_failed=no
29920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
29921$as_echo_n "checking for lua... " >&6; }
29922
29923if test -n "$lua_CFLAGS"; then
29924    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
29925 elif test -n "$PKG_CONFIG"; then
29926    if test -n "$PKG_CONFIG" && \
29927    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
29928  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
29929  ac_status=$?
29930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29931  test $ac_status = 0; }; then
29932  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
29933		      test "x$?" != "x0" && pkg_failed=yes
29934else
29935  pkg_failed=yes
29936fi
29937 else
29938    pkg_failed=untried
29939fi
29940if test -n "$lua_LIBS"; then
29941    pkg_cv_lua_LIBS="$lua_LIBS"
29942 elif test -n "$PKG_CONFIG"; then
29943    if test -n "$PKG_CONFIG" && \
29944    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
29945  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
29946  ac_status=$?
29947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29948  test $ac_status = 0; }; then
29949  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
29950		      test "x$?" != "x0" && pkg_failed=yes
29951else
29952  pkg_failed=yes
29953fi
29954 else
29955    pkg_failed=untried
29956fi
29957
29958
29959
29960if test $pkg_failed = yes; then
29961   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29962$as_echo "no" >&6; }
29963
29964if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29965        _pkg_short_errors_supported=yes
29966else
29967        _pkg_short_errors_supported=no
29968fi
29969        if test $_pkg_short_errors_supported = yes; then
29970	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
29971        else
29972	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
29973        fi
29974	# Put the nasty error message in config.log where it belongs
29975	echo "$lua_PKG_ERRORS" >&5
29976
29977
29978pkg_failed=no
29979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
29980$as_echo_n "checking for lua... " >&6; }
29981
29982if test -n "$lua_CFLAGS"; then
29983    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
29984 elif test -n "$PKG_CONFIG"; then
29985    if test -n "$PKG_CONFIG" && \
29986    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
29987  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
29988  ac_status=$?
29989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29990  test $ac_status = 0; }; then
29991  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
29992		      test "x$?" != "x0" && pkg_failed=yes
29993else
29994  pkg_failed=yes
29995fi
29996 else
29997    pkg_failed=untried
29998fi
29999if test -n "$lua_LIBS"; then
30000    pkg_cv_lua_LIBS="$lua_LIBS"
30001 elif test -n "$PKG_CONFIG"; then
30002    if test -n "$PKG_CONFIG" && \
30003    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
30004  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
30005  ac_status=$?
30006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30007  test $ac_status = 0; }; then
30008  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
30009		      test "x$?" != "x0" && pkg_failed=yes
30010else
30011  pkg_failed=yes
30012fi
30013 else
30014    pkg_failed=untried
30015fi
30016
30017
30018
30019if test $pkg_failed = yes; then
30020   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30021$as_echo "no" >&6; }
30022
30023if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30024        _pkg_short_errors_supported=yes
30025else
30026        _pkg_short_errors_supported=no
30027fi
30028        if test $_pkg_short_errors_supported = yes; then
30029	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
30030        else
30031	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
30032        fi
30033	# Put the nasty error message in config.log where it belongs
30034	echo "$lua_PKG_ERRORS" >&5
30035
30036	if test "x$with_lua" = xyes; then :
30037  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
30038fi
30039elif test $pkg_failed = untried; then
30040     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30041$as_echo "no" >&6; }
30042	if test "x$with_lua" = xyes; then :
30043  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
30044fi
30045else
30046	lua_CFLAGS=$pkg_cv_lua_CFLAGS
30047	lua_LIBS=$pkg_cv_lua_LIBS
30048        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30049$as_echo "yes" >&6; }
30050
30051    if test "x$with_lua" = xdetect; then :
30052  with_lua='yes (found)'
30053fi
30054
30055
30056fi
30057elif test $pkg_failed = untried; then
30058     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30059$as_echo "no" >&6; }
30060
30061pkg_failed=no
30062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
30063$as_echo_n "checking for lua... " >&6; }
30064
30065if test -n "$lua_CFLAGS"; then
30066    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
30067 elif test -n "$PKG_CONFIG"; then
30068    if test -n "$PKG_CONFIG" && \
30069    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
30070  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
30071  ac_status=$?
30072  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30073  test $ac_status = 0; }; then
30074  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
30075		      test "x$?" != "x0" && pkg_failed=yes
30076else
30077  pkg_failed=yes
30078fi
30079 else
30080    pkg_failed=untried
30081fi
30082if test -n "$lua_LIBS"; then
30083    pkg_cv_lua_LIBS="$lua_LIBS"
30084 elif test -n "$PKG_CONFIG"; then
30085    if test -n "$PKG_CONFIG" && \
30086    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
30087  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
30088  ac_status=$?
30089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30090  test $ac_status = 0; }; then
30091  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
30092		      test "x$?" != "x0" && pkg_failed=yes
30093else
30094  pkg_failed=yes
30095fi
30096 else
30097    pkg_failed=untried
30098fi
30099
30100
30101
30102if test $pkg_failed = yes; then
30103   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30104$as_echo "no" >&6; }
30105
30106if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30107        _pkg_short_errors_supported=yes
30108else
30109        _pkg_short_errors_supported=no
30110fi
30111        if test $_pkg_short_errors_supported = yes; then
30112	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
30113        else
30114	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
30115        fi
30116	# Put the nasty error message in config.log where it belongs
30117	echo "$lua_PKG_ERRORS" >&5
30118
30119	if test "x$with_lua" = xyes; then :
30120  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
30121fi
30122elif test $pkg_failed = untried; then
30123     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30124$as_echo "no" >&6; }
30125	if test "x$with_lua" = xyes; then :
30126  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
30127fi
30128else
30129	lua_CFLAGS=$pkg_cv_lua_CFLAGS
30130	lua_LIBS=$pkg_cv_lua_LIBS
30131        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30132$as_echo "yes" >&6; }
30133
30134    if test "x$with_lua" = xdetect; then :
30135  with_lua='yes (found)'
30136fi
30137
30138
30139fi
30140else
30141	lua_CFLAGS=$pkg_cv_lua_CFLAGS
30142	lua_LIBS=$pkg_cv_lua_LIBS
30143        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30144$as_echo "yes" >&6; }
30145
30146    if test "x$with_lua" = xdetect; then :
30147  with_lua='yes (found)'
30148fi
30149
30150
30151fi
30152else
30153	lua_CFLAGS=$pkg_cv_lua_CFLAGS
30154	lua_LIBS=$pkg_cv_lua_LIBS
30155        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30156$as_echo "yes" >&6; }
30157
30158    if test "x$with_lua" = xdetect; then :
30159  with_lua='yes (found)'
30160fi
30161
30162
30163fi
30164elif test $pkg_failed = untried; then
30165     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30166$as_echo "no" >&6; }
30167
30168pkg_failed=no
30169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
30170$as_echo_n "checking for lua... " >&6; }
30171
30172if test -n "$lua_CFLAGS"; then
30173    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
30174 elif test -n "$PKG_CONFIG"; then
30175    if test -n "$PKG_CONFIG" && \
30176    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
30177  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
30178  ac_status=$?
30179  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30180  test $ac_status = 0; }; then
30181  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
30182		      test "x$?" != "x0" && pkg_failed=yes
30183else
30184  pkg_failed=yes
30185fi
30186 else
30187    pkg_failed=untried
30188fi
30189if test -n "$lua_LIBS"; then
30190    pkg_cv_lua_LIBS="$lua_LIBS"
30191 elif test -n "$PKG_CONFIG"; then
30192    if test -n "$PKG_CONFIG" && \
30193    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
30194  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
30195  ac_status=$?
30196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30197  test $ac_status = 0; }; then
30198  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
30199		      test "x$?" != "x0" && pkg_failed=yes
30200else
30201  pkg_failed=yes
30202fi
30203 else
30204    pkg_failed=untried
30205fi
30206
30207
30208
30209if test $pkg_failed = yes; then
30210   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30211$as_echo "no" >&6; }
30212
30213if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30214        _pkg_short_errors_supported=yes
30215else
30216        _pkg_short_errors_supported=no
30217fi
30218        if test $_pkg_short_errors_supported = yes; then
30219	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
30220        else
30221	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
30222        fi
30223	# Put the nasty error message in config.log where it belongs
30224	echo "$lua_PKG_ERRORS" >&5
30225
30226
30227pkg_failed=no
30228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
30229$as_echo_n "checking for lua... " >&6; }
30230
30231if test -n "$lua_CFLAGS"; then
30232    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
30233 elif test -n "$PKG_CONFIG"; then
30234    if test -n "$PKG_CONFIG" && \
30235    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
30236  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
30237  ac_status=$?
30238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30239  test $ac_status = 0; }; then
30240  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
30241		      test "x$?" != "x0" && pkg_failed=yes
30242else
30243  pkg_failed=yes
30244fi
30245 else
30246    pkg_failed=untried
30247fi
30248if test -n "$lua_LIBS"; then
30249    pkg_cv_lua_LIBS="$lua_LIBS"
30250 elif test -n "$PKG_CONFIG"; then
30251    if test -n "$PKG_CONFIG" && \
30252    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
30253  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
30254  ac_status=$?
30255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30256  test $ac_status = 0; }; then
30257  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
30258		      test "x$?" != "x0" && pkg_failed=yes
30259else
30260  pkg_failed=yes
30261fi
30262 else
30263    pkg_failed=untried
30264fi
30265
30266
30267
30268if test $pkg_failed = yes; then
30269   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30270$as_echo "no" >&6; }
30271
30272if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30273        _pkg_short_errors_supported=yes
30274else
30275        _pkg_short_errors_supported=no
30276fi
30277        if test $_pkg_short_errors_supported = yes; then
30278	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
30279        else
30280	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
30281        fi
30282	# Put the nasty error message in config.log where it belongs
30283	echo "$lua_PKG_ERRORS" >&5
30284
30285
30286pkg_failed=no
30287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
30288$as_echo_n "checking for lua... " >&6; }
30289
30290if test -n "$lua_CFLAGS"; then
30291    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
30292 elif test -n "$PKG_CONFIG"; then
30293    if test -n "$PKG_CONFIG" && \
30294    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
30295  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
30296  ac_status=$?
30297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30298  test $ac_status = 0; }; then
30299  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
30300		      test "x$?" != "x0" && pkg_failed=yes
30301else
30302  pkg_failed=yes
30303fi
30304 else
30305    pkg_failed=untried
30306fi
30307if test -n "$lua_LIBS"; then
30308    pkg_cv_lua_LIBS="$lua_LIBS"
30309 elif test -n "$PKG_CONFIG"; then
30310    if test -n "$PKG_CONFIG" && \
30311    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
30312  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
30313  ac_status=$?
30314  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30315  test $ac_status = 0; }; then
30316  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
30317		      test "x$?" != "x0" && pkg_failed=yes
30318else
30319  pkg_failed=yes
30320fi
30321 else
30322    pkg_failed=untried
30323fi
30324
30325
30326
30327if test $pkg_failed = yes; then
30328   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30329$as_echo "no" >&6; }
30330
30331if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30332        _pkg_short_errors_supported=yes
30333else
30334        _pkg_short_errors_supported=no
30335fi
30336        if test $_pkg_short_errors_supported = yes; then
30337	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
30338        else
30339	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
30340        fi
30341	# Put the nasty error message in config.log where it belongs
30342	echo "$lua_PKG_ERRORS" >&5
30343
30344	if test "x$with_lua" = xyes; then :
30345  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
30346fi
30347elif test $pkg_failed = untried; then
30348     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30349$as_echo "no" >&6; }
30350	if test "x$with_lua" = xyes; then :
30351  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
30352fi
30353else
30354	lua_CFLAGS=$pkg_cv_lua_CFLAGS
30355	lua_LIBS=$pkg_cv_lua_LIBS
30356        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30357$as_echo "yes" >&6; }
30358
30359    if test "x$with_lua" = xdetect; then :
30360  with_lua='yes (found)'
30361fi
30362
30363
30364fi
30365elif test $pkg_failed = untried; then
30366     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30367$as_echo "no" >&6; }
30368
30369pkg_failed=no
30370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
30371$as_echo_n "checking for lua... " >&6; }
30372
30373if test -n "$lua_CFLAGS"; then
30374    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
30375 elif test -n "$PKG_CONFIG"; then
30376    if test -n "$PKG_CONFIG" && \
30377    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
30378  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
30379  ac_status=$?
30380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30381  test $ac_status = 0; }; then
30382  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
30383		      test "x$?" != "x0" && pkg_failed=yes
30384else
30385  pkg_failed=yes
30386fi
30387 else
30388    pkg_failed=untried
30389fi
30390if test -n "$lua_LIBS"; then
30391    pkg_cv_lua_LIBS="$lua_LIBS"
30392 elif test -n "$PKG_CONFIG"; then
30393    if test -n "$PKG_CONFIG" && \
30394    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
30395  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
30396  ac_status=$?
30397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30398  test $ac_status = 0; }; then
30399  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
30400		      test "x$?" != "x0" && pkg_failed=yes
30401else
30402  pkg_failed=yes
30403fi
30404 else
30405    pkg_failed=untried
30406fi
30407
30408
30409
30410if test $pkg_failed = yes; then
30411   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30412$as_echo "no" >&6; }
30413
30414if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30415        _pkg_short_errors_supported=yes
30416else
30417        _pkg_short_errors_supported=no
30418fi
30419        if test $_pkg_short_errors_supported = yes; then
30420	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
30421        else
30422	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
30423        fi
30424	# Put the nasty error message in config.log where it belongs
30425	echo "$lua_PKG_ERRORS" >&5
30426
30427	if test "x$with_lua" = xyes; then :
30428  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
30429fi
30430elif test $pkg_failed = untried; then
30431     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30432$as_echo "no" >&6; }
30433	if test "x$with_lua" = xyes; then :
30434  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
30435fi
30436else
30437	lua_CFLAGS=$pkg_cv_lua_CFLAGS
30438	lua_LIBS=$pkg_cv_lua_LIBS
30439        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30440$as_echo "yes" >&6; }
30441
30442    if test "x$with_lua" = xdetect; then :
30443  with_lua='yes (found)'
30444fi
30445
30446
30447fi
30448else
30449	lua_CFLAGS=$pkg_cv_lua_CFLAGS
30450	lua_LIBS=$pkg_cv_lua_LIBS
30451        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30452$as_echo "yes" >&6; }
30453
30454    if test "x$with_lua" = xdetect; then :
30455  with_lua='yes (found)'
30456fi
30457
30458
30459fi
30460elif test $pkg_failed = untried; then
30461     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30462$as_echo "no" >&6; }
30463
30464pkg_failed=no
30465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
30466$as_echo_n "checking for lua... " >&6; }
30467
30468if test -n "$lua_CFLAGS"; then
30469    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
30470 elif test -n "$PKG_CONFIG"; then
30471    if test -n "$PKG_CONFIG" && \
30472    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
30473  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
30474  ac_status=$?
30475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30476  test $ac_status = 0; }; then
30477  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2" 2>/dev/null`
30478		      test "x$?" != "x0" && pkg_failed=yes
30479else
30480  pkg_failed=yes
30481fi
30482 else
30483    pkg_failed=untried
30484fi
30485if test -n "$lua_LIBS"; then
30486    pkg_cv_lua_LIBS="$lua_LIBS"
30487 elif test -n "$PKG_CONFIG"; then
30488    if test -n "$PKG_CONFIG" && \
30489    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2\""; } >&5
30490  ($PKG_CONFIG --exists --print-errors "lua >= 5.2") 2>&5
30491  ac_status=$?
30492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30493  test $ac_status = 0; }; then
30494  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.2" 2>/dev/null`
30495		      test "x$?" != "x0" && pkg_failed=yes
30496else
30497  pkg_failed=yes
30498fi
30499 else
30500    pkg_failed=untried
30501fi
30502
30503
30504
30505if test $pkg_failed = yes; then
30506   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30507$as_echo "no" >&6; }
30508
30509if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30510        _pkg_short_errors_supported=yes
30511else
30512        _pkg_short_errors_supported=no
30513fi
30514        if test $_pkg_short_errors_supported = yes; then
30515	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.2" 2>&1`
30516        else
30517	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.2" 2>&1`
30518        fi
30519	# Put the nasty error message in config.log where it belongs
30520	echo "$lua_PKG_ERRORS" >&5
30521
30522
30523pkg_failed=no
30524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
30525$as_echo_n "checking for lua... " >&6; }
30526
30527if test -n "$lua_CFLAGS"; then
30528    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
30529 elif test -n "$PKG_CONFIG"; then
30530    if test -n "$PKG_CONFIG" && \
30531    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
30532  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
30533  ac_status=$?
30534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30535  test $ac_status = 0; }; then
30536  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
30537		      test "x$?" != "x0" && pkg_failed=yes
30538else
30539  pkg_failed=yes
30540fi
30541 else
30542    pkg_failed=untried
30543fi
30544if test -n "$lua_LIBS"; then
30545    pkg_cv_lua_LIBS="$lua_LIBS"
30546 elif test -n "$PKG_CONFIG"; then
30547    if test -n "$PKG_CONFIG" && \
30548    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
30549  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
30550  ac_status=$?
30551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30552  test $ac_status = 0; }; then
30553  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
30554		      test "x$?" != "x0" && pkg_failed=yes
30555else
30556  pkg_failed=yes
30557fi
30558 else
30559    pkg_failed=untried
30560fi
30561
30562
30563
30564if test $pkg_failed = yes; then
30565   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30566$as_echo "no" >&6; }
30567
30568if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30569        _pkg_short_errors_supported=yes
30570else
30571        _pkg_short_errors_supported=no
30572fi
30573        if test $_pkg_short_errors_supported = yes; then
30574	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
30575        else
30576	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
30577        fi
30578	# Put the nasty error message in config.log where it belongs
30579	echo "$lua_PKG_ERRORS" >&5
30580
30581	if test "x$with_lua" = xyes; then :
30582  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
30583fi
30584elif test $pkg_failed = untried; then
30585     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30586$as_echo "no" >&6; }
30587	if test "x$with_lua" = xyes; then :
30588  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
30589fi
30590else
30591	lua_CFLAGS=$pkg_cv_lua_CFLAGS
30592	lua_LIBS=$pkg_cv_lua_LIBS
30593        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30594$as_echo "yes" >&6; }
30595
30596    if test "x$with_lua" = xdetect; then :
30597  with_lua='yes (found)'
30598fi
30599
30600
30601fi
30602elif test $pkg_failed = untried; then
30603     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30604$as_echo "no" >&6; }
30605
30606pkg_failed=no
30607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5
30608$as_echo_n "checking for lua... " >&6; }
30609
30610if test -n "$lua_CFLAGS"; then
30611    pkg_cv_lua_CFLAGS="$lua_CFLAGS"
30612 elif test -n "$PKG_CONFIG"; then
30613    if test -n "$PKG_CONFIG" && \
30614    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
30615  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
30616  ac_status=$?
30617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30618  test $ac_status = 0; }; then
30619  pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
30620		      test "x$?" != "x0" && pkg_failed=yes
30621else
30622  pkg_failed=yes
30623fi
30624 else
30625    pkg_failed=untried
30626fi
30627if test -n "$lua_LIBS"; then
30628    pkg_cv_lua_LIBS="$lua_LIBS"
30629 elif test -n "$PKG_CONFIG"; then
30630    if test -n "$PKG_CONFIG" && \
30631    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
30632  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
30633  ac_status=$?
30634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30635  test $ac_status = 0; }; then
30636  pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
30637		      test "x$?" != "x0" && pkg_failed=yes
30638else
30639  pkg_failed=yes
30640fi
30641 else
30642    pkg_failed=untried
30643fi
30644
30645
30646
30647if test $pkg_failed = yes; then
30648   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30649$as_echo "no" >&6; }
30650
30651if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30652        _pkg_short_errors_supported=yes
30653else
30654        _pkg_short_errors_supported=no
30655fi
30656        if test $_pkg_short_errors_supported = yes; then
30657	        lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1" 2>&1`
30658        else
30659	        lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1" 2>&1`
30660        fi
30661	# Put the nasty error message in config.log where it belongs
30662	echo "$lua_PKG_ERRORS" >&5
30663
30664	if test "x$with_lua" = xyes; then :
30665  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
30666fi
30667elif test $pkg_failed = untried; then
30668     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30669$as_echo "no" >&6; }
30670	if test "x$with_lua" = xyes; then :
30671  as_fn_error $? "$lua_PKG_ERRORS" "$LINENO" 5
30672fi
30673else
30674	lua_CFLAGS=$pkg_cv_lua_CFLAGS
30675	lua_LIBS=$pkg_cv_lua_LIBS
30676        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30677$as_echo "yes" >&6; }
30678
30679    if test "x$with_lua" = xdetect; then :
30680  with_lua='yes (found)'
30681fi
30682
30683
30684fi
30685else
30686	lua_CFLAGS=$pkg_cv_lua_CFLAGS
30687	lua_LIBS=$pkg_cv_lua_LIBS
30688        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30689$as_echo "yes" >&6; }
30690
30691    if test "x$with_lua" = xdetect; then :
30692  with_lua='yes (found)'
30693fi
30694
30695
30696fi
30697else
30698	lua_CFLAGS=$pkg_cv_lua_CFLAGS
30699	lua_LIBS=$pkg_cv_lua_LIBS
30700        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30701$as_echo "yes" >&6; }
30702
30703    if test "x$with_lua" = xdetect; then :
30704  with_lua='yes (found)'
30705fi
30706
30707
30708fi
30709else
30710	lua_CFLAGS=$pkg_cv_lua_CFLAGS
30711	lua_LIBS=$pkg_cv_lua_LIBS
30712        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30713$as_echo "yes" >&6; }
30714
30715    if test "x$with_lua" = xdetect; then :
30716  with_lua='yes (found)'
30717fi
30718
30719
30720fi
30721else
30722	lua_CFLAGS=$pkg_cv_lua_CFLAGS
30723	lua_LIBS=$pkg_cv_lua_LIBS
30724        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30725$as_echo "yes" >&6; }
30726
30727    if test "x$with_lua" = xdetect; then :
30728  with_lua='yes (found)'
30729fi
30730
30731
30732fi
30733else
30734	lua_CFLAGS=$pkg_cv_lua_CFLAGS
30735	lua_LIBS=$pkg_cv_lua_LIBS
30736        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30737$as_echo "yes" >&6; }
30738
30739    if test "x$with_lua" = xdetect; then :
30740  with_lua='yes (found)'
30741fi
30742
30743
30744fi
30745else
30746	lua_CFLAGS=$pkg_cv_lua_CFLAGS
30747	lua_LIBS=$pkg_cv_lua_LIBS
30748        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30749$as_echo "yes" >&6; }
30750
30751    if test "x$with_lua" = xdetect; then :
30752  with_lua='yes (found)'
30753fi
30754
30755
30756fi
30757else
30758	lua_CFLAGS=$pkg_cv_lua_CFLAGS
30759	lua_LIBS=$pkg_cv_lua_LIBS
30760        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30761$as_echo "yes" >&6; }
30762
30763    if test "x$with_lua" = xdetect; then :
30764  with_lua='yes (found)'
30765fi
30766
30767
30768fi
30769        case $with_lua in #(
30770  detect) :
30771    with_lua='not found' ;; #(
30772  yes*) :
30773
30774$as_echo "#define HAVE_LUA 1" >>confdefs.h
30775 ;; #(
30776  *) :
30777     ;;
30778esac
30779
30780fi
30781     if expr "X$with_lua" : 'Xyes' >/dev/null; then
30782  HAVE_LUA_TRUE=
30783  HAVE_LUA_FALSE='#'
30784else
30785  HAVE_LUA_TRUE='#'
30786  HAVE_LUA_FALSE=
30787fi
30788
30789
30790
30791
30792# Compiler and linker variables.
30793if test "x$GCC" = xyes; then :
30794  CFLAGS="-Wall $CFLAGS"
30795fi
30796if test "x$GXX" = xyes; then :
30797  CXXFLAGS="-Wall $CXXFLAGS"
30798fi
30799
30800
30801{ $as_echo "$as_me:${as_lineno-$LINENO}: summary
30802---------------------------------------------------------------------------
30803
30804  Build type / target platform            :  $buildtype / $host_os
30805
30806  Optional features:
30807      LADSPA plugin support               :  $with_ladspa
30808      CDDA (Audio CD) support             :  $with_cdda
30809      CDDB support                        :  $with_cddb
30810      Sample Rate Converter support       :  $with_src
30811      iRiver iFP driver support           :  $with_ifp
30812      JACK port management support        :  $enable_jack_mgmt
30813      Loop playback support               :  $enable_loop
30814      Systray support                     :  $enable_systray
30815      Podcast support                     :  $enable_podcast
30816      Lua extension support               :  $with_lua
30817
30818  Decoding support:
30819      sndfile (WAV, AIFF, AU, etc.)       :  $with_sndfile
30820      Free Lossless Audio Codec (FLAC)    :  $with_flac
30821      Ogg Vorbis                          :  $with_vorbis
30822      Ogg Speex                           :  $with_speex
30823      MPEG Audio (MPEG 1-2.5 Layer I-III) :  $with_mpeg
30824      MOD Audio (MOD, S3M, XM, IT, etc.)  :  $with_mod
30825      Musepack                            :  $with_mpc
30826      Monkey's Audio Codec                :  $with_mac
30827      WavPack                             :  $with_wavpack
30828      LAVC (AC3, AAC, WavPack, WMA, etc.) :  $with_lavc
30829
30830  Encoding support:
30831      sndfile (WAV)                       :  $with_sndfile_enc
30832      Free Lossless Audio Codec (FLAC)    :  $with_flac_enc
30833      Ogg Vorbis                          :  $with_vorbisenc
30834      LAME (MP3)                          :  $with_lame
30835
30836  Output driver support:
30837      sndio Audio                         :  $with_sndio
30838      OSS Audio                           :  $with_oss
30839      ALSA Audio                          :  $with_alsa
30840      JACK Audio Server                   :  $with_jack
30841      PulseAudio                          :  $with_pulse
30842      Win32 Sound API                     :  $with_winmm
30843
30844---------------------------------------------------------------------------" >&5
30845$as_echo "$as_me: summary
30846---------------------------------------------------------------------------
30847
30848  Build type / target platform            :  $buildtype / $host_os
30849
30850  Optional features:
30851      LADSPA plugin support               :  $with_ladspa
30852      CDDA (Audio CD) support             :  $with_cdda
30853      CDDB support                        :  $with_cddb
30854      Sample Rate Converter support       :  $with_src
30855      iRiver iFP driver support           :  $with_ifp
30856      JACK port management support        :  $enable_jack_mgmt
30857      Loop playback support               :  $enable_loop
30858      Systray support                     :  $enable_systray
30859      Podcast support                     :  $enable_podcast
30860      Lua extension support               :  $with_lua
30861
30862  Decoding support:
30863      sndfile (WAV, AIFF, AU, etc.)       :  $with_sndfile
30864      Free Lossless Audio Codec (FLAC)    :  $with_flac
30865      Ogg Vorbis                          :  $with_vorbis
30866      Ogg Speex                           :  $with_speex
30867      MPEG Audio (MPEG 1-2.5 Layer I-III) :  $with_mpeg
30868      MOD Audio (MOD, S3M, XM, IT, etc.)  :  $with_mod
30869      Musepack                            :  $with_mpc
30870      Monkey's Audio Codec                :  $with_mac
30871      WavPack                             :  $with_wavpack
30872      LAVC (AC3, AAC, WavPack, WMA, etc.) :  $with_lavc
30873
30874  Encoding support:
30875      sndfile (WAV)                       :  $with_sndfile_enc
30876      Free Lossless Audio Codec (FLAC)    :  $with_flac_enc
30877      Ogg Vorbis                          :  $with_vorbisenc
30878      LAME (MP3)                          :  $with_lame
30879
30880  Output driver support:
30881      sndio Audio                         :  $with_sndio
30882      OSS Audio                           :  $with_oss
30883      ALSA Audio                          :  $with_alsa
30884      JACK Audio Server                   :  $with_jack
30885      PulseAudio                          :  $with_pulse
30886      Win32 Sound API                     :  $with_winmm
30887
30888---------------------------------------------------------------------------" >&6;}
30889cat >confcache <<\_ACEOF
30890# This file is a shell script that caches the results of configure
30891# tests run on this system so they can be shared between configure
30892# scripts and configure runs, see configure's option --config-cache.
30893# It is not useful on other systems.  If it contains results you don't
30894# want to keep, you may remove or edit it.
30895#
30896# config.status only pays attention to the cache file if you give it
30897# the --recheck option to rerun configure.
30898#
30899# `ac_cv_env_foo' variables (set or unset) will be overridden when
30900# loading this file, other *unset* `ac_cv_foo' will be assigned the
30901# following values.
30902
30903_ACEOF
30904
30905# The following way of writing the cache mishandles newlines in values,
30906# but we know of no workaround that is simple, portable, and efficient.
30907# So, we kill variables containing newlines.
30908# Ultrix sh set writes to stderr and can't be redirected directly,
30909# and sets the high bit in the cache file unless we assign to the vars.
30910(
30911  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30912    eval ac_val=\$$ac_var
30913    case $ac_val in #(
30914    *${as_nl}*)
30915      case $ac_var in #(
30916      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30917$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30918      esac
30919      case $ac_var in #(
30920      _ | IFS | as_nl) ;; #(
30921      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30922      *) { eval $ac_var=; unset $ac_var;} ;;
30923      esac ;;
30924    esac
30925  done
30926
30927  (set) 2>&1 |
30928    case $as_nl`(ac_space=' '; set) 2>&1` in #(
30929    *${as_nl}ac_space=\ *)
30930      # `set' does not quote correctly, so add quotes: double-quote
30931      # substitution turns \\\\ into \\, and sed turns \\ into \.
30932      sed -n \
30933	"s/'/'\\\\''/g;
30934	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30935      ;; #(
30936    *)
30937      # `set' quotes correctly as required by POSIX, so do not add quotes.
30938      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30939      ;;
30940    esac |
30941    sort
30942) |
30943  sed '
30944     /^ac_cv_env_/b end
30945     t clear
30946     :clear
30947     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30948     t end
30949     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30950     :end' >>confcache
30951if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30952  if test -w "$cache_file"; then
30953    if test "x$cache_file" != "x/dev/null"; then
30954      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30955$as_echo "$as_me: updating cache $cache_file" >&6;}
30956      if test ! -f "$cache_file" || test -h "$cache_file"; then
30957	cat confcache >"$cache_file"
30958      else
30959        case $cache_file in #(
30960        */* | ?:*)
30961	  mv -f confcache "$cache_file"$$ &&
30962	  mv -f "$cache_file"$$ "$cache_file" ;; #(
30963        *)
30964	  mv -f confcache "$cache_file" ;;
30965	esac
30966      fi
30967    fi
30968  else
30969    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30970$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30971  fi
30972fi
30973rm -f confcache
30974
30975test "x$prefix" = xNONE && prefix=$ac_default_prefix
30976# Let make expand exec_prefix.
30977test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30978
30979DEFS=-DHAVE_CONFIG_H
30980
30981ac_libobjs=
30982ac_ltlibobjs=
30983U=
30984for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30985  # 1. Remove the extension, and $U if already installed.
30986  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30987  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30988  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30989  #    will be set to the directory where LIBOBJS objects are built.
30990  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30991  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30992done
30993LIBOBJS=$ac_libobjs
30994
30995LTLIBOBJS=$ac_ltlibobjs
30996
30997
30998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
30999$as_echo_n "checking that generated files are newer than configure... " >&6; }
31000   if test -n "$am_sleep_pid"; then
31001     # Hide warnings about reused PIDs.
31002     wait $am_sleep_pid 2>/dev/null
31003   fi
31004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
31005$as_echo "done" >&6; }
31006 if test -n "$EXEEXT"; then
31007  am__EXEEXT_TRUE=
31008  am__EXEEXT_FALSE='#'
31009else
31010  am__EXEEXT_TRUE='#'
31011  am__EXEEXT_FALSE=
31012fi
31013
31014if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31015  as_fn_error $? "conditional \"AMDEP\" was never defined.
31016Usually this means the macro was only invoked conditionally." "$LINENO" 5
31017fi
31018if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31019  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
31020Usually this means the macro was only invoked conditionally." "$LINENO" 5
31021fi
31022if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31023  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
31024Usually this means the macro was only invoked conditionally." "$LINENO" 5
31025fi
31026if test -z "${HAVE_LOOP_TRUE}" && test -z "${HAVE_LOOP_FALSE}"; then
31027  as_fn_error $? "conditional \"HAVE_LOOP\" was never defined.
31028Usually this means the macro was only invoked conditionally." "$LINENO" 5
31029fi
31030if test -z "${HAVE_PODCAST_TRUE}" && test -z "${HAVE_PODCAST_FALSE}"; then
31031  as_fn_error $? "conditional \"HAVE_PODCAST\" was never defined.
31032Usually this means the macro was only invoked conditionally." "$LINENO" 5
31033fi
31034if test -z "${HAVE_ALSA_TRUE}" && test -z "${HAVE_ALSA_FALSE}"; then
31035  as_fn_error $? "conditional \"HAVE_ALSA\" was never defined.
31036Usually this means the macro was only invoked conditionally." "$LINENO" 5
31037fi
31038if test -z "${HAVE_JACK_TRUE}" && test -z "${HAVE_JACK_FALSE}"; then
31039  as_fn_error $? "conditional \"HAVE_JACK\" was never defined.
31040Usually this means the macro was only invoked conditionally." "$LINENO" 5
31041fi
31042if test -z "${HAVE_JACK_MGMT_TRUE}" && test -z "${HAVE_JACK_MGMT_FALSE}"; then
31043  as_fn_error $? "conditional \"HAVE_JACK_MGMT\" was never defined.
31044Usually this means the macro was only invoked conditionally." "$LINENO" 5
31045fi
31046if test -z "${HAVE_OSS_TRUE}" && test -z "${HAVE_OSS_FALSE}"; then
31047  as_fn_error $? "conditional \"HAVE_OSS\" was never defined.
31048Usually this means the macro was only invoked conditionally." "$LINENO" 5
31049fi
31050if test -z "${HAVE_PULSE_TRUE}" && test -z "${HAVE_PULSE_FALSE}"; then
31051  as_fn_error $? "conditional \"HAVE_PULSE\" was never defined.
31052Usually this means the macro was only invoked conditionally." "$LINENO" 5
31053fi
31054if test -z "${HAVE_SNDIO_TRUE}" && test -z "${HAVE_SNDIO_FALSE}"; then
31055  as_fn_error $? "conditional \"HAVE_SNDIO\" was never defined.
31056Usually this means the macro was only invoked conditionally." "$LINENO" 5
31057fi
31058if test -z "${HAVE_WINMM_TRUE}" && test -z "${HAVE_WINMM_FALSE}"; then
31059  as_fn_error $? "conditional \"HAVE_WINMM\" was never defined.
31060Usually this means the macro was only invoked conditionally." "$LINENO" 5
31061fi
31062if test -z "${HAVE_FLAC_TRUE}" && test -z "${HAVE_FLAC_FALSE}"; then
31063  as_fn_error $? "conditional \"HAVE_FLAC\" was never defined.
31064Usually this means the macro was only invoked conditionally." "$LINENO" 5
31065fi
31066if test -z "${HAVE_LAME_TRUE}" && test -z "${HAVE_LAME_FALSE}"; then
31067  as_fn_error $? "conditional \"HAVE_LAME\" was never defined.
31068Usually this means the macro was only invoked conditionally." "$LINENO" 5
31069fi
31070if test -z "${HAVE_LAVC_TRUE}" && test -z "${HAVE_LAVC_FALSE}"; then
31071  as_fn_error $? "conditional \"HAVE_LAVC\" was never defined.
31072Usually this means the macro was only invoked conditionally." "$LINENO" 5
31073fi
31074if test -z "${HAVE_MAC_TRUE}" && test -z "${HAVE_MAC_FALSE}"; then
31075  as_fn_error $? "conditional \"HAVE_MAC\" was never defined.
31076Usually this means the macro was only invoked conditionally." "$LINENO" 5
31077fi
31078if test -z "${HAVE_MOD_TRUE}" && test -z "${HAVE_MOD_FALSE}"; then
31079  as_fn_error $? "conditional \"HAVE_MOD\" was never defined.
31080Usually this means the macro was only invoked conditionally." "$LINENO" 5
31081fi
31082if test -z "${HAVE_MPC_TRUE}" && test -z "${HAVE_MPC_FALSE}"; then
31083  as_fn_error $? "conditional \"HAVE_MPC\" was never defined.
31084Usually this means the macro was only invoked conditionally." "$LINENO" 5
31085fi
31086if test -z "${HAVE_MPEG_TRUE}" && test -z "${HAVE_MPEG_FALSE}"; then
31087  as_fn_error $? "conditional \"HAVE_MPEG\" was never defined.
31088Usually this means the macro was only invoked conditionally." "$LINENO" 5
31089fi
31090if test -z "${HAVE_SNDFILE_TRUE}" && test -z "${HAVE_SNDFILE_FALSE}"; then
31091  as_fn_error $? "conditional \"HAVE_SNDFILE\" was never defined.
31092Usually this means the macro was only invoked conditionally." "$LINENO" 5
31093fi
31094if test -z "${HAVE_SPEEX_TRUE}" && test -z "${HAVE_SPEEX_FALSE}"; then
31095  as_fn_error $? "conditional \"HAVE_SPEEX\" was never defined.
31096Usually this means the macro was only invoked conditionally." "$LINENO" 5
31097fi
31098if test -z "${HAVE_VORBIS_TRUE}" && test -z "${HAVE_VORBIS_FALSE}"; then
31099  as_fn_error $? "conditional \"HAVE_VORBIS\" was never defined.
31100Usually this means the macro was only invoked conditionally." "$LINENO" 5
31101fi
31102if test -z "${HAVE_VORBISENC_TRUE}" && test -z "${HAVE_VORBISENC_FALSE}"; then
31103  as_fn_error $? "conditional \"HAVE_VORBISENC\" was never defined.
31104Usually this means the macro was only invoked conditionally." "$LINENO" 5
31105fi
31106if test -z "${HAVE_TRANSCODING_TRUE}" && test -z "${HAVE_TRANSCODING_FALSE}"; then
31107  as_fn_error $? "conditional \"HAVE_TRANSCODING\" was never defined.
31108Usually this means the macro was only invoked conditionally." "$LINENO" 5
31109fi
31110if test -z "${HAVE_WAVPACK_TRUE}" && test -z "${HAVE_WAVPACK_FALSE}"; then
31111  as_fn_error $? "conditional \"HAVE_WAVPACK\" was never defined.
31112Usually this means the macro was only invoked conditionally." "$LINENO" 5
31113fi
31114if test -z "${HAVE_LADSPA_TRUE}" && test -z "${HAVE_LADSPA_FALSE}"; then
31115  as_fn_error $? "conditional \"HAVE_LADSPA\" was never defined.
31116Usually this means the macro was only invoked conditionally." "$LINENO" 5
31117fi
31118if test -z "${HAVE_SRC_TRUE}" && test -z "${HAVE_SRC_FALSE}"; then
31119  as_fn_error $? "conditional \"HAVE_SRC\" was never defined.
31120Usually this means the macro was only invoked conditionally." "$LINENO" 5
31121fi
31122if test -z "${HAVE_CDDA_TRUE}" && test -z "${HAVE_CDDA_FALSE}"; then
31123  as_fn_error $? "conditional \"HAVE_CDDA\" was never defined.
31124Usually this means the macro was only invoked conditionally." "$LINENO" 5
31125fi
31126if test -z "${HAVE_IFP_TRUE}" && test -z "${HAVE_IFP_FALSE}"; then
31127  as_fn_error $? "conditional \"HAVE_IFP\" was never defined.
31128Usually this means the macro was only invoked conditionally." "$LINENO" 5
31129fi
31130if test -z "${HAVE_CDDB_TRUE}" && test -z "${HAVE_CDDB_FALSE}"; then
31131  as_fn_error $? "conditional \"HAVE_CDDB\" was never defined.
31132Usually this means the macro was only invoked conditionally." "$LINENO" 5
31133fi
31134if test -z "${HAVE_LUA_TRUE}" && test -z "${HAVE_LUA_FALSE}"; then
31135  as_fn_error $? "conditional \"HAVE_LUA\" was never defined.
31136Usually this means the macro was only invoked conditionally." "$LINENO" 5
31137fi
31138
31139: "${CONFIG_STATUS=./config.status}"
31140ac_write_fail=0
31141ac_clean_files_save=$ac_clean_files
31142ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31143{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31144$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31145as_write_fail=0
31146cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31147#! $SHELL
31148# Generated by $as_me.
31149# Run this file to recreate the current configuration.
31150# Compiler output produced by configure, useful for debugging
31151# configure, is in config.log if it exists.
31152
31153debug=false
31154ac_cs_recheck=false
31155ac_cs_silent=false
31156
31157SHELL=\${CONFIG_SHELL-$SHELL}
31158export SHELL
31159_ASEOF
31160cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31161## -------------------- ##
31162## M4sh Initialization. ##
31163## -------------------- ##
31164
31165# Be more Bourne compatible
31166DUALCASE=1; export DUALCASE # for MKS sh
31167if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31168  emulate sh
31169  NULLCMD=:
31170  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31171  # is contrary to our usage.  Disable this feature.
31172  alias -g '${1+"$@"}'='"$@"'
31173  setopt NO_GLOB_SUBST
31174else
31175  case `(set -o) 2>/dev/null` in #(
31176  *posix*) :
31177    set -o posix ;; #(
31178  *) :
31179     ;;
31180esac
31181fi
31182
31183
31184as_nl='
31185'
31186export as_nl
31187# Printing a long string crashes Solaris 7 /usr/bin/printf.
31188as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31189as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31190as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31191# Prefer a ksh shell builtin over an external printf program on Solaris,
31192# but without wasting forks for bash or zsh.
31193if test -z "$BASH_VERSION$ZSH_VERSION" \
31194    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31195  as_echo='print -r --'
31196  as_echo_n='print -rn --'
31197elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31198  as_echo='printf %s\n'
31199  as_echo_n='printf %s'
31200else
31201  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31202    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31203    as_echo_n='/usr/ucb/echo -n'
31204  else
31205    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31206    as_echo_n_body='eval
31207      arg=$1;
31208      case $arg in #(
31209      *"$as_nl"*)
31210	expr "X$arg" : "X\\(.*\\)$as_nl";
31211	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31212      esac;
31213      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31214    '
31215    export as_echo_n_body
31216    as_echo_n='sh -c $as_echo_n_body as_echo'
31217  fi
31218  export as_echo_body
31219  as_echo='sh -c $as_echo_body as_echo'
31220fi
31221
31222# The user is always right.
31223if test "${PATH_SEPARATOR+set}" != set; then
31224  PATH_SEPARATOR=:
31225  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31226    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31227      PATH_SEPARATOR=';'
31228  }
31229fi
31230
31231
31232# IFS
31233# We need space, tab and new line, in precisely that order.  Quoting is
31234# there to prevent editors from complaining about space-tab.
31235# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31236# splitting by setting IFS to empty value.)
31237IFS=" ""	$as_nl"
31238
31239# Find who we are.  Look in the path if we contain no directory separator.
31240as_myself=
31241case $0 in #((
31242  *[\\/]* ) as_myself=$0 ;;
31243  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31244for as_dir in $PATH
31245do
31246  IFS=$as_save_IFS
31247  test -z "$as_dir" && as_dir=.
31248    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31249  done
31250IFS=$as_save_IFS
31251
31252     ;;
31253esac
31254# We did not find ourselves, most probably we were run as `sh COMMAND'
31255# in which case we are not to be found in the path.
31256if test "x$as_myself" = x; then
31257  as_myself=$0
31258fi
31259if test ! -f "$as_myself"; then
31260  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31261  exit 1
31262fi
31263
31264# Unset variables that we do not need and which cause bugs (e.g. in
31265# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31266# suppresses any "Segmentation fault" message there.  '((' could
31267# trigger a bug in pdksh 5.2.14.
31268for as_var in BASH_ENV ENV MAIL MAILPATH
31269do eval test x\${$as_var+set} = xset \
31270  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31271done
31272PS1='$ '
31273PS2='> '
31274PS4='+ '
31275
31276# NLS nuisances.
31277LC_ALL=C
31278export LC_ALL
31279LANGUAGE=C
31280export LANGUAGE
31281
31282# CDPATH.
31283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31284
31285
31286# as_fn_error STATUS ERROR [LINENO LOG_FD]
31287# ----------------------------------------
31288# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31289# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31290# script with STATUS, using 1 if that was 0.
31291as_fn_error ()
31292{
31293  as_status=$1; test $as_status -eq 0 && as_status=1
31294  if test "$4"; then
31295    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31296    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31297  fi
31298  $as_echo "$as_me: error: $2" >&2
31299  as_fn_exit $as_status
31300} # as_fn_error
31301
31302
31303# as_fn_set_status STATUS
31304# -----------------------
31305# Set $? to STATUS, without forking.
31306as_fn_set_status ()
31307{
31308  return $1
31309} # as_fn_set_status
31310
31311# as_fn_exit STATUS
31312# -----------------
31313# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31314as_fn_exit ()
31315{
31316  set +e
31317  as_fn_set_status $1
31318  exit $1
31319} # as_fn_exit
31320
31321# as_fn_unset VAR
31322# ---------------
31323# Portably unset VAR.
31324as_fn_unset ()
31325{
31326  { eval $1=; unset $1;}
31327}
31328as_unset=as_fn_unset
31329# as_fn_append VAR VALUE
31330# ----------------------
31331# Append the text in VALUE to the end of the definition contained in VAR. Take
31332# advantage of any shell optimizations that allow amortized linear growth over
31333# repeated appends, instead of the typical quadratic growth present in naive
31334# implementations.
31335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31336  eval 'as_fn_append ()
31337  {
31338    eval $1+=\$2
31339  }'
31340else
31341  as_fn_append ()
31342  {
31343    eval $1=\$$1\$2
31344  }
31345fi # as_fn_append
31346
31347# as_fn_arith ARG...
31348# ------------------
31349# Perform arithmetic evaluation on the ARGs, and store the result in the
31350# global $as_val. Take advantage of shells that can avoid forks. The arguments
31351# must be portable across $(()) and expr.
31352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31353  eval 'as_fn_arith ()
31354  {
31355    as_val=$(( $* ))
31356  }'
31357else
31358  as_fn_arith ()
31359  {
31360    as_val=`expr "$@" || test $? -eq 1`
31361  }
31362fi # as_fn_arith
31363
31364
31365if expr a : '\(a\)' >/dev/null 2>&1 &&
31366   test "X`expr 00001 : '.*\(...\)'`" = X001; then
31367  as_expr=expr
31368else
31369  as_expr=false
31370fi
31371
31372if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31373  as_basename=basename
31374else
31375  as_basename=false
31376fi
31377
31378if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31379  as_dirname=dirname
31380else
31381  as_dirname=false
31382fi
31383
31384as_me=`$as_basename -- "$0" ||
31385$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31386	 X"$0" : 'X\(//\)$' \| \
31387	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31388$as_echo X/"$0" |
31389    sed '/^.*\/\([^/][^/]*\)\/*$/{
31390	    s//\1/
31391	    q
31392	  }
31393	  /^X\/\(\/\/\)$/{
31394	    s//\1/
31395	    q
31396	  }
31397	  /^X\/\(\/\).*/{
31398	    s//\1/
31399	    q
31400	  }
31401	  s/.*/./; q'`
31402
31403# Avoid depending upon Character Ranges.
31404as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31405as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31406as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31407as_cr_digits='0123456789'
31408as_cr_alnum=$as_cr_Letters$as_cr_digits
31409
31410ECHO_C= ECHO_N= ECHO_T=
31411case `echo -n x` in #(((((
31412-n*)
31413  case `echo 'xy\c'` in
31414  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
31415  xy)  ECHO_C='\c';;
31416  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31417       ECHO_T='	';;
31418  esac;;
31419*)
31420  ECHO_N='-n';;
31421esac
31422
31423rm -f conf$$ conf$$.exe conf$$.file
31424if test -d conf$$.dir; then
31425  rm -f conf$$.dir/conf$$.file
31426else
31427  rm -f conf$$.dir
31428  mkdir conf$$.dir 2>/dev/null
31429fi
31430if (echo >conf$$.file) 2>/dev/null; then
31431  if ln -s conf$$.file conf$$ 2>/dev/null; then
31432    as_ln_s='ln -s'
31433    # ... but there are two gotchas:
31434    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31435    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31436    # In both cases, we have to default to `cp -pR'.
31437    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31438      as_ln_s='cp -pR'
31439  elif ln conf$$.file conf$$ 2>/dev/null; then
31440    as_ln_s=ln
31441  else
31442    as_ln_s='cp -pR'
31443  fi
31444else
31445  as_ln_s='cp -pR'
31446fi
31447rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31448rmdir conf$$.dir 2>/dev/null
31449
31450
31451# as_fn_mkdir_p
31452# -------------
31453# Create "$as_dir" as a directory, including parents if necessary.
31454as_fn_mkdir_p ()
31455{
31456
31457  case $as_dir in #(
31458  -*) as_dir=./$as_dir;;
31459  esac
31460  test -d "$as_dir" || eval $as_mkdir_p || {
31461    as_dirs=
31462    while :; do
31463      case $as_dir in #(
31464      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31465      *) as_qdir=$as_dir;;
31466      esac
31467      as_dirs="'$as_qdir' $as_dirs"
31468      as_dir=`$as_dirname -- "$as_dir" ||
31469$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31470	 X"$as_dir" : 'X\(//\)[^/]' \| \
31471	 X"$as_dir" : 'X\(//\)$' \| \
31472	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31473$as_echo X"$as_dir" |
31474    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31475	    s//\1/
31476	    q
31477	  }
31478	  /^X\(\/\/\)[^/].*/{
31479	    s//\1/
31480	    q
31481	  }
31482	  /^X\(\/\/\)$/{
31483	    s//\1/
31484	    q
31485	  }
31486	  /^X\(\/\).*/{
31487	    s//\1/
31488	    q
31489	  }
31490	  s/.*/./; q'`
31491      test -d "$as_dir" && break
31492    done
31493    test -z "$as_dirs" || eval "mkdir $as_dirs"
31494  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31495
31496
31497} # as_fn_mkdir_p
31498if mkdir -p . 2>/dev/null; then
31499  as_mkdir_p='mkdir -p "$as_dir"'
31500else
31501  test -d ./-p && rmdir ./-p
31502  as_mkdir_p=false
31503fi
31504
31505
31506# as_fn_executable_p FILE
31507# -----------------------
31508# Test if FILE is an executable regular file.
31509as_fn_executable_p ()
31510{
31511  test -f "$1" && test -x "$1"
31512} # as_fn_executable_p
31513as_test_x='test -x'
31514as_executable_p=as_fn_executable_p
31515
31516# Sed expression to map a string onto a valid CPP name.
31517as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31518
31519# Sed expression to map a string onto a valid variable name.
31520as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31521
31522
31523exec 6>&1
31524## ----------------------------------- ##
31525## Main body of $CONFIG_STATUS script. ##
31526## ----------------------------------- ##
31527_ASEOF
31528test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31529
31530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31531# Save the log message, to keep $0 and so on meaningful, and to
31532# report actual input values of CONFIG_FILES etc. instead of their
31533# values after options handling.
31534ac_log="
31535This file was extended by aqualung $as_me 1.0, which was
31536generated by GNU Autoconf 2.69.  Invocation command line was
31537
31538  CONFIG_FILES    = $CONFIG_FILES
31539  CONFIG_HEADERS  = $CONFIG_HEADERS
31540  CONFIG_LINKS    = $CONFIG_LINKS
31541  CONFIG_COMMANDS = $CONFIG_COMMANDS
31542  $ $0 $@
31543
31544on `(hostname || uname -n) 2>/dev/null | sed 1q`
31545"
31546
31547_ACEOF
31548
31549case $ac_config_files in *"
31550"*) set x $ac_config_files; shift; ac_config_files=$*;;
31551esac
31552
31553case $ac_config_headers in *"
31554"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31555esac
31556
31557
31558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31559# Files that config.status was made for.
31560config_files="$ac_config_files"
31561config_headers="$ac_config_headers"
31562config_commands="$ac_config_commands"
31563
31564_ACEOF
31565
31566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31567ac_cs_usage="\
31568\`$as_me' instantiates files and other configuration actions
31569from templates according to the current configuration.  Unless the files
31570and actions are specified as TAGs, all are instantiated by default.
31571
31572Usage: $0 [OPTION]... [TAG]...
31573
31574  -h, --help       print this help, then exit
31575  -V, --version    print version number and configuration settings, then exit
31576      --config     print configuration, then exit
31577  -q, --quiet, --silent
31578                   do not print progress messages
31579  -d, --debug      don't remove temporary files
31580      --recheck    update $as_me by reconfiguring in the same conditions
31581      --file=FILE[:TEMPLATE]
31582                   instantiate the configuration file FILE
31583      --header=FILE[:TEMPLATE]
31584                   instantiate the configuration header FILE
31585
31586Configuration files:
31587$config_files
31588
31589Configuration headers:
31590$config_headers
31591
31592Configuration commands:
31593$config_commands
31594
31595Report bugs to <http://aqualung.factorial.hu/mantis>."
31596
31597_ACEOF
31598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31599ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31600ac_cs_version="\\
31601aqualung config.status 1.0
31602configured by $0, generated by GNU Autoconf 2.69,
31603  with options \\"\$ac_cs_config\\"
31604
31605Copyright (C) 2012 Free Software Foundation, Inc.
31606This config.status script is free software; the Free Software Foundation
31607gives unlimited permission to copy, distribute and modify it."
31608
31609ac_pwd='$ac_pwd'
31610srcdir='$srcdir'
31611INSTALL='$INSTALL'
31612MKDIR_P='$MKDIR_P'
31613AWK='$AWK'
31614test -n "\$AWK" || AWK=awk
31615_ACEOF
31616
31617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31618# The default lists apply if the user does not specify any file.
31619ac_need_defaults=:
31620while test $# != 0
31621do
31622  case $1 in
31623  --*=?*)
31624    ac_option=`expr "X$1" : 'X\([^=]*\)='`
31625    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31626    ac_shift=:
31627    ;;
31628  --*=)
31629    ac_option=`expr "X$1" : 'X\([^=]*\)='`
31630    ac_optarg=
31631    ac_shift=:
31632    ;;
31633  *)
31634    ac_option=$1
31635    ac_optarg=$2
31636    ac_shift=shift
31637    ;;
31638  esac
31639
31640  case $ac_option in
31641  # Handling of the options.
31642  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31643    ac_cs_recheck=: ;;
31644  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31645    $as_echo "$ac_cs_version"; exit ;;
31646  --config | --confi | --conf | --con | --co | --c )
31647    $as_echo "$ac_cs_config"; exit ;;
31648  --debug | --debu | --deb | --de | --d | -d )
31649    debug=: ;;
31650  --file | --fil | --fi | --f )
31651    $ac_shift
31652    case $ac_optarg in
31653    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31654    '') as_fn_error $? "missing file argument" ;;
31655    esac
31656    as_fn_append CONFIG_FILES " '$ac_optarg'"
31657    ac_need_defaults=false;;
31658  --header | --heade | --head | --hea )
31659    $ac_shift
31660    case $ac_optarg in
31661    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31662    esac
31663    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31664    ac_need_defaults=false;;
31665  --he | --h)
31666    # Conflict between --help and --header
31667    as_fn_error $? "ambiguous option: \`$1'
31668Try \`$0 --help' for more information.";;
31669  --help | --hel | -h )
31670    $as_echo "$ac_cs_usage"; exit ;;
31671  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31672  | -silent | --silent | --silen | --sile | --sil | --si | --s)
31673    ac_cs_silent=: ;;
31674
31675  # This is an error.
31676  -*) as_fn_error $? "unrecognized option: \`$1'
31677Try \`$0 --help' for more information." ;;
31678
31679  *) as_fn_append ac_config_targets " $1"
31680     ac_need_defaults=false ;;
31681
31682  esac
31683  shift
31684done
31685
31686ac_configure_extra_args=
31687
31688if $ac_cs_silent; then
31689  exec 6>/dev/null
31690  ac_configure_extra_args="$ac_configure_extra_args --silent"
31691fi
31692
31693_ACEOF
31694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31695if \$ac_cs_recheck; then
31696  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31697  shift
31698  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31699  CONFIG_SHELL='$SHELL'
31700  export CONFIG_SHELL
31701  exec "\$@"
31702fi
31703
31704_ACEOF
31705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31706exec 5>>config.log
31707{
31708  echo
31709  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31710## Running $as_me. ##
31711_ASBOX
31712  $as_echo "$ac_log"
31713} >&5
31714
31715_ACEOF
31716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31717#
31718# INIT-COMMANDS
31719#
31720AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31721# Capture the value of obsolete ALL_LINGUAS because we need it to compute
31722    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31723    # from automake < 1.5.
31724    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31725    # Capture the value of LINGUAS because we need it to compute CATALOGS.
31726    LINGUAS="${LINGUAS-%UNSET%}"
31727
31728
31729_ACEOF
31730
31731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31732
31733# Handling of arguments.
31734for ac_config_target in $ac_config_targets
31735do
31736  case $ac_config_target in
31737    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
31738    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31739    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
31740    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31741    "skin/Makefile") CONFIG_FILES="$CONFIG_FILES skin/Makefile" ;;
31742    "skin/dark/Makefile") CONFIG_FILES="$CONFIG_FILES skin/dark/Makefile" ;;
31743    "skin/default/Makefile") CONFIG_FILES="$CONFIG_FILES skin/default/Makefile" ;;
31744    "skin/metal/Makefile") CONFIG_FILES="$CONFIG_FILES skin/metal/Makefile" ;;
31745    "skin/ocean/Makefile") CONFIG_FILES="$CONFIG_FILES skin/ocean/Makefile" ;;
31746    "skin/plain/Makefile") CONFIG_FILES="$CONFIG_FILES skin/plain/Makefile" ;;
31747    "skin/woody/Makefile") CONFIG_FILES="$CONFIG_FILES skin/woody/Makefile" ;;
31748    "skin/no_skin/Makefile") CONFIG_FILES="$CONFIG_FILES skin/no_skin/Makefile" ;;
31749    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31750    "src/decoder/Makefile") CONFIG_FILES="$CONFIG_FILES src/decoder/Makefile" ;;
31751    "src/encoder/Makefile") CONFIG_FILES="$CONFIG_FILES src/encoder/Makefile" ;;
31752    "src/img/Makefile") CONFIG_FILES="$CONFIG_FILES src/img/Makefile" ;;
31753    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31754    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
31755
31756  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31757  esac
31758done
31759
31760
31761# If the user did not use the arguments to specify the items to instantiate,
31762# then the envvar interface is used.  Set only those that are not.
31763# We use the long form for the default assignment because of an extremely
31764# bizarre bug on SunOS 4.1.3.
31765if $ac_need_defaults; then
31766  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31767  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31768  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31769fi
31770
31771# Have a temporary directory for convenience.  Make it in the build tree
31772# simply because there is no reason against having it here, and in addition,
31773# creating and moving files from /tmp can sometimes cause problems.
31774# Hook for its removal unless debugging.
31775# Note that there is a small window in which the directory will not be cleaned:
31776# after its creation but before its name has been assigned to `$tmp'.
31777$debug ||
31778{
31779  tmp= ac_tmp=
31780  trap 'exit_status=$?
31781  : "${ac_tmp:=$tmp}"
31782  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31783' 0
31784  trap 'as_fn_exit 1' 1 2 13 15
31785}
31786# Create a (secure) tmp directory for tmp files.
31787
31788{
31789  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31790  test -d "$tmp"
31791}  ||
31792{
31793  tmp=./conf$$-$RANDOM
31794  (umask 077 && mkdir "$tmp")
31795} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31796ac_tmp=$tmp
31797
31798# Set up the scripts for CONFIG_FILES section.
31799# No need to generate them if there are no CONFIG_FILES.
31800# This happens for instance with `./config.status config.h'.
31801if test -n "$CONFIG_FILES"; then
31802
31803
31804ac_cr=`echo X | tr X '\015'`
31805# On cygwin, bash can eat \r inside `` if the user requested igncr.
31806# But we know of no other shell where ac_cr would be empty at this
31807# point, so we can use a bashism as a fallback.
31808if test "x$ac_cr" = x; then
31809  eval ac_cr=\$\'\\r\'
31810fi
31811ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31812if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31813  ac_cs_awk_cr='\\r'
31814else
31815  ac_cs_awk_cr=$ac_cr
31816fi
31817
31818echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31819_ACEOF
31820
31821
31822{
31823  echo "cat >conf$$subs.awk <<_ACEOF" &&
31824  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31825  echo "_ACEOF"
31826} >conf$$subs.sh ||
31827  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31828ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31829ac_delim='%!_!# '
31830for ac_last_try in false false false false false :; do
31831  . ./conf$$subs.sh ||
31832    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31833
31834  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31835  if test $ac_delim_n = $ac_delim_num; then
31836    break
31837  elif $ac_last_try; then
31838    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31839  else
31840    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31841  fi
31842done
31843rm -f conf$$subs.sh
31844
31845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31846cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31847_ACEOF
31848sed -n '
31849h
31850s/^/S["/; s/!.*/"]=/
31851p
31852g
31853s/^[^!]*!//
31854:repl
31855t repl
31856s/'"$ac_delim"'$//
31857t delim
31858:nl
31859h
31860s/\(.\{148\}\)..*/\1/
31861t more1
31862s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31863p
31864n
31865b repl
31866:more1
31867s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31868p
31869g
31870s/.\{148\}//
31871t nl
31872:delim
31873h
31874s/\(.\{148\}\)..*/\1/
31875t more2
31876s/["\\]/\\&/g; s/^/"/; s/$/"/
31877p
31878b
31879:more2
31880s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31881p
31882g
31883s/.\{148\}//
31884t delim
31885' <conf$$subs.awk | sed '
31886/^[^""]/{
31887  N
31888  s/\n//
31889}
31890' >>$CONFIG_STATUS || ac_write_fail=1
31891rm -f conf$$subs.awk
31892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31893_ACAWK
31894cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31895  for (key in S) S_is_set[key] = 1
31896  FS = ""
31897
31898}
31899{
31900  line = $ 0
31901  nfields = split(line, field, "@")
31902  substed = 0
31903  len = length(field[1])
31904  for (i = 2; i < nfields; i++) {
31905    key = field[i]
31906    keylen = length(key)
31907    if (S_is_set[key]) {
31908      value = S[key]
31909      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31910      len += length(value) + length(field[++i])
31911      substed = 1
31912    } else
31913      len += 1 + keylen
31914  }
31915
31916  print line
31917}
31918
31919_ACAWK
31920_ACEOF
31921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31922if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31923  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31924else
31925  cat
31926fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31927  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31928_ACEOF
31929
31930# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31931# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31932# trailing colons and then remove the whole line if VPATH becomes empty
31933# (actually we leave an empty line to preserve line numbers).
31934if test "x$srcdir" = x.; then
31935  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
31936h
31937s///
31938s/^/:/
31939s/[	 ]*$/:/
31940s/:\$(srcdir):/:/g
31941s/:\${srcdir}:/:/g
31942s/:@srcdir@:/:/g
31943s/^:*//
31944s/:*$//
31945x
31946s/\(=[	 ]*\).*/\1/
31947G
31948s/\n//
31949s/^[^=]*=[	 ]*$//
31950}'
31951fi
31952
31953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31954fi # test -n "$CONFIG_FILES"
31955
31956# Set up the scripts for CONFIG_HEADERS section.
31957# No need to generate them if there are no CONFIG_HEADERS.
31958# This happens for instance with `./config.status Makefile'.
31959if test -n "$CONFIG_HEADERS"; then
31960cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31961BEGIN {
31962_ACEOF
31963
31964# Transform confdefs.h into an awk script `defines.awk', embedded as
31965# here-document in config.status, that substitutes the proper values into
31966# config.h.in to produce config.h.
31967
31968# Create a delimiter string that does not exist in confdefs.h, to ease
31969# handling of long lines.
31970ac_delim='%!_!# '
31971for ac_last_try in false false :; do
31972  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31973  if test -z "$ac_tt"; then
31974    break
31975  elif $ac_last_try; then
31976    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31977  else
31978    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31979  fi
31980done
31981
31982# For the awk script, D is an array of macro values keyed by name,
31983# likewise P contains macro parameters if any.  Preserve backslash
31984# newline sequences.
31985
31986ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31987sed -n '
31988s/.\{148\}/&'"$ac_delim"'/g
31989t rset
31990:rset
31991s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
31992t def
31993d
31994:def
31995s/\\$//
31996t bsnl
31997s/["\\]/\\&/g
31998s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
31999D["\1"]=" \3"/p
32000s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
32001d
32002:bsnl
32003s/["\\]/\\&/g
32004s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
32005D["\1"]=" \3\\\\\\n"\\/p
32006t cont
32007s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32008t cont
32009d
32010:cont
32011n
32012s/.\{148\}/&'"$ac_delim"'/g
32013t clear
32014:clear
32015s/\\$//
32016t bsnlc
32017s/["\\]/\\&/g; s/^/"/; s/$/"/p
32018d
32019:bsnlc
32020s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32021b cont
32022' <confdefs.h | sed '
32023s/'"$ac_delim"'/"\\\
32024"/g' >>$CONFIG_STATUS || ac_write_fail=1
32025
32026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32027  for (key in D) D_is_set[key] = 1
32028  FS = ""
32029}
32030/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32031  line = \$ 0
32032  split(line, arg, " ")
32033  if (arg[1] == "#") {
32034    defundef = arg[2]
32035    mac1 = arg[3]
32036  } else {
32037    defundef = substr(arg[1], 2)
32038    mac1 = arg[2]
32039  }
32040  split(mac1, mac2, "(") #)
32041  macro = mac2[1]
32042  prefix = substr(line, 1, index(line, defundef) - 1)
32043  if (D_is_set[macro]) {
32044    # Preserve the white space surrounding the "#".
32045    print prefix "define", macro P[macro] D[macro]
32046    next
32047  } else {
32048    # Replace #undef with comments.  This is necessary, for example,
32049    # in the case of _POSIX_SOURCE, which is predefined and required
32050    # on some systems where configure will not decide to define it.
32051    if (defundef == "undef") {
32052      print "/*", prefix defundef, macro, "*/"
32053      next
32054    }
32055  }
32056}
32057{ print }
32058_ACAWK
32059_ACEOF
32060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32061  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32062fi # test -n "$CONFIG_HEADERS"
32063
32064
32065eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32066shift
32067for ac_tag
32068do
32069  case $ac_tag in
32070  :[FHLC]) ac_mode=$ac_tag; continue;;
32071  esac
32072  case $ac_mode$ac_tag in
32073  :[FHL]*:*);;
32074  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32075  :[FH]-) ac_tag=-:-;;
32076  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32077  esac
32078  ac_save_IFS=$IFS
32079  IFS=:
32080  set x $ac_tag
32081  IFS=$ac_save_IFS
32082  shift
32083  ac_file=$1
32084  shift
32085
32086  case $ac_mode in
32087  :L) ac_source=$1;;
32088  :[FH])
32089    ac_file_inputs=
32090    for ac_f
32091    do
32092      case $ac_f in
32093      -) ac_f="$ac_tmp/stdin";;
32094      *) # Look for the file first in the build tree, then in the source tree
32095	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
32096	 # because $ac_f cannot contain `:'.
32097	 test -f "$ac_f" ||
32098	   case $ac_f in
32099	   [\\/$]*) false;;
32100	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32101	   esac ||
32102	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32103      esac
32104      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32105      as_fn_append ac_file_inputs " '$ac_f'"
32106    done
32107
32108    # Let's still pretend it is `configure' which instantiates (i.e., don't
32109    # use $as_me), people would be surprised to read:
32110    #    /* config.h.  Generated by config.status.  */
32111    configure_input='Generated from '`
32112	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32113	`' by configure.'
32114    if test x"$ac_file" != x-; then
32115      configure_input="$ac_file.  $configure_input"
32116      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32117$as_echo "$as_me: creating $ac_file" >&6;}
32118    fi
32119    # Neutralize special characters interpreted by sed in replacement strings.
32120    case $configure_input in #(
32121    *\&* | *\|* | *\\* )
32122       ac_sed_conf_input=`$as_echo "$configure_input" |
32123       sed 's/[\\\\&|]/\\\\&/g'`;; #(
32124    *) ac_sed_conf_input=$configure_input;;
32125    esac
32126
32127    case $ac_tag in
32128    *:-:* | *:-) cat >"$ac_tmp/stdin" \
32129      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32130    esac
32131    ;;
32132  esac
32133
32134  ac_dir=`$as_dirname -- "$ac_file" ||
32135$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32136	 X"$ac_file" : 'X\(//\)[^/]' \| \
32137	 X"$ac_file" : 'X\(//\)$' \| \
32138	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32139$as_echo X"$ac_file" |
32140    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32141	    s//\1/
32142	    q
32143	  }
32144	  /^X\(\/\/\)[^/].*/{
32145	    s//\1/
32146	    q
32147	  }
32148	  /^X\(\/\/\)$/{
32149	    s//\1/
32150	    q
32151	  }
32152	  /^X\(\/\).*/{
32153	    s//\1/
32154	    q
32155	  }
32156	  s/.*/./; q'`
32157  as_dir="$ac_dir"; as_fn_mkdir_p
32158  ac_builddir=.
32159
32160case "$ac_dir" in
32161.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32162*)
32163  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32164  # A ".." for each directory in $ac_dir_suffix.
32165  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32166  case $ac_top_builddir_sub in
32167  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32168  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32169  esac ;;
32170esac
32171ac_abs_top_builddir=$ac_pwd
32172ac_abs_builddir=$ac_pwd$ac_dir_suffix
32173# for backward compatibility:
32174ac_top_builddir=$ac_top_build_prefix
32175
32176case $srcdir in
32177  .)  # We are building in place.
32178    ac_srcdir=.
32179    ac_top_srcdir=$ac_top_builddir_sub
32180    ac_abs_top_srcdir=$ac_pwd ;;
32181  [\\/]* | ?:[\\/]* )  # Absolute name.
32182    ac_srcdir=$srcdir$ac_dir_suffix;
32183    ac_top_srcdir=$srcdir
32184    ac_abs_top_srcdir=$srcdir ;;
32185  *) # Relative name.
32186    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32187    ac_top_srcdir=$ac_top_build_prefix$srcdir
32188    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32189esac
32190ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32191
32192
32193  case $ac_mode in
32194  :F)
32195  #
32196  # CONFIG_FILE
32197  #
32198
32199  case $INSTALL in
32200  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32201  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32202  esac
32203  ac_MKDIR_P=$MKDIR_P
32204  case $MKDIR_P in
32205  [\\/$]* | ?:[\\/]* ) ;;
32206  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32207  esac
32208_ACEOF
32209
32210cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32211# If the template does not know about datarootdir, expand it.
32212# FIXME: This hack should be removed a few years after 2.60.
32213ac_datarootdir_hack=; ac_datarootdir_seen=
32214ac_sed_dataroot='
32215/datarootdir/ {
32216  p
32217  q
32218}
32219/@datadir@/p
32220/@docdir@/p
32221/@infodir@/p
32222/@localedir@/p
32223/@mandir@/p'
32224case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32225*datarootdir*) ac_datarootdir_seen=yes;;
32226*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32227  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32228$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32229_ACEOF
32230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32231  ac_datarootdir_hack='
32232  s&@datadir@&$datadir&g
32233  s&@docdir@&$docdir&g
32234  s&@infodir@&$infodir&g
32235  s&@localedir@&$localedir&g
32236  s&@mandir@&$mandir&g
32237  s&\\\${datarootdir}&$datarootdir&g' ;;
32238esac
32239_ACEOF
32240
32241# Neutralize VPATH when `$srcdir' = `.'.
32242# Shell code in configure.ac might set extrasub.
32243# FIXME: do we really want to maintain this feature?
32244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32245ac_sed_extra="$ac_vpsub
32246$extrasub
32247_ACEOF
32248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32249:t
32250/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32251s|@configure_input@|$ac_sed_conf_input|;t t
32252s&@top_builddir@&$ac_top_builddir_sub&;t t
32253s&@top_build_prefix@&$ac_top_build_prefix&;t t
32254s&@srcdir@&$ac_srcdir&;t t
32255s&@abs_srcdir@&$ac_abs_srcdir&;t t
32256s&@top_srcdir@&$ac_top_srcdir&;t t
32257s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32258s&@builddir@&$ac_builddir&;t t
32259s&@abs_builddir@&$ac_abs_builddir&;t t
32260s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32261s&@INSTALL@&$ac_INSTALL&;t t
32262s&@MKDIR_P@&$ac_MKDIR_P&;t t
32263$ac_datarootdir_hack
32264"
32265eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
32266  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32267
32268test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32269  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32270  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
32271      "$ac_tmp/out"`; test -z "$ac_out"; } &&
32272  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32273which seems to be undefined.  Please make sure it is defined" >&5
32274$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32275which seems to be undefined.  Please make sure it is defined" >&2;}
32276
32277  rm -f "$ac_tmp/stdin"
32278  case $ac_file in
32279  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32280  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32281  esac \
32282  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32283 ;;
32284  :H)
32285  #
32286  # CONFIG_HEADER
32287  #
32288  if test x"$ac_file" != x-; then
32289    {
32290      $as_echo "/* $configure_input  */" \
32291      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32292    } >"$ac_tmp/config.h" \
32293      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32294    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32295      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32296$as_echo "$as_me: $ac_file is unchanged" >&6;}
32297    else
32298      rm -f "$ac_file"
32299      mv "$ac_tmp/config.h" "$ac_file" \
32300	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
32301    fi
32302  else
32303    $as_echo "/* $configure_input  */" \
32304      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32305      || as_fn_error $? "could not create -" "$LINENO" 5
32306  fi
32307# Compute "$ac_file"'s index in $config_headers.
32308_am_arg="$ac_file"
32309_am_stamp_count=1
32310for _am_header in $config_headers :; do
32311  case $_am_header in
32312    $_am_arg | $_am_arg:* )
32313      break ;;
32314    * )
32315      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32316  esac
32317done
32318echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32319$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32320	 X"$_am_arg" : 'X\(//\)[^/]' \| \
32321	 X"$_am_arg" : 'X\(//\)$' \| \
32322	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32323$as_echo X"$_am_arg" |
32324    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32325	    s//\1/
32326	    q
32327	  }
32328	  /^X\(\/\/\)[^/].*/{
32329	    s//\1/
32330	    q
32331	  }
32332	  /^X\(\/\/\)$/{
32333	    s//\1/
32334	    q
32335	  }
32336	  /^X\(\/\).*/{
32337	    s//\1/
32338	    q
32339	  }
32340	  s/.*/./; q'`/stamp-h$_am_stamp_count
32341 ;;
32342
32343  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32344$as_echo "$as_me: executing $ac_file commands" >&6;}
32345 ;;
32346  esac
32347
32348
32349  case $ac_file$ac_mode in
32350    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32351  # Older Autoconf quotes --file arguments for eval, but not when files
32352  # are listed without --file.  Let's play safe and only enable the eval
32353  # if we detect the quoting.
32354  case $CONFIG_FILES in
32355  *\'*) eval set x "$CONFIG_FILES" ;;
32356  *)   set x $CONFIG_FILES ;;
32357  esac
32358  shift
32359  for mf
32360  do
32361    # Strip MF so we end up with the name of the file.
32362    mf=`echo "$mf" | sed -e 's/:.*$//'`
32363    # Check whether this is an Automake generated Makefile or not.
32364    # We used to match only the files named 'Makefile.in', but
32365    # some people rename them; so instead we look at the file content.
32366    # Grep'ing the first line is not enough: some people post-process
32367    # each Makefile.in and add a new line on top of each file to say so.
32368    # Grep'ing the whole file is not good either: AIX grep has a line
32369    # limit of 2048, but all sed's we know have understand at least 4000.
32370    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
32371      dirpart=`$as_dirname -- "$mf" ||
32372$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32373	 X"$mf" : 'X\(//\)[^/]' \| \
32374	 X"$mf" : 'X\(//\)$' \| \
32375	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32376$as_echo X"$mf" |
32377    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32378	    s//\1/
32379	    q
32380	  }
32381	  /^X\(\/\/\)[^/].*/{
32382	    s//\1/
32383	    q
32384	  }
32385	  /^X\(\/\/\)$/{
32386	    s//\1/
32387	    q
32388	  }
32389	  /^X\(\/\).*/{
32390	    s//\1/
32391	    q
32392	  }
32393	  s/.*/./; q'`
32394    else
32395      continue
32396    fi
32397    # Extract the definition of DEPDIR, am__include, and am__quote
32398    # from the Makefile without running 'make'.
32399    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32400    test -z "$DEPDIR" && continue
32401    am__include=`sed -n 's/^am__include = //p' < "$mf"`
32402    test -z "$am__include" && continue
32403    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32404    # Find all dependency output files, they are included files with
32405    # $(DEPDIR) in their names.  We invoke sed twice because it is the
32406    # simplest approach to changing $(DEPDIR) to its actual value in the
32407    # expansion.
32408    for file in `sed -n "
32409      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32410	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
32411      # Make sure the directory exists.
32412      test -f "$dirpart/$file" && continue
32413      fdir=`$as_dirname -- "$file" ||
32414$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32415	 X"$file" : 'X\(//\)[^/]' \| \
32416	 X"$file" : 'X\(//\)$' \| \
32417	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32418$as_echo X"$file" |
32419    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32420	    s//\1/
32421	    q
32422	  }
32423	  /^X\(\/\/\)[^/].*/{
32424	    s//\1/
32425	    q
32426	  }
32427	  /^X\(\/\/\)$/{
32428	    s//\1/
32429	    q
32430	  }
32431	  /^X\(\/\).*/{
32432	    s//\1/
32433	    q
32434	  }
32435	  s/.*/./; q'`
32436      as_dir=$dirpart/$fdir; as_fn_mkdir_p
32437      # echo "creating $dirpart/$file"
32438      echo '# dummy' > "$dirpart/$file"
32439    done
32440  done
32441}
32442 ;;
32443    "po-directories":C)
32444    for ac_file in $CONFIG_FILES; do
32445      # Support "outfile[:infile[:infile...]]"
32446      case "$ac_file" in
32447        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32448      esac
32449      # PO directories have a Makefile.in generated from Makefile.in.in.
32450      case "$ac_file" in */Makefile.in)
32451        # Adjust a relative srcdir.
32452        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32453        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32454        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32455        # In autoconf-2.13 it is called $ac_given_srcdir.
32456        # In autoconf-2.50 it is called $srcdir.
32457        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32458        case "$ac_given_srcdir" in
32459          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32460          /*) top_srcdir="$ac_given_srcdir" ;;
32461          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32462        esac
32463        # Treat a directory as a PO directory if and only if it has a
32464        # POTFILES.in file. This allows packages to have multiple PO
32465        # directories under different names or in different locations.
32466        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32467          rm -f "$ac_dir/POTFILES"
32468          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32469          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32470          POMAKEFILEDEPS="POTFILES.in"
32471          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32472          # on $ac_dir but don't depend on user-specified configuration
32473          # parameters.
32474          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32475            # The LINGUAS file contains the set of available languages.
32476            if test -n "$OBSOLETE_ALL_LINGUAS"; then
32477              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32478            fi
32479            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32480            # Hide the ALL_LINGUAS assigment from automake < 1.5.
32481            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32482            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32483          else
32484            # The set of available languages was given in configure.in.
32485            # Hide the ALL_LINGUAS assigment from automake < 1.5.
32486            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32487          fi
32488          # Compute POFILES
32489          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32490          # Compute UPDATEPOFILES
32491          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32492          # Compute DUMMYPOFILES
32493          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32494          # Compute GMOFILES
32495          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32496          case "$ac_given_srcdir" in
32497            .) srcdirpre= ;;
32498            *) srcdirpre='$(srcdir)/' ;;
32499          esac
32500          POFILES=
32501          UPDATEPOFILES=
32502          DUMMYPOFILES=
32503          GMOFILES=
32504          for lang in $ALL_LINGUAS; do
32505            POFILES="$POFILES $srcdirpre$lang.po"
32506            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32507            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32508            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32509          done
32510          # CATALOGS depends on both $ac_dir and the user's LINGUAS
32511          # environment variable.
32512          INST_LINGUAS=
32513          if test -n "$ALL_LINGUAS"; then
32514            for presentlang in $ALL_LINGUAS; do
32515              useit=no
32516              if test "%UNSET%" != "$LINGUAS"; then
32517                desiredlanguages="$LINGUAS"
32518              else
32519                desiredlanguages="$ALL_LINGUAS"
32520              fi
32521              for desiredlang in $desiredlanguages; do
32522                # Use the presentlang catalog if desiredlang is
32523                #   a. equal to presentlang, or
32524                #   b. a variant of presentlang (because in this case,
32525                #      presentlang can be used as a fallback for messages
32526                #      which are not translated in the desiredlang catalog).
32527                case "$desiredlang" in
32528                  "$presentlang"*) useit=yes;;
32529                esac
32530              done
32531              if test $useit = yes; then
32532                INST_LINGUAS="$INST_LINGUAS $presentlang"
32533              fi
32534            done
32535          fi
32536          CATALOGS=
32537          if test -n "$INST_LINGUAS"; then
32538            for lang in $INST_LINGUAS; do
32539              CATALOGS="$CATALOGS $lang.gmo"
32540            done
32541          fi
32542          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32543          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
32544          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32545            if test -f "$f"; then
32546              case "$f" in
32547                *.orig | *.bak | *~) ;;
32548                *) cat "$f" >> "$ac_dir/Makefile" ;;
32549              esac
32550            fi
32551          done
32552        fi
32553        ;;
32554      esac
32555    done ;;
32556
32557  esac
32558done # for ac_tag
32559
32560
32561as_fn_exit 0
32562_ACEOF
32563ac_clean_files=$ac_clean_files_save
32564
32565test $ac_write_fail = 0 ||
32566  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32567
32568
32569# configure is writing to config.log, and then calls config.status.
32570# config.status does its own redirection, appending to config.log.
32571# Unfortunately, on DOS this fails, as config.log is still kept open
32572# by configure, so config.status won't be able to write to it; its
32573# output is simply discarded.  So we exec the FD to /dev/null,
32574# effectively closing config.log, so it can be properly (re)opened and
32575# appended to by config.status.  When coming back to configure, we
32576# need to make the FD available again.
32577if test "$no_create" != yes; then
32578  ac_cs_success=:
32579  ac_config_status_args=
32580  test "$silent" = yes &&
32581    ac_config_status_args="$ac_config_status_args --quiet"
32582  exec 5>/dev/null
32583  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32584  exec 5>>config.log
32585  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32586  # would make configure fail if this is the last instruction.
32587  $ac_cs_success || as_fn_exit 1
32588fi
32589if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32590  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32591$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32592fi
32593
32594