1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for collectd 5.12.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    PATH=/empty FPATH=/empty; export PATH FPATH
205    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='collectd'
589PACKAGE_TARNAME='collectd'
590PACKAGE_VERSION='5.12.0'
591PACKAGE_STRING='collectd 5.12.0'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="src/target_set.c"
596: "${ARFLAGS=cr} ${AR_FLAGS=cr}"
597# Factoring default headers for most tests.
598ac_includes_default="\
599#include <stdio.h>
600#ifdef HAVE_SYS_TYPES_H
601# include <sys/types.h>
602#endif
603#ifdef HAVE_SYS_STAT_H
604# include <sys/stat.h>
605#endif
606#ifdef STDC_HEADERS
607# include <stdlib.h>
608# include <stddef.h>
609#else
610# ifdef HAVE_STDLIB_H
611#  include <stdlib.h>
612# endif
613#endif
614#ifdef HAVE_STRING_H
615# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616#  include <memory.h>
617# endif
618# include <string.h>
619#endif
620#ifdef HAVE_STRINGS_H
621# include <strings.h>
622#endif
623#ifdef HAVE_INTTYPES_H
624# include <inttypes.h>
625#endif
626#ifdef HAVE_STDINT_H
627# include <stdint.h>
628#endif
629#ifdef HAVE_UNISTD_H
630# include <unistd.h>
631#endif"
632
633ac_default_prefix="/opt/collectd"
634ac_header_list=
635ac_func_list=
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640AM_CXXFLAGS
641AM_CFLAGS
642LCC_VERSION_STRING
643LCC_VERSION_EXTRA
644LCC_VERSION_PATCH
645LCC_VERSION_MINOR
646LCC_VERSION_MAJOR
647PERL_BINDINGS_OPTIONS
648PERL_BINDINGS
649LOAD_PLUGIN_CSV
650LOAD_PLUGIN_NETWORK
651LOAD_PLUGIN_RRDTOOL
652DEFAULT_LOG_LEVEL
653LOAD_PLUGIN_LOG_LOGSTASH
654LOAD_PLUGIN_LOGFILE
655LOAD_PLUGIN_SYSLOG
656BUILD_PLUGIN_ZOOKEEPER_FALSE
657BUILD_PLUGIN_ZOOKEEPER_TRUE
658BUILD_PLUGIN_ZONE_FALSE
659BUILD_PLUGIN_ZONE_TRUE
660BUILD_PLUGIN_ZFS_ARC_FALSE
661BUILD_PLUGIN_ZFS_ARC_TRUE
662BUILD_PLUGIN_XMMS_FALSE
663BUILD_PLUGIN_XMMS_TRUE
664BUILD_PLUGIN_XENCPU_FALSE
665BUILD_PLUGIN_XENCPU_TRUE
666BUILD_PLUGIN_WRITE_TSDB_FALSE
667BUILD_PLUGIN_WRITE_TSDB_TRUE
668BUILD_PLUGIN_WRITE_SYSLOG_FALSE
669BUILD_PLUGIN_WRITE_SYSLOG_TRUE
670BUILD_PLUGIN_WRITE_STACKDRIVER_FALSE
671BUILD_PLUGIN_WRITE_STACKDRIVER_TRUE
672BUILD_PLUGIN_WRITE_SENSU_FALSE
673BUILD_PLUGIN_WRITE_SENSU_TRUE
674BUILD_PLUGIN_WRITE_RIEMANN_FALSE
675BUILD_PLUGIN_WRITE_RIEMANN_TRUE
676BUILD_PLUGIN_WRITE_REDIS_FALSE
677BUILD_PLUGIN_WRITE_REDIS_TRUE
678BUILD_PLUGIN_WRITE_PROMETHEUS_FALSE
679BUILD_PLUGIN_WRITE_PROMETHEUS_TRUE
680BUILD_PLUGIN_WRITE_MONGODB_FALSE
681BUILD_PLUGIN_WRITE_MONGODB_TRUE
682BUILD_PLUGIN_WRITE_LOG_FALSE
683BUILD_PLUGIN_WRITE_LOG_TRUE
684BUILD_PLUGIN_WRITE_KAFKA_FALSE
685BUILD_PLUGIN_WRITE_KAFKA_TRUE
686BUILD_PLUGIN_WRITE_INFLUXDB_UDP_FALSE
687BUILD_PLUGIN_WRITE_INFLUXDB_UDP_TRUE
688BUILD_PLUGIN_WRITE_HTTP_FALSE
689BUILD_PLUGIN_WRITE_HTTP_TRUE
690BUILD_PLUGIN_WRITE_GRAPHITE_FALSE
691BUILD_PLUGIN_WRITE_GRAPHITE_TRUE
692BUILD_PLUGIN_WIRELESS_FALSE
693BUILD_PLUGIN_WIRELESS_TRUE
694BUILD_PLUGIN_VSERVER_FALSE
695BUILD_PLUGIN_VSERVER_TRUE
696BUILD_PLUGIN_VMEM_FALSE
697BUILD_PLUGIN_VMEM_TRUE
698BUILD_PLUGIN_VIRT_FALSE
699BUILD_PLUGIN_VIRT_TRUE
700BUILD_PLUGIN_VARNISH_FALSE
701BUILD_PLUGIN_VARNISH_TRUE
702BUILD_PLUGIN_UUID_FALSE
703BUILD_PLUGIN_UUID_TRUE
704BUILD_PLUGIN_USERS_FALSE
705BUILD_PLUGIN_USERS_TRUE
706BUILD_PLUGIN_UPTIME_FALSE
707BUILD_PLUGIN_UPTIME_TRUE
708BUILD_PLUGIN_UNIXSOCK_FALSE
709BUILD_PLUGIN_UNIXSOCK_TRUE
710BUILD_PLUGIN_UBI_FALSE
711BUILD_PLUGIN_UBI_TRUE
712BUILD_PLUGIN_TURBOSTAT_FALSE
713BUILD_PLUGIN_TURBOSTAT_TRUE
714BUILD_PLUGIN_TOKYOTYRANT_FALSE
715BUILD_PLUGIN_TOKYOTYRANT_TRUE
716BUILD_PLUGIN_THRESHOLD_FALSE
717BUILD_PLUGIN_THRESHOLD_TRUE
718BUILD_PLUGIN_THERMAL_FALSE
719BUILD_PLUGIN_THERMAL_TRUE
720BUILD_PLUGIN_TED_FALSE
721BUILD_PLUGIN_TED_TRUE
722BUILD_PLUGIN_TEAMSPEAK2_FALSE
723BUILD_PLUGIN_TEAMSPEAK2_TRUE
724BUILD_PLUGIN_TCPCONNS_FALSE
725BUILD_PLUGIN_TCPCONNS_TRUE
726BUILD_PLUGIN_TARGET_V5UPGRADE_FALSE
727BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE
728BUILD_PLUGIN_TARGET_SET_FALSE
729BUILD_PLUGIN_TARGET_SET_TRUE
730BUILD_PLUGIN_TARGET_SCALE_FALSE
731BUILD_PLUGIN_TARGET_SCALE_TRUE
732BUILD_PLUGIN_TARGET_REPLACE_FALSE
733BUILD_PLUGIN_TARGET_REPLACE_TRUE
734BUILD_PLUGIN_TARGET_NOTIFICATION_FALSE
735BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE
736BUILD_PLUGIN_TAPE_FALSE
737BUILD_PLUGIN_TAPE_TRUE
738BUILD_PLUGIN_TAIL_CSV_FALSE
739BUILD_PLUGIN_TAIL_CSV_TRUE
740BUILD_PLUGIN_TAIL_FALSE
741BUILD_PLUGIN_TAIL_TRUE
742BUILD_PLUGIN_TABLE_FALSE
743BUILD_PLUGIN_TABLE_TRUE
744BUILD_PLUGIN_SYSLOG_FALSE
745BUILD_PLUGIN_SYSLOG_TRUE
746BUILD_PLUGIN_SYSEVENT_FALSE
747BUILD_PLUGIN_SYSEVENT_TRUE
748BUILD_PLUGIN_SYNPROXY_FALSE
749BUILD_PLUGIN_SYNPROXY_TRUE
750BUILD_PLUGIN_SWAP_FALSE
751BUILD_PLUGIN_SWAP_TRUE
752BUILD_PLUGIN_STATSD_FALSE
753BUILD_PLUGIN_STATSD_TRUE
754BUILD_PLUGIN_SNMP_AGENT_FALSE
755BUILD_PLUGIN_SNMP_AGENT_TRUE
756BUILD_PLUGIN_SNMP_FALSE
757BUILD_PLUGIN_SNMP_TRUE
758BUILD_PLUGIN_SMART_FALSE
759BUILD_PLUGIN_SMART_TRUE
760BUILD_PLUGIN_SLURM_FALSE
761BUILD_PLUGIN_SLURM_TRUE
762BUILD_PLUGIN_SIGROK_FALSE
763BUILD_PLUGIN_SIGROK_TRUE
764BUILD_PLUGIN_SERIAL_FALSE
765BUILD_PLUGIN_SERIAL_TRUE
766BUILD_PLUGIN_SENSORS_FALSE
767BUILD_PLUGIN_SENSORS_TRUE
768BUILD_PLUGIN_RRDTOOL_FALSE
769BUILD_PLUGIN_RRDTOOL_TRUE
770BUILD_PLUGIN_RRDCACHED_FALSE
771BUILD_PLUGIN_RRDCACHED_TRUE
772BUILD_PLUGIN_ROUTEROS_FALSE
773BUILD_PLUGIN_ROUTEROS_TRUE
774BUILD_PLUGIN_REDIS_FALSE
775BUILD_PLUGIN_REDIS_TRUE
776BUILD_PLUGIN_REDFISH_FALSE
777BUILD_PLUGIN_REDFISH_TRUE
778BUILD_PLUGIN_PYTHON_FALSE
779BUILD_PLUGIN_PYTHON_TRUE
780BUILD_PLUGIN_PROTOCOLS_FALSE
781BUILD_PLUGIN_PROTOCOLS_TRUE
782BUILD_PLUGIN_PROCEVENT_FALSE
783BUILD_PLUGIN_PROCEVENT_TRUE
784BUILD_PLUGIN_PROCESSES_FALSE
785BUILD_PLUGIN_PROCESSES_TRUE
786BUILD_PLUGIN_POWERDNS_FALSE
787BUILD_PLUGIN_POWERDNS_TRUE
788BUILD_PLUGIN_POSTGRESQL_FALSE
789BUILD_PLUGIN_POSTGRESQL_TRUE
790BUILD_PLUGIN_PING_FALSE
791BUILD_PLUGIN_PING_TRUE
792BUILD_PLUGIN_PINBA_FALSE
793BUILD_PLUGIN_PINBA_TRUE
794BUILD_PLUGIN_PF_FALSE
795BUILD_PLUGIN_PF_TRUE
796BUILD_PLUGIN_PERL_FALSE
797BUILD_PLUGIN_PERL_TRUE
798BUILD_PLUGIN_PCIE_ERRORS_FALSE
799BUILD_PLUGIN_PCIE_ERRORS_TRUE
800BUILD_PLUGIN_OVS_STATS_FALSE
801BUILD_PLUGIN_OVS_STATS_TRUE
802BUILD_PLUGIN_OVS_EVENTS_FALSE
803BUILD_PLUGIN_OVS_EVENTS_TRUE
804BUILD_PLUGIN_ORACLE_FALSE
805BUILD_PLUGIN_ORACLE_TRUE
806BUILD_PLUGIN_OPENVPN_FALSE
807BUILD_PLUGIN_OPENVPN_TRUE
808BUILD_PLUGIN_OPENLDAP_FALSE
809BUILD_PLUGIN_OPENLDAP_TRUE
810BUILD_PLUGIN_ONEWIRE_FALSE
811BUILD_PLUGIN_ONEWIRE_TRUE
812BUILD_PLUGIN_OLSRD_FALSE
813BUILD_PLUGIN_OLSRD_TRUE
814BUILD_PLUGIN_NUT_FALSE
815BUILD_PLUGIN_NUT_TRUE
816BUILD_PLUGIN_NUMA_FALSE
817BUILD_PLUGIN_NUMA_TRUE
818BUILD_PLUGIN_NTPD_FALSE
819BUILD_PLUGIN_NTPD_TRUE
820BUILD_PLUGIN_NOTIFY_NAGIOS_FALSE
821BUILD_PLUGIN_NOTIFY_NAGIOS_TRUE
822BUILD_PLUGIN_NOTIFY_EMAIL_FALSE
823BUILD_PLUGIN_NOTIFY_EMAIL_TRUE
824BUILD_PLUGIN_NOTIFY_DESKTOP_FALSE
825BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE
826BUILD_PLUGIN_NGINX_FALSE
827BUILD_PLUGIN_NGINX_TRUE
828BUILD_PLUGIN_NFS_FALSE
829BUILD_PLUGIN_NFS_TRUE
830BUILD_PLUGIN_NETWORK_FALSE
831BUILD_PLUGIN_NETWORK_TRUE
832BUILD_PLUGIN_NETSTAT_UDP_FALSE
833BUILD_PLUGIN_NETSTAT_UDP_TRUE
834BUILD_PLUGIN_NETLINK_FALSE
835BUILD_PLUGIN_NETLINK_TRUE
836BUILD_PLUGIN_NETAPP_FALSE
837BUILD_PLUGIN_NETAPP_TRUE
838BUILD_PLUGIN_MYSQL_FALSE
839BUILD_PLUGIN_MYSQL_TRUE
840BUILD_PLUGIN_MULTIMETER_FALSE
841BUILD_PLUGIN_MULTIMETER_TRUE
842BUILD_PLUGIN_MQTT_FALSE
843BUILD_PLUGIN_MQTT_TRUE
844BUILD_PLUGIN_MODBUS_FALSE
845BUILD_PLUGIN_MODBUS_TRUE
846BUILD_PLUGIN_MIC_FALSE
847BUILD_PLUGIN_MIC_TRUE
848BUILD_PLUGIN_MEMORY_FALSE
849BUILD_PLUGIN_MEMORY_TRUE
850BUILD_PLUGIN_MEMCACHED_FALSE
851BUILD_PLUGIN_MEMCACHED_TRUE
852BUILD_PLUGIN_MEMCACHEC_FALSE
853BUILD_PLUGIN_MEMCACHEC_TRUE
854BUILD_PLUGIN_MDEVENTS_FALSE
855BUILD_PLUGIN_MDEVENTS_TRUE
856BUILD_PLUGIN_MD_FALSE
857BUILD_PLUGIN_MD_TRUE
858BUILD_PLUGIN_MCELOG_FALSE
859BUILD_PLUGIN_MCELOG_TRUE
860BUILD_PLUGIN_MBMON_FALSE
861BUILD_PLUGIN_MBMON_TRUE
862BUILD_PLUGIN_MATCH_VALUE_FALSE
863BUILD_PLUGIN_MATCH_VALUE_TRUE
864BUILD_PLUGIN_MATCH_TIMEDIFF_FALSE
865BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE
866BUILD_PLUGIN_MATCH_REGEX_FALSE
867BUILD_PLUGIN_MATCH_REGEX_TRUE
868BUILD_PLUGIN_MATCH_HASHED_FALSE
869BUILD_PLUGIN_MATCH_HASHED_TRUE
870BUILD_PLUGIN_MATCH_EMPTY_COUNTER_FALSE
871BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE
872BUILD_PLUGIN_MADWIFI_FALSE
873BUILD_PLUGIN_MADWIFI_TRUE
874BUILD_PLUGIN_LUA_FALSE
875BUILD_PLUGIN_LUA_TRUE
876BUILD_PLUGIN_LPAR_FALSE
877BUILD_PLUGIN_LPAR_TRUE
878BUILD_PLUGIN_LOGPARSER_FALSE
879BUILD_PLUGIN_LOGPARSER_TRUE
880BUILD_PLUGIN_LOGFILE_FALSE
881BUILD_PLUGIN_LOGFILE_TRUE
882BUILD_PLUGIN_LOG_LOGSTASH_FALSE
883BUILD_PLUGIN_LOG_LOGSTASH_TRUE
884BUILD_PLUGIN_LOAD_FALSE
885BUILD_PLUGIN_LOAD_TRUE
886BUILD_PLUGIN_JAVA_FALSE
887BUILD_PLUGIN_JAVA_TRUE
888BUILD_PLUGIN_IRQ_FALSE
889BUILD_PLUGIN_IRQ_TRUE
890BUILD_PLUGIN_IPVS_FALSE
891BUILD_PLUGIN_IPVS_TRUE
892BUILD_PLUGIN_IPSTATS_FALSE
893BUILD_PLUGIN_IPSTATS_TRUE
894BUILD_PLUGIN_IPTABLES_FALSE
895BUILD_PLUGIN_IPTABLES_TRUE
896BUILD_PLUGIN_IPMI_FALSE
897BUILD_PLUGIN_IPMI_TRUE
898BUILD_PLUGIN_IPC_FALSE
899BUILD_PLUGIN_IPC_TRUE
900BUILD_PLUGIN_INTERFACE_FALSE
901BUILD_PLUGIN_INTERFACE_TRUE
902BUILD_PLUGIN_INTEL_RDT_FALSE
903BUILD_PLUGIN_INTEL_RDT_TRUE
904BUILD_PLUGIN_INTEL_PMU_FALSE
905BUILD_PLUGIN_INTEL_PMU_TRUE
906BUILD_PLUGIN_INFINIBAND_FALSE
907BUILD_PLUGIN_INFINIBAND_TRUE
908BUILD_PLUGIN_HUGEPAGES_FALSE
909BUILD_PLUGIN_HUGEPAGES_TRUE
910BUILD_PLUGIN_HDDTEMP_FALSE
911BUILD_PLUGIN_HDDTEMP_TRUE
912BUILD_PLUGIN_GRPC_FALSE
913BUILD_PLUGIN_GRPC_TRUE
914BUILD_PLUGIN_GPU_NVIDIA_FALSE
915BUILD_PLUGIN_GPU_NVIDIA_TRUE
916BUILD_PLUGIN_GPS_FALSE
917BUILD_PLUGIN_GPS_TRUE
918BUILD_PLUGIN_GMOND_FALSE
919BUILD_PLUGIN_GMOND_TRUE
920BUILD_PLUGIN_FSCACHE_FALSE
921BUILD_PLUGIN_FSCACHE_TRUE
922BUILD_PLUGIN_FILECOUNT_FALSE
923BUILD_PLUGIN_FILECOUNT_TRUE
924BUILD_PLUGIN_FHCOUNT_FALSE
925BUILD_PLUGIN_FHCOUNT_TRUE
926BUILD_PLUGIN_EXEC_FALSE
927BUILD_PLUGIN_EXEC_TRUE
928BUILD_PLUGIN_ETHSTAT_FALSE
929BUILD_PLUGIN_ETHSTAT_TRUE
930BUILD_PLUGIN_ENTROPY_FALSE
931BUILD_PLUGIN_ENTROPY_TRUE
932BUILD_PLUGIN_EMAIL_FALSE
933BUILD_PLUGIN_EMAIL_TRUE
934BUILD_PLUGIN_DRBD_FALSE
935BUILD_PLUGIN_DRBD_TRUE
936BUILD_PLUGIN_DPDK_TELEMETRY_FALSE
937BUILD_PLUGIN_DPDK_TELEMETRY_TRUE
938BUILD_PLUGIN_DPDKSTAT_FALSE
939BUILD_PLUGIN_DPDKSTAT_TRUE
940BUILD_PLUGIN_DPDKEVENTS_FALSE
941BUILD_PLUGIN_DPDKEVENTS_TRUE
942BUILD_PLUGIN_DNS_FALSE
943BUILD_PLUGIN_DNS_TRUE
944BUILD_PLUGIN_DISK_FALSE
945BUILD_PLUGIN_DISK_TRUE
946BUILD_PLUGIN_DF_FALSE
947BUILD_PLUGIN_DF_TRUE
948BUILD_PLUGIN_DCPMM_FALSE
949BUILD_PLUGIN_DCPMM_TRUE
950BUILD_PLUGIN_DBI_FALSE
951BUILD_PLUGIN_DBI_TRUE
952BUILD_PLUGIN_CURL_XML_FALSE
953BUILD_PLUGIN_CURL_XML_TRUE
954BUILD_PLUGIN_CURL_JSON_FALSE
955BUILD_PLUGIN_CURL_JSON_TRUE
956BUILD_PLUGIN_CURL_FALSE
957BUILD_PLUGIN_CURL_TRUE
958BUILD_PLUGIN_CSV_FALSE
959BUILD_PLUGIN_CSV_TRUE
960BUILD_PLUGIN_CPUSLEEP_FALSE
961BUILD_PLUGIN_CPUSLEEP_TRUE
962BUILD_PLUGIN_CPUFREQ_FALSE
963BUILD_PLUGIN_CPUFREQ_TRUE
964BUILD_PLUGIN_CPU_FALSE
965BUILD_PLUGIN_CPU_TRUE
966BUILD_PLUGIN_CONTEXTSWITCH_FALSE
967BUILD_PLUGIN_CONTEXTSWITCH_TRUE
968BUILD_PLUGIN_CONNTRACK_FALSE
969BUILD_PLUGIN_CONNTRACK_TRUE
970BUILD_PLUGIN_CONNECTIVITY_FALSE
971BUILD_PLUGIN_CONNECTIVITY_TRUE
972BUILD_PLUGIN_CHECK_UPTIME_FALSE
973BUILD_PLUGIN_CHECK_UPTIME_TRUE
974BUILD_PLUGIN_CHRONY_FALSE
975BUILD_PLUGIN_CHRONY_TRUE
976BUILD_PLUGIN_CGROUPS_FALSE
977BUILD_PLUGIN_CGROUPS_TRUE
978BUILD_PLUGIN_CEPH_FALSE
979BUILD_PLUGIN_CEPH_TRUE
980BUILD_PLUGIN_CAPABILITIES_FALSE
981BUILD_PLUGIN_CAPABILITIES_TRUE
982BUILD_PLUGIN_BUDDYINFO_FALSE
983BUILD_PLUGIN_BUDDYINFO_TRUE
984BUILD_PLUGIN_BIND_FALSE
985BUILD_PLUGIN_BIND_TRUE
986BUILD_PLUGIN_BATTERY_FALSE
987BUILD_PLUGIN_BATTERY_TRUE
988BUILD_PLUGIN_BAROMETER_FALSE
989BUILD_PLUGIN_BAROMETER_TRUE
990BUILD_PLUGIN_ASCENT_FALSE
991BUILD_PLUGIN_ASCENT_TRUE
992BUILD_PLUGIN_AQUAERO_FALSE
993BUILD_PLUGIN_AQUAERO_TRUE
994BUILD_PLUGIN_APPLE_SENSORS_FALSE
995BUILD_PLUGIN_APPLE_SENSORS_TRUE
996BUILD_PLUGIN_APCUPS_FALSE
997BUILD_PLUGIN_APCUPS_TRUE
998BUILD_PLUGIN_APACHE_FALSE
999BUILD_PLUGIN_APACHE_TRUE
1000BUILD_PLUGIN_AMQP1_FALSE
1001BUILD_PLUGIN_AMQP1_TRUE
1002BUILD_PLUGIN_AMQP_FALSE
1003BUILD_PLUGIN_AMQP_TRUE
1004BUILD_PLUGIN_AGGREGATION_FALSE
1005BUILD_PLUGIN_AGGREGATION_TRUE
1006BUILD_FEATURE_WERROR_FALSE
1007BUILD_FEATURE_WERROR_TRUE
1008BUILD_FEATURE_GETIFADDRS_FALSE
1009BUILD_FEATURE_GETIFADDRS_TRUE
1010BUILD_FEATURE_DAEMON_FALSE
1011BUILD_FEATURE_DAEMON_TRUE
1012BUILD_FEATURE_DEBUG_FALSE
1013BUILD_FEATURE_DEBUG_TRUE
1014BUILD_WITH_LIBSLURM_LIBS
1015BUILD_WITH_LIBSLURM_CFLAGS
1016LIBRIEMANN_CLIENT_LIBS
1017LIBRIEMANN_CLIENT_CFLAGS
1018LIBNOTIFY_LIBS
1019LIBNOTIFY_CFLAGS
1020BUILD_WITH_LIBATASMART_LIBS
1021BUILD_WITH_LIBATASMART_LDFLAGS
1022BUILD_WITH_LIBATASMART_CPPFLAGS
1023BUILD_WITH_OPENIPMI_LIBS
1024BUILD_WITH_OPENIPMI_CFLAGS
1025BUILD_WITH_LIBVIRT_LIBS
1026BUILD_WITH_LIBVIRT_CFLAGS
1027BUILD_WITH_LIBXML2_LIBS
1028BUILD_WITH_LIBXML2_CFLAGS
1029BUILD_WITH_LIBVARNISH_LIBS
1030BUILD_WITH_LIBVARNISH_CFLAGS
1031BUILD_WITH_MIC_LIBS
1032BUILD_WITH_MIC_LDFLAGS
1033BUILD_WITH_MIC_CPPFLAGS
1034BUILD_WITH_LIBYAJL2_FALSE
1035BUILD_WITH_LIBYAJL2_TRUE
1036BUILD_WITH_LIBYAJL_FALSE
1037BUILD_WITH_LIBYAJL_TRUE
1038BUILD_WITH_LIBYAJL_LIBS
1039BUILD_WITH_LIBYAJL_LDFLAGS
1040BUILD_WITH_LIBYAJL_CPPFLAGS
1041BUILD_WITH_LIBXMMS_LIBS
1042BUILD_WITH_LIBXMMS_CFLAGS
1043LIBXENCTL_LDFLAGS
1044LIBXENCTL_CPPFLAGS
1045BUILD_WITH_LIBUPSCLIENT_LIBS
1046BUILD_WITH_LIBUPSCLIENT_CFLAGS
1047BUILD_WITH_LIBUDEV_FALSE
1048BUILD_WITH_LIBUDEV_TRUE
1049BUILD_WITH_LIBUDEV_LIBS
1050BUILD_WITH_LIBUDEV_LDFLAGS
1051BUILD_WITH_LIBUDEV_CPPFLAGS
1052BUILD_WITH_LIBTOKYOTYRANT_LIBS
1053BUILD_WITH_LIBTOKYOTYRANT_LDFLAGS
1054BUILD_WITH_LIBTOKYOTYRANT_CPPFLAGS
1055BUILD_WITH_LIBSTATGRAB_LDFLAGS
1056BUILD_WITH_LIBSTATGRAB_CFLAGS
1057BUILD_WITH_LIBSTATGRAB_FALSE
1058BUILD_WITH_LIBSTATGRAB_TRUE
1059BUILD_WITH_LIBSSL_FALSE
1060BUILD_WITH_LIBSSL_TRUE
1061BUILD_WITH_LIBSSL_LIBS
1062BUILD_WITH_LIBSSL_LDFLAGS
1063BUILD_WITH_LIBSSL_CFLAGS
1064LIBSIGROK_LIBS
1065LIBSIGROK_CFLAGS
1066BUILD_WITH_LIBSENSORS_LIBS
1067BUILD_WITH_LIBSENSORS_LDFLAGS
1068BUILD_WITH_LIBSENSORS_CPPFLAGS
1069BUILD_WITH_LIBRRD_LIBS
1070BUILD_WITH_LIBRRD_LDFLAGS
1071BUILD_WITH_LIBRRD_CFLAGS
1072RRD_LIBS
1073RRD_CFLAGS
1074BUILD_WITH_LIBROUTEROS_LDFLAGS
1075BUILD_WITH_LIBROUTEROS_CPPFLAGS
1076BUILD_WITH_LIBRDKAFKA_LIBS
1077BUILD_WITH_LIBRDKAFKA_LDFLAGS
1078BUILD_WITH_LIBRDKAFKA_CPPFLAGS
1079BUILD_WITH_LIBRABBITMQ_LIBS
1080BUILD_WITH_LIBRABBITMQ_LDFLAGS
1081BUILD_WITH_LIBRABBITMQ_CPPFLAGS
1082BUILD_WITH_LIBQPIDPROTON_LIBS
1083BUILD_WITH_LIBQPIDPROTON_LDFLAGS
1084BUILD_WITH_LIBQPIDPROTON_CPPFLAGS
1085PYTHON_CONFIG
1086LIBPYTHON_LIBS
1087LIBPYTHON_LDFLAGS
1088LIBPYTHON_CPPFLAGS
1089PROTOC_C
1090BUILD_WITH_LIBPROTOBUF_C_LIBS
1091BUILD_WITH_LIBPROTOBUF_C_LDFLAGS
1092BUILD_WITH_LIBPROTOBUF_C_CPPFLAGS
1093PROTOBUF_C_LIBS
1094PROTOBUF_C_CFLAGS
1095HAVE_PROTOC3_FALSE
1096HAVE_PROTOC3_TRUE
1097PROTOC
1098BUILD_WITH_LIBPROTOBUF_LIBS
1099BUILD_WITH_LIBPROTOBUF_LDFLAGS
1100BUILD_WITH_LIBPROTOBUF_CPPFLAGS
1101PROTOBUF_LIBS
1102PROTOBUF_CFLAGS
1103BUILD_WITH_LIBJEVENTS_LIBS
1104BUILD_WITH_LIBJEVENTS_LDFLAGS
1105BUILD_WITH_LIBJEVENTS_CPPFLAGS
1106BUILD_WITH_LIBJANSSON_LIBS
1107BUILD_WITH_LIBJANSSON_LDFLAGS
1108BUILD_WITH_LIBJANSSON_CPPFLAGS
1109BUILD_WITH_LIBPQOS_LIBS
1110BUILD_WITH_LIBPQOS_LDFLAGS
1111BUILD_WITH_LIBPQOS_CPPFLAGS
1112BUILD_WITH_LIBPQ_LIBS
1113BUILD_WITH_LIBPQ_LDFLAGS
1114BUILD_WITH_LIBPQ_CPPFLAGS
1115BUILD_WITH_LIBPMWAPI_LDFLAGS
1116BUILD_WITH_LIBPMWAPI_CPPFLAGS
1117PERL_LIBS
1118PERL_CFLAGS
1119PERL
1120BUILD_WITH_LIBPCAP_LIBS
1121BUILD_WITH_LIBPCAP_LDFLAGS
1122BUILD_WITH_LIBPCAP_CPPFLAGS
1123BUILD_WITH_LIBOWCAPI_LIBS
1124BUILD_WITH_LIBOWCAPI_LDFLAGS
1125BUILD_WITH_LIBOWCAPI_CPPFLAGS
1126BUILD_WITH_ORACLE_LIBS
1127BUILD_WITH_ORACLE_CPPFLAGS
1128BUILD_WITH_LIBOPING_LDFLAGS
1129BUILD_WITH_LIBOPING_CPPFLAGS
1130BUILD_WITH_LIBNETSNMPAGENT_LIBS
1131BUILD_WITH_LIBNETSNMPAGENT_LDFLAGS
1132BUILD_WITH_LIBNETSNMPAGENT_CPPFLAGS
1133BUILD_WITH_LIBNETSNMP_LIBS
1134BUILD_WITH_LIBNETSNMP_LDFLAGS
1135BUILD_WITH_LIBNETSNMP_CPPFLAGS
1136LIBNETAPP_LIBS
1137LIBNETAPP_LDFLAGS
1138LIBNETAPP_CPPFLAGS
1139HAVE_LIBMNL_FALSE
1140HAVE_LIBMNL_TRUE
1141BUILD_WITH_LIBMNL_LIBS
1142BUILD_WITH_LIBMNL_CFLAGS
1143BUILD_WITH_LIBMYSQL_LIBS
1144BUILD_WITH_LIBMYSQL_CFLAGS
1145BUILD_WITH_LIBMOSQUITTO_LIBS
1146BUILD_WITH_LIBMOSQUITTO_LDFLAGS
1147BUILD_WITH_LIBMOSQUITTO_CPPFLAGS
1148BUILD_WITH_LIBMONGOC_LIBS
1149BUILD_WITH_LIBMONGOC_LDFLAGS
1150BUILD_WITH_LIBMONGOC_CFLAGS
1151LIBMONGOC_LIBS
1152LIBMONGOC_CFLAGS
1153BUILD_WITH_LIBMODBUS_LIBS
1154BUILD_WITH_LIBMODBUS_CFLAGS
1155BUILD_WITH_LIBMICROHTTPD_LIBS
1156BUILD_WITH_LIBMICROHTTPD_LDFLAGS
1157BUILD_WITH_LIBMICROHTTPD_CPPFLAGS
1158MICROHTTPD_LIBS
1159MICROHTTPD_CFLAGS
1160BUILD_WITH_LIBMEMCACHED_LIBS
1161BUILD_WITH_LIBMEMCACHED_LDFLAGS
1162BUILD_WITH_LIBMEMCACHED_CPPFLAGS
1163BUILD_WITH_LIBLUA_LIBS
1164BUILD_WITH_LIBLUA_CFLAGS
1165LUA_LIBS
1166LUA_CFLAGS
1167LIBLUA_PKG_CONFIG_NAME
1168BUILD_WITH_LIBLDAP_LDFLAGS
1169BUILD_WITH_LIBLDAP_CPPFLAGS
1170BUILD_WITH_JAVA_FALSE
1171BUILD_WITH_JAVA_TRUE
1172JAVA_TIMESTAMP_FILE
1173JAVA_LIBS
1174JAVA_LDFLAGS
1175JAVA_CFLAGS
1176JAVA_CPPFLAGS
1177JAR
1178JAVAC
1179BUILD_WITH_LIBIPTC_LDFLAGS
1180BUILD_WITH_LIBIPTC_CPPFLAGS
1181HAVE_GRPC_CPP_FALSE
1182HAVE_GRPC_CPP_TRUE
1183GRPC_CPP_PLUGIN
1184BUILD_WITH_LIBGRPCPP_LIBS
1185BUILD_WITH_LIBGRPCPP_LDFLAGS
1186BUILD_WITH_LIBGRPCPP_CPPFLAGS
1187GRPCPP_LIBS
1188GRPCPP_CFLAGS
1189BUILD_WITH_LIBGPS_LIBS
1190BUILD_WITH_LIBGPS_LDFLAGS
1191BUILD_WITH_LIBGPS_CFLAGS
1192BUILD_WITH_LIBGCRYPT_FALSE
1193BUILD_WITH_LIBGCRYPT_TRUE
1194GCRYPT_LIBS
1195GCRYPT_LDFLAGS
1196GCRYPT_CPPFLAGS
1197GANGLIA_LIBS
1198GANGLIA_LDFLAGS
1199GANGLIA_CPPFLAGS
1200BUILD_WITH_LIBESMTP_LIBS
1201BUILD_WITH_LIBESMTP_LDFLAGS
1202BUILD_WITH_LIBESMTP_CPPFLAGS
1203DPDK_LIBS
1204DPDK_CFLAGS
1205LIBDPDK_LIBS
1206LIBDPDK_LDFLAGS
1207LIBDPDK_CFLAGS
1208LIBDPDK_CPPFLAGS
1209BUILD_WITH_LIBDBI_LIBS
1210BUILD_WITH_LIBDBI_LDFLAGS
1211BUILD_WITH_LIBDBI_CPPFLAGS
1212BUILD_WITH_LIBCURL_FALSE
1213BUILD_WITH_LIBCURL_TRUE
1214BUILD_WITH_LIBCURL_LIBS
1215BUILD_WITH_LIBCURL_CFLAGS
1216BUILD_WITH_LIBREDFISH_LDFLAGS
1217BUILD_WITH_LIBREDFISH_CPPFLAGS
1218BUILD_WITH_LIBHIREDIS_LDFLAGS
1219BUILD_WITH_LIBHIREDIS_CPPFLAGS
1220BUILD_WITH_LIBAQUAERO5_LDFLAGS
1221BUILD_WITH_LIBAQUAERO5_CFLAGS
1222BUILD_WITH_CUDA_LIBS
1223BUILD_WITH_CUDA_LDFLAGS
1224BUILD_WITH_CUDA_CPPFLAGS
1225BUILD_WITH_LIBKVM_NLIST_FALSE
1226BUILD_WITH_LIBKVM_NLIST_TRUE
1227BUILD_WITH_LIBKVM_GETSWAPINFO_FALSE
1228BUILD_WITH_LIBKVM_GETSWAPINFO_TRUE
1229BUILD_WITH_LIBKVM_GETPROCS_FALSE
1230BUILD_WITH_LIBKVM_GETPROCS_TRUE
1231BUILD_WITH_LIBIOKIT_FALSE
1232BUILD_WITH_LIBIOKIT_TRUE
1233BUILD_WITH_LIBKSTAT_FALSE
1234BUILD_WITH_LIBKSTAT_TRUE
1235BUILD_WITH_LIBDEVINFO_FALSE
1236BUILD_WITH_LIBDEVINFO_TRUE
1237BUILD_WITH_PERFSTAT_FALSE
1238BUILD_WITH_PERFSTAT_TRUE
1239PTHREAD_LIBS
1240BUILD_WITH_LIBI2C_LIBS
1241BUILD_WITH_LIBPOSIX4_FALSE
1242BUILD_WITH_LIBPOSIX4_TRUE
1243BUILD_WITH_LIBRT_FALSE
1244BUILD_WITH_LIBRT_TRUE
1245BUILD_WITH_LIBNSL_FALSE
1246BUILD_WITH_LIBNSL_TRUE
1247BUILD_WITH_GNULIB_FALSE
1248BUILD_WITH_GNULIB_TRUE
1249BUILD_WITH_LIBSOCKET_FALSE
1250BUILD_WITH_LIBSOCKET_TRUE
1251BUILD_WITH_CAPABILITY_FALSE
1252BUILD_WITH_CAPABILITY_TRUE
1253pkgconfigdir
1254BUILD_WIN32_FALSE
1255BUILD_WIN32_TRUE
1256BUILD_SOLARIS_FALSE
1257BUILD_SOLARIS_TRUE
1258BUILD_NETBSD_FALSE
1259BUILD_NETBSD_TRUE
1260BUILD_OPENBSD_FALSE
1261BUILD_OPENBSD_TRUE
1262BUILD_LINUX_FALSE
1263BUILD_LINUX_TRUE
1264BUILD_FREEBSD_FALSE
1265BUILD_FREEBSD_TRUE
1266BUILD_DARWIN_FALSE
1267BUILD_DARWIN_TRUE
1268BUILD_AIX_FALSE
1269BUILD_AIX_TRUE
1270DLOPEN_LIBS
1271PKG_CONFIG_LIBDIR
1272PKG_CONFIG_PATH
1273PKG_CONFIG
1274VALGRIND
1275YFLAGS
1276YACC
1277LEXLIB
1278LEX_OUTPUT_ROOT
1279LEX
1280am__fastdepCXX_FALSE
1281am__fastdepCXX_TRUE
1282CXXDEPMODE
1283CXXCPP
1284ac_ct_CXX
1285CXXFLAGS
1286CXX
1287AM_BACKSLASH
1288AM_DEFAULT_VERBOSITY
1289AM_DEFAULT_V
1290AM_V
1291am__fastdepCC_FALSE
1292am__fastdepCC_TRUE
1293CCDEPMODE
1294am__nodep
1295AMDEPBACKSLASH
1296AMDEP_FALSE
1297AMDEP_TRUE
1298am__include
1299DEPDIR
1300am__untar
1301am__tar
1302AMTAR
1303am__leading_dot
1304SET_MAKE
1305mkdir_p
1306MKDIR_P
1307INSTALL_STRIP_PROGRAM
1308install_sh
1309MAKEINFO
1310AUTOHEADER
1311AUTOMAKE
1312AUTOCONF
1313ACLOCAL
1314VERSION
1315PACKAGE
1316CYGPATH_W
1317am__isrc
1318INSTALL_DATA
1319INSTALL_SCRIPT
1320INSTALL_PROGRAM
1321CPP
1322LT_SYS_LIBRARY_PATH
1323OTOOL64
1324OTOOL
1325LIPO
1326NMEDIT
1327DSYMUTIL
1328MANIFEST_TOOL
1329AWK
1330RANLIB
1331STRIP
1332ac_ct_AR
1333AR
1334DLLTOOL
1335OBJDUMP
1336LN_S
1337NM
1338ac_ct_DUMPBIN
1339DUMPBIN
1340LD
1341FGREP
1342EGREP
1343GREP
1344SED
1345OBJEXT
1346EXEEXT
1347ac_ct_CC
1348CPPFLAGS
1349LDFLAGS
1350CFLAGS
1351CC
1352host_os
1353host_vendor
1354host_cpu
1355host
1356build_os
1357build_vendor
1358build_cpu
1359build
1360LIBTOOL
1361target_alias
1362host_alias
1363build_alias
1364LIBS
1365ECHO_T
1366ECHO_N
1367ECHO_C
1368DEFS
1369mandir
1370localedir
1371libdir
1372psdir
1373pdfdir
1374dvidir
1375htmldir
1376infodir
1377docdir
1378oldincludedir
1379includedir
1380runstatedir
1381localstatedir
1382sharedstatedir
1383sysconfdir
1384datadir
1385datarootdir
1386libexecdir
1387sbindir
1388bindir
1389program_transform_name
1390prefix
1391exec_prefix
1392PACKAGE_URL
1393PACKAGE_BUGREPORT
1394PACKAGE_STRING
1395PACKAGE_VERSION
1396PACKAGE_TARNAME
1397PACKAGE_NAME
1398PATH_SEPARATOR
1399SHELL
1400am__quote'
1401ac_subst_files=''
1402ac_user_opts='
1403enable_option_checking
1404enable_static
1405enable_shared
1406with_pic
1407enable_fast_install
1408with_aix_soname
1409with_gnu_ld
1410with_sysroot
1411enable_libtool_lock
1412enable_dependency_tracking
1413enable_silent_rules
1414enable_largefile
1415enable_xfs
1416with_nan_emulation
1417with_fp_layout
1418with_useragent
1419with_data_max_name_len
1420with_cuda
1421with_libaquaero5
1422with_libhiredis
1423with_libredfish
1424with_libcurl
1425with_libdbi
1426with_libdpdk
1427with_libesmtp
1428with_libganglia
1429with_libgcrypt
1430with_libgps
1431with_libgrpc__
1432with_libiptc
1433with_java
1434with_libldap
1435with_libmemcached
1436with_libmicrohttpd
1437with_libmodbus
1438with_libmongoc
1439with_libmosquitto
1440with_libmysql
1441with_libmnl
1442with_libnetapp
1443with_libnetsnmp
1444with_libnetsnmpagent
1445with_liboping
1446with_oracle
1447with_libowcapi
1448with_libpcap
1449with_libperl
1450with_libpmwapi
1451with_libpq
1452with_libpqos
1453with_libjansson
1454with_libjevents
1455with_libprotobuf
1456with_libprotobuf_c
1457with_libpython
1458with_libqpid_proton
1459with_librabbitmq
1460with_librdkafka
1461with_librouteros
1462with_librrd
1463with_libsensors
1464with_libssl
1465with_libstatgrab
1466with_libtokyotyrant
1467with_libudev
1468with_libupsclient
1469with_libxenctrl
1470with_libxmms
1471with_libyajl
1472with_mic
1473with_libvarnish
1474with_libxml2
1475with_libatasmart
1476with_libslurm
1477enable_debug
1478enable_daemon
1479enable_getifaddrs
1480enable_werror
1481enable_all_plugins
1482enable_aggregation
1483enable_amqp
1484enable_amqp1
1485enable_apache
1486enable_apcups
1487enable_apple_sensors
1488enable_aquaero
1489enable_ascent
1490enable_barometer
1491enable_battery
1492enable_bind
1493enable_buddyinfo
1494enable_capabilities
1495enable_ceph
1496enable_cgroups
1497enable_chrony
1498enable_check_uptime
1499enable_connectivity
1500enable_conntrack
1501enable_contextswitch
1502enable_cpu
1503enable_cpufreq
1504enable_cpusleep
1505enable_csv
1506enable_curl
1507enable_curl_json
1508enable_curl_xml
1509enable_dbi
1510enable_dcpmm
1511enable_df
1512enable_disk
1513enable_dns
1514enable_dpdkevents
1515enable_dpdkstat
1516enable_dpdk_telemetry
1517enable_drbd
1518enable_email
1519enable_entropy
1520enable_ethstat
1521enable_exec
1522enable_fhcount
1523enable_filecount
1524enable_fscache
1525enable_gmond
1526enable_gps
1527enable_gpu_nvidia
1528enable_grpc
1529enable_hddtemp
1530enable_hugepages
1531enable_infiniband
1532enable_intel_pmu
1533enable_intel_rdt
1534enable_interface
1535enable_ipc
1536enable_ipmi
1537enable_iptables
1538enable_ipstats
1539enable_ipvs
1540enable_irq
1541enable_java
1542enable_load
1543enable_log_logstash
1544enable_logfile
1545enable_logparser
1546enable_lpar
1547enable_lua
1548enable_madwifi
1549enable_match_empty_counter
1550enable_match_hashed
1551enable_match_regex
1552enable_match_timediff
1553enable_match_value
1554enable_mbmon
1555enable_mcelog
1556enable_md
1557enable_mdevents
1558enable_memcachec
1559enable_memcached
1560enable_memory
1561enable_mic
1562enable_modbus
1563enable_mqtt
1564enable_multimeter
1565enable_mysql
1566enable_netapp
1567enable_netlink
1568enable_netstat_udp
1569enable_network
1570enable_nfs
1571enable_nginx
1572enable_notify_desktop
1573enable_notify_email
1574enable_notify_nagios
1575enable_ntpd
1576enable_numa
1577enable_nut
1578enable_olsrd
1579enable_onewire
1580enable_openldap
1581enable_openvpn
1582enable_oracle
1583enable_ovs_events
1584enable_ovs_stats
1585enable_pcie_errors
1586enable_perl
1587enable_pf
1588enable_pinba
1589enable_ping
1590enable_postgresql
1591enable_powerdns
1592enable_processes
1593enable_procevent
1594enable_protocols
1595enable_python
1596enable_redfish
1597enable_redis
1598enable_routeros
1599enable_rrdcached
1600enable_rrdtool
1601enable_sensors
1602enable_serial
1603enable_sigrok
1604enable_slurm
1605enable_smart
1606enable_snmp
1607enable_snmp_agent
1608enable_statsd
1609enable_swap
1610enable_synproxy
1611enable_sysevent
1612enable_syslog
1613enable_table
1614enable_tail
1615enable_tail_csv
1616enable_tape
1617enable_target_notification
1618enable_target_replace
1619enable_target_scale
1620enable_target_set
1621enable_target_v5upgrade
1622enable_tcpconns
1623enable_teamspeak2
1624enable_ted
1625enable_thermal
1626enable_threshold
1627enable_tokyotyrant
1628enable_turbostat
1629enable_ubi
1630enable_unixsock
1631enable_uptime
1632enable_users
1633enable_uuid
1634enable_varnish
1635enable_virt
1636enable_vmem
1637enable_vserver
1638enable_wireless
1639enable_write_graphite
1640enable_write_http
1641enable_write_influxdb_udp
1642enable_write_kafka
1643enable_write_log
1644enable_write_mongodb
1645enable_write_prometheus
1646enable_write_redis
1647enable_write_riemann
1648enable_write_sensu
1649enable_write_stackdriver
1650enable_write_syslog
1651enable_write_tsdb
1652enable_xencpu
1653enable_xmms
1654enable_zfs_arc
1655enable_zone
1656enable_zookeeper
1657with_perl_bindings
1658'
1659      ac_precious_vars='build_alias
1660host_alias
1661target_alias
1662CC
1663CFLAGS
1664LDFLAGS
1665LIBS
1666CPPFLAGS
1667LT_SYS_LIBRARY_PATH
1668CPP
1669CXX
1670CXXFLAGS
1671CCC
1672CXXCPP
1673YACC
1674YFLAGS
1675PKG_CONFIG
1676PKG_CONFIG_PATH
1677PKG_CONFIG_LIBDIR
1678LIBDPDK_CPPFLAGS
1679LIBDPDK_CFLAGS
1680LIBDPDK_LDFLAGS
1681LIBDPDK_LIBS
1682DPDK_CFLAGS
1683DPDK_LIBS
1684GRPCPP_CFLAGS
1685GRPCPP_LIBS
1686GRPC_CPP_PLUGIN
1687LIBLUA_PKG_CONFIG_NAME
1688LUA_CFLAGS
1689LUA_LIBS
1690MICROHTTPD_CFLAGS
1691MICROHTTPD_LIBS
1692LIBMONGOC_CFLAGS
1693LIBMONGOC_LIBS
1694LIBNETAPP_CPPFLAGS
1695LIBNETAPP_LDFLAGS
1696LIBNETAPP_LIBS
1697PERL
1698PROTOBUF_CFLAGS
1699PROTOBUF_LIBS
1700PROTOC
1701PROTOBUF_C_CFLAGS
1702PROTOBUF_C_LIBS
1703PROTOC_C
1704LIBPYTHON_CPPFLAGS
1705LIBPYTHON_LDFLAGS
1706LIBPYTHON_LIBS
1707PYTHON_CONFIG
1708RRD_CFLAGS
1709RRD_LIBS
1710LIBSIGROK_CFLAGS
1711LIBSIGROK_LIBS
1712LIBNOTIFY_CFLAGS
1713LIBNOTIFY_LIBS
1714LIBRIEMANN_CLIENT_CFLAGS
1715LIBRIEMANN_CLIENT_LIBS'
1716
1717
1718# Initialize some variables set by options.
1719ac_init_help=
1720ac_init_version=false
1721ac_unrecognized_opts=
1722ac_unrecognized_sep=
1723# The variables have the same names as the options, with
1724# dashes changed to underlines.
1725cache_file=/dev/null
1726exec_prefix=NONE
1727no_create=
1728no_recursion=
1729prefix=NONE
1730program_prefix=NONE
1731program_suffix=NONE
1732program_transform_name=s,x,x,
1733silent=
1734site=
1735srcdir=
1736verbose=
1737x_includes=NONE
1738x_libraries=NONE
1739
1740# Installation directory options.
1741# These are left unexpanded so users can "make install exec_prefix=/foo"
1742# and all the variables that are supposed to be based on exec_prefix
1743# by default will actually change.
1744# Use braces instead of parens because sh, perl, etc. also accept them.
1745# (The list follows the same order as the GNU Coding Standards.)
1746bindir='${exec_prefix}/bin'
1747sbindir='${exec_prefix}/sbin'
1748libexecdir='${exec_prefix}/libexec'
1749datarootdir='${prefix}/share'
1750datadir='${datarootdir}'
1751sysconfdir='${prefix}/etc'
1752sharedstatedir='${prefix}/com'
1753localstatedir='${prefix}/var'
1754runstatedir='${localstatedir}/run'
1755includedir='${prefix}/include'
1756oldincludedir='/usr/include'
1757docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1758infodir='${datarootdir}/info'
1759htmldir='${docdir}'
1760dvidir='${docdir}'
1761pdfdir='${docdir}'
1762psdir='${docdir}'
1763libdir='${exec_prefix}/lib'
1764localedir='${datarootdir}/locale'
1765mandir='${datarootdir}/man'
1766
1767ac_prev=
1768ac_dashdash=
1769for ac_option
1770do
1771  # If the previous option needs an argument, assign it.
1772  if test -n "$ac_prev"; then
1773    eval $ac_prev=\$ac_option
1774    ac_prev=
1775    continue
1776  fi
1777
1778  case $ac_option in
1779  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1780  *=)   ac_optarg= ;;
1781  *)    ac_optarg=yes ;;
1782  esac
1783
1784  # Accept the important Cygnus configure options, so we can diagnose typos.
1785
1786  case $ac_dashdash$ac_option in
1787  --)
1788    ac_dashdash=yes ;;
1789
1790  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1791    ac_prev=bindir ;;
1792  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1793    bindir=$ac_optarg ;;
1794
1795  -build | --build | --buil | --bui | --bu)
1796    ac_prev=build_alias ;;
1797  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1798    build_alias=$ac_optarg ;;
1799
1800  -cache-file | --cache-file | --cache-fil | --cache-fi \
1801  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1802    ac_prev=cache_file ;;
1803  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1804  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1805    cache_file=$ac_optarg ;;
1806
1807  --config-cache | -C)
1808    cache_file=config.cache ;;
1809
1810  -datadir | --datadir | --datadi | --datad)
1811    ac_prev=datadir ;;
1812  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1813    datadir=$ac_optarg ;;
1814
1815  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1816  | --dataroo | --dataro | --datar)
1817    ac_prev=datarootdir ;;
1818  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1819  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1820    datarootdir=$ac_optarg ;;
1821
1822  -disable-* | --disable-*)
1823    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1824    # Reject names that are not valid shell variable names.
1825    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1826      as_fn_error $? "invalid feature name: $ac_useropt"
1827    ac_useropt_orig=$ac_useropt
1828    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1829    case $ac_user_opts in
1830      *"
1831"enable_$ac_useropt"
1832"*) ;;
1833      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1834	 ac_unrecognized_sep=', ';;
1835    esac
1836    eval enable_$ac_useropt=no ;;
1837
1838  -docdir | --docdir | --docdi | --doc | --do)
1839    ac_prev=docdir ;;
1840  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1841    docdir=$ac_optarg ;;
1842
1843  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1844    ac_prev=dvidir ;;
1845  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1846    dvidir=$ac_optarg ;;
1847
1848  -enable-* | --enable-*)
1849    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1850    # Reject names that are not valid shell variable names.
1851    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1852      as_fn_error $? "invalid feature name: $ac_useropt"
1853    ac_useropt_orig=$ac_useropt
1854    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1855    case $ac_user_opts in
1856      *"
1857"enable_$ac_useropt"
1858"*) ;;
1859      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1860	 ac_unrecognized_sep=', ';;
1861    esac
1862    eval enable_$ac_useropt=\$ac_optarg ;;
1863
1864  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1865  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1866  | --exec | --exe | --ex)
1867    ac_prev=exec_prefix ;;
1868  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1869  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1870  | --exec=* | --exe=* | --ex=*)
1871    exec_prefix=$ac_optarg ;;
1872
1873  -gas | --gas | --ga | --g)
1874    # Obsolete; use --with-gas.
1875    with_gas=yes ;;
1876
1877  -help | --help | --hel | --he | -h)
1878    ac_init_help=long ;;
1879  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1880    ac_init_help=recursive ;;
1881  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1882    ac_init_help=short ;;
1883
1884  -host | --host | --hos | --ho)
1885    ac_prev=host_alias ;;
1886  -host=* | --host=* | --hos=* | --ho=*)
1887    host_alias=$ac_optarg ;;
1888
1889  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1890    ac_prev=htmldir ;;
1891  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1892  | --ht=*)
1893    htmldir=$ac_optarg ;;
1894
1895  -includedir | --includedir | --includedi | --included | --include \
1896  | --includ | --inclu | --incl | --inc)
1897    ac_prev=includedir ;;
1898  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1899  | --includ=* | --inclu=* | --incl=* | --inc=*)
1900    includedir=$ac_optarg ;;
1901
1902  -infodir | --infodir | --infodi | --infod | --info | --inf)
1903    ac_prev=infodir ;;
1904  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1905    infodir=$ac_optarg ;;
1906
1907  -libdir | --libdir | --libdi | --libd)
1908    ac_prev=libdir ;;
1909  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1910    libdir=$ac_optarg ;;
1911
1912  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1913  | --libexe | --libex | --libe)
1914    ac_prev=libexecdir ;;
1915  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1916  | --libexe=* | --libex=* | --libe=*)
1917    libexecdir=$ac_optarg ;;
1918
1919  -localedir | --localedir | --localedi | --localed | --locale)
1920    ac_prev=localedir ;;
1921  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1922    localedir=$ac_optarg ;;
1923
1924  -localstatedir | --localstatedir | --localstatedi | --localstated \
1925  | --localstate | --localstat | --localsta | --localst | --locals)
1926    ac_prev=localstatedir ;;
1927  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1928  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1929    localstatedir=$ac_optarg ;;
1930
1931  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1932    ac_prev=mandir ;;
1933  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1934    mandir=$ac_optarg ;;
1935
1936  -nfp | --nfp | --nf)
1937    # Obsolete; use --without-fp.
1938    with_fp=no ;;
1939
1940  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1941  | --no-cr | --no-c | -n)
1942    no_create=yes ;;
1943
1944  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1945  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1946    no_recursion=yes ;;
1947
1948  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1949  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1950  | --oldin | --oldi | --old | --ol | --o)
1951    ac_prev=oldincludedir ;;
1952  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1953  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1954  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1955    oldincludedir=$ac_optarg ;;
1956
1957  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1958    ac_prev=prefix ;;
1959  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1960    prefix=$ac_optarg ;;
1961
1962  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1963  | --program-pre | --program-pr | --program-p)
1964    ac_prev=program_prefix ;;
1965  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1966  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1967    program_prefix=$ac_optarg ;;
1968
1969  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1970  | --program-suf | --program-su | --program-s)
1971    ac_prev=program_suffix ;;
1972  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1973  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1974    program_suffix=$ac_optarg ;;
1975
1976  -program-transform-name | --program-transform-name \
1977  | --program-transform-nam | --program-transform-na \
1978  | --program-transform-n | --program-transform- \
1979  | --program-transform | --program-transfor \
1980  | --program-transfo | --program-transf \
1981  | --program-trans | --program-tran \
1982  | --progr-tra | --program-tr | --program-t)
1983    ac_prev=program_transform_name ;;
1984  -program-transform-name=* | --program-transform-name=* \
1985  | --program-transform-nam=* | --program-transform-na=* \
1986  | --program-transform-n=* | --program-transform-=* \
1987  | --program-transform=* | --program-transfor=* \
1988  | --program-transfo=* | --program-transf=* \
1989  | --program-trans=* | --program-tran=* \
1990  | --progr-tra=* | --program-tr=* | --program-t=*)
1991    program_transform_name=$ac_optarg ;;
1992
1993  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1994    ac_prev=pdfdir ;;
1995  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1996    pdfdir=$ac_optarg ;;
1997
1998  -psdir | --psdir | --psdi | --psd | --ps)
1999    ac_prev=psdir ;;
2000  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2001    psdir=$ac_optarg ;;
2002
2003  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2004  | -silent | --silent | --silen | --sile | --sil)
2005    silent=yes ;;
2006
2007  -runstatedir | --runstatedir | --runstatedi | --runstated \
2008  | --runstate | --runstat | --runsta | --runst | --runs \
2009  | --run | --ru | --r)
2010    ac_prev=runstatedir ;;
2011  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
2012  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
2013  | --run=* | --ru=* | --r=*)
2014    runstatedir=$ac_optarg ;;
2015
2016  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2017    ac_prev=sbindir ;;
2018  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2019  | --sbi=* | --sb=*)
2020    sbindir=$ac_optarg ;;
2021
2022  -sharedstatedir | --sharedstatedir | --sharedstatedi \
2023  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2024  | --sharedst | --shareds | --shared | --share | --shar \
2025  | --sha | --sh)
2026    ac_prev=sharedstatedir ;;
2027  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2028  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2029  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2030  | --sha=* | --sh=*)
2031    sharedstatedir=$ac_optarg ;;
2032
2033  -site | --site | --sit)
2034    ac_prev=site ;;
2035  -site=* | --site=* | --sit=*)
2036    site=$ac_optarg ;;
2037
2038  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2039    ac_prev=srcdir ;;
2040  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2041    srcdir=$ac_optarg ;;
2042
2043  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2044  | --syscon | --sysco | --sysc | --sys | --sy)
2045    ac_prev=sysconfdir ;;
2046  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2047  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2048    sysconfdir=$ac_optarg ;;
2049
2050  -target | --target | --targe | --targ | --tar | --ta | --t)
2051    ac_prev=target_alias ;;
2052  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2053    target_alias=$ac_optarg ;;
2054
2055  -v | -verbose | --verbose | --verbos | --verbo | --verb)
2056    verbose=yes ;;
2057
2058  -version | --version | --versio | --versi | --vers | -V)
2059    ac_init_version=: ;;
2060
2061  -with-* | --with-*)
2062    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2063    # Reject names that are not valid shell variable names.
2064    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2065      as_fn_error $? "invalid package name: $ac_useropt"
2066    ac_useropt_orig=$ac_useropt
2067    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2068    case $ac_user_opts in
2069      *"
2070"with_$ac_useropt"
2071"*) ;;
2072      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2073	 ac_unrecognized_sep=', ';;
2074    esac
2075    eval with_$ac_useropt=\$ac_optarg ;;
2076
2077  -without-* | --without-*)
2078    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2079    # Reject names that are not valid shell variable names.
2080    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2081      as_fn_error $? "invalid package name: $ac_useropt"
2082    ac_useropt_orig=$ac_useropt
2083    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2084    case $ac_user_opts in
2085      *"
2086"with_$ac_useropt"
2087"*) ;;
2088      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2089	 ac_unrecognized_sep=', ';;
2090    esac
2091    eval with_$ac_useropt=no ;;
2092
2093  --x)
2094    # Obsolete; use --with-x.
2095    with_x=yes ;;
2096
2097  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2098  | --x-incl | --x-inc | --x-in | --x-i)
2099    ac_prev=x_includes ;;
2100  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2101  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2102    x_includes=$ac_optarg ;;
2103
2104  -x-libraries | --x-libraries | --x-librarie | --x-librari \
2105  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2106    ac_prev=x_libraries ;;
2107  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2108  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2109    x_libraries=$ac_optarg ;;
2110
2111  -*) as_fn_error $? "unrecognized option: \`$ac_option'
2112Try \`$0 --help' for more information"
2113    ;;
2114
2115  *=*)
2116    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2117    # Reject names that are not valid shell variable names.
2118    case $ac_envvar in #(
2119      '' | [0-9]* | *[!_$as_cr_alnum]* )
2120      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2121    esac
2122    eval $ac_envvar=\$ac_optarg
2123    export $ac_envvar ;;
2124
2125  *)
2126    # FIXME: should be removed in autoconf 3.0.
2127    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2128    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2129      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2130    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2131    ;;
2132
2133  esac
2134done
2135
2136if test -n "$ac_prev"; then
2137  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2138  as_fn_error $? "missing argument to $ac_option"
2139fi
2140
2141if test -n "$ac_unrecognized_opts"; then
2142  case $enable_option_checking in
2143    no) ;;
2144    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2145    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2146  esac
2147fi
2148
2149# Check all directory arguments for consistency.
2150for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
2151		datadir sysconfdir sharedstatedir localstatedir includedir \
2152		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2153		libdir localedir mandir runstatedir
2154do
2155  eval ac_val=\$$ac_var
2156  # Remove trailing slashes.
2157  case $ac_val in
2158    */ )
2159      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2160      eval $ac_var=\$ac_val;;
2161  esac
2162  # Be sure to have absolute directory names.
2163  case $ac_val in
2164    [\\/$]* | ?:[\\/]* )  continue;;
2165    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2166  esac
2167  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2168done
2169
2170# There might be people who depend on the old broken behavior: `$host'
2171# used to hold the argument of --host etc.
2172# FIXME: To remove some day.
2173build=$build_alias
2174host=$host_alias
2175target=$target_alias
2176
2177# FIXME: To remove some day.
2178if test "x$host_alias" != x; then
2179  if test "x$build_alias" = x; then
2180    cross_compiling=maybe
2181  elif test "x$build_alias" != "x$host_alias"; then
2182    cross_compiling=yes
2183  fi
2184fi
2185
2186ac_tool_prefix=
2187test -n "$host_alias" && ac_tool_prefix=$host_alias-
2188
2189test "$silent" = yes && exec 6>/dev/null
2190
2191
2192ac_pwd=`pwd` && test -n "$ac_pwd" &&
2193ac_ls_di=`ls -di .` &&
2194ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2195  as_fn_error $? "working directory cannot be determined"
2196test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2197  as_fn_error $? "pwd does not report name of working directory"
2198
2199
2200# Find the source files, if location was not specified.
2201if test -z "$srcdir"; then
2202  ac_srcdir_defaulted=yes
2203  # Try the directory containing this script, then the parent directory.
2204  ac_confdir=`$as_dirname -- "$as_myself" ||
2205$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2206	 X"$as_myself" : 'X\(//\)[^/]' \| \
2207	 X"$as_myself" : 'X\(//\)$' \| \
2208	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2209$as_echo X"$as_myself" |
2210    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2211	    s//\1/
2212	    q
2213	  }
2214	  /^X\(\/\/\)[^/].*/{
2215	    s//\1/
2216	    q
2217	  }
2218	  /^X\(\/\/\)$/{
2219	    s//\1/
2220	    q
2221	  }
2222	  /^X\(\/\).*/{
2223	    s//\1/
2224	    q
2225	  }
2226	  s/.*/./; q'`
2227  srcdir=$ac_confdir
2228  if test ! -r "$srcdir/$ac_unique_file"; then
2229    srcdir=..
2230  fi
2231else
2232  ac_srcdir_defaulted=no
2233fi
2234if test ! -r "$srcdir/$ac_unique_file"; then
2235  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2236  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2237fi
2238ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2239ac_abs_confdir=`(
2240	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2241	pwd)`
2242# When building in place, set srcdir=.
2243if test "$ac_abs_confdir" = "$ac_pwd"; then
2244  srcdir=.
2245fi
2246# Remove unnecessary trailing slashes from srcdir.
2247# Double slashes in file names in object file debugging info
2248# mess up M-x gdb in Emacs.
2249case $srcdir in
2250*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2251esac
2252for ac_var in $ac_precious_vars; do
2253  eval ac_env_${ac_var}_set=\${${ac_var}+set}
2254  eval ac_env_${ac_var}_value=\$${ac_var}
2255  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2256  eval ac_cv_env_${ac_var}_value=\$${ac_var}
2257done
2258
2259#
2260# Report the --help message.
2261#
2262if test "$ac_init_help" = "long"; then
2263  # Omit some internal or obsolete options to make the list less imposing.
2264  # This message is too long to be a string in the A/UX 3.1 sh.
2265  cat <<_ACEOF
2266\`configure' configures collectd 5.12.0 to adapt to many kinds of systems.
2267
2268Usage: $0 [OPTION]... [VAR=VALUE]...
2269
2270To assign environment variables (e.g., CC, CFLAGS...), specify them as
2271VAR=VALUE.  See below for descriptions of some of the useful variables.
2272
2273Defaults for the options are specified in brackets.
2274
2275Configuration:
2276  -h, --help              display this help and exit
2277      --help=short        display options specific to this package
2278      --help=recursive    display the short help of all the included packages
2279  -V, --version           display version information and exit
2280  -q, --quiet, --silent   do not print \`checking ...' messages
2281      --cache-file=FILE   cache test results in FILE [disabled]
2282  -C, --config-cache      alias for \`--cache-file=config.cache'
2283  -n, --no-create         do not create output files
2284      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2285
2286Installation directories:
2287  --prefix=PREFIX         install architecture-independent files in PREFIX
2288                          [$ac_default_prefix]
2289  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2290                          [PREFIX]
2291
2292By default, \`make install' will install all the files in
2293\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2294an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2295for instance \`--prefix=\$HOME'.
2296
2297For better control, use the options below.
2298
2299Fine tuning of the installation directories:
2300  --bindir=DIR            user executables [EPREFIX/bin]
2301  --sbindir=DIR           system admin executables [EPREFIX/sbin]
2302  --libexecdir=DIR        program executables [EPREFIX/libexec]
2303  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2304  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2305  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2306  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2307  --libdir=DIR            object code libraries [EPREFIX/lib]
2308  --includedir=DIR        C header files [PREFIX/include]
2309  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2310  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2311  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2312  --infodir=DIR           info documentation [DATAROOTDIR/info]
2313  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2314  --mandir=DIR            man documentation [DATAROOTDIR/man]
2315  --docdir=DIR            documentation root [DATAROOTDIR/doc/collectd]
2316  --htmldir=DIR           html documentation [DOCDIR]
2317  --dvidir=DIR            dvi documentation [DOCDIR]
2318  --pdfdir=DIR            pdf documentation [DOCDIR]
2319  --psdir=DIR             ps documentation [DOCDIR]
2320_ACEOF
2321
2322  cat <<\_ACEOF
2323
2324Program names:
2325  --program-prefix=PREFIX            prepend PREFIX to installed program names
2326  --program-suffix=SUFFIX            append SUFFIX to installed program names
2327  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2328
2329System types:
2330  --build=BUILD     configure for building on BUILD [guessed]
2331  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2332_ACEOF
2333fi
2334
2335if test -n "$ac_init_help"; then
2336  case $ac_init_help in
2337     short | recursive ) echo "Configuration of collectd 5.12.0:";;
2338   esac
2339  cat <<\_ACEOF
2340
2341Optional Features:
2342  --disable-option-checking  ignore unrecognized --enable/--with options
2343  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2344  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2345  --enable-static[=PKGS]  build static libraries [default=no]
2346  --enable-shared[=PKGS]  build shared libraries [default=yes]
2347  --enable-fast-install[=PKGS]
2348                          optimize for fast installation [default=yes]
2349  --disable-libtool-lock  avoid locking (might break parallel builds)
2350  --enable-dependency-tracking
2351                          do not reject slow dependency extractors
2352  --disable-dependency-tracking
2353                          speeds up one-time build
2354  --enable-silent-rules   less verbose build output (undo: "make V=1")
2355  --disable-silent-rules  verbose build output (undo: "make V=0")
2356  --disable-largefile     omit support for large files
2357  --enable-xfs            xfs support in df plugin [default=yes]
2358
2359collectd features:
2360  --enable-debug          enable debugging (disabled by def)
2361  --disable-daemon        disable daemon mode (enabled by def)
2362  --enable-getifaddrs     enable getifaddrs under Linux (disabled by def)
2363  --disable-werror        disable building with -Werror (enabled by def)
2364
2365collectd plugins:
2366  --enable-all-plugins    enable all plugins [default=yes]
2367
2368  --enable-aggregation    Aggregation plugin
2369  --enable-amqp           AMQP output plugin
2370  --enable-amqp1          AMQP 1.0 output plugin
2371  --enable-apache         Apache httpd statistics
2372  --enable-apcups         Statistics of UPSes by APC
2373  --enable-apple_sensors  Apple hardware sensors
2374  --enable-aquaero        Aquaero hardware sensors
2375  --enable-ascent         AscentEmu player statistics
2376  --enable-barometer      Barometer sensor on I2C
2377  --enable-battery        Battery statistics
2378  --enable-bind           ISC Bind nameserver statistics
2379  --enable-buddyinfo      buddyinfo statistics
2380  --enable-capabilities   Platform static capabilities
2381  --enable-ceph           Ceph daemon statistics
2382  --enable-cgroups        CGroups CPU usage accounting
2383  --enable-chrony         Chrony statistics
2384  --enable-check_uptime   Notify about uptime reset
2385  --enable-connectivity   Network interface up/down events
2386  --enable-conntrack      nf_conntrack statistics
2387  --enable-contextswitch  context switch statistics
2388  --enable-cpu            CPU usage statistics
2389  --enable-cpufreq        CPU frequency statistics
2390  --enable-cpusleep       CPU sleep statistics
2391  --enable-csv            CSV output plugin
2392  --enable-curl           CURL generic web statistics
2393  --enable-curl_json      CouchDB statistics
2394  --enable-curl_xml       CURL generic xml statistics
2395  --enable-dbi            General database statistics
2396  --enable-dcpmm          Intel(R) Optane(TM) DC Persistent Memory performance
2397                          and health statistics
2398  --enable-df             Filesystem usage statistics
2399  --enable-disk           Disk usage statistics
2400  --enable-dns            DNS traffic analysis
2401  --enable-dpdkevents     Events from DPDK
2402  --enable-dpdkstat       Stats from DPDK
2403  --enable-dpdk_telemetry Metrics from DPDK Telemetry
2404  --enable-drbd           DRBD statistics
2405  --enable-email          EMail statistics
2406  --enable-entropy        Entropy statistics
2407  --enable-ethstat        Stats from NIC driver
2408  --enable-exec           Execution of external programs
2409  --enable-fhcount        File handles statistics
2410  --enable-filecount      Count files in directories
2411  --enable-fscache        fscache statistics
2412  --enable-gmond          Ganglia plugin
2413  --enable-gps            GPS plugin
2414  --enable-gpu_nvidia     NVIDIA GPU plugin
2415  --enable-grpc           gRPC plugin
2416  --enable-hddtemp        Query hddtempd
2417  --enable-hugepages      Hugepages statistics
2418  --enable-infiniband     Infiniband statistics
2419  --enable-intel_pmu      Intel performance monitor plugin
2420  --enable-intel_rdt      Intel RDT monitor plugin
2421  --enable-interface      Interface traffic statistics
2422  --enable-ipc            IPC statistics
2423  --enable-ipmi           IPMI sensor statistics
2424  --enable-iptables       IPTables rule counters
2425  --enable-ipstats        IP packet statistics
2426  --enable-ipvs           IPVS connection statistics
2427  --enable-irq            IRQ statistics
2428  --enable-java           Embed the Java Virtual Machine
2429  --enable-load           System load
2430  --enable-log_logstash   Logstash json_event compatible logging
2431  --enable-logfile        File logging plugin
2432  --enable-logparser      Log parsing plugin
2433  --enable-lpar           AIX logical partitions statistics
2434  --enable-lua            Lua plugin
2435  --enable-madwifi        Madwifi wireless statistics
2436  --enable-match_empty_counter
2437                          The empty counter match
2438  --enable-match_hashed   The hashed match
2439  --enable-match_regex    The regex match
2440  --enable-match_timediff The timediff match
2441  --enable-match_value    The value match
2442  --enable-mbmon          Query mbmond
2443  --enable-mcelog         Machine Check Exceptions notifications
2444  --enable-md             md (Linux software RAID) devices
2445  --enable-mdevents       Events from md (Linux Software RAID) devices
2446  --enable-memcachec      memcachec statistics
2447  --enable-memcached      memcached statistics
2448  --enable-memory         Memory usage
2449  --enable-mic            Intel Many Integrated Core stats
2450  --enable-modbus         Modbus plugin
2451  --enable-mqtt           MQTT output plugin
2452  --enable-multimeter     Read multimeter values
2453  --enable-mysql          MySQL statistics
2454  --enable-netapp         NetApp plugin
2455  --enable-netlink        Enhanced Linux network statistics
2456  --enable-netstat_udp    UDP network statistics
2457  --enable-network        Network communication plugin
2458  --enable-nfs            NFS statistics
2459  --enable-nginx          nginx statistics
2460  --enable-notify_desktop Desktop notifications
2461  --enable-notify_email   Email notifier
2462  --enable-notify_nagios  Nagios notification plugin
2463  --enable-ntpd           NTPd statistics
2464  --enable-numa           NUMA virtual memory statistics
2465  --enable-nut            Network UPS tools statistics
2466  --enable-olsrd          olsrd statistics
2467  --enable-onewire        OneWire sensor statistics
2468  --enable-openldap       OpenLDAP statistics
2469  --enable-openvpn        OpenVPN client statistics
2470  --enable-oracle         Oracle plugin
2471  --enable-ovs_events     OVS events plugin
2472  --enable-ovs_stats      OVS statistics plugin
2473  --enable-pcie_errors    PCIe errors plugin
2474  --enable-perl           Embed a Perl interpreter
2475  --enable-pf             BSD packet filter (PF) statistics
2476  --enable-pinba          Pinba statistics
2477  --enable-ping           Network latency statistics
2478  --enable-postgresql     PostgreSQL database statistics
2479  --enable-powerdns       PowerDNS statistics
2480  --enable-processes      Process statistics
2481  --enable-procevent      Process event (start, stop) statistics
2482  --enable-protocols      Protocol (IP, TCP, ...) statistics
2483  --enable-python         Embed a Python interpreter
2484  --enable-redfish        Redfish plugin
2485  --enable-redis          Redis plugin
2486  --enable-routeros       RouterOS plugin
2487  --enable-rrdcached      RRDTool output plugin
2488  --enable-rrdtool        RRDTool output plugin
2489  --enable-sensors        lm_sensors statistics
2490  --enable-serial         serial port traffic
2491  --enable-sigrok         sigrok acquisition sources
2492  --enable-slurm          SLURM jobs and nodes status
2493  --enable-smart          SMART statistics
2494  --enable-snmp           SNMP querying plugin
2495  --enable-snmp_agent     SNMP agent plugin
2496  --enable-statsd         StatsD plugin
2497  --enable-swap           Swap usage statistics
2498  --enable-synproxy       Synproxy stats plugin
2499  --enable-sysevent       rsyslog events
2500  --enable-syslog         Syslog logging plugin
2501  --enable-table          Parsing of tabular data
2502  --enable-tail           Parsing of logfiles
2503  --enable-tail_csv       Parsing of CSV files
2504  --enable-tape           Tape drive statistics
2505  --enable-target_notification
2506                          The notification target
2507  --enable-target_replace The replace target
2508  --enable-target_scale   The scale target
2509  --enable-target_set     The set target
2510  --enable-target_v5upgrade
2511                          The v5upgrade target
2512  --enable-tcpconns       TCP connection statistics
2513  --enable-teamspeak2     TeamSpeak2 server statistics
2514  --enable-ted            Read The Energy Detective values
2515  --enable-thermal        Linux ACPI thermal zone statistics
2516  --enable-threshold      Threshold checking plugin
2517  --enable-tokyotyrant    TokyoTyrant database statistics
2518  --enable-turbostat      Advanced statistic on Intel cpu states
2519  --enable-ubi            UBIFS statistics
2520  --enable-unixsock       Unixsock communication plugin
2521  --enable-uptime         Uptime statistics
2522  --enable-users          User statistics
2523  --enable-uuid           UUID as hostname plugin
2524  --enable-varnish        Varnish cache statistics
2525  --enable-virt           Virtual machine statistics
2526  --enable-vmem           Virtual memory statistics
2527  --enable-vserver        Linux VServer statistics
2528  --enable-wireless       Wireless statistics
2529  --enable-write_graphite Graphite / Carbon output plugin
2530  --enable-write_http     HTTP output plugin
2531  --enable-write_influxdb_udp
2532                          Influxdb udp output plugin
2533  --enable-write_kafka    Kafka output plugin
2534  --enable-write_log      Log output plugin
2535  --enable-write_mongodb  MongoDB output plugin
2536  --enable-write_prometheus
2537                          Prometheus write plugin
2538  --enable-write_redis    Redis output plugin
2539  --enable-write_riemann  Riemann output plugin
2540  --enable-write_sensu    Sensu output plugin
2541  --enable-write_stackdriver
2542                          Google Stackdriver Monitoring output plugin
2543  --enable-write_syslog   Syslog output plugin
2544  --enable-write_tsdb     TSDB output plugin
2545  --enable-xencpu         Xen Host CPU usage
2546  --enable-xmms           XMMS statistics
2547  --enable-zfs_arc        ZFS ARC statistics
2548  --enable-zone           Solaris container statistics
2549  --enable-zookeeper      Zookeeper statistics
2550
2551Optional Packages:
2552  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2553  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2554  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2555                          both]
2556  --with-aix-soname=aix|svr4|both
2557                          shared library versioning (aka "SONAME") variant to
2558                          provide on AIX, [default=aix].
2559  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2560  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2561                          compiler's sysroot if not specified).
2562  --with-nan-emulation    use emulated NAN. For crosscompiling only.
2563
2564      --with-fp-layout        set the memory layout of doubles. For crosscompiling
2565                          only.
2566
2567  --with-useragent[=AGENT]
2568                          User agent to use on http requests
2569  --with-data-max-name-len[=VALUE]
2570                          Maximum length of data buffers
2571
2572Collectd additional packages:
2573  --with-cuda[=PREFIX]    Path to cuda.
2574  --with-libaquaero5[=PREFIX]
2575                          Path to aquatools-ng source code.
2576  --with-libhiredis[=PREFIX]
2577                          Path to libhiredis.
2578  --with-libredfish[=PREFIX]
2579                          Path to libredfish.
2580  --with-libcurl[=PREFIX] Path to libcurl.
2581  --with-libdbi[=PREFIX]  Path to libdbi.
2582  --without-libdpdk       Disable libdpdk.
2583  --with-libesmtp[=PREFIX]
2584                          Path to libesmtp.
2585  --with-libganglia[=PREFIX]
2586                          Path to libganglia.
2587  --with-libgcrypt[=PREFIX]
2588                          Path to libgcrypt.
2589  --with-libgps[=PREFIX]  Path to libgps.
2590  --with-libgrpc++[=PREFIX]
2591                          Path to libgrpc++.
2592  --with-libiptc[=PREFIX] Path to libiptc.
2593  --with-java[=PREFIX]    Path to Java home.
2594  --with-libldap[=PREFIX] Path to libldap.
2595  --with-libmemcached[=PREFIX]
2596                          Path to libmemcached.
2597  --with-libmicrohttpd[=PREFIX]
2598                          Path to libmicrohttpd.
2599  --with-libmodbus[=PREFIX]
2600                          Path to the modbus library.
2601  --with-libmongoc[=PREFIX]
2602                          Path to libmongoc.
2603  --with-libmosquitto[=PREFIX]
2604                          Path to libmosquitto.
2605  --with-libmysql[=PREFIX]
2606                          Path to libmysql.
2607  --with-libmnl[=PREFIX]  Path to libmnl.
2608  --with-libnetapp[=PREFIX]
2609                          Path to libnetapp.
2610  --with-libnetsnmp[=PREFIX]
2611                          Path to libnetsnmp.
2612  --with-libnetsnmpagent[=PREFIX]
2613                          Path to libnetsnmpagent.
2614  --with-liboping[=PREFIX]
2615                          Path to liboping.
2616  --with-oracle[=ORACLE_HOME]
2617                          Path to Oracle.
2618  --with-libowcapi[=PREFIX]
2619                          Path to libowcapi.
2620  --with-libpcap[=PREFIX] Path to libpcap.
2621  --with-libperl[=PREFIX] Path to libperl.
2622  --with-libpmwapi[=PREFIX]
2623                          Path to libpmwapi.
2624  --with-libpq[=PREFIX]   Path to libpq.
2625  --with-libpqos[=PREFIX] Path to libpqos.
2626  --with-libjansson[=PREFIX]
2627                          Path to libjansson.
2628  --with-libjevents[=PREFIX]
2629                          Path to libjevents.
2630  --with-libprotobuf[=PREFIX]
2631                          Path to libprotobuf.
2632  --with-libprotobuf-c[=PREFIX]
2633                          Path to libprotobuf-c.
2634  --with-libpython        if we should build with libpython [default=yes]
2635  --with-libqpid_proton[=PREFIX]
2636                          Path to libqpid_proton.
2637  --with-librabbitmq[=PREFIX]
2638                          Path to librabbitmq.
2639  --with-librdkafka[=PREFIX]
2640                          Path to librdkafka.
2641  --with-librouteros[=PREFIX]
2642                          Path to librouteros.
2643  --with-librrd[=PREFIX]  Path to rrdtool.
2644  --with-libsensors[=PREFIX]
2645                          Path to lm_sensors.
2646  --with-libssl[=PREFIX]  Path to libssl.
2647  --with-libstatgrab[=PREFIX]
2648                          Path to libstatgrab.
2649  --with-libtokyotyrant[=PREFIX]
2650                          Path to libtokyotyrant.
2651  --with-libudev[=PREFIX] Path to libudev.
2652  --with-libupsclient[=PREFIX]
2653                          Path to the upsclient library.
2654  --with-libxenctrl[=PREFIX]
2655                          Path to libxenctrl.
2656  --with-libxmms[=PREFIX] Path to libxmms.
2657  --with-libyajl[=PREFIX] Path to libyajl.
2658  --with-mic[=PREFIX]     Path to Intel MIC Access API.
2659  --with-libvarnish[=PREFIX]
2660                          Path to libvarnish.
2661  --with-libxml2[=PREFIX] Path to libxml2.
2662  --with-libatasmart[=PREFIX]
2663                          Path to libatasmart.
2664  --with-libslurm[=PREFIX]
2665                          Path to the libslurm library.
2666  --with-perl-bindings[=OPTIONS]
2667                          Options passed to "perl Makefile.PL".
2668
2669Some influential environment variables:
2670  CC          C compiler command
2671  CFLAGS      C compiler flags
2672  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2673              nonstandard directory <lib dir>
2674  LIBS        libraries to pass to the linker, e.g. -l<library>
2675  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2676              you have headers in a nonstandard directory <include dir>
2677  LT_SYS_LIBRARY_PATH
2678              User-defined run-time library search path.
2679  CPP         C preprocessor
2680  CXX         C++ compiler command
2681  CXXFLAGS    C++ compiler flags
2682  CXXCPP      C++ preprocessor
2683  YACC        The `Yet Another Compiler Compiler' implementation to use.
2684              Defaults to the first program found out of: `bison -y', `byacc',
2685              `yacc'.
2686  YFLAGS      The list of arguments that will be passed by default to $YACC.
2687              This script will default YFLAGS to the empty string to avoid a
2688              default value of `-d' given by some make applications.
2689  PKG_CONFIG  path to pkg-config utility
2690  PKG_CONFIG_PATH
2691              directories to add to pkg-config's search path
2692  PKG_CONFIG_LIBDIR
2693              path overriding pkg-config's built-in search path
2694  LIBDPDK_CPPFLAGS
2695              Preprocessor flags for libdpdk
2696  LIBDPDK_CFLAGS
2697              Compiler flags for libdpdk
2698  LIBDPDK_LDFLAGS
2699              Linker flags for libdpdk
2700  LIBDPDK_LIBS
2701              Libraries to link for libdpdk
2702  DPDK_CFLAGS C compiler flags for DPDK, overriding pkg-config
2703  DPDK_LIBS   linker flags for DPDK, overriding pkg-config
2704  GRPCPP_CFLAGS
2705              C compiler flags for GRPCPP, overriding pkg-config
2706  GRPCPP_LIBS linker flags for GRPCPP, overriding pkg-config
2707  GRPC_CPP_PLUGIN
2708              path to the grpc_cpp_plugin binary
2709  LIBLUA_PKG_CONFIG_NAME
2710              Name of liblua used by pkg-config
2711  LUA_CFLAGS  C compiler flags for LUA, overriding pkg-config
2712  LUA_LIBS    linker flags for LUA, overriding pkg-config
2713  MICROHTTPD_CFLAGS
2714              C compiler flags for MICROHTTPD, overriding pkg-config
2715  MICROHTTPD_LIBS
2716              linker flags for MICROHTTPD, overriding pkg-config
2717  LIBMONGOC_CFLAGS
2718              C compiler flags for LIBMONGOC, overriding pkg-config
2719  LIBMONGOC_LIBS
2720              linker flags for LIBMONGOC, overriding pkg-config
2721  LIBNETAPP_CPPFLAGS
2722              C preprocessor flags required to build with libnetapp
2723  LIBNETAPP_LDFLAGS
2724              Linker flags required to build with libnetapp
2725  LIBNETAPP_LIBS
2726              Other libraries required to link against libnetapp
2727  PERL        path to Perl interpreter
2728  PROTOBUF_CFLAGS
2729              C compiler flags for PROTOBUF, overriding pkg-config
2730  PROTOBUF_LIBS
2731              linker flags for PROTOBUF, overriding pkg-config
2732  PROTOC      path to the protoc binary
2733  PROTOBUF_C_CFLAGS
2734              C compiler flags for PROTOBUF_C, overriding pkg-config
2735  PROTOBUF_C_LIBS
2736              linker flags for PROTOBUF_C, overriding pkg-config
2737  PROTOC_C    path to the protoc-c binary
2738  LIBPYTHON_CPPFLAGS
2739              Preprocessor flags for libpython
2740  LIBPYTHON_LDFLAGS
2741              Linker flags for libpython
2742  LIBPYTHON_LIBS
2743              Libraries for libpython
2744  PYTHON_CONFIG
2745              path to python-config
2746  RRD_CFLAGS  C compiler flags for RRD, overriding pkg-config
2747  RRD_LIBS    linker flags for RRD, overriding pkg-config
2748  LIBSIGROK_CFLAGS
2749              C compiler flags for LIBSIGROK, overriding pkg-config
2750  LIBSIGROK_LIBS
2751              linker flags for LIBSIGROK, overriding pkg-config
2752  LIBNOTIFY_CFLAGS
2753              C compiler flags for LIBNOTIFY, overriding pkg-config
2754  LIBNOTIFY_LIBS
2755              linker flags for LIBNOTIFY, overriding pkg-config
2756  LIBRIEMANN_CLIENT_CFLAGS
2757              C compiler flags for LIBRIEMANN_CLIENT, overriding pkg-config
2758  LIBRIEMANN_CLIENT_LIBS
2759              linker flags for LIBRIEMANN_CLIENT, overriding pkg-config
2760
2761Use these variables to override the choices made by `configure' or to help
2762it to find libraries and programs with nonstandard names/locations.
2763
2764Report bugs to the package provider.
2765_ACEOF
2766ac_status=$?
2767fi
2768
2769if test "$ac_init_help" = "recursive"; then
2770  # If there are subdirs, report their specific --help.
2771  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2772    test -d "$ac_dir" ||
2773      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2774      continue
2775    ac_builddir=.
2776
2777case "$ac_dir" in
2778.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2779*)
2780  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2781  # A ".." for each directory in $ac_dir_suffix.
2782  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2783  case $ac_top_builddir_sub in
2784  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2785  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2786  esac ;;
2787esac
2788ac_abs_top_builddir=$ac_pwd
2789ac_abs_builddir=$ac_pwd$ac_dir_suffix
2790# for backward compatibility:
2791ac_top_builddir=$ac_top_build_prefix
2792
2793case $srcdir in
2794  .)  # We are building in place.
2795    ac_srcdir=.
2796    ac_top_srcdir=$ac_top_builddir_sub
2797    ac_abs_top_srcdir=$ac_pwd ;;
2798  [\\/]* | ?:[\\/]* )  # Absolute name.
2799    ac_srcdir=$srcdir$ac_dir_suffix;
2800    ac_top_srcdir=$srcdir
2801    ac_abs_top_srcdir=$srcdir ;;
2802  *) # Relative name.
2803    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2804    ac_top_srcdir=$ac_top_build_prefix$srcdir
2805    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2806esac
2807ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2808
2809    cd "$ac_dir" || { ac_status=$?; continue; }
2810    # Check for guested configure.
2811    if test -f "$ac_srcdir/configure.gnu"; then
2812      echo &&
2813      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2814    elif test -f "$ac_srcdir/configure"; then
2815      echo &&
2816      $SHELL "$ac_srcdir/configure" --help=recursive
2817    else
2818      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2819    fi || ac_status=$?
2820    cd "$ac_pwd" || { ac_status=$?; break; }
2821  done
2822fi
2823
2824test -n "$ac_init_help" && exit $ac_status
2825if $ac_init_version; then
2826  cat <<\_ACEOF
2827collectd configure 5.12.0
2828generated by GNU Autoconf 2.69
2829
2830Copyright (C) 2012 Free Software Foundation, Inc.
2831This configure script is free software; the Free Software Foundation
2832gives unlimited permission to copy, distribute and modify it.
2833_ACEOF
2834  exit
2835fi
2836
2837## ------------------------ ##
2838## Autoconf initialization. ##
2839## ------------------------ ##
2840
2841# ac_fn_c_try_compile LINENO
2842# --------------------------
2843# Try to compile conftest.$ac_ext, and return whether this succeeded.
2844ac_fn_c_try_compile ()
2845{
2846  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2847  rm -f conftest.$ac_objext
2848  if { { ac_try="$ac_compile"
2849case "(($ac_try" in
2850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851  *) ac_try_echo=$ac_try;;
2852esac
2853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2854$as_echo "$ac_try_echo"; } >&5
2855  (eval "$ac_compile") 2>conftest.err
2856  ac_status=$?
2857  if test -s conftest.err; then
2858    grep -v '^ *+' conftest.err >conftest.er1
2859    cat conftest.er1 >&5
2860    mv -f conftest.er1 conftest.err
2861  fi
2862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2863  test $ac_status = 0; } && {
2864	 test -z "$ac_c_werror_flag" ||
2865	 test ! -s conftest.err
2866       } && test -s conftest.$ac_objext; then :
2867  ac_retval=0
2868else
2869  $as_echo "$as_me: failed program was:" >&5
2870sed 's/^/| /' conftest.$ac_ext >&5
2871
2872	ac_retval=1
2873fi
2874  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2875  as_fn_set_status $ac_retval
2876
2877} # ac_fn_c_try_compile
2878
2879# ac_fn_c_try_link LINENO
2880# -----------------------
2881# Try to link conftest.$ac_ext, and return whether this succeeded.
2882ac_fn_c_try_link ()
2883{
2884  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2885  rm -f conftest.$ac_objext conftest$ac_exeext
2886  if { { ac_try="$ac_link"
2887case "(($ac_try" in
2888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889  *) ac_try_echo=$ac_try;;
2890esac
2891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2892$as_echo "$ac_try_echo"; } >&5
2893  (eval "$ac_link") 2>conftest.err
2894  ac_status=$?
2895  if test -s conftest.err; then
2896    grep -v '^ *+' conftest.err >conftest.er1
2897    cat conftest.er1 >&5
2898    mv -f conftest.er1 conftest.err
2899  fi
2900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2901  test $ac_status = 0; } && {
2902	 test -z "$ac_c_werror_flag" ||
2903	 test ! -s conftest.err
2904       } && test -s conftest$ac_exeext && {
2905	 test "$cross_compiling" = yes ||
2906	 test -x conftest$ac_exeext
2907       }; then :
2908  ac_retval=0
2909else
2910  $as_echo "$as_me: failed program was:" >&5
2911sed 's/^/| /' conftest.$ac_ext >&5
2912
2913	ac_retval=1
2914fi
2915  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2916  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2917  # interfere with the next link command; also delete a directory that is
2918  # left behind by Apple's compiler.  We do this before executing the actions.
2919  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2920  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2921  as_fn_set_status $ac_retval
2922
2923} # ac_fn_c_try_link
2924
2925# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2926# -------------------------------------------------------
2927# Tests whether HEADER exists and can be compiled using the include files in
2928# INCLUDES, setting the cache variable VAR accordingly.
2929ac_fn_c_check_header_compile ()
2930{
2931  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2933$as_echo_n "checking for $2... " >&6; }
2934if eval \${$3+:} false; then :
2935  $as_echo_n "(cached) " >&6
2936else
2937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938/* end confdefs.h.  */
2939$4
2940#include <$2>
2941_ACEOF
2942if ac_fn_c_try_compile "$LINENO"; then :
2943  eval "$3=yes"
2944else
2945  eval "$3=no"
2946fi
2947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2948fi
2949eval ac_res=\$$3
2950	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2951$as_echo "$ac_res" >&6; }
2952  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2953
2954} # ac_fn_c_check_header_compile
2955
2956# ac_fn_c_try_cpp LINENO
2957# ----------------------
2958# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2959ac_fn_c_try_cpp ()
2960{
2961  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2962  if { { ac_try="$ac_cpp conftest.$ac_ext"
2963case "(($ac_try" in
2964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965  *) ac_try_echo=$ac_try;;
2966esac
2967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2968$as_echo "$ac_try_echo"; } >&5
2969  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2970  ac_status=$?
2971  if test -s conftest.err; then
2972    grep -v '^ *+' conftest.err >conftest.er1
2973    cat conftest.er1 >&5
2974    mv -f conftest.er1 conftest.err
2975  fi
2976  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2977  test $ac_status = 0; } > conftest.i && {
2978	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2979	 test ! -s conftest.err
2980       }; then :
2981  ac_retval=0
2982else
2983  $as_echo "$as_me: failed program was:" >&5
2984sed 's/^/| /' conftest.$ac_ext >&5
2985
2986    ac_retval=1
2987fi
2988  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2989  as_fn_set_status $ac_retval
2990
2991} # ac_fn_c_try_cpp
2992
2993# ac_fn_c_try_run LINENO
2994# ----------------------
2995# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2996# that executables *can* be run.
2997ac_fn_c_try_run ()
2998{
2999  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3000  if { { ac_try="$ac_link"
3001case "(($ac_try" in
3002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003  *) ac_try_echo=$ac_try;;
3004esac
3005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006$as_echo "$ac_try_echo"; } >&5
3007  (eval "$ac_link") 2>&5
3008  ac_status=$?
3009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3010  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
3011  { { case "(($ac_try" in
3012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013  *) ac_try_echo=$ac_try;;
3014esac
3015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3016$as_echo "$ac_try_echo"; } >&5
3017  (eval "$ac_try") 2>&5
3018  ac_status=$?
3019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3020  test $ac_status = 0; }; }; then :
3021  ac_retval=0
3022else
3023  $as_echo "$as_me: program exited with status $ac_status" >&5
3024       $as_echo "$as_me: failed program was:" >&5
3025sed 's/^/| /' conftest.$ac_ext >&5
3026
3027       ac_retval=$ac_status
3028fi
3029  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3030  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3031  as_fn_set_status $ac_retval
3032
3033} # ac_fn_c_try_run
3034
3035# ac_fn_c_check_func LINENO FUNC VAR
3036# ----------------------------------
3037# Tests whether FUNC exists, setting the cache variable VAR accordingly
3038ac_fn_c_check_func ()
3039{
3040  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3042$as_echo_n "checking for $2... " >&6; }
3043if eval \${$3+:} false; then :
3044  $as_echo_n "(cached) " >&6
3045else
3046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047/* end confdefs.h.  */
3048/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3049   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3050#define $2 innocuous_$2
3051
3052/* System header to define __stub macros and hopefully few prototypes,
3053    which can conflict with char $2 (); below.
3054    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3055    <limits.h> exists even on freestanding compilers.  */
3056
3057#ifdef __STDC__
3058# include <limits.h>
3059#else
3060# include <assert.h>
3061#endif
3062
3063#undef $2
3064
3065/* Override any GCC internal prototype to avoid an error.
3066   Use char because int might match the return type of a GCC
3067   builtin and then its argument prototype would still apply.  */
3068#ifdef __cplusplus
3069extern "C"
3070#endif
3071char $2 ();
3072/* The GNU C library defines this for functions which it implements
3073    to always fail with ENOSYS.  Some functions are actually named
3074    something starting with __ and the normal name is an alias.  */
3075#if defined __stub_$2 || defined __stub___$2
3076choke me
3077#endif
3078
3079int
3080main ()
3081{
3082return $2 ();
3083  ;
3084  return 0;
3085}
3086_ACEOF
3087if ac_fn_c_try_link "$LINENO"; then :
3088  eval "$3=yes"
3089else
3090  eval "$3=no"
3091fi
3092rm -f core conftest.err conftest.$ac_objext \
3093    conftest$ac_exeext conftest.$ac_ext
3094fi
3095eval ac_res=\$$3
3096	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3097$as_echo "$ac_res" >&6; }
3098  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3099
3100} # ac_fn_c_check_func
3101
3102# ac_fn_cxx_try_compile LINENO
3103# ----------------------------
3104# Try to compile conftest.$ac_ext, and return whether this succeeded.
3105ac_fn_cxx_try_compile ()
3106{
3107  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3108  rm -f conftest.$ac_objext
3109  if { { ac_try="$ac_compile"
3110case "(($ac_try" in
3111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112  *) ac_try_echo=$ac_try;;
3113esac
3114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3115$as_echo "$ac_try_echo"; } >&5
3116  (eval "$ac_compile") 2>conftest.err
3117  ac_status=$?
3118  if test -s conftest.err; then
3119    grep -v '^ *+' conftest.err >conftest.er1
3120    cat conftest.er1 >&5
3121    mv -f conftest.er1 conftest.err
3122  fi
3123  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3124  test $ac_status = 0; } && {
3125	 test -z "$ac_cxx_werror_flag" ||
3126	 test ! -s conftest.err
3127       } && test -s conftest.$ac_objext; then :
3128  ac_retval=0
3129else
3130  $as_echo "$as_me: failed program was:" >&5
3131sed 's/^/| /' conftest.$ac_ext >&5
3132
3133	ac_retval=1
3134fi
3135  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3136  as_fn_set_status $ac_retval
3137
3138} # ac_fn_cxx_try_compile
3139
3140# ac_fn_cxx_try_cpp LINENO
3141# ------------------------
3142# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3143ac_fn_cxx_try_cpp ()
3144{
3145  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3146  if { { ac_try="$ac_cpp conftest.$ac_ext"
3147case "(($ac_try" in
3148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149  *) ac_try_echo=$ac_try;;
3150esac
3151eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152$as_echo "$ac_try_echo"; } >&5
3153  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3154  ac_status=$?
3155  if test -s conftest.err; then
3156    grep -v '^ *+' conftest.err >conftest.er1
3157    cat conftest.er1 >&5
3158    mv -f conftest.er1 conftest.err
3159  fi
3160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161  test $ac_status = 0; } > conftest.i && {
3162	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3163	 test ! -s conftest.err
3164       }; then :
3165  ac_retval=0
3166else
3167  $as_echo "$as_me: failed program was:" >&5
3168sed 's/^/| /' conftest.$ac_ext >&5
3169
3170    ac_retval=1
3171fi
3172  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3173  as_fn_set_status $ac_retval
3174
3175} # ac_fn_cxx_try_cpp
3176
3177# ac_fn_cxx_try_link LINENO
3178# -------------------------
3179# Try to link conftest.$ac_ext, and return whether this succeeded.
3180ac_fn_cxx_try_link ()
3181{
3182  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3183  rm -f conftest.$ac_objext conftest$ac_exeext
3184  if { { ac_try="$ac_link"
3185case "(($ac_try" in
3186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187  *) ac_try_echo=$ac_try;;
3188esac
3189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190$as_echo "$ac_try_echo"; } >&5
3191  (eval "$ac_link") 2>conftest.err
3192  ac_status=$?
3193  if test -s conftest.err; then
3194    grep -v '^ *+' conftest.err >conftest.er1
3195    cat conftest.er1 >&5
3196    mv -f conftest.er1 conftest.err
3197  fi
3198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199  test $ac_status = 0; } && {
3200	 test -z "$ac_cxx_werror_flag" ||
3201	 test ! -s conftest.err
3202       } && test -s conftest$ac_exeext && {
3203	 test "$cross_compiling" = yes ||
3204	 test -x conftest$ac_exeext
3205       }; then :
3206  ac_retval=0
3207else
3208  $as_echo "$as_me: failed program was:" >&5
3209sed 's/^/| /' conftest.$ac_ext >&5
3210
3211	ac_retval=1
3212fi
3213  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3214  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3215  # interfere with the next link command; also delete a directory that is
3216  # left behind by Apple's compiler.  We do this before executing the actions.
3217  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3218  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3219  as_fn_set_status $ac_retval
3220
3221} # ac_fn_cxx_try_link
3222
3223# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
3224# -------------------------------------------------------
3225# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3226# the include files in INCLUDES and setting the cache variable VAR
3227# accordingly.
3228ac_fn_c_check_header_mongrel ()
3229{
3230  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3231  if eval \${$3+:} false; then :
3232  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3233$as_echo_n "checking for $2... " >&6; }
3234if eval \${$3+:} false; then :
3235  $as_echo_n "(cached) " >&6
3236fi
3237eval ac_res=\$$3
3238	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3239$as_echo "$ac_res" >&6; }
3240else
3241  # Is the header compilable?
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3243$as_echo_n "checking $2 usability... " >&6; }
3244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245/* end confdefs.h.  */
3246$4
3247#include <$2>
3248_ACEOF
3249if ac_fn_c_try_compile "$LINENO"; then :
3250  ac_header_compiler=yes
3251else
3252  ac_header_compiler=no
3253fi
3254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3256$as_echo "$ac_header_compiler" >&6; }
3257
3258# Is the header present?
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3260$as_echo_n "checking $2 presence... " >&6; }
3261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262/* end confdefs.h.  */
3263#include <$2>
3264_ACEOF
3265if ac_fn_c_try_cpp "$LINENO"; then :
3266  ac_header_preproc=yes
3267else
3268  ac_header_preproc=no
3269fi
3270rm -f conftest.err conftest.i conftest.$ac_ext
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3272$as_echo "$ac_header_preproc" >&6; }
3273
3274# So?  What about this header?
3275case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
3276  yes:no: )
3277    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3278$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3279    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3280$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3281    ;;
3282  no:yes:* )
3283    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3284$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3285    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3286$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3287    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3288$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3289    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3290$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3291    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3292$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3293    ;;
3294esac
3295  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3296$as_echo_n "checking for $2... " >&6; }
3297if eval \${$3+:} false; then :
3298  $as_echo_n "(cached) " >&6
3299else
3300  eval "$3=\$ac_header_compiler"
3301fi
3302eval ac_res=\$$3
3303	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3304$as_echo "$ac_res" >&6; }
3305fi
3306  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3307
3308} # ac_fn_c_check_header_mongrel
3309
3310# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3311# ---------------------------------------------
3312# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3313# accordingly.
3314ac_fn_c_check_decl ()
3315{
3316  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3317  as_decl_name=`echo $2|sed 's/ *(.*//'`
3318  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3320$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3321if eval \${$3+:} false; then :
3322  $as_echo_n "(cached) " >&6
3323else
3324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325/* end confdefs.h.  */
3326$4
3327int
3328main ()
3329{
3330#ifndef $as_decl_name
3331#ifdef __cplusplus
3332  (void) $as_decl_use;
3333#else
3334  (void) $as_decl_name;
3335#endif
3336#endif
3337
3338  ;
3339  return 0;
3340}
3341_ACEOF
3342if ac_fn_c_try_compile "$LINENO"; then :
3343  eval "$3=yes"
3344else
3345  eval "$3=no"
3346fi
3347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348fi
3349eval ac_res=\$$3
3350	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3351$as_echo "$ac_res" >&6; }
3352  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3353
3354} # ac_fn_c_check_decl
3355
3356# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3357# -------------------------------------------
3358# Tests whether TYPE exists after having included INCLUDES, setting cache
3359# variable VAR accordingly.
3360ac_fn_c_check_type ()
3361{
3362  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3364$as_echo_n "checking for $2... " >&6; }
3365if eval \${$3+:} false; then :
3366  $as_echo_n "(cached) " >&6
3367else
3368  eval "$3=no"
3369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370/* end confdefs.h.  */
3371$4
3372int
3373main ()
3374{
3375if (sizeof ($2))
3376	 return 0;
3377  ;
3378  return 0;
3379}
3380_ACEOF
3381if ac_fn_c_try_compile "$LINENO"; then :
3382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383/* end confdefs.h.  */
3384$4
3385int
3386main ()
3387{
3388if (sizeof (($2)))
3389	    return 0;
3390  ;
3391  return 0;
3392}
3393_ACEOF
3394if ac_fn_c_try_compile "$LINENO"; then :
3395
3396else
3397  eval "$3=yes"
3398fi
3399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400fi
3401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402fi
3403eval ac_res=\$$3
3404	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3405$as_echo "$ac_res" >&6; }
3406  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3407
3408} # ac_fn_c_check_type
3409
3410# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3411# ----------------------------------------------------
3412# Tries to find if the field MEMBER exists in type AGGR, after including
3413# INCLUDES, setting cache variable VAR accordingly.
3414ac_fn_c_check_member ()
3415{
3416  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3417  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3418$as_echo_n "checking for $2.$3... " >&6; }
3419if eval \${$4+:} false; then :
3420  $as_echo_n "(cached) " >&6
3421else
3422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423/* end confdefs.h.  */
3424$5
3425int
3426main ()
3427{
3428static $2 ac_aggr;
3429if (ac_aggr.$3)
3430return 0;
3431  ;
3432  return 0;
3433}
3434_ACEOF
3435if ac_fn_c_try_compile "$LINENO"; then :
3436  eval "$4=yes"
3437else
3438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439/* end confdefs.h.  */
3440$5
3441int
3442main ()
3443{
3444static $2 ac_aggr;
3445if (sizeof ac_aggr.$3)
3446return 0;
3447  ;
3448  return 0;
3449}
3450_ACEOF
3451if ac_fn_c_try_compile "$LINENO"; then :
3452  eval "$4=yes"
3453else
3454  eval "$4=no"
3455fi
3456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457fi
3458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459fi
3460eval ac_res=\$$4
3461	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3462$as_echo "$ac_res" >&6; }
3463  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3464
3465} # ac_fn_c_check_member
3466
3467# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3468# ---------------------------------------------------------
3469# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3470# the include files in INCLUDES and setting the cache variable VAR
3471# accordingly.
3472ac_fn_cxx_check_header_mongrel ()
3473{
3474  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3475  if eval \${$3+:} false; then :
3476  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3477$as_echo_n "checking for $2... " >&6; }
3478if eval \${$3+:} false; then :
3479  $as_echo_n "(cached) " >&6
3480fi
3481eval ac_res=\$$3
3482	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3483$as_echo "$ac_res" >&6; }
3484else
3485  # Is the header compilable?
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3487$as_echo_n "checking $2 usability... " >&6; }
3488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489/* end confdefs.h.  */
3490$4
3491#include <$2>
3492_ACEOF
3493if ac_fn_cxx_try_compile "$LINENO"; then :
3494  ac_header_compiler=yes
3495else
3496  ac_header_compiler=no
3497fi
3498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3500$as_echo "$ac_header_compiler" >&6; }
3501
3502# Is the header present?
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3504$as_echo_n "checking $2 presence... " >&6; }
3505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506/* end confdefs.h.  */
3507#include <$2>
3508_ACEOF
3509if ac_fn_cxx_try_cpp "$LINENO"; then :
3510  ac_header_preproc=yes
3511else
3512  ac_header_preproc=no
3513fi
3514rm -f conftest.err conftest.i conftest.$ac_ext
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3516$as_echo "$ac_header_preproc" >&6; }
3517
3518# So?  What about this header?
3519case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3520  yes:no: )
3521    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3522$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3523    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3524$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3525    ;;
3526  no:yes:* )
3527    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3528$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3529    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3530$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3531    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3532$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3533    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3534$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3535    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3536$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3537    ;;
3538esac
3539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3540$as_echo_n "checking for $2... " >&6; }
3541if eval \${$3+:} false; then :
3542  $as_echo_n "(cached) " >&6
3543else
3544  eval "$3=\$ac_header_compiler"
3545fi
3546eval ac_res=\$$3
3547	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3548$as_echo "$ac_res" >&6; }
3549fi
3550  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3551
3552} # ac_fn_cxx_check_header_mongrel
3553cat >config.log <<_ACEOF
3554This file contains any messages produced by compilers while
3555running configure, to aid debugging if configure makes a mistake.
3556
3557It was created by collectd $as_me 5.12.0, which was
3558generated by GNU Autoconf 2.69.  Invocation command line was
3559
3560  $ $0 $@
3561
3562_ACEOF
3563exec 5>>config.log
3564{
3565cat <<_ASUNAME
3566## --------- ##
3567## Platform. ##
3568## --------- ##
3569
3570hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3571uname -m = `(uname -m) 2>/dev/null || echo unknown`
3572uname -r = `(uname -r) 2>/dev/null || echo unknown`
3573uname -s = `(uname -s) 2>/dev/null || echo unknown`
3574uname -v = `(uname -v) 2>/dev/null || echo unknown`
3575
3576/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3577/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3578
3579/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3580/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3581/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3582/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3583/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3584/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3585/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3586
3587_ASUNAME
3588
3589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590for as_dir in $PATH
3591do
3592  IFS=$as_save_IFS
3593  test -z "$as_dir" && as_dir=.
3594    $as_echo "PATH: $as_dir"
3595  done
3596IFS=$as_save_IFS
3597
3598} >&5
3599
3600cat >&5 <<_ACEOF
3601
3602
3603## ----------- ##
3604## Core tests. ##
3605## ----------- ##
3606
3607_ACEOF
3608
3609
3610# Keep a trace of the command line.
3611# Strip out --no-create and --no-recursion so they do not pile up.
3612# Strip out --silent because we don't want to record it for future runs.
3613# Also quote any args containing shell meta-characters.
3614# Make two passes to allow for proper duplicate-argument suppression.
3615ac_configure_args=
3616ac_configure_args0=
3617ac_configure_args1=
3618ac_must_keep_next=false
3619for ac_pass in 1 2
3620do
3621  for ac_arg
3622  do
3623    case $ac_arg in
3624    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3625    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3626    | -silent | --silent | --silen | --sile | --sil)
3627      continue ;;
3628    *\'*)
3629      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3630    esac
3631    case $ac_pass in
3632    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3633    2)
3634      as_fn_append ac_configure_args1 " '$ac_arg'"
3635      if test $ac_must_keep_next = true; then
3636	ac_must_keep_next=false # Got value, back to normal.
3637      else
3638	case $ac_arg in
3639	  *=* | --config-cache | -C | -disable-* | --disable-* \
3640	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3641	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3642	  | -with-* | --with-* | -without-* | --without-* | --x)
3643	    case "$ac_configure_args0 " in
3644	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3645	    esac
3646	    ;;
3647	  -* ) ac_must_keep_next=true ;;
3648	esac
3649      fi
3650      as_fn_append ac_configure_args " '$ac_arg'"
3651      ;;
3652    esac
3653  done
3654done
3655{ ac_configure_args0=; unset ac_configure_args0;}
3656{ ac_configure_args1=; unset ac_configure_args1;}
3657
3658# When interrupted or exit'd, cleanup temporary files, and complete
3659# config.log.  We remove comments because anyway the quotes in there
3660# would cause problems or look ugly.
3661# WARNING: Use '\'' to represent an apostrophe within the trap.
3662# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3663trap 'exit_status=$?
3664  # Save into config.log some information that might help in debugging.
3665  {
3666    echo
3667
3668    $as_echo "## ---------------- ##
3669## Cache variables. ##
3670## ---------------- ##"
3671    echo
3672    # The following way of writing the cache mishandles newlines in values,
3673(
3674  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3675    eval ac_val=\$$ac_var
3676    case $ac_val in #(
3677    *${as_nl}*)
3678      case $ac_var in #(
3679      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3680$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3681      esac
3682      case $ac_var in #(
3683      _ | IFS | as_nl) ;; #(
3684      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3685      *) { eval $ac_var=; unset $ac_var;} ;;
3686      esac ;;
3687    esac
3688  done
3689  (set) 2>&1 |
3690    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3691    *${as_nl}ac_space=\ *)
3692      sed -n \
3693	"s/'\''/'\''\\\\'\'''\''/g;
3694	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3695      ;; #(
3696    *)
3697      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3698      ;;
3699    esac |
3700    sort
3701)
3702    echo
3703
3704    $as_echo "## ----------------- ##
3705## Output variables. ##
3706## ----------------- ##"
3707    echo
3708    for ac_var in $ac_subst_vars
3709    do
3710      eval ac_val=\$$ac_var
3711      case $ac_val in
3712      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3713      esac
3714      $as_echo "$ac_var='\''$ac_val'\''"
3715    done | sort
3716    echo
3717
3718    if test -n "$ac_subst_files"; then
3719      $as_echo "## ------------------- ##
3720## File substitutions. ##
3721## ------------------- ##"
3722      echo
3723      for ac_var in $ac_subst_files
3724      do
3725	eval ac_val=\$$ac_var
3726	case $ac_val in
3727	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3728	esac
3729	$as_echo "$ac_var='\''$ac_val'\''"
3730      done | sort
3731      echo
3732    fi
3733
3734    if test -s confdefs.h; then
3735      $as_echo "## ----------- ##
3736## confdefs.h. ##
3737## ----------- ##"
3738      echo
3739      cat confdefs.h
3740      echo
3741    fi
3742    test "$ac_signal" != 0 &&
3743      $as_echo "$as_me: caught signal $ac_signal"
3744    $as_echo "$as_me: exit $exit_status"
3745  } >&5
3746  rm -f core *.core core.conftest.* &&
3747    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3748    exit $exit_status
3749' 0
3750for ac_signal in 1 2 13 15; do
3751  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3752done
3753ac_signal=0
3754
3755# confdefs.h avoids OS command line length limits that DEFS can exceed.
3756rm -f -r conftest* confdefs.h
3757
3758$as_echo "/* confdefs.h */" > confdefs.h
3759
3760# Predefined preprocessor variables.
3761
3762cat >>confdefs.h <<_ACEOF
3763#define PACKAGE_NAME "$PACKAGE_NAME"
3764_ACEOF
3765
3766cat >>confdefs.h <<_ACEOF
3767#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3768_ACEOF
3769
3770cat >>confdefs.h <<_ACEOF
3771#define PACKAGE_VERSION "$PACKAGE_VERSION"
3772_ACEOF
3773
3774cat >>confdefs.h <<_ACEOF
3775#define PACKAGE_STRING "$PACKAGE_STRING"
3776_ACEOF
3777
3778cat >>confdefs.h <<_ACEOF
3779#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3780_ACEOF
3781
3782cat >>confdefs.h <<_ACEOF
3783#define PACKAGE_URL "$PACKAGE_URL"
3784_ACEOF
3785
3786
3787# Let the site file select an alternate cache file if it wants to.
3788# Prefer an explicitly selected file to automatically selected ones.
3789ac_site_file1=NONE
3790ac_site_file2=NONE
3791if test -n "$CONFIG_SITE"; then
3792  # We do not want a PATH search for config.site.
3793  case $CONFIG_SITE in #((
3794    -*)  ac_site_file1=./$CONFIG_SITE;;
3795    */*) ac_site_file1=$CONFIG_SITE;;
3796    *)   ac_site_file1=./$CONFIG_SITE;;
3797  esac
3798elif test "x$prefix" != xNONE; then
3799  ac_site_file1=$prefix/share/config.site
3800  ac_site_file2=$prefix/etc/config.site
3801else
3802  ac_site_file1=$ac_default_prefix/share/config.site
3803  ac_site_file2=$ac_default_prefix/etc/config.site
3804fi
3805for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3806do
3807  test "x$ac_site_file" = xNONE && continue
3808  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3809    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3810$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3811    sed 's/^/| /' "$ac_site_file" >&5
3812    . "$ac_site_file" \
3813      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3815as_fn_error $? "failed to load site script $ac_site_file
3816See \`config.log' for more details" "$LINENO" 5; }
3817  fi
3818done
3819
3820if test -r "$cache_file"; then
3821  # Some versions of bash will fail to source /dev/null (special files
3822  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3823  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3824    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3825$as_echo "$as_me: loading cache $cache_file" >&6;}
3826    case $cache_file in
3827      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3828      *)                      . "./$cache_file";;
3829    esac
3830  fi
3831else
3832  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3833$as_echo "$as_me: creating cache $cache_file" >&6;}
3834  >$cache_file
3835fi
3836
3837as_fn_append ac_header_list " arpa/inet.h"
3838as_fn_append ac_header_list " endian.h"
3839as_fn_append ac_header_list " fcntl.h"
3840as_fn_append ac_header_list " fnmatch.h"
3841as_fn_append ac_header_list " fs_info.h"
3842as_fn_append ac_header_list " fshelp.h"
3843as_fn_append ac_header_list " grp.h"
3844as_fn_append ac_header_list " kstat.h"
3845as_fn_append ac_header_list " kvm.h"
3846as_fn_append ac_header_list " libgen.h"
3847as_fn_append ac_header_list " locale.h"
3848as_fn_append ac_header_list " mntent.h"
3849as_fn_append ac_header_list " mnttab.h"
3850as_fn_append ac_header_list " netdb.h"
3851as_fn_append ac_header_list " paths.h"
3852as_fn_append ac_header_list " poll.h"
3853as_fn_append ac_header_list " pthread_np.h"
3854as_fn_append ac_header_list " pwd.h"
3855as_fn_append ac_header_list " regex.h"
3856as_fn_append ac_header_list " sys/endian.h"
3857as_fn_append ac_header_list " sys/fs_types.h"
3858as_fn_append ac_header_list " sys/fstyp.h"
3859as_fn_append ac_header_list " sys/ioctl.h"
3860as_fn_append ac_header_list " sys/isa_defs.h"
3861as_fn_append ac_header_list " sys/mntent.h"
3862as_fn_append ac_header_list " sys/mnttab.h"
3863as_fn_append ac_header_list " sys/param.h"
3864as_fn_append ac_header_list " sys/resource.h"
3865as_fn_append ac_header_list " sys/select.h"
3866as_fn_append ac_header_list " sys/socket.h"
3867as_fn_append ac_header_list " sys/statfs.h"
3868as_fn_append ac_header_list " sys/statvfs.h"
3869as_fn_append ac_header_list " sys/types.h"
3870as_fn_append ac_header_list " sys/un.h"
3871as_fn_append ac_header_list " sys/vfs.h"
3872as_fn_append ac_header_list " sys/vfstab.h"
3873as_fn_append ac_header_list " sys/vmmeter.h"
3874as_fn_append ac_header_list " syslog.h"
3875as_fn_append ac_header_list " wordexp.h"
3876as_fn_append ac_header_list " linux/ip_vs.h"
3877as_fn_append ac_func_list " asprintf"
3878as_fn_append ac_func_list " execvpe"
3879as_fn_append ac_func_list " getpwnam"
3880as_fn_append ac_func_list " getpwnam_r"
3881as_fn_append ac_func_list " if_indextoname"
3882as_fn_append ac_func_list " setgroups"
3883as_fn_append ac_func_list " setlocale"
3884# Check that the precious variables saved in the cache have kept the same
3885# value.
3886ac_cache_corrupted=false
3887for ac_var in $ac_precious_vars; do
3888  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3889  eval ac_new_set=\$ac_env_${ac_var}_set
3890  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3891  eval ac_new_val=\$ac_env_${ac_var}_value
3892  case $ac_old_set,$ac_new_set in
3893    set,)
3894      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3895$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3896      ac_cache_corrupted=: ;;
3897    ,set)
3898      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3899$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3900      ac_cache_corrupted=: ;;
3901    ,);;
3902    *)
3903      if test "x$ac_old_val" != "x$ac_new_val"; then
3904	# differences in whitespace do not lead to failure.
3905	ac_old_val_w=`echo x $ac_old_val`
3906	ac_new_val_w=`echo x $ac_new_val`
3907	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3908	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3909$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3910	  ac_cache_corrupted=:
3911	else
3912	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3913$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3914	  eval $ac_var=\$ac_old_val
3915	fi
3916	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3917$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3918	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3919$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3920      fi;;
3921  esac
3922  # Pass precious variables to config.status.
3923  if test "$ac_new_set" = set; then
3924    case $ac_new_val in
3925    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3926    *) ac_arg=$ac_var=$ac_new_val ;;
3927    esac
3928    case " $ac_configure_args " in
3929      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3930      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3931    esac
3932  fi
3933done
3934if $ac_cache_corrupted; then
3935  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3937  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3938$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3939  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3940fi
3941## -------------------- ##
3942## Main body of script. ##
3943## -------------------- ##
3944
3945ac_ext=c
3946ac_cpp='$CPP $CPPFLAGS'
3947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950
3951
3952
3953ac_config_headers="$ac_config_headers src/config.h"
3954
3955ac_aux_dir=
3956for ac_dir in build-aux "$srcdir"/build-aux; do
3957  if test -f "$ac_dir/install-sh"; then
3958    ac_aux_dir=$ac_dir
3959    ac_install_sh="$ac_aux_dir/install-sh -c"
3960    break
3961  elif test -f "$ac_dir/install.sh"; then
3962    ac_aux_dir=$ac_dir
3963    ac_install_sh="$ac_aux_dir/install.sh -c"
3964    break
3965  elif test -f "$ac_dir/shtool"; then
3966    ac_aux_dir=$ac_dir
3967    ac_install_sh="$ac_aux_dir/shtool install -c"
3968    break
3969  fi
3970done
3971if test -z "$ac_aux_dir"; then
3972  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3973fi
3974
3975# These three variables are undocumented and unsupported,
3976# and are intended to be withdrawn in a future Autoconf release.
3977# They can cause serious problems if a builder's source tree is in a directory
3978# whose full name contains unusual characters.
3979ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3980ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3981ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3982
3983
3984
3985
3986
3987
3988case `pwd` in
3989  *\ * | *\	*)
3990    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3991$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3992esac
3993
3994
3995
3996macro_version='2.4.6'
3997macro_revision='2.4.6'
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011ltmain=$ac_aux_dir/ltmain.sh
4012
4013# Make sure we can run config.sub.
4014$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4015  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4016
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4018$as_echo_n "checking build system type... " >&6; }
4019if ${ac_cv_build+:} false; then :
4020  $as_echo_n "(cached) " >&6
4021else
4022  ac_build_alias=$build_alias
4023test "x$ac_build_alias" = x &&
4024  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4025test "x$ac_build_alias" = x &&
4026  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4027ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4028  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4029
4030fi
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4032$as_echo "$ac_cv_build" >&6; }
4033case $ac_cv_build in
4034*-*-*) ;;
4035*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4036esac
4037build=$ac_cv_build
4038ac_save_IFS=$IFS; IFS='-'
4039set x $ac_cv_build
4040shift
4041build_cpu=$1
4042build_vendor=$2
4043shift; shift
4044# Remember, the first character of IFS is used to create $*,
4045# except with old shells:
4046build_os=$*
4047IFS=$ac_save_IFS
4048case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4049
4050
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4052$as_echo_n "checking host system type... " >&6; }
4053if ${ac_cv_host+:} false; then :
4054  $as_echo_n "(cached) " >&6
4055else
4056  if test "x$host_alias" = x; then
4057  ac_cv_host=$ac_cv_build
4058else
4059  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4060    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4061fi
4062
4063fi
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4065$as_echo "$ac_cv_host" >&6; }
4066case $ac_cv_host in
4067*-*-*) ;;
4068*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4069esac
4070host=$ac_cv_host
4071ac_save_IFS=$IFS; IFS='-'
4072set x $ac_cv_host
4073shift
4074host_cpu=$1
4075host_vendor=$2
4076shift; shift
4077# Remember, the first character of IFS is used to create $*,
4078# except with old shells:
4079host_os=$*
4080IFS=$ac_save_IFS
4081case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4082
4083
4084# Backslashify metacharacters that are still active within
4085# double-quoted strings.
4086sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4087
4088# Same as above, but do not quote variable references.
4089double_quote_subst='s/\(["`\\]\)/\\\1/g'
4090
4091# Sed substitution to delay expansion of an escaped shell variable in a
4092# double_quote_subst'ed string.
4093delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4094
4095# Sed substitution to delay expansion of an escaped single quote.
4096delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4097
4098# Sed substitution to avoid accidental globbing in evaled expressions
4099no_glob_subst='s/\*/\\\*/g'
4100
4101ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4102ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4103ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4104
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4106$as_echo_n "checking how to print strings... " >&6; }
4107# Test print first, because it will be a builtin if present.
4108if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4109   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4110  ECHO='print -r --'
4111elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4112  ECHO='printf %s\n'
4113else
4114  # Use this function as a fallback that always works.
4115  func_fallback_echo ()
4116  {
4117    eval 'cat <<_LTECHO_EOF
4118$1
4119_LTECHO_EOF'
4120  }
4121  ECHO='func_fallback_echo'
4122fi
4123
4124# func_echo_all arg...
4125# Invoke $ECHO with all args, space-separated.
4126func_echo_all ()
4127{
4128    $ECHO ""
4129}
4130
4131case $ECHO in
4132  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4133$as_echo "printf" >&6; } ;;
4134  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4135$as_echo "print -r" >&6; } ;;
4136  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4137$as_echo "cat" >&6; } ;;
4138esac
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153# Expand $ac_aux_dir to an absolute path.
4154am_aux_dir=`cd "$ac_aux_dir" && pwd`
4155
4156ac_ext=c
4157ac_cpp='$CPP $CPPFLAGS'
4158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161if test -n "$ac_tool_prefix"; then
4162  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4163set dummy ${ac_tool_prefix}gcc; ac_word=$2
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165$as_echo_n "checking for $ac_word... " >&6; }
4166if ${ac_cv_prog_CC+:} false; then :
4167  $as_echo_n "(cached) " >&6
4168else
4169  if test -n "$CC"; then
4170  ac_cv_prog_CC="$CC" # Let the user override the test.
4171else
4172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173for as_dir in $PATH
4174do
4175  IFS=$as_save_IFS
4176  test -z "$as_dir" && as_dir=.
4177    for ac_exec_ext in '' $ac_executable_extensions; do
4178  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4181    break 2
4182  fi
4183done
4184  done
4185IFS=$as_save_IFS
4186
4187fi
4188fi
4189CC=$ac_cv_prog_CC
4190if test -n "$CC"; then
4191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4192$as_echo "$CC" >&6; }
4193else
4194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195$as_echo "no" >&6; }
4196fi
4197
4198
4199fi
4200if test -z "$ac_cv_prog_CC"; then
4201  ac_ct_CC=$CC
4202  # Extract the first word of "gcc", so it can be a program name with args.
4203set dummy gcc; ac_word=$2
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205$as_echo_n "checking for $ac_word... " >&6; }
4206if ${ac_cv_prog_ac_ct_CC+:} false; then :
4207  $as_echo_n "(cached) " >&6
4208else
4209  if test -n "$ac_ct_CC"; then
4210  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4211else
4212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH
4214do
4215  IFS=$as_save_IFS
4216  test -z "$as_dir" && as_dir=.
4217    for ac_exec_ext in '' $ac_executable_extensions; do
4218  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4219    ac_cv_prog_ac_ct_CC="gcc"
4220    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4221    break 2
4222  fi
4223done
4224  done
4225IFS=$as_save_IFS
4226
4227fi
4228fi
4229ac_ct_CC=$ac_cv_prog_ac_ct_CC
4230if test -n "$ac_ct_CC"; then
4231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4232$as_echo "$ac_ct_CC" >&6; }
4233else
4234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235$as_echo "no" >&6; }
4236fi
4237
4238  if test "x$ac_ct_CC" = x; then
4239    CC=""
4240  else
4241    case $cross_compiling:$ac_tool_warned in
4242yes:)
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4245ac_tool_warned=yes ;;
4246esac
4247    CC=$ac_ct_CC
4248  fi
4249else
4250  CC="$ac_cv_prog_CC"
4251fi
4252
4253if test -z "$CC"; then
4254          if test -n "$ac_tool_prefix"; then
4255    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4256set dummy ${ac_tool_prefix}cc; ac_word=$2
4257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258$as_echo_n "checking for $ac_word... " >&6; }
4259if ${ac_cv_prog_CC+:} false; then :
4260  $as_echo_n "(cached) " >&6
4261else
4262  if test -n "$CC"; then
4263  ac_cv_prog_CC="$CC" # Let the user override the test.
4264else
4265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266for as_dir in $PATH
4267do
4268  IFS=$as_save_IFS
4269  test -z "$as_dir" && as_dir=.
4270    for ac_exec_ext in '' $ac_executable_extensions; do
4271  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4272    ac_cv_prog_CC="${ac_tool_prefix}cc"
4273    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274    break 2
4275  fi
4276done
4277  done
4278IFS=$as_save_IFS
4279
4280fi
4281fi
4282CC=$ac_cv_prog_CC
4283if test -n "$CC"; then
4284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4285$as_echo "$CC" >&6; }
4286else
4287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288$as_echo "no" >&6; }
4289fi
4290
4291
4292  fi
4293fi
4294if test -z "$CC"; then
4295  # Extract the first word of "cc", so it can be a program name with args.
4296set dummy cc; ac_word=$2
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298$as_echo_n "checking for $ac_word... " >&6; }
4299if ${ac_cv_prog_CC+:} false; then :
4300  $as_echo_n "(cached) " >&6
4301else
4302  if test -n "$CC"; then
4303  ac_cv_prog_CC="$CC" # Let the user override the test.
4304else
4305  ac_prog_rejected=no
4306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307for as_dir in $PATH
4308do
4309  IFS=$as_save_IFS
4310  test -z "$as_dir" && as_dir=.
4311    for ac_exec_ext in '' $ac_executable_extensions; do
4312  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4313    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4314       ac_prog_rejected=yes
4315       continue
4316     fi
4317    ac_cv_prog_CC="cc"
4318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4319    break 2
4320  fi
4321done
4322  done
4323IFS=$as_save_IFS
4324
4325if test $ac_prog_rejected = yes; then
4326  # We found a bogon in the path, so make sure we never use it.
4327  set dummy $ac_cv_prog_CC
4328  shift
4329  if test $# != 0; then
4330    # We chose a different compiler from the bogus one.
4331    # However, it has the same basename, so the bogon will be chosen
4332    # first if we set CC to just the basename; use the full file name.
4333    shift
4334    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4335  fi
4336fi
4337fi
4338fi
4339CC=$ac_cv_prog_CC
4340if test -n "$CC"; then
4341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4342$as_echo "$CC" >&6; }
4343else
4344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345$as_echo "no" >&6; }
4346fi
4347
4348
4349fi
4350if test -z "$CC"; then
4351  if test -n "$ac_tool_prefix"; then
4352  for ac_prog in cl.exe
4353  do
4354    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4355set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357$as_echo_n "checking for $ac_word... " >&6; }
4358if ${ac_cv_prog_CC+:} false; then :
4359  $as_echo_n "(cached) " >&6
4360else
4361  if test -n "$CC"; then
4362  ac_cv_prog_CC="$CC" # Let the user override the test.
4363else
4364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365for as_dir in $PATH
4366do
4367  IFS=$as_save_IFS
4368  test -z "$as_dir" && as_dir=.
4369    for ac_exec_ext in '' $ac_executable_extensions; do
4370  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373    break 2
4374  fi
4375done
4376  done
4377IFS=$as_save_IFS
4378
4379fi
4380fi
4381CC=$ac_cv_prog_CC
4382if test -n "$CC"; then
4383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4384$as_echo "$CC" >&6; }
4385else
4386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387$as_echo "no" >&6; }
4388fi
4389
4390
4391    test -n "$CC" && break
4392  done
4393fi
4394if test -z "$CC"; then
4395  ac_ct_CC=$CC
4396  for ac_prog in cl.exe
4397do
4398  # Extract the first word of "$ac_prog", so it can be a program name with args.
4399set dummy $ac_prog; ac_word=$2
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401$as_echo_n "checking for $ac_word... " >&6; }
4402if ${ac_cv_prog_ac_ct_CC+:} false; then :
4403  $as_echo_n "(cached) " >&6
4404else
4405  if test -n "$ac_ct_CC"; then
4406  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4407else
4408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409for as_dir in $PATH
4410do
4411  IFS=$as_save_IFS
4412  test -z "$as_dir" && as_dir=.
4413    for ac_exec_ext in '' $ac_executable_extensions; do
4414  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415    ac_cv_prog_ac_ct_CC="$ac_prog"
4416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417    break 2
4418  fi
4419done
4420  done
4421IFS=$as_save_IFS
4422
4423fi
4424fi
4425ac_ct_CC=$ac_cv_prog_ac_ct_CC
4426if test -n "$ac_ct_CC"; then
4427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4428$as_echo "$ac_ct_CC" >&6; }
4429else
4430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431$as_echo "no" >&6; }
4432fi
4433
4434
4435  test -n "$ac_ct_CC" && break
4436done
4437
4438  if test "x$ac_ct_CC" = x; then
4439    CC=""
4440  else
4441    case $cross_compiling:$ac_tool_warned in
4442yes:)
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4445ac_tool_warned=yes ;;
4446esac
4447    CC=$ac_ct_CC
4448  fi
4449fi
4450
4451fi
4452
4453
4454test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4456as_fn_error $? "no acceptable C compiler found in \$PATH
4457See \`config.log' for more details" "$LINENO" 5; }
4458
4459# Provide some information about the compiler.
4460$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4461set X $ac_compile
4462ac_compiler=$2
4463for ac_option in --version -v -V -qversion; do
4464  { { ac_try="$ac_compiler $ac_option >&5"
4465case "(($ac_try" in
4466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467  *) ac_try_echo=$ac_try;;
4468esac
4469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4470$as_echo "$ac_try_echo"; } >&5
4471  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4472  ac_status=$?
4473  if test -s conftest.err; then
4474    sed '10a\
4475... rest of stderr output deleted ...
4476         10q' conftest.err >conftest.er1
4477    cat conftest.er1 >&5
4478  fi
4479  rm -f conftest.er1 conftest.err
4480  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4481  test $ac_status = 0; }
4482done
4483
4484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485/* end confdefs.h.  */
4486
4487int
4488main ()
4489{
4490
4491  ;
4492  return 0;
4493}
4494_ACEOF
4495ac_clean_files_save=$ac_clean_files
4496ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4497# Try to create an executable without -o first, disregard a.out.
4498# It will help us diagnose broken compilers, and finding out an intuition
4499# of exeext.
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4501$as_echo_n "checking whether the C compiler works... " >&6; }
4502ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4503
4504# The possible output files:
4505ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4506
4507ac_rmfiles=
4508for ac_file in $ac_files
4509do
4510  case $ac_file in
4511    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4512    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4513  esac
4514done
4515rm -f $ac_rmfiles
4516
4517if { { ac_try="$ac_link_default"
4518case "(($ac_try" in
4519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520  *) ac_try_echo=$ac_try;;
4521esac
4522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4523$as_echo "$ac_try_echo"; } >&5
4524  (eval "$ac_link_default") 2>&5
4525  ac_status=$?
4526  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4527  test $ac_status = 0; }; then :
4528  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4529# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4530# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4531# so that the user can short-circuit this test for compilers unknown to
4532# Autoconf.
4533for ac_file in $ac_files ''
4534do
4535  test -f "$ac_file" || continue
4536  case $ac_file in
4537    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4538	;;
4539    [ab].out )
4540	# We found the default executable, but exeext='' is most
4541	# certainly right.
4542	break;;
4543    *.* )
4544	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4545	then :; else
4546	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4547	fi
4548	# We set ac_cv_exeext here because the later test for it is not
4549	# safe: cross compilers may not add the suffix if given an `-o'
4550	# argument, so we may need to know it at that point already.
4551	# Even if this section looks crufty: it has the advantage of
4552	# actually working.
4553	break;;
4554    * )
4555	break;;
4556  esac
4557done
4558test "$ac_cv_exeext" = no && ac_cv_exeext=
4559
4560else
4561  ac_file=''
4562fi
4563if test -z "$ac_file"; then :
4564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565$as_echo "no" >&6; }
4566$as_echo "$as_me: failed program was:" >&5
4567sed 's/^/| /' conftest.$ac_ext >&5
4568
4569{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4571as_fn_error 77 "C compiler cannot create executables
4572See \`config.log' for more details" "$LINENO" 5; }
4573else
4574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4575$as_echo "yes" >&6; }
4576fi
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4578$as_echo_n "checking for C compiler default output file name... " >&6; }
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4580$as_echo "$ac_file" >&6; }
4581ac_exeext=$ac_cv_exeext
4582
4583rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4584ac_clean_files=$ac_clean_files_save
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4586$as_echo_n "checking for suffix of executables... " >&6; }
4587if { { ac_try="$ac_link"
4588case "(($ac_try" in
4589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590  *) ac_try_echo=$ac_try;;
4591esac
4592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4593$as_echo "$ac_try_echo"; } >&5
4594  (eval "$ac_link") 2>&5
4595  ac_status=$?
4596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4597  test $ac_status = 0; }; then :
4598  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4599# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4600# work properly (i.e., refer to `conftest.exe'), while it won't with
4601# `rm'.
4602for ac_file in conftest.exe conftest conftest.*; do
4603  test -f "$ac_file" || continue
4604  case $ac_file in
4605    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4606    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4607	  break;;
4608    * ) break;;
4609  esac
4610done
4611else
4612  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4614as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4615See \`config.log' for more details" "$LINENO" 5; }
4616fi
4617rm -f conftest conftest$ac_cv_exeext
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4619$as_echo "$ac_cv_exeext" >&6; }
4620
4621rm -f conftest.$ac_ext
4622EXEEXT=$ac_cv_exeext
4623ac_exeext=$EXEEXT
4624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625/* end confdefs.h.  */
4626#include <stdio.h>
4627int
4628main ()
4629{
4630FILE *f = fopen ("conftest.out", "w");
4631 return ferror (f) || fclose (f) != 0;
4632
4633  ;
4634  return 0;
4635}
4636_ACEOF
4637ac_clean_files="$ac_clean_files conftest.out"
4638# Check that the compiler produces executables we can run.  If not, either
4639# the compiler is broken, or we cross compile.
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4641$as_echo_n "checking whether we are cross compiling... " >&6; }
4642if test "$cross_compiling" != yes; then
4643  { { ac_try="$ac_link"
4644case "(($ac_try" in
4645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646  *) ac_try_echo=$ac_try;;
4647esac
4648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4649$as_echo "$ac_try_echo"; } >&5
4650  (eval "$ac_link") 2>&5
4651  ac_status=$?
4652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4653  test $ac_status = 0; }
4654  if { ac_try='./conftest$ac_cv_exeext'
4655  { { case "(($ac_try" in
4656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657  *) ac_try_echo=$ac_try;;
4658esac
4659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4660$as_echo "$ac_try_echo"; } >&5
4661  (eval "$ac_try") 2>&5
4662  ac_status=$?
4663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4664  test $ac_status = 0; }; }; then
4665    cross_compiling=no
4666  else
4667    if test "$cross_compiling" = maybe; then
4668	cross_compiling=yes
4669    else
4670	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4671$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4672as_fn_error $? "cannot run C compiled programs.
4673If you meant to cross compile, use \`--host'.
4674See \`config.log' for more details" "$LINENO" 5; }
4675    fi
4676  fi
4677fi
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4679$as_echo "$cross_compiling" >&6; }
4680
4681rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4682ac_clean_files=$ac_clean_files_save
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4684$as_echo_n "checking for suffix of object files... " >&6; }
4685if ${ac_cv_objext+:} false; then :
4686  $as_echo_n "(cached) " >&6
4687else
4688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689/* end confdefs.h.  */
4690
4691int
4692main ()
4693{
4694
4695  ;
4696  return 0;
4697}
4698_ACEOF
4699rm -f conftest.o conftest.obj
4700if { { ac_try="$ac_compile"
4701case "(($ac_try" in
4702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703  *) ac_try_echo=$ac_try;;
4704esac
4705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4706$as_echo "$ac_try_echo"; } >&5
4707  (eval "$ac_compile") 2>&5
4708  ac_status=$?
4709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4710  test $ac_status = 0; }; then :
4711  for ac_file in conftest.o conftest.obj conftest.*; do
4712  test -f "$ac_file" || continue;
4713  case $ac_file in
4714    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4715    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4716       break;;
4717  esac
4718done
4719else
4720  $as_echo "$as_me: failed program was:" >&5
4721sed 's/^/| /' conftest.$ac_ext >&5
4722
4723{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4725as_fn_error $? "cannot compute suffix of object files: cannot compile
4726See \`config.log' for more details" "$LINENO" 5; }
4727fi
4728rm -f conftest.$ac_cv_objext conftest.$ac_ext
4729fi
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4731$as_echo "$ac_cv_objext" >&6; }
4732OBJEXT=$ac_cv_objext
4733ac_objext=$OBJEXT
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4735$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4736if ${ac_cv_c_compiler_gnu+:} false; then :
4737  $as_echo_n "(cached) " >&6
4738else
4739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740/* end confdefs.h.  */
4741
4742int
4743main ()
4744{
4745#ifndef __GNUC__
4746       choke me
4747#endif
4748
4749  ;
4750  return 0;
4751}
4752_ACEOF
4753if ac_fn_c_try_compile "$LINENO"; then :
4754  ac_compiler_gnu=yes
4755else
4756  ac_compiler_gnu=no
4757fi
4758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759ac_cv_c_compiler_gnu=$ac_compiler_gnu
4760
4761fi
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4763$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4764if test $ac_compiler_gnu = yes; then
4765  GCC=yes
4766else
4767  GCC=
4768fi
4769ac_test_CFLAGS=${CFLAGS+set}
4770ac_save_CFLAGS=$CFLAGS
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4772$as_echo_n "checking whether $CC accepts -g... " >&6; }
4773if ${ac_cv_prog_cc_g+:} false; then :
4774  $as_echo_n "(cached) " >&6
4775else
4776  ac_save_c_werror_flag=$ac_c_werror_flag
4777   ac_c_werror_flag=yes
4778   ac_cv_prog_cc_g=no
4779   CFLAGS="-g"
4780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781/* end confdefs.h.  */
4782
4783int
4784main ()
4785{
4786
4787  ;
4788  return 0;
4789}
4790_ACEOF
4791if ac_fn_c_try_compile "$LINENO"; then :
4792  ac_cv_prog_cc_g=yes
4793else
4794  CFLAGS=""
4795      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796/* end confdefs.h.  */
4797
4798int
4799main ()
4800{
4801
4802  ;
4803  return 0;
4804}
4805_ACEOF
4806if ac_fn_c_try_compile "$LINENO"; then :
4807
4808else
4809  ac_c_werror_flag=$ac_save_c_werror_flag
4810	 CFLAGS="-g"
4811	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812/* end confdefs.h.  */
4813
4814int
4815main ()
4816{
4817
4818  ;
4819  return 0;
4820}
4821_ACEOF
4822if ac_fn_c_try_compile "$LINENO"; then :
4823  ac_cv_prog_cc_g=yes
4824fi
4825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826fi
4827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828fi
4829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4830   ac_c_werror_flag=$ac_save_c_werror_flag
4831fi
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4833$as_echo "$ac_cv_prog_cc_g" >&6; }
4834if test "$ac_test_CFLAGS" = set; then
4835  CFLAGS=$ac_save_CFLAGS
4836elif test $ac_cv_prog_cc_g = yes; then
4837  if test "$GCC" = yes; then
4838    CFLAGS="-g -O2"
4839  else
4840    CFLAGS="-g"
4841  fi
4842else
4843  if test "$GCC" = yes; then
4844    CFLAGS="-O2"
4845  else
4846    CFLAGS=
4847  fi
4848fi
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4850$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4851if ${ac_cv_prog_cc_c89+:} false; then :
4852  $as_echo_n "(cached) " >&6
4853else
4854  ac_cv_prog_cc_c89=no
4855ac_save_CC=$CC
4856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857/* end confdefs.h.  */
4858#include <stdarg.h>
4859#include <stdio.h>
4860struct stat;
4861/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4862struct buf { int x; };
4863FILE * (*rcsopen) (struct buf *, struct stat *, int);
4864static char *e (p, i)
4865     char **p;
4866     int i;
4867{
4868  return p[i];
4869}
4870static char *f (char * (*g) (char **, int), char **p, ...)
4871{
4872  char *s;
4873  va_list v;
4874  va_start (v,p);
4875  s = g (p, va_arg (v,int));
4876  va_end (v);
4877  return s;
4878}
4879
4880/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4881   function prototypes and stuff, but not '\xHH' hex character constants.
4882   These don't provoke an error unfortunately, instead are silently treated
4883   as 'x'.  The following induces an error, until -std is added to get
4884   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4885   array size at least.  It's necessary to write '\x00'==0 to get something
4886   that's true only with -std.  */
4887int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4888
4889/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4890   inside strings and character constants.  */
4891#define FOO(x) 'x'
4892int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4893
4894int test (int i, double x);
4895struct s1 {int (*f) (int a);};
4896struct s2 {int (*f) (double a);};
4897int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4898int argc;
4899char **argv;
4900int
4901main ()
4902{
4903return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4904  ;
4905  return 0;
4906}
4907_ACEOF
4908for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4909	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4910do
4911  CC="$ac_save_CC $ac_arg"
4912  if ac_fn_c_try_compile "$LINENO"; then :
4913  ac_cv_prog_cc_c89=$ac_arg
4914fi
4915rm -f core conftest.err conftest.$ac_objext
4916  test "x$ac_cv_prog_cc_c89" != "xno" && break
4917done
4918rm -f conftest.$ac_ext
4919CC=$ac_save_CC
4920
4921fi
4922# AC_CACHE_VAL
4923case "x$ac_cv_prog_cc_c89" in
4924  x)
4925    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4926$as_echo "none needed" >&6; } ;;
4927  xno)
4928    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4929$as_echo "unsupported" >&6; } ;;
4930  *)
4931    CC="$CC $ac_cv_prog_cc_c89"
4932    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4933$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4934esac
4935if test "x$ac_cv_prog_cc_c89" != xno; then :
4936
4937fi
4938
4939ac_ext=c
4940ac_cpp='$CPP $CPPFLAGS'
4941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943ac_compiler_gnu=$ac_cv_c_compiler_gnu
4944
4945ac_ext=c
4946ac_cpp='$CPP $CPPFLAGS'
4947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4949ac_compiler_gnu=$ac_cv_c_compiler_gnu
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4951$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4952if ${am_cv_prog_cc_c_o+:} false; then :
4953  $as_echo_n "(cached) " >&6
4954else
4955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956/* end confdefs.h.  */
4957
4958int
4959main ()
4960{
4961
4962  ;
4963  return 0;
4964}
4965_ACEOF
4966  # Make sure it works both with $CC and with simple cc.
4967  # Following AC_PROG_CC_C_O, we do the test twice because some
4968  # compilers refuse to overwrite an existing .o file with -o,
4969  # though they will create one.
4970  am_cv_prog_cc_c_o=yes
4971  for am_i in 1 2; do
4972    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4973   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4974   ac_status=$?
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); } \
4977         && test -f conftest2.$ac_objext; then
4978      : OK
4979    else
4980      am_cv_prog_cc_c_o=no
4981      break
4982    fi
4983  done
4984  rm -f core conftest*
4985  unset am_i
4986fi
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4988$as_echo "$am_cv_prog_cc_c_o" >&6; }
4989if test "$am_cv_prog_cc_c_o" != yes; then
4990   # Losing compiler, so override with the script.
4991   # FIXME: It is wrong to rewrite CC.
4992   # But if we don't then we get into trouble of one sort or another.
4993   # A longer-term fix would be to have automake use am__CC in this case,
4994   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4995   CC="$am_aux_dir/compile $CC"
4996fi
4997ac_ext=c
4998ac_cpp='$CPP $CPPFLAGS'
4999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5001ac_compiler_gnu=$ac_cv_c_compiler_gnu
5002
5003
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5005$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5006if ${ac_cv_path_SED+:} false; then :
5007  $as_echo_n "(cached) " >&6
5008else
5009            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5010     for ac_i in 1 2 3 4 5 6 7; do
5011       ac_script="$ac_script$as_nl$ac_script"
5012     done
5013     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5014     { ac_script=; unset ac_script;}
5015     if test -z "$SED"; then
5016  ac_path_SED_found=false
5017  # Loop through the user's path and test for each of PROGNAME-LIST
5018  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019for as_dir in $PATH
5020do
5021  IFS=$as_save_IFS
5022  test -z "$as_dir" && as_dir=.
5023    for ac_prog in sed gsed; do
5024    for ac_exec_ext in '' $ac_executable_extensions; do
5025      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5026      as_fn_executable_p "$ac_path_SED" || continue
5027# Check for GNU ac_path_SED and select it if it is found.
5028  # Check for GNU $ac_path_SED
5029case `"$ac_path_SED" --version 2>&1` in
5030*GNU*)
5031  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5032*)
5033  ac_count=0
5034  $as_echo_n 0123456789 >"conftest.in"
5035  while :
5036  do
5037    cat "conftest.in" "conftest.in" >"conftest.tmp"
5038    mv "conftest.tmp" "conftest.in"
5039    cp "conftest.in" "conftest.nl"
5040    $as_echo '' >> "conftest.nl"
5041    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5042    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5043    as_fn_arith $ac_count + 1 && ac_count=$as_val
5044    if test $ac_count -gt ${ac_path_SED_max-0}; then
5045      # Best one so far, save it but keep looking for a better one
5046      ac_cv_path_SED="$ac_path_SED"
5047      ac_path_SED_max=$ac_count
5048    fi
5049    # 10*(2^10) chars as input seems more than enough
5050    test $ac_count -gt 10 && break
5051  done
5052  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5053esac
5054
5055      $ac_path_SED_found && break 3
5056    done
5057  done
5058  done
5059IFS=$as_save_IFS
5060  if test -z "$ac_cv_path_SED"; then
5061    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5062  fi
5063else
5064  ac_cv_path_SED=$SED
5065fi
5066
5067fi
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5069$as_echo "$ac_cv_path_SED" >&6; }
5070 SED="$ac_cv_path_SED"
5071  rm -f conftest.sed
5072
5073test -z "$SED" && SED=sed
5074Xsed="$SED -e 1s/^X//"
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5087$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5088if ${ac_cv_path_GREP+:} false; then :
5089  $as_echo_n "(cached) " >&6
5090else
5091  if test -z "$GREP"; then
5092  ac_path_GREP_found=false
5093  # Loop through the user's path and test for each of PROGNAME-LIST
5094  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5096do
5097  IFS=$as_save_IFS
5098  test -z "$as_dir" && as_dir=.
5099    for ac_prog in grep ggrep; do
5100    for ac_exec_ext in '' $ac_executable_extensions; do
5101      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5102      as_fn_executable_p "$ac_path_GREP" || continue
5103# Check for GNU ac_path_GREP and select it if it is found.
5104  # Check for GNU $ac_path_GREP
5105case `"$ac_path_GREP" --version 2>&1` in
5106*GNU*)
5107  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5108*)
5109  ac_count=0
5110  $as_echo_n 0123456789 >"conftest.in"
5111  while :
5112  do
5113    cat "conftest.in" "conftest.in" >"conftest.tmp"
5114    mv "conftest.tmp" "conftest.in"
5115    cp "conftest.in" "conftest.nl"
5116    $as_echo 'GREP' >> "conftest.nl"
5117    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5118    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5119    as_fn_arith $ac_count + 1 && ac_count=$as_val
5120    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5121      # Best one so far, save it but keep looking for a better one
5122      ac_cv_path_GREP="$ac_path_GREP"
5123      ac_path_GREP_max=$ac_count
5124    fi
5125    # 10*(2^10) chars as input seems more than enough
5126    test $ac_count -gt 10 && break
5127  done
5128  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5129esac
5130
5131      $ac_path_GREP_found && break 3
5132    done
5133  done
5134  done
5135IFS=$as_save_IFS
5136  if test -z "$ac_cv_path_GREP"; then
5137    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5138  fi
5139else
5140  ac_cv_path_GREP=$GREP
5141fi
5142
5143fi
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5145$as_echo "$ac_cv_path_GREP" >&6; }
5146 GREP="$ac_cv_path_GREP"
5147
5148
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5150$as_echo_n "checking for egrep... " >&6; }
5151if ${ac_cv_path_EGREP+:} false; then :
5152  $as_echo_n "(cached) " >&6
5153else
5154  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5155   then ac_cv_path_EGREP="$GREP -E"
5156   else
5157     if test -z "$EGREP"; then
5158  ac_path_EGREP_found=false
5159  # Loop through the user's path and test for each of PROGNAME-LIST
5160  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5162do
5163  IFS=$as_save_IFS
5164  test -z "$as_dir" && as_dir=.
5165    for ac_prog in egrep; do
5166    for ac_exec_ext in '' $ac_executable_extensions; do
5167      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5168      as_fn_executable_p "$ac_path_EGREP" || continue
5169# Check for GNU ac_path_EGREP and select it if it is found.
5170  # Check for GNU $ac_path_EGREP
5171case `"$ac_path_EGREP" --version 2>&1` in
5172*GNU*)
5173  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5174*)
5175  ac_count=0
5176  $as_echo_n 0123456789 >"conftest.in"
5177  while :
5178  do
5179    cat "conftest.in" "conftest.in" >"conftest.tmp"
5180    mv "conftest.tmp" "conftest.in"
5181    cp "conftest.in" "conftest.nl"
5182    $as_echo 'EGREP' >> "conftest.nl"
5183    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5184    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5185    as_fn_arith $ac_count + 1 && ac_count=$as_val
5186    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5187      # Best one so far, save it but keep looking for a better one
5188      ac_cv_path_EGREP="$ac_path_EGREP"
5189      ac_path_EGREP_max=$ac_count
5190    fi
5191    # 10*(2^10) chars as input seems more than enough
5192    test $ac_count -gt 10 && break
5193  done
5194  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5195esac
5196
5197      $ac_path_EGREP_found && break 3
5198    done
5199  done
5200  done
5201IFS=$as_save_IFS
5202  if test -z "$ac_cv_path_EGREP"; then
5203    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5204  fi
5205else
5206  ac_cv_path_EGREP=$EGREP
5207fi
5208
5209   fi
5210fi
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5212$as_echo "$ac_cv_path_EGREP" >&6; }
5213 EGREP="$ac_cv_path_EGREP"
5214
5215
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5217$as_echo_n "checking for fgrep... " >&6; }
5218if ${ac_cv_path_FGREP+:} false; then :
5219  $as_echo_n "(cached) " >&6
5220else
5221  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5222   then ac_cv_path_FGREP="$GREP -F"
5223   else
5224     if test -z "$FGREP"; then
5225  ac_path_FGREP_found=false
5226  # Loop through the user's path and test for each of PROGNAME-LIST
5227  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5229do
5230  IFS=$as_save_IFS
5231  test -z "$as_dir" && as_dir=.
5232    for ac_prog in fgrep; do
5233    for ac_exec_ext in '' $ac_executable_extensions; do
5234      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5235      as_fn_executable_p "$ac_path_FGREP" || continue
5236# Check for GNU ac_path_FGREP and select it if it is found.
5237  # Check for GNU $ac_path_FGREP
5238case `"$ac_path_FGREP" --version 2>&1` in
5239*GNU*)
5240  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5241*)
5242  ac_count=0
5243  $as_echo_n 0123456789 >"conftest.in"
5244  while :
5245  do
5246    cat "conftest.in" "conftest.in" >"conftest.tmp"
5247    mv "conftest.tmp" "conftest.in"
5248    cp "conftest.in" "conftest.nl"
5249    $as_echo 'FGREP' >> "conftest.nl"
5250    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5251    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5252    as_fn_arith $ac_count + 1 && ac_count=$as_val
5253    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5254      # Best one so far, save it but keep looking for a better one
5255      ac_cv_path_FGREP="$ac_path_FGREP"
5256      ac_path_FGREP_max=$ac_count
5257    fi
5258    # 10*(2^10) chars as input seems more than enough
5259    test $ac_count -gt 10 && break
5260  done
5261  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5262esac
5263
5264      $ac_path_FGREP_found && break 3
5265    done
5266  done
5267  done
5268IFS=$as_save_IFS
5269  if test -z "$ac_cv_path_FGREP"; then
5270    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5271  fi
5272else
5273  ac_cv_path_FGREP=$FGREP
5274fi
5275
5276   fi
5277fi
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5279$as_echo "$ac_cv_path_FGREP" >&6; }
5280 FGREP="$ac_cv_path_FGREP"
5281
5282
5283test -z "$GREP" && GREP=grep
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303# Check whether --with-gnu-ld was given.
5304if test "${with_gnu_ld+set}" = set; then :
5305  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5306else
5307  with_gnu_ld=no
5308fi
5309
5310ac_prog=ld
5311if test yes = "$GCC"; then
5312  # Check if gcc -print-prog-name=ld gives a path.
5313  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5314$as_echo_n "checking for ld used by $CC... " >&6; }
5315  case $host in
5316  *-*-mingw*)
5317    # gcc leaves a trailing carriage return, which upsets mingw
5318    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5319  *)
5320    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5321  esac
5322  case $ac_prog in
5323    # Accept absolute paths.
5324    [\\/]* | ?:[\\/]*)
5325      re_direlt='/[^/][^/]*/\.\./'
5326      # Canonicalize the pathname of ld
5327      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5328      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5329	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5330      done
5331      test -z "$LD" && LD=$ac_prog
5332      ;;
5333  "")
5334    # If it fails, then pretend we aren't using GCC.
5335    ac_prog=ld
5336    ;;
5337  *)
5338    # If it is relative, then search for the first ld in PATH.
5339    with_gnu_ld=unknown
5340    ;;
5341  esac
5342elif test yes = "$with_gnu_ld"; then
5343  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5344$as_echo_n "checking for GNU ld... " >&6; }
5345else
5346  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5347$as_echo_n "checking for non-GNU ld... " >&6; }
5348fi
5349if ${lt_cv_path_LD+:} false; then :
5350  $as_echo_n "(cached) " >&6
5351else
5352  if test -z "$LD"; then
5353  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5354  for ac_dir in $PATH; do
5355    IFS=$lt_save_ifs
5356    test -z "$ac_dir" && ac_dir=.
5357    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5358      lt_cv_path_LD=$ac_dir/$ac_prog
5359      # Check to see if the program is GNU ld.  I'd rather use --version,
5360      # but apparently some variants of GNU ld only accept -v.
5361      # Break only if it was the GNU/non-GNU ld that we prefer.
5362      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5363      *GNU* | *'with BFD'*)
5364	test no != "$with_gnu_ld" && break
5365	;;
5366      *)
5367	test yes != "$with_gnu_ld" && break
5368	;;
5369      esac
5370    fi
5371  done
5372  IFS=$lt_save_ifs
5373else
5374  lt_cv_path_LD=$LD # Let the user override the test with a path.
5375fi
5376fi
5377
5378LD=$lt_cv_path_LD
5379if test -n "$LD"; then
5380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5381$as_echo "$LD" >&6; }
5382else
5383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384$as_echo "no" >&6; }
5385fi
5386test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5388$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5389if ${lt_cv_prog_gnu_ld+:} false; then :
5390  $as_echo_n "(cached) " >&6
5391else
5392  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5393case `$LD -v 2>&1 </dev/null` in
5394*GNU* | *'with BFD'*)
5395  lt_cv_prog_gnu_ld=yes
5396  ;;
5397*)
5398  lt_cv_prog_gnu_ld=no
5399  ;;
5400esac
5401fi
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5403$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5404with_gnu_ld=$lt_cv_prog_gnu_ld
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5415$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5416if ${lt_cv_path_NM+:} false; then :
5417  $as_echo_n "(cached) " >&6
5418else
5419  if test -n "$NM"; then
5420  # Let the user override the test.
5421  lt_cv_path_NM=$NM
5422else
5423  lt_nm_to_check=${ac_tool_prefix}nm
5424  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5425    lt_nm_to_check="$lt_nm_to_check nm"
5426  fi
5427  for lt_tmp_nm in $lt_nm_to_check; do
5428    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5429    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5430      IFS=$lt_save_ifs
5431      test -z "$ac_dir" && ac_dir=.
5432      tmp_nm=$ac_dir/$lt_tmp_nm
5433      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5434	# Check to see if the nm accepts a BSD-compat flag.
5435	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5436	#   nm: unknown option "B" ignored
5437	# Tru64's nm complains that /dev/null is an invalid object file
5438	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5439	case $build_os in
5440	mingw*) lt_bad_file=conftest.nm/nofile ;;
5441	*) lt_bad_file=/dev/null ;;
5442	esac
5443	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5444	*$lt_bad_file* | *'Invalid file or object type'*)
5445	  lt_cv_path_NM="$tmp_nm -B"
5446	  break 2
5447	  ;;
5448	*)
5449	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5450	  */dev/null*)
5451	    lt_cv_path_NM="$tmp_nm -p"
5452	    break 2
5453	    ;;
5454	  *)
5455	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5456	    continue # so that we can try to find one that supports BSD flags
5457	    ;;
5458	  esac
5459	  ;;
5460	esac
5461      fi
5462    done
5463    IFS=$lt_save_ifs
5464  done
5465  : ${lt_cv_path_NM=no}
5466fi
5467fi
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5469$as_echo "$lt_cv_path_NM" >&6; }
5470if test no != "$lt_cv_path_NM"; then
5471  NM=$lt_cv_path_NM
5472else
5473  # Didn't find any BSD compatible name lister, look for dumpbin.
5474  if test -n "$DUMPBIN"; then :
5475    # Let the user override the test.
5476  else
5477    if test -n "$ac_tool_prefix"; then
5478  for ac_prog in dumpbin "link -dump"
5479  do
5480    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5481set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483$as_echo_n "checking for $ac_word... " >&6; }
5484if ${ac_cv_prog_DUMPBIN+:} false; then :
5485  $as_echo_n "(cached) " >&6
5486else
5487  if test -n "$DUMPBIN"; then
5488  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5489else
5490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491for as_dir in $PATH
5492do
5493  IFS=$as_save_IFS
5494  test -z "$as_dir" && as_dir=.
5495    for ac_exec_ext in '' $ac_executable_extensions; do
5496  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5497    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499    break 2
5500  fi
5501done
5502  done
5503IFS=$as_save_IFS
5504
5505fi
5506fi
5507DUMPBIN=$ac_cv_prog_DUMPBIN
5508if test -n "$DUMPBIN"; then
5509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5510$as_echo "$DUMPBIN" >&6; }
5511else
5512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513$as_echo "no" >&6; }
5514fi
5515
5516
5517    test -n "$DUMPBIN" && break
5518  done
5519fi
5520if test -z "$DUMPBIN"; then
5521  ac_ct_DUMPBIN=$DUMPBIN
5522  for ac_prog in dumpbin "link -dump"
5523do
5524  # Extract the first word of "$ac_prog", so it can be a program name with args.
5525set dummy $ac_prog; ac_word=$2
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527$as_echo_n "checking for $ac_word... " >&6; }
5528if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5529  $as_echo_n "(cached) " >&6
5530else
5531  if test -n "$ac_ct_DUMPBIN"; then
5532  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5533else
5534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535for as_dir in $PATH
5536do
5537  IFS=$as_save_IFS
5538  test -z "$as_dir" && as_dir=.
5539    for ac_exec_ext in '' $ac_executable_extensions; do
5540  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543    break 2
5544  fi
5545done
5546  done
5547IFS=$as_save_IFS
5548
5549fi
5550fi
5551ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5552if test -n "$ac_ct_DUMPBIN"; then
5553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5554$as_echo "$ac_ct_DUMPBIN" >&6; }
5555else
5556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557$as_echo "no" >&6; }
5558fi
5559
5560
5561  test -n "$ac_ct_DUMPBIN" && break
5562done
5563
5564  if test "x$ac_ct_DUMPBIN" = x; then
5565    DUMPBIN=":"
5566  else
5567    case $cross_compiling:$ac_tool_warned in
5568yes:)
5569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5571ac_tool_warned=yes ;;
5572esac
5573    DUMPBIN=$ac_ct_DUMPBIN
5574  fi
5575fi
5576
5577    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5578    *COFF*)
5579      DUMPBIN="$DUMPBIN -symbols -headers"
5580      ;;
5581    *)
5582      DUMPBIN=:
5583      ;;
5584    esac
5585  fi
5586
5587  if test : != "$DUMPBIN"; then
5588    NM=$DUMPBIN
5589  fi
5590fi
5591test -z "$NM" && NM=nm
5592
5593
5594
5595
5596
5597
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5599$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5600if ${lt_cv_nm_interface+:} false; then :
5601  $as_echo_n "(cached) " >&6
5602else
5603  lt_cv_nm_interface="BSD nm"
5604  echo "int some_variable = 0;" > conftest.$ac_ext
5605  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5606  (eval "$ac_compile" 2>conftest.err)
5607  cat conftest.err >&5
5608  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5609  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5610  cat conftest.err >&5
5611  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5612  cat conftest.out >&5
5613  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5614    lt_cv_nm_interface="MS dumpbin"
5615  fi
5616  rm -f conftest*
5617fi
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5619$as_echo "$lt_cv_nm_interface" >&6; }
5620
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5622$as_echo_n "checking whether ln -s works... " >&6; }
5623LN_S=$as_ln_s
5624if test "$LN_S" = "ln -s"; then
5625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5626$as_echo "yes" >&6; }
5627else
5628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5629$as_echo "no, using $LN_S" >&6; }
5630fi
5631
5632# find the maximum length of command line arguments
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5634$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5635if ${lt_cv_sys_max_cmd_len+:} false; then :
5636  $as_echo_n "(cached) " >&6
5637else
5638    i=0
5639  teststring=ABCD
5640
5641  case $build_os in
5642  msdosdjgpp*)
5643    # On DJGPP, this test can blow up pretty badly due to problems in libc
5644    # (any single argument exceeding 2000 bytes causes a buffer overrun
5645    # during glob expansion).  Even if it were fixed, the result of this
5646    # check would be larger than it should be.
5647    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5648    ;;
5649
5650  gnu*)
5651    # Under GNU Hurd, this test is not required because there is
5652    # no limit to the length of command line arguments.
5653    # Libtool will interpret -1 as no limit whatsoever
5654    lt_cv_sys_max_cmd_len=-1;
5655    ;;
5656
5657  cygwin* | mingw* | cegcc*)
5658    # On Win9x/ME, this test blows up -- it succeeds, but takes
5659    # about 5 minutes as the teststring grows exponentially.
5660    # Worse, since 9x/ME are not pre-emptively multitasking,
5661    # you end up with a "frozen" computer, even though with patience
5662    # the test eventually succeeds (with a max line length of 256k).
5663    # Instead, let's just punt: use the minimum linelength reported by
5664    # all of the supported platforms: 8192 (on NT/2K/XP).
5665    lt_cv_sys_max_cmd_len=8192;
5666    ;;
5667
5668  mint*)
5669    # On MiNT this can take a long time and run out of memory.
5670    lt_cv_sys_max_cmd_len=8192;
5671    ;;
5672
5673  amigaos*)
5674    # On AmigaOS with pdksh, this test takes hours, literally.
5675    # So we just punt and use a minimum line length of 8192.
5676    lt_cv_sys_max_cmd_len=8192;
5677    ;;
5678
5679  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5680    # This has been around since 386BSD, at least.  Likely further.
5681    if test -x /sbin/sysctl; then
5682      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5683    elif test -x /usr/sbin/sysctl; then
5684      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5685    else
5686      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5687    fi
5688    # And add a safety zone
5689    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5690    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5691    ;;
5692
5693  interix*)
5694    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5695    lt_cv_sys_max_cmd_len=196608
5696    ;;
5697
5698  os2*)
5699    # The test takes a long time on OS/2.
5700    lt_cv_sys_max_cmd_len=8192
5701    ;;
5702
5703  osf*)
5704    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5705    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5706    # nice to cause kernel panics so lets avoid the loop below.
5707    # First set a reasonable default.
5708    lt_cv_sys_max_cmd_len=16384
5709    #
5710    if test -x /sbin/sysconfig; then
5711      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5712        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5713      esac
5714    fi
5715    ;;
5716  sco3.2v5*)
5717    lt_cv_sys_max_cmd_len=102400
5718    ;;
5719  sysv5* | sco5v6* | sysv4.2uw2*)
5720    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5721    if test -n "$kargmax"; then
5722      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5723    else
5724      lt_cv_sys_max_cmd_len=32768
5725    fi
5726    ;;
5727  *)
5728    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5729    if test -n "$lt_cv_sys_max_cmd_len" && \
5730       test undefined != "$lt_cv_sys_max_cmd_len"; then
5731      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5732      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5733    else
5734      # Make teststring a little bigger before we do anything with it.
5735      # a 1K string should be a reasonable start.
5736      for i in 1 2 3 4 5 6 7 8; do
5737        teststring=$teststring$teststring
5738      done
5739      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5740      # If test is not a shell built-in, we'll probably end up computing a
5741      # maximum length that is only half of the actual maximum length, but
5742      # we can't tell.
5743      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5744	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5745	      test 17 != "$i" # 1/2 MB should be enough
5746      do
5747        i=`expr $i + 1`
5748        teststring=$teststring$teststring
5749      done
5750      # Only check the string length outside the loop.
5751      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5752      teststring=
5753      # Add a significant safety factor because C++ compilers can tack on
5754      # massive amounts of additional arguments before passing them to the
5755      # linker.  It appears as though 1/2 is a usable value.
5756      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5757    fi
5758    ;;
5759  esac
5760
5761fi
5762
5763if test -n "$lt_cv_sys_max_cmd_len"; then
5764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5765$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5766else
5767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5768$as_echo "none" >&6; }
5769fi
5770max_cmd_len=$lt_cv_sys_max_cmd_len
5771
5772
5773
5774
5775
5776
5777: ${CP="cp -f"}
5778: ${MV="mv -f"}
5779: ${RM="rm -f"}
5780
5781if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5782  lt_unset=unset
5783else
5784  lt_unset=false
5785fi
5786
5787
5788
5789
5790
5791# test EBCDIC or ASCII
5792case `echo X|tr X '\101'` in
5793 A) # ASCII based system
5794    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5795  lt_SP2NL='tr \040 \012'
5796  lt_NL2SP='tr \015\012 \040\040'
5797  ;;
5798 *) # EBCDIC based system
5799  lt_SP2NL='tr \100 \n'
5800  lt_NL2SP='tr \r\n \100\100'
5801  ;;
5802esac
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5813$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5814if ${lt_cv_to_host_file_cmd+:} false; then :
5815  $as_echo_n "(cached) " >&6
5816else
5817  case $host in
5818  *-*-mingw* )
5819    case $build in
5820      *-*-mingw* ) # actually msys
5821        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5822        ;;
5823      *-*-cygwin* )
5824        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5825        ;;
5826      * ) # otherwise, assume *nix
5827        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5828        ;;
5829    esac
5830    ;;
5831  *-*-cygwin* )
5832    case $build in
5833      *-*-mingw* ) # actually msys
5834        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5835        ;;
5836      *-*-cygwin* )
5837        lt_cv_to_host_file_cmd=func_convert_file_noop
5838        ;;
5839      * ) # otherwise, assume *nix
5840        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5841        ;;
5842    esac
5843    ;;
5844  * ) # unhandled hosts (and "normal" native builds)
5845    lt_cv_to_host_file_cmd=func_convert_file_noop
5846    ;;
5847esac
5848
5849fi
5850
5851to_host_file_cmd=$lt_cv_to_host_file_cmd
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5853$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5854
5855
5856
5857
5858
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5860$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5861if ${lt_cv_to_tool_file_cmd+:} false; then :
5862  $as_echo_n "(cached) " >&6
5863else
5864  #assume ordinary cross tools, or native build.
5865lt_cv_to_tool_file_cmd=func_convert_file_noop
5866case $host in
5867  *-*-mingw* )
5868    case $build in
5869      *-*-mingw* ) # actually msys
5870        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5871        ;;
5872    esac
5873    ;;
5874esac
5875
5876fi
5877
5878to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5880$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5881
5882
5883
5884
5885
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5887$as_echo_n "checking for $LD option to reload object files... " >&6; }
5888if ${lt_cv_ld_reload_flag+:} false; then :
5889  $as_echo_n "(cached) " >&6
5890else
5891  lt_cv_ld_reload_flag='-r'
5892fi
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5894$as_echo "$lt_cv_ld_reload_flag" >&6; }
5895reload_flag=$lt_cv_ld_reload_flag
5896case $reload_flag in
5897"" | " "*) ;;
5898*) reload_flag=" $reload_flag" ;;
5899esac
5900reload_cmds='$LD$reload_flag -o $output$reload_objs'
5901case $host_os in
5902  cygwin* | mingw* | pw32* | cegcc*)
5903    if test yes != "$GCC"; then
5904      reload_cmds=false
5905    fi
5906    ;;
5907  darwin*)
5908    if test yes = "$GCC"; then
5909      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5910    else
5911      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5912    fi
5913    ;;
5914esac
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924if test -n "$ac_tool_prefix"; then
5925  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5926set dummy ${ac_tool_prefix}objdump; ac_word=$2
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928$as_echo_n "checking for $ac_word... " >&6; }
5929if ${ac_cv_prog_OBJDUMP+:} false; then :
5930  $as_echo_n "(cached) " >&6
5931else
5932  if test -n "$OBJDUMP"; then
5933  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5934else
5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936for as_dir in $PATH
5937do
5938  IFS=$as_save_IFS
5939  test -z "$as_dir" && as_dir=.
5940    for ac_exec_ext in '' $ac_executable_extensions; do
5941  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5942    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5943    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944    break 2
5945  fi
5946done
5947  done
5948IFS=$as_save_IFS
5949
5950fi
5951fi
5952OBJDUMP=$ac_cv_prog_OBJDUMP
5953if test -n "$OBJDUMP"; then
5954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5955$as_echo "$OBJDUMP" >&6; }
5956else
5957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958$as_echo "no" >&6; }
5959fi
5960
5961
5962fi
5963if test -z "$ac_cv_prog_OBJDUMP"; then
5964  ac_ct_OBJDUMP=$OBJDUMP
5965  # Extract the first word of "objdump", so it can be a program name with args.
5966set dummy objdump; ac_word=$2
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968$as_echo_n "checking for $ac_word... " >&6; }
5969if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5970  $as_echo_n "(cached) " >&6
5971else
5972  if test -n "$ac_ct_OBJDUMP"; then
5973  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5974else
5975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976for as_dir in $PATH
5977do
5978  IFS=$as_save_IFS
5979  test -z "$as_dir" && as_dir=.
5980    for ac_exec_ext in '' $ac_executable_extensions; do
5981  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5983    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984    break 2
5985  fi
5986done
5987  done
5988IFS=$as_save_IFS
5989
5990fi
5991fi
5992ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5993if test -n "$ac_ct_OBJDUMP"; then
5994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5995$as_echo "$ac_ct_OBJDUMP" >&6; }
5996else
5997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998$as_echo "no" >&6; }
5999fi
6000
6001  if test "x$ac_ct_OBJDUMP" = x; then
6002    OBJDUMP="false"
6003  else
6004    case $cross_compiling:$ac_tool_warned in
6005yes:)
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6008ac_tool_warned=yes ;;
6009esac
6010    OBJDUMP=$ac_ct_OBJDUMP
6011  fi
6012else
6013  OBJDUMP="$ac_cv_prog_OBJDUMP"
6014fi
6015
6016test -z "$OBJDUMP" && OBJDUMP=objdump
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6027$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6028if ${lt_cv_deplibs_check_method+:} false; then :
6029  $as_echo_n "(cached) " >&6
6030else
6031  lt_cv_file_magic_cmd='$MAGIC_CMD'
6032lt_cv_file_magic_test_file=
6033lt_cv_deplibs_check_method='unknown'
6034# Need to set the preceding variable on all platforms that support
6035# interlibrary dependencies.
6036# 'none' -- dependencies not supported.
6037# 'unknown' -- same as none, but documents that we really don't know.
6038# 'pass_all' -- all dependencies passed with no checks.
6039# 'test_compile' -- check by making test program.
6040# 'file_magic [[regex]]' -- check by looking for files in library path
6041# that responds to the $file_magic_cmd with a given extended regex.
6042# If you have 'file' or equivalent on your system and you're not sure
6043# whether 'pass_all' will *always* work, you probably want this one.
6044
6045case $host_os in
6046aix[4-9]*)
6047  lt_cv_deplibs_check_method=pass_all
6048  ;;
6049
6050beos*)
6051  lt_cv_deplibs_check_method=pass_all
6052  ;;
6053
6054bsdi[45]*)
6055  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6056  lt_cv_file_magic_cmd='/usr/bin/file -L'
6057  lt_cv_file_magic_test_file=/shlib/libc.so
6058  ;;
6059
6060cygwin*)
6061  # func_win32_libid is a shell function defined in ltmain.sh
6062  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6063  lt_cv_file_magic_cmd='func_win32_libid'
6064  ;;
6065
6066mingw* | pw32*)
6067  # Base MSYS/MinGW do not provide the 'file' command needed by
6068  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6069  # unless we find 'file', for example because we are cross-compiling.
6070  if ( file / ) >/dev/null 2>&1; then
6071    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6072    lt_cv_file_magic_cmd='func_win32_libid'
6073  else
6074    # Keep this pattern in sync with the one in func_win32_libid.
6075    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6076    lt_cv_file_magic_cmd='$OBJDUMP -f'
6077  fi
6078  ;;
6079
6080cegcc*)
6081  # use the weaker test based on 'objdump'. See mingw*.
6082  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6083  lt_cv_file_magic_cmd='$OBJDUMP -f'
6084  ;;
6085
6086darwin* | rhapsody*)
6087  lt_cv_deplibs_check_method=pass_all
6088  ;;
6089
6090freebsd* | dragonfly*)
6091  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6092    case $host_cpu in
6093    i*86 )
6094      # Not sure whether the presence of OpenBSD here was a mistake.
6095      # Let's accept both of them until this is cleared up.
6096      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6097      lt_cv_file_magic_cmd=/usr/bin/file
6098      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6099      ;;
6100    esac
6101  else
6102    lt_cv_deplibs_check_method=pass_all
6103  fi
6104  ;;
6105
6106haiku*)
6107  lt_cv_deplibs_check_method=pass_all
6108  ;;
6109
6110hpux10.20* | hpux11*)
6111  lt_cv_file_magic_cmd=/usr/bin/file
6112  case $host_cpu in
6113  ia64*)
6114    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6115    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6116    ;;
6117  hppa*64*)
6118    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6119    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6120    ;;
6121  *)
6122    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6123    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6124    ;;
6125  esac
6126  ;;
6127
6128interix[3-9]*)
6129  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6130  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6131  ;;
6132
6133irix5* | irix6* | nonstopux*)
6134  case $LD in
6135  *-32|*"-32 ") libmagic=32-bit;;
6136  *-n32|*"-n32 ") libmagic=N32;;
6137  *-64|*"-64 ") libmagic=64-bit;;
6138  *) libmagic=never-match;;
6139  esac
6140  lt_cv_deplibs_check_method=pass_all
6141  ;;
6142
6143# This must be glibc/ELF.
6144linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6145  lt_cv_deplibs_check_method=pass_all
6146  ;;
6147
6148netbsd* | netbsdelf*-gnu)
6149  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6150    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6151  else
6152    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6153  fi
6154  ;;
6155
6156newos6*)
6157  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6158  lt_cv_file_magic_cmd=/usr/bin/file
6159  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6160  ;;
6161
6162*nto* | *qnx*)
6163  lt_cv_deplibs_check_method=pass_all
6164  ;;
6165
6166openbsd* | bitrig*)
6167  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6168    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6169  else
6170    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6171  fi
6172  ;;
6173
6174osf3* | osf4* | osf5*)
6175  lt_cv_deplibs_check_method=pass_all
6176  ;;
6177
6178rdos*)
6179  lt_cv_deplibs_check_method=pass_all
6180  ;;
6181
6182solaris*)
6183  lt_cv_deplibs_check_method=pass_all
6184  ;;
6185
6186sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6187  lt_cv_deplibs_check_method=pass_all
6188  ;;
6189
6190sysv4 | sysv4.3*)
6191  case $host_vendor in
6192  motorola)
6193    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6194    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6195    ;;
6196  ncr)
6197    lt_cv_deplibs_check_method=pass_all
6198    ;;
6199  sequent)
6200    lt_cv_file_magic_cmd='/bin/file'
6201    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6202    ;;
6203  sni)
6204    lt_cv_file_magic_cmd='/bin/file'
6205    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6206    lt_cv_file_magic_test_file=/lib/libc.so
6207    ;;
6208  siemens)
6209    lt_cv_deplibs_check_method=pass_all
6210    ;;
6211  pc)
6212    lt_cv_deplibs_check_method=pass_all
6213    ;;
6214  esac
6215  ;;
6216
6217tpf*)
6218  lt_cv_deplibs_check_method=pass_all
6219  ;;
6220os2*)
6221  lt_cv_deplibs_check_method=pass_all
6222  ;;
6223esac
6224
6225fi
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6227$as_echo "$lt_cv_deplibs_check_method" >&6; }
6228
6229file_magic_glob=
6230want_nocaseglob=no
6231if test "$build" = "$host"; then
6232  case $host_os in
6233  mingw* | pw32*)
6234    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6235      want_nocaseglob=yes
6236    else
6237      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6238    fi
6239    ;;
6240  esac
6241fi
6242
6243file_magic_cmd=$lt_cv_file_magic_cmd
6244deplibs_check_method=$lt_cv_deplibs_check_method
6245test -z "$deplibs_check_method" && deplibs_check_method=unknown
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268if test -n "$ac_tool_prefix"; then
6269  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6270set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6272$as_echo_n "checking for $ac_word... " >&6; }
6273if ${ac_cv_prog_DLLTOOL+:} false; then :
6274  $as_echo_n "(cached) " >&6
6275else
6276  if test -n "$DLLTOOL"; then
6277  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6278else
6279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280for as_dir in $PATH
6281do
6282  IFS=$as_save_IFS
6283  test -z "$as_dir" && as_dir=.
6284    for ac_exec_ext in '' $ac_executable_extensions; do
6285  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6286    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6288    break 2
6289  fi
6290done
6291  done
6292IFS=$as_save_IFS
6293
6294fi
6295fi
6296DLLTOOL=$ac_cv_prog_DLLTOOL
6297if test -n "$DLLTOOL"; then
6298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6299$as_echo "$DLLTOOL" >&6; }
6300else
6301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302$as_echo "no" >&6; }
6303fi
6304
6305
6306fi
6307if test -z "$ac_cv_prog_DLLTOOL"; then
6308  ac_ct_DLLTOOL=$DLLTOOL
6309  # Extract the first word of "dlltool", so it can be a program name with args.
6310set dummy dlltool; ac_word=$2
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312$as_echo_n "checking for $ac_word... " >&6; }
6313if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6314  $as_echo_n "(cached) " >&6
6315else
6316  if test -n "$ac_ct_DLLTOOL"; then
6317  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6318else
6319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320for as_dir in $PATH
6321do
6322  IFS=$as_save_IFS
6323  test -z "$as_dir" && as_dir=.
6324    for ac_exec_ext in '' $ac_executable_extensions; do
6325  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6326    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6328    break 2
6329  fi
6330done
6331  done
6332IFS=$as_save_IFS
6333
6334fi
6335fi
6336ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6337if test -n "$ac_ct_DLLTOOL"; then
6338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6339$as_echo "$ac_ct_DLLTOOL" >&6; }
6340else
6341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342$as_echo "no" >&6; }
6343fi
6344
6345  if test "x$ac_ct_DLLTOOL" = x; then
6346    DLLTOOL="false"
6347  else
6348    case $cross_compiling:$ac_tool_warned in
6349yes:)
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6352ac_tool_warned=yes ;;
6353esac
6354    DLLTOOL=$ac_ct_DLLTOOL
6355  fi
6356else
6357  DLLTOOL="$ac_cv_prog_DLLTOOL"
6358fi
6359
6360test -z "$DLLTOOL" && DLLTOOL=dlltool
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6372$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6373if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6374  $as_echo_n "(cached) " >&6
6375else
6376  lt_cv_sharedlib_from_linklib_cmd='unknown'
6377
6378case $host_os in
6379cygwin* | mingw* | pw32* | cegcc*)
6380  # two different shell functions defined in ltmain.sh;
6381  # decide which one to use based on capabilities of $DLLTOOL
6382  case `$DLLTOOL --help 2>&1` in
6383  *--identify-strict*)
6384    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6385    ;;
6386  *)
6387    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6388    ;;
6389  esac
6390  ;;
6391*)
6392  # fallback: assume linklib IS sharedlib
6393  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6394  ;;
6395esac
6396
6397fi
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6399$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6400sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6401test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6402
6403
6404
6405
6406
6407
6408
6409
6410if test -n "$ac_tool_prefix"; then
6411  for ac_prog in ar
6412  do
6413    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6414set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416$as_echo_n "checking for $ac_word... " >&6; }
6417if ${ac_cv_prog_AR+:} false; then :
6418  $as_echo_n "(cached) " >&6
6419else
6420  if test -n "$AR"; then
6421  ac_cv_prog_AR="$AR" # Let the user override the test.
6422else
6423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424for as_dir in $PATH
6425do
6426  IFS=$as_save_IFS
6427  test -z "$as_dir" && as_dir=.
6428    for ac_exec_ext in '' $ac_executable_extensions; do
6429  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6430    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432    break 2
6433  fi
6434done
6435  done
6436IFS=$as_save_IFS
6437
6438fi
6439fi
6440AR=$ac_cv_prog_AR
6441if test -n "$AR"; then
6442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6443$as_echo "$AR" >&6; }
6444else
6445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446$as_echo "no" >&6; }
6447fi
6448
6449
6450    test -n "$AR" && break
6451  done
6452fi
6453if test -z "$AR"; then
6454  ac_ct_AR=$AR
6455  for ac_prog in ar
6456do
6457  # Extract the first word of "$ac_prog", so it can be a program name with args.
6458set dummy $ac_prog; ac_word=$2
6459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460$as_echo_n "checking for $ac_word... " >&6; }
6461if ${ac_cv_prog_ac_ct_AR+:} false; then :
6462  $as_echo_n "(cached) " >&6
6463else
6464  if test -n "$ac_ct_AR"; then
6465  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6466else
6467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468for as_dir in $PATH
6469do
6470  IFS=$as_save_IFS
6471  test -z "$as_dir" && as_dir=.
6472    for ac_exec_ext in '' $ac_executable_extensions; do
6473  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6474    ac_cv_prog_ac_ct_AR="$ac_prog"
6475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476    break 2
6477  fi
6478done
6479  done
6480IFS=$as_save_IFS
6481
6482fi
6483fi
6484ac_ct_AR=$ac_cv_prog_ac_ct_AR
6485if test -n "$ac_ct_AR"; then
6486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6487$as_echo "$ac_ct_AR" >&6; }
6488else
6489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490$as_echo "no" >&6; }
6491fi
6492
6493
6494  test -n "$ac_ct_AR" && break
6495done
6496
6497  if test "x$ac_ct_AR" = x; then
6498    AR="false"
6499  else
6500    case $cross_compiling:$ac_tool_warned in
6501yes:)
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6504ac_tool_warned=yes ;;
6505esac
6506    AR=$ac_ct_AR
6507  fi
6508fi
6509
6510: ${AR=ar}
6511: ${AR_FLAGS=cru}
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6524$as_echo_n "checking for archiver @FILE support... " >&6; }
6525if ${lt_cv_ar_at_file+:} false; then :
6526  $as_echo_n "(cached) " >&6
6527else
6528  lt_cv_ar_at_file=no
6529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530/* end confdefs.h.  */
6531
6532int
6533main ()
6534{
6535
6536  ;
6537  return 0;
6538}
6539_ACEOF
6540if ac_fn_c_try_compile "$LINENO"; then :
6541  echo conftest.$ac_objext > conftest.lst
6542      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6543      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6544  (eval $lt_ar_try) 2>&5
6545  ac_status=$?
6546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547  test $ac_status = 0; }
6548      if test 0 -eq "$ac_status"; then
6549	# Ensure the archiver fails upon bogus file names.
6550	rm -f conftest.$ac_objext libconftest.a
6551	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6552  (eval $lt_ar_try) 2>&5
6553  ac_status=$?
6554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6555  test $ac_status = 0; }
6556	if test 0 -ne "$ac_status"; then
6557          lt_cv_ar_at_file=@
6558        fi
6559      fi
6560      rm -f conftest.* libconftest.a
6561
6562fi
6563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564
6565fi
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6567$as_echo "$lt_cv_ar_at_file" >&6; }
6568
6569if test no = "$lt_cv_ar_at_file"; then
6570  archiver_list_spec=
6571else
6572  archiver_list_spec=$lt_cv_ar_at_file
6573fi
6574
6575
6576
6577
6578
6579
6580
6581if test -n "$ac_tool_prefix"; then
6582  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6583set dummy ${ac_tool_prefix}strip; ac_word=$2
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6585$as_echo_n "checking for $ac_word... " >&6; }
6586if ${ac_cv_prog_STRIP+:} false; then :
6587  $as_echo_n "(cached) " >&6
6588else
6589  if test -n "$STRIP"; then
6590  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6591else
6592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593for as_dir in $PATH
6594do
6595  IFS=$as_save_IFS
6596  test -z "$as_dir" && as_dir=.
6597    for ac_exec_ext in '' $ac_executable_extensions; do
6598  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6599    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6600    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601    break 2
6602  fi
6603done
6604  done
6605IFS=$as_save_IFS
6606
6607fi
6608fi
6609STRIP=$ac_cv_prog_STRIP
6610if test -n "$STRIP"; then
6611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6612$as_echo "$STRIP" >&6; }
6613else
6614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615$as_echo "no" >&6; }
6616fi
6617
6618
6619fi
6620if test -z "$ac_cv_prog_STRIP"; then
6621  ac_ct_STRIP=$STRIP
6622  # Extract the first word of "strip", so it can be a program name with args.
6623set dummy strip; ac_word=$2
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625$as_echo_n "checking for $ac_word... " >&6; }
6626if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6627  $as_echo_n "(cached) " >&6
6628else
6629  if test -n "$ac_ct_STRIP"; then
6630  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6631else
6632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633for as_dir in $PATH
6634do
6635  IFS=$as_save_IFS
6636  test -z "$as_dir" && as_dir=.
6637    for ac_exec_ext in '' $ac_executable_extensions; do
6638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6639    ac_cv_prog_ac_ct_STRIP="strip"
6640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641    break 2
6642  fi
6643done
6644  done
6645IFS=$as_save_IFS
6646
6647fi
6648fi
6649ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6650if test -n "$ac_ct_STRIP"; then
6651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6652$as_echo "$ac_ct_STRIP" >&6; }
6653else
6654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655$as_echo "no" >&6; }
6656fi
6657
6658  if test "x$ac_ct_STRIP" = x; then
6659    STRIP=":"
6660  else
6661    case $cross_compiling:$ac_tool_warned in
6662yes:)
6663{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6665ac_tool_warned=yes ;;
6666esac
6667    STRIP=$ac_ct_STRIP
6668  fi
6669else
6670  STRIP="$ac_cv_prog_STRIP"
6671fi
6672
6673test -z "$STRIP" && STRIP=:
6674
6675
6676
6677
6678
6679
6680if test -n "$ac_tool_prefix"; then
6681  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6682set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684$as_echo_n "checking for $ac_word... " >&6; }
6685if ${ac_cv_prog_RANLIB+:} false; then :
6686  $as_echo_n "(cached) " >&6
6687else
6688  if test -n "$RANLIB"; then
6689  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6690else
6691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692for as_dir in $PATH
6693do
6694  IFS=$as_save_IFS
6695  test -z "$as_dir" && as_dir=.
6696    for ac_exec_ext in '' $ac_executable_extensions; do
6697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6698    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700    break 2
6701  fi
6702done
6703  done
6704IFS=$as_save_IFS
6705
6706fi
6707fi
6708RANLIB=$ac_cv_prog_RANLIB
6709if test -n "$RANLIB"; then
6710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6711$as_echo "$RANLIB" >&6; }
6712else
6713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714$as_echo "no" >&6; }
6715fi
6716
6717
6718fi
6719if test -z "$ac_cv_prog_RANLIB"; then
6720  ac_ct_RANLIB=$RANLIB
6721  # Extract the first word of "ranlib", so it can be a program name with args.
6722set dummy ranlib; ac_word=$2
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724$as_echo_n "checking for $ac_word... " >&6; }
6725if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6726  $as_echo_n "(cached) " >&6
6727else
6728  if test -n "$ac_ct_RANLIB"; then
6729  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6730else
6731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732for as_dir in $PATH
6733do
6734  IFS=$as_save_IFS
6735  test -z "$as_dir" && as_dir=.
6736    for ac_exec_ext in '' $ac_executable_extensions; do
6737  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6738    ac_cv_prog_ac_ct_RANLIB="ranlib"
6739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740    break 2
6741  fi
6742done
6743  done
6744IFS=$as_save_IFS
6745
6746fi
6747fi
6748ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6749if test -n "$ac_ct_RANLIB"; then
6750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6751$as_echo "$ac_ct_RANLIB" >&6; }
6752else
6753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754$as_echo "no" >&6; }
6755fi
6756
6757  if test "x$ac_ct_RANLIB" = x; then
6758    RANLIB=":"
6759  else
6760    case $cross_compiling:$ac_tool_warned in
6761yes:)
6762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6764ac_tool_warned=yes ;;
6765esac
6766    RANLIB=$ac_ct_RANLIB
6767  fi
6768else
6769  RANLIB="$ac_cv_prog_RANLIB"
6770fi
6771
6772test -z "$RANLIB" && RANLIB=:
6773
6774
6775
6776
6777
6778
6779# Determine commands to create old-style static archives.
6780old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6781old_postinstall_cmds='chmod 644 $oldlib'
6782old_postuninstall_cmds=
6783
6784if test -n "$RANLIB"; then
6785  case $host_os in
6786  bitrig* | openbsd*)
6787    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6788    ;;
6789  *)
6790    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6791    ;;
6792  esac
6793  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6794fi
6795
6796case $host_os in
6797  darwin*)
6798    lock_old_archive_extraction=yes ;;
6799  *)
6800    lock_old_archive_extraction=no ;;
6801esac
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823for ac_prog in gawk mawk nawk awk
6824do
6825  # Extract the first word of "$ac_prog", so it can be a program name with args.
6826set dummy $ac_prog; ac_word=$2
6827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828$as_echo_n "checking for $ac_word... " >&6; }
6829if ${ac_cv_prog_AWK+:} false; then :
6830  $as_echo_n "(cached) " >&6
6831else
6832  if test -n "$AWK"; then
6833  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6834else
6835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836for as_dir in $PATH
6837do
6838  IFS=$as_save_IFS
6839  test -z "$as_dir" && as_dir=.
6840    for ac_exec_ext in '' $ac_executable_extensions; do
6841  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6842    ac_cv_prog_AWK="$ac_prog"
6843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6844    break 2
6845  fi
6846done
6847  done
6848IFS=$as_save_IFS
6849
6850fi
6851fi
6852AWK=$ac_cv_prog_AWK
6853if test -n "$AWK"; then
6854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6855$as_echo "$AWK" >&6; }
6856else
6857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858$as_echo "no" >&6; }
6859fi
6860
6861
6862  test -n "$AWK" && break
6863done
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883# If no C compiler was specified, use CC.
6884LTCC=${LTCC-"$CC"}
6885
6886# If no C compiler flags were specified, use CFLAGS.
6887LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6888
6889# Allow CC to be a program name with arguments.
6890compiler=$CC
6891
6892
6893# Check for command to grab the raw symbol name followed by C symbol from nm.
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6895$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6896if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6897  $as_echo_n "(cached) " >&6
6898else
6899
6900# These are sane defaults that work on at least a few old systems.
6901# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6902
6903# Character class describing NM global symbol codes.
6904symcode='[BCDEGRST]'
6905
6906# Regexp to match symbols that can be accessed directly from C.
6907sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6908
6909# Define system-specific variables.
6910case $host_os in
6911aix*)
6912  symcode='[BCDT]'
6913  ;;
6914cygwin* | mingw* | pw32* | cegcc*)
6915  symcode='[ABCDGISTW]'
6916  ;;
6917hpux*)
6918  if test ia64 = "$host_cpu"; then
6919    symcode='[ABCDEGRST]'
6920  fi
6921  ;;
6922irix* | nonstopux*)
6923  symcode='[BCDEGRST]'
6924  ;;
6925osf*)
6926  symcode='[BCDEGQRST]'
6927  ;;
6928solaris*)
6929  symcode='[BDRT]'
6930  ;;
6931sco3.2v5*)
6932  symcode='[DT]'
6933  ;;
6934sysv4.2uw2*)
6935  symcode='[DT]'
6936  ;;
6937sysv5* | sco5v6* | unixware* | OpenUNIX*)
6938  symcode='[ABDT]'
6939  ;;
6940sysv4)
6941  symcode='[DFNSTU]'
6942  ;;
6943esac
6944
6945# If we're using GNU nm, then use its standard symbol codes.
6946case `$NM -V 2>&1` in
6947*GNU* | *'with BFD'*)
6948  symcode='[ABCDGIRSTW]' ;;
6949esac
6950
6951if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6952  # Gets list of data symbols to import.
6953  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6954  # Adjust the below global symbol transforms to fixup imported variables.
6955  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6956  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6957  lt_c_name_lib_hook="\
6958  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6959  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6960else
6961  # Disable hooks by default.
6962  lt_cv_sys_global_symbol_to_import=
6963  lt_cdecl_hook=
6964  lt_c_name_hook=
6965  lt_c_name_lib_hook=
6966fi
6967
6968# Transform an extracted symbol line into a proper C declaration.
6969# Some systems (esp. on ia64) link data and code symbols differently,
6970# so use this general approach.
6971lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6972$lt_cdecl_hook\
6973" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6974" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6975
6976# Transform an extracted symbol line into symbol name and symbol address
6977lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6978$lt_c_name_hook\
6979" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6980" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6981
6982# Transform an extracted symbol line into symbol name with lib prefix and
6983# symbol address.
6984lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6985$lt_c_name_lib_hook\
6986" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6987" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6988" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6989
6990# Handle CRLF in mingw tool chain
6991opt_cr=
6992case $build_os in
6993mingw*)
6994  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6995  ;;
6996esac
6997
6998# Try without a prefix underscore, then with it.
6999for ac_symprfx in "" "_"; do
7000
7001  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7002  symxfrm="\\1 $ac_symprfx\\2 \\2"
7003
7004  # Write the raw and C identifiers.
7005  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7006    # Fake it for dumpbin and say T for any non-static function,
7007    # D for any global variable and I for any imported variable.
7008    # Also find C++ and __fastcall symbols from MSVC++,
7009    # which start with @ or ?.
7010    lt_cv_sys_global_symbol_pipe="$AWK '"\
7011"     {last_section=section; section=\$ 3};"\
7012"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7013"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7014"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7015"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7016"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7017"     \$ 0!~/External *\|/{next};"\
7018"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7019"     {if(hide[section]) next};"\
7020"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7021"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7022"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7023"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7024"     ' prfx=^$ac_symprfx"
7025  else
7026    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7027  fi
7028  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7029
7030  # Check to see that the pipe works correctly.
7031  pipe_works=no
7032
7033  rm -f conftest*
7034  cat > conftest.$ac_ext <<_LT_EOF
7035#ifdef __cplusplus
7036extern "C" {
7037#endif
7038char nm_test_var;
7039void nm_test_func(void);
7040void nm_test_func(void){}
7041#ifdef __cplusplus
7042}
7043#endif
7044int main(){nm_test_var='a';nm_test_func();return(0);}
7045_LT_EOF
7046
7047  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7048  (eval $ac_compile) 2>&5
7049  ac_status=$?
7050  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7051  test $ac_status = 0; }; then
7052    # Now try to grab the symbols.
7053    nlist=conftest.nm
7054    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7055    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7056      # Try sorting and uniquifying the output.
7057      if sort "$nlist" | uniq > "$nlist"T; then
7058	mv -f "$nlist"T "$nlist"
7059      else
7060	rm -f "$nlist"T
7061      fi
7062
7063      # Make sure that we snagged all the symbols we need.
7064      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7065	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7066	  cat <<_LT_EOF > conftest.$ac_ext
7067/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7068#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7069/* DATA imports from DLLs on WIN32 can't be const, because runtime
7070   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7071# define LT_DLSYM_CONST
7072#elif defined __osf__
7073/* This system does not cope well with relocations in const data.  */
7074# define LT_DLSYM_CONST
7075#else
7076# define LT_DLSYM_CONST const
7077#endif
7078
7079#ifdef __cplusplus
7080extern "C" {
7081#endif
7082
7083_LT_EOF
7084	  # Now generate the symbol file.
7085	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7086
7087	  cat <<_LT_EOF >> conftest.$ac_ext
7088
7089/* The mapping between symbol names and symbols.  */
7090LT_DLSYM_CONST struct {
7091  const char *name;
7092  void       *address;
7093}
7094lt__PROGRAM__LTX_preloaded_symbols[] =
7095{
7096  { "@PROGRAM@", (void *) 0 },
7097_LT_EOF
7098	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7099	  cat <<\_LT_EOF >> conftest.$ac_ext
7100  {0, (void *) 0}
7101};
7102
7103/* This works around a problem in FreeBSD linker */
7104#ifdef FREEBSD_WORKAROUND
7105static const void *lt_preloaded_setup() {
7106  return lt__PROGRAM__LTX_preloaded_symbols;
7107}
7108#endif
7109
7110#ifdef __cplusplus
7111}
7112#endif
7113_LT_EOF
7114	  # Now try linking the two files.
7115	  mv conftest.$ac_objext conftstm.$ac_objext
7116	  lt_globsym_save_LIBS=$LIBS
7117	  lt_globsym_save_CFLAGS=$CFLAGS
7118	  LIBS=conftstm.$ac_objext
7119	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7120	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7121  (eval $ac_link) 2>&5
7122  ac_status=$?
7123  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7124  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7125	    pipe_works=yes
7126	  fi
7127	  LIBS=$lt_globsym_save_LIBS
7128	  CFLAGS=$lt_globsym_save_CFLAGS
7129	else
7130	  echo "cannot find nm_test_func in $nlist" >&5
7131	fi
7132      else
7133	echo "cannot find nm_test_var in $nlist" >&5
7134      fi
7135    else
7136      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7137    fi
7138  else
7139    echo "$progname: failed program was:" >&5
7140    cat conftest.$ac_ext >&5
7141  fi
7142  rm -rf conftest* conftst*
7143
7144  # Do not use the global_symbol_pipe unless it works.
7145  if test yes = "$pipe_works"; then
7146    break
7147  else
7148    lt_cv_sys_global_symbol_pipe=
7149  fi
7150done
7151
7152fi
7153
7154if test -z "$lt_cv_sys_global_symbol_pipe"; then
7155  lt_cv_sys_global_symbol_to_cdecl=
7156fi
7157if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7159$as_echo "failed" >&6; }
7160else
7161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7162$as_echo "ok" >&6; }
7163fi
7164
7165# Response file support.
7166if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7167  nm_file_list_spec='@'
7168elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7169  nm_file_list_spec='@'
7170fi
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7209$as_echo_n "checking for sysroot... " >&6; }
7210
7211# Check whether --with-sysroot was given.
7212if test "${with_sysroot+set}" = set; then :
7213  withval=$with_sysroot;
7214else
7215  with_sysroot=no
7216fi
7217
7218
7219lt_sysroot=
7220case $with_sysroot in #(
7221 yes)
7222   if test yes = "$GCC"; then
7223     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7224   fi
7225   ;; #(
7226 /*)
7227   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7228   ;; #(
7229 no|'')
7230   ;; #(
7231 *)
7232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7233$as_echo "$with_sysroot" >&6; }
7234   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7235   ;;
7236esac
7237
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7239$as_echo "${lt_sysroot:-no}" >&6; }
7240
7241
7242
7243
7244
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7246$as_echo_n "checking for a working dd... " >&6; }
7247if ${ac_cv_path_lt_DD+:} false; then :
7248  $as_echo_n "(cached) " >&6
7249else
7250  printf 0123456789abcdef0123456789abcdef >conftest.i
7251cat conftest.i conftest.i >conftest2.i
7252: ${lt_DD:=$DD}
7253if test -z "$lt_DD"; then
7254  ac_path_lt_DD_found=false
7255  # Loop through the user's path and test for each of PROGNAME-LIST
7256  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257for as_dir in $PATH
7258do
7259  IFS=$as_save_IFS
7260  test -z "$as_dir" && as_dir=.
7261    for ac_prog in dd; do
7262    for ac_exec_ext in '' $ac_executable_extensions; do
7263      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7264      as_fn_executable_p "$ac_path_lt_DD" || continue
7265if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7266  cmp -s conftest.i conftest.out \
7267  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7268fi
7269      $ac_path_lt_DD_found && break 3
7270    done
7271  done
7272  done
7273IFS=$as_save_IFS
7274  if test -z "$ac_cv_path_lt_DD"; then
7275    :
7276  fi
7277else
7278  ac_cv_path_lt_DD=$lt_DD
7279fi
7280
7281rm -f conftest.i conftest2.i conftest.out
7282fi
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7284$as_echo "$ac_cv_path_lt_DD" >&6; }
7285
7286
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7288$as_echo_n "checking how to truncate binary pipes... " >&6; }
7289if ${lt_cv_truncate_bin+:} false; then :
7290  $as_echo_n "(cached) " >&6
7291else
7292  printf 0123456789abcdef0123456789abcdef >conftest.i
7293cat conftest.i conftest.i >conftest2.i
7294lt_cv_truncate_bin=
7295if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7296  cmp -s conftest.i conftest.out \
7297  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7298fi
7299rm -f conftest.i conftest2.i conftest.out
7300test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7301fi
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7303$as_echo "$lt_cv_truncate_bin" >&6; }
7304
7305
7306
7307
7308
7309
7310
7311# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7312func_cc_basename ()
7313{
7314    for cc_temp in $*""; do
7315      case $cc_temp in
7316        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7317        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7318        \-*) ;;
7319        *) break;;
7320      esac
7321    done
7322    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7323}
7324
7325# Check whether --enable-libtool-lock was given.
7326if test "${enable_libtool_lock+set}" = set; then :
7327  enableval=$enable_libtool_lock;
7328fi
7329
7330test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7331
7332# Some flags need to be propagated to the compiler or linker for good
7333# libtool support.
7334case $host in
7335ia64-*-hpux*)
7336  # Find out what ABI is being produced by ac_compile, and set mode
7337  # options accordingly.
7338  echo 'int i;' > conftest.$ac_ext
7339  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7340  (eval $ac_compile) 2>&5
7341  ac_status=$?
7342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7343  test $ac_status = 0; }; then
7344    case `/usr/bin/file conftest.$ac_objext` in
7345      *ELF-32*)
7346	HPUX_IA64_MODE=32
7347	;;
7348      *ELF-64*)
7349	HPUX_IA64_MODE=64
7350	;;
7351    esac
7352  fi
7353  rm -rf conftest*
7354  ;;
7355*-*-irix6*)
7356  # Find out what ABI is being produced by ac_compile, and set linker
7357  # options accordingly.
7358  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7359  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7360  (eval $ac_compile) 2>&5
7361  ac_status=$?
7362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7363  test $ac_status = 0; }; then
7364    if test yes = "$lt_cv_prog_gnu_ld"; then
7365      case `/usr/bin/file conftest.$ac_objext` in
7366	*32-bit*)
7367	  LD="${LD-ld} -melf32bsmip"
7368	  ;;
7369	*N32*)
7370	  LD="${LD-ld} -melf32bmipn32"
7371	  ;;
7372	*64-bit*)
7373	  LD="${LD-ld} -melf64bmip"
7374	;;
7375      esac
7376    else
7377      case `/usr/bin/file conftest.$ac_objext` in
7378	*32-bit*)
7379	  LD="${LD-ld} -32"
7380	  ;;
7381	*N32*)
7382	  LD="${LD-ld} -n32"
7383	  ;;
7384	*64-bit*)
7385	  LD="${LD-ld} -64"
7386	  ;;
7387      esac
7388    fi
7389  fi
7390  rm -rf conftest*
7391  ;;
7392
7393mips64*-*linux*)
7394  # Find out what ABI is being produced by ac_compile, and set linker
7395  # options accordingly.
7396  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7397  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7398  (eval $ac_compile) 2>&5
7399  ac_status=$?
7400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7401  test $ac_status = 0; }; then
7402    emul=elf
7403    case `/usr/bin/file conftest.$ac_objext` in
7404      *32-bit*)
7405	emul="${emul}32"
7406	;;
7407      *64-bit*)
7408	emul="${emul}64"
7409	;;
7410    esac
7411    case `/usr/bin/file conftest.$ac_objext` in
7412      *MSB*)
7413	emul="${emul}btsmip"
7414	;;
7415      *LSB*)
7416	emul="${emul}ltsmip"
7417	;;
7418    esac
7419    case `/usr/bin/file conftest.$ac_objext` in
7420      *N32*)
7421	emul="${emul}n32"
7422	;;
7423    esac
7424    LD="${LD-ld} -m $emul"
7425  fi
7426  rm -rf conftest*
7427  ;;
7428
7429x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7430s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7431  # Find out what ABI is being produced by ac_compile, and set linker
7432  # options accordingly.  Note that the listed cases only cover the
7433  # situations where additional linker options are needed (such as when
7434  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7435  # vice versa); the common cases where no linker options are needed do
7436  # not appear in the list.
7437  echo 'int i;' > conftest.$ac_ext
7438  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7439  (eval $ac_compile) 2>&5
7440  ac_status=$?
7441  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7442  test $ac_status = 0; }; then
7443    case `/usr/bin/file conftest.o` in
7444      *32-bit*)
7445	case $host in
7446	  x86_64-*kfreebsd*-gnu)
7447	    LD="${LD-ld} -m elf_i386_fbsd"
7448	    ;;
7449	  x86_64-*linux*)
7450	    case `/usr/bin/file conftest.o` in
7451	      *x86-64*)
7452		LD="${LD-ld} -m elf32_x86_64"
7453		;;
7454	      *)
7455		LD="${LD-ld} -m elf_i386"
7456		;;
7457	    esac
7458	    ;;
7459	  powerpc64le-*linux*)
7460	    LD="${LD-ld} -m elf32lppclinux"
7461	    ;;
7462	  powerpc64-*linux*)
7463	    LD="${LD-ld} -m elf32ppclinux"
7464	    ;;
7465	  s390x-*linux*)
7466	    LD="${LD-ld} -m elf_s390"
7467	    ;;
7468	  sparc64-*linux*)
7469	    LD="${LD-ld} -m elf32_sparc"
7470	    ;;
7471	esac
7472	;;
7473      *64-bit*)
7474	case $host in
7475	  x86_64-*kfreebsd*-gnu)
7476	    LD="${LD-ld} -m elf_x86_64_fbsd"
7477	    ;;
7478	  x86_64-*linux*)
7479	    LD="${LD-ld} -m elf_x86_64"
7480	    ;;
7481	  powerpcle-*linux*)
7482	    LD="${LD-ld} -m elf64lppc"
7483	    ;;
7484	  powerpc-*linux*)
7485	    LD="${LD-ld} -m elf64ppc"
7486	    ;;
7487	  s390*-*linux*|s390*-*tpf*)
7488	    LD="${LD-ld} -m elf64_s390"
7489	    ;;
7490	  sparc*-*linux*)
7491	    LD="${LD-ld} -m elf64_sparc"
7492	    ;;
7493	esac
7494	;;
7495    esac
7496  fi
7497  rm -rf conftest*
7498  ;;
7499
7500*-*-sco3.2v5*)
7501  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7502  SAVE_CFLAGS=$CFLAGS
7503  CFLAGS="$CFLAGS -belf"
7504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7505$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7506if ${lt_cv_cc_needs_belf+:} false; then :
7507  $as_echo_n "(cached) " >&6
7508else
7509  ac_ext=c
7510ac_cpp='$CPP $CPPFLAGS'
7511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7513ac_compiler_gnu=$ac_cv_c_compiler_gnu
7514
7515     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516/* end confdefs.h.  */
7517
7518int
7519main ()
7520{
7521
7522  ;
7523  return 0;
7524}
7525_ACEOF
7526if ac_fn_c_try_link "$LINENO"; then :
7527  lt_cv_cc_needs_belf=yes
7528else
7529  lt_cv_cc_needs_belf=no
7530fi
7531rm -f core conftest.err conftest.$ac_objext \
7532    conftest$ac_exeext conftest.$ac_ext
7533     ac_ext=c
7534ac_cpp='$CPP $CPPFLAGS'
7535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7537ac_compiler_gnu=$ac_cv_c_compiler_gnu
7538
7539fi
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7541$as_echo "$lt_cv_cc_needs_belf" >&6; }
7542  if test yes != "$lt_cv_cc_needs_belf"; then
7543    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7544    CFLAGS=$SAVE_CFLAGS
7545  fi
7546  ;;
7547*-*solaris*)
7548  # Find out what ABI is being produced by ac_compile, and set linker
7549  # options accordingly.
7550  echo 'int i;' > conftest.$ac_ext
7551  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7552  (eval $ac_compile) 2>&5
7553  ac_status=$?
7554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7555  test $ac_status = 0; }; then
7556    case `/usr/bin/file conftest.o` in
7557    *64-bit*)
7558      case $lt_cv_prog_gnu_ld in
7559      yes*)
7560        case $host in
7561        i?86-*-solaris*|x86_64-*-solaris*)
7562          LD="${LD-ld} -m elf_x86_64"
7563          ;;
7564        sparc*-*-solaris*)
7565          LD="${LD-ld} -m elf64_sparc"
7566          ;;
7567        esac
7568        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7569        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7570          LD=${LD-ld}_sol2
7571        fi
7572        ;;
7573      *)
7574	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7575	  LD="${LD-ld} -64"
7576	fi
7577	;;
7578      esac
7579      ;;
7580    esac
7581  fi
7582  rm -rf conftest*
7583  ;;
7584esac
7585
7586need_locks=$enable_libtool_lock
7587
7588if test -n "$ac_tool_prefix"; then
7589  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7590set dummy ${ac_tool_prefix}mt; ac_word=$2
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592$as_echo_n "checking for $ac_word... " >&6; }
7593if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7594  $as_echo_n "(cached) " >&6
7595else
7596  if test -n "$MANIFEST_TOOL"; then
7597  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7598else
7599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600for as_dir in $PATH
7601do
7602  IFS=$as_save_IFS
7603  test -z "$as_dir" && as_dir=.
7604    for ac_exec_ext in '' $ac_executable_extensions; do
7605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7606    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608    break 2
7609  fi
7610done
7611  done
7612IFS=$as_save_IFS
7613
7614fi
7615fi
7616MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7617if test -n "$MANIFEST_TOOL"; then
7618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7619$as_echo "$MANIFEST_TOOL" >&6; }
7620else
7621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622$as_echo "no" >&6; }
7623fi
7624
7625
7626fi
7627if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7628  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7629  # Extract the first word of "mt", so it can be a program name with args.
7630set dummy mt; ac_word=$2
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632$as_echo_n "checking for $ac_word... " >&6; }
7633if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7634  $as_echo_n "(cached) " >&6
7635else
7636  if test -n "$ac_ct_MANIFEST_TOOL"; then
7637  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7638else
7639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640for as_dir in $PATH
7641do
7642  IFS=$as_save_IFS
7643  test -z "$as_dir" && as_dir=.
7644    for ac_exec_ext in '' $ac_executable_extensions; do
7645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648    break 2
7649  fi
7650done
7651  done
7652IFS=$as_save_IFS
7653
7654fi
7655fi
7656ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7657if test -n "$ac_ct_MANIFEST_TOOL"; then
7658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7659$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7660else
7661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662$as_echo "no" >&6; }
7663fi
7664
7665  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7666    MANIFEST_TOOL=":"
7667  else
7668    case $cross_compiling:$ac_tool_warned in
7669yes:)
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7672ac_tool_warned=yes ;;
7673esac
7674    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7675  fi
7676else
7677  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7678fi
7679
7680test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7682$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7683if ${lt_cv_path_mainfest_tool+:} false; then :
7684  $as_echo_n "(cached) " >&6
7685else
7686  lt_cv_path_mainfest_tool=no
7687  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7688  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7689  cat conftest.err >&5
7690  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7691    lt_cv_path_mainfest_tool=yes
7692  fi
7693  rm -f conftest*
7694fi
7695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7696$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7697if test yes != "$lt_cv_path_mainfest_tool"; then
7698  MANIFEST_TOOL=:
7699fi
7700
7701
7702
7703
7704
7705
7706  case $host_os in
7707    rhapsody* | darwin*)
7708    if test -n "$ac_tool_prefix"; then
7709  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7710set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712$as_echo_n "checking for $ac_word... " >&6; }
7713if ${ac_cv_prog_DSYMUTIL+:} false; then :
7714  $as_echo_n "(cached) " >&6
7715else
7716  if test -n "$DSYMUTIL"; then
7717  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7718else
7719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720for as_dir in $PATH
7721do
7722  IFS=$as_save_IFS
7723  test -z "$as_dir" && as_dir=.
7724    for ac_exec_ext in '' $ac_executable_extensions; do
7725  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7726    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728    break 2
7729  fi
7730done
7731  done
7732IFS=$as_save_IFS
7733
7734fi
7735fi
7736DSYMUTIL=$ac_cv_prog_DSYMUTIL
7737if test -n "$DSYMUTIL"; then
7738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7739$as_echo "$DSYMUTIL" >&6; }
7740else
7741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742$as_echo "no" >&6; }
7743fi
7744
7745
7746fi
7747if test -z "$ac_cv_prog_DSYMUTIL"; then
7748  ac_ct_DSYMUTIL=$DSYMUTIL
7749  # Extract the first word of "dsymutil", so it can be a program name with args.
7750set dummy dsymutil; ac_word=$2
7751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752$as_echo_n "checking for $ac_word... " >&6; }
7753if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7754  $as_echo_n "(cached) " >&6
7755else
7756  if test -n "$ac_ct_DSYMUTIL"; then
7757  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7758else
7759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760for as_dir in $PATH
7761do
7762  IFS=$as_save_IFS
7763  test -z "$as_dir" && as_dir=.
7764    for ac_exec_ext in '' $ac_executable_extensions; do
7765  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7766    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768    break 2
7769  fi
7770done
7771  done
7772IFS=$as_save_IFS
7773
7774fi
7775fi
7776ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7777if test -n "$ac_ct_DSYMUTIL"; then
7778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7779$as_echo "$ac_ct_DSYMUTIL" >&6; }
7780else
7781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782$as_echo "no" >&6; }
7783fi
7784
7785  if test "x$ac_ct_DSYMUTIL" = x; then
7786    DSYMUTIL=":"
7787  else
7788    case $cross_compiling:$ac_tool_warned in
7789yes:)
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7792ac_tool_warned=yes ;;
7793esac
7794    DSYMUTIL=$ac_ct_DSYMUTIL
7795  fi
7796else
7797  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7798fi
7799
7800    if test -n "$ac_tool_prefix"; then
7801  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7802set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804$as_echo_n "checking for $ac_word... " >&6; }
7805if ${ac_cv_prog_NMEDIT+:} false; then :
7806  $as_echo_n "(cached) " >&6
7807else
7808  if test -n "$NMEDIT"; then
7809  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7810else
7811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812for as_dir in $PATH
7813do
7814  IFS=$as_save_IFS
7815  test -z "$as_dir" && as_dir=.
7816    for ac_exec_ext in '' $ac_executable_extensions; do
7817  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7818    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7820    break 2
7821  fi
7822done
7823  done
7824IFS=$as_save_IFS
7825
7826fi
7827fi
7828NMEDIT=$ac_cv_prog_NMEDIT
7829if test -n "$NMEDIT"; then
7830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7831$as_echo "$NMEDIT" >&6; }
7832else
7833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834$as_echo "no" >&6; }
7835fi
7836
7837
7838fi
7839if test -z "$ac_cv_prog_NMEDIT"; then
7840  ac_ct_NMEDIT=$NMEDIT
7841  # Extract the first word of "nmedit", so it can be a program name with args.
7842set dummy nmedit; ac_word=$2
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844$as_echo_n "checking for $ac_word... " >&6; }
7845if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7846  $as_echo_n "(cached) " >&6
7847else
7848  if test -n "$ac_ct_NMEDIT"; then
7849  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7850else
7851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852for as_dir in $PATH
7853do
7854  IFS=$as_save_IFS
7855  test -z "$as_dir" && as_dir=.
7856    for ac_exec_ext in '' $ac_executable_extensions; do
7857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7858    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860    break 2
7861  fi
7862done
7863  done
7864IFS=$as_save_IFS
7865
7866fi
7867fi
7868ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7869if test -n "$ac_ct_NMEDIT"; then
7870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7871$as_echo "$ac_ct_NMEDIT" >&6; }
7872else
7873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874$as_echo "no" >&6; }
7875fi
7876
7877  if test "x$ac_ct_NMEDIT" = x; then
7878    NMEDIT=":"
7879  else
7880    case $cross_compiling:$ac_tool_warned in
7881yes:)
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7884ac_tool_warned=yes ;;
7885esac
7886    NMEDIT=$ac_ct_NMEDIT
7887  fi
7888else
7889  NMEDIT="$ac_cv_prog_NMEDIT"
7890fi
7891
7892    if test -n "$ac_tool_prefix"; then
7893  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7894set dummy ${ac_tool_prefix}lipo; ac_word=$2
7895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896$as_echo_n "checking for $ac_word... " >&6; }
7897if ${ac_cv_prog_LIPO+:} false; then :
7898  $as_echo_n "(cached) " >&6
7899else
7900  if test -n "$LIPO"; then
7901  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7902else
7903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904for as_dir in $PATH
7905do
7906  IFS=$as_save_IFS
7907  test -z "$as_dir" && as_dir=.
7908    for ac_exec_ext in '' $ac_executable_extensions; do
7909  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7910    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7911    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7912    break 2
7913  fi
7914done
7915  done
7916IFS=$as_save_IFS
7917
7918fi
7919fi
7920LIPO=$ac_cv_prog_LIPO
7921if test -n "$LIPO"; then
7922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7923$as_echo "$LIPO" >&6; }
7924else
7925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926$as_echo "no" >&6; }
7927fi
7928
7929
7930fi
7931if test -z "$ac_cv_prog_LIPO"; then
7932  ac_ct_LIPO=$LIPO
7933  # Extract the first word of "lipo", so it can be a program name with args.
7934set dummy lipo; ac_word=$2
7935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936$as_echo_n "checking for $ac_word... " >&6; }
7937if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7938  $as_echo_n "(cached) " >&6
7939else
7940  if test -n "$ac_ct_LIPO"; then
7941  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7942else
7943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944for as_dir in $PATH
7945do
7946  IFS=$as_save_IFS
7947  test -z "$as_dir" && as_dir=.
7948    for ac_exec_ext in '' $ac_executable_extensions; do
7949  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950    ac_cv_prog_ac_ct_LIPO="lipo"
7951    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952    break 2
7953  fi
7954done
7955  done
7956IFS=$as_save_IFS
7957
7958fi
7959fi
7960ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7961if test -n "$ac_ct_LIPO"; then
7962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7963$as_echo "$ac_ct_LIPO" >&6; }
7964else
7965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966$as_echo "no" >&6; }
7967fi
7968
7969  if test "x$ac_ct_LIPO" = x; then
7970    LIPO=":"
7971  else
7972    case $cross_compiling:$ac_tool_warned in
7973yes:)
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7976ac_tool_warned=yes ;;
7977esac
7978    LIPO=$ac_ct_LIPO
7979  fi
7980else
7981  LIPO="$ac_cv_prog_LIPO"
7982fi
7983
7984    if test -n "$ac_tool_prefix"; then
7985  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7986set dummy ${ac_tool_prefix}otool; ac_word=$2
7987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7988$as_echo_n "checking for $ac_word... " >&6; }
7989if ${ac_cv_prog_OTOOL+:} false; then :
7990  $as_echo_n "(cached) " >&6
7991else
7992  if test -n "$OTOOL"; then
7993  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7994else
7995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996for as_dir in $PATH
7997do
7998  IFS=$as_save_IFS
7999  test -z "$as_dir" && as_dir=.
8000    for ac_exec_ext in '' $ac_executable_extensions; do
8001  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8002    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8003    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8004    break 2
8005  fi
8006done
8007  done
8008IFS=$as_save_IFS
8009
8010fi
8011fi
8012OTOOL=$ac_cv_prog_OTOOL
8013if test -n "$OTOOL"; then
8014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8015$as_echo "$OTOOL" >&6; }
8016else
8017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018$as_echo "no" >&6; }
8019fi
8020
8021
8022fi
8023if test -z "$ac_cv_prog_OTOOL"; then
8024  ac_ct_OTOOL=$OTOOL
8025  # Extract the first word of "otool", so it can be a program name with args.
8026set dummy otool; ac_word=$2
8027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028$as_echo_n "checking for $ac_word... " >&6; }
8029if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8030  $as_echo_n "(cached) " >&6
8031else
8032  if test -n "$ac_ct_OTOOL"; then
8033  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8034else
8035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036for as_dir in $PATH
8037do
8038  IFS=$as_save_IFS
8039  test -z "$as_dir" && as_dir=.
8040    for ac_exec_ext in '' $ac_executable_extensions; do
8041  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8042    ac_cv_prog_ac_ct_OTOOL="otool"
8043    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8044    break 2
8045  fi
8046done
8047  done
8048IFS=$as_save_IFS
8049
8050fi
8051fi
8052ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8053if test -n "$ac_ct_OTOOL"; then
8054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8055$as_echo "$ac_ct_OTOOL" >&6; }
8056else
8057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058$as_echo "no" >&6; }
8059fi
8060
8061  if test "x$ac_ct_OTOOL" = x; then
8062    OTOOL=":"
8063  else
8064    case $cross_compiling:$ac_tool_warned in
8065yes:)
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8068ac_tool_warned=yes ;;
8069esac
8070    OTOOL=$ac_ct_OTOOL
8071  fi
8072else
8073  OTOOL="$ac_cv_prog_OTOOL"
8074fi
8075
8076    if test -n "$ac_tool_prefix"; then
8077  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8078set dummy ${ac_tool_prefix}otool64; ac_word=$2
8079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080$as_echo_n "checking for $ac_word... " >&6; }
8081if ${ac_cv_prog_OTOOL64+:} false; then :
8082  $as_echo_n "(cached) " >&6
8083else
8084  if test -n "$OTOOL64"; then
8085  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8086else
8087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088for as_dir in $PATH
8089do
8090  IFS=$as_save_IFS
8091  test -z "$as_dir" && as_dir=.
8092    for ac_exec_ext in '' $ac_executable_extensions; do
8093  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8094    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096    break 2
8097  fi
8098done
8099  done
8100IFS=$as_save_IFS
8101
8102fi
8103fi
8104OTOOL64=$ac_cv_prog_OTOOL64
8105if test -n "$OTOOL64"; then
8106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8107$as_echo "$OTOOL64" >&6; }
8108else
8109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110$as_echo "no" >&6; }
8111fi
8112
8113
8114fi
8115if test -z "$ac_cv_prog_OTOOL64"; then
8116  ac_ct_OTOOL64=$OTOOL64
8117  # Extract the first word of "otool64", so it can be a program name with args.
8118set dummy otool64; ac_word=$2
8119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8120$as_echo_n "checking for $ac_word... " >&6; }
8121if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8122  $as_echo_n "(cached) " >&6
8123else
8124  if test -n "$ac_ct_OTOOL64"; then
8125  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8126else
8127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128for as_dir in $PATH
8129do
8130  IFS=$as_save_IFS
8131  test -z "$as_dir" && as_dir=.
8132    for ac_exec_ext in '' $ac_executable_extensions; do
8133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8134    ac_cv_prog_ac_ct_OTOOL64="otool64"
8135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8136    break 2
8137  fi
8138done
8139  done
8140IFS=$as_save_IFS
8141
8142fi
8143fi
8144ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8145if test -n "$ac_ct_OTOOL64"; then
8146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8147$as_echo "$ac_ct_OTOOL64" >&6; }
8148else
8149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150$as_echo "no" >&6; }
8151fi
8152
8153  if test "x$ac_ct_OTOOL64" = x; then
8154    OTOOL64=":"
8155  else
8156    case $cross_compiling:$ac_tool_warned in
8157yes:)
8158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8160ac_tool_warned=yes ;;
8161esac
8162    OTOOL64=$ac_ct_OTOOL64
8163  fi
8164else
8165  OTOOL64="$ac_cv_prog_OTOOL64"
8166fi
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8195$as_echo_n "checking for -single_module linker flag... " >&6; }
8196if ${lt_cv_apple_cc_single_mod+:} false; then :
8197  $as_echo_n "(cached) " >&6
8198else
8199  lt_cv_apple_cc_single_mod=no
8200      if test -z "$LT_MULTI_MODULE"; then
8201	# By default we will add the -single_module flag. You can override
8202	# by either setting the environment variable LT_MULTI_MODULE
8203	# non-empty at configure time, or by adding -multi_module to the
8204	# link flags.
8205	rm -rf libconftest.dylib*
8206	echo "int foo(void){return 1;}" > conftest.c
8207	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8208-dynamiclib -Wl,-single_module conftest.c" >&5
8209	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8210	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8211        _lt_result=$?
8212	# If there is a non-empty error log, and "single_module"
8213	# appears in it, assume the flag caused a linker warning
8214        if test -s conftest.err && $GREP single_module conftest.err; then
8215	  cat conftest.err >&5
8216	# Otherwise, if the output was created with a 0 exit code from
8217	# the compiler, it worked.
8218	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8219	  lt_cv_apple_cc_single_mod=yes
8220	else
8221	  cat conftest.err >&5
8222	fi
8223	rm -rf libconftest.dylib*
8224	rm -f conftest.*
8225      fi
8226fi
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8228$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8229
8230    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8231$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8232if ${lt_cv_ld_exported_symbols_list+:} false; then :
8233  $as_echo_n "(cached) " >&6
8234else
8235  lt_cv_ld_exported_symbols_list=no
8236      save_LDFLAGS=$LDFLAGS
8237      echo "_main" > conftest.sym
8238      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8239      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240/* end confdefs.h.  */
8241
8242int
8243main ()
8244{
8245
8246  ;
8247  return 0;
8248}
8249_ACEOF
8250if ac_fn_c_try_link "$LINENO"; then :
8251  lt_cv_ld_exported_symbols_list=yes
8252else
8253  lt_cv_ld_exported_symbols_list=no
8254fi
8255rm -f core conftest.err conftest.$ac_objext \
8256    conftest$ac_exeext conftest.$ac_ext
8257	LDFLAGS=$save_LDFLAGS
8258
8259fi
8260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8261$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8262
8263    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8264$as_echo_n "checking for -force_load linker flag... " >&6; }
8265if ${lt_cv_ld_force_load+:} false; then :
8266  $as_echo_n "(cached) " >&6
8267else
8268  lt_cv_ld_force_load=no
8269      cat > conftest.c << _LT_EOF
8270int forced_loaded() { return 2;}
8271_LT_EOF
8272      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8273      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8274      echo "$AR cru libconftest.a conftest.o" >&5
8275      $AR cru libconftest.a conftest.o 2>&5
8276      echo "$RANLIB libconftest.a" >&5
8277      $RANLIB libconftest.a 2>&5
8278      cat > conftest.c << _LT_EOF
8279int main() { return 0;}
8280_LT_EOF
8281      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8282      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8283      _lt_result=$?
8284      if test -s conftest.err && $GREP force_load conftest.err; then
8285	cat conftest.err >&5
8286      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8287	lt_cv_ld_force_load=yes
8288      else
8289	cat conftest.err >&5
8290      fi
8291        rm -f conftest.err libconftest.a conftest conftest.c
8292        rm -rf conftest.dSYM
8293
8294fi
8295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8296$as_echo "$lt_cv_ld_force_load" >&6; }
8297    case $host_os in
8298    rhapsody* | darwin1.[012])
8299      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8300    darwin1.*)
8301      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8302    darwin*) # darwin 5.x on
8303      # if running on 10.5 or later, the deployment target defaults
8304      # to the OS version, if on x86, and 10.4, the deployment
8305      # target defaults to 10.4. Don't you love it?
8306      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8307	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8308	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8309	10.[012][,.]*)
8310	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8311	10.*)
8312	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8313      esac
8314    ;;
8315  esac
8316    if test yes = "$lt_cv_apple_cc_single_mod"; then
8317      _lt_dar_single_mod='$single_module'
8318    fi
8319    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8320      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8321    else
8322      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8323    fi
8324    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8325      _lt_dsymutil='~$DSYMUTIL $lib || :'
8326    else
8327      _lt_dsymutil=
8328    fi
8329    ;;
8330  esac
8331
8332# func_munge_path_list VARIABLE PATH
8333# -----------------------------------
8334# VARIABLE is name of variable containing _space_ separated list of
8335# directories to be munged by the contents of PATH, which is string
8336# having a format:
8337# "DIR[:DIR]:"
8338#       string "DIR[ DIR]" will be prepended to VARIABLE
8339# ":DIR[:DIR]"
8340#       string "DIR[ DIR]" will be appended to VARIABLE
8341# "DIRP[:DIRP]::[DIRA:]DIRA"
8342#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8343#       "DIRA[ DIRA]" will be appended to VARIABLE
8344# "DIR[:DIR]"
8345#       VARIABLE will be replaced by "DIR[ DIR]"
8346func_munge_path_list ()
8347{
8348    case x$2 in
8349    x)
8350        ;;
8351    *:)
8352        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8353        ;;
8354    x:*)
8355        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8356        ;;
8357    *::*)
8358        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8359        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8360        ;;
8361    *)
8362        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8363        ;;
8364    esac
8365}
8366
8367ac_ext=c
8368ac_cpp='$CPP $CPPFLAGS'
8369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8371ac_compiler_gnu=$ac_cv_c_compiler_gnu
8372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8373$as_echo_n "checking how to run the C preprocessor... " >&6; }
8374# On Suns, sometimes $CPP names a directory.
8375if test -n "$CPP" && test -d "$CPP"; then
8376  CPP=
8377fi
8378if test -z "$CPP"; then
8379  if ${ac_cv_prog_CPP+:} false; then :
8380  $as_echo_n "(cached) " >&6
8381else
8382      # Double quotes because CPP needs to be expanded
8383    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8384    do
8385      ac_preproc_ok=false
8386for ac_c_preproc_warn_flag in '' yes
8387do
8388  # Use a header file that comes with gcc, so configuring glibc
8389  # with a fresh cross-compiler works.
8390  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8391  # <limits.h> exists even on freestanding compilers.
8392  # On the NeXT, cc -E runs the code through the compiler's parser,
8393  # not just through cpp. "Syntax error" is here to catch this case.
8394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395/* end confdefs.h.  */
8396#ifdef __STDC__
8397# include <limits.h>
8398#else
8399# include <assert.h>
8400#endif
8401		     Syntax error
8402_ACEOF
8403if ac_fn_c_try_cpp "$LINENO"; then :
8404
8405else
8406  # Broken: fails on valid input.
8407continue
8408fi
8409rm -f conftest.err conftest.i conftest.$ac_ext
8410
8411  # OK, works on sane cases.  Now check whether nonexistent headers
8412  # can be detected and how.
8413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414/* end confdefs.h.  */
8415#include <ac_nonexistent.h>
8416_ACEOF
8417if ac_fn_c_try_cpp "$LINENO"; then :
8418  # Broken: success on invalid input.
8419continue
8420else
8421  # Passes both tests.
8422ac_preproc_ok=:
8423break
8424fi
8425rm -f conftest.err conftest.i conftest.$ac_ext
8426
8427done
8428# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8429rm -f conftest.i conftest.err conftest.$ac_ext
8430if $ac_preproc_ok; then :
8431  break
8432fi
8433
8434    done
8435    ac_cv_prog_CPP=$CPP
8436
8437fi
8438  CPP=$ac_cv_prog_CPP
8439else
8440  ac_cv_prog_CPP=$CPP
8441fi
8442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8443$as_echo "$CPP" >&6; }
8444ac_preproc_ok=false
8445for ac_c_preproc_warn_flag in '' yes
8446do
8447  # Use a header file that comes with gcc, so configuring glibc
8448  # with a fresh cross-compiler works.
8449  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8450  # <limits.h> exists even on freestanding compilers.
8451  # On the NeXT, cc -E runs the code through the compiler's parser,
8452  # not just through cpp. "Syntax error" is here to catch this case.
8453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454/* end confdefs.h.  */
8455#ifdef __STDC__
8456# include <limits.h>
8457#else
8458# include <assert.h>
8459#endif
8460		     Syntax error
8461_ACEOF
8462if ac_fn_c_try_cpp "$LINENO"; then :
8463
8464else
8465  # Broken: fails on valid input.
8466continue
8467fi
8468rm -f conftest.err conftest.i conftest.$ac_ext
8469
8470  # OK, works on sane cases.  Now check whether nonexistent headers
8471  # can be detected and how.
8472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473/* end confdefs.h.  */
8474#include <ac_nonexistent.h>
8475_ACEOF
8476if ac_fn_c_try_cpp "$LINENO"; then :
8477  # Broken: success on invalid input.
8478continue
8479else
8480  # Passes both tests.
8481ac_preproc_ok=:
8482break
8483fi
8484rm -f conftest.err conftest.i conftest.$ac_ext
8485
8486done
8487# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8488rm -f conftest.i conftest.err conftest.$ac_ext
8489if $ac_preproc_ok; then :
8490
8491else
8492  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8494as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8495See \`config.log' for more details" "$LINENO" 5; }
8496fi
8497
8498ac_ext=c
8499ac_cpp='$CPP $CPPFLAGS'
8500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8502ac_compiler_gnu=$ac_cv_c_compiler_gnu
8503
8504
8505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8506$as_echo_n "checking for ANSI C header files... " >&6; }
8507if ${ac_cv_header_stdc+:} false; then :
8508  $as_echo_n "(cached) " >&6
8509else
8510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511/* end confdefs.h.  */
8512#include <stdlib.h>
8513#include <stdarg.h>
8514#include <string.h>
8515#include <float.h>
8516
8517int
8518main ()
8519{
8520
8521  ;
8522  return 0;
8523}
8524_ACEOF
8525if ac_fn_c_try_compile "$LINENO"; then :
8526  ac_cv_header_stdc=yes
8527else
8528  ac_cv_header_stdc=no
8529fi
8530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8531
8532if test $ac_cv_header_stdc = yes; then
8533  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535/* end confdefs.h.  */
8536#include <string.h>
8537
8538_ACEOF
8539if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8540  $EGREP "memchr" >/dev/null 2>&1; then :
8541
8542else
8543  ac_cv_header_stdc=no
8544fi
8545rm -f conftest*
8546
8547fi
8548
8549if test $ac_cv_header_stdc = yes; then
8550  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552/* end confdefs.h.  */
8553#include <stdlib.h>
8554
8555_ACEOF
8556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8557  $EGREP "free" >/dev/null 2>&1; then :
8558
8559else
8560  ac_cv_header_stdc=no
8561fi
8562rm -f conftest*
8563
8564fi
8565
8566if test $ac_cv_header_stdc = yes; then
8567  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8568  if test "$cross_compiling" = yes; then :
8569  :
8570else
8571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572/* end confdefs.h.  */
8573#include <ctype.h>
8574#include <stdlib.h>
8575#if ((' ' & 0x0FF) == 0x020)
8576# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8577# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8578#else
8579# define ISLOWER(c) \
8580		   (('a' <= (c) && (c) <= 'i') \
8581		     || ('j' <= (c) && (c) <= 'r') \
8582		     || ('s' <= (c) && (c) <= 'z'))
8583# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8584#endif
8585
8586#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8587int
8588main ()
8589{
8590  int i;
8591  for (i = 0; i < 256; i++)
8592    if (XOR (islower (i), ISLOWER (i))
8593	|| toupper (i) != TOUPPER (i))
8594      return 2;
8595  return 0;
8596}
8597_ACEOF
8598if ac_fn_c_try_run "$LINENO"; then :
8599
8600else
8601  ac_cv_header_stdc=no
8602fi
8603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8604  conftest.$ac_objext conftest.beam conftest.$ac_ext
8605fi
8606
8607fi
8608fi
8609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8610$as_echo "$ac_cv_header_stdc" >&6; }
8611if test $ac_cv_header_stdc = yes; then
8612
8613$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8614
8615fi
8616
8617# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8618for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8619		  inttypes.h stdint.h unistd.h
8620do :
8621  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8622ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8623"
8624if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8625  cat >>confdefs.h <<_ACEOF
8626#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8627_ACEOF
8628
8629fi
8630
8631done
8632
8633
8634for ac_header in dlfcn.h
8635do :
8636  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8637"
8638if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8639  cat >>confdefs.h <<_ACEOF
8640#define HAVE_DLFCN_H 1
8641_ACEOF
8642
8643fi
8644
8645done
8646
8647
8648
8649
8650
8651# Set options
8652enable_dlopen=yes
8653# Check whether --enable-static was given.
8654if test "${enable_static+set}" = set; then :
8655  enableval=$enable_static; p=${PACKAGE-default}
8656    case $enableval in
8657    yes) enable_static=yes ;;
8658    no) enable_static=no ;;
8659    *)
8660     enable_static=no
8661      # Look at the argument we got.  We use all the common list separators.
8662      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8663      for pkg in $enableval; do
8664	IFS=$lt_save_ifs
8665	if test "X$pkg" = "X$p"; then
8666	  enable_static=yes
8667	fi
8668      done
8669      IFS=$lt_save_ifs
8670      ;;
8671    esac
8672else
8673  enable_static=no
8674fi
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686  enable_win32_dll=no
8687
8688
8689            # Check whether --enable-shared was given.
8690if test "${enable_shared+set}" = set; then :
8691  enableval=$enable_shared; p=${PACKAGE-default}
8692    case $enableval in
8693    yes) enable_shared=yes ;;
8694    no) enable_shared=no ;;
8695    *)
8696      enable_shared=no
8697      # Look at the argument we got.  We use all the common list separators.
8698      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8699      for pkg in $enableval; do
8700	IFS=$lt_save_ifs
8701	if test "X$pkg" = "X$p"; then
8702	  enable_shared=yes
8703	fi
8704      done
8705      IFS=$lt_save_ifs
8706      ;;
8707    esac
8708else
8709  enable_shared=yes
8710fi
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722# Check whether --with-pic was given.
8723if test "${with_pic+set}" = set; then :
8724  withval=$with_pic; lt_p=${PACKAGE-default}
8725    case $withval in
8726    yes|no) pic_mode=$withval ;;
8727    *)
8728      pic_mode=default
8729      # Look at the argument we got.  We use all the common list separators.
8730      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8731      for lt_pkg in $withval; do
8732	IFS=$lt_save_ifs
8733	if test "X$lt_pkg" = "X$lt_p"; then
8734	  pic_mode=yes
8735	fi
8736      done
8737      IFS=$lt_save_ifs
8738      ;;
8739    esac
8740else
8741  pic_mode=default
8742fi
8743
8744
8745
8746
8747
8748
8749
8750
8751  # Check whether --enable-fast-install was given.
8752if test "${enable_fast_install+set}" = set; then :
8753  enableval=$enable_fast_install; p=${PACKAGE-default}
8754    case $enableval in
8755    yes) enable_fast_install=yes ;;
8756    no) enable_fast_install=no ;;
8757    *)
8758      enable_fast_install=no
8759      # Look at the argument we got.  We use all the common list separators.
8760      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8761      for pkg in $enableval; do
8762	IFS=$lt_save_ifs
8763	if test "X$pkg" = "X$p"; then
8764	  enable_fast_install=yes
8765	fi
8766      done
8767      IFS=$lt_save_ifs
8768      ;;
8769    esac
8770else
8771  enable_fast_install=yes
8772fi
8773
8774
8775
8776
8777
8778
8779
8780
8781  shared_archive_member_spec=
8782case $host,$enable_shared in
8783power*-*-aix[5-9]*,yes)
8784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8785$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8786
8787# Check whether --with-aix-soname was given.
8788if test "${with_aix_soname+set}" = set; then :
8789  withval=$with_aix_soname; case $withval in
8790    aix|svr4|both)
8791      ;;
8792    *)
8793      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8794      ;;
8795    esac
8796    lt_cv_with_aix_soname=$with_aix_soname
8797else
8798  if ${lt_cv_with_aix_soname+:} false; then :
8799  $as_echo_n "(cached) " >&6
8800else
8801  lt_cv_with_aix_soname=aix
8802fi
8803
8804    with_aix_soname=$lt_cv_with_aix_soname
8805fi
8806
8807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8808$as_echo "$with_aix_soname" >&6; }
8809  if test aix != "$with_aix_soname"; then
8810    # For the AIX way of multilib, we name the shared archive member
8811    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8812    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8813    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8814    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8815    if test 64 = "${OBJECT_MODE-32}"; then
8816      shared_archive_member_spec=shr_64
8817    else
8818      shared_archive_member_spec=shr
8819    fi
8820  fi
8821  ;;
8822*)
8823  with_aix_soname=aix
8824  ;;
8825esac
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836# This can be used to rebuild libtool when needed
8837LIBTOOL_DEPS=$ltmain
8838
8839# Always use our own libtool.
8840LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871test -z "$LN_S" && LN_S="ln -s"
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886if test -n "${ZSH_VERSION+set}"; then
8887   setopt NO_GLOB_SUBST
8888fi
8889
8890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8891$as_echo_n "checking for objdir... " >&6; }
8892if ${lt_cv_objdir+:} false; then :
8893  $as_echo_n "(cached) " >&6
8894else
8895  rm -f .libs 2>/dev/null
8896mkdir .libs 2>/dev/null
8897if test -d .libs; then
8898  lt_cv_objdir=.libs
8899else
8900  # MS-DOS does not allow filenames that begin with a dot.
8901  lt_cv_objdir=_libs
8902fi
8903rmdir .libs 2>/dev/null
8904fi
8905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8906$as_echo "$lt_cv_objdir" >&6; }
8907objdir=$lt_cv_objdir
8908
8909
8910
8911
8912
8913cat >>confdefs.h <<_ACEOF
8914#define LT_OBJDIR "$lt_cv_objdir/"
8915_ACEOF
8916
8917
8918
8919
8920case $host_os in
8921aix3*)
8922  # AIX sometimes has problems with the GCC collect2 program.  For some
8923  # reason, if we set the COLLECT_NAMES environment variable, the problems
8924  # vanish in a puff of smoke.
8925  if test set != "${COLLECT_NAMES+set}"; then
8926    COLLECT_NAMES=
8927    export COLLECT_NAMES
8928  fi
8929  ;;
8930esac
8931
8932# Global variables:
8933ofile=libtool
8934can_build_shared=yes
8935
8936# All known linkers require a '.a' archive for static linking (except MSVC,
8937# which needs '.lib').
8938libext=a
8939
8940with_gnu_ld=$lt_cv_prog_gnu_ld
8941
8942old_CC=$CC
8943old_CFLAGS=$CFLAGS
8944
8945# Set sane defaults for various variables
8946test -z "$CC" && CC=cc
8947test -z "$LTCC" && LTCC=$CC
8948test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8949test -z "$LD" && LD=ld
8950test -z "$ac_objext" && ac_objext=o
8951
8952func_cc_basename $compiler
8953cc_basename=$func_cc_basename_result
8954
8955
8956# Only perform the check for file, if the check method requires it
8957test -z "$MAGIC_CMD" && MAGIC_CMD=file
8958case $deplibs_check_method in
8959file_magic*)
8960  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8961    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8962$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8963if ${lt_cv_path_MAGIC_CMD+:} false; then :
8964  $as_echo_n "(cached) " >&6
8965else
8966  case $MAGIC_CMD in
8967[\\/*] |  ?:[\\/]*)
8968  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8969  ;;
8970*)
8971  lt_save_MAGIC_CMD=$MAGIC_CMD
8972  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8973  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8974  for ac_dir in $ac_dummy; do
8975    IFS=$lt_save_ifs
8976    test -z "$ac_dir" && ac_dir=.
8977    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8978      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8979      if test -n "$file_magic_test_file"; then
8980	case $deplibs_check_method in
8981	"file_magic "*)
8982	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8983	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8984	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8985	    $EGREP "$file_magic_regex" > /dev/null; then
8986	    :
8987	  else
8988	    cat <<_LT_EOF 1>&2
8989
8990*** Warning: the command libtool uses to detect shared libraries,
8991*** $file_magic_cmd, produces output that libtool cannot recognize.
8992*** The result is that libtool may fail to recognize shared libraries
8993*** as such.  This will affect the creation of libtool libraries that
8994*** depend on shared libraries, but programs linked with such libtool
8995*** libraries will work regardless of this problem.  Nevertheless, you
8996*** may want to report the problem to your system manager and/or to
8997*** bug-libtool@gnu.org
8998
8999_LT_EOF
9000	  fi ;;
9001	esac
9002      fi
9003      break
9004    fi
9005  done
9006  IFS=$lt_save_ifs
9007  MAGIC_CMD=$lt_save_MAGIC_CMD
9008  ;;
9009esac
9010fi
9011
9012MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9013if test -n "$MAGIC_CMD"; then
9014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9015$as_echo "$MAGIC_CMD" >&6; }
9016else
9017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9018$as_echo "no" >&6; }
9019fi
9020
9021
9022
9023
9024
9025if test -z "$lt_cv_path_MAGIC_CMD"; then
9026  if test -n "$ac_tool_prefix"; then
9027    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9028$as_echo_n "checking for file... " >&6; }
9029if ${lt_cv_path_MAGIC_CMD+:} false; then :
9030  $as_echo_n "(cached) " >&6
9031else
9032  case $MAGIC_CMD in
9033[\\/*] |  ?:[\\/]*)
9034  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9035  ;;
9036*)
9037  lt_save_MAGIC_CMD=$MAGIC_CMD
9038  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9039  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9040  for ac_dir in $ac_dummy; do
9041    IFS=$lt_save_ifs
9042    test -z "$ac_dir" && ac_dir=.
9043    if test -f "$ac_dir/file"; then
9044      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9045      if test -n "$file_magic_test_file"; then
9046	case $deplibs_check_method in
9047	"file_magic "*)
9048	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9049	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9050	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9051	    $EGREP "$file_magic_regex" > /dev/null; then
9052	    :
9053	  else
9054	    cat <<_LT_EOF 1>&2
9055
9056*** Warning: the command libtool uses to detect shared libraries,
9057*** $file_magic_cmd, produces output that libtool cannot recognize.
9058*** The result is that libtool may fail to recognize shared libraries
9059*** as such.  This will affect the creation of libtool libraries that
9060*** depend on shared libraries, but programs linked with such libtool
9061*** libraries will work regardless of this problem.  Nevertheless, you
9062*** may want to report the problem to your system manager and/or to
9063*** bug-libtool@gnu.org
9064
9065_LT_EOF
9066	  fi ;;
9067	esac
9068      fi
9069      break
9070    fi
9071  done
9072  IFS=$lt_save_ifs
9073  MAGIC_CMD=$lt_save_MAGIC_CMD
9074  ;;
9075esac
9076fi
9077
9078MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9079if test -n "$MAGIC_CMD"; then
9080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9081$as_echo "$MAGIC_CMD" >&6; }
9082else
9083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084$as_echo "no" >&6; }
9085fi
9086
9087
9088  else
9089    MAGIC_CMD=:
9090  fi
9091fi
9092
9093  fi
9094  ;;
9095esac
9096
9097# Use C for the default configuration in the libtool script
9098
9099lt_save_CC=$CC
9100ac_ext=c
9101ac_cpp='$CPP $CPPFLAGS'
9102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9104ac_compiler_gnu=$ac_cv_c_compiler_gnu
9105
9106
9107# Source file extension for C test sources.
9108ac_ext=c
9109
9110# Object file extension for compiled C test sources.
9111objext=o
9112objext=$objext
9113
9114# Code to be used in simple compile tests
9115lt_simple_compile_test_code="int some_variable = 0;"
9116
9117# Code to be used in simple link tests
9118lt_simple_link_test_code='int main(){return(0);}'
9119
9120
9121
9122
9123
9124
9125
9126# If no C compiler was specified, use CC.
9127LTCC=${LTCC-"$CC"}
9128
9129# If no C compiler flags were specified, use CFLAGS.
9130LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9131
9132# Allow CC to be a program name with arguments.
9133compiler=$CC
9134
9135# Save the default compiler, since it gets overwritten when the other
9136# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9137compiler_DEFAULT=$CC
9138
9139# save warnings/boilerplate of simple test code
9140ac_outfile=conftest.$ac_objext
9141echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9142eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9143_lt_compiler_boilerplate=`cat conftest.err`
9144$RM conftest*
9145
9146ac_outfile=conftest.$ac_objext
9147echo "$lt_simple_link_test_code" >conftest.$ac_ext
9148eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9149_lt_linker_boilerplate=`cat conftest.err`
9150$RM -r conftest*
9151
9152
9153## CAVEAT EMPTOR:
9154## There is no encapsulation within the following macros, do not change
9155## the running order or otherwise move them around unless you know exactly
9156## what you are doing...
9157if test -n "$compiler"; then
9158
9159lt_prog_compiler_no_builtin_flag=
9160
9161if test yes = "$GCC"; then
9162  case $cc_basename in
9163  nvcc*)
9164    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9165  *)
9166    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9167  esac
9168
9169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9170$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9171if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9172  $as_echo_n "(cached) " >&6
9173else
9174  lt_cv_prog_compiler_rtti_exceptions=no
9175   ac_outfile=conftest.$ac_objext
9176   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9177   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9178   # Insert the option either (1) after the last *FLAGS variable, or
9179   # (2) before a word containing "conftest.", or (3) at the end.
9180   # Note that $ac_compile itself does not contain backslashes and begins
9181   # with a dollar sign (not a hyphen), so the echo should work correctly.
9182   # The option is referenced via a variable to avoid confusing sed.
9183   lt_compile=`echo "$ac_compile" | $SED \
9184   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9185   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9186   -e 's:$: $lt_compiler_flag:'`
9187   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9188   (eval "$lt_compile" 2>conftest.err)
9189   ac_status=$?
9190   cat conftest.err >&5
9191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192   if (exit $ac_status) && test -s "$ac_outfile"; then
9193     # The compiler can only warn and ignore the option if not recognized
9194     # So say no if there are warnings other than the usual output.
9195     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9196     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9197     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9198       lt_cv_prog_compiler_rtti_exceptions=yes
9199     fi
9200   fi
9201   $RM conftest*
9202
9203fi
9204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9205$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9206
9207if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9208    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9209else
9210    :
9211fi
9212
9213fi
9214
9215
9216
9217
9218
9219
9220  lt_prog_compiler_wl=
9221lt_prog_compiler_pic=
9222lt_prog_compiler_static=
9223
9224
9225  if test yes = "$GCC"; then
9226    lt_prog_compiler_wl='-Wl,'
9227    lt_prog_compiler_static='-static'
9228
9229    case $host_os in
9230      aix*)
9231      # All AIX code is PIC.
9232      if test ia64 = "$host_cpu"; then
9233	# AIX 5 now supports IA64 processor
9234	lt_prog_compiler_static='-Bstatic'
9235      fi
9236      lt_prog_compiler_pic='-fPIC'
9237      ;;
9238
9239    amigaos*)
9240      case $host_cpu in
9241      powerpc)
9242            # see comment about AmigaOS4 .so support
9243            lt_prog_compiler_pic='-fPIC'
9244        ;;
9245      m68k)
9246            # FIXME: we need at least 68020 code to build shared libraries, but
9247            # adding the '-m68020' flag to GCC prevents building anything better,
9248            # like '-m68040'.
9249            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9250        ;;
9251      esac
9252      ;;
9253
9254    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9255      # PIC is the default for these OSes.
9256      ;;
9257
9258    mingw* | cygwin* | pw32* | os2* | cegcc*)
9259      # This hack is so that the source file can tell whether it is being
9260      # built for inclusion in a dll (and should export symbols for example).
9261      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9262      # (--disable-auto-import) libraries
9263      lt_prog_compiler_pic='-DDLL_EXPORT'
9264      case $host_os in
9265      os2*)
9266	lt_prog_compiler_static='$wl-static'
9267	;;
9268      esac
9269      ;;
9270
9271    darwin* | rhapsody*)
9272      # PIC is the default on this platform
9273      # Common symbols not allowed in MH_DYLIB files
9274      lt_prog_compiler_pic='-fno-common'
9275      ;;
9276
9277    haiku*)
9278      # PIC is the default for Haiku.
9279      # The "-static" flag exists, but is broken.
9280      lt_prog_compiler_static=
9281      ;;
9282
9283    hpux*)
9284      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9285      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9286      # sets the default TLS model and affects inlining.
9287      case $host_cpu in
9288      hppa*64*)
9289	# +Z the default
9290	;;
9291      *)
9292	lt_prog_compiler_pic='-fPIC'
9293	;;
9294      esac
9295      ;;
9296
9297    interix[3-9]*)
9298      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9299      # Instead, we relocate shared libraries at runtime.
9300      ;;
9301
9302    msdosdjgpp*)
9303      # Just because we use GCC doesn't mean we suddenly get shared libraries
9304      # on systems that don't support them.
9305      lt_prog_compiler_can_build_shared=no
9306      enable_shared=no
9307      ;;
9308
9309    *nto* | *qnx*)
9310      # QNX uses GNU C++, but need to define -shared option too, otherwise
9311      # it will coredump.
9312      lt_prog_compiler_pic='-fPIC -shared'
9313      ;;
9314
9315    sysv4*MP*)
9316      if test -d /usr/nec; then
9317	lt_prog_compiler_pic=-Kconform_pic
9318      fi
9319      ;;
9320
9321    *)
9322      lt_prog_compiler_pic='-fPIC'
9323      ;;
9324    esac
9325
9326    case $cc_basename in
9327    nvcc*) # Cuda Compiler Driver 2.2
9328      lt_prog_compiler_wl='-Xlinker '
9329      if test -n "$lt_prog_compiler_pic"; then
9330        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9331      fi
9332      ;;
9333    esac
9334  else
9335    # PORTME Check for flag to pass linker flags through the system compiler.
9336    case $host_os in
9337    aix*)
9338      lt_prog_compiler_wl='-Wl,'
9339      if test ia64 = "$host_cpu"; then
9340	# AIX 5 now supports IA64 processor
9341	lt_prog_compiler_static='-Bstatic'
9342      else
9343	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9344      fi
9345      ;;
9346
9347    darwin* | rhapsody*)
9348      # PIC is the default on this platform
9349      # Common symbols not allowed in MH_DYLIB files
9350      lt_prog_compiler_pic='-fno-common'
9351      case $cc_basename in
9352      nagfor*)
9353        # NAG Fortran compiler
9354        lt_prog_compiler_wl='-Wl,-Wl,,'
9355        lt_prog_compiler_pic='-PIC'
9356        lt_prog_compiler_static='-Bstatic'
9357        ;;
9358      esac
9359      ;;
9360
9361    mingw* | cygwin* | pw32* | os2* | cegcc*)
9362      # This hack is so that the source file can tell whether it is being
9363      # built for inclusion in a dll (and should export symbols for example).
9364      lt_prog_compiler_pic='-DDLL_EXPORT'
9365      case $host_os in
9366      os2*)
9367	lt_prog_compiler_static='$wl-static'
9368	;;
9369      esac
9370      ;;
9371
9372    hpux9* | hpux10* | hpux11*)
9373      lt_prog_compiler_wl='-Wl,'
9374      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9375      # not for PA HP-UX.
9376      case $host_cpu in
9377      hppa*64*|ia64*)
9378	# +Z the default
9379	;;
9380      *)
9381	lt_prog_compiler_pic='+Z'
9382	;;
9383      esac
9384      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9385      lt_prog_compiler_static='$wl-a ${wl}archive'
9386      ;;
9387
9388    irix5* | irix6* | nonstopux*)
9389      lt_prog_compiler_wl='-Wl,'
9390      # PIC (with -KPIC) is the default.
9391      lt_prog_compiler_static='-non_shared'
9392      ;;
9393
9394    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9395      case $cc_basename in
9396      # old Intel for x86_64, which still supported -KPIC.
9397      ecc*)
9398	lt_prog_compiler_wl='-Wl,'
9399	lt_prog_compiler_pic='-KPIC'
9400	lt_prog_compiler_static='-static'
9401        ;;
9402      # icc used to be incompatible with GCC.
9403      # ICC 10 doesn't accept -KPIC any more.
9404      icc* | ifort*)
9405	lt_prog_compiler_wl='-Wl,'
9406	lt_prog_compiler_pic='-fPIC'
9407	lt_prog_compiler_static='-static'
9408        ;;
9409      # Lahey Fortran 8.1.
9410      lf95*)
9411	lt_prog_compiler_wl='-Wl,'
9412	lt_prog_compiler_pic='--shared'
9413	lt_prog_compiler_static='--static'
9414	;;
9415      nagfor*)
9416	# NAG Fortran compiler
9417	lt_prog_compiler_wl='-Wl,-Wl,,'
9418	lt_prog_compiler_pic='-PIC'
9419	lt_prog_compiler_static='-Bstatic'
9420	;;
9421      tcc*)
9422	# Fabrice Bellard et al's Tiny C Compiler
9423	lt_prog_compiler_wl='-Wl,'
9424	lt_prog_compiler_pic='-fPIC'
9425	lt_prog_compiler_static='-static'
9426	;;
9427      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9428        # Portland Group compilers (*not* the Pentium gcc compiler,
9429	# which looks to be a dead project)
9430	lt_prog_compiler_wl='-Wl,'
9431	lt_prog_compiler_pic='-fpic'
9432	lt_prog_compiler_static='-Bstatic'
9433        ;;
9434      ccc*)
9435        lt_prog_compiler_wl='-Wl,'
9436        # All Alpha code is PIC.
9437        lt_prog_compiler_static='-non_shared'
9438        ;;
9439      xl* | bgxl* | bgf* | mpixl*)
9440	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9441	lt_prog_compiler_wl='-Wl,'
9442	lt_prog_compiler_pic='-qpic'
9443	lt_prog_compiler_static='-qstaticlink'
9444	;;
9445      *)
9446	case `$CC -V 2>&1 | sed 5q` in
9447	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9448	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9449	  lt_prog_compiler_pic='-KPIC'
9450	  lt_prog_compiler_static='-Bstatic'
9451	  lt_prog_compiler_wl=''
9452	  ;;
9453	*Sun\ F* | *Sun*Fortran*)
9454	  lt_prog_compiler_pic='-KPIC'
9455	  lt_prog_compiler_static='-Bstatic'
9456	  lt_prog_compiler_wl='-Qoption ld '
9457	  ;;
9458	*Sun\ C*)
9459	  # Sun C 5.9
9460	  lt_prog_compiler_pic='-KPIC'
9461	  lt_prog_compiler_static='-Bstatic'
9462	  lt_prog_compiler_wl='-Wl,'
9463	  ;;
9464        *Intel*\ [CF]*Compiler*)
9465	  lt_prog_compiler_wl='-Wl,'
9466	  lt_prog_compiler_pic='-fPIC'
9467	  lt_prog_compiler_static='-static'
9468	  ;;
9469	*Portland\ Group*)
9470	  lt_prog_compiler_wl='-Wl,'
9471	  lt_prog_compiler_pic='-fpic'
9472	  lt_prog_compiler_static='-Bstatic'
9473	  ;;
9474	esac
9475	;;
9476      esac
9477      ;;
9478
9479    newsos6)
9480      lt_prog_compiler_pic='-KPIC'
9481      lt_prog_compiler_static='-Bstatic'
9482      ;;
9483
9484    *nto* | *qnx*)
9485      # QNX uses GNU C++, but need to define -shared option too, otherwise
9486      # it will coredump.
9487      lt_prog_compiler_pic='-fPIC -shared'
9488      ;;
9489
9490    osf3* | osf4* | osf5*)
9491      lt_prog_compiler_wl='-Wl,'
9492      # All OSF/1 code is PIC.
9493      lt_prog_compiler_static='-non_shared'
9494      ;;
9495
9496    rdos*)
9497      lt_prog_compiler_static='-non_shared'
9498      ;;
9499
9500    solaris*)
9501      lt_prog_compiler_pic='-KPIC'
9502      lt_prog_compiler_static='-Bstatic'
9503      case $cc_basename in
9504      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9505	lt_prog_compiler_wl='-Qoption ld ';;
9506      *)
9507	lt_prog_compiler_wl='-Wl,';;
9508      esac
9509      ;;
9510
9511    sunos4*)
9512      lt_prog_compiler_wl='-Qoption ld '
9513      lt_prog_compiler_pic='-PIC'
9514      lt_prog_compiler_static='-Bstatic'
9515      ;;
9516
9517    sysv4 | sysv4.2uw2* | sysv4.3*)
9518      lt_prog_compiler_wl='-Wl,'
9519      lt_prog_compiler_pic='-KPIC'
9520      lt_prog_compiler_static='-Bstatic'
9521      ;;
9522
9523    sysv4*MP*)
9524      if test -d /usr/nec; then
9525	lt_prog_compiler_pic='-Kconform_pic'
9526	lt_prog_compiler_static='-Bstatic'
9527      fi
9528      ;;
9529
9530    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9531      lt_prog_compiler_wl='-Wl,'
9532      lt_prog_compiler_pic='-KPIC'
9533      lt_prog_compiler_static='-Bstatic'
9534      ;;
9535
9536    unicos*)
9537      lt_prog_compiler_wl='-Wl,'
9538      lt_prog_compiler_can_build_shared=no
9539      ;;
9540
9541    uts4*)
9542      lt_prog_compiler_pic='-pic'
9543      lt_prog_compiler_static='-Bstatic'
9544      ;;
9545
9546    *)
9547      lt_prog_compiler_can_build_shared=no
9548      ;;
9549    esac
9550  fi
9551
9552case $host_os in
9553  # For platforms that do not support PIC, -DPIC is meaningless:
9554  *djgpp*)
9555    lt_prog_compiler_pic=
9556    ;;
9557  *)
9558    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9559    ;;
9560esac
9561
9562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9563$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9564if ${lt_cv_prog_compiler_pic+:} false; then :
9565  $as_echo_n "(cached) " >&6
9566else
9567  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9568fi
9569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9570$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9571lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9572
9573#
9574# Check to make sure the PIC flag actually works.
9575#
9576if test -n "$lt_prog_compiler_pic"; then
9577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9578$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9579if ${lt_cv_prog_compiler_pic_works+:} false; then :
9580  $as_echo_n "(cached) " >&6
9581else
9582  lt_cv_prog_compiler_pic_works=no
9583   ac_outfile=conftest.$ac_objext
9584   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9585   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9586   # Insert the option either (1) after the last *FLAGS variable, or
9587   # (2) before a word containing "conftest.", or (3) at the end.
9588   # Note that $ac_compile itself does not contain backslashes and begins
9589   # with a dollar sign (not a hyphen), so the echo should work correctly.
9590   # The option is referenced via a variable to avoid confusing sed.
9591   lt_compile=`echo "$ac_compile" | $SED \
9592   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9593   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9594   -e 's:$: $lt_compiler_flag:'`
9595   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9596   (eval "$lt_compile" 2>conftest.err)
9597   ac_status=$?
9598   cat conftest.err >&5
9599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   if (exit $ac_status) && test -s "$ac_outfile"; then
9601     # The compiler can only warn and ignore the option if not recognized
9602     # So say no if there are warnings other than the usual output.
9603     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9604     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9605     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9606       lt_cv_prog_compiler_pic_works=yes
9607     fi
9608   fi
9609   $RM conftest*
9610
9611fi
9612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9613$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9614
9615if test yes = "$lt_cv_prog_compiler_pic_works"; then
9616    case $lt_prog_compiler_pic in
9617     "" | " "*) ;;
9618     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9619     esac
9620else
9621    lt_prog_compiler_pic=
9622     lt_prog_compiler_can_build_shared=no
9623fi
9624
9625fi
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637#
9638# Check to make sure the static flag actually works.
9639#
9640wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9642$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9643if ${lt_cv_prog_compiler_static_works+:} false; then :
9644  $as_echo_n "(cached) " >&6
9645else
9646  lt_cv_prog_compiler_static_works=no
9647   save_LDFLAGS=$LDFLAGS
9648   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9649   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9650   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9651     # The linker can only warn and ignore the option if not recognized
9652     # So say no if there are warnings
9653     if test -s conftest.err; then
9654       # Append any errors to the config.log.
9655       cat conftest.err 1>&5
9656       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9657       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9658       if diff conftest.exp conftest.er2 >/dev/null; then
9659         lt_cv_prog_compiler_static_works=yes
9660       fi
9661     else
9662       lt_cv_prog_compiler_static_works=yes
9663     fi
9664   fi
9665   $RM -r conftest*
9666   LDFLAGS=$save_LDFLAGS
9667
9668fi
9669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9670$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9671
9672if test yes = "$lt_cv_prog_compiler_static_works"; then
9673    :
9674else
9675    lt_prog_compiler_static=
9676fi
9677
9678
9679
9680
9681
9682
9683
9684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9685$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9686if ${lt_cv_prog_compiler_c_o+:} false; then :
9687  $as_echo_n "(cached) " >&6
9688else
9689  lt_cv_prog_compiler_c_o=no
9690   $RM -r conftest 2>/dev/null
9691   mkdir conftest
9692   cd conftest
9693   mkdir out
9694   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9695
9696   lt_compiler_flag="-o out/conftest2.$ac_objext"
9697   # Insert the option either (1) after the last *FLAGS variable, or
9698   # (2) before a word containing "conftest.", or (3) at the end.
9699   # Note that $ac_compile itself does not contain backslashes and begins
9700   # with a dollar sign (not a hyphen), so the echo should work correctly.
9701   lt_compile=`echo "$ac_compile" | $SED \
9702   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9703   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9704   -e 's:$: $lt_compiler_flag:'`
9705   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9706   (eval "$lt_compile" 2>out/conftest.err)
9707   ac_status=$?
9708   cat out/conftest.err >&5
9709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9711   then
9712     # The compiler can only warn and ignore the option if not recognized
9713     # So say no if there are warnings
9714     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9715     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9716     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9717       lt_cv_prog_compiler_c_o=yes
9718     fi
9719   fi
9720   chmod u+w . 2>&5
9721   $RM conftest*
9722   # SGI C++ compiler will create directory out/ii_files/ for
9723   # template instantiation
9724   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9725   $RM out/* && rmdir out
9726   cd ..
9727   $RM -r conftest
9728   $RM conftest*
9729
9730fi
9731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9732$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9733
9734
9735
9736
9737
9738
9739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9740$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9741if ${lt_cv_prog_compiler_c_o+:} false; then :
9742  $as_echo_n "(cached) " >&6
9743else
9744  lt_cv_prog_compiler_c_o=no
9745   $RM -r conftest 2>/dev/null
9746   mkdir conftest
9747   cd conftest
9748   mkdir out
9749   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9750
9751   lt_compiler_flag="-o out/conftest2.$ac_objext"
9752   # Insert the option either (1) after the last *FLAGS variable, or
9753   # (2) before a word containing "conftest.", or (3) at the end.
9754   # Note that $ac_compile itself does not contain backslashes and begins
9755   # with a dollar sign (not a hyphen), so the echo should work correctly.
9756   lt_compile=`echo "$ac_compile" | $SED \
9757   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9758   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9759   -e 's:$: $lt_compiler_flag:'`
9760   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9761   (eval "$lt_compile" 2>out/conftest.err)
9762   ac_status=$?
9763   cat out/conftest.err >&5
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9766   then
9767     # The compiler can only warn and ignore the option if not recognized
9768     # So say no if there are warnings
9769     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9770     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9771     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9772       lt_cv_prog_compiler_c_o=yes
9773     fi
9774   fi
9775   chmod u+w . 2>&5
9776   $RM conftest*
9777   # SGI C++ compiler will create directory out/ii_files/ for
9778   # template instantiation
9779   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9780   $RM out/* && rmdir out
9781   cd ..
9782   $RM -r conftest
9783   $RM conftest*
9784
9785fi
9786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9787$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9788
9789
9790
9791
9792hard_links=nottested
9793if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9794  # do not overwrite the value of need_locks provided by the user
9795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9796$as_echo_n "checking if we can lock with hard links... " >&6; }
9797  hard_links=yes
9798  $RM conftest*
9799  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9800  touch conftest.a
9801  ln conftest.a conftest.b 2>&5 || hard_links=no
9802  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9804$as_echo "$hard_links" >&6; }
9805  if test no = "$hard_links"; then
9806    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9807$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9808    need_locks=warn
9809  fi
9810else
9811  need_locks=no
9812fi
9813
9814
9815
9816
9817
9818
9819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9820$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9821
9822  runpath_var=
9823  allow_undefined_flag=
9824  always_export_symbols=no
9825  archive_cmds=
9826  archive_expsym_cmds=
9827  compiler_needs_object=no
9828  enable_shared_with_static_runtimes=no
9829  export_dynamic_flag_spec=
9830  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9831  hardcode_automatic=no
9832  hardcode_direct=no
9833  hardcode_direct_absolute=no
9834  hardcode_libdir_flag_spec=
9835  hardcode_libdir_separator=
9836  hardcode_minus_L=no
9837  hardcode_shlibpath_var=unsupported
9838  inherit_rpath=no
9839  link_all_deplibs=unknown
9840  module_cmds=
9841  module_expsym_cmds=
9842  old_archive_from_new_cmds=
9843  old_archive_from_expsyms_cmds=
9844  thread_safe_flag_spec=
9845  whole_archive_flag_spec=
9846  # include_expsyms should be a list of space-separated symbols to be *always*
9847  # included in the symbol list
9848  include_expsyms=
9849  # exclude_expsyms can be an extended regexp of symbols to exclude
9850  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9851  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9852  # as well as any symbol that contains 'd'.
9853  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9854  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9855  # platforms (ab)use it in PIC code, but their linkers get confused if
9856  # the symbol is explicitly referenced.  Since portable code cannot
9857  # rely on this symbol name, it's probably fine to never include it in
9858  # preloaded symbol tables.
9859  # Exclude shared library initialization/finalization symbols.
9860  extract_expsyms_cmds=
9861
9862  case $host_os in
9863  cygwin* | mingw* | pw32* | cegcc*)
9864    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9865    # When not using gcc, we currently assume that we are using
9866    # Microsoft Visual C++.
9867    if test yes != "$GCC"; then
9868      with_gnu_ld=no
9869    fi
9870    ;;
9871  interix*)
9872    # we just hope/assume this is gcc and not c89 (= MSVC++)
9873    with_gnu_ld=yes
9874    ;;
9875  openbsd* | bitrig*)
9876    with_gnu_ld=no
9877    ;;
9878  linux* | k*bsd*-gnu | gnu*)
9879    link_all_deplibs=no
9880    ;;
9881  esac
9882
9883  ld_shlibs=yes
9884
9885  # On some targets, GNU ld is compatible enough with the native linker
9886  # that we're better off using the native interface for both.
9887  lt_use_gnu_ld_interface=no
9888  if test yes = "$with_gnu_ld"; then
9889    case $host_os in
9890      aix*)
9891	# The AIX port of GNU ld has always aspired to compatibility
9892	# with the native linker.  However, as the warning in the GNU ld
9893	# block says, versions before 2.19.5* couldn't really create working
9894	# shared libraries, regardless of the interface used.
9895	case `$LD -v 2>&1` in
9896	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9897	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9898	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9899	  *)
9900	    lt_use_gnu_ld_interface=yes
9901	    ;;
9902	esac
9903	;;
9904      *)
9905	lt_use_gnu_ld_interface=yes
9906	;;
9907    esac
9908  fi
9909
9910  if test yes = "$lt_use_gnu_ld_interface"; then
9911    # If archive_cmds runs LD, not CC, wlarc should be empty
9912    wlarc='$wl'
9913
9914    # Set some defaults for GNU ld with shared library support. These
9915    # are reset later if shared libraries are not supported. Putting them
9916    # here allows them to be overridden if necessary.
9917    runpath_var=LD_RUN_PATH
9918    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9919    export_dynamic_flag_spec='$wl--export-dynamic'
9920    # ancient GNU ld didn't support --whole-archive et. al.
9921    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9922      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9923    else
9924      whole_archive_flag_spec=
9925    fi
9926    supports_anon_versioning=no
9927    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9928      *GNU\ gold*) supports_anon_versioning=yes ;;
9929      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9930      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9931      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9932      *\ 2.11.*) ;; # other 2.11 versions
9933      *) supports_anon_versioning=yes ;;
9934    esac
9935
9936    # See if GNU ld supports shared libraries.
9937    case $host_os in
9938    aix[3-9]*)
9939      # On AIX/PPC, the GNU linker is very broken
9940      if test ia64 != "$host_cpu"; then
9941	ld_shlibs=no
9942	cat <<_LT_EOF 1>&2
9943
9944*** Warning: the GNU linker, at least up to release 2.19, is reported
9945*** to be unable to reliably create shared libraries on AIX.
9946*** Therefore, libtool is disabling shared libraries support.  If you
9947*** really care for shared libraries, you may want to install binutils
9948*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9949*** You will then need to restart the configuration process.
9950
9951_LT_EOF
9952      fi
9953      ;;
9954
9955    amigaos*)
9956      case $host_cpu in
9957      powerpc)
9958            # see comment about AmigaOS4 .so support
9959            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9960            archive_expsym_cmds=''
9961        ;;
9962      m68k)
9963            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9964            hardcode_libdir_flag_spec='-L$libdir'
9965            hardcode_minus_L=yes
9966        ;;
9967      esac
9968      ;;
9969
9970    beos*)
9971      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9972	allow_undefined_flag=unsupported
9973	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9974	# support --undefined.  This deserves some investigation.  FIXME
9975	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9976      else
9977	ld_shlibs=no
9978      fi
9979      ;;
9980
9981    cygwin* | mingw* | pw32* | cegcc*)
9982      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9983      # as there is no search path for DLLs.
9984      hardcode_libdir_flag_spec='-L$libdir'
9985      export_dynamic_flag_spec='$wl--export-all-symbols'
9986      allow_undefined_flag=unsupported
9987      always_export_symbols=no
9988      enable_shared_with_static_runtimes=yes
9989      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9990      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9991
9992      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9993        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9994	# If the export-symbols file already is a .def file, use it as
9995	# is; otherwise, prepend EXPORTS...
9996	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9997          cp $export_symbols $output_objdir/$soname.def;
9998        else
9999          echo EXPORTS > $output_objdir/$soname.def;
10000          cat $export_symbols >> $output_objdir/$soname.def;
10001        fi~
10002        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10003      else
10004	ld_shlibs=no
10005      fi
10006      ;;
10007
10008    haiku*)
10009      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10010      link_all_deplibs=yes
10011      ;;
10012
10013    os2*)
10014      hardcode_libdir_flag_spec='-L$libdir'
10015      hardcode_minus_L=yes
10016      allow_undefined_flag=unsupported
10017      shrext_cmds=.dll
10018      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10019	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10020	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10021	$ECHO EXPORTS >> $output_objdir/$libname.def~
10022	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10023	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10024	emximp -o $lib $output_objdir/$libname.def'
10025      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10026	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10027	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10028	$ECHO EXPORTS >> $output_objdir/$libname.def~
10029	prefix_cmds="$SED"~
10030	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10031	  prefix_cmds="$prefix_cmds -e 1d";
10032	fi~
10033	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10034	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10035	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10036	emximp -o $lib $output_objdir/$libname.def'
10037      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10038      enable_shared_with_static_runtimes=yes
10039      ;;
10040
10041    interix[3-9]*)
10042      hardcode_direct=no
10043      hardcode_shlibpath_var=no
10044      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10045      export_dynamic_flag_spec='$wl-E'
10046      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10047      # Instead, shared libraries are loaded at an image base (0x10000000 by
10048      # default) and relocated if they conflict, which is a slow very memory
10049      # consuming and fragmenting process.  To avoid this, we pick a random,
10050      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10051      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10052      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10053      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10054      ;;
10055
10056    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10057      tmp_diet=no
10058      if test linux-dietlibc = "$host_os"; then
10059	case $cc_basename in
10060	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10061	esac
10062      fi
10063      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10064	 && test no = "$tmp_diet"
10065      then
10066	tmp_addflag=' $pic_flag'
10067	tmp_sharedflag='-shared'
10068	case $cc_basename,$host_cpu in
10069        pgcc*)				# Portland Group C compiler
10070	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10071	  tmp_addflag=' $pic_flag'
10072	  ;;
10073	pgf77* | pgf90* | pgf95* | pgfortran*)
10074					# Portland Group f77 and f90 compilers
10075	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10076	  tmp_addflag=' $pic_flag -Mnomain' ;;
10077	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10078	  tmp_addflag=' -i_dynamic' ;;
10079	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10080	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10081	ifc* | ifort*)			# Intel Fortran compiler
10082	  tmp_addflag=' -nofor_main' ;;
10083	lf95*)				# Lahey Fortran 8.1
10084	  whole_archive_flag_spec=
10085	  tmp_sharedflag='--shared' ;;
10086        nagfor*)                        # NAGFOR 5.3
10087          tmp_sharedflag='-Wl,-shared' ;;
10088	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10089	  tmp_sharedflag='-qmkshrobj'
10090	  tmp_addflag= ;;
10091	nvcc*)	# Cuda Compiler Driver 2.2
10092	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10093	  compiler_needs_object=yes
10094	  ;;
10095	esac
10096	case `$CC -V 2>&1 | sed 5q` in
10097	*Sun\ C*)			# Sun C 5.9
10098	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10099	  compiler_needs_object=yes
10100	  tmp_sharedflag='-G' ;;
10101	*Sun\ F*)			# Sun Fortran 8.3
10102	  tmp_sharedflag='-G' ;;
10103	esac
10104	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10105
10106        if test yes = "$supports_anon_versioning"; then
10107          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10108            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10109            echo "local: *; };" >> $output_objdir/$libname.ver~
10110            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10111        fi
10112
10113	case $cc_basename in
10114	tcc*)
10115	  export_dynamic_flag_spec='-rdynamic'
10116	  ;;
10117	xlf* | bgf* | bgxlf* | mpixlf*)
10118	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10119	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10120	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10121	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10122	  if test yes = "$supports_anon_versioning"; then
10123	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10124              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10125              echo "local: *; };" >> $output_objdir/$libname.ver~
10126              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10127	  fi
10128	  ;;
10129	esac
10130      else
10131        ld_shlibs=no
10132      fi
10133      ;;
10134
10135    netbsd* | netbsdelf*-gnu)
10136      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10137	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10138	wlarc=
10139      else
10140	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10141	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10142      fi
10143      ;;
10144
10145    solaris*)
10146      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10147	ld_shlibs=no
10148	cat <<_LT_EOF 1>&2
10149
10150*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10151*** create shared libraries on Solaris systems.  Therefore, libtool
10152*** is disabling shared libraries support.  We urge you to upgrade GNU
10153*** binutils to release 2.9.1 or newer.  Another option is to modify
10154*** your PATH or compiler configuration so that the native linker is
10155*** used, and then restart.
10156
10157_LT_EOF
10158      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10159	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10160	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10161      else
10162	ld_shlibs=no
10163      fi
10164      ;;
10165
10166    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10167      case `$LD -v 2>&1` in
10168        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10169	ld_shlibs=no
10170	cat <<_LT_EOF 1>&2
10171
10172*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10173*** reliably create shared libraries on SCO systems.  Therefore, libtool
10174*** is disabling shared libraries support.  We urge you to upgrade GNU
10175*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10176*** your PATH or compiler configuration so that the native linker is
10177*** used, and then restart.
10178
10179_LT_EOF
10180	;;
10181	*)
10182	  # For security reasons, it is highly recommended that you always
10183	  # use absolute paths for naming shared libraries, and exclude the
10184	  # DT_RUNPATH tag from executables and libraries.  But doing so
10185	  # requires that you compile everything twice, which is a pain.
10186	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10187	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10188	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10189	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10190	  else
10191	    ld_shlibs=no
10192	  fi
10193	;;
10194      esac
10195      ;;
10196
10197    sunos4*)
10198      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10199      wlarc=
10200      hardcode_direct=yes
10201      hardcode_shlibpath_var=no
10202      ;;
10203
10204    *)
10205      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10206	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10207	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10208      else
10209	ld_shlibs=no
10210      fi
10211      ;;
10212    esac
10213
10214    if test no = "$ld_shlibs"; then
10215      runpath_var=
10216      hardcode_libdir_flag_spec=
10217      export_dynamic_flag_spec=
10218      whole_archive_flag_spec=
10219    fi
10220  else
10221    # PORTME fill in a description of your system's linker (not GNU ld)
10222    case $host_os in
10223    aix3*)
10224      allow_undefined_flag=unsupported
10225      always_export_symbols=yes
10226      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10227      # Note: this linker hardcodes the directories in LIBPATH if there
10228      # are no directories specified by -L.
10229      hardcode_minus_L=yes
10230      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10231	# Neither direct hardcoding nor static linking is supported with a
10232	# broken collect2.
10233	hardcode_direct=unsupported
10234      fi
10235      ;;
10236
10237    aix[4-9]*)
10238      if test ia64 = "$host_cpu"; then
10239	# On IA64, the linker does run time linking by default, so we don't
10240	# have to do anything special.
10241	aix_use_runtimelinking=no
10242	exp_sym_flag='-Bexport'
10243	no_entry_flag=
10244      else
10245	# If we're using GNU nm, then we don't want the "-C" option.
10246	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10247	# Without the "-l" option, or with the "-B" option, AIX nm treats
10248	# weak defined symbols like other global defined symbols, whereas
10249	# GNU nm marks them as "W".
10250	# While the 'weak' keyword is ignored in the Export File, we need
10251	# it in the Import File for the 'aix-soname' feature, so we have
10252	# to replace the "-B" option with "-P" for AIX nm.
10253	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10254	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10255	else
10256	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10257	fi
10258	aix_use_runtimelinking=no
10259
10260	# Test if we are trying to use run time linking or normal
10261	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10262	# have runtime linking enabled, and use it for executables.
10263	# For shared libraries, we enable/disable runtime linking
10264	# depending on the kind of the shared library created -
10265	# when "with_aix_soname,aix_use_runtimelinking" is:
10266	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10267	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10268	#            lib.a           static archive
10269	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10270	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10271	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10272	#            lib.a(lib.so.V) shared, rtl:no
10273	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10274	#            lib.a           static archive
10275	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10276	  for ld_flag in $LDFLAGS; do
10277	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10278	    aix_use_runtimelinking=yes
10279	    break
10280	  fi
10281	  done
10282	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10283	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10284	    # so we don't have lib.a shared libs to link our executables.
10285	    # We have to force runtime linking in this case.
10286	    aix_use_runtimelinking=yes
10287	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10288	  fi
10289	  ;;
10290	esac
10291
10292	exp_sym_flag='-bexport'
10293	no_entry_flag='-bnoentry'
10294      fi
10295
10296      # When large executables or shared objects are built, AIX ld can
10297      # have problems creating the table of contents.  If linking a library
10298      # or program results in "error TOC overflow" add -mminimal-toc to
10299      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10300      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10301
10302      archive_cmds=''
10303      hardcode_direct=yes
10304      hardcode_direct_absolute=yes
10305      hardcode_libdir_separator=':'
10306      link_all_deplibs=yes
10307      file_list_spec='$wl-f,'
10308      case $with_aix_soname,$aix_use_runtimelinking in
10309      aix,*) ;; # traditional, no import file
10310      svr4,* | *,yes) # use import file
10311	# The Import File defines what to hardcode.
10312	hardcode_direct=no
10313	hardcode_direct_absolute=no
10314	;;
10315      esac
10316
10317      if test yes = "$GCC"; then
10318	case $host_os in aix4.[012]|aix4.[012].*)
10319	# We only want to do this on AIX 4.2 and lower, the check
10320	# below for broken collect2 doesn't work under 4.3+
10321	  collect2name=`$CC -print-prog-name=collect2`
10322	  if test -f "$collect2name" &&
10323	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10324	  then
10325	  # We have reworked collect2
10326	  :
10327	  else
10328	  # We have old collect2
10329	  hardcode_direct=unsupported
10330	  # It fails to find uninstalled libraries when the uninstalled
10331	  # path is not listed in the libpath.  Setting hardcode_minus_L
10332	  # to unsupported forces relinking
10333	  hardcode_minus_L=yes
10334	  hardcode_libdir_flag_spec='-L$libdir'
10335	  hardcode_libdir_separator=
10336	  fi
10337	  ;;
10338	esac
10339	shared_flag='-shared'
10340	if test yes = "$aix_use_runtimelinking"; then
10341	  shared_flag="$shared_flag "'$wl-G'
10342	fi
10343	# Need to ensure runtime linking is disabled for the traditional
10344	# shared library, or the linker may eventually find shared libraries
10345	# /with/ Import File - we do not want to mix them.
10346	shared_flag_aix='-shared'
10347	shared_flag_svr4='-shared $wl-G'
10348      else
10349	# not using gcc
10350	if test ia64 = "$host_cpu"; then
10351	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10352	# chokes on -Wl,-G. The following line is correct:
10353	  shared_flag='-G'
10354	else
10355	  if test yes = "$aix_use_runtimelinking"; then
10356	    shared_flag='$wl-G'
10357	  else
10358	    shared_flag='$wl-bM:SRE'
10359	  fi
10360	  shared_flag_aix='$wl-bM:SRE'
10361	  shared_flag_svr4='$wl-G'
10362	fi
10363      fi
10364
10365      export_dynamic_flag_spec='$wl-bexpall'
10366      # It seems that -bexpall does not export symbols beginning with
10367      # underscore (_), so it is better to generate a list of symbols to export.
10368      always_export_symbols=yes
10369      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10370	# Warning - without using the other runtime loading flags (-brtl),
10371	# -berok will link without error, but may produce a broken library.
10372	allow_undefined_flag='-berok'
10373        # Determine the default libpath from the value encoded in an
10374        # empty executable.
10375        if test set = "${lt_cv_aix_libpath+set}"; then
10376  aix_libpath=$lt_cv_aix_libpath
10377else
10378  if ${lt_cv_aix_libpath_+:} false; then :
10379  $as_echo_n "(cached) " >&6
10380else
10381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382/* end confdefs.h.  */
10383
10384int
10385main ()
10386{
10387
10388  ;
10389  return 0;
10390}
10391_ACEOF
10392if ac_fn_c_try_link "$LINENO"; then :
10393
10394  lt_aix_libpath_sed='
10395      /Import File Strings/,/^$/ {
10396	  /^0/ {
10397	      s/^0  *\([^ ]*\) *$/\1/
10398	      p
10399	  }
10400      }'
10401  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10402  # Check for a 64-bit object if we didn't find anything.
10403  if test -z "$lt_cv_aix_libpath_"; then
10404    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10405  fi
10406fi
10407rm -f core conftest.err conftest.$ac_objext \
10408    conftest$ac_exeext conftest.$ac_ext
10409  if test -z "$lt_cv_aix_libpath_"; then
10410    lt_cv_aix_libpath_=/usr/lib:/lib
10411  fi
10412
10413fi
10414
10415  aix_libpath=$lt_cv_aix_libpath_
10416fi
10417
10418        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10419        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10420      else
10421	if test ia64 = "$host_cpu"; then
10422	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10423	  allow_undefined_flag="-z nodefs"
10424	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10425	else
10426	 # Determine the default libpath from the value encoded in an
10427	 # empty executable.
10428	 if test set = "${lt_cv_aix_libpath+set}"; then
10429  aix_libpath=$lt_cv_aix_libpath
10430else
10431  if ${lt_cv_aix_libpath_+:} false; then :
10432  $as_echo_n "(cached) " >&6
10433else
10434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435/* end confdefs.h.  */
10436
10437int
10438main ()
10439{
10440
10441  ;
10442  return 0;
10443}
10444_ACEOF
10445if ac_fn_c_try_link "$LINENO"; then :
10446
10447  lt_aix_libpath_sed='
10448      /Import File Strings/,/^$/ {
10449	  /^0/ {
10450	      s/^0  *\([^ ]*\) *$/\1/
10451	      p
10452	  }
10453      }'
10454  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10455  # Check for a 64-bit object if we didn't find anything.
10456  if test -z "$lt_cv_aix_libpath_"; then
10457    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10458  fi
10459fi
10460rm -f core conftest.err conftest.$ac_objext \
10461    conftest$ac_exeext conftest.$ac_ext
10462  if test -z "$lt_cv_aix_libpath_"; then
10463    lt_cv_aix_libpath_=/usr/lib:/lib
10464  fi
10465
10466fi
10467
10468  aix_libpath=$lt_cv_aix_libpath_
10469fi
10470
10471	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10472	  # Warning - without using the other run time loading flags,
10473	  # -berok will link without error, but may produce a broken library.
10474	  no_undefined_flag=' $wl-bernotok'
10475	  allow_undefined_flag=' $wl-berok'
10476	  if test yes = "$with_gnu_ld"; then
10477	    # We only use this code for GNU lds that support --whole-archive.
10478	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10479	  else
10480	    # Exported symbols can be pulled into shared objects from archives
10481	    whole_archive_flag_spec='$convenience'
10482	  fi
10483	  archive_cmds_need_lc=yes
10484	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10485	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10486	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10487	  if test svr4 != "$with_aix_soname"; then
10488	    # This is similar to how AIX traditionally builds its shared libraries.
10489	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10490	  fi
10491	  if test aix != "$with_aix_soname"; then
10492	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10493	  else
10494	    # used by -dlpreopen to get the symbols
10495	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10496	  fi
10497	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10498	fi
10499      fi
10500      ;;
10501
10502    amigaos*)
10503      case $host_cpu in
10504      powerpc)
10505            # see comment about AmigaOS4 .so support
10506            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10507            archive_expsym_cmds=''
10508        ;;
10509      m68k)
10510            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10511            hardcode_libdir_flag_spec='-L$libdir'
10512            hardcode_minus_L=yes
10513        ;;
10514      esac
10515      ;;
10516
10517    bsdi[45]*)
10518      export_dynamic_flag_spec=-rdynamic
10519      ;;
10520
10521    cygwin* | mingw* | pw32* | cegcc*)
10522      # When not using gcc, we currently assume that we are using
10523      # Microsoft Visual C++.
10524      # hardcode_libdir_flag_spec is actually meaningless, as there is
10525      # no search path for DLLs.
10526      case $cc_basename in
10527      cl*)
10528	# Native MSVC
10529	hardcode_libdir_flag_spec=' '
10530	allow_undefined_flag=unsupported
10531	always_export_symbols=yes
10532	file_list_spec='@'
10533	# Tell ltmain to make .lib files, not .a files.
10534	libext=lib
10535	# Tell ltmain to make .dll files, not .so files.
10536	shrext_cmds=.dll
10537	# FIXME: Setting linknames here is a bad hack.
10538	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10539	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10540            cp "$export_symbols" "$output_objdir/$soname.def";
10541            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10542          else
10543            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10544          fi~
10545          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10546          linknames='
10547	# The linker will not automatically build a static lib if we build a DLL.
10548	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10549	enable_shared_with_static_runtimes=yes
10550	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10551	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10552	# Don't use ranlib
10553	old_postinstall_cmds='chmod 644 $oldlib'
10554	postlink_cmds='lt_outputfile="@OUTPUT@"~
10555          lt_tool_outputfile="@TOOL_OUTPUT@"~
10556          case $lt_outputfile in
10557            *.exe|*.EXE) ;;
10558            *)
10559              lt_outputfile=$lt_outputfile.exe
10560              lt_tool_outputfile=$lt_tool_outputfile.exe
10561              ;;
10562          esac~
10563          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10564            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10565            $RM "$lt_outputfile.manifest";
10566          fi'
10567	;;
10568      *)
10569	# Assume MSVC wrapper
10570	hardcode_libdir_flag_spec=' '
10571	allow_undefined_flag=unsupported
10572	# Tell ltmain to make .lib files, not .a files.
10573	libext=lib
10574	# Tell ltmain to make .dll files, not .so files.
10575	shrext_cmds=.dll
10576	# FIXME: Setting linknames here is a bad hack.
10577	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10578	# The linker will automatically build a .lib file if we build a DLL.
10579	old_archive_from_new_cmds='true'
10580	# FIXME: Should let the user specify the lib program.
10581	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10582	enable_shared_with_static_runtimes=yes
10583	;;
10584      esac
10585      ;;
10586
10587    darwin* | rhapsody*)
10588
10589
10590  archive_cmds_need_lc=no
10591  hardcode_direct=no
10592  hardcode_automatic=yes
10593  hardcode_shlibpath_var=unsupported
10594  if test yes = "$lt_cv_ld_force_load"; then
10595    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10596
10597  else
10598    whole_archive_flag_spec=''
10599  fi
10600  link_all_deplibs=yes
10601  allow_undefined_flag=$_lt_dar_allow_undefined
10602  case $cc_basename in
10603     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10604     *) _lt_dar_can_shared=$GCC ;;
10605  esac
10606  if test yes = "$_lt_dar_can_shared"; then
10607    output_verbose_link_cmd=func_echo_all
10608    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10609    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10610    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10611    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10612
10613  else
10614  ld_shlibs=no
10615  fi
10616
10617      ;;
10618
10619    dgux*)
10620      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10621      hardcode_libdir_flag_spec='-L$libdir'
10622      hardcode_shlibpath_var=no
10623      ;;
10624
10625    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10626    # support.  Future versions do this automatically, but an explicit c++rt0.o
10627    # does not break anything, and helps significantly (at the cost of a little
10628    # extra space).
10629    freebsd2.2*)
10630      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10631      hardcode_libdir_flag_spec='-R$libdir'
10632      hardcode_direct=yes
10633      hardcode_shlibpath_var=no
10634      ;;
10635
10636    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10637    freebsd2.*)
10638      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10639      hardcode_direct=yes
10640      hardcode_minus_L=yes
10641      hardcode_shlibpath_var=no
10642      ;;
10643
10644    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10645    freebsd* | dragonfly*)
10646      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10647      hardcode_libdir_flag_spec='-R$libdir'
10648      hardcode_direct=yes
10649      hardcode_shlibpath_var=no
10650      ;;
10651
10652    hpux9*)
10653      if test yes = "$GCC"; then
10654	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10655      else
10656	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10657      fi
10658      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10659      hardcode_libdir_separator=:
10660      hardcode_direct=yes
10661
10662      # hardcode_minus_L: Not really in the search PATH,
10663      # but as the default location of the library.
10664      hardcode_minus_L=yes
10665      export_dynamic_flag_spec='$wl-E'
10666      ;;
10667
10668    hpux10*)
10669      if test yes,no = "$GCC,$with_gnu_ld"; then
10670	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10671      else
10672	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10673      fi
10674      if test no = "$with_gnu_ld"; then
10675	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10676	hardcode_libdir_separator=:
10677	hardcode_direct=yes
10678	hardcode_direct_absolute=yes
10679	export_dynamic_flag_spec='$wl-E'
10680	# hardcode_minus_L: Not really in the search PATH,
10681	# but as the default location of the library.
10682	hardcode_minus_L=yes
10683      fi
10684      ;;
10685
10686    hpux11*)
10687      if test yes,no = "$GCC,$with_gnu_ld"; then
10688	case $host_cpu in
10689	hppa*64*)
10690	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10691	  ;;
10692	ia64*)
10693	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10694	  ;;
10695	*)
10696	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10697	  ;;
10698	esac
10699      else
10700	case $host_cpu in
10701	hppa*64*)
10702	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10703	  ;;
10704	ia64*)
10705	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10706	  ;;
10707	*)
10708
10709	  # Older versions of the 11.00 compiler do not understand -b yet
10710	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10711	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10712$as_echo_n "checking if $CC understands -b... " >&6; }
10713if ${lt_cv_prog_compiler__b+:} false; then :
10714  $as_echo_n "(cached) " >&6
10715else
10716  lt_cv_prog_compiler__b=no
10717   save_LDFLAGS=$LDFLAGS
10718   LDFLAGS="$LDFLAGS -b"
10719   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10720   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10721     # The linker can only warn and ignore the option if not recognized
10722     # So say no if there are warnings
10723     if test -s conftest.err; then
10724       # Append any errors to the config.log.
10725       cat conftest.err 1>&5
10726       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10727       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10728       if diff conftest.exp conftest.er2 >/dev/null; then
10729         lt_cv_prog_compiler__b=yes
10730       fi
10731     else
10732       lt_cv_prog_compiler__b=yes
10733     fi
10734   fi
10735   $RM -r conftest*
10736   LDFLAGS=$save_LDFLAGS
10737
10738fi
10739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10740$as_echo "$lt_cv_prog_compiler__b" >&6; }
10741
10742if test yes = "$lt_cv_prog_compiler__b"; then
10743    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10744else
10745    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10746fi
10747
10748	  ;;
10749	esac
10750      fi
10751      if test no = "$with_gnu_ld"; then
10752	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10753	hardcode_libdir_separator=:
10754
10755	case $host_cpu in
10756	hppa*64*|ia64*)
10757	  hardcode_direct=no
10758	  hardcode_shlibpath_var=no
10759	  ;;
10760	*)
10761	  hardcode_direct=yes
10762	  hardcode_direct_absolute=yes
10763	  export_dynamic_flag_spec='$wl-E'
10764
10765	  # hardcode_minus_L: Not really in the search PATH,
10766	  # but as the default location of the library.
10767	  hardcode_minus_L=yes
10768	  ;;
10769	esac
10770      fi
10771      ;;
10772
10773    irix5* | irix6* | nonstopux*)
10774      if test yes = "$GCC"; then
10775	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10776	# Try to use the -exported_symbol ld option, if it does not
10777	# work, assume that -exports_file does not work either and
10778	# implicitly export all symbols.
10779	# This should be the same for all languages, so no per-tag cache variable.
10780	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10781$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10782if ${lt_cv_irix_exported_symbol+:} false; then :
10783  $as_echo_n "(cached) " >&6
10784else
10785  save_LDFLAGS=$LDFLAGS
10786	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10787	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788/* end confdefs.h.  */
10789int foo (void) { return 0; }
10790_ACEOF
10791if ac_fn_c_try_link "$LINENO"; then :
10792  lt_cv_irix_exported_symbol=yes
10793else
10794  lt_cv_irix_exported_symbol=no
10795fi
10796rm -f core conftest.err conftest.$ac_objext \
10797    conftest$ac_exeext conftest.$ac_ext
10798           LDFLAGS=$save_LDFLAGS
10799fi
10800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10801$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10802	if test yes = "$lt_cv_irix_exported_symbol"; then
10803          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10804	fi
10805	link_all_deplibs=no
10806      else
10807	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10808	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10809      fi
10810      archive_cmds_need_lc='no'
10811      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10812      hardcode_libdir_separator=:
10813      inherit_rpath=yes
10814      link_all_deplibs=yes
10815      ;;
10816
10817    linux*)
10818      case $cc_basename in
10819      tcc*)
10820	# Fabrice Bellard et al's Tiny C Compiler
10821	ld_shlibs=yes
10822	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10823	;;
10824      esac
10825      ;;
10826
10827    netbsd* | netbsdelf*-gnu)
10828      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10829	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10830      else
10831	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10832      fi
10833      hardcode_libdir_flag_spec='-R$libdir'
10834      hardcode_direct=yes
10835      hardcode_shlibpath_var=no
10836      ;;
10837
10838    newsos6)
10839      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10840      hardcode_direct=yes
10841      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10842      hardcode_libdir_separator=:
10843      hardcode_shlibpath_var=no
10844      ;;
10845
10846    *nto* | *qnx*)
10847      ;;
10848
10849    openbsd* | bitrig*)
10850      if test -f /usr/libexec/ld.so; then
10851	hardcode_direct=yes
10852	hardcode_shlibpath_var=no
10853	hardcode_direct_absolute=yes
10854	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10855	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10856	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10857	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10858	  export_dynamic_flag_spec='$wl-E'
10859	else
10860	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10861	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10862	fi
10863      else
10864	ld_shlibs=no
10865      fi
10866      ;;
10867
10868    os2*)
10869      hardcode_libdir_flag_spec='-L$libdir'
10870      hardcode_minus_L=yes
10871      allow_undefined_flag=unsupported
10872      shrext_cmds=.dll
10873      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10874	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10875	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10876	$ECHO EXPORTS >> $output_objdir/$libname.def~
10877	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10878	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10879	emximp -o $lib $output_objdir/$libname.def'
10880      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10881	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10882	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10883	$ECHO EXPORTS >> $output_objdir/$libname.def~
10884	prefix_cmds="$SED"~
10885	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10886	  prefix_cmds="$prefix_cmds -e 1d";
10887	fi~
10888	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10889	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10890	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10891	emximp -o $lib $output_objdir/$libname.def'
10892      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10893      enable_shared_with_static_runtimes=yes
10894      ;;
10895
10896    osf3*)
10897      if test yes = "$GCC"; then
10898	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10899	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10900      else
10901	allow_undefined_flag=' -expect_unresolved \*'
10902	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10903      fi
10904      archive_cmds_need_lc='no'
10905      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10906      hardcode_libdir_separator=:
10907      ;;
10908
10909    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10910      if test yes = "$GCC"; then
10911	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10912	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10913	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10914      else
10915	allow_undefined_flag=' -expect_unresolved \*'
10916	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10917	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10918          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10919
10920	# Both c and cxx compiler support -rpath directly
10921	hardcode_libdir_flag_spec='-rpath $libdir'
10922      fi
10923      archive_cmds_need_lc='no'
10924      hardcode_libdir_separator=:
10925      ;;
10926
10927    solaris*)
10928      no_undefined_flag=' -z defs'
10929      if test yes = "$GCC"; then
10930	wlarc='$wl'
10931	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10932	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10933          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10934      else
10935	case `$CC -V 2>&1` in
10936	*"Compilers 5.0"*)
10937	  wlarc=''
10938	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10939	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10940            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10941	  ;;
10942	*)
10943	  wlarc='$wl'
10944	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10945	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10946            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10947	  ;;
10948	esac
10949      fi
10950      hardcode_libdir_flag_spec='-R$libdir'
10951      hardcode_shlibpath_var=no
10952      case $host_os in
10953      solaris2.[0-5] | solaris2.[0-5].*) ;;
10954      *)
10955	# The compiler driver will combine and reorder linker options,
10956	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10957	# but is careful enough not to reorder.
10958	# Supported since Solaris 2.6 (maybe 2.5.1?)
10959	if test yes = "$GCC"; then
10960	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10961	else
10962	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10963	fi
10964	;;
10965      esac
10966      link_all_deplibs=yes
10967      ;;
10968
10969    sunos4*)
10970      if test sequent = "$host_vendor"; then
10971	# Use $CC to link under sequent, because it throws in some extra .o
10972	# files that make .init and .fini sections work.
10973	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10974      else
10975	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10976      fi
10977      hardcode_libdir_flag_spec='-L$libdir'
10978      hardcode_direct=yes
10979      hardcode_minus_L=yes
10980      hardcode_shlibpath_var=no
10981      ;;
10982
10983    sysv4)
10984      case $host_vendor in
10985	sni)
10986	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10987	  hardcode_direct=yes # is this really true???
10988	;;
10989	siemens)
10990	  ## LD is ld it makes a PLAMLIB
10991	  ## CC just makes a GrossModule.
10992	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10993	  reload_cmds='$CC -r -o $output$reload_objs'
10994	  hardcode_direct=no
10995        ;;
10996	motorola)
10997	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10998	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10999	;;
11000      esac
11001      runpath_var='LD_RUN_PATH'
11002      hardcode_shlibpath_var=no
11003      ;;
11004
11005    sysv4.3*)
11006      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11007      hardcode_shlibpath_var=no
11008      export_dynamic_flag_spec='-Bexport'
11009      ;;
11010
11011    sysv4*MP*)
11012      if test -d /usr/nec; then
11013	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11014	hardcode_shlibpath_var=no
11015	runpath_var=LD_RUN_PATH
11016	hardcode_runpath_var=yes
11017	ld_shlibs=yes
11018      fi
11019      ;;
11020
11021    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11022      no_undefined_flag='$wl-z,text'
11023      archive_cmds_need_lc=no
11024      hardcode_shlibpath_var=no
11025      runpath_var='LD_RUN_PATH'
11026
11027      if test yes = "$GCC"; then
11028	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030      else
11031	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033      fi
11034      ;;
11035
11036    sysv5* | sco3.2v5* | sco5v6*)
11037      # Note: We CANNOT use -z defs as we might desire, because we do not
11038      # link with -lc, and that would cause any symbols used from libc to
11039      # always be unresolved, which means just about no library would
11040      # ever link correctly.  If we're not using GNU ld we use -z text
11041      # though, which does catch some bad symbols but isn't as heavy-handed
11042      # as -z defs.
11043      no_undefined_flag='$wl-z,text'
11044      allow_undefined_flag='$wl-z,nodefs'
11045      archive_cmds_need_lc=no
11046      hardcode_shlibpath_var=no
11047      hardcode_libdir_flag_spec='$wl-R,$libdir'
11048      hardcode_libdir_separator=':'
11049      link_all_deplibs=yes
11050      export_dynamic_flag_spec='$wl-Bexport'
11051      runpath_var='LD_RUN_PATH'
11052
11053      if test yes = "$GCC"; then
11054	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11055	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11056      else
11057	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11058	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11059      fi
11060      ;;
11061
11062    uts4*)
11063      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11064      hardcode_libdir_flag_spec='-L$libdir'
11065      hardcode_shlibpath_var=no
11066      ;;
11067
11068    *)
11069      ld_shlibs=no
11070      ;;
11071    esac
11072
11073    if test sni = "$host_vendor"; then
11074      case $host in
11075      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11076	export_dynamic_flag_spec='$wl-Blargedynsym'
11077	;;
11078      esac
11079    fi
11080  fi
11081
11082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11083$as_echo "$ld_shlibs" >&6; }
11084test no = "$ld_shlibs" && can_build_shared=no
11085
11086with_gnu_ld=$with_gnu_ld
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102#
11103# Do we need to explicitly link libc?
11104#
11105case "x$archive_cmds_need_lc" in
11106x|xyes)
11107  # Assume -lc should be added
11108  archive_cmds_need_lc=yes
11109
11110  if test yes,yes = "$GCC,$enable_shared"; then
11111    case $archive_cmds in
11112    *'~'*)
11113      # FIXME: we may have to deal with multi-command sequences.
11114      ;;
11115    '$CC '*)
11116      # Test whether the compiler implicitly links with -lc since on some
11117      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11118      # to ld, don't add -lc before -lgcc.
11119      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11120$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11121if ${lt_cv_archive_cmds_need_lc+:} false; then :
11122  $as_echo_n "(cached) " >&6
11123else
11124  $RM conftest*
11125	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11126
11127	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11128  (eval $ac_compile) 2>&5
11129  ac_status=$?
11130  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11131  test $ac_status = 0; } 2>conftest.err; then
11132	  soname=conftest
11133	  lib=conftest
11134	  libobjs=conftest.$ac_objext
11135	  deplibs=
11136	  wl=$lt_prog_compiler_wl
11137	  pic_flag=$lt_prog_compiler_pic
11138	  compiler_flags=-v
11139	  linker_flags=-v
11140	  verstring=
11141	  output_objdir=.
11142	  libname=conftest
11143	  lt_save_allow_undefined_flag=$allow_undefined_flag
11144	  allow_undefined_flag=
11145	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11146  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11147  ac_status=$?
11148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11149  test $ac_status = 0; }
11150	  then
11151	    lt_cv_archive_cmds_need_lc=no
11152	  else
11153	    lt_cv_archive_cmds_need_lc=yes
11154	  fi
11155	  allow_undefined_flag=$lt_save_allow_undefined_flag
11156	else
11157	  cat conftest.err 1>&5
11158	fi
11159	$RM conftest*
11160
11161fi
11162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11163$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11164      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11165      ;;
11166    esac
11167  fi
11168  ;;
11169esac
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11323$as_echo_n "checking dynamic linker characteristics... " >&6; }
11324
11325if test yes = "$GCC"; then
11326  case $host_os in
11327    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11328    *) lt_awk_arg='/^libraries:/' ;;
11329  esac
11330  case $host_os in
11331    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11332    *) lt_sed_strip_eq='s|=/|/|g' ;;
11333  esac
11334  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11335  case $lt_search_path_spec in
11336  *\;*)
11337    # if the path contains ";" then we assume it to be the separator
11338    # otherwise default to the standard path separator (i.e. ":") - it is
11339    # assumed that no part of a normal pathname contains ";" but that should
11340    # okay in the real world where ";" in dirpaths is itself problematic.
11341    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11342    ;;
11343  *)
11344    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11345    ;;
11346  esac
11347  # Ok, now we have the path, separated by spaces, we can step through it
11348  # and add multilib dir if necessary...
11349  lt_tmp_lt_search_path_spec=
11350  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11351  # ...but if some path component already ends with the multilib dir we assume
11352  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11353  case "$lt_multi_os_dir; $lt_search_path_spec " in
11354  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11355    lt_multi_os_dir=
11356    ;;
11357  esac
11358  for lt_sys_path in $lt_search_path_spec; do
11359    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11360      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11361    elif test -n "$lt_multi_os_dir"; then
11362      test -d "$lt_sys_path" && \
11363	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11364    fi
11365  done
11366  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11367BEGIN {RS = " "; FS = "/|\n";} {
11368  lt_foo = "";
11369  lt_count = 0;
11370  for (lt_i = NF; lt_i > 0; lt_i--) {
11371    if ($lt_i != "" && $lt_i != ".") {
11372      if ($lt_i == "..") {
11373        lt_count++;
11374      } else {
11375        if (lt_count == 0) {
11376          lt_foo = "/" $lt_i lt_foo;
11377        } else {
11378          lt_count--;
11379        }
11380      }
11381    }
11382  }
11383  if (lt_foo != "") { lt_freq[lt_foo]++; }
11384  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11385}'`
11386  # AWK program above erroneously prepends '/' to C:/dos/paths
11387  # for these hosts.
11388  case $host_os in
11389    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11390      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11391  esac
11392  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11393else
11394  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11395fi
11396library_names_spec=
11397libname_spec='lib$name'
11398soname_spec=
11399shrext_cmds=.so
11400postinstall_cmds=
11401postuninstall_cmds=
11402finish_cmds=
11403finish_eval=
11404shlibpath_var=
11405shlibpath_overrides_runpath=unknown
11406version_type=none
11407dynamic_linker="$host_os ld.so"
11408sys_lib_dlsearch_path_spec="/lib /usr/lib"
11409need_lib_prefix=unknown
11410hardcode_into_libs=no
11411
11412# when you set need_version to no, make sure it does not cause -set_version
11413# flags to be left without arguments
11414need_version=unknown
11415
11416
11417
11418case $host_os in
11419aix3*)
11420  version_type=linux # correct to gnu/linux during the next big refactor
11421  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11422  shlibpath_var=LIBPATH
11423
11424  # AIX 3 has no versioning support, so we append a major version to the name.
11425  soname_spec='$libname$release$shared_ext$major'
11426  ;;
11427
11428aix[4-9]*)
11429  version_type=linux # correct to gnu/linux during the next big refactor
11430  need_lib_prefix=no
11431  need_version=no
11432  hardcode_into_libs=yes
11433  if test ia64 = "$host_cpu"; then
11434    # AIX 5 supports IA64
11435    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11436    shlibpath_var=LD_LIBRARY_PATH
11437  else
11438    # With GCC up to 2.95.x, collect2 would create an import file
11439    # for dependence libraries.  The import file would start with
11440    # the line '#! .'.  This would cause the generated library to
11441    # depend on '.', always an invalid library.  This was fixed in
11442    # development snapshots of GCC prior to 3.0.
11443    case $host_os in
11444      aix4 | aix4.[01] | aix4.[01].*)
11445      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11446	   echo ' yes '
11447	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11448	:
11449      else
11450	can_build_shared=no
11451      fi
11452      ;;
11453    esac
11454    # Using Import Files as archive members, it is possible to support
11455    # filename-based versioning of shared library archives on AIX. While
11456    # this would work for both with and without runtime linking, it will
11457    # prevent static linking of such archives. So we do filename-based
11458    # shared library versioning with .so extension only, which is used
11459    # when both runtime linking and shared linking is enabled.
11460    # Unfortunately, runtime linking may impact performance, so we do
11461    # not want this to be the default eventually. Also, we use the
11462    # versioned .so libs for executables only if there is the -brtl
11463    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11464    # To allow for filename-based versioning support, we need to create
11465    # libNAME.so.V as an archive file, containing:
11466    # *) an Import File, referring to the versioned filename of the
11467    #    archive as well as the shared archive member, telling the
11468    #    bitwidth (32 or 64) of that shared object, and providing the
11469    #    list of exported symbols of that shared object, eventually
11470    #    decorated with the 'weak' keyword
11471    # *) the shared object with the F_LOADONLY flag set, to really avoid
11472    #    it being seen by the linker.
11473    # At run time we better use the real file rather than another symlink,
11474    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11475
11476    case $with_aix_soname,$aix_use_runtimelinking in
11477    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11478    # soname into executable. Probably we can add versioning support to
11479    # collect2, so additional links can be useful in future.
11480    aix,yes) # traditional libtool
11481      dynamic_linker='AIX unversionable lib.so'
11482      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11483      # instead of lib<name>.a to let people know that these are not
11484      # typical AIX shared libraries.
11485      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11486      ;;
11487    aix,no) # traditional AIX only
11488      dynamic_linker='AIX lib.a(lib.so.V)'
11489      # We preserve .a as extension for shared libraries through AIX4.2
11490      # and later when we are not doing run time linking.
11491      library_names_spec='$libname$release.a $libname.a'
11492      soname_spec='$libname$release$shared_ext$major'
11493      ;;
11494    svr4,*) # full svr4 only
11495      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11496      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11497      # We do not specify a path in Import Files, so LIBPATH fires.
11498      shlibpath_overrides_runpath=yes
11499      ;;
11500    *,yes) # both, prefer svr4
11501      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11502      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11503      # unpreferred sharedlib libNAME.a needs extra handling
11504      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11505      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11506      # We do not specify a path in Import Files, so LIBPATH fires.
11507      shlibpath_overrides_runpath=yes
11508      ;;
11509    *,no) # both, prefer aix
11510      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11511      library_names_spec='$libname$release.a $libname.a'
11512      soname_spec='$libname$release$shared_ext$major'
11513      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11514      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11515      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11516      ;;
11517    esac
11518    shlibpath_var=LIBPATH
11519  fi
11520  ;;
11521
11522amigaos*)
11523  case $host_cpu in
11524  powerpc)
11525    # Since July 2007 AmigaOS4 officially supports .so libraries.
11526    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11527    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11528    ;;
11529  m68k)
11530    library_names_spec='$libname.ixlibrary $libname.a'
11531    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11532    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11533    ;;
11534  esac
11535  ;;
11536
11537beos*)
11538  library_names_spec='$libname$shared_ext'
11539  dynamic_linker="$host_os ld.so"
11540  shlibpath_var=LIBRARY_PATH
11541  ;;
11542
11543bsdi[45]*)
11544  version_type=linux # correct to gnu/linux during the next big refactor
11545  need_version=no
11546  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11547  soname_spec='$libname$release$shared_ext$major'
11548  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11549  shlibpath_var=LD_LIBRARY_PATH
11550  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11551  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11552  # the default ld.so.conf also contains /usr/contrib/lib and
11553  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11554  # libtool to hard-code these into programs
11555  ;;
11556
11557cygwin* | mingw* | pw32* | cegcc*)
11558  version_type=windows
11559  shrext_cmds=.dll
11560  need_version=no
11561  need_lib_prefix=no
11562
11563  case $GCC,$cc_basename in
11564  yes,*)
11565    # gcc
11566    library_names_spec='$libname.dll.a'
11567    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11568    postinstall_cmds='base_file=`basename \$file`~
11569      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11570      dldir=$destdir/`dirname \$dlpath`~
11571      test -d \$dldir || mkdir -p \$dldir~
11572      $install_prog $dir/$dlname \$dldir/$dlname~
11573      chmod a+x \$dldir/$dlname~
11574      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11575        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11576      fi'
11577    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11578      dlpath=$dir/\$dldll~
11579       $RM \$dlpath'
11580    shlibpath_overrides_runpath=yes
11581
11582    case $host_os in
11583    cygwin*)
11584      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11585      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11586
11587      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11588      ;;
11589    mingw* | cegcc*)
11590      # MinGW DLLs use traditional 'lib' prefix
11591      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11592      ;;
11593    pw32*)
11594      # pw32 DLLs use 'pw' prefix rather than 'lib'
11595      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11596      ;;
11597    esac
11598    dynamic_linker='Win32 ld.exe'
11599    ;;
11600
11601  *,cl*)
11602    # Native MSVC
11603    libname_spec='$name'
11604    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11605    library_names_spec='$libname.dll.lib'
11606
11607    case $build_os in
11608    mingw*)
11609      sys_lib_search_path_spec=
11610      lt_save_ifs=$IFS
11611      IFS=';'
11612      for lt_path in $LIB
11613      do
11614        IFS=$lt_save_ifs
11615        # Let DOS variable expansion print the short 8.3 style file name.
11616        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11617        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11618      done
11619      IFS=$lt_save_ifs
11620      # Convert to MSYS style.
11621      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11622      ;;
11623    cygwin*)
11624      # Convert to unix form, then to dos form, then back to unix form
11625      # but this time dos style (no spaces!) so that the unix form looks
11626      # like /cygdrive/c/PROGRA~1:/cygdr...
11627      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11628      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11629      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11630      ;;
11631    *)
11632      sys_lib_search_path_spec=$LIB
11633      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11634        # It is most probably a Windows format PATH.
11635        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11636      else
11637        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11638      fi
11639      # FIXME: find the short name or the path components, as spaces are
11640      # common. (e.g. "Program Files" -> "PROGRA~1")
11641      ;;
11642    esac
11643
11644    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11645    postinstall_cmds='base_file=`basename \$file`~
11646      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11647      dldir=$destdir/`dirname \$dlpath`~
11648      test -d \$dldir || mkdir -p \$dldir~
11649      $install_prog $dir/$dlname \$dldir/$dlname'
11650    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11651      dlpath=$dir/\$dldll~
11652       $RM \$dlpath'
11653    shlibpath_overrides_runpath=yes
11654    dynamic_linker='Win32 link.exe'
11655    ;;
11656
11657  *)
11658    # Assume MSVC wrapper
11659    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11660    dynamic_linker='Win32 ld.exe'
11661    ;;
11662  esac
11663  # FIXME: first we should search . and the directory the executable is in
11664  shlibpath_var=PATH
11665  ;;
11666
11667darwin* | rhapsody*)
11668  dynamic_linker="$host_os dyld"
11669  version_type=darwin
11670  need_lib_prefix=no
11671  need_version=no
11672  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11673  soname_spec='$libname$release$major$shared_ext'
11674  shlibpath_overrides_runpath=yes
11675  shlibpath_var=DYLD_LIBRARY_PATH
11676  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11677
11678  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11679  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11680  ;;
11681
11682dgux*)
11683  version_type=linux # correct to gnu/linux during the next big refactor
11684  need_lib_prefix=no
11685  need_version=no
11686  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11687  soname_spec='$libname$release$shared_ext$major'
11688  shlibpath_var=LD_LIBRARY_PATH
11689  ;;
11690
11691freebsd* | dragonfly*)
11692  # DragonFly does not have aout.  When/if they implement a new
11693  # versioning mechanism, adjust this.
11694  if test -x /usr/bin/objformat; then
11695    objformat=`/usr/bin/objformat`
11696  else
11697    case $host_os in
11698    freebsd[23].*) objformat=aout ;;
11699    *) objformat=elf ;;
11700    esac
11701  fi
11702  version_type=freebsd-$objformat
11703  case $version_type in
11704    freebsd-elf*)
11705      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11706      soname_spec='$libname$release$shared_ext$major'
11707      need_version=no
11708      need_lib_prefix=no
11709      ;;
11710    freebsd-*)
11711      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11712      need_version=yes
11713      ;;
11714  esac
11715  shlibpath_var=LD_LIBRARY_PATH
11716  case $host_os in
11717  freebsd2.*)
11718    shlibpath_overrides_runpath=yes
11719    ;;
11720  freebsd3.[01]* | freebsdelf3.[01]*)
11721    shlibpath_overrides_runpath=yes
11722    hardcode_into_libs=yes
11723    ;;
11724  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11725  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11726    shlibpath_overrides_runpath=no
11727    hardcode_into_libs=yes
11728    ;;
11729  *) # from 4.6 on, and DragonFly
11730    shlibpath_overrides_runpath=yes
11731    hardcode_into_libs=yes
11732    ;;
11733  esac
11734  ;;
11735
11736haiku*)
11737  version_type=linux # correct to gnu/linux during the next big refactor
11738  need_lib_prefix=no
11739  need_version=no
11740  dynamic_linker="$host_os runtime_loader"
11741  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11742  soname_spec='$libname$release$shared_ext$major'
11743  shlibpath_var=LIBRARY_PATH
11744  shlibpath_overrides_runpath=no
11745  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11746  hardcode_into_libs=yes
11747  ;;
11748
11749hpux9* | hpux10* | hpux11*)
11750  # Give a soname corresponding to the major version so that dld.sl refuses to
11751  # link against other versions.
11752  version_type=sunos
11753  need_lib_prefix=no
11754  need_version=no
11755  case $host_cpu in
11756  ia64*)
11757    shrext_cmds='.so'
11758    hardcode_into_libs=yes
11759    dynamic_linker="$host_os dld.so"
11760    shlibpath_var=LD_LIBRARY_PATH
11761    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11762    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11763    soname_spec='$libname$release$shared_ext$major'
11764    if test 32 = "$HPUX_IA64_MODE"; then
11765      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11766      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11767    else
11768      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11769      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11770    fi
11771    ;;
11772  hppa*64*)
11773    shrext_cmds='.sl'
11774    hardcode_into_libs=yes
11775    dynamic_linker="$host_os dld.sl"
11776    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11777    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11778    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11779    soname_spec='$libname$release$shared_ext$major'
11780    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11781    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11782    ;;
11783  *)
11784    shrext_cmds='.sl'
11785    dynamic_linker="$host_os dld.sl"
11786    shlibpath_var=SHLIB_PATH
11787    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11788    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11789    soname_spec='$libname$release$shared_ext$major'
11790    ;;
11791  esac
11792  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11793  postinstall_cmds='chmod 555 $lib'
11794  # or fails outright, so override atomically:
11795  install_override_mode=555
11796  ;;
11797
11798interix[3-9]*)
11799  version_type=linux # correct to gnu/linux during the next big refactor
11800  need_lib_prefix=no
11801  need_version=no
11802  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11803  soname_spec='$libname$release$shared_ext$major'
11804  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11805  shlibpath_var=LD_LIBRARY_PATH
11806  shlibpath_overrides_runpath=no
11807  hardcode_into_libs=yes
11808  ;;
11809
11810irix5* | irix6* | nonstopux*)
11811  case $host_os in
11812    nonstopux*) version_type=nonstopux ;;
11813    *)
11814	if test yes = "$lt_cv_prog_gnu_ld"; then
11815		version_type=linux # correct to gnu/linux during the next big refactor
11816	else
11817		version_type=irix
11818	fi ;;
11819  esac
11820  need_lib_prefix=no
11821  need_version=no
11822  soname_spec='$libname$release$shared_ext$major'
11823  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11824  case $host_os in
11825  irix5* | nonstopux*)
11826    libsuff= shlibsuff=
11827    ;;
11828  *)
11829    case $LD in # libtool.m4 will add one of these switches to LD
11830    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11831      libsuff= shlibsuff= libmagic=32-bit;;
11832    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11833      libsuff=32 shlibsuff=N32 libmagic=N32;;
11834    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11835      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11836    *) libsuff= shlibsuff= libmagic=never-match;;
11837    esac
11838    ;;
11839  esac
11840  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11841  shlibpath_overrides_runpath=no
11842  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11843  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11844  hardcode_into_libs=yes
11845  ;;
11846
11847# No shared lib support for Linux oldld, aout, or coff.
11848linux*oldld* | linux*aout* | linux*coff*)
11849  dynamic_linker=no
11850  ;;
11851
11852linux*android*)
11853  version_type=none # Android doesn't support versioned libraries.
11854  need_lib_prefix=no
11855  need_version=no
11856  library_names_spec='$libname$release$shared_ext'
11857  soname_spec='$libname$release$shared_ext'
11858  finish_cmds=
11859  shlibpath_var=LD_LIBRARY_PATH
11860  shlibpath_overrides_runpath=yes
11861
11862  # This implies no fast_install, which is unacceptable.
11863  # Some rework will be needed to allow for fast_install
11864  # before this can be enabled.
11865  hardcode_into_libs=yes
11866
11867  dynamic_linker='Android linker'
11868  # Don't embed -rpath directories since the linker doesn't support them.
11869  hardcode_libdir_flag_spec='-L$libdir'
11870  ;;
11871
11872# This must be glibc/ELF.
11873linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11874  version_type=linux # correct to gnu/linux during the next big refactor
11875  need_lib_prefix=no
11876  need_version=no
11877  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11878  soname_spec='$libname$release$shared_ext$major'
11879  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11880  shlibpath_var=LD_LIBRARY_PATH
11881  shlibpath_overrides_runpath=no
11882
11883  # Some binutils ld are patched to set DT_RUNPATH
11884  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11885  $as_echo_n "(cached) " >&6
11886else
11887  lt_cv_shlibpath_overrides_runpath=no
11888    save_LDFLAGS=$LDFLAGS
11889    save_libdir=$libdir
11890    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11891	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11892    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893/* end confdefs.h.  */
11894
11895int
11896main ()
11897{
11898
11899  ;
11900  return 0;
11901}
11902_ACEOF
11903if ac_fn_c_try_link "$LINENO"; then :
11904  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11905  lt_cv_shlibpath_overrides_runpath=yes
11906fi
11907fi
11908rm -f core conftest.err conftest.$ac_objext \
11909    conftest$ac_exeext conftest.$ac_ext
11910    LDFLAGS=$save_LDFLAGS
11911    libdir=$save_libdir
11912
11913fi
11914
11915  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11916
11917  # This implies no fast_install, which is unacceptable.
11918  # Some rework will be needed to allow for fast_install
11919  # before this can be enabled.
11920  hardcode_into_libs=yes
11921
11922  # Ideally, we could use ldconfig to report *all* directores which are
11923  # searched for libraries, however this is still not possible.  Aside from not
11924  # being certain /sbin/ldconfig is available, command
11925  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11926  # even though it is searched at run-time.  Try to do the best guess by
11927  # appending ld.so.conf contents (and includes) to the search path.
11928  if test -f /etc/ld.so.conf; then
11929    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11930    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11931  fi
11932
11933  # We used to test for /lib/ld.so.1 and disable shared libraries on
11934  # powerpc, because MkLinux only supported shared libraries with the
11935  # GNU dynamic linker.  Since this was broken with cross compilers,
11936  # most powerpc-linux boxes support dynamic linking these days and
11937  # people can always --disable-shared, the test was removed, and we
11938  # assume the GNU/Linux dynamic linker is in use.
11939  dynamic_linker='GNU/Linux ld.so'
11940  ;;
11941
11942netbsdelf*-gnu)
11943  version_type=linux
11944  need_lib_prefix=no
11945  need_version=no
11946  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11947  soname_spec='${libname}${release}${shared_ext}$major'
11948  shlibpath_var=LD_LIBRARY_PATH
11949  shlibpath_overrides_runpath=no
11950  hardcode_into_libs=yes
11951  dynamic_linker='NetBSD ld.elf_so'
11952  ;;
11953
11954netbsd*)
11955  version_type=sunos
11956  need_lib_prefix=no
11957  need_version=no
11958  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11959    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11960    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11961    dynamic_linker='NetBSD (a.out) ld.so'
11962  else
11963    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11964    soname_spec='$libname$release$shared_ext$major'
11965    dynamic_linker='NetBSD ld.elf_so'
11966  fi
11967  shlibpath_var=LD_LIBRARY_PATH
11968  shlibpath_overrides_runpath=yes
11969  hardcode_into_libs=yes
11970  ;;
11971
11972newsos6)
11973  version_type=linux # correct to gnu/linux during the next big refactor
11974  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11975  shlibpath_var=LD_LIBRARY_PATH
11976  shlibpath_overrides_runpath=yes
11977  ;;
11978
11979*nto* | *qnx*)
11980  version_type=qnx
11981  need_lib_prefix=no
11982  need_version=no
11983  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11984  soname_spec='$libname$release$shared_ext$major'
11985  shlibpath_var=LD_LIBRARY_PATH
11986  shlibpath_overrides_runpath=no
11987  hardcode_into_libs=yes
11988  dynamic_linker='ldqnx.so'
11989  ;;
11990
11991openbsd* | bitrig*)
11992  version_type=sunos
11993  sys_lib_dlsearch_path_spec=/usr/lib
11994  need_lib_prefix=no
11995  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11996    need_version=no
11997  else
11998    need_version=yes
11999  fi
12000  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12001  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12002  shlibpath_var=LD_LIBRARY_PATH
12003  shlibpath_overrides_runpath=yes
12004  ;;
12005
12006os2*)
12007  libname_spec='$name'
12008  version_type=windows
12009  shrext_cmds=.dll
12010  need_version=no
12011  need_lib_prefix=no
12012  # OS/2 can only load a DLL with a base name of 8 characters or less.
12013  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12014    v=$($ECHO $release$versuffix | tr -d .-);
12015    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12016    $ECHO $n$v`$shared_ext'
12017  library_names_spec='${libname}_dll.$libext'
12018  dynamic_linker='OS/2 ld.exe'
12019  shlibpath_var=BEGINLIBPATH
12020  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12021  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12022  postinstall_cmds='base_file=`basename \$file`~
12023    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12024    dldir=$destdir/`dirname \$dlpath`~
12025    test -d \$dldir || mkdir -p \$dldir~
12026    $install_prog $dir/$dlname \$dldir/$dlname~
12027    chmod a+x \$dldir/$dlname~
12028    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12029      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12030    fi'
12031  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12032    dlpath=$dir/\$dldll~
12033    $RM \$dlpath'
12034  ;;
12035
12036osf3* | osf4* | osf5*)
12037  version_type=osf
12038  need_lib_prefix=no
12039  need_version=no
12040  soname_spec='$libname$release$shared_ext$major'
12041  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12042  shlibpath_var=LD_LIBRARY_PATH
12043  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12044  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12045  ;;
12046
12047rdos*)
12048  dynamic_linker=no
12049  ;;
12050
12051solaris*)
12052  version_type=linux # correct to gnu/linux during the next big refactor
12053  need_lib_prefix=no
12054  need_version=no
12055  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12056  soname_spec='$libname$release$shared_ext$major'
12057  shlibpath_var=LD_LIBRARY_PATH
12058  shlibpath_overrides_runpath=yes
12059  hardcode_into_libs=yes
12060  # ldd complains unless libraries are executable
12061  postinstall_cmds='chmod +x $lib'
12062  ;;
12063
12064sunos4*)
12065  version_type=sunos
12066  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12067  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12068  shlibpath_var=LD_LIBRARY_PATH
12069  shlibpath_overrides_runpath=yes
12070  if test yes = "$with_gnu_ld"; then
12071    need_lib_prefix=no
12072  fi
12073  need_version=yes
12074  ;;
12075
12076sysv4 | sysv4.3*)
12077  version_type=linux # correct to gnu/linux during the next big refactor
12078  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12079  soname_spec='$libname$release$shared_ext$major'
12080  shlibpath_var=LD_LIBRARY_PATH
12081  case $host_vendor in
12082    sni)
12083      shlibpath_overrides_runpath=no
12084      need_lib_prefix=no
12085      runpath_var=LD_RUN_PATH
12086      ;;
12087    siemens)
12088      need_lib_prefix=no
12089      ;;
12090    motorola)
12091      need_lib_prefix=no
12092      need_version=no
12093      shlibpath_overrides_runpath=no
12094      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12095      ;;
12096  esac
12097  ;;
12098
12099sysv4*MP*)
12100  if test -d /usr/nec; then
12101    version_type=linux # correct to gnu/linux during the next big refactor
12102    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12103    soname_spec='$libname$shared_ext.$major'
12104    shlibpath_var=LD_LIBRARY_PATH
12105  fi
12106  ;;
12107
12108sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12109  version_type=sco
12110  need_lib_prefix=no
12111  need_version=no
12112  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12113  soname_spec='$libname$release$shared_ext$major'
12114  shlibpath_var=LD_LIBRARY_PATH
12115  shlibpath_overrides_runpath=yes
12116  hardcode_into_libs=yes
12117  if test yes = "$with_gnu_ld"; then
12118    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12119  else
12120    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12121    case $host_os in
12122      sco3.2v5*)
12123        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12124	;;
12125    esac
12126  fi
12127  sys_lib_dlsearch_path_spec='/usr/lib'
12128  ;;
12129
12130tpf*)
12131  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12132  version_type=linux # correct to gnu/linux during the next big refactor
12133  need_lib_prefix=no
12134  need_version=no
12135  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12136  shlibpath_var=LD_LIBRARY_PATH
12137  shlibpath_overrides_runpath=no
12138  hardcode_into_libs=yes
12139  ;;
12140
12141uts4*)
12142  version_type=linux # correct to gnu/linux during the next big refactor
12143  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12144  soname_spec='$libname$release$shared_ext$major'
12145  shlibpath_var=LD_LIBRARY_PATH
12146  ;;
12147
12148*)
12149  dynamic_linker=no
12150  ;;
12151esac
12152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12153$as_echo "$dynamic_linker" >&6; }
12154test no = "$dynamic_linker" && can_build_shared=no
12155
12156variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12157if test yes = "$GCC"; then
12158  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12159fi
12160
12161if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12162  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12163fi
12164
12165if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12166  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12167fi
12168
12169# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12170configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12171
12172# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12173func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12174
12175# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12176configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12275$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12276hardcode_action=
12277if test -n "$hardcode_libdir_flag_spec" ||
12278   test -n "$runpath_var" ||
12279   test yes = "$hardcode_automatic"; then
12280
12281  # We can hardcode non-existent directories.
12282  if test no != "$hardcode_direct" &&
12283     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12284     # have to relink, otherwise we might link with an installed library
12285     # when we should be linking with a yet-to-be-installed one
12286     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12287     test no != "$hardcode_minus_L"; then
12288    # Linking always hardcodes the temporary library directory.
12289    hardcode_action=relink
12290  else
12291    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12292    hardcode_action=immediate
12293  fi
12294else
12295  # We cannot hardcode anything, or else we can only hardcode existing
12296  # directories.
12297  hardcode_action=unsupported
12298fi
12299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12300$as_echo "$hardcode_action" >&6; }
12301
12302if test relink = "$hardcode_action" ||
12303   test yes = "$inherit_rpath"; then
12304  # Fast installation is not supported
12305  enable_fast_install=no
12306elif test yes = "$shlibpath_overrides_runpath" ||
12307     test no = "$enable_shared"; then
12308  # Fast installation is not necessary
12309  enable_fast_install=needless
12310fi
12311
12312
12313
12314
12315
12316
12317  if test yes != "$enable_dlopen"; then
12318  enable_dlopen=unknown
12319  enable_dlopen_self=unknown
12320  enable_dlopen_self_static=unknown
12321else
12322  lt_cv_dlopen=no
12323  lt_cv_dlopen_libs=
12324
12325  case $host_os in
12326  beos*)
12327    lt_cv_dlopen=load_add_on
12328    lt_cv_dlopen_libs=
12329    lt_cv_dlopen_self=yes
12330    ;;
12331
12332  mingw* | pw32* | cegcc*)
12333    lt_cv_dlopen=LoadLibrary
12334    lt_cv_dlopen_libs=
12335    ;;
12336
12337  cygwin*)
12338    lt_cv_dlopen=dlopen
12339    lt_cv_dlopen_libs=
12340    ;;
12341
12342  darwin*)
12343    # if libdl is installed we need to link against it
12344    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12345$as_echo_n "checking for dlopen in -ldl... " >&6; }
12346if ${ac_cv_lib_dl_dlopen+:} false; then :
12347  $as_echo_n "(cached) " >&6
12348else
12349  ac_check_lib_save_LIBS=$LIBS
12350LIBS="-ldl  $LIBS"
12351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352/* end confdefs.h.  */
12353
12354/* Override any GCC internal prototype to avoid an error.
12355   Use char because int might match the return type of a GCC
12356   builtin and then its argument prototype would still apply.  */
12357#ifdef __cplusplus
12358extern "C"
12359#endif
12360char dlopen ();
12361int
12362main ()
12363{
12364return dlopen ();
12365  ;
12366  return 0;
12367}
12368_ACEOF
12369if ac_fn_c_try_link "$LINENO"; then :
12370  ac_cv_lib_dl_dlopen=yes
12371else
12372  ac_cv_lib_dl_dlopen=no
12373fi
12374rm -f core conftest.err conftest.$ac_objext \
12375    conftest$ac_exeext conftest.$ac_ext
12376LIBS=$ac_check_lib_save_LIBS
12377fi
12378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12379$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12380if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12381  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12382else
12383
12384    lt_cv_dlopen=dyld
12385    lt_cv_dlopen_libs=
12386    lt_cv_dlopen_self=yes
12387
12388fi
12389
12390    ;;
12391
12392  tpf*)
12393    # Don't try to run any link tests for TPF.  We know it's impossible
12394    # because TPF is a cross-compiler, and we know how we open DSOs.
12395    lt_cv_dlopen=dlopen
12396    lt_cv_dlopen_libs=
12397    lt_cv_dlopen_self=no
12398    ;;
12399
12400  *)
12401    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12402if test "x$ac_cv_func_shl_load" = xyes; then :
12403  lt_cv_dlopen=shl_load
12404else
12405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12406$as_echo_n "checking for shl_load in -ldld... " >&6; }
12407if ${ac_cv_lib_dld_shl_load+:} false; then :
12408  $as_echo_n "(cached) " >&6
12409else
12410  ac_check_lib_save_LIBS=$LIBS
12411LIBS="-ldld  $LIBS"
12412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413/* end confdefs.h.  */
12414
12415/* Override any GCC internal prototype to avoid an error.
12416   Use char because int might match the return type of a GCC
12417   builtin and then its argument prototype would still apply.  */
12418#ifdef __cplusplus
12419extern "C"
12420#endif
12421char shl_load ();
12422int
12423main ()
12424{
12425return shl_load ();
12426  ;
12427  return 0;
12428}
12429_ACEOF
12430if ac_fn_c_try_link "$LINENO"; then :
12431  ac_cv_lib_dld_shl_load=yes
12432else
12433  ac_cv_lib_dld_shl_load=no
12434fi
12435rm -f core conftest.err conftest.$ac_objext \
12436    conftest$ac_exeext conftest.$ac_ext
12437LIBS=$ac_check_lib_save_LIBS
12438fi
12439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12440$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12441if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12442  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12443else
12444  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12445if test "x$ac_cv_func_dlopen" = xyes; then :
12446  lt_cv_dlopen=dlopen
12447else
12448  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12449$as_echo_n "checking for dlopen in -ldl... " >&6; }
12450if ${ac_cv_lib_dl_dlopen+:} false; then :
12451  $as_echo_n "(cached) " >&6
12452else
12453  ac_check_lib_save_LIBS=$LIBS
12454LIBS="-ldl  $LIBS"
12455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456/* end confdefs.h.  */
12457
12458/* Override any GCC internal prototype to avoid an error.
12459   Use char because int might match the return type of a GCC
12460   builtin and then its argument prototype would still apply.  */
12461#ifdef __cplusplus
12462extern "C"
12463#endif
12464char dlopen ();
12465int
12466main ()
12467{
12468return dlopen ();
12469  ;
12470  return 0;
12471}
12472_ACEOF
12473if ac_fn_c_try_link "$LINENO"; then :
12474  ac_cv_lib_dl_dlopen=yes
12475else
12476  ac_cv_lib_dl_dlopen=no
12477fi
12478rm -f core conftest.err conftest.$ac_objext \
12479    conftest$ac_exeext conftest.$ac_ext
12480LIBS=$ac_check_lib_save_LIBS
12481fi
12482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12483$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12484if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12485  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12486else
12487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12488$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12489if ${ac_cv_lib_svld_dlopen+:} false; then :
12490  $as_echo_n "(cached) " >&6
12491else
12492  ac_check_lib_save_LIBS=$LIBS
12493LIBS="-lsvld  $LIBS"
12494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495/* end confdefs.h.  */
12496
12497/* Override any GCC internal prototype to avoid an error.
12498   Use char because int might match the return type of a GCC
12499   builtin and then its argument prototype would still apply.  */
12500#ifdef __cplusplus
12501extern "C"
12502#endif
12503char dlopen ();
12504int
12505main ()
12506{
12507return dlopen ();
12508  ;
12509  return 0;
12510}
12511_ACEOF
12512if ac_fn_c_try_link "$LINENO"; then :
12513  ac_cv_lib_svld_dlopen=yes
12514else
12515  ac_cv_lib_svld_dlopen=no
12516fi
12517rm -f core conftest.err conftest.$ac_objext \
12518    conftest$ac_exeext conftest.$ac_ext
12519LIBS=$ac_check_lib_save_LIBS
12520fi
12521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12522$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12523if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12524  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12525else
12526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12527$as_echo_n "checking for dld_link in -ldld... " >&6; }
12528if ${ac_cv_lib_dld_dld_link+:} false; then :
12529  $as_echo_n "(cached) " >&6
12530else
12531  ac_check_lib_save_LIBS=$LIBS
12532LIBS="-ldld  $LIBS"
12533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534/* end confdefs.h.  */
12535
12536/* Override any GCC internal prototype to avoid an error.
12537   Use char because int might match the return type of a GCC
12538   builtin and then its argument prototype would still apply.  */
12539#ifdef __cplusplus
12540extern "C"
12541#endif
12542char dld_link ();
12543int
12544main ()
12545{
12546return dld_link ();
12547  ;
12548  return 0;
12549}
12550_ACEOF
12551if ac_fn_c_try_link "$LINENO"; then :
12552  ac_cv_lib_dld_dld_link=yes
12553else
12554  ac_cv_lib_dld_dld_link=no
12555fi
12556rm -f core conftest.err conftest.$ac_objext \
12557    conftest$ac_exeext conftest.$ac_ext
12558LIBS=$ac_check_lib_save_LIBS
12559fi
12560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12561$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12562if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12563  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12564fi
12565
12566
12567fi
12568
12569
12570fi
12571
12572
12573fi
12574
12575
12576fi
12577
12578
12579fi
12580
12581    ;;
12582  esac
12583
12584  if test no = "$lt_cv_dlopen"; then
12585    enable_dlopen=no
12586  else
12587    enable_dlopen=yes
12588  fi
12589
12590  case $lt_cv_dlopen in
12591  dlopen)
12592    save_CPPFLAGS=$CPPFLAGS
12593    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12594
12595    save_LDFLAGS=$LDFLAGS
12596    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12597
12598    save_LIBS=$LIBS
12599    LIBS="$lt_cv_dlopen_libs $LIBS"
12600
12601    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12602$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12603if ${lt_cv_dlopen_self+:} false; then :
12604  $as_echo_n "(cached) " >&6
12605else
12606  	  if test yes = "$cross_compiling"; then :
12607  lt_cv_dlopen_self=cross
12608else
12609  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12610  lt_status=$lt_dlunknown
12611  cat > conftest.$ac_ext <<_LT_EOF
12612#line $LINENO "configure"
12613#include "confdefs.h"
12614
12615#if HAVE_DLFCN_H
12616#include <dlfcn.h>
12617#endif
12618
12619#include <stdio.h>
12620
12621#ifdef RTLD_GLOBAL
12622#  define LT_DLGLOBAL		RTLD_GLOBAL
12623#else
12624#  ifdef DL_GLOBAL
12625#    define LT_DLGLOBAL		DL_GLOBAL
12626#  else
12627#    define LT_DLGLOBAL		0
12628#  endif
12629#endif
12630
12631/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12632   find out it does not work in some platform. */
12633#ifndef LT_DLLAZY_OR_NOW
12634#  ifdef RTLD_LAZY
12635#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12636#  else
12637#    ifdef DL_LAZY
12638#      define LT_DLLAZY_OR_NOW		DL_LAZY
12639#    else
12640#      ifdef RTLD_NOW
12641#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12642#      else
12643#        ifdef DL_NOW
12644#          define LT_DLLAZY_OR_NOW	DL_NOW
12645#        else
12646#          define LT_DLLAZY_OR_NOW	0
12647#        endif
12648#      endif
12649#    endif
12650#  endif
12651#endif
12652
12653/* When -fvisibility=hidden is used, assume the code has been annotated
12654   correspondingly for the symbols needed.  */
12655#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12656int fnord () __attribute__((visibility("default")));
12657#endif
12658
12659int fnord () { return 42; }
12660int main ()
12661{
12662  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12663  int status = $lt_dlunknown;
12664
12665  if (self)
12666    {
12667      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12668      else
12669        {
12670	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12671          else puts (dlerror ());
12672	}
12673      /* dlclose (self); */
12674    }
12675  else
12676    puts (dlerror ());
12677
12678  return status;
12679}
12680_LT_EOF
12681  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12682  (eval $ac_link) 2>&5
12683  ac_status=$?
12684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12685  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12686    (./conftest; exit; ) >&5 2>/dev/null
12687    lt_status=$?
12688    case x$lt_status in
12689      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12690      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12691      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12692    esac
12693  else :
12694    # compilation failed
12695    lt_cv_dlopen_self=no
12696  fi
12697fi
12698rm -fr conftest*
12699
12700
12701fi
12702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12703$as_echo "$lt_cv_dlopen_self" >&6; }
12704
12705    if test yes = "$lt_cv_dlopen_self"; then
12706      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12707      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12708$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12709if ${lt_cv_dlopen_self_static+:} false; then :
12710  $as_echo_n "(cached) " >&6
12711else
12712  	  if test yes = "$cross_compiling"; then :
12713  lt_cv_dlopen_self_static=cross
12714else
12715  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12716  lt_status=$lt_dlunknown
12717  cat > conftest.$ac_ext <<_LT_EOF
12718#line $LINENO "configure"
12719#include "confdefs.h"
12720
12721#if HAVE_DLFCN_H
12722#include <dlfcn.h>
12723#endif
12724
12725#include <stdio.h>
12726
12727#ifdef RTLD_GLOBAL
12728#  define LT_DLGLOBAL		RTLD_GLOBAL
12729#else
12730#  ifdef DL_GLOBAL
12731#    define LT_DLGLOBAL		DL_GLOBAL
12732#  else
12733#    define LT_DLGLOBAL		0
12734#  endif
12735#endif
12736
12737/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12738   find out it does not work in some platform. */
12739#ifndef LT_DLLAZY_OR_NOW
12740#  ifdef RTLD_LAZY
12741#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12742#  else
12743#    ifdef DL_LAZY
12744#      define LT_DLLAZY_OR_NOW		DL_LAZY
12745#    else
12746#      ifdef RTLD_NOW
12747#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12748#      else
12749#        ifdef DL_NOW
12750#          define LT_DLLAZY_OR_NOW	DL_NOW
12751#        else
12752#          define LT_DLLAZY_OR_NOW	0
12753#        endif
12754#      endif
12755#    endif
12756#  endif
12757#endif
12758
12759/* When -fvisibility=hidden is used, assume the code has been annotated
12760   correspondingly for the symbols needed.  */
12761#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12762int fnord () __attribute__((visibility("default")));
12763#endif
12764
12765int fnord () { return 42; }
12766int main ()
12767{
12768  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12769  int status = $lt_dlunknown;
12770
12771  if (self)
12772    {
12773      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12774      else
12775        {
12776	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12777          else puts (dlerror ());
12778	}
12779      /* dlclose (self); */
12780    }
12781  else
12782    puts (dlerror ());
12783
12784  return status;
12785}
12786_LT_EOF
12787  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12788  (eval $ac_link) 2>&5
12789  ac_status=$?
12790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12791  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12792    (./conftest; exit; ) >&5 2>/dev/null
12793    lt_status=$?
12794    case x$lt_status in
12795      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12796      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12797      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12798    esac
12799  else :
12800    # compilation failed
12801    lt_cv_dlopen_self_static=no
12802  fi
12803fi
12804rm -fr conftest*
12805
12806
12807fi
12808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12809$as_echo "$lt_cv_dlopen_self_static" >&6; }
12810    fi
12811
12812    CPPFLAGS=$save_CPPFLAGS
12813    LDFLAGS=$save_LDFLAGS
12814    LIBS=$save_LIBS
12815    ;;
12816  esac
12817
12818  case $lt_cv_dlopen_self in
12819  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12820  *) enable_dlopen_self=unknown ;;
12821  esac
12822
12823  case $lt_cv_dlopen_self_static in
12824  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12825  *) enable_dlopen_self_static=unknown ;;
12826  esac
12827fi
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845striplib=
12846old_striplib=
12847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12848$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12849if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12850  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12851  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12853$as_echo "yes" >&6; }
12854else
12855# FIXME - insert some real tests, host_os isn't really good enough
12856  case $host_os in
12857  darwin*)
12858    if test -n "$STRIP"; then
12859      striplib="$STRIP -x"
12860      old_striplib="$STRIP -S"
12861      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12862$as_echo "yes" >&6; }
12863    else
12864      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865$as_echo "no" >&6; }
12866    fi
12867    ;;
12868  *)
12869    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870$as_echo "no" >&6; }
12871    ;;
12872  esac
12873fi
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886  # Report what library types will actually be built
12887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12888$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12890$as_echo "$can_build_shared" >&6; }
12891
12892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12893$as_echo_n "checking whether to build shared libraries... " >&6; }
12894  test no = "$can_build_shared" && enable_shared=no
12895
12896  # On AIX, shared libraries and static libraries use the same namespace, and
12897  # are all built from PIC.
12898  case $host_os in
12899  aix3*)
12900    test yes = "$enable_shared" && enable_static=no
12901    if test -n "$RANLIB"; then
12902      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12903      postinstall_cmds='$RANLIB $lib'
12904    fi
12905    ;;
12906
12907  aix[4-9]*)
12908    if test ia64 != "$host_cpu"; then
12909      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12910      yes,aix,yes) ;;			# shared object as lib.so file only
12911      yes,svr4,*) ;;			# shared object as lib.so archive member only
12912      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12913      esac
12914    fi
12915    ;;
12916  esac
12917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12918$as_echo "$enable_shared" >&6; }
12919
12920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12921$as_echo_n "checking whether to build static libraries... " >&6; }
12922  # Make sure either enable_shared or enable_static is yes.
12923  test yes = "$enable_shared" || enable_static=yes
12924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12925$as_echo "$enable_static" >&6; }
12926
12927
12928
12929
12930fi
12931ac_ext=c
12932ac_cpp='$CPP $CPPFLAGS'
12933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12935ac_compiler_gnu=$ac_cv_c_compiler_gnu
12936
12937CC=$lt_save_CC
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953        ac_config_commands="$ac_config_commands libtool"
12954
12955
12956
12957
12958# Only expand once:
12959
12960
12961
12962am__api_version='1.16'
12963
12964# Find a good install program.  We prefer a C program (faster),
12965# so one script is as good as another.  But avoid the broken or
12966# incompatible versions:
12967# SysV /etc/install, /usr/sbin/install
12968# SunOS /usr/etc/install
12969# IRIX /sbin/install
12970# AIX /bin/install
12971# AmigaOS /C/install, which installs bootblocks on floppy discs
12972# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12973# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12974# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12975# OS/2's system install, which has a completely different semantic
12976# ./install, which can be erroneously created by make from ./install.sh.
12977# Reject install programs that cannot install multiple files.
12978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
12979$as_echo_n "checking for a BSD-compatible install... " >&6; }
12980if test -z "$INSTALL"; then
12981if ${ac_cv_path_install+:} false; then :
12982  $as_echo_n "(cached) " >&6
12983else
12984  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12985for as_dir in $PATH
12986do
12987  IFS=$as_save_IFS
12988  test -z "$as_dir" && as_dir=.
12989    # Account for people who put trailing slashes in PATH elements.
12990case $as_dir/ in #((
12991  ./ | .// | /[cC]/* | \
12992  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12993  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
12994  /usr/ucb/* ) ;;
12995  *)
12996    # OSF1 and SCO ODT 3.0 have their own names for install.
12997    # Don't use installbsd from OSF since it installs stuff as root
12998    # by default.
12999    for ac_prog in ginstall scoinst install; do
13000      for ac_exec_ext in '' $ac_executable_extensions; do
13001	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13002	  if test $ac_prog = install &&
13003	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13004	    # AIX install.  It has an incompatible calling convention.
13005	    :
13006	  elif test $ac_prog = install &&
13007	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13008	    # program-specific install script used by HP pwplus--don't use.
13009	    :
13010	  else
13011	    rm -rf conftest.one conftest.two conftest.dir
13012	    echo one > conftest.one
13013	    echo two > conftest.two
13014	    mkdir conftest.dir
13015	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13016	      test -s conftest.one && test -s conftest.two &&
13017	      test -s conftest.dir/conftest.one &&
13018	      test -s conftest.dir/conftest.two
13019	    then
13020	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13021	      break 3
13022	    fi
13023	  fi
13024	fi
13025      done
13026    done
13027    ;;
13028esac
13029
13030  done
13031IFS=$as_save_IFS
13032
13033rm -rf conftest.one conftest.two conftest.dir
13034
13035fi
13036  if test "${ac_cv_path_install+set}" = set; then
13037    INSTALL=$ac_cv_path_install
13038  else
13039    # As a last resort, use the slow shell script.  Don't cache a
13040    # value for INSTALL within a source directory, because that will
13041    # break other packages using the cache if that directory is
13042    # removed, or if the value is a relative name.
13043    INSTALL=$ac_install_sh
13044  fi
13045fi
13046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13047$as_echo "$INSTALL" >&6; }
13048
13049# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13050# It thinks the first close brace ends the variable substitution.
13051test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13052
13053test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13054
13055test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13056
13057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13058$as_echo_n "checking whether build environment is sane... " >&6; }
13059# Reject unsafe characters in $srcdir or the absolute working directory
13060# name.  Accept space and tab only in the latter.
13061am_lf='
13062'
13063case `pwd` in
13064  *[\\\"\#\$\&\'\`$am_lf]*)
13065    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
13066esac
13067case $srcdir in
13068  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
13069    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13070esac
13071
13072# Do 'set' in a subshell so we don't clobber the current shell's
13073# arguments.  Must try -L first in case configure is actually a
13074# symlink; some systems play weird games with the mod time of symlinks
13075# (eg FreeBSD returns the mod time of the symlink's containing
13076# directory).
13077if (
13078   am_has_slept=no
13079   for am_try in 1 2; do
13080     echo "timestamp, slept: $am_has_slept" > conftest.file
13081     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13082     if test "$*" = "X"; then
13083	# -L didn't work.
13084	set X `ls -t "$srcdir/configure" conftest.file`
13085     fi
13086     if test "$*" != "X $srcdir/configure conftest.file" \
13087	&& test "$*" != "X conftest.file $srcdir/configure"; then
13088
13089	# If neither matched, then we have a broken ls.  This can happen
13090	# if, for instance, CONFIG_SHELL is bash and it inherits a
13091	# broken ls alias from the environment.  This has actually
13092	# happened.  Such a system could not be considered "sane".
13093	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
13094  alias in your environment" "$LINENO" 5
13095     fi
13096     if test "$2" = conftest.file || test $am_try -eq 2; then
13097       break
13098     fi
13099     # Just in case.
13100     sleep 1
13101     am_has_slept=yes
13102   done
13103   test "$2" = conftest.file
13104   )
13105then
13106   # Ok.
13107   :
13108else
13109   as_fn_error $? "newly created file is older than distributed files!
13110Check your system clock" "$LINENO" 5
13111fi
13112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13113$as_echo "yes" >&6; }
13114# If we didn't sleep, we still need to ensure time stamps of config.status and
13115# generated files are strictly newer.
13116am_sleep_pid=
13117if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13118  ( sleep 1 ) &
13119  am_sleep_pid=$!
13120fi
13121
13122rm -f conftest.file
13123
13124test "$program_prefix" != NONE &&
13125  program_transform_name="s&^&$program_prefix&;$program_transform_name"
13126# Use a double $ so make ignores it.
13127test "$program_suffix" != NONE &&
13128  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
13129# Double any \ or $.
13130# By default was `s,x,x', remove it if useless.
13131ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
13132program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
13133
13134if test x"${MISSING+set}" != xset; then
13135  case $am_aux_dir in
13136  *\ * | *\	*)
13137    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13138  *)
13139    MISSING="\${SHELL} $am_aux_dir/missing" ;;
13140  esac
13141fi
13142# Use eval to expand $SHELL
13143if eval "$MISSING --is-lightweight"; then
13144  am_missing_run="$MISSING "
13145else
13146  am_missing_run=
13147  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13148$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13149fi
13150
13151if test x"${install_sh+set}" != xset; then
13152  case $am_aux_dir in
13153  *\ * | *\	*)
13154    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13155  *)
13156    install_sh="\${SHELL} $am_aux_dir/install-sh"
13157  esac
13158fi
13159
13160# Installed binaries are usually stripped using 'strip' when the user
13161# run "make install-strip".  However 'strip' might not be the right
13162# tool to use in cross-compilation environments, therefore Automake
13163# will honor the 'STRIP' environment variable to overrule this program.
13164if test "$cross_compiling" != no; then
13165  if test -n "$ac_tool_prefix"; then
13166  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13167set dummy ${ac_tool_prefix}strip; ac_word=$2
13168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13169$as_echo_n "checking for $ac_word... " >&6; }
13170if ${ac_cv_prog_STRIP+:} false; then :
13171  $as_echo_n "(cached) " >&6
13172else
13173  if test -n "$STRIP"; then
13174  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13175else
13176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13177for as_dir in $PATH
13178do
13179  IFS=$as_save_IFS
13180  test -z "$as_dir" && as_dir=.
13181    for ac_exec_ext in '' $ac_executable_extensions; do
13182  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13183    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13185    break 2
13186  fi
13187done
13188  done
13189IFS=$as_save_IFS
13190
13191fi
13192fi
13193STRIP=$ac_cv_prog_STRIP
13194if test -n "$STRIP"; then
13195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13196$as_echo "$STRIP" >&6; }
13197else
13198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199$as_echo "no" >&6; }
13200fi
13201
13202
13203fi
13204if test -z "$ac_cv_prog_STRIP"; then
13205  ac_ct_STRIP=$STRIP
13206  # Extract the first word of "strip", so it can be a program name with args.
13207set dummy strip; ac_word=$2
13208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13209$as_echo_n "checking for $ac_word... " >&6; }
13210if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13211  $as_echo_n "(cached) " >&6
13212else
13213  if test -n "$ac_ct_STRIP"; then
13214  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13215else
13216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13217for as_dir in $PATH
13218do
13219  IFS=$as_save_IFS
13220  test -z "$as_dir" && as_dir=.
13221    for ac_exec_ext in '' $ac_executable_extensions; do
13222  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13223    ac_cv_prog_ac_ct_STRIP="strip"
13224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13225    break 2
13226  fi
13227done
13228  done
13229IFS=$as_save_IFS
13230
13231fi
13232fi
13233ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13234if test -n "$ac_ct_STRIP"; then
13235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13236$as_echo "$ac_ct_STRIP" >&6; }
13237else
13238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13239$as_echo "no" >&6; }
13240fi
13241
13242  if test "x$ac_ct_STRIP" = x; then
13243    STRIP=":"
13244  else
13245    case $cross_compiling:$ac_tool_warned in
13246yes:)
13247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13249ac_tool_warned=yes ;;
13250esac
13251    STRIP=$ac_ct_STRIP
13252  fi
13253else
13254  STRIP="$ac_cv_prog_STRIP"
13255fi
13256
13257fi
13258INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13259
13260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13261$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13262if test -z "$MKDIR_P"; then
13263  if ${ac_cv_path_mkdir+:} false; then :
13264  $as_echo_n "(cached) " >&6
13265else
13266  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13268do
13269  IFS=$as_save_IFS
13270  test -z "$as_dir" && as_dir=.
13271    for ac_prog in mkdir gmkdir; do
13272	 for ac_exec_ext in '' $ac_executable_extensions; do
13273	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
13274	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13275	     'mkdir (GNU coreutils) '* | \
13276	     'mkdir (coreutils) '* | \
13277	     'mkdir (fileutils) '4.1*)
13278	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13279	       break 3;;
13280	   esac
13281	 done
13282       done
13283  done
13284IFS=$as_save_IFS
13285
13286fi
13287
13288  test -d ./--version && rmdir ./--version
13289  if test "${ac_cv_path_mkdir+set}" = set; then
13290    MKDIR_P="$ac_cv_path_mkdir -p"
13291  else
13292    # As a last resort, use the slow shell script.  Don't cache a
13293    # value for MKDIR_P within a source directory, because that will
13294    # break other packages using the cache if that directory is
13295    # removed, or if the value is a relative name.
13296    MKDIR_P="$ac_install_sh -d"
13297  fi
13298fi
13299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13300$as_echo "$MKDIR_P" >&6; }
13301
13302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13303$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13304set x ${MAKE-make}
13305ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13306if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13307  $as_echo_n "(cached) " >&6
13308else
13309  cat >conftest.make <<\_ACEOF
13310SHELL = /bin/sh
13311all:
13312	@echo '@@@%%%=$(MAKE)=@@@%%%'
13313_ACEOF
13314# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13315case `${MAKE-make} -f conftest.make 2>/dev/null` in
13316  *@@@%%%=?*=@@@%%%*)
13317    eval ac_cv_prog_make_${ac_make}_set=yes;;
13318  *)
13319    eval ac_cv_prog_make_${ac_make}_set=no;;
13320esac
13321rm -f conftest.make
13322fi
13323if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13325$as_echo "yes" >&6; }
13326  SET_MAKE=
13327else
13328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13329$as_echo "no" >&6; }
13330  SET_MAKE="MAKE=${MAKE-make}"
13331fi
13332
13333rm -rf .tst 2>/dev/null
13334mkdir .tst 2>/dev/null
13335if test -d .tst; then
13336  am__leading_dot=.
13337else
13338  am__leading_dot=_
13339fi
13340rmdir .tst 2>/dev/null
13341
13342DEPDIR="${am__leading_dot}deps"
13343
13344ac_config_commands="$ac_config_commands depfiles"
13345
13346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
13347$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
13348cat > confinc.mk << 'END'
13349am__doit:
13350	@echo this is the am__doit target >confinc.out
13351.PHONY: am__doit
13352END
13353am__include="#"
13354am__quote=
13355# BSD make does it like this.
13356echo '.include "confinc.mk" # ignored' > confmf.BSD
13357# Other make implementations (GNU, Solaris 10, AIX) do it like this.
13358echo 'include confinc.mk # ignored' > confmf.GNU
13359_am_result=no
13360for s in GNU BSD; do
13361  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
13362   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
13363   ac_status=$?
13364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365   (exit $ac_status); }
13366  case $?:`cat confinc.out 2>/dev/null` in #(
13367  '0:this is the am__doit target') :
13368    case $s in #(
13369  BSD) :
13370    am__include='.include' am__quote='"' ;; #(
13371  *) :
13372    am__include='include' am__quote='' ;;
13373esac ;; #(
13374  *) :
13375     ;;
13376esac
13377  if test "$am__include" != "#"; then
13378    _am_result="yes ($s style)"
13379    break
13380  fi
13381done
13382rm -f confinc.* confmf.*
13383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
13384$as_echo "${_am_result}" >&6; }
13385
13386# Check whether --enable-dependency-tracking was given.
13387if test "${enable_dependency_tracking+set}" = set; then :
13388  enableval=$enable_dependency_tracking;
13389fi
13390
13391if test "x$enable_dependency_tracking" != xno; then
13392  am_depcomp="$ac_aux_dir/depcomp"
13393  AMDEPBACKSLASH='\'
13394  am__nodep='_no'
13395fi
13396 if test "x$enable_dependency_tracking" != xno; then
13397  AMDEP_TRUE=
13398  AMDEP_FALSE='#'
13399else
13400  AMDEP_TRUE='#'
13401  AMDEP_FALSE=
13402fi
13403
13404
13405# Check whether --enable-silent-rules was given.
13406if test "${enable_silent_rules+set}" = set; then :
13407  enableval=$enable_silent_rules;
13408fi
13409
13410case $enable_silent_rules in # (((
13411  yes) AM_DEFAULT_VERBOSITY=0;;
13412   no) AM_DEFAULT_VERBOSITY=1;;
13413    *) AM_DEFAULT_VERBOSITY=1;;
13414esac
13415am_make=${MAKE-make}
13416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13417$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13418if ${am_cv_make_support_nested_variables+:} false; then :
13419  $as_echo_n "(cached) " >&6
13420else
13421  if $as_echo 'TRUE=$(BAR$(V))
13422BAR0=false
13423BAR1=true
13424V=1
13425am__doit:
13426	@$(TRUE)
13427.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13428  am_cv_make_support_nested_variables=yes
13429else
13430  am_cv_make_support_nested_variables=no
13431fi
13432fi
13433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13434$as_echo "$am_cv_make_support_nested_variables" >&6; }
13435if test $am_cv_make_support_nested_variables = yes; then
13436    AM_V='$(V)'
13437  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13438else
13439  AM_V=$AM_DEFAULT_VERBOSITY
13440  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13441fi
13442AM_BACKSLASH='\'
13443
13444if test "`cd $srcdir && pwd`" != "`pwd`"; then
13445  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13446  # is not polluted with repeated "-I."
13447  am__isrc=' -I$(srcdir)'
13448  # test to see if srcdir already configured
13449  if test -f $srcdir/config.status; then
13450    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13451  fi
13452fi
13453
13454# test whether we have cygpath
13455if test -z "$CYGPATH_W"; then
13456  if (cygpath --version) >/dev/null 2>/dev/null; then
13457    CYGPATH_W='cygpath -w'
13458  else
13459    CYGPATH_W=echo
13460  fi
13461fi
13462
13463
13464# Define the identity of the package.
13465 PACKAGE='collectd'
13466 VERSION='5.12.0'
13467
13468
13469cat >>confdefs.h <<_ACEOF
13470#define PACKAGE "$PACKAGE"
13471_ACEOF
13472
13473
13474cat >>confdefs.h <<_ACEOF
13475#define VERSION "$VERSION"
13476_ACEOF
13477
13478# Some tools Automake needs.
13479
13480ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13481
13482
13483AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13484
13485
13486AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13487
13488
13489AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13490
13491
13492MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13493
13494# For better backward compatibility.  To be removed once Automake 1.9.x
13495# dies out for good.  For more background, see:
13496# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13497# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13498mkdir_p='$(MKDIR_P)'
13499
13500# We need awk for the "check" target (and possibly the TAP driver).  The
13501# system "awk" is bad on some platforms.
13502# Always define AMTAR for backward compatibility.  Yes, it's still used
13503# in the wild :-(  We should find a proper way to deprecate it ...
13504AMTAR='$${TAR-tar}'
13505
13506
13507# We'll loop over all known methods to create a tar archive until one works.
13508_am_tools='gnutar  pax cpio none'
13509
13510
13511
13512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
13513$as_echo_n "checking how to create a pax tar archive... " >&6; }
13514
13515  # Go ahead even if we have the value already cached.  We do so because we
13516  # need to set the values for the 'am__tar' and 'am__untar' variables.
13517  _am_tools=${am_cv_prog_tar_pax-$_am_tools}
13518
13519  for _am_tool in $_am_tools; do
13520    case $_am_tool in
13521    gnutar)
13522      for _am_tar in tar gnutar gtar; do
13523        { echo "$as_me:$LINENO: $_am_tar --version" >&5
13524   ($_am_tar --version) >&5 2>&5
13525   ac_status=$?
13526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527   (exit $ac_status); } && break
13528      done
13529      am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
13530      am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
13531      am__untar="$_am_tar -xf -"
13532      ;;
13533    plaintar)
13534      # Must skip GNU tar: if it does not support --format= it doesn't create
13535      # ustar tarball either.
13536      (tar --version) >/dev/null 2>&1 && continue
13537      am__tar='tar chf - "$$tardir"'
13538      am__tar_='tar chf - "$tardir"'
13539      am__untar='tar xf -'
13540      ;;
13541    pax)
13542      am__tar='pax -L -x pax -w "$$tardir"'
13543      am__tar_='pax -L -x pax -w "$tardir"'
13544      am__untar='pax -r'
13545      ;;
13546    cpio)
13547      am__tar='find "$$tardir" -print | cpio -o -H pax -L'
13548      am__tar_='find "$tardir" -print | cpio -o -H pax -L'
13549      am__untar='cpio -i -H pax -d'
13550      ;;
13551    none)
13552      am__tar=false
13553      am__tar_=false
13554      am__untar=false
13555      ;;
13556    esac
13557
13558    # If the value was cached, stop now.  We just wanted to have am__tar
13559    # and am__untar set.
13560    test -n "${am_cv_prog_tar_pax}" && break
13561
13562    # tar/untar a dummy directory, and stop if the command works.
13563    rm -rf conftest.dir
13564    mkdir conftest.dir
13565    echo GrepMe > conftest.dir/file
13566    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
13567   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
13568   ac_status=$?
13569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570   (exit $ac_status); }
13571    rm -rf conftest.dir
13572    if test -s conftest.tar; then
13573      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
13574   ($am__untar <conftest.tar) >&5 2>&5
13575   ac_status=$?
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); }
13578      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
13579   (cat conftest.dir/file) >&5 2>&5
13580   ac_status=$?
13581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582   (exit $ac_status); }
13583      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
13584    fi
13585  done
13586  rm -rf conftest.dir
13587
13588  if ${am_cv_prog_tar_pax+:} false; then :
13589  $as_echo_n "(cached) " >&6
13590else
13591  am_cv_prog_tar_pax=$_am_tool
13592fi
13593
13594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
13595$as_echo "$am_cv_prog_tar_pax" >&6; }
13596
13597
13598
13599
13600
13601depcc="$CC"   am_compiler_list=
13602
13603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13604$as_echo_n "checking dependency style of $depcc... " >&6; }
13605if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13606  $as_echo_n "(cached) " >&6
13607else
13608  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13609  # We make a subdir and do the tests there.  Otherwise we can end up
13610  # making bogus files that we don't know about and never remove.  For
13611  # instance it was reported that on HP-UX the gcc test will end up
13612  # making a dummy file named 'D' -- because '-MD' means "put the output
13613  # in D".
13614  rm -rf conftest.dir
13615  mkdir conftest.dir
13616  # Copy depcomp to subdir because otherwise we won't find it if we're
13617  # using a relative directory.
13618  cp "$am_depcomp" conftest.dir
13619  cd conftest.dir
13620  # We will build objects and dependencies in a subdirectory because
13621  # it helps to detect inapplicable dependency modes.  For instance
13622  # both Tru64's cc and ICC support -MD to output dependencies as a
13623  # side effect of compilation, but ICC will put the dependencies in
13624  # the current directory while Tru64 will put them in the object
13625  # directory.
13626  mkdir sub
13627
13628  am_cv_CC_dependencies_compiler_type=none
13629  if test "$am_compiler_list" = ""; then
13630     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13631  fi
13632  am__universal=false
13633  case " $depcc " in #(
13634     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13635     esac
13636
13637  for depmode in $am_compiler_list; do
13638    # Setup a source with many dependencies, because some compilers
13639    # like to wrap large dependency lists on column 80 (with \), and
13640    # we should not choose a depcomp mode which is confused by this.
13641    #
13642    # We need to recreate these files for each test, as the compiler may
13643    # overwrite some of them when testing with obscure command lines.
13644    # This happens at least with the AIX C compiler.
13645    : > sub/conftest.c
13646    for i in 1 2 3 4 5 6; do
13647      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13648      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13649      # Solaris 10 /bin/sh.
13650      echo '/* dummy */' > sub/conftst$i.h
13651    done
13652    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13653
13654    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13655    # mode.  It turns out that the SunPro C++ compiler does not properly
13656    # handle '-M -o', and we need to detect this.  Also, some Intel
13657    # versions had trouble with output in subdirs.
13658    am__obj=sub/conftest.${OBJEXT-o}
13659    am__minus_obj="-o $am__obj"
13660    case $depmode in
13661    gcc)
13662      # This depmode causes a compiler race in universal mode.
13663      test "$am__universal" = false || continue
13664      ;;
13665    nosideeffect)
13666      # After this tag, mechanisms are not by side-effect, so they'll
13667      # only be used when explicitly requested.
13668      if test "x$enable_dependency_tracking" = xyes; then
13669	continue
13670      else
13671	break
13672      fi
13673      ;;
13674    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13675      # This compiler won't grok '-c -o', but also, the minuso test has
13676      # not run yet.  These depmodes are late enough in the game, and
13677      # so weak that their functioning should not be impacted.
13678      am__obj=conftest.${OBJEXT-o}
13679      am__minus_obj=
13680      ;;
13681    none) break ;;
13682    esac
13683    if depmode=$depmode \
13684       source=sub/conftest.c object=$am__obj \
13685       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13686       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13687         >/dev/null 2>conftest.err &&
13688       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13689       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13690       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13691       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13692      # icc doesn't choke on unknown options, it will just issue warnings
13693      # or remarks (even with -Werror).  So we grep stderr for any message
13694      # that says an option was ignored or not supported.
13695      # When given -MP, icc 7.0 and 7.1 complain thusly:
13696      #   icc: Command line warning: ignoring option '-M'; no argument required
13697      # The diagnosis changed in icc 8.0:
13698      #   icc: Command line remark: option '-MP' not supported
13699      if (grep 'ignoring option' conftest.err ||
13700          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13701        am_cv_CC_dependencies_compiler_type=$depmode
13702        break
13703      fi
13704    fi
13705  done
13706
13707  cd ..
13708  rm -rf conftest.dir
13709else
13710  am_cv_CC_dependencies_compiler_type=none
13711fi
13712
13713fi
13714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13715$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13716CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13717
13718 if
13719  test "x$enable_dependency_tracking" != xno \
13720  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13721  am__fastdepCC_TRUE=
13722  am__fastdepCC_FALSE='#'
13723else
13724  am__fastdepCC_TRUE='#'
13725  am__fastdepCC_FALSE=
13726fi
13727
13728
13729
13730# POSIX will say in a future version that running "rm -f" with no argument
13731# is OK; and we want to be able to make that assumption in our Makefile
13732# recipes.  So use an aggressive probe to check that the usage we want is
13733# actually supported "in the wild" to an acceptable degree.
13734# See automake bug#10828.
13735# To make any issue more visible, cause the running configure to be aborted
13736# by default if the 'rm' program in use doesn't match our expectations; the
13737# user can still override this though.
13738if rm -f && rm -fr && rm -rf; then : OK; else
13739  cat >&2 <<'END'
13740Oops!
13741
13742Your 'rm' program seems unable to run without file operands specified
13743on the command line, even when the '-f' option is present.  This is contrary
13744to the behaviour of most rm programs out there, and not conforming with
13745the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13746
13747Please tell bug-automake@gnu.org about your system, including the value
13748of your $PATH and any error possibly output before this message.  This
13749can help us improve future automake versions.
13750
13751END
13752  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13753    echo 'Configuration will proceed anyway, since you have set the' >&2
13754    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13755    echo >&2
13756  else
13757    cat >&2 <<'END'
13758Aborting the configuration process, to ensure you take notice of the issue.
13759
13760You can download and install GNU coreutils to get an 'rm' implementation
13761that behaves properly: <https://www.gnu.org/software/coreutils/>.
13762
13763If you want to complete the configuration process using your problematic
13764'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13765to "yes", and re-run configure.
13766
13767END
13768    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
13769  fi
13770fi
13771
13772# Check whether --enable-silent-rules was given.
13773if test "${enable_silent_rules+set}" = set; then :
13774  enableval=$enable_silent_rules;
13775fi
13776
13777case $enable_silent_rules in # (((
13778  yes) AM_DEFAULT_VERBOSITY=0;;
13779   no) AM_DEFAULT_VERBOSITY=1;;
13780    *) AM_DEFAULT_VERBOSITY=0;;
13781esac
13782am_make=${MAKE-make}
13783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13784$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13785if ${am_cv_make_support_nested_variables+:} false; then :
13786  $as_echo_n "(cached) " >&6
13787else
13788  if $as_echo 'TRUE=$(BAR$(V))
13789BAR0=false
13790BAR1=true
13791V=1
13792am__doit:
13793	@$(TRUE)
13794.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13795  am_cv_make_support_nested_variables=yes
13796else
13797  am_cv_make_support_nested_variables=no
13798fi
13799fi
13800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13801$as_echo "$am_cv_make_support_nested_variables" >&6; }
13802if test $am_cv_make_support_nested_variables = yes; then
13803    AM_V='$(V)'
13804  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13805else
13806  AM_V=$AM_DEFAULT_VERBOSITY
13807  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13808fi
13809AM_BACKSLASH='\'
13810
13811ac_ext=c
13812ac_cpp='$CPP $CPPFLAGS'
13813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13815ac_compiler_gnu=$ac_cv_c_compiler_gnu
13816
13817
13818
13819
13820# Check whether --enable-largefile was given.
13821if test "${enable_largefile+set}" = set; then :
13822  enableval=$enable_largefile;
13823fi
13824
13825if test "$enable_largefile" != no; then
13826
13827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13828$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13829if ${ac_cv_sys_largefile_CC+:} false; then :
13830  $as_echo_n "(cached) " >&6
13831else
13832  ac_cv_sys_largefile_CC=no
13833     if test "$GCC" != yes; then
13834       ac_save_CC=$CC
13835       while :; do
13836	 # IRIX 6.2 and later do not support large files by default,
13837	 # so use the C compiler's -n32 option if that helps.
13838	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13839/* end confdefs.h.  */
13840#include <sys/types.h>
13841 /* Check that off_t can represent 2**63 - 1 correctly.
13842    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13843    since some C++ compilers masquerading as C compilers
13844    incorrectly reject 9223372036854775807.  */
13845#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13846  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13847		       && LARGE_OFF_T % 2147483647 == 1)
13848		      ? 1 : -1];
13849int
13850main ()
13851{
13852
13853  ;
13854  return 0;
13855}
13856_ACEOF
13857	 if ac_fn_c_try_compile "$LINENO"; then :
13858  break
13859fi
13860rm -f core conftest.err conftest.$ac_objext
13861	 CC="$CC -n32"
13862	 if ac_fn_c_try_compile "$LINENO"; then :
13863  ac_cv_sys_largefile_CC=' -n32'; break
13864fi
13865rm -f core conftest.err conftest.$ac_objext
13866	 break
13867       done
13868       CC=$ac_save_CC
13869       rm -f conftest.$ac_ext
13870    fi
13871fi
13872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13873$as_echo "$ac_cv_sys_largefile_CC" >&6; }
13874  if test "$ac_cv_sys_largefile_CC" != no; then
13875    CC=$CC$ac_cv_sys_largefile_CC
13876  fi
13877
13878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13879$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13880if ${ac_cv_sys_file_offset_bits+:} false; then :
13881  $as_echo_n "(cached) " >&6
13882else
13883  while :; do
13884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13885/* end confdefs.h.  */
13886#include <sys/types.h>
13887 /* Check that off_t can represent 2**63 - 1 correctly.
13888    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13889    since some C++ compilers masquerading as C compilers
13890    incorrectly reject 9223372036854775807.  */
13891#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13892  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13893		       && LARGE_OFF_T % 2147483647 == 1)
13894		      ? 1 : -1];
13895int
13896main ()
13897{
13898
13899  ;
13900  return 0;
13901}
13902_ACEOF
13903if ac_fn_c_try_compile "$LINENO"; then :
13904  ac_cv_sys_file_offset_bits=no; break
13905fi
13906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908/* end confdefs.h.  */
13909#define _FILE_OFFSET_BITS 64
13910#include <sys/types.h>
13911 /* Check that off_t can represent 2**63 - 1 correctly.
13912    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13913    since some C++ compilers masquerading as C compilers
13914    incorrectly reject 9223372036854775807.  */
13915#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13916  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13917		       && LARGE_OFF_T % 2147483647 == 1)
13918		      ? 1 : -1];
13919int
13920main ()
13921{
13922
13923  ;
13924  return 0;
13925}
13926_ACEOF
13927if ac_fn_c_try_compile "$LINENO"; then :
13928  ac_cv_sys_file_offset_bits=64; break
13929fi
13930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13931  ac_cv_sys_file_offset_bits=unknown
13932  break
13933done
13934fi
13935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13936$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13937case $ac_cv_sys_file_offset_bits in #(
13938  no | unknown) ;;
13939  *)
13940cat >>confdefs.h <<_ACEOF
13941#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13942_ACEOF
13943;;
13944esac
13945rm -rf conftest*
13946  if test $ac_cv_sys_file_offset_bits = unknown; then
13947    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13948$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13949if ${ac_cv_sys_large_files+:} false; then :
13950  $as_echo_n "(cached) " >&6
13951else
13952  while :; do
13953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13954/* end confdefs.h.  */
13955#include <sys/types.h>
13956 /* Check that off_t can represent 2**63 - 1 correctly.
13957    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13958    since some C++ compilers masquerading as C compilers
13959    incorrectly reject 9223372036854775807.  */
13960#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13961  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13962		       && LARGE_OFF_T % 2147483647 == 1)
13963		      ? 1 : -1];
13964int
13965main ()
13966{
13967
13968  ;
13969  return 0;
13970}
13971_ACEOF
13972if ac_fn_c_try_compile "$LINENO"; then :
13973  ac_cv_sys_large_files=no; break
13974fi
13975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13977/* end confdefs.h.  */
13978#define _LARGE_FILES 1
13979#include <sys/types.h>
13980 /* Check that off_t can represent 2**63 - 1 correctly.
13981    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13982    since some C++ compilers masquerading as C compilers
13983    incorrectly reject 9223372036854775807.  */
13984#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13985  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13986		       && LARGE_OFF_T % 2147483647 == 1)
13987		      ? 1 : -1];
13988int
13989main ()
13990{
13991
13992  ;
13993  return 0;
13994}
13995_ACEOF
13996if ac_fn_c_try_compile "$LINENO"; then :
13997  ac_cv_sys_large_files=1; break
13998fi
13999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14000  ac_cv_sys_large_files=unknown
14001  break
14002done
14003fi
14004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14005$as_echo "$ac_cv_sys_large_files" >&6; }
14006case $ac_cv_sys_large_files in #(
14007  no | unknown) ;;
14008  *)
14009cat >>confdefs.h <<_ACEOF
14010#define _LARGE_FILES $ac_cv_sys_large_files
14011_ACEOF
14012;;
14013esac
14014rm -rf conftest*
14015  fi
14016
14017
14018fi
14019
14020
14021#
14022# Checks for programs.
14023#
14024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14025$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14026if ${ac_cv_prog_cc_c99+:} false; then :
14027  $as_echo_n "(cached) " >&6
14028else
14029  ac_cv_prog_cc_c99=no
14030ac_save_CC=$CC
14031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14032/* end confdefs.h.  */
14033#include <stdarg.h>
14034#include <stdbool.h>
14035#include <stdlib.h>
14036#include <wchar.h>
14037#include <stdio.h>
14038
14039// Check varargs macros.  These examples are taken from C99 6.10.3.5.
14040#define debug(...) fprintf (stderr, __VA_ARGS__)
14041#define showlist(...) puts (#__VA_ARGS__)
14042#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14043static void
14044test_varargs_macros (void)
14045{
14046  int x = 1234;
14047  int y = 5678;
14048  debug ("Flag");
14049  debug ("X = %d\n", x);
14050  showlist (The first, second, and third items.);
14051  report (x>y, "x is %d but y is %d", x, y);
14052}
14053
14054// Check long long types.
14055#define BIG64 18446744073709551615ull
14056#define BIG32 4294967295ul
14057#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14058#if !BIG_OK
14059  your preprocessor is broken;
14060#endif
14061#if BIG_OK
14062#else
14063  your preprocessor is broken;
14064#endif
14065static long long int bignum = -9223372036854775807LL;
14066static unsigned long long int ubignum = BIG64;
14067
14068struct incomplete_array
14069{
14070  int datasize;
14071  double data[];
14072};
14073
14074struct named_init {
14075  int number;
14076  const wchar_t *name;
14077  double average;
14078};
14079
14080typedef const char *ccp;
14081
14082static inline int
14083test_restrict (ccp restrict text)
14084{
14085  // See if C++-style comments work.
14086  // Iterate through items via the restricted pointer.
14087  // Also check for declarations in for loops.
14088  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14089    continue;
14090  return 0;
14091}
14092
14093// Check varargs and va_copy.
14094static void
14095test_varargs (const char *format, ...)
14096{
14097  va_list args;
14098  va_start (args, format);
14099  va_list args_copy;
14100  va_copy (args_copy, args);
14101
14102  const char *str;
14103  int number;
14104  float fnumber;
14105
14106  while (*format)
14107    {
14108      switch (*format++)
14109	{
14110	case 's': // string
14111	  str = va_arg (args_copy, const char *);
14112	  break;
14113	case 'd': // int
14114	  number = va_arg (args_copy, int);
14115	  break;
14116	case 'f': // float
14117	  fnumber = va_arg (args_copy, double);
14118	  break;
14119	default:
14120	  break;
14121	}
14122    }
14123  va_end (args_copy);
14124  va_end (args);
14125}
14126
14127int
14128main ()
14129{
14130
14131  // Check bool.
14132  _Bool success = false;
14133
14134  // Check restrict.
14135  if (test_restrict ("String literal") == 0)
14136    success = true;
14137  char *restrict newvar = "Another string";
14138
14139  // Check varargs.
14140  test_varargs ("s, d' f .", "string", 65, 34.234);
14141  test_varargs_macros ();
14142
14143  // Check flexible array members.
14144  struct incomplete_array *ia =
14145    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14146  ia->datasize = 10;
14147  for (int i = 0; i < ia->datasize; ++i)
14148    ia->data[i] = i * 1.234;
14149
14150  // Check named initializers.
14151  struct named_init ni = {
14152    .number = 34,
14153    .name = L"Test wide string",
14154    .average = 543.34343,
14155  };
14156
14157  ni.number = 58;
14158
14159  int dynamic_array[ni.number];
14160  dynamic_array[ni.number - 1] = 543;
14161
14162  // work around unused variable warnings
14163  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14164	  || dynamic_array[ni.number - 1] != 543);
14165
14166  ;
14167  return 0;
14168}
14169_ACEOF
14170for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14171do
14172  CC="$ac_save_CC $ac_arg"
14173  if ac_fn_c_try_compile "$LINENO"; then :
14174  ac_cv_prog_cc_c99=$ac_arg
14175fi
14176rm -f core conftest.err conftest.$ac_objext
14177  test "x$ac_cv_prog_cc_c99" != "xno" && break
14178done
14179rm -f conftest.$ac_ext
14180CC=$ac_save_CC
14181
14182fi
14183# AC_CACHE_VAL
14184case "x$ac_cv_prog_cc_c99" in
14185  x)
14186    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14187$as_echo "none needed" >&6; } ;;
14188  xno)
14189    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14190$as_echo "unsupported" >&6; } ;;
14191  *)
14192    CC="$CC $ac_cv_prog_cc_c99"
14193    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14194$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14195esac
14196if test "x$ac_cv_prog_cc_c99" != xno; then :
14197
14198fi
14199
14200
14201
14202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
14203$as_echo_n "checking for C compiler vendor... " >&6; }
14204if ${ax_cv_c_compiler_vendor+:} false; then :
14205  $as_echo_n "(cached) " >&6
14206else
14207    # note: don't check for gcc first since some other compilers define __GNUC__
14208  vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
14209           ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
14210           pathscale: __PATHCC__,__PATHSCALE__
14211           clang:     __clang__
14212           cray:      _CRAYC
14213           fujitsu:   __FUJITSU
14214           gnu:       __GNUC__
14215           sun:       __SUNPRO_C,__SUNPRO_CC
14216           hp:        __HP_cc,__HP_aCC
14217           dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
14218           borland:   __BORLANDC__,__CODEGEARC__,__TURBOC__
14219           comeau:    __COMO__
14220           kai:       __KCC
14221           lcc:       __LCC__
14222           sgi:       __sgi,sgi
14223           microsoft: _MSC_VER
14224           metrowerks: __MWERKS__
14225           watcom:    __WATCOMC__
14226           portland:  __PGI
14227           tcc:       __TINYC__
14228           unknown:   UNKNOWN"
14229  for ventest in $vendors; do
14230    case $ventest in
14231      *:) vendor=$ventest; continue ;;
14232      *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
14233    esac
14234    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235/* end confdefs.h.  */
14236
14237int
14238main ()
14239{
14240
14241      #if !($vencpp)
14242        thisisanerror;
14243      #endif
14244
14245  ;
14246  return 0;
14247}
14248_ACEOF
14249if ac_fn_c_try_compile "$LINENO"; then :
14250  break
14251fi
14252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14253  done
14254  ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
14255
14256fi
14257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
14258$as_echo "$ax_cv_c_compiler_vendor" >&6; }
14259
14260
14261ac_ext=cpp
14262ac_cpp='$CXXCPP $CPPFLAGS'
14263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14266if test -z "$CXX"; then
14267  if test -n "$CCC"; then
14268    CXX=$CCC
14269  else
14270    if test -n "$ac_tool_prefix"; then
14271  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14272  do
14273    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14274set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14276$as_echo_n "checking for $ac_word... " >&6; }
14277if ${ac_cv_prog_CXX+:} false; then :
14278  $as_echo_n "(cached) " >&6
14279else
14280  if test -n "$CXX"; then
14281  ac_cv_prog_CXX="$CXX" # Let the user override the test.
14282else
14283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14284for as_dir in $PATH
14285do
14286  IFS=$as_save_IFS
14287  test -z "$as_dir" && as_dir=.
14288    for ac_exec_ext in '' $ac_executable_extensions; do
14289  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14290    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14292    break 2
14293  fi
14294done
14295  done
14296IFS=$as_save_IFS
14297
14298fi
14299fi
14300CXX=$ac_cv_prog_CXX
14301if test -n "$CXX"; then
14302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14303$as_echo "$CXX" >&6; }
14304else
14305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14306$as_echo "no" >&6; }
14307fi
14308
14309
14310    test -n "$CXX" && break
14311  done
14312fi
14313if test -z "$CXX"; then
14314  ac_ct_CXX=$CXX
14315  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14316do
14317  # Extract the first word of "$ac_prog", so it can be a program name with args.
14318set dummy $ac_prog; ac_word=$2
14319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14320$as_echo_n "checking for $ac_word... " >&6; }
14321if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14322  $as_echo_n "(cached) " >&6
14323else
14324  if test -n "$ac_ct_CXX"; then
14325  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14326else
14327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14328for as_dir in $PATH
14329do
14330  IFS=$as_save_IFS
14331  test -z "$as_dir" && as_dir=.
14332    for ac_exec_ext in '' $ac_executable_extensions; do
14333  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14334    ac_cv_prog_ac_ct_CXX="$ac_prog"
14335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14336    break 2
14337  fi
14338done
14339  done
14340IFS=$as_save_IFS
14341
14342fi
14343fi
14344ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14345if test -n "$ac_ct_CXX"; then
14346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14347$as_echo "$ac_ct_CXX" >&6; }
14348else
14349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14350$as_echo "no" >&6; }
14351fi
14352
14353
14354  test -n "$ac_ct_CXX" && break
14355done
14356
14357  if test "x$ac_ct_CXX" = x; then
14358    CXX="g++"
14359  else
14360    case $cross_compiling:$ac_tool_warned in
14361yes:)
14362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14364ac_tool_warned=yes ;;
14365esac
14366    CXX=$ac_ct_CXX
14367  fi
14368fi
14369
14370  fi
14371fi
14372# Provide some information about the compiler.
14373$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14374set X $ac_compile
14375ac_compiler=$2
14376for ac_option in --version -v -V -qversion; do
14377  { { ac_try="$ac_compiler $ac_option >&5"
14378case "(($ac_try" in
14379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14380  *) ac_try_echo=$ac_try;;
14381esac
14382eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14383$as_echo "$ac_try_echo"; } >&5
14384  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14385  ac_status=$?
14386  if test -s conftest.err; then
14387    sed '10a\
14388... rest of stderr output deleted ...
14389         10q' conftest.err >conftest.er1
14390    cat conftest.er1 >&5
14391  fi
14392  rm -f conftest.er1 conftest.err
14393  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14394  test $ac_status = 0; }
14395done
14396
14397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14398$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14399if ${ac_cv_cxx_compiler_gnu+:} false; then :
14400  $as_echo_n "(cached) " >&6
14401else
14402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403/* end confdefs.h.  */
14404
14405int
14406main ()
14407{
14408#ifndef __GNUC__
14409       choke me
14410#endif
14411
14412  ;
14413  return 0;
14414}
14415_ACEOF
14416if ac_fn_cxx_try_compile "$LINENO"; then :
14417  ac_compiler_gnu=yes
14418else
14419  ac_compiler_gnu=no
14420fi
14421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14422ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14423
14424fi
14425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14426$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14427if test $ac_compiler_gnu = yes; then
14428  GXX=yes
14429else
14430  GXX=
14431fi
14432ac_test_CXXFLAGS=${CXXFLAGS+set}
14433ac_save_CXXFLAGS=$CXXFLAGS
14434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14435$as_echo_n "checking whether $CXX accepts -g... " >&6; }
14436if ${ac_cv_prog_cxx_g+:} false; then :
14437  $as_echo_n "(cached) " >&6
14438else
14439  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14440   ac_cxx_werror_flag=yes
14441   ac_cv_prog_cxx_g=no
14442   CXXFLAGS="-g"
14443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444/* end confdefs.h.  */
14445
14446int
14447main ()
14448{
14449
14450  ;
14451  return 0;
14452}
14453_ACEOF
14454if ac_fn_cxx_try_compile "$LINENO"; then :
14455  ac_cv_prog_cxx_g=yes
14456else
14457  CXXFLAGS=""
14458      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459/* end confdefs.h.  */
14460
14461int
14462main ()
14463{
14464
14465  ;
14466  return 0;
14467}
14468_ACEOF
14469if ac_fn_cxx_try_compile "$LINENO"; then :
14470
14471else
14472  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14473	 CXXFLAGS="-g"
14474	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475/* end confdefs.h.  */
14476
14477int
14478main ()
14479{
14480
14481  ;
14482  return 0;
14483}
14484_ACEOF
14485if ac_fn_cxx_try_compile "$LINENO"; then :
14486  ac_cv_prog_cxx_g=yes
14487fi
14488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14489fi
14490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491fi
14492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14493   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14494fi
14495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14496$as_echo "$ac_cv_prog_cxx_g" >&6; }
14497if test "$ac_test_CXXFLAGS" = set; then
14498  CXXFLAGS=$ac_save_CXXFLAGS
14499elif test $ac_cv_prog_cxx_g = yes; then
14500  if test "$GXX" = yes; then
14501    CXXFLAGS="-g -O2"
14502  else
14503    CXXFLAGS="-g"
14504  fi
14505else
14506  if test "$GXX" = yes; then
14507    CXXFLAGS="-O2"
14508  else
14509    CXXFLAGS=
14510  fi
14511fi
14512ac_ext=c
14513ac_cpp='$CPP $CPPFLAGS'
14514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14516ac_compiler_gnu=$ac_cv_c_compiler_gnu
14517
14518
14519
14520func_stripname_cnf ()
14521{
14522  case $2 in
14523  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14524  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14525  esac
14526} # func_stripname_cnf
14527
14528      if test -n "$CXX" && ( test no != "$CXX" &&
14529    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14530    (test g++ != "$CXX"))); then
14531  ac_ext=cpp
14532ac_cpp='$CXXCPP $CPPFLAGS'
14533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14537$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14538if test -z "$CXXCPP"; then
14539  if ${ac_cv_prog_CXXCPP+:} false; then :
14540  $as_echo_n "(cached) " >&6
14541else
14542      # Double quotes because CXXCPP needs to be expanded
14543    for CXXCPP in "$CXX -E" "/lib/cpp"
14544    do
14545      ac_preproc_ok=false
14546for ac_cxx_preproc_warn_flag in '' yes
14547do
14548  # Use a header file that comes with gcc, so configuring glibc
14549  # with a fresh cross-compiler works.
14550  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14551  # <limits.h> exists even on freestanding compilers.
14552  # On the NeXT, cc -E runs the code through the compiler's parser,
14553  # not just through cpp. "Syntax error" is here to catch this case.
14554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14555/* end confdefs.h.  */
14556#ifdef __STDC__
14557# include <limits.h>
14558#else
14559# include <assert.h>
14560#endif
14561		     Syntax error
14562_ACEOF
14563if ac_fn_cxx_try_cpp "$LINENO"; then :
14564
14565else
14566  # Broken: fails on valid input.
14567continue
14568fi
14569rm -f conftest.err conftest.i conftest.$ac_ext
14570
14571  # OK, works on sane cases.  Now check whether nonexistent headers
14572  # can be detected and how.
14573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574/* end confdefs.h.  */
14575#include <ac_nonexistent.h>
14576_ACEOF
14577if ac_fn_cxx_try_cpp "$LINENO"; then :
14578  # Broken: success on invalid input.
14579continue
14580else
14581  # Passes both tests.
14582ac_preproc_ok=:
14583break
14584fi
14585rm -f conftest.err conftest.i conftest.$ac_ext
14586
14587done
14588# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14589rm -f conftest.i conftest.err conftest.$ac_ext
14590if $ac_preproc_ok; then :
14591  break
14592fi
14593
14594    done
14595    ac_cv_prog_CXXCPP=$CXXCPP
14596
14597fi
14598  CXXCPP=$ac_cv_prog_CXXCPP
14599else
14600  ac_cv_prog_CXXCPP=$CXXCPP
14601fi
14602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14603$as_echo "$CXXCPP" >&6; }
14604ac_preproc_ok=false
14605for ac_cxx_preproc_warn_flag in '' yes
14606do
14607  # Use a header file that comes with gcc, so configuring glibc
14608  # with a fresh cross-compiler works.
14609  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14610  # <limits.h> exists even on freestanding compilers.
14611  # On the NeXT, cc -E runs the code through the compiler's parser,
14612  # not just through cpp. "Syntax error" is here to catch this case.
14613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614/* end confdefs.h.  */
14615#ifdef __STDC__
14616# include <limits.h>
14617#else
14618# include <assert.h>
14619#endif
14620		     Syntax error
14621_ACEOF
14622if ac_fn_cxx_try_cpp "$LINENO"; then :
14623
14624else
14625  # Broken: fails on valid input.
14626continue
14627fi
14628rm -f conftest.err conftest.i conftest.$ac_ext
14629
14630  # OK, works on sane cases.  Now check whether nonexistent headers
14631  # can be detected and how.
14632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633/* end confdefs.h.  */
14634#include <ac_nonexistent.h>
14635_ACEOF
14636if ac_fn_cxx_try_cpp "$LINENO"; then :
14637  # Broken: success on invalid input.
14638continue
14639else
14640  # Passes both tests.
14641ac_preproc_ok=:
14642break
14643fi
14644rm -f conftest.err conftest.i conftest.$ac_ext
14645
14646done
14647# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14648rm -f conftest.i conftest.err conftest.$ac_ext
14649if $ac_preproc_ok; then :
14650
14651else
14652  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14654as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14655See \`config.log' for more details" "$LINENO" 5; }
14656fi
14657
14658ac_ext=c
14659ac_cpp='$CPP $CPPFLAGS'
14660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14662ac_compiler_gnu=$ac_cv_c_compiler_gnu
14663
14664else
14665  _lt_caught_CXX_error=yes
14666fi
14667
14668ac_ext=cpp
14669ac_cpp='$CXXCPP $CPPFLAGS'
14670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14673
14674archive_cmds_need_lc_CXX=no
14675allow_undefined_flag_CXX=
14676always_export_symbols_CXX=no
14677archive_expsym_cmds_CXX=
14678compiler_needs_object_CXX=no
14679export_dynamic_flag_spec_CXX=
14680hardcode_direct_CXX=no
14681hardcode_direct_absolute_CXX=no
14682hardcode_libdir_flag_spec_CXX=
14683hardcode_libdir_separator_CXX=
14684hardcode_minus_L_CXX=no
14685hardcode_shlibpath_var_CXX=unsupported
14686hardcode_automatic_CXX=no
14687inherit_rpath_CXX=no
14688module_cmds_CXX=
14689module_expsym_cmds_CXX=
14690link_all_deplibs_CXX=unknown
14691old_archive_cmds_CXX=$old_archive_cmds
14692reload_flag_CXX=$reload_flag
14693reload_cmds_CXX=$reload_cmds
14694no_undefined_flag_CXX=
14695whole_archive_flag_spec_CXX=
14696enable_shared_with_static_runtimes_CXX=no
14697
14698# Source file extension for C++ test sources.
14699ac_ext=cpp
14700
14701# Object file extension for compiled C++ test sources.
14702objext=o
14703objext_CXX=$objext
14704
14705# No sense in running all these tests if we already determined that
14706# the CXX compiler isn't working.  Some variables (like enable_shared)
14707# are currently assumed to apply to all compilers on this platform,
14708# and will be corrupted by setting them based on a non-working compiler.
14709if test yes != "$_lt_caught_CXX_error"; then
14710  # Code to be used in simple compile tests
14711  lt_simple_compile_test_code="int some_variable = 0;"
14712
14713  # Code to be used in simple link tests
14714  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14715
14716  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14717
14718
14719
14720
14721
14722
14723# If no C compiler was specified, use CC.
14724LTCC=${LTCC-"$CC"}
14725
14726# If no C compiler flags were specified, use CFLAGS.
14727LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14728
14729# Allow CC to be a program name with arguments.
14730compiler=$CC
14731
14732
14733  # save warnings/boilerplate of simple test code
14734  ac_outfile=conftest.$ac_objext
14735echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14736eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14737_lt_compiler_boilerplate=`cat conftest.err`
14738$RM conftest*
14739
14740  ac_outfile=conftest.$ac_objext
14741echo "$lt_simple_link_test_code" >conftest.$ac_ext
14742eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14743_lt_linker_boilerplate=`cat conftest.err`
14744$RM -r conftest*
14745
14746
14747  # Allow CC to be a program name with arguments.
14748  lt_save_CC=$CC
14749  lt_save_CFLAGS=$CFLAGS
14750  lt_save_LD=$LD
14751  lt_save_GCC=$GCC
14752  GCC=$GXX
14753  lt_save_with_gnu_ld=$with_gnu_ld
14754  lt_save_path_LD=$lt_cv_path_LD
14755  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14756    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14757  else
14758    $as_unset lt_cv_prog_gnu_ld
14759  fi
14760  if test -n "${lt_cv_path_LDCXX+set}"; then
14761    lt_cv_path_LD=$lt_cv_path_LDCXX
14762  else
14763    $as_unset lt_cv_path_LD
14764  fi
14765  test -z "${LDCXX+set}" || LD=$LDCXX
14766  CC=${CXX-"c++"}
14767  CFLAGS=$CXXFLAGS
14768  compiler=$CC
14769  compiler_CXX=$CC
14770  func_cc_basename $compiler
14771cc_basename=$func_cc_basename_result
14772
14773
14774  if test -n "$compiler"; then
14775    # We don't want -fno-exception when compiling C++ code, so set the
14776    # no_builtin_flag separately
14777    if test yes = "$GXX"; then
14778      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14779    else
14780      lt_prog_compiler_no_builtin_flag_CXX=
14781    fi
14782
14783    if test yes = "$GXX"; then
14784      # Set up default GNU C++ configuration
14785
14786
14787
14788# Check whether --with-gnu-ld was given.
14789if test "${with_gnu_ld+set}" = set; then :
14790  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14791else
14792  with_gnu_ld=no
14793fi
14794
14795ac_prog=ld
14796if test yes = "$GCC"; then
14797  # Check if gcc -print-prog-name=ld gives a path.
14798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14799$as_echo_n "checking for ld used by $CC... " >&6; }
14800  case $host in
14801  *-*-mingw*)
14802    # gcc leaves a trailing carriage return, which upsets mingw
14803    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14804  *)
14805    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14806  esac
14807  case $ac_prog in
14808    # Accept absolute paths.
14809    [\\/]* | ?:[\\/]*)
14810      re_direlt='/[^/][^/]*/\.\./'
14811      # Canonicalize the pathname of ld
14812      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14813      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14814	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14815      done
14816      test -z "$LD" && LD=$ac_prog
14817      ;;
14818  "")
14819    # If it fails, then pretend we aren't using GCC.
14820    ac_prog=ld
14821    ;;
14822  *)
14823    # If it is relative, then search for the first ld in PATH.
14824    with_gnu_ld=unknown
14825    ;;
14826  esac
14827elif test yes = "$with_gnu_ld"; then
14828  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14829$as_echo_n "checking for GNU ld... " >&6; }
14830else
14831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14832$as_echo_n "checking for non-GNU ld... " >&6; }
14833fi
14834if ${lt_cv_path_LD+:} false; then :
14835  $as_echo_n "(cached) " >&6
14836else
14837  if test -z "$LD"; then
14838  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14839  for ac_dir in $PATH; do
14840    IFS=$lt_save_ifs
14841    test -z "$ac_dir" && ac_dir=.
14842    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14843      lt_cv_path_LD=$ac_dir/$ac_prog
14844      # Check to see if the program is GNU ld.  I'd rather use --version,
14845      # but apparently some variants of GNU ld only accept -v.
14846      # Break only if it was the GNU/non-GNU ld that we prefer.
14847      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14848      *GNU* | *'with BFD'*)
14849	test no != "$with_gnu_ld" && break
14850	;;
14851      *)
14852	test yes != "$with_gnu_ld" && break
14853	;;
14854      esac
14855    fi
14856  done
14857  IFS=$lt_save_ifs
14858else
14859  lt_cv_path_LD=$LD # Let the user override the test with a path.
14860fi
14861fi
14862
14863LD=$lt_cv_path_LD
14864if test -n "$LD"; then
14865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14866$as_echo "$LD" >&6; }
14867else
14868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14869$as_echo "no" >&6; }
14870fi
14871test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14873$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14874if ${lt_cv_prog_gnu_ld+:} false; then :
14875  $as_echo_n "(cached) " >&6
14876else
14877  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14878case `$LD -v 2>&1 </dev/null` in
14879*GNU* | *'with BFD'*)
14880  lt_cv_prog_gnu_ld=yes
14881  ;;
14882*)
14883  lt_cv_prog_gnu_ld=no
14884  ;;
14885esac
14886fi
14887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14888$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14889with_gnu_ld=$lt_cv_prog_gnu_ld
14890
14891
14892
14893
14894
14895
14896
14897      # Check if GNU C++ uses GNU ld as the underlying linker, since the
14898      # archiving commands below assume that GNU ld is being used.
14899      if test yes = "$with_gnu_ld"; then
14900        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14901        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14902
14903        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14904        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14905
14906        # If archive_cmds runs LD, not CC, wlarc should be empty
14907        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14908        #     investigate it a little bit more. (MM)
14909        wlarc='$wl'
14910
14911        # ancient GNU ld didn't support --whole-archive et. al.
14912        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14913	  $GREP 'no-whole-archive' > /dev/null; then
14914          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14915        else
14916          whole_archive_flag_spec_CXX=
14917        fi
14918      else
14919        with_gnu_ld=no
14920        wlarc=
14921
14922        # A generic and very simple default shared library creation
14923        # command for GNU C++ for the case where it uses the native
14924        # linker, instead of GNU ld.  If possible, this setting should
14925        # overridden to take advantage of the native linker features on
14926        # the platform it is being used on.
14927        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14928      fi
14929
14930      # Commands to make compiler produce verbose output that lists
14931      # what "hidden" libraries, object files and flags are used when
14932      # linking a shared library.
14933      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14934
14935    else
14936      GXX=no
14937      with_gnu_ld=no
14938      wlarc=
14939    fi
14940
14941    # PORTME: fill in a description of your system's C++ link characteristics
14942    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14943$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14944    ld_shlibs_CXX=yes
14945    case $host_os in
14946      aix3*)
14947        # FIXME: insert proper C++ library support
14948        ld_shlibs_CXX=no
14949        ;;
14950      aix[4-9]*)
14951        if test ia64 = "$host_cpu"; then
14952          # On IA64, the linker does run time linking by default, so we don't
14953          # have to do anything special.
14954          aix_use_runtimelinking=no
14955          exp_sym_flag='-Bexport'
14956          no_entry_flag=
14957        else
14958          aix_use_runtimelinking=no
14959
14960          # Test if we are trying to use run time linking or normal
14961          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14962          # have runtime linking enabled, and use it for executables.
14963          # For shared libraries, we enable/disable runtime linking
14964          # depending on the kind of the shared library created -
14965          # when "with_aix_soname,aix_use_runtimelinking" is:
14966          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14967          # "aix,yes"  lib.so          shared, rtl:yes, for executables
14968          #            lib.a           static archive
14969          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
14970          #            lib.a(lib.so.V) shared, rtl:no,  for executables
14971          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14972          #            lib.a(lib.so.V) shared, rtl:no
14973          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14974          #            lib.a           static archive
14975          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14976	    for ld_flag in $LDFLAGS; do
14977	      case $ld_flag in
14978	      *-brtl*)
14979	        aix_use_runtimelinking=yes
14980	        break
14981	        ;;
14982	      esac
14983	    done
14984	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14985	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
14986	      # so we don't have lib.a shared libs to link our executables.
14987	      # We have to force runtime linking in this case.
14988	      aix_use_runtimelinking=yes
14989	      LDFLAGS="$LDFLAGS -Wl,-brtl"
14990	    fi
14991	    ;;
14992          esac
14993
14994          exp_sym_flag='-bexport'
14995          no_entry_flag='-bnoentry'
14996        fi
14997
14998        # When large executables or shared objects are built, AIX ld can
14999        # have problems creating the table of contents.  If linking a library
15000        # or program results in "error TOC overflow" add -mminimal-toc to
15001        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15002        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15003
15004        archive_cmds_CXX=''
15005        hardcode_direct_CXX=yes
15006        hardcode_direct_absolute_CXX=yes
15007        hardcode_libdir_separator_CXX=':'
15008        link_all_deplibs_CXX=yes
15009        file_list_spec_CXX='$wl-f,'
15010        case $with_aix_soname,$aix_use_runtimelinking in
15011        aix,*) ;;	# no import file
15012        svr4,* | *,yes) # use import file
15013          # The Import File defines what to hardcode.
15014          hardcode_direct_CXX=no
15015          hardcode_direct_absolute_CXX=no
15016          ;;
15017        esac
15018
15019        if test yes = "$GXX"; then
15020          case $host_os in aix4.[012]|aix4.[012].*)
15021          # We only want to do this on AIX 4.2 and lower, the check
15022          # below for broken collect2 doesn't work under 4.3+
15023	  collect2name=`$CC -print-prog-name=collect2`
15024	  if test -f "$collect2name" &&
15025	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15026	  then
15027	    # We have reworked collect2
15028	    :
15029	  else
15030	    # We have old collect2
15031	    hardcode_direct_CXX=unsupported
15032	    # It fails to find uninstalled libraries when the uninstalled
15033	    # path is not listed in the libpath.  Setting hardcode_minus_L
15034	    # to unsupported forces relinking
15035	    hardcode_minus_L_CXX=yes
15036	    hardcode_libdir_flag_spec_CXX='-L$libdir'
15037	    hardcode_libdir_separator_CXX=
15038	  fi
15039          esac
15040          shared_flag='-shared'
15041	  if test yes = "$aix_use_runtimelinking"; then
15042	    shared_flag=$shared_flag' $wl-G'
15043	  fi
15044	  # Need to ensure runtime linking is disabled for the traditional
15045	  # shared library, or the linker may eventually find shared libraries
15046	  # /with/ Import File - we do not want to mix them.
15047	  shared_flag_aix='-shared'
15048	  shared_flag_svr4='-shared $wl-G'
15049        else
15050          # not using gcc
15051          if test ia64 = "$host_cpu"; then
15052	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15053	  # chokes on -Wl,-G. The following line is correct:
15054	  shared_flag='-G'
15055          else
15056	    if test yes = "$aix_use_runtimelinking"; then
15057	      shared_flag='$wl-G'
15058	    else
15059	      shared_flag='$wl-bM:SRE'
15060	    fi
15061	    shared_flag_aix='$wl-bM:SRE'
15062	    shared_flag_svr4='$wl-G'
15063          fi
15064        fi
15065
15066        export_dynamic_flag_spec_CXX='$wl-bexpall'
15067        # It seems that -bexpall does not export symbols beginning with
15068        # underscore (_), so it is better to generate a list of symbols to
15069	# export.
15070        always_export_symbols_CXX=yes
15071	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15072          # Warning - without using the other runtime loading flags (-brtl),
15073          # -berok will link without error, but may produce a broken library.
15074          # The "-G" linker flag allows undefined symbols.
15075          no_undefined_flag_CXX='-bernotok'
15076          # Determine the default libpath from the value encoded in an empty
15077          # executable.
15078          if test set = "${lt_cv_aix_libpath+set}"; then
15079  aix_libpath=$lt_cv_aix_libpath
15080else
15081  if ${lt_cv_aix_libpath__CXX+:} false; then :
15082  $as_echo_n "(cached) " >&6
15083else
15084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15085/* end confdefs.h.  */
15086
15087int
15088main ()
15089{
15090
15091  ;
15092  return 0;
15093}
15094_ACEOF
15095if ac_fn_cxx_try_link "$LINENO"; then :
15096
15097  lt_aix_libpath_sed='
15098      /Import File Strings/,/^$/ {
15099	  /^0/ {
15100	      s/^0  *\([^ ]*\) *$/\1/
15101	      p
15102	  }
15103      }'
15104  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15105  # Check for a 64-bit object if we didn't find anything.
15106  if test -z "$lt_cv_aix_libpath__CXX"; then
15107    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15108  fi
15109fi
15110rm -f core conftest.err conftest.$ac_objext \
15111    conftest$ac_exeext conftest.$ac_ext
15112  if test -z "$lt_cv_aix_libpath__CXX"; then
15113    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15114  fi
15115
15116fi
15117
15118  aix_libpath=$lt_cv_aix_libpath__CXX
15119fi
15120
15121          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15122
15123          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15124        else
15125          if test ia64 = "$host_cpu"; then
15126	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15127	    allow_undefined_flag_CXX="-z nodefs"
15128	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
15129          else
15130	    # Determine the default libpath from the value encoded in an
15131	    # empty executable.
15132	    if test set = "${lt_cv_aix_libpath+set}"; then
15133  aix_libpath=$lt_cv_aix_libpath
15134else
15135  if ${lt_cv_aix_libpath__CXX+:} false; then :
15136  $as_echo_n "(cached) " >&6
15137else
15138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139/* end confdefs.h.  */
15140
15141int
15142main ()
15143{
15144
15145  ;
15146  return 0;
15147}
15148_ACEOF
15149if ac_fn_cxx_try_link "$LINENO"; then :
15150
15151  lt_aix_libpath_sed='
15152      /Import File Strings/,/^$/ {
15153	  /^0/ {
15154	      s/^0  *\([^ ]*\) *$/\1/
15155	      p
15156	  }
15157      }'
15158  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15159  # Check for a 64-bit object if we didn't find anything.
15160  if test -z "$lt_cv_aix_libpath__CXX"; then
15161    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15162  fi
15163fi
15164rm -f core conftest.err conftest.$ac_objext \
15165    conftest$ac_exeext conftest.$ac_ext
15166  if test -z "$lt_cv_aix_libpath__CXX"; then
15167    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15168  fi
15169
15170fi
15171
15172  aix_libpath=$lt_cv_aix_libpath__CXX
15173fi
15174
15175	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15176	    # Warning - without using the other run time loading flags,
15177	    # -berok will link without error, but may produce a broken library.
15178	    no_undefined_flag_CXX=' $wl-bernotok'
15179	    allow_undefined_flag_CXX=' $wl-berok'
15180	    if test yes = "$with_gnu_ld"; then
15181	      # We only use this code for GNU lds that support --whole-archive.
15182	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15183	    else
15184	      # Exported symbols can be pulled into shared objects from archives
15185	      whole_archive_flag_spec_CXX='$convenience'
15186	    fi
15187	    archive_cmds_need_lc_CXX=yes
15188	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15189	    # -brtl affects multiple linker settings, -berok does not and is overridden later
15190	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15191	    if test svr4 != "$with_aix_soname"; then
15192	      # This is similar to how AIX traditionally builds its shared
15193	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15194	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15195	    fi
15196	    if test aix != "$with_aix_soname"; then
15197	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15198	    else
15199	      # used by -dlpreopen to get the symbols
15200	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15201	    fi
15202	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15203          fi
15204        fi
15205        ;;
15206
15207      beos*)
15208	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15209	  allow_undefined_flag_CXX=unsupported
15210	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15211	  # support --undefined.  This deserves some investigation.  FIXME
15212	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15213	else
15214	  ld_shlibs_CXX=no
15215	fi
15216	;;
15217
15218      chorus*)
15219        case $cc_basename in
15220          *)
15221	  # FIXME: insert proper C++ library support
15222	  ld_shlibs_CXX=no
15223	  ;;
15224        esac
15225        ;;
15226
15227      cygwin* | mingw* | pw32* | cegcc*)
15228	case $GXX,$cc_basename in
15229	,cl* | no,cl*)
15230	  # Native MSVC
15231	  # hardcode_libdir_flag_spec is actually meaningless, as there is
15232	  # no search path for DLLs.
15233	  hardcode_libdir_flag_spec_CXX=' '
15234	  allow_undefined_flag_CXX=unsupported
15235	  always_export_symbols_CXX=yes
15236	  file_list_spec_CXX='@'
15237	  # Tell ltmain to make .lib files, not .a files.
15238	  libext=lib
15239	  # Tell ltmain to make .dll files, not .so files.
15240	  shrext_cmds=.dll
15241	  # FIXME: Setting linknames here is a bad hack.
15242	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15243	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15244              cp "$export_symbols" "$output_objdir/$soname.def";
15245              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15246            else
15247              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15248            fi~
15249            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15250            linknames='
15251	  # The linker will not automatically build a static lib if we build a DLL.
15252	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15253	  enable_shared_with_static_runtimes_CXX=yes
15254	  # Don't use ranlib
15255	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
15256	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15257            lt_tool_outputfile="@TOOL_OUTPUT@"~
15258            case $lt_outputfile in
15259              *.exe|*.EXE) ;;
15260              *)
15261                lt_outputfile=$lt_outputfile.exe
15262                lt_tool_outputfile=$lt_tool_outputfile.exe
15263                ;;
15264            esac~
15265            func_to_tool_file "$lt_outputfile"~
15266            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15267              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15268              $RM "$lt_outputfile.manifest";
15269            fi'
15270	  ;;
15271	*)
15272	  # g++
15273	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15274	  # as there is no search path for DLLs.
15275	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15276	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15277	  allow_undefined_flag_CXX=unsupported
15278	  always_export_symbols_CXX=no
15279	  enable_shared_with_static_runtimes_CXX=yes
15280
15281	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15282	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15283	    # If the export-symbols file already is a .def file, use it as
15284	    # is; otherwise, prepend EXPORTS...
15285	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15286              cp $export_symbols $output_objdir/$soname.def;
15287            else
15288              echo EXPORTS > $output_objdir/$soname.def;
15289              cat $export_symbols >> $output_objdir/$soname.def;
15290            fi~
15291            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15292	  else
15293	    ld_shlibs_CXX=no
15294	  fi
15295	  ;;
15296	esac
15297	;;
15298      darwin* | rhapsody*)
15299
15300
15301  archive_cmds_need_lc_CXX=no
15302  hardcode_direct_CXX=no
15303  hardcode_automatic_CXX=yes
15304  hardcode_shlibpath_var_CXX=unsupported
15305  if test yes = "$lt_cv_ld_force_load"; then
15306    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15307
15308  else
15309    whole_archive_flag_spec_CXX=''
15310  fi
15311  link_all_deplibs_CXX=yes
15312  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15313  case $cc_basename in
15314     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15315     *) _lt_dar_can_shared=$GCC ;;
15316  esac
15317  if test yes = "$_lt_dar_can_shared"; then
15318    output_verbose_link_cmd=func_echo_all
15319    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15320    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15321    archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
15322    module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
15323       if test yes != "$lt_cv_apple_cc_single_mod"; then
15324      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
15325      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
15326    fi
15327
15328  else
15329  ld_shlibs_CXX=no
15330  fi
15331
15332	;;
15333
15334      os2*)
15335	hardcode_libdir_flag_spec_CXX='-L$libdir'
15336	hardcode_minus_L_CXX=yes
15337	allow_undefined_flag_CXX=unsupported
15338	shrext_cmds=.dll
15339	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15340	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15341	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15342	  $ECHO EXPORTS >> $output_objdir/$libname.def~
15343	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15344	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15345	  emximp -o $lib $output_objdir/$libname.def'
15346	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15347	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15348	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15349	  $ECHO EXPORTS >> $output_objdir/$libname.def~
15350	  prefix_cmds="$SED"~
15351	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
15352	    prefix_cmds="$prefix_cmds -e 1d";
15353	  fi~
15354	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15355	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15356	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15357	  emximp -o $lib $output_objdir/$libname.def'
15358	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15359	enable_shared_with_static_runtimes_CXX=yes
15360	;;
15361
15362      dgux*)
15363        case $cc_basename in
15364          ec++*)
15365	    # FIXME: insert proper C++ library support
15366	    ld_shlibs_CXX=no
15367	    ;;
15368          ghcx*)
15369	    # Green Hills C++ Compiler
15370	    # FIXME: insert proper C++ library support
15371	    ld_shlibs_CXX=no
15372	    ;;
15373          *)
15374	    # FIXME: insert proper C++ library support
15375	    ld_shlibs_CXX=no
15376	    ;;
15377        esac
15378        ;;
15379
15380      freebsd2.*)
15381        # C++ shared libraries reported to be fairly broken before
15382	# switch to ELF
15383        ld_shlibs_CXX=no
15384        ;;
15385
15386      freebsd-elf*)
15387        archive_cmds_need_lc_CXX=no
15388        ;;
15389
15390      freebsd* | dragonfly*)
15391        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15392        # conventions
15393        ld_shlibs_CXX=yes
15394        ;;
15395
15396      haiku*)
15397        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15398        link_all_deplibs_CXX=yes
15399        ;;
15400
15401      hpux9*)
15402        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15403        hardcode_libdir_separator_CXX=:
15404        export_dynamic_flag_spec_CXX='$wl-E'
15405        hardcode_direct_CXX=yes
15406        hardcode_minus_L_CXX=yes # Not in the search PATH,
15407				             # but as the default
15408				             # location of the library.
15409
15410        case $cc_basename in
15411          CC*)
15412            # FIXME: insert proper C++ library support
15413            ld_shlibs_CXX=no
15414            ;;
15415          aCC*)
15416            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15417            # Commands to make compiler produce verbose output that lists
15418            # what "hidden" libraries, object files and flags are used when
15419            # linking a shared library.
15420            #
15421            # There doesn't appear to be a way to prevent this compiler from
15422            # explicitly linking system object files so we need to strip them
15423            # from the output so that they don't get included in the library
15424            # dependencies.
15425            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15426            ;;
15427          *)
15428            if test yes = "$GXX"; then
15429              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15430            else
15431              # FIXME: insert proper C++ library support
15432              ld_shlibs_CXX=no
15433            fi
15434            ;;
15435        esac
15436        ;;
15437
15438      hpux10*|hpux11*)
15439        if test no = "$with_gnu_ld"; then
15440	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15441	  hardcode_libdir_separator_CXX=:
15442
15443          case $host_cpu in
15444            hppa*64*|ia64*)
15445              ;;
15446            *)
15447	      export_dynamic_flag_spec_CXX='$wl-E'
15448              ;;
15449          esac
15450        fi
15451        case $host_cpu in
15452          hppa*64*|ia64*)
15453            hardcode_direct_CXX=no
15454            hardcode_shlibpath_var_CXX=no
15455            ;;
15456          *)
15457            hardcode_direct_CXX=yes
15458            hardcode_direct_absolute_CXX=yes
15459            hardcode_minus_L_CXX=yes # Not in the search PATH,
15460					         # but as the default
15461					         # location of the library.
15462            ;;
15463        esac
15464
15465        case $cc_basename in
15466          CC*)
15467	    # FIXME: insert proper C++ library support
15468	    ld_shlibs_CXX=no
15469	    ;;
15470          aCC*)
15471	    case $host_cpu in
15472	      hppa*64*)
15473	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15474	        ;;
15475	      ia64*)
15476	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15477	        ;;
15478	      *)
15479	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15480	        ;;
15481	    esac
15482	    # Commands to make compiler produce verbose output that lists
15483	    # what "hidden" libraries, object files and flags are used when
15484	    # linking a shared library.
15485	    #
15486	    # There doesn't appear to be a way to prevent this compiler from
15487	    # explicitly linking system object files so we need to strip them
15488	    # from the output so that they don't get included in the library
15489	    # dependencies.
15490	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15491	    ;;
15492          *)
15493	    if test yes = "$GXX"; then
15494	      if test no = "$with_gnu_ld"; then
15495	        case $host_cpu in
15496	          hppa*64*)
15497	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15498	            ;;
15499	          ia64*)
15500	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15501	            ;;
15502	          *)
15503	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15504	            ;;
15505	        esac
15506	      fi
15507	    else
15508	      # FIXME: insert proper C++ library support
15509	      ld_shlibs_CXX=no
15510	    fi
15511	    ;;
15512        esac
15513        ;;
15514
15515      interix[3-9]*)
15516	hardcode_direct_CXX=no
15517	hardcode_shlibpath_var_CXX=no
15518	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15519	export_dynamic_flag_spec_CXX='$wl-E'
15520	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15521	# Instead, shared libraries are loaded at an image base (0x10000000 by
15522	# default) and relocated if they conflict, which is a slow very memory
15523	# consuming and fragmenting process.  To avoid this, we pick a random,
15524	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15525	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15526	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15527	archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15528	;;
15529      irix5* | irix6*)
15530        case $cc_basename in
15531          CC*)
15532	    # SGI C++
15533	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15534
15535	    # Archives containing C++ object files must be created using
15536	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15537	    # necessary to make sure instantiated templates are included
15538	    # in the archive.
15539	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15540	    ;;
15541          *)
15542	    if test yes = "$GXX"; then
15543	      if test no = "$with_gnu_ld"; then
15544	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15545	      else
15546	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
15547	      fi
15548	    fi
15549	    link_all_deplibs_CXX=yes
15550	    ;;
15551        esac
15552        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15553        hardcode_libdir_separator_CXX=:
15554        inherit_rpath_CXX=yes
15555        ;;
15556
15557      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15558        case $cc_basename in
15559          KCC*)
15560	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15561
15562	    # KCC will only create a shared library if the output file
15563	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15564	    # to its proper name (with version) after linking.
15565	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15566	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
15567	    # Commands to make compiler produce verbose output that lists
15568	    # what "hidden" libraries, object files and flags are used when
15569	    # linking a shared library.
15570	    #
15571	    # There doesn't appear to be a way to prevent this compiler from
15572	    # explicitly linking system object files so we need to strip them
15573	    # from the output so that they don't get included in the library
15574	    # dependencies.
15575	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15576
15577	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15578	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15579
15580	    # Archives containing C++ object files must be created using
15581	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15582	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15583	    ;;
15584	  icpc* | ecpc* )
15585	    # Intel C++
15586	    with_gnu_ld=yes
15587	    # version 8.0 and above of icpc choke on multiply defined symbols
15588	    # if we add $predep_objects and $postdep_objects, however 7.1 and
15589	    # earlier do not add the objects themselves.
15590	    case `$CC -V 2>&1` in
15591	      *"Version 7."*)
15592	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15593		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15594		;;
15595	      *)  # Version 8.0 or newer
15596	        tmp_idyn=
15597	        case $host_cpu in
15598		  ia64*) tmp_idyn=' -i_dynamic';;
15599		esac
15600	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15601		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15602		;;
15603	    esac
15604	    archive_cmds_need_lc_CXX=no
15605	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15606	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15607	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15608	    ;;
15609          pgCC* | pgcpp*)
15610            # Portland Group C++ compiler
15611	    case `$CC -V` in
15612	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15613	      prelink_cmds_CXX='tpldir=Template.dir~
15614               rm -rf $tpldir~
15615               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15616               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15617	      old_archive_cmds_CXX='tpldir=Template.dir~
15618                rm -rf $tpldir~
15619                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15620                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15621                $RANLIB $oldlib'
15622	      archive_cmds_CXX='tpldir=Template.dir~
15623                rm -rf $tpldir~
15624                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15625                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15626	      archive_expsym_cmds_CXX='tpldir=Template.dir~
15627                rm -rf $tpldir~
15628                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15629                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15630	      ;;
15631	    *) # Version 6 and above use weak symbols
15632	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15633	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15634	      ;;
15635	    esac
15636
15637	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15638	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15639	    whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
15640            ;;
15641	  cxx*)
15642	    # Compaq C++
15643	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15644	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
15645
15646	    runpath_var=LD_RUN_PATH
15647	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15648	    hardcode_libdir_separator_CXX=:
15649
15650	    # Commands to make compiler produce verbose output that lists
15651	    # what "hidden" libraries, object files and flags are used when
15652	    # linking a shared library.
15653	    #
15654	    # There doesn't appear to be a way to prevent this compiler from
15655	    # explicitly linking system object files so we need to strip them
15656	    # from the output so that they don't get included in the library
15657	    # dependencies.
15658	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
15659	    ;;
15660	  xl* | mpixl* | bgxl*)
15661	    # IBM XL 8.0 on PPC, with GNU ld
15662	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15663	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15664	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15665	    if test yes = "$supports_anon_versioning"; then
15666	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15667                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15668                echo "local: *; };" >> $output_objdir/$libname.ver~
15669                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15670	    fi
15671	    ;;
15672	  *)
15673	    case `$CC -V 2>&1 | sed 5q` in
15674	    *Sun\ C*)
15675	      # Sun C++ 5.9
15676	      no_undefined_flag_CXX=' -zdefs'
15677	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15678	      archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
15679	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15680	      whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
15681	      compiler_needs_object_CXX=yes
15682
15683	      # Not sure whether something based on
15684	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15685	      # would be better.
15686	      output_verbose_link_cmd='func_echo_all'
15687
15688	      # Archives containing C++ object files must be created using
15689	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15690	      # necessary to make sure instantiated templates are included
15691	      # in the archive.
15692	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15693	      ;;
15694	    esac
15695	    ;;
15696	esac
15697	;;
15698
15699      lynxos*)
15700        # FIXME: insert proper C++ library support
15701	ld_shlibs_CXX=no
15702	;;
15703
15704      m88k*)
15705        # FIXME: insert proper C++ library support
15706        ld_shlibs_CXX=no
15707	;;
15708
15709      mvs*)
15710        case $cc_basename in
15711          cxx*)
15712	    # FIXME: insert proper C++ library support
15713	    ld_shlibs_CXX=no
15714	    ;;
15715	  *)
15716	    # FIXME: insert proper C++ library support
15717	    ld_shlibs_CXX=no
15718	    ;;
15719	esac
15720	;;
15721
15722      netbsd*)
15723        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15724	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15725	  wlarc=
15726	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15727	  hardcode_direct_CXX=yes
15728	  hardcode_shlibpath_var_CXX=no
15729	fi
15730	# Workaround some broken pre-1.5 toolchains
15731	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15732	;;
15733
15734      *nto* | *qnx*)
15735        ld_shlibs_CXX=yes
15736	;;
15737
15738      openbsd* | bitrig*)
15739	if test -f /usr/libexec/ld.so; then
15740	  hardcode_direct_CXX=yes
15741	  hardcode_shlibpath_var_CXX=no
15742	  hardcode_direct_absolute_CXX=yes
15743	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15744	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15745	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15746	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15747	    export_dynamic_flag_spec_CXX='$wl-E'
15748	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15749	  fi
15750	  output_verbose_link_cmd=func_echo_all
15751	else
15752	  ld_shlibs_CXX=no
15753	fi
15754	;;
15755
15756      osf3* | osf4* | osf5*)
15757        case $cc_basename in
15758          KCC*)
15759	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15760
15761	    # KCC will only create a shared library if the output file
15762	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15763	    # to its proper name (with version) after linking.
15764	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15765
15766	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15767	    hardcode_libdir_separator_CXX=:
15768
15769	    # Archives containing C++ object files must be created using
15770	    # the KAI C++ compiler.
15771	    case $host in
15772	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15773	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15774	    esac
15775	    ;;
15776          RCC*)
15777	    # Rational C++ 2.4.1
15778	    # FIXME: insert proper C++ library support
15779	    ld_shlibs_CXX=no
15780	    ;;
15781          cxx*)
15782	    case $host in
15783	      osf3*)
15784	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15785	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15786	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15787		;;
15788	      *)
15789	        allow_undefined_flag_CXX=' -expect_unresolved \*'
15790	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15791	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15792                  echo "-hidden">> $lib.exp~
15793                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
15794                  $RM $lib.exp'
15795	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15796		;;
15797	    esac
15798
15799	    hardcode_libdir_separator_CXX=:
15800
15801	    # Commands to make compiler produce verbose output that lists
15802	    # what "hidden" libraries, object files and flags are used when
15803	    # linking a shared library.
15804	    #
15805	    # There doesn't appear to be a way to prevent this compiler from
15806	    # explicitly linking system object files so we need to strip them
15807	    # from the output so that they don't get included in the library
15808	    # dependencies.
15809	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15810	    ;;
15811	  *)
15812	    if test yes,no = "$GXX,$with_gnu_ld"; then
15813	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15814	      case $host in
15815	        osf3*)
15816	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15817		  ;;
15818	        *)
15819	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15820		  ;;
15821	      esac
15822
15823	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15824	      hardcode_libdir_separator_CXX=:
15825
15826	      # Commands to make compiler produce verbose output that lists
15827	      # what "hidden" libraries, object files and flags are used when
15828	      # linking a shared library.
15829	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15830
15831	    else
15832	      # FIXME: insert proper C++ library support
15833	      ld_shlibs_CXX=no
15834	    fi
15835	    ;;
15836        esac
15837        ;;
15838
15839      psos*)
15840        # FIXME: insert proper C++ library support
15841        ld_shlibs_CXX=no
15842        ;;
15843
15844      sunos4*)
15845        case $cc_basename in
15846          CC*)
15847	    # Sun C++ 4.x
15848	    # FIXME: insert proper C++ library support
15849	    ld_shlibs_CXX=no
15850	    ;;
15851          lcc*)
15852	    # Lucid
15853	    # FIXME: insert proper C++ library support
15854	    ld_shlibs_CXX=no
15855	    ;;
15856          *)
15857	    # FIXME: insert proper C++ library support
15858	    ld_shlibs_CXX=no
15859	    ;;
15860        esac
15861        ;;
15862
15863      solaris*)
15864        case $cc_basename in
15865          CC* | sunCC*)
15866	    # Sun C++ 4.2, 5.x and Centerline C++
15867            archive_cmds_need_lc_CXX=yes
15868	    no_undefined_flag_CXX=' -zdefs'
15869	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15870	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15871              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15872
15873	    hardcode_libdir_flag_spec_CXX='-R$libdir'
15874	    hardcode_shlibpath_var_CXX=no
15875	    case $host_os in
15876	      solaris2.[0-5] | solaris2.[0-5].*) ;;
15877	      *)
15878		# The compiler driver will combine and reorder linker options,
15879		# but understands '-z linker_flag'.
15880	        # Supported since Solaris 2.6 (maybe 2.5.1?)
15881		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15882	        ;;
15883	    esac
15884	    link_all_deplibs_CXX=yes
15885
15886	    output_verbose_link_cmd='func_echo_all'
15887
15888	    # Archives containing C++ object files must be created using
15889	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15890	    # necessary to make sure instantiated templates are included
15891	    # in the archive.
15892	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15893	    ;;
15894          gcx*)
15895	    # Green Hills C++ Compiler
15896	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15897
15898	    # The C++ compiler must be used to create the archive.
15899	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15900	    ;;
15901          *)
15902	    # GNU C++ compiler with Solaris linker
15903	    if test yes,no = "$GXX,$with_gnu_ld"; then
15904	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
15905	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15906	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15907	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15908                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15909
15910	        # Commands to make compiler produce verbose output that lists
15911	        # what "hidden" libraries, object files and flags are used when
15912	        # linking a shared library.
15913	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15914	      else
15915	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
15916	        # platform.
15917	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15918	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15919                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15920
15921	        # Commands to make compiler produce verbose output that lists
15922	        # what "hidden" libraries, object files and flags are used when
15923	        # linking a shared library.
15924	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15925	      fi
15926
15927	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15928	      case $host_os in
15929		solaris2.[0-5] | solaris2.[0-5].*) ;;
15930		*)
15931		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15932		  ;;
15933	      esac
15934	    fi
15935	    ;;
15936        esac
15937        ;;
15938
15939    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15940      no_undefined_flag_CXX='$wl-z,text'
15941      archive_cmds_need_lc_CXX=no
15942      hardcode_shlibpath_var_CXX=no
15943      runpath_var='LD_RUN_PATH'
15944
15945      case $cc_basename in
15946        CC*)
15947	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15948	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15949	  ;;
15950	*)
15951	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15952	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15953	  ;;
15954      esac
15955      ;;
15956
15957      sysv5* | sco3.2v5* | sco5v6*)
15958	# Note: We CANNOT use -z defs as we might desire, because we do not
15959	# link with -lc, and that would cause any symbols used from libc to
15960	# always be unresolved, which means just about no library would
15961	# ever link correctly.  If we're not using GNU ld we use -z text
15962	# though, which does catch some bad symbols but isn't as heavy-handed
15963	# as -z defs.
15964	no_undefined_flag_CXX='$wl-z,text'
15965	allow_undefined_flag_CXX='$wl-z,nodefs'
15966	archive_cmds_need_lc_CXX=no
15967	hardcode_shlibpath_var_CXX=no
15968	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15969	hardcode_libdir_separator_CXX=':'
15970	link_all_deplibs_CXX=yes
15971	export_dynamic_flag_spec_CXX='$wl-Bexport'
15972	runpath_var='LD_RUN_PATH'
15973
15974	case $cc_basename in
15975          CC*)
15976	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15977	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15978	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15979              '"$old_archive_cmds_CXX"
15980	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15981              '"$reload_cmds_CXX"
15982	    ;;
15983	  *)
15984	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15985	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15986	    ;;
15987	esac
15988      ;;
15989
15990      tandem*)
15991        case $cc_basename in
15992          NCC*)
15993	    # NonStop-UX NCC 3.20
15994	    # FIXME: insert proper C++ library support
15995	    ld_shlibs_CXX=no
15996	    ;;
15997          *)
15998	    # FIXME: insert proper C++ library support
15999	    ld_shlibs_CXX=no
16000	    ;;
16001        esac
16002        ;;
16003
16004      vxworks*)
16005        # FIXME: insert proper C++ library support
16006        ld_shlibs_CXX=no
16007        ;;
16008
16009      *)
16010        # FIXME: insert proper C++ library support
16011        ld_shlibs_CXX=no
16012        ;;
16013    esac
16014
16015    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16016$as_echo "$ld_shlibs_CXX" >&6; }
16017    test no = "$ld_shlibs_CXX" && can_build_shared=no
16018
16019    GCC_CXX=$GXX
16020    LD_CXX=$LD
16021
16022    ## CAVEAT EMPTOR:
16023    ## There is no encapsulation within the following macros, do not change
16024    ## the running order or otherwise move them around unless you know exactly
16025    ## what you are doing...
16026    # Dependencies to place before and after the object being linked:
16027predep_objects_CXX=
16028postdep_objects_CXX=
16029predeps_CXX=
16030postdeps_CXX=
16031compiler_lib_search_path_CXX=
16032
16033cat > conftest.$ac_ext <<_LT_EOF
16034class Foo
16035{
16036public:
16037  Foo (void) { a = 0; }
16038private:
16039  int a;
16040};
16041_LT_EOF
16042
16043
16044_lt_libdeps_save_CFLAGS=$CFLAGS
16045case "$CC $CFLAGS " in #(
16046*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16047*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16048*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16049esac
16050
16051if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16052  (eval $ac_compile) 2>&5
16053  ac_status=$?
16054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16055  test $ac_status = 0; }; then
16056  # Parse the compiler output and extract the necessary
16057  # objects, libraries and library flags.
16058
16059  # Sentinel used to keep track of whether or not we are before
16060  # the conftest object file.
16061  pre_test_object_deps_done=no
16062
16063  for p in `eval "$output_verbose_link_cmd"`; do
16064    case $prev$p in
16065
16066    -L* | -R* | -l*)
16067       # Some compilers place space between "-{L,R}" and the path.
16068       # Remove the space.
16069       if test x-L = "$p" ||
16070          test x-R = "$p"; then
16071	 prev=$p
16072	 continue
16073       fi
16074
16075       # Expand the sysroot to ease extracting the directories later.
16076       if test -z "$prev"; then
16077         case $p in
16078         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16079         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16080         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16081         esac
16082       fi
16083       case $p in
16084       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16085       esac
16086       if test no = "$pre_test_object_deps_done"; then
16087	 case $prev in
16088	 -L | -R)
16089	   # Internal compiler library paths should come after those
16090	   # provided the user.  The postdeps already come after the
16091	   # user supplied libs so there is no need to process them.
16092	   if test -z "$compiler_lib_search_path_CXX"; then
16093	     compiler_lib_search_path_CXX=$prev$p
16094	   else
16095	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16096	   fi
16097	   ;;
16098	 # The "-l" case would never come before the object being
16099	 # linked, so don't bother handling this case.
16100	 esac
16101       else
16102	 if test -z "$postdeps_CXX"; then
16103	   postdeps_CXX=$prev$p
16104	 else
16105	   postdeps_CXX="${postdeps_CXX} $prev$p"
16106	 fi
16107       fi
16108       prev=
16109       ;;
16110
16111    *.lto.$objext) ;; # Ignore GCC LTO objects
16112    *.$objext)
16113       # This assumes that the test object file only shows up
16114       # once in the compiler output.
16115       if test "$p" = "conftest.$objext"; then
16116	 pre_test_object_deps_done=yes
16117	 continue
16118       fi
16119
16120       if test no = "$pre_test_object_deps_done"; then
16121	 if test -z "$predep_objects_CXX"; then
16122	   predep_objects_CXX=$p
16123	 else
16124	   predep_objects_CXX="$predep_objects_CXX $p"
16125	 fi
16126       else
16127	 if test -z "$postdep_objects_CXX"; then
16128	   postdep_objects_CXX=$p
16129	 else
16130	   postdep_objects_CXX="$postdep_objects_CXX $p"
16131	 fi
16132       fi
16133       ;;
16134
16135    *) ;; # Ignore the rest.
16136
16137    esac
16138  done
16139
16140  # Clean up.
16141  rm -f a.out a.exe
16142else
16143  echo "libtool.m4: error: problem compiling CXX test program"
16144fi
16145
16146$RM -f confest.$objext
16147CFLAGS=$_lt_libdeps_save_CFLAGS
16148
16149# PORTME: override above test on systems where it is broken
16150case $host_os in
16151interix[3-9]*)
16152  # Interix 3.5 installs completely hosed .la files for C++, so rather than
16153  # hack all around it, let's just trust "g++" to DTRT.
16154  predep_objects_CXX=
16155  postdep_objects_CXX=
16156  postdeps_CXX=
16157  ;;
16158esac
16159
16160
16161case " $postdeps_CXX " in
16162*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16163esac
16164 compiler_lib_search_dirs_CXX=
16165if test -n "${compiler_lib_search_path_CXX}"; then
16166 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16167fi
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199    lt_prog_compiler_wl_CXX=
16200lt_prog_compiler_pic_CXX=
16201lt_prog_compiler_static_CXX=
16202
16203
16204  # C++ specific cases for pic, static, wl, etc.
16205  if test yes = "$GXX"; then
16206    lt_prog_compiler_wl_CXX='-Wl,'
16207    lt_prog_compiler_static_CXX='-static'
16208
16209    case $host_os in
16210    aix*)
16211      # All AIX code is PIC.
16212      if test ia64 = "$host_cpu"; then
16213	# AIX 5 now supports IA64 processor
16214	lt_prog_compiler_static_CXX='-Bstatic'
16215      fi
16216      lt_prog_compiler_pic_CXX='-fPIC'
16217      ;;
16218
16219    amigaos*)
16220      case $host_cpu in
16221      powerpc)
16222            # see comment about AmigaOS4 .so support
16223            lt_prog_compiler_pic_CXX='-fPIC'
16224        ;;
16225      m68k)
16226            # FIXME: we need at least 68020 code to build shared libraries, but
16227            # adding the '-m68020' flag to GCC prevents building anything better,
16228            # like '-m68040'.
16229            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16230        ;;
16231      esac
16232      ;;
16233
16234    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16235      # PIC is the default for these OSes.
16236      ;;
16237    mingw* | cygwin* | os2* | pw32* | cegcc*)
16238      # This hack is so that the source file can tell whether it is being
16239      # built for inclusion in a dll (and should export symbols for example).
16240      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16241      # (--disable-auto-import) libraries
16242      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16243      case $host_os in
16244      os2*)
16245	lt_prog_compiler_static_CXX='$wl-static'
16246	;;
16247      esac
16248      ;;
16249    darwin* | rhapsody*)
16250      # PIC is the default on this platform
16251      # Common symbols not allowed in MH_DYLIB files
16252      lt_prog_compiler_pic_CXX='-fno-common'
16253      ;;
16254    *djgpp*)
16255      # DJGPP does not support shared libraries at all
16256      lt_prog_compiler_pic_CXX=
16257      ;;
16258    haiku*)
16259      # PIC is the default for Haiku.
16260      # The "-static" flag exists, but is broken.
16261      lt_prog_compiler_static_CXX=
16262      ;;
16263    interix[3-9]*)
16264      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16265      # Instead, we relocate shared libraries at runtime.
16266      ;;
16267    sysv4*MP*)
16268      if test -d /usr/nec; then
16269	lt_prog_compiler_pic_CXX=-Kconform_pic
16270      fi
16271      ;;
16272    hpux*)
16273      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16274      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16275      # sets the default TLS model and affects inlining.
16276      case $host_cpu in
16277      hppa*64*)
16278	;;
16279      *)
16280	lt_prog_compiler_pic_CXX='-fPIC'
16281	;;
16282      esac
16283      ;;
16284    *qnx* | *nto*)
16285      # QNX uses GNU C++, but need to define -shared option too, otherwise
16286      # it will coredump.
16287      lt_prog_compiler_pic_CXX='-fPIC -shared'
16288      ;;
16289    *)
16290      lt_prog_compiler_pic_CXX='-fPIC'
16291      ;;
16292    esac
16293  else
16294    case $host_os in
16295      aix[4-9]*)
16296	# All AIX code is PIC.
16297	if test ia64 = "$host_cpu"; then
16298	  # AIX 5 now supports IA64 processor
16299	  lt_prog_compiler_static_CXX='-Bstatic'
16300	else
16301	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16302	fi
16303	;;
16304      chorus*)
16305	case $cc_basename in
16306	cxch68*)
16307	  # Green Hills C++ Compiler
16308	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16309	  ;;
16310	esac
16311	;;
16312      mingw* | cygwin* | os2* | pw32* | cegcc*)
16313	# This hack is so that the source file can tell whether it is being
16314	# built for inclusion in a dll (and should export symbols for example).
16315	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16316	;;
16317      dgux*)
16318	case $cc_basename in
16319	  ec++*)
16320	    lt_prog_compiler_pic_CXX='-KPIC'
16321	    ;;
16322	  ghcx*)
16323	    # Green Hills C++ Compiler
16324	    lt_prog_compiler_pic_CXX='-pic'
16325	    ;;
16326	  *)
16327	    ;;
16328	esac
16329	;;
16330      freebsd* | dragonfly*)
16331	# FreeBSD uses GNU C++
16332	;;
16333      hpux9* | hpux10* | hpux11*)
16334	case $cc_basename in
16335	  CC*)
16336	    lt_prog_compiler_wl_CXX='-Wl,'
16337	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16338	    if test ia64 != "$host_cpu"; then
16339	      lt_prog_compiler_pic_CXX='+Z'
16340	    fi
16341	    ;;
16342	  aCC*)
16343	    lt_prog_compiler_wl_CXX='-Wl,'
16344	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16345	    case $host_cpu in
16346	    hppa*64*|ia64*)
16347	      # +Z the default
16348	      ;;
16349	    *)
16350	      lt_prog_compiler_pic_CXX='+Z'
16351	      ;;
16352	    esac
16353	    ;;
16354	  *)
16355	    ;;
16356	esac
16357	;;
16358      interix*)
16359	# This is c89, which is MS Visual C++ (no shared libs)
16360	# Anyone wants to do a port?
16361	;;
16362      irix5* | irix6* | nonstopux*)
16363	case $cc_basename in
16364	  CC*)
16365	    lt_prog_compiler_wl_CXX='-Wl,'
16366	    lt_prog_compiler_static_CXX='-non_shared'
16367	    # CC pic flag -KPIC is the default.
16368	    ;;
16369	  *)
16370	    ;;
16371	esac
16372	;;
16373      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16374	case $cc_basename in
16375	  KCC*)
16376	    # KAI C++ Compiler
16377	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16378	    lt_prog_compiler_pic_CXX='-fPIC'
16379	    ;;
16380	  ecpc* )
16381	    # old Intel C++ for x86_64, which still supported -KPIC.
16382	    lt_prog_compiler_wl_CXX='-Wl,'
16383	    lt_prog_compiler_pic_CXX='-KPIC'
16384	    lt_prog_compiler_static_CXX='-static'
16385	    ;;
16386	  icpc* )
16387	    # Intel C++, used to be incompatible with GCC.
16388	    # ICC 10 doesn't accept -KPIC any more.
16389	    lt_prog_compiler_wl_CXX='-Wl,'
16390	    lt_prog_compiler_pic_CXX='-fPIC'
16391	    lt_prog_compiler_static_CXX='-static'
16392	    ;;
16393	  pgCC* | pgcpp*)
16394	    # Portland Group C++ compiler
16395	    lt_prog_compiler_wl_CXX='-Wl,'
16396	    lt_prog_compiler_pic_CXX='-fpic'
16397	    lt_prog_compiler_static_CXX='-Bstatic'
16398	    ;;
16399	  cxx*)
16400	    # Compaq C++
16401	    # Make sure the PIC flag is empty.  It appears that all Alpha
16402	    # Linux and Compaq Tru64 Unix objects are PIC.
16403	    lt_prog_compiler_pic_CXX=
16404	    lt_prog_compiler_static_CXX='-non_shared'
16405	    ;;
16406	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16407	    # IBM XL 8.0, 9.0 on PPC and BlueGene
16408	    lt_prog_compiler_wl_CXX='-Wl,'
16409	    lt_prog_compiler_pic_CXX='-qpic'
16410	    lt_prog_compiler_static_CXX='-qstaticlink'
16411	    ;;
16412	  *)
16413	    case `$CC -V 2>&1 | sed 5q` in
16414	    *Sun\ C*)
16415	      # Sun C++ 5.9
16416	      lt_prog_compiler_pic_CXX='-KPIC'
16417	      lt_prog_compiler_static_CXX='-Bstatic'
16418	      lt_prog_compiler_wl_CXX='-Qoption ld '
16419	      ;;
16420	    esac
16421	    ;;
16422	esac
16423	;;
16424      lynxos*)
16425	;;
16426      m88k*)
16427	;;
16428      mvs*)
16429	case $cc_basename in
16430	  cxx*)
16431	    lt_prog_compiler_pic_CXX='-W c,exportall'
16432	    ;;
16433	  *)
16434	    ;;
16435	esac
16436	;;
16437      netbsd* | netbsdelf*-gnu)
16438	;;
16439      *qnx* | *nto*)
16440        # QNX uses GNU C++, but need to define -shared option too, otherwise
16441        # it will coredump.
16442        lt_prog_compiler_pic_CXX='-fPIC -shared'
16443        ;;
16444      osf3* | osf4* | osf5*)
16445	case $cc_basename in
16446	  KCC*)
16447	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16448	    ;;
16449	  RCC*)
16450	    # Rational C++ 2.4.1
16451	    lt_prog_compiler_pic_CXX='-pic'
16452	    ;;
16453	  cxx*)
16454	    # Digital/Compaq C++
16455	    lt_prog_compiler_wl_CXX='-Wl,'
16456	    # Make sure the PIC flag is empty.  It appears that all Alpha
16457	    # Linux and Compaq Tru64 Unix objects are PIC.
16458	    lt_prog_compiler_pic_CXX=
16459	    lt_prog_compiler_static_CXX='-non_shared'
16460	    ;;
16461	  *)
16462	    ;;
16463	esac
16464	;;
16465      psos*)
16466	;;
16467      solaris*)
16468	case $cc_basename in
16469	  CC* | sunCC*)
16470	    # Sun C++ 4.2, 5.x and Centerline C++
16471	    lt_prog_compiler_pic_CXX='-KPIC'
16472	    lt_prog_compiler_static_CXX='-Bstatic'
16473	    lt_prog_compiler_wl_CXX='-Qoption ld '
16474	    ;;
16475	  gcx*)
16476	    # Green Hills C++ Compiler
16477	    lt_prog_compiler_pic_CXX='-PIC'
16478	    ;;
16479	  *)
16480	    ;;
16481	esac
16482	;;
16483      sunos4*)
16484	case $cc_basename in
16485	  CC*)
16486	    # Sun C++ 4.x
16487	    lt_prog_compiler_pic_CXX='-pic'
16488	    lt_prog_compiler_static_CXX='-Bstatic'
16489	    ;;
16490	  lcc*)
16491	    # Lucid
16492	    lt_prog_compiler_pic_CXX='-pic'
16493	    ;;
16494	  *)
16495	    ;;
16496	esac
16497	;;
16498      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16499	case $cc_basename in
16500	  CC*)
16501	    lt_prog_compiler_wl_CXX='-Wl,'
16502	    lt_prog_compiler_pic_CXX='-KPIC'
16503	    lt_prog_compiler_static_CXX='-Bstatic'
16504	    ;;
16505	esac
16506	;;
16507      tandem*)
16508	case $cc_basename in
16509	  NCC*)
16510	    # NonStop-UX NCC 3.20
16511	    lt_prog_compiler_pic_CXX='-KPIC'
16512	    ;;
16513	  *)
16514	    ;;
16515	esac
16516	;;
16517      vxworks*)
16518	;;
16519      *)
16520	lt_prog_compiler_can_build_shared_CXX=no
16521	;;
16522    esac
16523  fi
16524
16525case $host_os in
16526  # For platforms that do not support PIC, -DPIC is meaningless:
16527  *djgpp*)
16528    lt_prog_compiler_pic_CXX=
16529    ;;
16530  *)
16531    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16532    ;;
16533esac
16534
16535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16536$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16537if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16538  $as_echo_n "(cached) " >&6
16539else
16540  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16541fi
16542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16543$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16544lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16545
16546#
16547# Check to make sure the PIC flag actually works.
16548#
16549if test -n "$lt_prog_compiler_pic_CXX"; then
16550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16551$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16552if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16553  $as_echo_n "(cached) " >&6
16554else
16555  lt_cv_prog_compiler_pic_works_CXX=no
16556   ac_outfile=conftest.$ac_objext
16557   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16558   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16559   # Insert the option either (1) after the last *FLAGS variable, or
16560   # (2) before a word containing "conftest.", or (3) at the end.
16561   # Note that $ac_compile itself does not contain backslashes and begins
16562   # with a dollar sign (not a hyphen), so the echo should work correctly.
16563   # The option is referenced via a variable to avoid confusing sed.
16564   lt_compile=`echo "$ac_compile" | $SED \
16565   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16566   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16567   -e 's:$: $lt_compiler_flag:'`
16568   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16569   (eval "$lt_compile" 2>conftest.err)
16570   ac_status=$?
16571   cat conftest.err >&5
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   if (exit $ac_status) && test -s "$ac_outfile"; then
16574     # The compiler can only warn and ignore the option if not recognized
16575     # So say no if there are warnings other than the usual output.
16576     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16577     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16578     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16579       lt_cv_prog_compiler_pic_works_CXX=yes
16580     fi
16581   fi
16582   $RM conftest*
16583
16584fi
16585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16586$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16587
16588if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16589    case $lt_prog_compiler_pic_CXX in
16590     "" | " "*) ;;
16591     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16592     esac
16593else
16594    lt_prog_compiler_pic_CXX=
16595     lt_prog_compiler_can_build_shared_CXX=no
16596fi
16597
16598fi
16599
16600
16601
16602
16603
16604#
16605# Check to make sure the static flag actually works.
16606#
16607wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16609$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16610if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16611  $as_echo_n "(cached) " >&6
16612else
16613  lt_cv_prog_compiler_static_works_CXX=no
16614   save_LDFLAGS=$LDFLAGS
16615   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16616   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16617   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16618     # The linker can only warn and ignore the option if not recognized
16619     # So say no if there are warnings
16620     if test -s conftest.err; then
16621       # Append any errors to the config.log.
16622       cat conftest.err 1>&5
16623       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16624       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16625       if diff conftest.exp conftest.er2 >/dev/null; then
16626         lt_cv_prog_compiler_static_works_CXX=yes
16627       fi
16628     else
16629       lt_cv_prog_compiler_static_works_CXX=yes
16630     fi
16631   fi
16632   $RM -r conftest*
16633   LDFLAGS=$save_LDFLAGS
16634
16635fi
16636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16637$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16638
16639if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16640    :
16641else
16642    lt_prog_compiler_static_CXX=
16643fi
16644
16645
16646
16647
16648    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16649$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16650if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16651  $as_echo_n "(cached) " >&6
16652else
16653  lt_cv_prog_compiler_c_o_CXX=no
16654   $RM -r conftest 2>/dev/null
16655   mkdir conftest
16656   cd conftest
16657   mkdir out
16658   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16659
16660   lt_compiler_flag="-o out/conftest2.$ac_objext"
16661   # Insert the option either (1) after the last *FLAGS variable, or
16662   # (2) before a word containing "conftest.", or (3) at the end.
16663   # Note that $ac_compile itself does not contain backslashes and begins
16664   # with a dollar sign (not a hyphen), so the echo should work correctly.
16665   lt_compile=`echo "$ac_compile" | $SED \
16666   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16667   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16668   -e 's:$: $lt_compiler_flag:'`
16669   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16670   (eval "$lt_compile" 2>out/conftest.err)
16671   ac_status=$?
16672   cat out/conftest.err >&5
16673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16675   then
16676     # The compiler can only warn and ignore the option if not recognized
16677     # So say no if there are warnings
16678     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16679     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16680     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16681       lt_cv_prog_compiler_c_o_CXX=yes
16682     fi
16683   fi
16684   chmod u+w . 2>&5
16685   $RM conftest*
16686   # SGI C++ compiler will create directory out/ii_files/ for
16687   # template instantiation
16688   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16689   $RM out/* && rmdir out
16690   cd ..
16691   $RM -r conftest
16692   $RM conftest*
16693
16694fi
16695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16696$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16697
16698
16699
16700    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16701$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16702if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16703  $as_echo_n "(cached) " >&6
16704else
16705  lt_cv_prog_compiler_c_o_CXX=no
16706   $RM -r conftest 2>/dev/null
16707   mkdir conftest
16708   cd conftest
16709   mkdir out
16710   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16711
16712   lt_compiler_flag="-o out/conftest2.$ac_objext"
16713   # Insert the option either (1) after the last *FLAGS variable, or
16714   # (2) before a word containing "conftest.", or (3) at the end.
16715   # Note that $ac_compile itself does not contain backslashes and begins
16716   # with a dollar sign (not a hyphen), so the echo should work correctly.
16717   lt_compile=`echo "$ac_compile" | $SED \
16718   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16719   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16720   -e 's:$: $lt_compiler_flag:'`
16721   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16722   (eval "$lt_compile" 2>out/conftest.err)
16723   ac_status=$?
16724   cat out/conftest.err >&5
16725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16727   then
16728     # The compiler can only warn and ignore the option if not recognized
16729     # So say no if there are warnings
16730     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16731     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16732     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16733       lt_cv_prog_compiler_c_o_CXX=yes
16734     fi
16735   fi
16736   chmod u+w . 2>&5
16737   $RM conftest*
16738   # SGI C++ compiler will create directory out/ii_files/ for
16739   # template instantiation
16740   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16741   $RM out/* && rmdir out
16742   cd ..
16743   $RM -r conftest
16744   $RM conftest*
16745
16746fi
16747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16748$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16749
16750
16751
16752
16753hard_links=nottested
16754if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16755  # do not overwrite the value of need_locks provided by the user
16756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16757$as_echo_n "checking if we can lock with hard links... " >&6; }
16758  hard_links=yes
16759  $RM conftest*
16760  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16761  touch conftest.a
16762  ln conftest.a conftest.b 2>&5 || hard_links=no
16763  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16765$as_echo "$hard_links" >&6; }
16766  if test no = "$hard_links"; then
16767    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16768$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16769    need_locks=warn
16770  fi
16771else
16772  need_locks=no
16773fi
16774
16775
16776
16777    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16778$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16779
16780  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16781  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16782  case $host_os in
16783  aix[4-9]*)
16784    # If we're using GNU nm, then we don't want the "-C" option.
16785    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16786    # Without the "-l" option, or with the "-B" option, AIX nm treats
16787    # weak defined symbols like other global defined symbols, whereas
16788    # GNU nm marks them as "W".
16789    # While the 'weak' keyword is ignored in the Export File, we need
16790    # it in the Import File for the 'aix-soname' feature, so we have
16791    # to replace the "-B" option with "-P" for AIX nm.
16792    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16793      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16794    else
16795      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16796    fi
16797    ;;
16798  pw32*)
16799    export_symbols_cmds_CXX=$ltdll_cmds
16800    ;;
16801  cygwin* | mingw* | cegcc*)
16802    case $cc_basename in
16803    cl*)
16804      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16805      ;;
16806    *)
16807      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16808      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16809      ;;
16810    esac
16811    ;;
16812  linux* | k*bsd*-gnu | gnu*)
16813    link_all_deplibs_CXX=no
16814    ;;
16815  *)
16816    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16817    ;;
16818  esac
16819
16820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16821$as_echo "$ld_shlibs_CXX" >&6; }
16822test no = "$ld_shlibs_CXX" && can_build_shared=no
16823
16824with_gnu_ld_CXX=$with_gnu_ld
16825
16826
16827
16828
16829
16830
16831#
16832# Do we need to explicitly link libc?
16833#
16834case "x$archive_cmds_need_lc_CXX" in
16835x|xyes)
16836  # Assume -lc should be added
16837  archive_cmds_need_lc_CXX=yes
16838
16839  if test yes,yes = "$GCC,$enable_shared"; then
16840    case $archive_cmds_CXX in
16841    *'~'*)
16842      # FIXME: we may have to deal with multi-command sequences.
16843      ;;
16844    '$CC '*)
16845      # Test whether the compiler implicitly links with -lc since on some
16846      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16847      # to ld, don't add -lc before -lgcc.
16848      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16849$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16850if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16851  $as_echo_n "(cached) " >&6
16852else
16853  $RM conftest*
16854	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16855
16856	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16857  (eval $ac_compile) 2>&5
16858  ac_status=$?
16859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16860  test $ac_status = 0; } 2>conftest.err; then
16861	  soname=conftest
16862	  lib=conftest
16863	  libobjs=conftest.$ac_objext
16864	  deplibs=
16865	  wl=$lt_prog_compiler_wl_CXX
16866	  pic_flag=$lt_prog_compiler_pic_CXX
16867	  compiler_flags=-v
16868	  linker_flags=-v
16869	  verstring=
16870	  output_objdir=.
16871	  libname=conftest
16872	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16873	  allow_undefined_flag_CXX=
16874	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16875  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16876  ac_status=$?
16877  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16878  test $ac_status = 0; }
16879	  then
16880	    lt_cv_archive_cmds_need_lc_CXX=no
16881	  else
16882	    lt_cv_archive_cmds_need_lc_CXX=yes
16883	  fi
16884	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16885	else
16886	  cat conftest.err 1>&5
16887	fi
16888	$RM conftest*
16889
16890fi
16891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16892$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16893      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16894      ;;
16895    esac
16896  fi
16897  ;;
16898esac
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16962$as_echo_n "checking dynamic linker characteristics... " >&6; }
16963
16964library_names_spec=
16965libname_spec='lib$name'
16966soname_spec=
16967shrext_cmds=.so
16968postinstall_cmds=
16969postuninstall_cmds=
16970finish_cmds=
16971finish_eval=
16972shlibpath_var=
16973shlibpath_overrides_runpath=unknown
16974version_type=none
16975dynamic_linker="$host_os ld.so"
16976sys_lib_dlsearch_path_spec="/lib /usr/lib"
16977need_lib_prefix=unknown
16978hardcode_into_libs=no
16979
16980# when you set need_version to no, make sure it does not cause -set_version
16981# flags to be left without arguments
16982need_version=unknown
16983
16984
16985
16986case $host_os in
16987aix3*)
16988  version_type=linux # correct to gnu/linux during the next big refactor
16989  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16990  shlibpath_var=LIBPATH
16991
16992  # AIX 3 has no versioning support, so we append a major version to the name.
16993  soname_spec='$libname$release$shared_ext$major'
16994  ;;
16995
16996aix[4-9]*)
16997  version_type=linux # correct to gnu/linux during the next big refactor
16998  need_lib_prefix=no
16999  need_version=no
17000  hardcode_into_libs=yes
17001  if test ia64 = "$host_cpu"; then
17002    # AIX 5 supports IA64
17003    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17004    shlibpath_var=LD_LIBRARY_PATH
17005  else
17006    # With GCC up to 2.95.x, collect2 would create an import file
17007    # for dependence libraries.  The import file would start with
17008    # the line '#! .'.  This would cause the generated library to
17009    # depend on '.', always an invalid library.  This was fixed in
17010    # development snapshots of GCC prior to 3.0.
17011    case $host_os in
17012      aix4 | aix4.[01] | aix4.[01].*)
17013      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17014	   echo ' yes '
17015	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17016	:
17017      else
17018	can_build_shared=no
17019      fi
17020      ;;
17021    esac
17022    # Using Import Files as archive members, it is possible to support
17023    # filename-based versioning of shared library archives on AIX. While
17024    # this would work for both with and without runtime linking, it will
17025    # prevent static linking of such archives. So we do filename-based
17026    # shared library versioning with .so extension only, which is used
17027    # when both runtime linking and shared linking is enabled.
17028    # Unfortunately, runtime linking may impact performance, so we do
17029    # not want this to be the default eventually. Also, we use the
17030    # versioned .so libs for executables only if there is the -brtl
17031    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17032    # To allow for filename-based versioning support, we need to create
17033    # libNAME.so.V as an archive file, containing:
17034    # *) an Import File, referring to the versioned filename of the
17035    #    archive as well as the shared archive member, telling the
17036    #    bitwidth (32 or 64) of that shared object, and providing the
17037    #    list of exported symbols of that shared object, eventually
17038    #    decorated with the 'weak' keyword
17039    # *) the shared object with the F_LOADONLY flag set, to really avoid
17040    #    it being seen by the linker.
17041    # At run time we better use the real file rather than another symlink,
17042    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17043
17044    case $with_aix_soname,$aix_use_runtimelinking in
17045    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17046    # soname into executable. Probably we can add versioning support to
17047    # collect2, so additional links can be useful in future.
17048    aix,yes) # traditional libtool
17049      dynamic_linker='AIX unversionable lib.so'
17050      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17051      # instead of lib<name>.a to let people know that these are not
17052      # typical AIX shared libraries.
17053      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17054      ;;
17055    aix,no) # traditional AIX only
17056      dynamic_linker='AIX lib.a(lib.so.V)'
17057      # We preserve .a as extension for shared libraries through AIX4.2
17058      # and later when we are not doing run time linking.
17059      library_names_spec='$libname$release.a $libname.a'
17060      soname_spec='$libname$release$shared_ext$major'
17061      ;;
17062    svr4,*) # full svr4 only
17063      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17064      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17065      # We do not specify a path in Import Files, so LIBPATH fires.
17066      shlibpath_overrides_runpath=yes
17067      ;;
17068    *,yes) # both, prefer svr4
17069      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17070      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17071      # unpreferred sharedlib libNAME.a needs extra handling
17072      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17073      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17074      # We do not specify a path in Import Files, so LIBPATH fires.
17075      shlibpath_overrides_runpath=yes
17076      ;;
17077    *,no) # both, prefer aix
17078      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17079      library_names_spec='$libname$release.a $libname.a'
17080      soname_spec='$libname$release$shared_ext$major'
17081      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17082      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17083      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17084      ;;
17085    esac
17086    shlibpath_var=LIBPATH
17087  fi
17088  ;;
17089
17090amigaos*)
17091  case $host_cpu in
17092  powerpc)
17093    # Since July 2007 AmigaOS4 officially supports .so libraries.
17094    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17095    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17096    ;;
17097  m68k)
17098    library_names_spec='$libname.ixlibrary $libname.a'
17099    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17100    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17101    ;;
17102  esac
17103  ;;
17104
17105beos*)
17106  library_names_spec='$libname$shared_ext'
17107  dynamic_linker="$host_os ld.so"
17108  shlibpath_var=LIBRARY_PATH
17109  ;;
17110
17111bsdi[45]*)
17112  version_type=linux # correct to gnu/linux during the next big refactor
17113  need_version=no
17114  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17115  soname_spec='$libname$release$shared_ext$major'
17116  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17117  shlibpath_var=LD_LIBRARY_PATH
17118  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17119  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17120  # the default ld.so.conf also contains /usr/contrib/lib and
17121  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17122  # libtool to hard-code these into programs
17123  ;;
17124
17125cygwin* | mingw* | pw32* | cegcc*)
17126  version_type=windows
17127  shrext_cmds=.dll
17128  need_version=no
17129  need_lib_prefix=no
17130
17131  case $GCC,$cc_basename in
17132  yes,*)
17133    # gcc
17134    library_names_spec='$libname.dll.a'
17135    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17136    postinstall_cmds='base_file=`basename \$file`~
17137      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17138      dldir=$destdir/`dirname \$dlpath`~
17139      test -d \$dldir || mkdir -p \$dldir~
17140      $install_prog $dir/$dlname \$dldir/$dlname~
17141      chmod a+x \$dldir/$dlname~
17142      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17143        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17144      fi'
17145    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17146      dlpath=$dir/\$dldll~
17147       $RM \$dlpath'
17148    shlibpath_overrides_runpath=yes
17149
17150    case $host_os in
17151    cygwin*)
17152      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17153      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17154
17155      ;;
17156    mingw* | cegcc*)
17157      # MinGW DLLs use traditional 'lib' prefix
17158      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17159      ;;
17160    pw32*)
17161      # pw32 DLLs use 'pw' prefix rather than 'lib'
17162      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17163      ;;
17164    esac
17165    dynamic_linker='Win32 ld.exe'
17166    ;;
17167
17168  *,cl*)
17169    # Native MSVC
17170    libname_spec='$name'
17171    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17172    library_names_spec='$libname.dll.lib'
17173
17174    case $build_os in
17175    mingw*)
17176      sys_lib_search_path_spec=
17177      lt_save_ifs=$IFS
17178      IFS=';'
17179      for lt_path in $LIB
17180      do
17181        IFS=$lt_save_ifs
17182        # Let DOS variable expansion print the short 8.3 style file name.
17183        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17184        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17185      done
17186      IFS=$lt_save_ifs
17187      # Convert to MSYS style.
17188      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17189      ;;
17190    cygwin*)
17191      # Convert to unix form, then to dos form, then back to unix form
17192      # but this time dos style (no spaces!) so that the unix form looks
17193      # like /cygdrive/c/PROGRA~1:/cygdr...
17194      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17195      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17196      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17197      ;;
17198    *)
17199      sys_lib_search_path_spec=$LIB
17200      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17201        # It is most probably a Windows format PATH.
17202        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17203      else
17204        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17205      fi
17206      # FIXME: find the short name or the path components, as spaces are
17207      # common. (e.g. "Program Files" -> "PROGRA~1")
17208      ;;
17209    esac
17210
17211    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17212    postinstall_cmds='base_file=`basename \$file`~
17213      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17214      dldir=$destdir/`dirname \$dlpath`~
17215      test -d \$dldir || mkdir -p \$dldir~
17216      $install_prog $dir/$dlname \$dldir/$dlname'
17217    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17218      dlpath=$dir/\$dldll~
17219       $RM \$dlpath'
17220    shlibpath_overrides_runpath=yes
17221    dynamic_linker='Win32 link.exe'
17222    ;;
17223
17224  *)
17225    # Assume MSVC wrapper
17226    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17227    dynamic_linker='Win32 ld.exe'
17228    ;;
17229  esac
17230  # FIXME: first we should search . and the directory the executable is in
17231  shlibpath_var=PATH
17232  ;;
17233
17234darwin* | rhapsody*)
17235  dynamic_linker="$host_os dyld"
17236  version_type=darwin
17237  need_lib_prefix=no
17238  need_version=no
17239  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17240  soname_spec='$libname$release$major$shared_ext'
17241  shlibpath_overrides_runpath=yes
17242  shlibpath_var=DYLD_LIBRARY_PATH
17243  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17244
17245  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17246  ;;
17247
17248dgux*)
17249  version_type=linux # correct to gnu/linux during the next big refactor
17250  need_lib_prefix=no
17251  need_version=no
17252  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17253  soname_spec='$libname$release$shared_ext$major'
17254  shlibpath_var=LD_LIBRARY_PATH
17255  ;;
17256
17257freebsd* | dragonfly*)
17258  # DragonFly does not have aout.  When/if they implement a new
17259  # versioning mechanism, adjust this.
17260  if test -x /usr/bin/objformat; then
17261    objformat=`/usr/bin/objformat`
17262  else
17263    case $host_os in
17264    freebsd[23].*) objformat=aout ;;
17265    *) objformat=elf ;;
17266    esac
17267  fi
17268  version_type=freebsd-$objformat
17269  case $version_type in
17270    freebsd-elf*)
17271      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17272      soname_spec='$libname$release$shared_ext$major'
17273      need_version=no
17274      need_lib_prefix=no
17275      ;;
17276    freebsd-*)
17277      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17278      need_version=yes
17279      ;;
17280  esac
17281  shlibpath_var=LD_LIBRARY_PATH
17282  case $host_os in
17283  freebsd2.*)
17284    shlibpath_overrides_runpath=yes
17285    ;;
17286  freebsd3.[01]* | freebsdelf3.[01]*)
17287    shlibpath_overrides_runpath=yes
17288    hardcode_into_libs=yes
17289    ;;
17290  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17291  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17292    shlibpath_overrides_runpath=no
17293    hardcode_into_libs=yes
17294    ;;
17295  *) # from 4.6 on, and DragonFly
17296    shlibpath_overrides_runpath=yes
17297    hardcode_into_libs=yes
17298    ;;
17299  esac
17300  ;;
17301
17302haiku*)
17303  version_type=linux # correct to gnu/linux during the next big refactor
17304  need_lib_prefix=no
17305  need_version=no
17306  dynamic_linker="$host_os runtime_loader"
17307  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17308  soname_spec='$libname$release$shared_ext$major'
17309  shlibpath_var=LIBRARY_PATH
17310  shlibpath_overrides_runpath=no
17311  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17312  hardcode_into_libs=yes
17313  ;;
17314
17315hpux9* | hpux10* | hpux11*)
17316  # Give a soname corresponding to the major version so that dld.sl refuses to
17317  # link against other versions.
17318  version_type=sunos
17319  need_lib_prefix=no
17320  need_version=no
17321  case $host_cpu in
17322  ia64*)
17323    shrext_cmds='.so'
17324    hardcode_into_libs=yes
17325    dynamic_linker="$host_os dld.so"
17326    shlibpath_var=LD_LIBRARY_PATH
17327    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17328    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17329    soname_spec='$libname$release$shared_ext$major'
17330    if test 32 = "$HPUX_IA64_MODE"; then
17331      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17332      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17333    else
17334      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17335      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17336    fi
17337    ;;
17338  hppa*64*)
17339    shrext_cmds='.sl'
17340    hardcode_into_libs=yes
17341    dynamic_linker="$host_os dld.sl"
17342    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17343    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17344    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17345    soname_spec='$libname$release$shared_ext$major'
17346    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17347    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17348    ;;
17349  *)
17350    shrext_cmds='.sl'
17351    dynamic_linker="$host_os dld.sl"
17352    shlibpath_var=SHLIB_PATH
17353    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17354    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17355    soname_spec='$libname$release$shared_ext$major'
17356    ;;
17357  esac
17358  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17359  postinstall_cmds='chmod 555 $lib'
17360  # or fails outright, so override atomically:
17361  install_override_mode=555
17362  ;;
17363
17364interix[3-9]*)
17365  version_type=linux # correct to gnu/linux during the next big refactor
17366  need_lib_prefix=no
17367  need_version=no
17368  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17369  soname_spec='$libname$release$shared_ext$major'
17370  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17371  shlibpath_var=LD_LIBRARY_PATH
17372  shlibpath_overrides_runpath=no
17373  hardcode_into_libs=yes
17374  ;;
17375
17376irix5* | irix6* | nonstopux*)
17377  case $host_os in
17378    nonstopux*) version_type=nonstopux ;;
17379    *)
17380	if test yes = "$lt_cv_prog_gnu_ld"; then
17381		version_type=linux # correct to gnu/linux during the next big refactor
17382	else
17383		version_type=irix
17384	fi ;;
17385  esac
17386  need_lib_prefix=no
17387  need_version=no
17388  soname_spec='$libname$release$shared_ext$major'
17389  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17390  case $host_os in
17391  irix5* | nonstopux*)
17392    libsuff= shlibsuff=
17393    ;;
17394  *)
17395    case $LD in # libtool.m4 will add one of these switches to LD
17396    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17397      libsuff= shlibsuff= libmagic=32-bit;;
17398    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17399      libsuff=32 shlibsuff=N32 libmagic=N32;;
17400    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17401      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17402    *) libsuff= shlibsuff= libmagic=never-match;;
17403    esac
17404    ;;
17405  esac
17406  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17407  shlibpath_overrides_runpath=no
17408  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17409  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17410  hardcode_into_libs=yes
17411  ;;
17412
17413# No shared lib support for Linux oldld, aout, or coff.
17414linux*oldld* | linux*aout* | linux*coff*)
17415  dynamic_linker=no
17416  ;;
17417
17418linux*android*)
17419  version_type=none # Android doesn't support versioned libraries.
17420  need_lib_prefix=no
17421  need_version=no
17422  library_names_spec='$libname$release$shared_ext'
17423  soname_spec='$libname$release$shared_ext'
17424  finish_cmds=
17425  shlibpath_var=LD_LIBRARY_PATH
17426  shlibpath_overrides_runpath=yes
17427
17428  # This implies no fast_install, which is unacceptable.
17429  # Some rework will be needed to allow for fast_install
17430  # before this can be enabled.
17431  hardcode_into_libs=yes
17432
17433  dynamic_linker='Android linker'
17434  # Don't embed -rpath directories since the linker doesn't support them.
17435  hardcode_libdir_flag_spec_CXX='-L$libdir'
17436  ;;
17437
17438# This must be glibc/ELF.
17439linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17440  version_type=linux # correct to gnu/linux during the next big refactor
17441  need_lib_prefix=no
17442  need_version=no
17443  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17444  soname_spec='$libname$release$shared_ext$major'
17445  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17446  shlibpath_var=LD_LIBRARY_PATH
17447  shlibpath_overrides_runpath=no
17448
17449  # Some binutils ld are patched to set DT_RUNPATH
17450  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17451  $as_echo_n "(cached) " >&6
17452else
17453  lt_cv_shlibpath_overrides_runpath=no
17454    save_LDFLAGS=$LDFLAGS
17455    save_libdir=$libdir
17456    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17457	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17458    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17459/* end confdefs.h.  */
17460
17461int
17462main ()
17463{
17464
17465  ;
17466  return 0;
17467}
17468_ACEOF
17469if ac_fn_cxx_try_link "$LINENO"; then :
17470  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17471  lt_cv_shlibpath_overrides_runpath=yes
17472fi
17473fi
17474rm -f core conftest.err conftest.$ac_objext \
17475    conftest$ac_exeext conftest.$ac_ext
17476    LDFLAGS=$save_LDFLAGS
17477    libdir=$save_libdir
17478
17479fi
17480
17481  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17482
17483  # This implies no fast_install, which is unacceptable.
17484  # Some rework will be needed to allow for fast_install
17485  # before this can be enabled.
17486  hardcode_into_libs=yes
17487
17488  # Ideally, we could use ldconfig to report *all* directores which are
17489  # searched for libraries, however this is still not possible.  Aside from not
17490  # being certain /sbin/ldconfig is available, command
17491  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17492  # even though it is searched at run-time.  Try to do the best guess by
17493  # appending ld.so.conf contents (and includes) to the search path.
17494  if test -f /etc/ld.so.conf; then
17495    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
17496    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17497  fi
17498
17499  # We used to test for /lib/ld.so.1 and disable shared libraries on
17500  # powerpc, because MkLinux only supported shared libraries with the
17501  # GNU dynamic linker.  Since this was broken with cross compilers,
17502  # most powerpc-linux boxes support dynamic linking these days and
17503  # people can always --disable-shared, the test was removed, and we
17504  # assume the GNU/Linux dynamic linker is in use.
17505  dynamic_linker='GNU/Linux ld.so'
17506  ;;
17507
17508netbsdelf*-gnu)
17509  version_type=linux
17510  need_lib_prefix=no
17511  need_version=no
17512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17513  soname_spec='${libname}${release}${shared_ext}$major'
17514  shlibpath_var=LD_LIBRARY_PATH
17515  shlibpath_overrides_runpath=no
17516  hardcode_into_libs=yes
17517  dynamic_linker='NetBSD ld.elf_so'
17518  ;;
17519
17520netbsd*)
17521  version_type=sunos
17522  need_lib_prefix=no
17523  need_version=no
17524  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17525    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17526    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17527    dynamic_linker='NetBSD (a.out) ld.so'
17528  else
17529    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17530    soname_spec='$libname$release$shared_ext$major'
17531    dynamic_linker='NetBSD ld.elf_so'
17532  fi
17533  shlibpath_var=LD_LIBRARY_PATH
17534  shlibpath_overrides_runpath=yes
17535  hardcode_into_libs=yes
17536  ;;
17537
17538newsos6)
17539  version_type=linux # correct to gnu/linux during the next big refactor
17540  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17541  shlibpath_var=LD_LIBRARY_PATH
17542  shlibpath_overrides_runpath=yes
17543  ;;
17544
17545*nto* | *qnx*)
17546  version_type=qnx
17547  need_lib_prefix=no
17548  need_version=no
17549  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17550  soname_spec='$libname$release$shared_ext$major'
17551  shlibpath_var=LD_LIBRARY_PATH
17552  shlibpath_overrides_runpath=no
17553  hardcode_into_libs=yes
17554  dynamic_linker='ldqnx.so'
17555  ;;
17556
17557openbsd* | bitrig*)
17558  version_type=sunos
17559  sys_lib_dlsearch_path_spec=/usr/lib
17560  need_lib_prefix=no
17561  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17562    need_version=no
17563  else
17564    need_version=yes
17565  fi
17566  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17567  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17568  shlibpath_var=LD_LIBRARY_PATH
17569  shlibpath_overrides_runpath=yes
17570  ;;
17571
17572os2*)
17573  libname_spec='$name'
17574  version_type=windows
17575  shrext_cmds=.dll
17576  need_version=no
17577  need_lib_prefix=no
17578  # OS/2 can only load a DLL with a base name of 8 characters or less.
17579  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17580    v=$($ECHO $release$versuffix | tr -d .-);
17581    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17582    $ECHO $n$v`$shared_ext'
17583  library_names_spec='${libname}_dll.$libext'
17584  dynamic_linker='OS/2 ld.exe'
17585  shlibpath_var=BEGINLIBPATH
17586  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17587  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17588  postinstall_cmds='base_file=`basename \$file`~
17589    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17590    dldir=$destdir/`dirname \$dlpath`~
17591    test -d \$dldir || mkdir -p \$dldir~
17592    $install_prog $dir/$dlname \$dldir/$dlname~
17593    chmod a+x \$dldir/$dlname~
17594    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17595      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17596    fi'
17597  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17598    dlpath=$dir/\$dldll~
17599    $RM \$dlpath'
17600  ;;
17601
17602osf3* | osf4* | osf5*)
17603  version_type=osf
17604  need_lib_prefix=no
17605  need_version=no
17606  soname_spec='$libname$release$shared_ext$major'
17607  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17608  shlibpath_var=LD_LIBRARY_PATH
17609  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17610  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17611  ;;
17612
17613rdos*)
17614  dynamic_linker=no
17615  ;;
17616
17617solaris*)
17618  version_type=linux # correct to gnu/linux during the next big refactor
17619  need_lib_prefix=no
17620  need_version=no
17621  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17622  soname_spec='$libname$release$shared_ext$major'
17623  shlibpath_var=LD_LIBRARY_PATH
17624  shlibpath_overrides_runpath=yes
17625  hardcode_into_libs=yes
17626  # ldd complains unless libraries are executable
17627  postinstall_cmds='chmod +x $lib'
17628  ;;
17629
17630sunos4*)
17631  version_type=sunos
17632  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17633  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17634  shlibpath_var=LD_LIBRARY_PATH
17635  shlibpath_overrides_runpath=yes
17636  if test yes = "$with_gnu_ld"; then
17637    need_lib_prefix=no
17638  fi
17639  need_version=yes
17640  ;;
17641
17642sysv4 | sysv4.3*)
17643  version_type=linux # correct to gnu/linux during the next big refactor
17644  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17645  soname_spec='$libname$release$shared_ext$major'
17646  shlibpath_var=LD_LIBRARY_PATH
17647  case $host_vendor in
17648    sni)
17649      shlibpath_overrides_runpath=no
17650      need_lib_prefix=no
17651      runpath_var=LD_RUN_PATH
17652      ;;
17653    siemens)
17654      need_lib_prefix=no
17655      ;;
17656    motorola)
17657      need_lib_prefix=no
17658      need_version=no
17659      shlibpath_overrides_runpath=no
17660      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17661      ;;
17662  esac
17663  ;;
17664
17665sysv4*MP*)
17666  if test -d /usr/nec; then
17667    version_type=linux # correct to gnu/linux during the next big refactor
17668    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17669    soname_spec='$libname$shared_ext.$major'
17670    shlibpath_var=LD_LIBRARY_PATH
17671  fi
17672  ;;
17673
17674sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17675  version_type=sco
17676  need_lib_prefix=no
17677  need_version=no
17678  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17679  soname_spec='$libname$release$shared_ext$major'
17680  shlibpath_var=LD_LIBRARY_PATH
17681  shlibpath_overrides_runpath=yes
17682  hardcode_into_libs=yes
17683  if test yes = "$with_gnu_ld"; then
17684    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17685  else
17686    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17687    case $host_os in
17688      sco3.2v5*)
17689        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17690	;;
17691    esac
17692  fi
17693  sys_lib_dlsearch_path_spec='/usr/lib'
17694  ;;
17695
17696tpf*)
17697  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17698  version_type=linux # correct to gnu/linux during the next big refactor
17699  need_lib_prefix=no
17700  need_version=no
17701  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17702  shlibpath_var=LD_LIBRARY_PATH
17703  shlibpath_overrides_runpath=no
17704  hardcode_into_libs=yes
17705  ;;
17706
17707uts4*)
17708  version_type=linux # correct to gnu/linux during the next big refactor
17709  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17710  soname_spec='$libname$release$shared_ext$major'
17711  shlibpath_var=LD_LIBRARY_PATH
17712  ;;
17713
17714*)
17715  dynamic_linker=no
17716  ;;
17717esac
17718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17719$as_echo "$dynamic_linker" >&6; }
17720test no = "$dynamic_linker" && can_build_shared=no
17721
17722variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17723if test yes = "$GCC"; then
17724  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17725fi
17726
17727if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17728  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17729fi
17730
17731if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17732  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17733fi
17734
17735# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17736configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17737
17738# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17739func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17740
17741# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17742configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17784$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17785hardcode_action_CXX=
17786if test -n "$hardcode_libdir_flag_spec_CXX" ||
17787   test -n "$runpath_var_CXX" ||
17788   test yes = "$hardcode_automatic_CXX"; then
17789
17790  # We can hardcode non-existent directories.
17791  if test no != "$hardcode_direct_CXX" &&
17792     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17793     # have to relink, otherwise we might link with an installed library
17794     # when we should be linking with a yet-to-be-installed one
17795     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17796     test no != "$hardcode_minus_L_CXX"; then
17797    # Linking always hardcodes the temporary library directory.
17798    hardcode_action_CXX=relink
17799  else
17800    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17801    hardcode_action_CXX=immediate
17802  fi
17803else
17804  # We cannot hardcode anything, or else we can only hardcode existing
17805  # directories.
17806  hardcode_action_CXX=unsupported
17807fi
17808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17809$as_echo "$hardcode_action_CXX" >&6; }
17810
17811if test relink = "$hardcode_action_CXX" ||
17812   test yes = "$inherit_rpath_CXX"; then
17813  # Fast installation is not supported
17814  enable_fast_install=no
17815elif test yes = "$shlibpath_overrides_runpath" ||
17816     test no = "$enable_shared"; then
17817  # Fast installation is not necessary
17818  enable_fast_install=needless
17819fi
17820
17821
17822
17823
17824
17825
17826
17827  fi # test -n "$compiler"
17828
17829  CC=$lt_save_CC
17830  CFLAGS=$lt_save_CFLAGS
17831  LDCXX=$LD
17832  LD=$lt_save_LD
17833  GCC=$lt_save_GCC
17834  with_gnu_ld=$lt_save_with_gnu_ld
17835  lt_cv_path_LDCXX=$lt_cv_path_LD
17836  lt_cv_path_LD=$lt_save_path_LD
17837  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17838  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17839fi # test yes != "$_lt_caught_CXX_error"
17840
17841ac_ext=c
17842ac_cpp='$CPP $CPPFLAGS'
17843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17845ac_compiler_gnu=$ac_cv_c_compiler_gnu
17846
17847
17848depcc="$CXX"  am_compiler_list=
17849
17850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17851$as_echo_n "checking dependency style of $depcc... " >&6; }
17852if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
17853  $as_echo_n "(cached) " >&6
17854else
17855  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17856  # We make a subdir and do the tests there.  Otherwise we can end up
17857  # making bogus files that we don't know about and never remove.  For
17858  # instance it was reported that on HP-UX the gcc test will end up
17859  # making a dummy file named 'D' -- because '-MD' means "put the output
17860  # in D".
17861  rm -rf conftest.dir
17862  mkdir conftest.dir
17863  # Copy depcomp to subdir because otherwise we won't find it if we're
17864  # using a relative directory.
17865  cp "$am_depcomp" conftest.dir
17866  cd conftest.dir
17867  # We will build objects and dependencies in a subdirectory because
17868  # it helps to detect inapplicable dependency modes.  For instance
17869  # both Tru64's cc and ICC support -MD to output dependencies as a
17870  # side effect of compilation, but ICC will put the dependencies in
17871  # the current directory while Tru64 will put them in the object
17872  # directory.
17873  mkdir sub
17874
17875  am_cv_CXX_dependencies_compiler_type=none
17876  if test "$am_compiler_list" = ""; then
17877     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17878  fi
17879  am__universal=false
17880  case " $depcc " in #(
17881     *\ -arch\ *\ -arch\ *) am__universal=true ;;
17882     esac
17883
17884  for depmode in $am_compiler_list; do
17885    # Setup a source with many dependencies, because some compilers
17886    # like to wrap large dependency lists on column 80 (with \), and
17887    # we should not choose a depcomp mode which is confused by this.
17888    #
17889    # We need to recreate these files for each test, as the compiler may
17890    # overwrite some of them when testing with obscure command lines.
17891    # This happens at least with the AIX C compiler.
17892    : > sub/conftest.c
17893    for i in 1 2 3 4 5 6; do
17894      echo '#include "conftst'$i'.h"' >> sub/conftest.c
17895      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
17896      # Solaris 10 /bin/sh.
17897      echo '/* dummy */' > sub/conftst$i.h
17898    done
17899    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17900
17901    # We check with '-c' and '-o' for the sake of the "dashmstdout"
17902    # mode.  It turns out that the SunPro C++ compiler does not properly
17903    # handle '-M -o', and we need to detect this.  Also, some Intel
17904    # versions had trouble with output in subdirs.
17905    am__obj=sub/conftest.${OBJEXT-o}
17906    am__minus_obj="-o $am__obj"
17907    case $depmode in
17908    gcc)
17909      # This depmode causes a compiler race in universal mode.
17910      test "$am__universal" = false || continue
17911      ;;
17912    nosideeffect)
17913      # After this tag, mechanisms are not by side-effect, so they'll
17914      # only be used when explicitly requested.
17915      if test "x$enable_dependency_tracking" = xyes; then
17916	continue
17917      else
17918	break
17919      fi
17920      ;;
17921    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17922      # This compiler won't grok '-c -o', but also, the minuso test has
17923      # not run yet.  These depmodes are late enough in the game, and
17924      # so weak that their functioning should not be impacted.
17925      am__obj=conftest.${OBJEXT-o}
17926      am__minus_obj=
17927      ;;
17928    none) break ;;
17929    esac
17930    if depmode=$depmode \
17931       source=sub/conftest.c object=$am__obj \
17932       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17933       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17934         >/dev/null 2>conftest.err &&
17935       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17936       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17937       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17938       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17939      # icc doesn't choke on unknown options, it will just issue warnings
17940      # or remarks (even with -Werror).  So we grep stderr for any message
17941      # that says an option was ignored or not supported.
17942      # When given -MP, icc 7.0 and 7.1 complain thusly:
17943      #   icc: Command line warning: ignoring option '-M'; no argument required
17944      # The diagnosis changed in icc 8.0:
17945      #   icc: Command line remark: option '-MP' not supported
17946      if (grep 'ignoring option' conftest.err ||
17947          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17948        am_cv_CXX_dependencies_compiler_type=$depmode
17949        break
17950      fi
17951    fi
17952  done
17953
17954  cd ..
17955  rm -rf conftest.dir
17956else
17957  am_cv_CXX_dependencies_compiler_type=none
17958fi
17959
17960fi
17961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
17962$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
17963CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
17964
17965 if
17966  test "x$enable_dependency_tracking" != xno \
17967  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
17968  am__fastdepCXX_TRUE=
17969  am__fastdepCXX_FALSE='#'
17970else
17971  am__fastdepCXX_TRUE='#'
17972  am__fastdepCXX_FALSE=
17973fi
17974
17975
17976ac_ext=c
17977ac_cpp='$CPP $CPPFLAGS'
17978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17980ac_compiler_gnu=$ac_cv_c_compiler_gnu
17981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
17982$as_echo_n "checking how to run the C preprocessor... " >&6; }
17983# On Suns, sometimes $CPP names a directory.
17984if test -n "$CPP" && test -d "$CPP"; then
17985  CPP=
17986fi
17987if test -z "$CPP"; then
17988  if ${ac_cv_prog_CPP+:} false; then :
17989  $as_echo_n "(cached) " >&6
17990else
17991      # Double quotes because CPP needs to be expanded
17992    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
17993    do
17994      ac_preproc_ok=false
17995for ac_c_preproc_warn_flag in '' yes
17996do
17997  # Use a header file that comes with gcc, so configuring glibc
17998  # with a fresh cross-compiler works.
17999  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18000  # <limits.h> exists even on freestanding compilers.
18001  # On the NeXT, cc -E runs the code through the compiler's parser,
18002  # not just through cpp. "Syntax error" is here to catch this case.
18003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18004/* end confdefs.h.  */
18005#ifdef __STDC__
18006# include <limits.h>
18007#else
18008# include <assert.h>
18009#endif
18010		     Syntax error
18011_ACEOF
18012if ac_fn_c_try_cpp "$LINENO"; then :
18013
18014else
18015  # Broken: fails on valid input.
18016continue
18017fi
18018rm -f conftest.err conftest.i conftest.$ac_ext
18019
18020  # OK, works on sane cases.  Now check whether nonexistent headers
18021  # can be detected and how.
18022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18023/* end confdefs.h.  */
18024#include <ac_nonexistent.h>
18025_ACEOF
18026if ac_fn_c_try_cpp "$LINENO"; then :
18027  # Broken: success on invalid input.
18028continue
18029else
18030  # Passes both tests.
18031ac_preproc_ok=:
18032break
18033fi
18034rm -f conftest.err conftest.i conftest.$ac_ext
18035
18036done
18037# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18038rm -f conftest.i conftest.err conftest.$ac_ext
18039if $ac_preproc_ok; then :
18040  break
18041fi
18042
18043    done
18044    ac_cv_prog_CPP=$CPP
18045
18046fi
18047  CPP=$ac_cv_prog_CPP
18048else
18049  ac_cv_prog_CPP=$CPP
18050fi
18051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
18052$as_echo "$CPP" >&6; }
18053ac_preproc_ok=false
18054for ac_c_preproc_warn_flag in '' yes
18055do
18056  # Use a header file that comes with gcc, so configuring glibc
18057  # with a fresh cross-compiler works.
18058  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18059  # <limits.h> exists even on freestanding compilers.
18060  # On the NeXT, cc -E runs the code through the compiler's parser,
18061  # not just through cpp. "Syntax error" is here to catch this case.
18062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18063/* end confdefs.h.  */
18064#ifdef __STDC__
18065# include <limits.h>
18066#else
18067# include <assert.h>
18068#endif
18069		     Syntax error
18070_ACEOF
18071if ac_fn_c_try_cpp "$LINENO"; then :
18072
18073else
18074  # Broken: fails on valid input.
18075continue
18076fi
18077rm -f conftest.err conftest.i conftest.$ac_ext
18078
18079  # OK, works on sane cases.  Now check whether nonexistent headers
18080  # can be detected and how.
18081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18082/* end confdefs.h.  */
18083#include <ac_nonexistent.h>
18084_ACEOF
18085if ac_fn_c_try_cpp "$LINENO"; then :
18086  # Broken: success on invalid input.
18087continue
18088else
18089  # Passes both tests.
18090ac_preproc_ok=:
18091break
18092fi
18093rm -f conftest.err conftest.i conftest.$ac_ext
18094
18095done
18096# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18097rm -f conftest.i conftest.err conftest.$ac_ext
18098if $ac_preproc_ok; then :
18099
18100else
18101  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18103as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
18104See \`config.log' for more details" "$LINENO" 5; }
18105fi
18106
18107ac_ext=c
18108ac_cpp='$CPP $CPPFLAGS'
18109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18111ac_compiler_gnu=$ac_cv_c_compiler_gnu
18112
18113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
18114$as_echo_n "checking for egrep... " >&6; }
18115if ${ac_cv_path_EGREP+:} false; then :
18116  $as_echo_n "(cached) " >&6
18117else
18118  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
18119   then ac_cv_path_EGREP="$GREP -E"
18120   else
18121     if test -z "$EGREP"; then
18122  ac_path_EGREP_found=false
18123  # Loop through the user's path and test for each of PROGNAME-LIST
18124  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18125for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18126do
18127  IFS=$as_save_IFS
18128  test -z "$as_dir" && as_dir=.
18129    for ac_prog in egrep; do
18130    for ac_exec_ext in '' $ac_executable_extensions; do
18131      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
18132      as_fn_executable_p "$ac_path_EGREP" || continue
18133# Check for GNU ac_path_EGREP and select it if it is found.
18134  # Check for GNU $ac_path_EGREP
18135case `"$ac_path_EGREP" --version 2>&1` in
18136*GNU*)
18137  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
18138*)
18139  ac_count=0
18140  $as_echo_n 0123456789 >"conftest.in"
18141  while :
18142  do
18143    cat "conftest.in" "conftest.in" >"conftest.tmp"
18144    mv "conftest.tmp" "conftest.in"
18145    cp "conftest.in" "conftest.nl"
18146    $as_echo 'EGREP' >> "conftest.nl"
18147    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18148    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18149    as_fn_arith $ac_count + 1 && ac_count=$as_val
18150    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
18151      # Best one so far, save it but keep looking for a better one
18152      ac_cv_path_EGREP="$ac_path_EGREP"
18153      ac_path_EGREP_max=$ac_count
18154    fi
18155    # 10*(2^10) chars as input seems more than enough
18156    test $ac_count -gt 10 && break
18157  done
18158  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18159esac
18160
18161      $ac_path_EGREP_found && break 3
18162    done
18163  done
18164  done
18165IFS=$as_save_IFS
18166  if test -z "$ac_cv_path_EGREP"; then
18167    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
18168  fi
18169else
18170  ac_cv_path_EGREP=$EGREP
18171fi
18172
18173   fi
18174fi
18175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
18176$as_echo "$ac_cv_path_EGREP" >&6; }
18177 EGREP="$ac_cv_path_EGREP"
18178
18179
18180
18181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18182$as_echo_n "checking whether ln -s works... " >&6; }
18183LN_S=$as_ln_s
18184if test "$LN_S" = "ln -s"; then
18185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18186$as_echo "yes" >&6; }
18187else
18188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18189$as_echo "no, using $LN_S" >&6; }
18190fi
18191
18192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18193$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
18194set x ${MAKE-make}
18195ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18196if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
18197  $as_echo_n "(cached) " >&6
18198else
18199  cat >conftest.make <<\_ACEOF
18200SHELL = /bin/sh
18201all:
18202	@echo '@@@%%%=$(MAKE)=@@@%%%'
18203_ACEOF
18204# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18205case `${MAKE-make} -f conftest.make 2>/dev/null` in
18206  *@@@%%%=?*=@@@%%%*)
18207    eval ac_cv_prog_make_${ac_make}_set=yes;;
18208  *)
18209    eval ac_cv_prog_make_${ac_make}_set=no;;
18210esac
18211rm -f conftest.make
18212fi
18213if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18215$as_echo "yes" >&6; }
18216  SET_MAKE=
18217else
18218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18219$as_echo "no" >&6; }
18220  SET_MAKE="MAKE=${MAKE-make}"
18221fi
18222
18223
18224
18225for ac_prog in flex lex
18226do
18227  # Extract the first word of "$ac_prog", so it can be a program name with args.
18228set dummy $ac_prog; ac_word=$2
18229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18230$as_echo_n "checking for $ac_word... " >&6; }
18231if ${ac_cv_prog_LEX+:} false; then :
18232  $as_echo_n "(cached) " >&6
18233else
18234  if test -n "$LEX"; then
18235  ac_cv_prog_LEX="$LEX" # Let the user override the test.
18236else
18237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18238for as_dir in $PATH
18239do
18240  IFS=$as_save_IFS
18241  test -z "$as_dir" && as_dir=.
18242    for ac_exec_ext in '' $ac_executable_extensions; do
18243  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18244    ac_cv_prog_LEX="$ac_prog"
18245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18246    break 2
18247  fi
18248done
18249  done
18250IFS=$as_save_IFS
18251
18252fi
18253fi
18254LEX=$ac_cv_prog_LEX
18255if test -n "$LEX"; then
18256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
18257$as_echo "$LEX" >&6; }
18258else
18259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18260$as_echo "no" >&6; }
18261fi
18262
18263
18264  test -n "$LEX" && break
18265done
18266test -n "$LEX" || LEX=":"
18267
18268if test "x$LEX" != "x:"; then
18269  cat >conftest.l <<_ACEOF
18270%%
18271a { ECHO; }
18272b { REJECT; }
18273c { yymore (); }
18274d { yyless (1); }
18275e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
18276    yyless ((input () != 0)); }
18277f { unput (yytext[0]); }
18278. { BEGIN INITIAL; }
18279%%
18280#ifdef YYTEXT_POINTER
18281extern char *yytext;
18282#endif
18283int
18284main (void)
18285{
18286  return ! yylex () + ! yywrap ();
18287}
18288_ACEOF
18289{ { ac_try="$LEX conftest.l"
18290case "(($ac_try" in
18291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292  *) ac_try_echo=$ac_try;;
18293esac
18294eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18295$as_echo "$ac_try_echo"; } >&5
18296  (eval "$LEX conftest.l") 2>&5
18297  ac_status=$?
18298  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18299  test $ac_status = 0; }
18300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
18301$as_echo_n "checking lex output file root... " >&6; }
18302if ${ac_cv_prog_lex_root+:} false; then :
18303  $as_echo_n "(cached) " >&6
18304else
18305
18306if test -f lex.yy.c; then
18307  ac_cv_prog_lex_root=lex.yy
18308elif test -f lexyy.c; then
18309  ac_cv_prog_lex_root=lexyy
18310else
18311  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
18312fi
18313fi
18314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
18315$as_echo "$ac_cv_prog_lex_root" >&6; }
18316LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
18317
18318if test -z "${LEXLIB+set}"; then
18319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
18320$as_echo_n "checking lex library... " >&6; }
18321if ${ac_cv_lib_lex+:} false; then :
18322  $as_echo_n "(cached) " >&6
18323else
18324
18325    ac_save_LIBS=$LIBS
18326    ac_cv_lib_lex='none needed'
18327    for ac_lib in '' -lfl -ll; do
18328      LIBS="$ac_lib $ac_save_LIBS"
18329      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18330/* end confdefs.h.  */
18331`cat $LEX_OUTPUT_ROOT.c`
18332_ACEOF
18333if ac_fn_c_try_link "$LINENO"; then :
18334  ac_cv_lib_lex=$ac_lib
18335fi
18336rm -f core conftest.err conftest.$ac_objext \
18337    conftest$ac_exeext conftest.$ac_ext
18338      test "$ac_cv_lib_lex" != 'none needed' && break
18339    done
18340    LIBS=$ac_save_LIBS
18341
18342fi
18343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
18344$as_echo "$ac_cv_lib_lex" >&6; }
18345  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
18346fi
18347
18348
18349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
18350$as_echo_n "checking whether yytext is a pointer... " >&6; }
18351if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
18352  $as_echo_n "(cached) " >&6
18353else
18354  # POSIX says lex can declare yytext either as a pointer or an array; the
18355# default is implementation-dependent.  Figure out which it is, since
18356# not all implementations provide the %pointer and %array declarations.
18357ac_cv_prog_lex_yytext_pointer=no
18358ac_save_LIBS=$LIBS
18359LIBS="$LEXLIB $ac_save_LIBS"
18360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18361/* end confdefs.h.  */
18362
18363  #define YYTEXT_POINTER 1
18364`cat $LEX_OUTPUT_ROOT.c`
18365_ACEOF
18366if ac_fn_c_try_link "$LINENO"; then :
18367  ac_cv_prog_lex_yytext_pointer=yes
18368fi
18369rm -f core conftest.err conftest.$ac_objext \
18370    conftest$ac_exeext conftest.$ac_ext
18371LIBS=$ac_save_LIBS
18372
18373fi
18374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
18375$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
18376if test $ac_cv_prog_lex_yytext_pointer = yes; then
18377
18378$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
18379
18380fi
18381rm -f conftest.l $LEX_OUTPUT_ROOT.c
18382
18383fi
18384for ac_prog in 'bison -y' byacc
18385do
18386  # Extract the first word of "$ac_prog", so it can be a program name with args.
18387set dummy $ac_prog; ac_word=$2
18388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18389$as_echo_n "checking for $ac_word... " >&6; }
18390if ${ac_cv_prog_YACC+:} false; then :
18391  $as_echo_n "(cached) " >&6
18392else
18393  if test -n "$YACC"; then
18394  ac_cv_prog_YACC="$YACC" # Let the user override the test.
18395else
18396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18397for as_dir in $PATH
18398do
18399  IFS=$as_save_IFS
18400  test -z "$as_dir" && as_dir=.
18401    for ac_exec_ext in '' $ac_executable_extensions; do
18402  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18403    ac_cv_prog_YACC="$ac_prog"
18404    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18405    break 2
18406  fi
18407done
18408  done
18409IFS=$as_save_IFS
18410
18411fi
18412fi
18413YACC=$ac_cv_prog_YACC
18414if test -n "$YACC"; then
18415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
18416$as_echo "$YACC" >&6; }
18417else
18418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18419$as_echo "no" >&6; }
18420fi
18421
18422
18423  test -n "$YACC" && break
18424done
18425test -n "$YACC" || YACC="yacc"
18426
18427
18428# Extract the first word of "valgrind", so it can be a program name with args.
18429set dummy valgrind; ac_word=$2
18430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18431$as_echo_n "checking for $ac_word... " >&6; }
18432if ${ac_cv_path_VALGRIND+:} false; then :
18433  $as_echo_n "(cached) " >&6
18434else
18435  case $VALGRIND in
18436  [\\/]* | ?:[\\/]*)
18437  ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
18438  ;;
18439  *)
18440  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18441for as_dir in $PATH
18442do
18443  IFS=$as_save_IFS
18444  test -z "$as_dir" && as_dir=.
18445    for ac_exec_ext in '' $ac_executable_extensions; do
18446  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18447    ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
18448    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18449    break 2
18450  fi
18451done
18452  done
18453IFS=$as_save_IFS
18454
18455  ;;
18456esac
18457fi
18458VALGRIND=$ac_cv_path_VALGRIND
18459if test -n "$VALGRIND"; then
18460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
18461$as_echo "$VALGRIND" >&6; }
18462else
18463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18464$as_echo "no" >&6; }
18465fi
18466
18467
18468
18469# Warn when pkg.m4 is missing
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18480	if test -n "$ac_tool_prefix"; then
18481  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18482set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18484$as_echo_n "checking for $ac_word... " >&6; }
18485if ${ac_cv_path_PKG_CONFIG+:} false; then :
18486  $as_echo_n "(cached) " >&6
18487else
18488  case $PKG_CONFIG in
18489  [\\/]* | ?:[\\/]*)
18490  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18491  ;;
18492  *)
18493  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18494for as_dir in $PATH
18495do
18496  IFS=$as_save_IFS
18497  test -z "$as_dir" && as_dir=.
18498    for ac_exec_ext in '' $ac_executable_extensions; do
18499  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18500    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18502    break 2
18503  fi
18504done
18505  done
18506IFS=$as_save_IFS
18507
18508  ;;
18509esac
18510fi
18511PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18512if test -n "$PKG_CONFIG"; then
18513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18514$as_echo "$PKG_CONFIG" >&6; }
18515else
18516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18517$as_echo "no" >&6; }
18518fi
18519
18520
18521fi
18522if test -z "$ac_cv_path_PKG_CONFIG"; then
18523  ac_pt_PKG_CONFIG=$PKG_CONFIG
18524  # Extract the first word of "pkg-config", so it can be a program name with args.
18525set dummy pkg-config; ac_word=$2
18526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18527$as_echo_n "checking for $ac_word... " >&6; }
18528if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18529  $as_echo_n "(cached) " >&6
18530else
18531  case $ac_pt_PKG_CONFIG in
18532  [\\/]* | ?:[\\/]*)
18533  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18534  ;;
18535  *)
18536  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18537for as_dir in $PATH
18538do
18539  IFS=$as_save_IFS
18540  test -z "$as_dir" && as_dir=.
18541    for ac_exec_ext in '' $ac_executable_extensions; do
18542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18543    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18545    break 2
18546  fi
18547done
18548  done
18549IFS=$as_save_IFS
18550
18551  ;;
18552esac
18553fi
18554ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18555if test -n "$ac_pt_PKG_CONFIG"; then
18556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18557$as_echo "$ac_pt_PKG_CONFIG" >&6; }
18558else
18559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18560$as_echo "no" >&6; }
18561fi
18562
18563  if test "x$ac_pt_PKG_CONFIG" = x; then
18564    PKG_CONFIG=""
18565  else
18566    case $cross_compiling:$ac_tool_warned in
18567yes:)
18568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18570ac_tool_warned=yes ;;
18571esac
18572    PKG_CONFIG=$ac_pt_PKG_CONFIG
18573  fi
18574else
18575  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18576fi
18577
18578fi
18579if test -n "$PKG_CONFIG"; then
18580	_pkg_min_version=0.9.0
18581	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18582$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18583	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18584		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18585$as_echo "yes" >&6; }
18586	else
18587		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18588$as_echo "no" >&6; }
18589		PKG_CONFIG=""
18590	fi
18591fi
18592
18593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Bison is the parser generator" >&5
18594$as_echo_n "checking if Bison is the parser generator... " >&6; }
18595if ${collectd_cv_prog_bison+:} false; then :
18596  $as_echo_n "(cached) " >&6
18597else
18598
18599    if $YACC --version 2>/dev/null | $EGREP -q '^bison '; then :
18600  collectd_cv_prog_bison=yes
18601else
18602  collectd_cv_prog_bison=no
18603
18604fi
18605
18606
18607fi
18608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $collectd_cv_prog_bison" >&5
18609$as_echo "$collectd_cv_prog_bison" >&6; }
18610
18611if test "x$collectd_cv_prog_bison" = "xno" && test ! -f "${srcdir}/src/liboconfig/parser.c"; then
18612  as_fn_error $? "bison is missing and you do not have ${srcdir}/src/liboconfig/parser.c. Please install bison" "$LINENO" 5
18613fi
18614
18615if test "x$lt_cv_dlopen" = "xno"; then
18616  as_fn_error $? "Your system does not support dlopen" "$LINENO" 5
18617fi
18618
18619DLOPEN_LIBS=$lt_cv_dlopen_libs
18620
18621
18622
18623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel type ($host_os)" >&5
18624$as_echo_n "checking for kernel type ($host_os)... " >&6; }
18625case $host_os in
18626  *aix*)
18627
18628$as_echo "#define KERNEL_AIX 1" >>confdefs.h
18629
18630    ac_system="AIX"
18631    ;;
18632  *darwin*)
18633
18634$as_echo "#define KERNEL_DARWIN 1" >>confdefs.h
18635
18636    ac_system="Darwin"
18637    ;;
18638  *freebsd*)
18639
18640$as_echo "#define KERNEL_FREEBSD 1" >>confdefs.h
18641
18642    ac_system="FreeBSD"
18643    ;;
18644  *linux*)
18645
18646$as_echo "#define KERNEL_LINUX 1" >>confdefs.h
18647
18648    ac_system="Linux"
18649    ;;
18650  *netbsd*)
18651
18652$as_echo "#define KERNEL_NETBSD 1" >>confdefs.h
18653
18654    ac_system="NetBSD"
18655    ;;
18656  *openbsd*)
18657
18658$as_echo "#define KERNEL_OPENBSD 1" >>confdefs.h
18659
18660    ac_system="OpenBSD"
18661    ;;
18662  *solaris*)
18663
18664$as_echo "#define KERNEL_SOLARIS 1" >>confdefs.h
18665
18666    ac_system="Solaris"
18667    ;;
18668  *mingw32*)
18669
18670$as_echo "#define KERNEL_WIN32 1" >>confdefs.h
18671
18672    ac_system="Windows"
18673    ;;
18674  *)
18675    ac_system="unknown"
18676    ;;
18677esac
18678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_system" >&5
18679$as_echo "$ac_system" >&6; }
18680
18681 if test "x$ac_system" = "xAIX"; then
18682  BUILD_AIX_TRUE=
18683  BUILD_AIX_FALSE='#'
18684else
18685  BUILD_AIX_TRUE='#'
18686  BUILD_AIX_FALSE=
18687fi
18688
18689 if test "x$ac_system" = "xDarwin"; then
18690  BUILD_DARWIN_TRUE=
18691  BUILD_DARWIN_FALSE='#'
18692else
18693  BUILD_DARWIN_TRUE='#'
18694  BUILD_DARWIN_FALSE=
18695fi
18696
18697 if test "x$ac_system" = "xFreeBSD"; then
18698  BUILD_FREEBSD_TRUE=
18699  BUILD_FREEBSD_FALSE='#'
18700else
18701  BUILD_FREEBSD_TRUE='#'
18702  BUILD_FREEBSD_FALSE=
18703fi
18704
18705 if test "x$ac_system" = "xLinux"; then
18706  BUILD_LINUX_TRUE=
18707  BUILD_LINUX_FALSE='#'
18708else
18709  BUILD_LINUX_TRUE='#'
18710  BUILD_LINUX_FALSE=
18711fi
18712
18713 if test "x$ac_system" = "xOpenBSD"; then
18714  BUILD_OPENBSD_TRUE=
18715  BUILD_OPENBSD_FALSE='#'
18716else
18717  BUILD_OPENBSD_TRUE='#'
18718  BUILD_OPENBSD_FALSE=
18719fi
18720
18721 if test "x$ac_system" = "xNetBSD"; then
18722  BUILD_NETBSD_TRUE=
18723  BUILD_NETBSD_FALSE='#'
18724else
18725  BUILD_NETBSD_TRUE='#'
18726  BUILD_NETBSD_FALSE=
18727fi
18728
18729 if test "x$ac_system" = "xSolaris"; then
18730  BUILD_SOLARIS_TRUE=
18731  BUILD_SOLARIS_FALSE='#'
18732else
18733  BUILD_SOLARIS_TRUE='#'
18734  BUILD_SOLARIS_FALSE=
18735fi
18736
18737 if test "x$ac_system" = "xWindows"; then
18738  BUILD_WIN32_TRUE=
18739  BUILD_WIN32_FALSE='#'
18740else
18741  BUILD_WIN32_TRUE='#'
18742  BUILD_WIN32_FALSE=
18743fi
18744
18745
18746if test "x$ac_system" = "xSolaris"; then
18747
18748$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
18749
18750
18751$as_echo "#define _REENTRANT 1" >>confdefs.h
18752
18753
18754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler builds 64bit binaries" >&5
18755$as_echo_n "checking whether compiler builds 64bit binaries... " >&6; }
18756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18757/* end confdefs.h.  */
18758
18759
18760          #ifndef _LP64
18761          # error "Compiler not in 64bit mode."
18762          #endif
18763
18764
18765int
18766main ()
18767{
18768
18769  ;
18770  return 0;
18771}
18772
18773_ACEOF
18774if ac_fn_c_try_compile "$LINENO"; then :
18775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18776$as_echo "yes" >&6; }
18777else
18778
18779      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18780$as_echo "no" >&6; }
18781      { $as_echo "$as_me:${as_lineno-$LINENO}: Solaris detected. Please consider building a 64-bit binary." >&5
18782$as_echo "$as_me: Solaris detected. Please consider building a 64-bit binary." >&6;}
18783
18784
18785fi
18786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18787fi
18788
18789if test "x$ac_system" = "xAIX"; then
18790
18791$as_echo "#define _THREAD_SAFE_ERRNO 1" >>confdefs.h
18792
18793fi
18794
18795# Where to install .pc files.
18796pkgconfigdir="${libdir}/pkgconfig"
18797
18798
18799#
18800# Checks for header files.
18801#
18802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
18803$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
18804if ${ac_cv_header_sys_wait_h+:} false; then :
18805  $as_echo_n "(cached) " >&6
18806else
18807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18808/* end confdefs.h.  */
18809#include <sys/types.h>
18810#include <sys/wait.h>
18811#ifndef WEXITSTATUS
18812# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
18813#endif
18814#ifndef WIFEXITED
18815# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18816#endif
18817
18818int
18819main ()
18820{
18821  int s;
18822  wait (&s);
18823  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18824  ;
18825  return 0;
18826}
18827_ACEOF
18828if ac_fn_c_try_compile "$LINENO"; then :
18829  ac_cv_header_sys_wait_h=yes
18830else
18831  ac_cv_header_sys_wait_h=no
18832fi
18833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18834fi
18835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
18836$as_echo "$ac_cv_header_sys_wait_h" >&6; }
18837if test $ac_cv_header_sys_wait_h = yes; then
18838
18839$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
18840
18841fi
18842
18843ac_header_dirent=no
18844for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18845  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18847$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18848if eval \${$as_ac_Header+:} false; then :
18849  $as_echo_n "(cached) " >&6
18850else
18851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18852/* end confdefs.h.  */
18853#include <sys/types.h>
18854#include <$ac_hdr>
18855
18856int
18857main ()
18858{
18859if ((DIR *) 0)
18860return 0;
18861  ;
18862  return 0;
18863}
18864_ACEOF
18865if ac_fn_c_try_compile "$LINENO"; then :
18866  eval "$as_ac_Header=yes"
18867else
18868  eval "$as_ac_Header=no"
18869fi
18870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18871fi
18872eval ac_res=\$$as_ac_Header
18873	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18874$as_echo "$ac_res" >&6; }
18875if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18876  cat >>confdefs.h <<_ACEOF
18877#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18878_ACEOF
18879
18880ac_header_dirent=$ac_hdr; break
18881fi
18882
18883done
18884# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18885if test $ac_header_dirent = dirent.h; then
18886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18887$as_echo_n "checking for library containing opendir... " >&6; }
18888if ${ac_cv_search_opendir+:} false; then :
18889  $as_echo_n "(cached) " >&6
18890else
18891  ac_func_search_save_LIBS=$LIBS
18892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18893/* end confdefs.h.  */
18894
18895/* Override any GCC internal prototype to avoid an error.
18896   Use char because int might match the return type of a GCC
18897   builtin and then its argument prototype would still apply.  */
18898#ifdef __cplusplus
18899extern "C"
18900#endif
18901char opendir ();
18902int
18903main ()
18904{
18905return opendir ();
18906  ;
18907  return 0;
18908}
18909_ACEOF
18910for ac_lib in '' dir; do
18911  if test -z "$ac_lib"; then
18912    ac_res="none required"
18913  else
18914    ac_res=-l$ac_lib
18915    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18916  fi
18917  if ac_fn_c_try_link "$LINENO"; then :
18918  ac_cv_search_opendir=$ac_res
18919fi
18920rm -f core conftest.err conftest.$ac_objext \
18921    conftest$ac_exeext
18922  if ${ac_cv_search_opendir+:} false; then :
18923  break
18924fi
18925done
18926if ${ac_cv_search_opendir+:} false; then :
18927
18928else
18929  ac_cv_search_opendir=no
18930fi
18931rm conftest.$ac_ext
18932LIBS=$ac_func_search_save_LIBS
18933fi
18934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18935$as_echo "$ac_cv_search_opendir" >&6; }
18936ac_res=$ac_cv_search_opendir
18937if test "$ac_res" != no; then :
18938  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18939
18940fi
18941
18942else
18943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18944$as_echo_n "checking for library containing opendir... " >&6; }
18945if ${ac_cv_search_opendir+:} false; then :
18946  $as_echo_n "(cached) " >&6
18947else
18948  ac_func_search_save_LIBS=$LIBS
18949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18950/* end confdefs.h.  */
18951
18952/* Override any GCC internal prototype to avoid an error.
18953   Use char because int might match the return type of a GCC
18954   builtin and then its argument prototype would still apply.  */
18955#ifdef __cplusplus
18956extern "C"
18957#endif
18958char opendir ();
18959int
18960main ()
18961{
18962return opendir ();
18963  ;
18964  return 0;
18965}
18966_ACEOF
18967for ac_lib in '' x; do
18968  if test -z "$ac_lib"; then
18969    ac_res="none required"
18970  else
18971    ac_res=-l$ac_lib
18972    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18973  fi
18974  if ac_fn_c_try_link "$LINENO"; then :
18975  ac_cv_search_opendir=$ac_res
18976fi
18977rm -f core conftest.err conftest.$ac_objext \
18978    conftest$ac_exeext
18979  if ${ac_cv_search_opendir+:} false; then :
18980  break
18981fi
18982done
18983if ${ac_cv_search_opendir+:} false; then :
18984
18985else
18986  ac_cv_search_opendir=no
18987fi
18988rm conftest.$ac_ext
18989LIBS=$ac_func_search_save_LIBS
18990fi
18991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18992$as_echo "$ac_cv_search_opendir" >&6; }
18993ac_res=$ac_cv_search_opendir
18994if test "$ac_res" != no; then :
18995  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18996
18997fi
18998
18999fi
19000
19001
19002
19003
19004
19005  for ac_header in $ac_header_list
19006do :
19007  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19008ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19009"
19010if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19011  cat >>confdefs.h <<_ACEOF
19012#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19013_ACEOF
19014
19015fi
19016
19017done
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099if test "x$ac_system" = "xNetBSD"; then
19100  # For entropy plugin on newer NetBSD
19101  for ac_header in sys/rndio.h
19102do :
19103  ac_fn_c_check_header_compile "$LINENO" "sys/rndio.h" "ac_cv_header_sys_rndio_h" "
19104      #if HAVE_SYS_TYPES_H
19105      # include <sys/types.h>
19106      #endif
19107      #if HAVE_SYS_IOCTL_H
19108      # include <sys/ioctl.h>
19109      #endif
19110      #if HAVE_SYS_PARAM_H
19111      # include <sys/param.h>
19112      #endif
19113
19114
19115"
19116if test "x$ac_cv_header_sys_rndio_h" = xyes; then :
19117  cat >>confdefs.h <<_ACEOF
19118#define HAVE_SYS_RNDIO_H 1
19119_ACEOF
19120
19121fi
19122
19123done
19124
19125fi
19126
19127# For ping library
19128for ac_header in netinet/in_systm.h
19129do :
19130  ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "
19131    #include <stdint.h>
19132    #if HAVE_SYS_TYPES_H
19133    # include <sys/types.h>
19134    #endif
19135
19136
19137"
19138if test "x$ac_cv_header_netinet_in_systm_h" = xyes; then :
19139  cat >>confdefs.h <<_ACEOF
19140#define HAVE_NETINET_IN_SYSTM_H 1
19141_ACEOF
19142
19143fi
19144
19145done
19146
19147
19148for ac_header in netinet/in.h
19149do :
19150  ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "
19151    #include <stdint.h>
19152    #if HAVE_SYS_TYPES_H
19153    # include <sys/types.h>
19154    #endif
19155    #if HAVE_NETINET_IN_SYSTM_H
19156    # include <netinet/in_systm.h>
19157    #endif
19158
19159
19160"
19161if test "x$ac_cv_header_netinet_in_h" = xyes; then :
19162  cat >>confdefs.h <<_ACEOF
19163#define HAVE_NETINET_IN_H 1
19164_ACEOF
19165
19166fi
19167
19168done
19169
19170
19171for ac_header in netinet/ip.h
19172do :
19173  ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "
19174    #include <stdint.h>
19175    #if HAVE_SYS_TYPES_H
19176    # include <sys/types.h>
19177    #endif
19178    #if HAVE_NETINET_IN_SYSTM_H
19179    # include <netinet/in_systm.h>
19180    #endif
19181    #if HAVE_NETINET_IN_H
19182    # include <netinet/in.h>
19183    #endif
19184
19185
19186"
19187if test "x$ac_cv_header_netinet_ip_h" = xyes; then :
19188  cat >>confdefs.h <<_ACEOF
19189#define HAVE_NETINET_IP_H 1
19190_ACEOF
19191
19192fi
19193
19194done
19195
19196
19197for ac_header in netinet/ip_icmp.h
19198do :
19199  ac_fn_c_check_header_compile "$LINENO" "netinet/ip_icmp.h" "ac_cv_header_netinet_ip_icmp_h" "
19200    #include <stdint.h>
19201    #if HAVE_SYS_TYPES_H
19202    # include <sys/types.h>
19203    #endif
19204    #if HAVE_NETINET_IN_SYSTM_H
19205    # include <netinet/in_systm.h>
19206    #endif
19207    #if HAVE_NETINET_IN_H
19208    # include <netinet/in.h>
19209    #endif
19210    #if HAVE_NETINET_IP_H
19211    # include <netinet/ip.h>
19212    #endif
19213
19214
19215"
19216if test "x$ac_cv_header_netinet_ip_icmp_h" = xyes; then :
19217  cat >>confdefs.h <<_ACEOF
19218#define HAVE_NETINET_IP_ICMP_H 1
19219_ACEOF
19220
19221fi
19222
19223done
19224
19225
19226for ac_header in netinet/ip_var.h
19227do :
19228  ac_fn_c_check_header_compile "$LINENO" "netinet/ip_var.h" "ac_cv_header_netinet_ip_var_h" "
19229    #include <stdint.h>
19230    #if HAVE_SYS_TYPES_H
19231    # include <sys/types.h>
19232    #endif
19233    #if HAVE_NETINET_IN_SYSTM_H
19234    # include <netinet/in_systm.h>
19235    #endif
19236    #if HAVE_NETINET_IN_H
19237    # include <netinet/in.h>
19238    #endif
19239    #if HAVE_NETINET_IP_H
19240    # include <netinet/ip.h>
19241    #endif
19242
19243
19244"
19245if test "x$ac_cv_header_netinet_ip_var_h" = xyes; then :
19246  cat >>confdefs.h <<_ACEOF
19247#define HAVE_NETINET_IP_VAR_H 1
19248_ACEOF
19249
19250fi
19251
19252done
19253
19254
19255for ac_header in netinet/ip6.h
19256do :
19257  ac_fn_c_check_header_compile "$LINENO" "netinet/ip6.h" "ac_cv_header_netinet_ip6_h" "
19258    #include <stdint.h>
19259    #if HAVE_SYS_TYPES_H
19260    # include <sys/types.h>
19261    #endif
19262    #if HAVE_NETINET_IN_SYSTM_H
19263    # include <netinet/in_systm.h>
19264    #endif
19265    #if HAVE_NETINET_IN_H
19266    # include <netinet/in.h>
19267    #endif
19268
19269
19270"
19271if test "x$ac_cv_header_netinet_ip6_h" = xyes; then :
19272  cat >>confdefs.h <<_ACEOF
19273#define HAVE_NETINET_IP6_H 1
19274_ACEOF
19275
19276fi
19277
19278done
19279
19280
19281for ac_header in netinet/icmp6.h
19282do :
19283  ac_fn_c_check_header_compile "$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "
19284    #include <stdint.h>
19285    #if HAVE_SYS_TYPES_H
19286    # include <sys/types.h>
19287    #endif
19288    #if HAVE_NETINET_IN_SYSTM_H
19289    # include <netinet/in_systm.h>
19290    #endif
19291    #if HAVE_NETINET_IN_H
19292    # include <netinet/in.h>
19293    #endif
19294    #if HAVE_NETINET_IP6_H
19295    # include <netinet/ip6.h>
19296    #endif
19297
19298
19299"
19300if test "x$ac_cv_header_netinet_icmp6_h" = xyes; then :
19301  cat >>confdefs.h <<_ACEOF
19302#define HAVE_NETINET_ICMP6_H 1
19303_ACEOF
19304
19305fi
19306
19307done
19308
19309
19310for ac_header in netinet/tcp.h
19311do :
19312  ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "
19313    #include <stdint.h>
19314    #if HAVE_SYS_TYPES_H
19315    # include <sys/types.h>
19316    #endif
19317    #if HAVE_NETINET_IN_SYSTM_H
19318    # include <netinet/in_systm.h>
19319    #endif
19320    #if HAVE_NETINET_IN_H
19321    # include <netinet/in.h>
19322    #endif
19323    #if HAVE_NETINET_IP_H
19324    # include <netinet/ip.h>
19325    #endif
19326
19327
19328"
19329if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
19330  cat >>confdefs.h <<_ACEOF
19331#define HAVE_NETINET_TCP_H 1
19332_ACEOF
19333
19334fi
19335
19336done
19337
19338
19339for ac_header in netinet/udp.h
19340do :
19341  ac_fn_c_check_header_compile "$LINENO" "netinet/udp.h" "ac_cv_header_netinet_udp_h" "
19342    #include <stdint.h>
19343    #if HAVE_SYS_TYPES_H
19344    # include <sys/types.h>
19345    #endif
19346    #if HAVE_NETINET_IN_SYSTM_H
19347    # include <netinet/in_systm.h>
19348    #endif
19349    #if HAVE_NETINET_IN_H
19350    # include <netinet/in.h>
19351    #endif
19352    #if HAVE_NETINET_IP_H
19353    # include <netinet/ip.h>
19354    #endif
19355
19356
19357"
19358if test "x$ac_cv_header_netinet_udp_h" = xyes; then :
19359  cat >>confdefs.h <<_ACEOF
19360#define HAVE_NETINET_UDP_H 1
19361_ACEOF
19362
19363fi
19364
19365done
19366
19367
19368# For cpu modules
19369for ac_header in sys/dkstat.h
19370do :
19371  ac_fn_c_check_header_mongrel "$LINENO" "sys/dkstat.h" "ac_cv_header_sys_dkstat_h" "$ac_includes_default"
19372if test "x$ac_cv_header_sys_dkstat_h" = xyes; then :
19373  cat >>confdefs.h <<_ACEOF
19374#define HAVE_SYS_DKSTAT_H 1
19375_ACEOF
19376
19377fi
19378
19379done
19380
19381if test "x$ac_system" = "xDarwin"; then
19382  for ac_header in  \
19383      mach/mach_init.h \
19384      mach/host_priv.h \
19385      mach/mach_error.h \
19386      mach/mach_host.h \
19387      mach/mach_port.h \
19388      mach/mach_types.h \
19389      mach/message.h \
19390      mach/processor_set.h \
19391      mach/processor.h \
19392      mach/processor_info.h \
19393      mach/task.h \
19394      mach/thread_act.h \
19395      mach/vm_region.h \
19396      mach/vm_map.h \
19397      mach/vm_prot.h \
19398      mach/vm_statistics.h \
19399      mach/kern_return.h \
19400      CoreFoundation/CoreFoundation.h \
19401      IOKit/IOKitLib.h \
19402      IOKit/IOTypes.h \
19403      IOKit/ps/IOPSKeys.h \
19404      IOKit/IOBSD.h \
19405      IOKit/storage/IOBlockStorageDriver.h
19406
19407
19408do :
19409  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19410ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19411if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19412  cat >>confdefs.h <<_ACEOF
19413#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19414_ACEOF
19415
19416fi
19417
19418done
19419
19420
19421  # For the battery plugin
19422  for ac_header in IOKit/ps/IOPowerSources.h
19423do :
19424  ac_fn_c_check_header_compile "$LINENO" "IOKit/ps/IOPowerSources.h" "ac_cv_header_IOKit_ps_IOPowerSources_h" "
19425      #if HAVE_IOKIT_IOKITLIB_H
19426      #  include <IOKit/IOKitLib.h>
19427      #endif
19428      #if HAVE_IOKIT_IOTYPES_H
19429      #  include <IOKit/IOTypes.h>
19430      #endif
19431
19432
19433"
19434if test "x$ac_cv_header_IOKit_ps_IOPowerSources_h" = xyes; then :
19435  cat >>confdefs.h <<_ACEOF
19436#define HAVE_IOKIT_PS_IOPOWERSOURCES_H 1
19437_ACEOF
19438
19439fi
19440
19441done
19442
19443fi
19444
19445for ac_header in sys/sysctl.h
19446do :
19447  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
19448    #if HAVE_SYS_TYPES_H
19449    #  include <sys/types.h>
19450    #endif
19451    #if HAVE_SYS_PARAM_H
19452    # include <sys/param.h>
19453    #endif
19454
19455
19456"
19457if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
19458  cat >>confdefs.h <<_ACEOF
19459#define HAVE_SYS_SYSCTL_H 1
19460_ACEOF
19461
19462fi
19463
19464done
19465
19466
19467# For interface plugin
19468for ac_header in ifaddrs.h
19469do :
19470  ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
19471if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
19472  cat >>confdefs.h <<_ACEOF
19473#define HAVE_IFADDRS_H 1
19474_ACEOF
19475
19476fi
19477
19478done
19479
19480for ac_header in net/if.h
19481do :
19482  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
19483    #if HAVE_SYS_TYPES_H
19484    #  include <sys/types.h>
19485    #endif
19486    #if HAVE_SYS_SOCKET_H
19487    #  include <sys/socket.h>
19488    #endif
19489
19490
19491"
19492if test "x$ac_cv_header_net_if_h" = xyes; then :
19493  cat >>confdefs.h <<_ACEOF
19494#define HAVE_NET_IF_H 1
19495_ACEOF
19496
19497fi
19498
19499done
19500
19501
19502if test "x$ac_system" = "xLinux"; then
19503  # For hddtemp module
19504  for ac_header in linux/major.h
19505do :
19506  ac_fn_c_check_header_mongrel "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
19507if test "x$ac_cv_header_linux_major_h" = xyes; then :
19508  cat >>confdefs.h <<_ACEOF
19509#define HAVE_LINUX_MAJOR_H 1
19510_ACEOF
19511
19512fi
19513
19514done
19515
19516
19517  # For md module (Linux only)
19518  for ac_header in linux/raid/md_u.h
19519do :
19520  ac_fn_c_check_header_compile "$LINENO" "linux/raid/md_u.h" "ac_cv_header_linux_raid_md_u_h" "
19521      #include <sys/ioctl.h>
19522      #include <linux/major.h>
19523      #include <linux/types.h>
19524
19525
19526"
19527if test "x$ac_cv_header_linux_raid_md_u_h" = xyes; then :
19528  cat >>confdefs.h <<_ACEOF
19529#define HAVE_LINUX_RAID_MD_U_H 1
19530_ACEOF
19531 have_linux_raid_md_u_h="yes"
19532else
19533  have_linux_raid_md_u_h="no"
19534fi
19535
19536done
19537
19538  for ac_header in sys/sysmacros.h
19539do :
19540  ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
19541if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
19542  cat >>confdefs.h <<_ACEOF
19543#define HAVE_SYS_SYSMACROS_H 1
19544_ACEOF
19545
19546fi
19547
19548done
19549
19550
19551  for ac_header in linux/wireless.h
19552do :
19553  ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
19554      #include <dirent.h>
19555      #include <sys/ioctl.h>
19556      #include <sys/socket.h>
19557
19558
19559"
19560if test "x$ac_cv_header_linux_wireless_h" = xyes; then :
19561  cat >>confdefs.h <<_ACEOF
19562#define HAVE_LINUX_WIRELESS_H 1
19563_ACEOF
19564 have_linux_wireless_h="yes"
19565else
19566  have_linux_wireless_h="no"
19567fi
19568
19569done
19570
19571
19572  for ac_header in linux/if.h
19573do :
19574  ac_fn_c_check_header_compile "$LINENO" "linux/if.h" "ac_cv_header_linux_if_h" "
19575      #if HAVE_SYS_TYPES_H
19576      #  include <sys/types.h>
19577      #endif
19578      #if HAVE_SYS_SOCKET_H
19579      #  include <sys/socket.h>
19580      #endif
19581
19582
19583"
19584if test "x$ac_cv_header_linux_if_h" = xyes; then :
19585  cat >>confdefs.h <<_ACEOF
19586#define HAVE_LINUX_IF_H 1
19587_ACEOF
19588
19589fi
19590
19591done
19592
19593
19594  for ac_header in linux/inet_diag.h
19595do :
19596  ac_fn_c_check_header_compile "$LINENO" "linux/inet_diag.h" "ac_cv_header_linux_inet_diag_h" "
19597      #if HAVE_SYS_TYPES_H
19598      #  include <sys/types.h>
19599      #endif
19600      #if HAVE_SYS_SOCKET_H
19601      #  include <sys/socket.h>
19602      #endif
19603
19604
19605"
19606if test "x$ac_cv_header_linux_inet_diag_h" = xyes; then :
19607  cat >>confdefs.h <<_ACEOF
19608#define HAVE_LINUX_INET_DIAG_H 1
19609_ACEOF
19610
19611fi
19612
19613done
19614
19615
19616  for ac_header in linux/netdevice.h
19617do :
19618  ac_fn_c_check_header_compile "$LINENO" "linux/netdevice.h" "ac_cv_header_linux_netdevice_h" "
19619      #if HAVE_SYS_TYPES_H
19620      #  include <sys/types.h>
19621      #endif
19622      #if HAVE_SYS_SOCKET_H
19623      #  include <sys/socket.h>
19624      #endif
19625      #if HAVE_LINUX_IF_H
19626      # include <linux/if.h>
19627      #endif
19628
19629
19630"
19631if test "x$ac_cv_header_linux_netdevice_h" = xyes; then :
19632  cat >>confdefs.h <<_ACEOF
19633#define HAVE_LINUX_NETDEVICE_H 1
19634_ACEOF
19635
19636fi
19637
19638done
19639
19640
19641  # For ethstat module
19642  for ac_header in linux/sockios.h
19643do :
19644  ac_fn_c_check_header_compile "$LINENO" "linux/sockios.h" "ac_cv_header_linux_sockios_h" "
19645      #if HAVE_SYS_IOCTL_H
19646      # include <sys/ioctl.h>
19647      #endif
19648      #if HAVE_NET_IF_H
19649      # include <net/if.h>
19650      #endif
19651
19652
19653"
19654if test "x$ac_cv_header_linux_sockios_h" = xyes; then :
19655  cat >>confdefs.h <<_ACEOF
19656#define HAVE_LINUX_SOCKIOS_H 1
19657_ACEOF
19658 have_linux_sockios_h="yes"
19659else
19660  have_linux_sockios_h="no"
19661fi
19662
19663done
19664
19665
19666  for ac_header in linux/ethtool.h
19667do :
19668  ac_fn_c_check_header_compile "$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
19669      #if HAVE_SYS_IOCTL_H
19670      # include <sys/ioctl.h>
19671      #endif
19672      #if HAVE_NET_IF_H
19673      # include <net/if.h>
19674      #endif
19675      #if HAVE_LINUX_SOCKIOS_H
19676      # include <linux/sockios.h>
19677      #endif
19678
19679
19680"
19681if test "x$ac_cv_header_linux_ethtool_h" = xyes; then :
19682  cat >>confdefs.h <<_ACEOF
19683#define HAVE_LINUX_ETHTOOL_H 1
19684_ACEOF
19685 have_linux_ethtool_h="yes"
19686else
19687  have_linux_ethtool_h="no"
19688fi
19689
19690done
19691
19692
19693  # For ipvs module
19694
19695
19696
19697
19698  # For the email plugin
19699  for ac_header in linux/un.h
19700do :
19701  ac_fn_c_check_header_compile "$LINENO" "linux/un.h" "ac_cv_header_linux_un_h" "
19702      #if HAVE_SYS_SOCKET_H
19703      #  include <sys/socket.h>
19704      #endif
19705
19706
19707"
19708if test "x$ac_cv_header_linux_un_h" = xyes; then :
19709  cat >>confdefs.h <<_ACEOF
19710#define HAVE_LINUX_UN_H 1
19711_ACEOF
19712
19713fi
19714
19715done
19716
19717  # For the turbostat plugin
19718  for ac_header in cpuid.h
19719do :
19720  ac_fn_c_check_header_mongrel "$LINENO" "cpuid.h" "ac_cv_header_cpuid_h" "$ac_includes_default"
19721if test "x$ac_cv_header_cpuid_h" = xyes; then :
19722  cat >>confdefs.h <<_ACEOF
19723#define HAVE_CPUID_H 1
19724_ACEOF
19725 have_cpuid_h="yes"
19726else
19727  have_cpuid_h="no (cpuid.h not found)"
19728
19729fi
19730
19731done
19732
19733
19734  for ac_header in sys/capability.h
19735do :
19736  ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
19737if test "x$ac_cv_header_sys_capability_h" = xyes; then :
19738  cat >>confdefs.h <<_ACEOF
19739#define HAVE_SYS_CAPABILITY_H 1
19740_ACEOF
19741 have_capability="yes"
19742else
19743  have_capability="no (<sys/capability.h> not found)"
19744
19745fi
19746
19747done
19748
19749
19750  if test "x$have_capability" = "xyes"; then
19751    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5
19752$as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
19753if ${ac_cv_lib_cap_cap_get_proc+:} false; then :
19754  $as_echo_n "(cached) " >&6
19755else
19756  ac_check_lib_save_LIBS=$LIBS
19757LIBS="-lcap  $LIBS"
19758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19759/* end confdefs.h.  */
19760
19761/* Override any GCC internal prototype to avoid an error.
19762   Use char because int might match the return type of a GCC
19763   builtin and then its argument prototype would still apply.  */
19764#ifdef __cplusplus
19765extern "C"
19766#endif
19767char cap_get_proc ();
19768int
19769main ()
19770{
19771return cap_get_proc ();
19772  ;
19773  return 0;
19774}
19775_ACEOF
19776if ac_fn_c_try_link "$LINENO"; then :
19777  ac_cv_lib_cap_cap_get_proc=yes
19778else
19779  ac_cv_lib_cap_cap_get_proc=no
19780fi
19781rm -f core conftest.err conftest.$ac_objext \
19782    conftest$ac_exeext conftest.$ac_ext
19783LIBS=$ac_check_lib_save_LIBS
19784fi
19785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_get_proc" >&5
19786$as_echo "$ac_cv_lib_cap_cap_get_proc" >&6; }
19787if test "x$ac_cv_lib_cap_cap_get_proc" = xyes; then :
19788  have_capability="yes"
19789else
19790  have_capability="no (cap_get_proc() not found)"
19791
19792fi
19793
19794  fi
19795
19796  if test "x$have_capability" = "xyes"; then
19797    ac_fn_c_check_decl "$LINENO" "CAP_IS_SUPPORTED" "ac_cv_have_decl_CAP_IS_SUPPORTED" "#include <sys/capability.h>
19798
19799"
19800if test "x$ac_cv_have_decl_CAP_IS_SUPPORTED" = xyes; then :
19801  have_capability="yes"
19802else
19803  have_capability="no (CAP_IS_SUPPORTED not found)"
19804fi
19805
19806  fi
19807
19808  if test "x$have_capability" = "xyes"; then
19809
19810$as_echo "#define HAVE_CAPABILITY 1" >>confdefs.h
19811
19812  fi
19813
19814  # For pcie_errors plugin
19815  for ac_header in linux/pci_regs.h
19816do :
19817  ac_fn_c_check_header_mongrel "$LINENO" "linux/pci_regs.h" "ac_cv_header_linux_pci_regs_h" "$ac_includes_default"
19818if test "x$ac_cv_header_linux_pci_regs_h" = xyes; then :
19819  cat >>confdefs.h <<_ACEOF
19820#define HAVE_LINUX_PCI_REGS_H 1
19821_ACEOF
19822 have_pci_regs_h="yes"
19823else
19824  have_pci_regs_h="no (linux/pci_regs.h not found)"
19825
19826fi
19827
19828done
19829
19830
19831else
19832  have_linux_raid_md_u_h="no"
19833  have_linux_wireless_h="no"
19834fi
19835
19836 if test "x$have_capability" = "xyes"; then
19837  BUILD_WITH_CAPABILITY_TRUE=
19838  BUILD_WITH_CAPABILITY_FALSE='#'
19839else
19840  BUILD_WITH_CAPABILITY_TRUE='#'
19841  BUILD_WITH_CAPABILITY_FALSE=
19842fi
19843
19844
19845# For the swap module
19846have_sys_swap_h="yes"
19847for ac_header in sys/swap.h vm/anon.h
19848do :
19849  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19850ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
19851    #undef _FILE_OFFSET_BITS
19852    #undef _LARGEFILE64_SOURCE
19853    #if HAVE_SYS_TYPES_H
19854    #  include <sys/types.h>
19855    #endif
19856    #if HAVE_SYS_PARAM_H
19857    # include <sys/param.h>
19858    #endif
19859
19860
19861"
19862if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19863  cat >>confdefs.h <<_ACEOF
19864#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19865_ACEOF
19866
19867else
19868  have_sys_swap_h="no"
19869fi
19870
19871done
19872
19873
19874# For load module
19875# For the processes plugin
19876# For users module
19877for ac_header in sys/loadavg.h linux/config.h utmp.h utmpx.h
19878do :
19879  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19880ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19881if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19882  cat >>confdefs.h <<_ACEOF
19883#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19884_ACEOF
19885
19886fi
19887
19888done
19889
19890
19891# For quota module
19892for ac_header in sys/ucred.h
19893do :
19894  ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "
19895    #if HAVE_SYS_TYPES_H
19896    #  include <sys/types.h>
19897    #endif
19898    #if HAVE_SYS_PARAM_H
19899    # include <sys/param.h>
19900    #endif
19901
19902
19903"
19904if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
19905  cat >>confdefs.h <<_ACEOF
19906#define HAVE_SYS_UCRED_H 1
19907_ACEOF
19908
19909fi
19910
19911done
19912
19913
19914# For mount interface
19915for ac_header in sys/mount.h
19916do :
19917  ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
19918    #if HAVE_SYS_TYPES_H
19919    #  include <sys/types.h>
19920    #endif
19921    #if HAVE_SYS_PARAM_H
19922    # include <sys/param.h>
19923    #endif
19924
19925
19926"
19927if test "x$ac_cv_header_sys_mount_h" = xyes; then :
19928  cat >>confdefs.h <<_ACEOF
19929#define HAVE_SYS_MOUNT_H 1
19930_ACEOF
19931
19932fi
19933
19934done
19935
19936
19937# --enable-xfs {{{
19938# Check whether --enable-xfs was given.
19939if test "${enable_xfs+set}" = set; then :
19940  enableval=$enable_xfs;
19941else
19942  enable_xfs="auto"
19943
19944fi
19945
19946
19947if test "x$enable_xfs" != "xno"; then
19948  for ac_header in xfs/xqm.h
19949do :
19950  ac_fn_c_check_header_compile "$LINENO" "xfs/xqm.h" "ac_cv_header_xfs_xqm_h" "#define _GNU_SOURCE
19951
19952"
19953if test "x$ac_cv_header_xfs_xqm_h" = xyes; then :
19954  cat >>confdefs.h <<_ACEOF
19955#define HAVE_XFS_XQM_H 1
19956_ACEOF
19957
19958else
19959
19960      if test "x$enable_xfs" = "xyes"; then
19961        as_fn_error $? "xfs/xqm.h not found" "$LINENO" 5
19962      fi
19963
19964fi
19965
19966done
19967
19968fi
19969
19970# }}}
19971
19972for ac_header in net/if_arp.h
19973do :
19974  ac_fn_c_check_header_compile "$LINENO" "net/if_arp.h" "ac_cv_header_net_if_arp_h" "
19975    #if HAVE_SYS_SOCKET_H
19976    # include <sys/socket.h>
19977    #endif
19978
19979
19980"
19981if test "x$ac_cv_header_net_if_arp_h" = xyes; then :
19982  cat >>confdefs.h <<_ACEOF
19983#define HAVE_NET_IF_ARP_H 1
19984_ACEOF
19985
19986fi
19987
19988done
19989
19990
19991for ac_header in net/ppp_defs.h
19992do :
19993  ac_fn_c_check_header_mongrel "$LINENO" "net/ppp_defs.h" "ac_cv_header_net_ppp_defs_h" "$ac_includes_default"
19994if test "x$ac_cv_header_net_ppp_defs_h" = xyes; then :
19995  cat >>confdefs.h <<_ACEOF
19996#define HAVE_NET_PPP_DEFS_H 1
19997_ACEOF
19998
19999fi
20000
20001done
20002
20003for ac_header in net/if_ppp.h
20004do :
20005  ac_fn_c_check_header_compile "$LINENO" "net/if_ppp.h" "ac_cv_header_net_if_ppp_h" "
20006    #if HAVE_NET_PPP_DEFS_H
20007    # include <net/ppp_defs.h>
20008    #endif
20009
20010
20011"
20012if test "x$ac_cv_header_net_if_ppp_h" = xyes; then :
20013  cat >>confdefs.h <<_ACEOF
20014#define HAVE_NET_IF_PPP_H 1
20015_ACEOF
20016
20017fi
20018
20019done
20020
20021
20022for ac_header in netinet/if_ether.h
20023do :
20024  ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "
20025    #include <stdint.h>
20026    #if HAVE_SYS_TYPES_H
20027    # include <sys/types.h>
20028    #endif
20029    #if HAVE_SYS_SOCKET_H
20030    # include <sys/socket.h>
20031    #endif
20032    #if HAVE_NET_IF_H
20033    # include <net/if.h>
20034    #endif
20035    #if HAVE_NETINET_IN_H
20036    # include <netinet/in.h>
20037    #endif
20038
20039
20040"
20041if test "x$ac_cv_header_netinet_if_ether_h" = xyes; then :
20042  cat >>confdefs.h <<_ACEOF
20043#define HAVE_NETINET_IF_ETHER_H 1
20044_ACEOF
20045
20046fi
20047
20048done
20049
20050
20051for ac_header in net/pfvar.h
20052do :
20053  ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "
20054    #if HAVE_SYS_IOCTL_H
20055    # include <sys/ioctl.h>
20056    #endif
20057    #if HAVE_SYS_SOCKET_H
20058    # include <sys/socket.h>
20059    #endif
20060    #if HAVE_NET_IF_H
20061    # include <net/if.h>
20062    #endif
20063    #if HAVE_NETINET_IN_H
20064    # include <netinet/in.h>
20065    #endif
20066
20067
20068"
20069if test "x$ac_cv_header_net_pfvar_h" = xyes; then :
20070  cat >>confdefs.h <<_ACEOF
20071#define HAVE_NET_PFVAR_H 1
20072_ACEOF
20073 have_net_pfvar_h="yes"
20074else
20075  have_net_pfvar_h="no"
20076fi
20077
20078done
20079
20080
20081# For the multimeter plugin
20082for ac_header in termios.h
20083do :
20084  ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
20085if test "x$ac_cv_header_termios_h" = xyes; then :
20086  cat >>confdefs.h <<_ACEOF
20087#define HAVE_TERMIOS_H 1
20088_ACEOF
20089 have_termios_h="yes"
20090else
20091  have_termios_h="no"
20092
20093fi
20094
20095done
20096
20097
20098# For cpusleep plugin
20099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_boottime and clock_monotonic are supported" >&5
20100$as_echo_n "checking whether clock_boottime and clock_monotonic are supported... " >&6; }
20101if ${c_cv_have_clock_boottime_monotonic+:} false; then :
20102  $as_echo_n "(cached) " >&6
20103else
20104
20105    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20106/* end confdefs.h.  */
20107#include <time.h>
20108int
20109main ()
20110{
20111
20112          struct timespec b, m;
20113          clock_gettime(CLOCK_BOOTTIME, &b );
20114          clock_gettime(CLOCK_MONOTONIC, &m );
20115
20116
20117  ;
20118  return 0;
20119}
20120
20121_ACEOF
20122if ac_fn_c_try_compile "$LINENO"; then :
20123  c_cv_have_clock_boottime_monotonic="yes"
20124else
20125  c_cv_have_clock_boottime_monotonic="no"
20126
20127fi
20128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129
20130
20131fi
20132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_clock_boottime_monotonic" >&5
20133$as_echo "$c_cv_have_clock_boottime_monotonic" >&6; }
20134
20135
20136#
20137# Checks for typedefs, structures, and compiler characteristics.
20138#
20139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20140$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20141if ${ac_cv_c_const+:} false; then :
20142  $as_echo_n "(cached) " >&6
20143else
20144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20145/* end confdefs.h.  */
20146
20147int
20148main ()
20149{
20150
20151#ifndef __cplusplus
20152  /* Ultrix mips cc rejects this sort of thing.  */
20153  typedef int charset[2];
20154  const charset cs = { 0, 0 };
20155  /* SunOS 4.1.1 cc rejects this.  */
20156  char const *const *pcpcc;
20157  char **ppc;
20158  /* NEC SVR4.0.2 mips cc rejects this.  */
20159  struct point {int x, y;};
20160  static struct point const zero = {0,0};
20161  /* AIX XL C 1.02.0.0 rejects this.
20162     It does not let you subtract one const X* pointer from another in
20163     an arm of an if-expression whose if-part is not a constant
20164     expression */
20165  const char *g = "string";
20166  pcpcc = &g + (g ? g-g : 0);
20167  /* HPUX 7.0 cc rejects these. */
20168  ++pcpcc;
20169  ppc = (char**) pcpcc;
20170  pcpcc = (char const *const *) ppc;
20171  { /* SCO 3.2v4 cc rejects this sort of thing.  */
20172    char tx;
20173    char *t = &tx;
20174    char const *s = 0 ? (char *) 0 : (char const *) 0;
20175
20176    *t++ = 0;
20177    if (s) return 0;
20178  }
20179  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20180    int x[] = {25, 17};
20181    const int *foo = &x[0];
20182    ++foo;
20183  }
20184  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20185    typedef const int *iptr;
20186    iptr p = 0;
20187    ++p;
20188  }
20189  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20190       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20191    struct s { int j; const int *ap[3]; } bx;
20192    struct s *b = &bx; b->j = 5;
20193  }
20194  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20195    const int foo = 10;
20196    if (!foo) return 0;
20197  }
20198  return !cs[0] && !zero.x;
20199#endif
20200
20201  ;
20202  return 0;
20203}
20204_ACEOF
20205if ac_fn_c_try_compile "$LINENO"; then :
20206  ac_cv_c_const=yes
20207else
20208  ac_cv_c_const=no
20209fi
20210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20211fi
20212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20213$as_echo "$ac_cv_c_const" >&6; }
20214if test $ac_cv_c_const = no; then
20215
20216$as_echo "#define const /**/" >>confdefs.h
20217
20218fi
20219
20220ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20221if test "x$ac_cv_type_pid_t" = xyes; then :
20222
20223else
20224
20225cat >>confdefs.h <<_ACEOF
20226#define pid_t int
20227_ACEOF
20228
20229fi
20230
20231ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20232if test "x$ac_cv_type_size_t" = xyes; then :
20233
20234else
20235
20236cat >>confdefs.h <<_ACEOF
20237#define size_t unsigned int
20238_ACEOF
20239
20240fi
20241
20242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20243$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20244if ${ac_cv_type_uid_t+:} false; then :
20245  $as_echo_n "(cached) " >&6
20246else
20247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20248/* end confdefs.h.  */
20249#include <sys/types.h>
20250
20251_ACEOF
20252if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20253  $EGREP "uid_t" >/dev/null 2>&1; then :
20254  ac_cv_type_uid_t=yes
20255else
20256  ac_cv_type_uid_t=no
20257fi
20258rm -f conftest*
20259
20260fi
20261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20262$as_echo "$ac_cv_type_uid_t" >&6; }
20263if test $ac_cv_type_uid_t = no; then
20264
20265$as_echo "#define uid_t int" >>confdefs.h
20266
20267
20268$as_echo "#define gid_t int" >>confdefs.h
20269
20270fi
20271
20272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20273$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20274if ${ac_cv_header_time+:} false; then :
20275  $as_echo_n "(cached) " >&6
20276else
20277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20278/* end confdefs.h.  */
20279#include <sys/types.h>
20280#include <sys/time.h>
20281#include <time.h>
20282
20283int
20284main ()
20285{
20286if ((struct tm *) 0)
20287return 0;
20288  ;
20289  return 0;
20290}
20291_ACEOF
20292if ac_fn_c_try_compile "$LINENO"; then :
20293  ac_cv_header_time=yes
20294else
20295  ac_cv_header_time=no
20296fi
20297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20298fi
20299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20300$as_echo "$ac_cv_header_time" >&6; }
20301if test $ac_cv_header_time = yes; then
20302
20303$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20304
20305fi
20306
20307
20308test_cxx_flags() {
20309  ac_ext=cpp
20310ac_cpp='$CXXCPP $CPPFLAGS'
20311ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20312ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20313ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20314
20315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20316/* end confdefs.h.  */
20317int main(void){}
20318
20319_ACEOF
20320  $CXX -c conftest.cpp $CXXFLAGS $@ > /dev/null 2> /dev/null
20321  ret=$?
20322  rm -f conftest.o
20323  ac_ext=c
20324ac_cpp='$CPP $CPPFLAGS'
20325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20327ac_compiler_gnu=$ac_cv_c_compiler_gnu
20328
20329  return $ret
20330}
20331
20332#
20333# Checks for library functions.
20334#
20335
20336
20337
20338  for ac_func in $ac_func_list
20339do :
20340  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20341ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20342if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20343  cat >>confdefs.h <<_ACEOF
20344#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20345_ACEOF
20346
20347fi
20348done
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
20367if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
20368  ac_have_decl=1
20369else
20370  ac_have_decl=0
20371fi
20372
20373cat >>confdefs.h <<_ACEOF
20374#define HAVE_DECL_STRERROR_R $ac_have_decl
20375_ACEOF
20376
20377for ac_func in strerror_r
20378do :
20379  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
20380if test "x$ac_cv_func_strerror_r" = xyes; then :
20381  cat >>confdefs.h <<_ACEOF
20382#define HAVE_STRERROR_R 1
20383_ACEOF
20384
20385fi
20386done
20387
20388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
20389$as_echo_n "checking whether strerror_r returns char *... " >&6; }
20390if ${ac_cv_func_strerror_r_char_p+:} false; then :
20391  $as_echo_n "(cached) " >&6
20392else
20393
20394    ac_cv_func_strerror_r_char_p=no
20395    if test $ac_cv_have_decl_strerror_r = yes; then
20396      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20397/* end confdefs.h.  */
20398$ac_includes_default
20399int
20400main ()
20401{
20402
20403	  char buf[100];
20404	  char x = *strerror_r (0, buf, sizeof buf);
20405	  char *p = strerror_r (0, buf, sizeof buf);
20406	  return !p || x;
20407
20408  ;
20409  return 0;
20410}
20411_ACEOF
20412if ac_fn_c_try_compile "$LINENO"; then :
20413  ac_cv_func_strerror_r_char_p=yes
20414fi
20415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20416    else
20417      # strerror_r is not declared.  Choose between
20418      # systems that have relatively inaccessible declarations for the
20419      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
20420      # former has a strerror_r that returns char*, while the latter
20421      # has a strerror_r that returns `int'.
20422      # This test should segfault on the DEC system.
20423      if test "$cross_compiling" = yes; then :
20424  :
20425else
20426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20427/* end confdefs.h.  */
20428$ac_includes_default
20429	extern char *strerror_r ();
20430int
20431main ()
20432{
20433char buf[100];
20434	  char x = *strerror_r (0, buf, sizeof buf);
20435	  return ! isalpha (x);
20436  ;
20437  return 0;
20438}
20439_ACEOF
20440if ac_fn_c_try_run "$LINENO"; then :
20441  ac_cv_func_strerror_r_char_p=yes
20442fi
20443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20444  conftest.$ac_objext conftest.beam conftest.$ac_ext
20445fi
20446
20447    fi
20448
20449fi
20450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
20451$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
20452if test $ac_cv_func_strerror_r_char_p = yes; then
20453
20454$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
20455
20456fi
20457
20458
20459if test "x$GCC" = "xyes"; then
20460  SAVE_CFLAGS="$CFLAGS"
20461  CFLAGS="$CFLAGS -Wall -Werror"
20462fi
20463SAVE_LDFLAGS="$LDFLAGS"
20464LDFLAGS=""
20465if test "x$ac_system" = "xWindows"; then
20466  # This is exported from build.sh
20467  LDFLAGS="$LDFLAGS -L${GNULIB_DIR}"
20468fi
20469
20470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtok_r" >&5
20471$as_echo_n "checking for strtok_r... " >&6; }
20472if ${c_cv_have_strtok_r_default+:} false; then :
20473  $as_echo_n "(cached) " >&6
20474else
20475
20476    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20477/* end confdefs.h.  */
20478
20479
20480            #include <stdlib.h>
20481            #include <stdio.h>
20482            #include <string.h>
20483
20484int
20485main ()
20486{
20487
20488            char buffer[] = "foo,bar,baz";
20489            char *token;
20490            char *dummy;
20491            char *saveptr;
20492
20493            dummy = buffer;
20494            saveptr = NULL;
20495            while ((token = strtok_r (dummy, ",", &saveptr)) != NULL)
20496            {
20497              dummy = NULL;
20498              printf ("token = %s;\n", token);
20499            }
20500
20501
20502  ;
20503  return 0;
20504}
20505
20506_ACEOF
20507if ac_fn_c_try_link "$LINENO"; then :
20508  c_cv_have_strtok_r_default="yes"
20509else
20510  c_cv_have_strtok_r_default="no"
20511
20512fi
20513rm -f core conftest.err conftest.$ac_objext \
20514    conftest$ac_exeext conftest.$ac_ext
20515
20516
20517fi
20518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_strtok_r_default" >&5
20519$as_echo "$c_cv_have_strtok_r_default" >&6; }
20520
20521if test "x$c_cv_have_strtok_r_default" = "xno"; then
20522  CFLAGS="$CFLAGS -D_REENTRANT=1"
20523
20524  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r needs _REENTRANT" >&5
20525$as_echo_n "checking if strtok_r needs _REENTRANT... " >&6; }
20526if ${c_cv_have_strtok_r_reentrant+:} false; then :
20527  $as_echo_n "(cached) " >&6
20528else
20529
20530      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20531/* end confdefs.h.  */
20532
20533
20534              #include <stdlib.h>
20535              #include <stdio.h>
20536              #include <string.h>
20537
20538int
20539main ()
20540{
20541
20542              char buffer[] = "foo,bar,baz";
20543              char *token;
20544              char *dummy;
20545              char *saveptr;
20546
20547              dummy = buffer;
20548              saveptr = NULL;
20549              while ((token = strtok_r (dummy, ",", &saveptr)) != NULL)
20550              {
20551                dummy = NULL;
20552                printf ("token = %s;\n", token);
20553              }
20554
20555
20556  ;
20557  return 0;
20558}
20559
20560_ACEOF
20561if ac_fn_c_try_link "$LINENO"; then :
20562  c_cv_have_strtok_r_reentrant="yes"
20563else
20564  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20566as_fn_error $? "strtok_r is not available. Please file a bugreport!
20567See \`config.log' for more details" "$LINENO" 5; }
20568
20569fi
20570rm -f core conftest.err conftest.$ac_objext \
20571    conftest$ac_exeext conftest.$ac_ext
20572
20573
20574fi
20575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_strtok_r_reentrant" >&5
20576$as_echo "$c_cv_have_strtok_r_reentrant" >&6; }
20577fi
20578
20579CFLAGS="$SAVE_CFLAGS"
20580LDFLAGS="$SAVE_LDFLAGS"
20581if test "x$c_cv_have_strtok_r_reentrant" = "xyes"; then
20582  CFLAGS="$CFLAGS -D_REENTRANT=1"
20583fi
20584
20585for ac_func in socket
20586do :
20587  ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
20588if test "x$ac_cv_func_socket" = xyes; then :
20589  cat >>confdefs.h <<_ACEOF
20590#define HAVE_SOCKET 1
20591_ACEOF
20592
20593else
20594
20595    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
20596$as_echo_n "checking for socket in -lsocket... " >&6; }
20597if ${ac_cv_lib_socket_socket+:} false; then :
20598  $as_echo_n "(cached) " >&6
20599else
20600  ac_check_lib_save_LIBS=$LIBS
20601LIBS="-lsocket  $LIBS"
20602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20603/* end confdefs.h.  */
20604
20605/* Override any GCC internal prototype to avoid an error.
20606   Use char because int might match the return type of a GCC
20607   builtin and then its argument prototype would still apply.  */
20608#ifdef __cplusplus
20609extern "C"
20610#endif
20611char socket ();
20612int
20613main ()
20614{
20615return socket ();
20616  ;
20617  return 0;
20618}
20619_ACEOF
20620if ac_fn_c_try_link "$LINENO"; then :
20621  ac_cv_lib_socket_socket=yes
20622else
20623  ac_cv_lib_socket_socket=no
20624fi
20625rm -f core conftest.err conftest.$ac_objext \
20626    conftest$ac_exeext conftest.$ac_ext
20627LIBS=$ac_check_lib_save_LIBS
20628fi
20629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
20630$as_echo "$ac_cv_lib_socket_socket" >&6; }
20631if test "x$ac_cv_lib_socket_socket" = xyes; then :
20632  socket_needs_socket="yes"
20633else
20634
20635        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpl_socket in -lgnu" >&5
20636$as_echo_n "checking for rpl_socket in -lgnu... " >&6; }
20637if ${ac_cv_lib_gnu_rpl_socket+:} false; then :
20638  $as_echo_n "(cached) " >&6
20639else
20640  ac_check_lib_save_LIBS=$LIBS
20641LIBS="-lgnu  $LIBS"
20642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20643/* end confdefs.h.  */
20644
20645/* Override any GCC internal prototype to avoid an error.
20646   Use char because int might match the return type of a GCC
20647   builtin and then its argument prototype would still apply.  */
20648#ifdef __cplusplus
20649extern "C"
20650#endif
20651char rpl_socket ();
20652int
20653main ()
20654{
20655return rpl_socket ();
20656  ;
20657  return 0;
20658}
20659_ACEOF
20660if ac_fn_c_try_link "$LINENO"; then :
20661  ac_cv_lib_gnu_rpl_socket=yes
20662else
20663  ac_cv_lib_gnu_rpl_socket=no
20664fi
20665rm -f core conftest.err conftest.$ac_objext \
20666    conftest$ac_exeext conftest.$ac_ext
20667LIBS=$ac_check_lib_save_LIBS
20668fi
20669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnu_rpl_socket" >&5
20670$as_echo "$ac_cv_lib_gnu_rpl_socket" >&6; }
20671if test "x$ac_cv_lib_gnu_rpl_socket" = xyes; then :
20672  socket_needs_gnulib="yes"
20673else
20674  as_fn_error $? "cannot find socket() in libsocket" "$LINENO" 5
20675
20676fi
20677
20678
20679
20680fi
20681
20682
20683
20684fi
20685done
20686
20687 if test "x$socket_needs_socket" = "xyes"; then
20688  BUILD_WITH_LIBSOCKET_TRUE=
20689  BUILD_WITH_LIBSOCKET_FALSE='#'
20690else
20691  BUILD_WITH_LIBSOCKET_TRUE='#'
20692  BUILD_WITH_LIBSOCKET_FALSE=
20693fi
20694
20695 if test "x$socket_needs_gnulib" = "xyes"; then
20696  BUILD_WITH_GNULIB_TRUE=
20697  BUILD_WITH_GNULIB_FALSE='#'
20698else
20699  BUILD_WITH_GNULIB_TRUE='#'
20700  BUILD_WITH_GNULIB_FALSE=
20701fi
20702
20703
20704for ac_func in inet_ntop
20705do :
20706  ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
20707if test "x$ac_cv_func_inet_ntop" = xyes; then :
20708  cat >>confdefs.h <<_ACEOF
20709#define HAVE_INET_NTOP 1
20710_ACEOF
20711
20712else
20713
20714    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -lnsl" >&5
20715$as_echo_n "checking for inet_ntop in -lnsl... " >&6; }
20716if ${ac_cv_lib_nsl_inet_ntop+:} false; then :
20717  $as_echo_n "(cached) " >&6
20718else
20719  ac_check_lib_save_LIBS=$LIBS
20720LIBS="-lnsl  $LIBS"
20721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20722/* end confdefs.h.  */
20723
20724/* Override any GCC internal prototype to avoid an error.
20725   Use char because int might match the return type of a GCC
20726   builtin and then its argument prototype would still apply.  */
20727#ifdef __cplusplus
20728extern "C"
20729#endif
20730char inet_ntop ();
20731int
20732main ()
20733{
20734return inet_ntop ();
20735  ;
20736  return 0;
20737}
20738_ACEOF
20739if ac_fn_c_try_link "$LINENO"; then :
20740  ac_cv_lib_nsl_inet_ntop=yes
20741else
20742  ac_cv_lib_nsl_inet_ntop=no
20743fi
20744rm -f core conftest.err conftest.$ac_objext \
20745    conftest$ac_exeext conftest.$ac_ext
20746LIBS=$ac_check_lib_save_LIBS
20747fi
20748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntop" >&5
20749$as_echo "$ac_cv_lib_nsl_inet_ntop" >&6; }
20750if test "x$ac_cv_lib_nsl_inet_ntop" = xyes; then :
20751  inet_ntop_needs_nsl="yes"
20752else
20753  as_fn_error $? "cannot find inet_ntop() in libnsl" "$LINENO" 5
20754
20755fi
20756
20757
20758
20759fi
20760done
20761
20762 if test "x$inet_ntop_needs_nsl" = "xyes"; then
20763  BUILD_WITH_LIBNSL_TRUE=
20764  BUILD_WITH_LIBNSL_FALSE='#'
20765else
20766  BUILD_WITH_LIBNSL_TRUE='#'
20767  BUILD_WITH_LIBNSL_FALSE=
20768fi
20769
20770
20771clock_gettime_needs_posix4="no"
20772for ac_func in clock_gettime
20773do :
20774  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
20775if test "x$ac_cv_func_clock_gettime" = xyes; then :
20776  cat >>confdefs.h <<_ACEOF
20777#define HAVE_CLOCK_GETTIME 1
20778_ACEOF
20779 have_clock_gettime="yes"
20780else
20781  have_clock_gettime="no"
20782
20783fi
20784done
20785
20786
20787if test "x$have_clock_gettime" = "xno"; then
20788  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
20789$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
20790if ${ac_cv_lib_rt_clock_gettime+:} false; then :
20791  $as_echo_n "(cached) " >&6
20792else
20793  ac_check_lib_save_LIBS=$LIBS
20794LIBS="-lrt  $LIBS"
20795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20796/* end confdefs.h.  */
20797
20798/* Override any GCC internal prototype to avoid an error.
20799   Use char because int might match the return type of a GCC
20800   builtin and then its argument prototype would still apply.  */
20801#ifdef __cplusplus
20802extern "C"
20803#endif
20804char clock_gettime ();
20805int
20806main ()
20807{
20808return clock_gettime ();
20809  ;
20810  return 0;
20811}
20812_ACEOF
20813if ac_fn_c_try_link "$LINENO"; then :
20814  ac_cv_lib_rt_clock_gettime=yes
20815else
20816  ac_cv_lib_rt_clock_gettime=no
20817fi
20818rm -f core conftest.err conftest.$ac_objext \
20819    conftest$ac_exeext conftest.$ac_ext
20820LIBS=$ac_check_lib_save_LIBS
20821fi
20822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
20823$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
20824if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
20825
20826      clock_gettime_needs_rt="yes"
20827      have_clock_gettime="yes"
20828
20829
20830fi
20831
20832fi
20833
20834if test "x$have_clock_gettime" = "xno"; then
20835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lposix4" >&5
20836$as_echo_n "checking for clock_gettime in -lposix4... " >&6; }
20837if ${ac_cv_lib_posix4_clock_gettime+:} false; then :
20838  $as_echo_n "(cached) " >&6
20839else
20840  ac_check_lib_save_LIBS=$LIBS
20841LIBS="-lposix4  $LIBS"
20842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20843/* end confdefs.h.  */
20844
20845/* Override any GCC internal prototype to avoid an error.
20846   Use char because int might match the return type of a GCC
20847   builtin and then its argument prototype would still apply.  */
20848#ifdef __cplusplus
20849extern "C"
20850#endif
20851char clock_gettime ();
20852int
20853main ()
20854{
20855return clock_gettime ();
20856  ;
20857  return 0;
20858}
20859_ACEOF
20860if ac_fn_c_try_link "$LINENO"; then :
20861  ac_cv_lib_posix4_clock_gettime=yes
20862else
20863  ac_cv_lib_posix4_clock_gettime=no
20864fi
20865rm -f core conftest.err conftest.$ac_objext \
20866    conftest$ac_exeext conftest.$ac_ext
20867LIBS=$ac_check_lib_save_LIBS
20868fi
20869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_clock_gettime" >&5
20870$as_echo "$ac_cv_lib_posix4_clock_gettime" >&6; }
20871if test "x$ac_cv_lib_posix4_clock_gettime" = xyes; then :
20872
20873      clock_gettime_needs_posix4="yes"
20874      have_clock_gettime="yes"
20875
20876
20877fi
20878
20879fi
20880
20881if test "x$have_clock_gettime" = "xyes"; then
20882
20883$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
20884
20885fi
20886
20887for ac_func in nanosleep
20888do :
20889  ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
20890if test "x$ac_cv_func_nanosleep" = xyes; then :
20891  cat >>confdefs.h <<_ACEOF
20892#define HAVE_NANOSLEEP 1
20893_ACEOF
20894
20895else
20896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
20897$as_echo_n "checking for nanosleep in -lrt... " >&6; }
20898if ${ac_cv_lib_rt_nanosleep+:} false; then :
20899  $as_echo_n "(cached) " >&6
20900else
20901  ac_check_lib_save_LIBS=$LIBS
20902LIBS="-lrt  $LIBS"
20903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20904/* end confdefs.h.  */
20905
20906/* Override any GCC internal prototype to avoid an error.
20907   Use char because int might match the return type of a GCC
20908   builtin and then its argument prototype would still apply.  */
20909#ifdef __cplusplus
20910extern "C"
20911#endif
20912char nanosleep ();
20913int
20914main ()
20915{
20916return nanosleep ();
20917  ;
20918  return 0;
20919}
20920_ACEOF
20921if ac_fn_c_try_link "$LINENO"; then :
20922  ac_cv_lib_rt_nanosleep=yes
20923else
20924  ac_cv_lib_rt_nanosleep=no
20925fi
20926rm -f core conftest.err conftest.$ac_objext \
20927    conftest$ac_exeext conftest.$ac_ext
20928LIBS=$ac_check_lib_save_LIBS
20929fi
20930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
20931$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
20932if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
20933  nanosleep_needs_rt="yes"
20934else
20935
20936      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
20937$as_echo_n "checking for nanosleep in -lposix4... " >&6; }
20938if ${ac_cv_lib_posix4_nanosleep+:} false; then :
20939  $as_echo_n "(cached) " >&6
20940else
20941  ac_check_lib_save_LIBS=$LIBS
20942LIBS="-lposix4  $LIBS"
20943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20944/* end confdefs.h.  */
20945
20946/* Override any GCC internal prototype to avoid an error.
20947   Use char because int might match the return type of a GCC
20948   builtin and then its argument prototype would still apply.  */
20949#ifdef __cplusplus
20950extern "C"
20951#endif
20952char nanosleep ();
20953int
20954main ()
20955{
20956return nanosleep ();
20957  ;
20958  return 0;
20959}
20960_ACEOF
20961if ac_fn_c_try_link "$LINENO"; then :
20962  ac_cv_lib_posix4_nanosleep=yes
20963else
20964  ac_cv_lib_posix4_nanosleep=no
20965fi
20966rm -f core conftest.err conftest.$ac_objext \
20967    conftest$ac_exeext conftest.$ac_ext
20968LIBS=$ac_check_lib_save_LIBS
20969fi
20970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
20971$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
20972if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then :
20973  nanosleep_needs_posix4="yes"
20974else
20975  as_fn_error $? "cannot find nanosleep" "$LINENO" 5
20976
20977fi
20978
20979
20980
20981fi
20982
20983
20984fi
20985done
20986
20987
20988 if test "x$clock_gettime_needs_rt" = "xyes" || test "x$nanosleep_needs_rt" = "xyes"; then
20989  BUILD_WITH_LIBRT_TRUE=
20990  BUILD_WITH_LIBRT_FALSE='#'
20991else
20992  BUILD_WITH_LIBRT_TRUE='#'
20993  BUILD_WITH_LIBRT_FALSE=
20994fi
20995
20996 if test "x$clock_gettime_needs_posix4" = "xyes" || test "x$nanosleep_needs_posix4" = "xyes"; then
20997  BUILD_WITH_LIBPOSIX4_TRUE=
20998  BUILD_WITH_LIBPOSIX4_FALSE='#'
20999else
21000  BUILD_WITH_LIBPOSIX4_TRUE='#'
21001  BUILD_WITH_LIBPOSIX4_FALSE=
21002fi
21003
21004
21005for ac_func in getifaddrs
21006do :
21007  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
21008if test "x$ac_cv_func_getifaddrs" = xyes; then :
21009  cat >>confdefs.h <<_ACEOF
21010#define HAVE_GETIFADDRS 1
21011_ACEOF
21012 have_getifaddrs="yes"
21013else
21014  have_getifaddrs="no"
21015fi
21016done
21017
21018for ac_func in getloadavg
21019do :
21020  ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
21021if test "x$ac_cv_func_getloadavg" = xyes; then :
21022  cat >>confdefs.h <<_ACEOF
21023#define HAVE_GETLOADAVG 1
21024_ACEOF
21025 have_getloadavg="yes"
21026else
21027  have_getloadavg="no"
21028fi
21029done
21030
21031for ac_func in getutent
21032do :
21033  ac_fn_c_check_func "$LINENO" "getutent" "ac_cv_func_getutent"
21034if test "x$ac_cv_func_getutent" = xyes; then :
21035  cat >>confdefs.h <<_ACEOF
21036#define HAVE_GETUTENT 1
21037_ACEOF
21038 have_getutent="yes"
21039else
21040  have_getutent="no"
21041fi
21042done
21043
21044for ac_func in getutxent
21045do :
21046  ac_fn_c_check_func "$LINENO" "getutxent" "ac_cv_func_getutxent"
21047if test "x$ac_cv_func_getutxent" = xyes; then :
21048  cat >>confdefs.h <<_ACEOF
21049#define HAVE_GETUTXENT 1
21050_ACEOF
21051 have_getutxent="yes"
21052else
21053  have_getutxent="no"
21054fi
21055done
21056
21057for ac_func in host_statistics
21058do :
21059  ac_fn_c_check_func "$LINENO" "host_statistics" "ac_cv_func_host_statistics"
21060if test "x$ac_cv_func_host_statistics" = xyes; then :
21061  cat >>confdefs.h <<_ACEOF
21062#define HAVE_HOST_STATISTICS 1
21063_ACEOF
21064 have_host_statistics="yes"
21065else
21066  have_host_statistics="no"
21067fi
21068done
21069
21070for ac_func in processor_info
21071do :
21072  ac_fn_c_check_func "$LINENO" "processor_info" "ac_cv_func_processor_info"
21073if test "x$ac_cv_func_processor_info" = xyes; then :
21074  cat >>confdefs.h <<_ACEOF
21075#define HAVE_PROCESSOR_INFO 1
21076_ACEOF
21077 have_processor_info="yes"
21078else
21079  have_processor_info="no"
21080fi
21081done
21082
21083for ac_func in statfs
21084do :
21085  ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs"
21086if test "x$ac_cv_func_statfs" = xyes; then :
21087  cat >>confdefs.h <<_ACEOF
21088#define HAVE_STATFS 1
21089_ACEOF
21090 have_statfs="yes"
21091else
21092  have_statfs="no"
21093fi
21094done
21095
21096for ac_func in statvfs
21097do :
21098  ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
21099if test "x$ac_cv_func_statvfs" = xyes; then :
21100  cat >>confdefs.h <<_ACEOF
21101#define HAVE_STATVFS 1
21102_ACEOF
21103 have_statvfs="yes"
21104else
21105  have_statvfs="no"
21106fi
21107done
21108
21109for ac_func in sysctl
21110do :
21111  ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
21112if test "x$ac_cv_func_sysctl" = xyes; then :
21113  cat >>confdefs.h <<_ACEOF
21114#define HAVE_SYSCTL 1
21115_ACEOF
21116 have_sysctl="yes"
21117else
21118  have_sysctl="no"
21119fi
21120done
21121
21122for ac_func in sysctlbyname
21123do :
21124  ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
21125if test "x$ac_cv_func_sysctlbyname" = xyes; then :
21126  cat >>confdefs.h <<_ACEOF
21127#define HAVE_SYSCTLBYNAME 1
21128_ACEOF
21129 have_sysctlbyname="yes"
21130else
21131  have_sysctlbyname="no"
21132fi
21133done
21134
21135for ac_func in syslog
21136do :
21137  ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
21138if test "x$ac_cv_func_syslog" = xyes; then :
21139  cat >>confdefs.h <<_ACEOF
21140#define HAVE_SYSLOG 1
21141_ACEOF
21142 have_syslog="yes"
21143else
21144  have_syslog="no"
21145fi
21146done
21147
21148for ac_func in thread_info
21149do :
21150  ac_fn_c_check_func "$LINENO" "thread_info" "ac_cv_func_thread_info"
21151if test "x$ac_cv_func_thread_info" = xyes; then :
21152  cat >>confdefs.h <<_ACEOF
21153#define HAVE_THREAD_INFO 1
21154_ACEOF
21155 have_thread_info="yes"
21156else
21157  have_thread_info="no"
21158fi
21159done
21160
21161
21162# Check for strptime {{{
21163if test "x$GCC" = "xyes"; then
21164  SAVE_CFLAGS="$CFLAGS"
21165  CFLAGS="$CFLAGS -Wall -Wextra -Werror"
21166fi
21167
21168for ac_func in strptime
21169do :
21170  ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
21171if test "x$ac_cv_func_strptime" = xyes; then :
21172  cat >>confdefs.h <<_ACEOF
21173#define HAVE_STRPTIME 1
21174_ACEOF
21175 have_strptime="yes"
21176else
21177  have_strptime="no"
21178fi
21179done
21180
21181if test "x$have_strptime" = "xyes"; then
21182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime is exported by default" >&5
21183$as_echo_n "checking whether strptime is exported by default... " >&6; }
21184if ${c_cv_have_strptime_default+:} false; then :
21185  $as_echo_n "(cached) " >&6
21186else
21187
21188      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21189/* end confdefs.h.  */
21190
21191          #include <time.h>
21192int
21193main ()
21194{
21195
21196              struct tm stm;
21197              (void)strptime ("2010-12-30%13:42:42", "%Y-%m-%dT%T", &stm);
21198
21199
21200  ;
21201  return 0;
21202}
21203
21204_ACEOF
21205if ac_fn_c_try_compile "$LINENO"; then :
21206  c_cv_have_strptime_default="yes"
21207else
21208  c_cv_have_strptime_default="no"
21209fi
21210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21211
21212
21213fi
21214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_strptime_default" >&5
21215$as_echo "$c_cv_have_strptime_default" >&6; }
21216fi
21217
21218if test "x$have_strptime" = "xyes" && test "x$c_cv_have_strptime_default" = "xno"; then
21219  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime needs standards mode" >&5
21220$as_echo_n "checking whether strptime needs standards mode... " >&6; }
21221if ${c_cv_have_strptime_standards+:} false; then :
21222  $as_echo_n "(cached) " >&6
21223else
21224
21225      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21226/* end confdefs.h.  */
21227
21228
21229              #ifndef _ISOC99_SOURCE
21230              # define _ISOC99_SOURCE 1
21231              #endif
21232              #ifndef _POSIX_C_SOURCE
21233              # define _POSIX_C_SOURCE 200112L
21234              #endif
21235              #ifndef _XOPEN_SOURCE
21236              # define _XOPEN_SOURCE 500
21237              #endif
21238              #include <time.h>
21239
21240int
21241main ()
21242{
21243
21244              struct tm stm;
21245              (void)strptime ("2010-12-30%13:42:42", "%Y-%m-%dT%T", &stm);
21246
21247
21248  ;
21249  return 0;
21250}
21251
21252_ACEOF
21253if ac_fn_c_try_compile "$LINENO"; then :
21254  c_cv_have_strptime_standards="yes"
21255else
21256  c_cv_have_strptime_standards="no"
21257
21258fi
21259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21260
21261
21262fi
21263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_strptime_standards" >&5
21264$as_echo "$c_cv_have_strptime_standards" >&6; }
21265
21266  if test "x$c_cv_have_strptime_standards" = "xyes"; then
21267
21268$as_echo "#define STRPTIME_NEEDS_STANDARDS 1" >>confdefs.h
21269
21270  else
21271    have_strptime="no"
21272  fi
21273fi
21274
21275if test "x$GCC" = "xyes"; then
21276  CFLAGS="$SAVE_CFLAGS"
21277fi
21278# }}} Check for strptime
21279
21280# Check for timegm {{{
21281
21282# These checks need -Werror because implicit function declarations are only a
21283# warning ...
21284SAVE_CFLAGS="$CFLAGS"
21285CFLAGS="$CFLAGS -Werror"
21286
21287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timegm" >&5
21288$as_echo_n "checking for timegm... " >&6; }
21289if ${c_cv_have_timegm+:} false; then :
21290  $as_echo_n "(cached) " >&6
21291else
21292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21293/* end confdefs.h.  */
21294
21295#if STRPTIME_NEEDS_STANDARDS
21296# ifndef _ISOC99_SOURCE
21297#  define _ISOC99_SOURCE 1
21298# endif
21299# ifndef _POSIX_C_SOURCE
21300#  define _POSIX_C_SOURCE 200112L
21301# endif
21302# ifndef _XOPEN_SOURCE
21303#  define _XOPEN_SOURCE 500
21304# endif
21305#endif
21306#include <time.h>
21307
21308int
21309main ()
21310{
21311
21312 time_t t = timegm(&(struct tm){0});
21313 if (t == ((time_t) -1)) {
21314   return 1;
21315 }
21316
21317
21318  ;
21319  return 0;
21320}
21321_ACEOF
21322if ac_fn_c_try_link "$LINENO"; then :
21323  c_cv_have_timegm="yes"
21324else
21325  c_cv_have_timegm="no"
21326
21327fi
21328rm -f core conftest.err conftest.$ac_objext \
21329    conftest$ac_exeext conftest.$ac_ext
21330
21331fi
21332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_timegm" >&5
21333$as_echo "$c_cv_have_timegm" >&6; }
21334
21335if test "x$c_cv_have_timegm" != "xyes"
21336then
21337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timegm with _BSD_SOURCE" >&5
21338$as_echo_n "checking for timegm with _BSD_SOURCE... " >&6; }
21339if ${c_cv_have_timegm_bsd+:} false; then :
21340  $as_echo_n "(cached) " >&6
21341else
21342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21343/* end confdefs.h.  */
21344
21345#if STRPTIME_NEEDS_STANDARDS
21346# ifndef _ISOC99_SOURCE
21347#  define _ISOC99_SOURCE 1
21348# endif
21349# ifndef _POSIX_C_SOURCE
21350#  define _POSIX_C_SOURCE 200112L
21351# endif
21352# ifndef _XOPEN_SOURCE
21353#  define _XOPEN_SOURCE 500
21354# endif
21355#endif
21356#ifndef _BSD_SOURCE
21357# define _BSD_SOURCE 1
21358#endif
21359#include <time.h>
21360
21361int
21362main ()
21363{
21364
21365 time_t t = timegm(&(struct tm){0});
21366 if (t == ((time_t) -1)) {
21367   return 1;
21368 }
21369
21370
21371  ;
21372  return 0;
21373}
21374_ACEOF
21375if ac_fn_c_try_link "$LINENO"; then :
21376  c_cv_have_timegm_bsd="yes"
21377       c_cv_have_timegm="yes"
21378else
21379  c_cv_have_timegm_bsd="no"
21380
21381fi
21382rm -f core conftest.err conftest.$ac_objext \
21383    conftest$ac_exeext conftest.$ac_ext
21384
21385fi
21386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_timegm_bsd" >&5
21387$as_echo "$c_cv_have_timegm_bsd" >&6; }
21388fi
21389
21390if test "x$c_cv_have_timegm" = "xyes"
21391then
21392
21393$as_echo "#define HAVE_TIMEGM 1" >>confdefs.h
21394
21395  if test "x$c_cv_have_timegm_bsd" = "xyes"
21396  then
21397
21398$as_echo "#define TIMEGM_NEEDS_BSD 1" >>confdefs.h
21399
21400  fi
21401fi
21402
21403CFLAGS="$SAVE_CFLAGS"
21404# }}} Check for timegm
21405
21406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl kern.cp_times" >&5
21407$as_echo_n "checking for sysctl kern.cp_times... " >&6; }
21408if test -x /sbin/sysctl; then
21409  /sbin/sysctl kern.cp_times >/dev/null 2>&1
21410  if test $? -eq 0; then
21411    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21412$as_echo "yes" >&6; }
21413
21414$as_echo "#define HAVE_SYSCTL_KERN_CP_TIMES 1" >>confdefs.h
21415
21416  else
21417    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21418$as_echo "no" >&6; }
21419  fi
21420else
21421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21422$as_echo "no" >&6; }
21423fi
21424
21425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl kern.cp_time" >&5
21426$as_echo_n "checking for sysctl kern.cp_time... " >&6; }
21427if test -x /sbin/sysctl; then
21428  /sbin/sysctl kern.cp_time >/dev/null 2>&1
21429  if test $? -eq 0
21430  then
21431    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21432$as_echo "yes" >&6; }
21433
21434$as_echo "#define HAVE_SYSCTL_KERN_CP_TIME 1" >>confdefs.h
21435
21436  else
21437    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21438$as_echo "no" >&6; }
21439  fi
21440else
21441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21442$as_echo "no" >&6; }
21443fi
21444
21445for ac_func in swapctl
21446do :
21447  ac_fn_c_check_func "$LINENO" "swapctl" "ac_cv_func_swapctl"
21448if test "x$ac_cv_func_swapctl" = xyes; then :
21449  cat >>confdefs.h <<_ACEOF
21450#define HAVE_SWAPCTL 1
21451_ACEOF
21452 have_swapctl="yes"
21453else
21454  have_swapctl="no"
21455fi
21456done
21457
21458if test "x$have_swapctl" = "xyes"; then
21459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether swapctl takes two arguments" >&5
21460$as_echo_n "checking whether swapctl takes two arguments... " >&6; }
21461if ${c_cv_have_swapctl_two_args+:} false; then :
21462  $as_echo_n "(cached) " >&6
21463else
21464
21465      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21466/* end confdefs.h.  */
21467
21468
21469              #if HAVE_SYS_SWAP_H && !defined(_LP64) && _FILE_OFFSET_BITS == 64
21470              #  undef _FILE_OFFSET_BITS
21471              #  undef _LARGEFILE64_SOURCE
21472              #endif
21473              #include <sys/stat.h>
21474              #include <sys/param.h>
21475              #include <sys/swap.h>
21476              #include <unistd.h>
21477
21478int
21479main ()
21480{
21481int num = swapctl(0, NULL);
21482
21483  ;
21484  return 0;
21485}
21486
21487_ACEOF
21488if ac_fn_c_try_compile "$LINENO"; then :
21489  c_cv_have_swapctl_two_args="yes"
21490else
21491  c_cv_have_swapctl_two_args="no"
21492
21493fi
21494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21495
21496
21497fi
21498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_swapctl_two_args" >&5
21499$as_echo "$c_cv_have_swapctl_two_args" >&6; }
21500
21501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether swapctl takes three arguments" >&5
21502$as_echo_n "checking whether swapctl takes three arguments... " >&6; }
21503if ${c_cv_have_swapctl_three_args+:} false; then :
21504  $as_echo_n "(cached) " >&6
21505else
21506
21507      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21508/* end confdefs.h.  */
21509
21510
21511              #if HAVE_SYS_SWAP_H && !defined(_LP64) && _FILE_OFFSET_BITS == 64
21512              #  undef _FILE_OFFSET_BITS
21513              #  undef _LARGEFILE64_SOURCE
21514              #endif
21515              #include <sys/stat.h>
21516              #include <sys/param.h>
21517              #include <sys/swap.h>
21518              #include <unistd.h>
21519
21520int
21521main ()
21522{
21523int num = swapctl(0, NULL, 0);
21524
21525  ;
21526  return 0;
21527}
21528
21529_ACEOF
21530if ac_fn_c_try_compile "$LINENO"; then :
21531  c_cv_have_swapctl_three_args="yes"
21532else
21533  c_cv_have_swapctl_three_args="no"
21534
21535fi
21536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21537
21538
21539fi
21540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_swapctl_three_args" >&5
21541$as_echo "$c_cv_have_swapctl_three_args" >&6; }
21542fi
21543
21544# Check for different versions of `swapctl' here..
21545if test "x$have_swapctl" = "xyes"; then
21546  if test "x$c_cv_have_swapctl_two_args" = "xyes"; then
21547
21548$as_echo "#define HAVE_SWAPCTL_TWO_ARGS 1" >>confdefs.h
21549
21550  fi
21551
21552  if test "x$c_cv_have_swapctl_three_args" = "xyes"; then
21553
21554$as_echo "#define HAVE_SWAPCTL_THREE_ARGS 1" >>confdefs.h
21555
21556  fi
21557fi
21558
21559# Check for NAN
21560
21561# Check whether --with-nan-emulation was given.
21562if test "${with_nan_emulation+set}" = set; then :
21563  withval=$with_nan_emulation;
21564    if test "x$withval" = "xno"; then
21565      nan_type="none"
21566    else if test "x$withval" = "xyes"; then
21567      nan_type="zero"
21568    else
21569      nan_type="$withval"
21570    fi; fi
21571
21572else
21573  nan_type="none"
21574
21575fi
21576
21577
21578if test "x$nan_type" = "xnone"; then
21579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN is defined by default" >&5
21580$as_echo_n "checking whether NAN is defined by default... " >&6; }
21581if ${c_cv_have_nan_default+:} false; then :
21582  $as_echo_n "(cached) " >&6
21583else
21584
21585      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21586/* end confdefs.h.  */
21587
21588
21589              #include <stdlib.h>
21590              #include <math.h>
21591              static double foo = NAN;
21592
21593int
21594main ()
21595{
21596
21597              if (isnan (foo))
21598                return 0;
21599              return 1;
21600
21601
21602  ;
21603  return 0;
21604}
21605
21606_ACEOF
21607if ac_fn_c_try_compile "$LINENO"; then :
21608  c_cv_have_nan_default="yes"
21609else
21610  c_cv_have_nan_default="no"
21611
21612fi
21613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21614
21615
21616fi
21617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_nan_default" >&5
21618$as_echo "$c_cv_have_nan_default" >&6; }
21619fi
21620
21621if test "x$c_cv_have_nan_default" = "xyes"; then
21622  nan_type="default"
21623fi
21624
21625if test "x$nan_type" = "xnone"; then
21626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN is defined by __USE_ISOC99" >&5
21627$as_echo_n "checking whether NAN is defined by __USE_ISOC99... " >&6; }
21628if ${c_cv_have_nan_isoc+:} false; then :
21629  $as_echo_n "(cached) " >&6
21630else
21631
21632      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21633/* end confdefs.h.  */
21634
21635
21636              #include <stdlib.h>
21637              #define __USE_ISOC99 1
21638              #include <math.h>
21639              static double foo = NAN;
21640
21641int
21642main ()
21643{
21644
21645              if (isnan (foo))
21646                return 0;
21647              return 1;
21648
21649
21650  ;
21651  return 0;
21652}
21653
21654_ACEOF
21655if ac_fn_c_try_compile "$LINENO"; then :
21656  c_cv_have_nan_isoc="yes"
21657else
21658  c_cv_have_nan_isoc="no"
21659
21660fi
21661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21662
21663
21664fi
21665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_nan_isoc" >&5
21666$as_echo "$c_cv_have_nan_isoc" >&6; }
21667fi
21668
21669if test "x$c_cv_have_nan_isoc" = "xyes"; then
21670  nan_type="isoc99"
21671fi
21672
21673if test "x$nan_type" = "xnone"; then
21674  SAVE_LDFLAGS="$LDFLAGS"
21675  LDFLAGS="$LDFLAGS -lm"
21676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN can be defined by 0/0" >&5
21677$as_echo_n "checking whether NAN can be defined by 0/0... " >&6; }
21678if ${c_cv_have_nan_zero+:} false; then :
21679  $as_echo_n "(cached) " >&6
21680else
21681
21682      if test "$cross_compiling" = yes; then :
21683  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21685as_fn_error $? "cannot run test program while cross compiling
21686See \`config.log' for more details" "$LINENO" 5; }
21687else
21688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21689/* end confdefs.h.  */
21690
21691
21692              #include <stdlib.h>
21693              #include <math.h>
21694              #ifdef NAN
21695              # undef NAN
21696              #endif
21697              #define NAN (0.0 / 0.0)
21698              #ifndef isnan
21699              # define isnan(f) ((f) != (f))
21700              #endif
21701              static double foo = NAN;
21702
21703int
21704main ()
21705{
21706
21707              if (isnan (foo))
21708                return 0;
21709              return 1;
21710
21711
21712  ;
21713  return 0;
21714}
21715
21716_ACEOF
21717if ac_fn_c_try_run "$LINENO"; then :
21718  c_cv_have_nan_zero="yes"
21719else
21720  c_cv_have_nan_zero="no"
21721
21722fi
21723rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21724  conftest.$ac_objext conftest.beam conftest.$ac_ext
21725fi
21726
21727
21728
21729fi
21730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_nan_zero" >&5
21731$as_echo "$c_cv_have_nan_zero" >&6; }
21732  LDFLAGS=$SAVE_LDFLAGS
21733fi
21734
21735if test "x$c_cv_have_nan_zero" = "xyes"; then
21736  nan_type="zero"
21737fi
21738
21739if test "x$nan_type" = "xdefault"; then
21740
21741$as_echo "#define NAN_STATIC_DEFAULT 1" >>confdefs.h
21742
21743else if test "x$nan_type" = "xisoc99"; then
21744
21745$as_echo "#define NAN_STATIC_ISOC 1" >>confdefs.h
21746
21747else if test "x$nan_type" = "xzero"; then
21748
21749$as_echo "#define NAN_ZERO_ZERO 1" >>confdefs.h
21750
21751else
21752  as_fn_error $? "Didn't find out how to statically initialize variables to NAN. Sorry." "$LINENO" 5
21753fi; fi; fi
21754
21755
21756# Check whether --with-fp-layout was given.
21757if test "${with_fp_layout+set}" = set; then :
21758  withval=$with_fp_layout;
21759    if test "x$withval" = "xnothing"; then
21760      fp_layout_type="nothing"
21761    else if test "x$withval" = "xendianflip"; then
21762      fp_layout_type="endianflip"
21763    else if test "x$withval" = "xintswap"; then
21764      fp_layout_type="intswap"
21765    else
21766      as_fn_error $? "Invalid argument for --with-fp-layout. Valid arguments are: nothing, endianflip, intswap" "$LINENO" 5;
21767    fi; fi; fi
21768
21769else
21770  fp_layout_type="unknown"
21771
21772fi
21773
21774
21775if test "x$fp_layout_type" = "xunknown"; then
21776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if doubles are stored in x86 representation" >&5
21777$as_echo_n "checking if doubles are stored in x86 representation... " >&6; }
21778if ${c_cv_fp_layout_need_nothing+:} false; then :
21779  $as_echo_n "(cached) " >&6
21780else
21781
21782      if test "$cross_compiling" = yes; then :
21783  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21785as_fn_error $? "cannot run test program while cross compiling
21786See \`config.log' for more details" "$LINENO" 5; }
21787else
21788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21789/* end confdefs.h.  */
21790
21791
21792              #include <stdlib.h>
21793              #include <stdio.h>
21794              #include <string.h>
21795              #include <stdint.h>
21796              #include <inttypes.h>
21797              #include <stdbool.h>
21798
21799int
21800main ()
21801{
21802
21803              uint64_t i0;
21804              uint64_t i1;
21805              uint8_t c[8];
21806              double d;
21807
21808              d = 8.642135e130;
21809              memcpy ((void *) &i0, (void *) &d, 8);
21810
21811              i1 = i0;
21812              memcpy ((void *) c, (void *) &i1, 8);
21813
21814              if ((c[0] == 0x2f) && (c[1] == 0x25)
21815                  && (c[2] == 0xc0) && (c[3] == 0xc7)
21816                  && (c[4] == 0x43) && (c[5] == 0x2b)
21817                  && (c[6] == 0x1f) && (c[7] == 0x5b))
21818                return 0;
21819              return 1;
21820
21821
21822  ;
21823  return 0;
21824}
21825
21826_ACEOF
21827if ac_fn_c_try_run "$LINENO"; then :
21828  c_cv_fp_layout_need_nothing="yes"
21829else
21830  c_cv_fp_layout_need_nothing="no"
21831
21832fi
21833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21834  conftest.$ac_objext conftest.beam conftest.$ac_ext
21835fi
21836
21837
21838
21839fi
21840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_fp_layout_need_nothing" >&5
21841$as_echo "$c_cv_fp_layout_need_nothing" >&6; }
21842fi
21843
21844if test "x$c_cv_fp_layout_need_nothing" = "xyes"; then
21845  fp_layout_type="nothing"
21846fi
21847
21848if test "x$fp_layout_type" = "xunknown"; then
21849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if endianflip converts to x86 representation" >&5
21850$as_echo_n "checking if endianflip converts to x86 representation... " >&6; }
21851if ${c_cv_fp_layout_need_endianflip+:} false; then :
21852  $as_echo_n "(cached) " >&6
21853else
21854
21855      if test "$cross_compiling" = yes; then :
21856  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21858as_fn_error $? "cannot run test program while cross compiling
21859See \`config.log' for more details" "$LINENO" 5; }
21860else
21861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21862/* end confdefs.h.  */
21863
21864
21865              #include <stdlib.h>
21866              #include <stdio.h>
21867              #include <string.h>
21868              #include <stdint.h>
21869              #include <inttypes.h>
21870              #include <stdbool.h>
21871              #define endianflip(A) ((((uint64_t)(A) & 0xff00000000000000LL) >> 56) | \
21872                                     (((uint64_t)(A) & 0x00ff000000000000LL) >> 40) | \
21873                                     (((uint64_t)(A) & 0x0000ff0000000000LL) >> 24) | \
21874                                     (((uint64_t)(A) & 0x000000ff00000000LL) >> 8)  | \
21875                                     (((uint64_t)(A) & 0x00000000ff000000LL) << 8)  | \
21876                                     (((uint64_t)(A) & 0x0000000000ff0000LL) << 24) | \
21877                                     (((uint64_t)(A) & 0x000000000000ff00LL) << 40) | \
21878                                     (((uint64_t)(A) & 0x00000000000000ffLL) << 56))
21879
21880int
21881main ()
21882{
21883
21884              uint64_t i0;
21885              uint64_t i1;
21886              uint8_t c[8];
21887              double d;
21888
21889              d = 8.642135e130;
21890              memcpy ((void *) &i0, (void *) &d, 8);
21891
21892              i1 = endianflip (i0);
21893              memcpy ((void *) c, (void *) &i1, 8);
21894
21895              if ((c[0] == 0x2f) && (c[1] == 0x25)
21896                  && (c[2] == 0xc0) && (c[3] == 0xc7)
21897                  && (c[4] == 0x43) && (c[5] == 0x2b)
21898                  && (c[6] == 0x1f) && (c[7] == 0x5b))
21899                return 0;
21900              return 1;
21901
21902
21903  ;
21904  return 0;
21905}
21906
21907_ACEOF
21908if ac_fn_c_try_run "$LINENO"; then :
21909  c_cv_fp_layout_need_endianflip="yes"
21910else
21911  c_cv_fp_layout_need_endianflip="no"
21912
21913
21914fi
21915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_fp_layout_need_endianflip" >&5
21916$as_echo "$c_cv_fp_layout_need_endianflip" >&6; }
21917
21918fi
21919rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21920  conftest.$ac_objext conftest.beam conftest.$ac_ext
21921fi
21922
21923fi
21924
21925if test "x$c_cv_fp_layout_need_endianflip" = "xyes"; then
21926  fp_layout_type="endianflip"
21927fi
21928
21929if test "x$fp_layout_type" = "xunknown"; then
21930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if intswap converts to x86 representation" >&5
21931$as_echo_n "checking if intswap converts to x86 representation... " >&6; }
21932if ${c_cv_fp_layout_need_intswap+:} false; then :
21933  $as_echo_n "(cached) " >&6
21934else
21935
21936      if test "$cross_compiling" = yes; then :
21937  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21939as_fn_error $? "cannot run test program while cross compiling
21940See \`config.log' for more details" "$LINENO" 5; }
21941else
21942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21943/* end confdefs.h.  */
21944
21945
21946              #include <stdlib.h>
21947              #include <stdio.h>
21948              #include <string.h>
21949              #include <stdint.h>
21950              #include <inttypes.h>
21951              #include <stdbool.h>
21952              #define intswap(A)    ((((uint64_t)(A) & 0xffffffff00000000LL) >> 32) | \
21953                                     (((uint64_t)(A) & 0x00000000ffffffffLL) << 32))
21954
21955int
21956main ()
21957{
21958
21959              uint64_t i0;
21960              uint64_t i1;
21961              uint8_t c[8];
21962              double d;
21963
21964              d = 8.642135e130;
21965              memcpy ((void *) &i0, (void *) &d, 8);
21966
21967              i1 = intswap (i0);
21968              memcpy ((void *) c, (void *) &i1, 8);
21969
21970              if ((c[0] == 0x2f) && (c[1] == 0x25)
21971                  && (c[2] == 0xc0) && (c[3] == 0xc7)
21972                  && (c[4] == 0x43) && (c[5] == 0x2b)
21973                  && (c[6] == 0x1f) && (c[7] == 0x5b))
21974                return 0;
21975              return 1;
21976
21977
21978  ;
21979  return 0;
21980}
21981
21982_ACEOF
21983if ac_fn_c_try_run "$LINENO"; then :
21984  c_cv_fp_layout_need_intswap="yes"
21985else
21986  c_cv_fp_layout_need_intswap="no"
21987
21988fi
21989rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21990  conftest.$ac_objext conftest.beam conftest.$ac_ext
21991fi
21992
21993
21994
21995fi
21996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_fp_layout_need_intswap" >&5
21997$as_echo "$c_cv_fp_layout_need_intswap" >&6; }
21998fi
21999
22000if test "x$c_cv_fp_layout_need_intswap" = "xyes"; then
22001  fp_layout_type="intswap"
22002fi
22003
22004if test "x$fp_layout_type" = "xnothing"; then
22005
22006$as_echo "#define FP_LAYOUT_NEED_NOTHING 1" >>confdefs.h
22007
22008else if test "x$fp_layout_type" = "xendianflip"; then
22009
22010$as_echo "#define FP_LAYOUT_NEED_ENDIANFLIP 1" >>confdefs.h
22011
22012else if test "x$fp_layout_type" = "xintswap"; then
22013
22014$as_echo "#define FP_LAYOUT_NEED_INTSWAP 1" >>confdefs.h
22015
22016else
22017  as_fn_error $? "Didn't find out how doubles are stored in memory. Sorry." "$LINENO" 5
22018fi; fi; fi
22019
22020# For cpusleep plugin
22021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_boottime and clock_monotonic are supported" >&5
22022$as_echo_n "checking whether clock_boottime and clock_monotonic are supported... " >&6; }
22023if ${c_cv_have_clock_boottime_monotonic+:} false; then :
22024  $as_echo_n "(cached) " >&6
22025else
22026
22027    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22028/* end confdefs.h.  */
22029#include <time.h>
22030int
22031main ()
22032{
22033
22034          struct timespec b, m;
22035          clock_gettime(CLOCK_BOOTTIME, &b );
22036          clock_gettime(CLOCK_MONOTONIC, &m );
22037
22038
22039  ;
22040  return 0;
22041}
22042
22043_ACEOF
22044if ac_fn_c_try_compile "$LINENO"; then :
22045  c_cv_have_clock_boottime_monotonic="yes"
22046else
22047  c_cv_have_clock_boottime_monotonic="no"
22048
22049fi
22050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22051
22052
22053fi
22054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_clock_boottime_monotonic" >&5
22055$as_echo "$c_cv_have_clock_boottime_monotonic" >&6; }
22056
22057# --with-useragent {{{
22058
22059# Check whether --with-useragent was given.
22060if test "${with_useragent+set}" = set; then :
22061  withval=$with_useragent;
22062    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
22063
22064cat >>confdefs.h <<_ACEOF
22065#define COLLECTD_USERAGENT "$withval"
22066_ACEOF
22067
22068    fi
22069
22070
22071fi
22072
22073
22074# }}}
22075
22076# --with-data-max-name-len {{{
22077
22078# Check whether --with-data-max-name-len was given.
22079if test "${with_data_max_name_len+set}" = set; then :
22080  withval=$with_data_max_name_len;
22081    if test "x$withval" != "x" && test $withval -gt 0; then
22082
22083cat >>confdefs.h <<_ACEOF
22084#define DATA_MAX_NAME_LEN $withval
22085_ACEOF
22086
22087    else
22088      as_fn_error $? "DATA_MAX_NAME_LEN must be a positive integer -- $withval given" "$LINENO" 5
22089    fi
22090
22091else
22092
22093$as_echo "#define DATA_MAX_NAME_LEN 128" >>confdefs.h
22094
22095
22096fi
22097
22098# }}}
22099
22100for ac_func in getfsstat
22101do :
22102  ac_fn_c_check_func "$LINENO" "getfsstat" "ac_cv_func_getfsstat"
22103if test "x$ac_cv_func_getfsstat" = xyes; then :
22104  cat >>confdefs.h <<_ACEOF
22105#define HAVE_GETFSSTAT 1
22106_ACEOF
22107 have_getfsstat="yes"
22108else
22109  have_getfsstat="no"
22110fi
22111done
22112
22113for ac_func in getvfsstat
22114do :
22115  ac_fn_c_check_func "$LINENO" "getvfsstat" "ac_cv_func_getvfsstat"
22116if test "x$ac_cv_func_getvfsstat" = xyes; then :
22117  cat >>confdefs.h <<_ACEOF
22118#define HAVE_GETVFSSTAT 1
22119_ACEOF
22120 have_getvfsstat="yes"
22121else
22122  have_getvfsstat="no"
22123fi
22124done
22125
22126for ac_func in listmntent
22127do :
22128  ac_fn_c_check_func "$LINENO" "listmntent" "ac_cv_func_listmntent"
22129if test "x$ac_cv_func_listmntent" = xyes; then :
22130  cat >>confdefs.h <<_ACEOF
22131#define HAVE_LISTMNTENT 1
22132_ACEOF
22133 have_listmntent="yes"
22134else
22135  have_listmntent="no"
22136fi
22137done
22138
22139for ac_func in getmntent_r
22140do :
22141  ac_fn_c_check_func "$LINENO" "getmntent_r" "ac_cv_func_getmntent_r"
22142if test "x$ac_cv_func_getmntent_r" = xyes; then :
22143  cat >>confdefs.h <<_ACEOF
22144#define HAVE_GETMNTENT_R 1
22145_ACEOF
22146 have_getmntent_r="yes"
22147else
22148  have_getmntent_r="no"
22149fi
22150done
22151
22152
22153for ac_func in getmntent
22154do :
22155  ac_fn_c_check_func "$LINENO" "getmntent" "ac_cv_func_getmntent"
22156if test "x$ac_cv_func_getmntent" = xyes; then :
22157  cat >>confdefs.h <<_ACEOF
22158#define HAVE_GETMNTENT 1
22159_ACEOF
22160 have_getmntent="libc"
22161else
22162  have_getmntent="no"
22163fi
22164done
22165
22166if test "x$have_getmntent" = "xno"; then
22167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getmntent in -lsun" >&5
22168$as_echo_n "checking for getmntent in -lsun... " >&6; }
22169if ${ac_cv_lib_sun_getmntent+:} false; then :
22170  $as_echo_n "(cached) " >&6
22171else
22172  ac_check_lib_save_LIBS=$LIBS
22173LIBS="-lsun  $LIBS"
22174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22175/* end confdefs.h.  */
22176
22177/* Override any GCC internal prototype to avoid an error.
22178   Use char because int might match the return type of a GCC
22179   builtin and then its argument prototype would still apply.  */
22180#ifdef __cplusplus
22181extern "C"
22182#endif
22183char getmntent ();
22184int
22185main ()
22186{
22187return getmntent ();
22188  ;
22189  return 0;
22190}
22191_ACEOF
22192if ac_fn_c_try_link "$LINENO"; then :
22193  ac_cv_lib_sun_getmntent=yes
22194else
22195  ac_cv_lib_sun_getmntent=no
22196fi
22197rm -f core conftest.err conftest.$ac_objext \
22198    conftest$ac_exeext conftest.$ac_ext
22199LIBS=$ac_check_lib_save_LIBS
22200fi
22201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getmntent" >&5
22202$as_echo "$ac_cv_lib_sun_getmntent" >&6; }
22203if test "x$ac_cv_lib_sun_getmntent" = xyes; then :
22204  have_getmntent="sun"
22205else
22206  have_gemntent="no"
22207
22208fi
22209
22210fi
22211
22212if test "x$have_getmntent" = "xno"; then
22213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getmntent in -lseq" >&5
22214$as_echo_n "checking for getmntent in -lseq... " >&6; }
22215if ${ac_cv_lib_seq_getmntent+:} false; then :
22216  $as_echo_n "(cached) " >&6
22217else
22218  ac_check_lib_save_LIBS=$LIBS
22219LIBS="-lseq  $LIBS"
22220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22221/* end confdefs.h.  */
22222
22223/* Override any GCC internal prototype to avoid an error.
22224   Use char because int might match the return type of a GCC
22225   builtin and then its argument prototype would still apply.  */
22226#ifdef __cplusplus
22227extern "C"
22228#endif
22229char getmntent ();
22230int
22231main ()
22232{
22233return getmntent ();
22234  ;
22235  return 0;
22236}
22237_ACEOF
22238if ac_fn_c_try_link "$LINENO"; then :
22239  ac_cv_lib_seq_getmntent=yes
22240else
22241  ac_cv_lib_seq_getmntent=no
22242fi
22243rm -f core conftest.err conftest.$ac_objext \
22244    conftest$ac_exeext conftest.$ac_ext
22245LIBS=$ac_check_lib_save_LIBS
22246fi
22247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seq_getmntent" >&5
22248$as_echo "$ac_cv_lib_seq_getmntent" >&6; }
22249if test "x$ac_cv_lib_seq_getmntent" = xyes; then :
22250  have_getmntent="seq"
22251else
22252  have_getmntent="no"
22253
22254fi
22255
22256fi
22257
22258if test "x$have_getmntent" = "xno"; then
22259  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getmntent in -lgen" >&5
22260$as_echo_n "checking for getmntent in -lgen... " >&6; }
22261if ${ac_cv_lib_gen_getmntent+:} false; then :
22262  $as_echo_n "(cached) " >&6
22263else
22264  ac_check_lib_save_LIBS=$LIBS
22265LIBS="-lgen  $LIBS"
22266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22267/* end confdefs.h.  */
22268
22269/* Override any GCC internal prototype to avoid an error.
22270   Use char because int might match the return type of a GCC
22271   builtin and then its argument prototype would still apply.  */
22272#ifdef __cplusplus
22273extern "C"
22274#endif
22275char getmntent ();
22276int
22277main ()
22278{
22279return getmntent ();
22280  ;
22281  return 0;
22282}
22283_ACEOF
22284if ac_fn_c_try_link "$LINENO"; then :
22285  ac_cv_lib_gen_getmntent=yes
22286else
22287  ac_cv_lib_gen_getmntent=no
22288fi
22289rm -f core conftest.err conftest.$ac_objext \
22290    conftest$ac_exeext conftest.$ac_ext
22291LIBS=$ac_check_lib_save_LIBS
22292fi
22293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getmntent" >&5
22294$as_echo "$ac_cv_lib_gen_getmntent" >&6; }
22295if test "x$ac_cv_lib_gen_getmntent" = xyes; then :
22296  have_getmntent="gen"
22297else
22298  have_getmntent="no"
22299
22300fi
22301
22302fi
22303
22304if test "x$have_getmntent" = "xlibc"; then
22305  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getmntent takes one argument" >&5
22306$as_echo_n "checking whether getmntent takes one argument... " >&6; }
22307if ${c_cv_have_one_getmntent+:} false; then :
22308  $as_echo_n "(cached) " >&6
22309else
22310
22311      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22312/* end confdefs.h.  */
22313
22314          #include "$srcdir/src/utils/mount/mount.h"
22315int
22316main ()
22317{
22318
22319              FILE *fh;
22320              struct mntent *me;
22321              fh = setmntent ("/etc/mtab", "r");
22322              me = getmntent (fh);
22323              return me->mnt_passno;
22324
22325
22326  ;
22327  return 0;
22328}
22329
22330_ACEOF
22331if ac_fn_c_try_compile "$LINENO"; then :
22332  c_cv_have_one_getmntent="yes"
22333else
22334  c_cv_have_one_getmntent="no"
22335
22336fi
22337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22338
22339
22340fi
22341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_one_getmntent" >&5
22342$as_echo "$c_cv_have_one_getmntent" >&6; }
22343
22344  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getmntent takes two arguments" >&5
22345$as_echo_n "checking whether getmntent takes two arguments... " >&6; }
22346if ${c_cv_have_two_getmntent+:} false; then :
22347  $as_echo_n "(cached) " >&6
22348else
22349
22350      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22351/* end confdefs.h.  */
22352
22353          #include "$srcdir/src/utils/mount/mount.h"
22354int
22355main ()
22356{
22357
22358              FILE *fh;
22359              struct mnttab mt;
22360              int status;
22361              fh = fopen ("/etc/mnttab", "r");
22362              status = getmntent (fh, &mt);
22363              return status;
22364
22365
22366  ;
22367  return 0;
22368}
22369
22370_ACEOF
22371if ac_fn_c_try_compile "$LINENO"; then :
22372  c_cv_have_two_getmntent="yes"
22373else
22374  c_cv_have_two_getmntent="no"
22375
22376fi
22377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22378
22379
22380fi
22381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_two_getmntent" >&5
22382$as_echo "$c_cv_have_two_getmntent" >&6; }
22383fi
22384
22385# Check for different versions of `getmntent' here..
22386
22387if test "x$have_getmntent" = "xlibc"; then
22388  if test "x$c_cv_have_one_getmntent" = "xyes"; then
22389
22390$as_echo "#define HAVE_ONE_GETMNTENT 1" >>confdefs.h
22391
22392  fi
22393
22394  if test "x$c_cv_have_two_getmntent" = "xyes"; then
22395
22396$as_echo "#define HAVE_TWO_GETMNTENT 1" >>confdefs.h
22397
22398  fi
22399fi
22400
22401if test "x$have_getmntent" = "xsun"; then
22402
22403$as_echo "#define HAVE_SUN_GETMNTENT 1" >>confdefs.h
22404
22405fi
22406
22407if test "x$have_getmntent" = "xgen"; then
22408
22409$as_echo "#define HAVE_GEN_GETMNTENT 1" >>confdefs.h
22410
22411fi
22412
22413# Check for htonll
22414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether htonll is defined" >&5
22415$as_echo_n "checking whether htonll is defined... " >&6; }
22416if ${c_cv_have_htonll+:} false; then :
22417  $as_echo_n "(cached) " >&6
22418else
22419
22420    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22421/* end confdefs.h.  */
22422
22423
22424            #include <inttypes.h>
22425            #include <sys/types.h>
22426            #include <netinet/in.h>
22427
22428int
22429main ()
22430{
22431return htonll(0);
22432
22433  ;
22434  return 0;
22435}
22436
22437_ACEOF
22438if ac_fn_c_try_link "$LINENO"; then :
22439  c_cv_have_htonll="yes"
22440else
22441  c_cv_have_htonll="no"
22442
22443fi
22444rm -f core conftest.err conftest.$ac_objext \
22445    conftest$ac_exeext conftest.$ac_ext
22446
22447
22448fi
22449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_htonll" >&5
22450$as_echo "$c_cv_have_htonll" >&6; }
22451
22452if test "x$c_cv_have_htonll" = "xyes"; then
22453
22454$as_echo "#define HAVE_HTONLL 1" >>confdefs.h
22455
22456fi
22457
22458# Check for structures
22459ac_fn_c_check_member "$LINENO" "struct if_data" "ifi_ibytes" "ac_cv_member_struct_if_data_ifi_ibytes" "
22460    #include <sys/types.h>
22461    #include <sys/socket.h>
22462    #include <net/if.h>
22463
22464
22465"
22466if test "x$ac_cv_member_struct_if_data_ifi_ibytes" = xyes; then :
22467
22468cat >>confdefs.h <<_ACEOF
22469#define HAVE_STRUCT_IF_DATA_IFI_IBYTES 1
22470_ACEOF
22471
22472
22473$as_echo "#define HAVE_STRUCT_IF_DATA 1" >>confdefs.h
22474
22475fi
22476ac_fn_c_check_member "$LINENO" "struct if_data" "ifi_opackets" "ac_cv_member_struct_if_data_ifi_opackets" "
22477    #include <sys/types.h>
22478    #include <sys/socket.h>
22479    #include <net/if.h>
22480
22481
22482"
22483if test "x$ac_cv_member_struct_if_data_ifi_opackets" = xyes; then :
22484
22485cat >>confdefs.h <<_ACEOF
22486#define HAVE_STRUCT_IF_DATA_IFI_OPACKETS 1
22487_ACEOF
22488
22489
22490$as_echo "#define HAVE_STRUCT_IF_DATA 1" >>confdefs.h
22491
22492fi
22493ac_fn_c_check_member "$LINENO" "struct if_data" "ifi_ierrors" "ac_cv_member_struct_if_data_ifi_ierrors" "
22494    #include <sys/types.h>
22495    #include <sys/socket.h>
22496    #include <net/if.h>
22497
22498
22499"
22500if test "x$ac_cv_member_struct_if_data_ifi_ierrors" = xyes; then :
22501
22502cat >>confdefs.h <<_ACEOF
22503#define HAVE_STRUCT_IF_DATA_IFI_IERRORS 1
22504_ACEOF
22505
22506
22507$as_echo "#define HAVE_STRUCT_IF_DATA 1" >>confdefs.h
22508
22509fi
22510
22511
22512ac_fn_c_check_member "$LINENO" "struct net_device_stats" "rx_bytes" "ac_cv_member_struct_net_device_stats_rx_bytes" "
22513    #include <sys/types.h>
22514    #include <sys/socket.h>
22515    #include <linux/if.h>
22516    #include <linux/netdevice.h>
22517
22518
22519"
22520if test "x$ac_cv_member_struct_net_device_stats_rx_bytes" = xyes; then :
22521
22522cat >>confdefs.h <<_ACEOF
22523#define HAVE_STRUCT_NET_DEVICE_STATS_RX_BYTES 1
22524_ACEOF
22525
22526
22527$as_echo "#define HAVE_STRUCT_NET_DEVICE_STATS 1" >>confdefs.h
22528
22529fi
22530ac_fn_c_check_member "$LINENO" "struct net_device_stats" "tx_packets" "ac_cv_member_struct_net_device_stats_tx_packets" "
22531    #include <sys/types.h>
22532    #include <sys/socket.h>
22533    #include <linux/if.h>
22534    #include <linux/netdevice.h>
22535
22536
22537"
22538if test "x$ac_cv_member_struct_net_device_stats_tx_packets" = xyes; then :
22539
22540cat >>confdefs.h <<_ACEOF
22541#define HAVE_STRUCT_NET_DEVICE_STATS_TX_PACKETS 1
22542_ACEOF
22543
22544
22545$as_echo "#define HAVE_STRUCT_NET_DEVICE_STATS 1" >>confdefs.h
22546
22547fi
22548ac_fn_c_check_member "$LINENO" "struct net_device_stats" "rx_errors" "ac_cv_member_struct_net_device_stats_rx_errors" "
22549    #include <sys/types.h>
22550    #include <sys/socket.h>
22551    #include <linux/if.h>
22552    #include <linux/netdevice.h>
22553
22554
22555"
22556if test "x$ac_cv_member_struct_net_device_stats_rx_errors" = xyes; then :
22557
22558cat >>confdefs.h <<_ACEOF
22559#define HAVE_STRUCT_NET_DEVICE_STATS_RX_ERRORS 1
22560_ACEOF
22561
22562
22563$as_echo "#define HAVE_STRUCT_NET_DEVICE_STATS 1" >>confdefs.h
22564
22565fi
22566
22567
22568ac_fn_c_check_member "$LINENO" "struct inet_diag_req" "id" "ac_cv_member_struct_inet_diag_req_id" "#include <linux/inet_diag.h>
22569
22570"
22571if test "x$ac_cv_member_struct_inet_diag_req_id" = xyes; then :
22572
22573cat >>confdefs.h <<_ACEOF
22574#define HAVE_STRUCT_INET_DIAG_REQ_ID 1
22575_ACEOF
22576
22577
22578$as_echo "#define HAVE_STRUCT_LINUX_INET_DIAG_REQ 1" >>confdefs.h
22579
22580fi
22581ac_fn_c_check_member "$LINENO" "struct inet_diag_req" "idiag_states" "ac_cv_member_struct_inet_diag_req_idiag_states" "#include <linux/inet_diag.h>
22582
22583"
22584if test "x$ac_cv_member_struct_inet_diag_req_idiag_states" = xyes; then :
22585
22586cat >>confdefs.h <<_ACEOF
22587#define HAVE_STRUCT_INET_DIAG_REQ_IDIAG_STATES 1
22588_ACEOF
22589
22590
22591$as_echo "#define HAVE_STRUCT_LINUX_INET_DIAG_REQ 1" >>confdefs.h
22592
22593fi
22594
22595
22596ac_fn_c_check_member "$LINENO" "struct ip_mreqn" "imr_ifindex" "ac_cv_member_struct_ip_mreqn_imr_ifindex" "
22597    #include <netinet/in.h>
22598    #include <net/if.h>
22599
22600
22601"
22602if test "x$ac_cv_member_struct_ip_mreqn_imr_ifindex" = xyes; then :
22603
22604cat >>confdefs.h <<_ACEOF
22605#define HAVE_STRUCT_IP_MREQN_IMR_IFINDEX 1
22606_ACEOF
22607
22608
22609fi
22610
22611
22612ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_pid" "ac_cv_member_struct_kinfo_proc_ki_pid" "
22613    #include <kvm.h>
22614    #include <sys/param.h>
22615    #include <sys/sysctl.h>
22616    #include <sys/user.h>
22617
22618
22619"
22620if test "x$ac_cv_member_struct_kinfo_proc_ki_pid" = xyes; then :
22621
22622cat >>confdefs.h <<_ACEOF
22623#define HAVE_STRUCT_KINFO_PROC_KI_PID 1
22624_ACEOF
22625
22626
22627
22628$as_echo "#define HAVE_STRUCT_KINFO_PROC_FREEBSD 1" >>confdefs.h
22629
22630    have_struct_kinfo_proc_freebsd="yes"
22631
22632fi
22633ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_rssize" "ac_cv_member_struct_kinfo_proc_ki_rssize" "
22634    #include <kvm.h>
22635    #include <sys/param.h>
22636    #include <sys/sysctl.h>
22637    #include <sys/user.h>
22638
22639
22640"
22641if test "x$ac_cv_member_struct_kinfo_proc_ki_rssize" = xyes; then :
22642
22643cat >>confdefs.h <<_ACEOF
22644#define HAVE_STRUCT_KINFO_PROC_KI_RSSIZE 1
22645_ACEOF
22646
22647
22648
22649$as_echo "#define HAVE_STRUCT_KINFO_PROC_FREEBSD 1" >>confdefs.h
22650
22651    have_struct_kinfo_proc_freebsd="yes"
22652
22653fi
22654ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_rusage" "ac_cv_member_struct_kinfo_proc_ki_rusage" "
22655    #include <kvm.h>
22656    #include <sys/param.h>
22657    #include <sys/sysctl.h>
22658    #include <sys/user.h>
22659
22660
22661"
22662if test "x$ac_cv_member_struct_kinfo_proc_ki_rusage" = xyes; then :
22663
22664cat >>confdefs.h <<_ACEOF
22665#define HAVE_STRUCT_KINFO_PROC_KI_RUSAGE 1
22666_ACEOF
22667
22668
22669
22670$as_echo "#define HAVE_STRUCT_KINFO_PROC_FREEBSD 1" >>confdefs.h
22671
22672    have_struct_kinfo_proc_freebsd="yes"
22673
22674fi
22675
22676
22677ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "p_pid" "ac_cv_member_struct_kinfo_proc_p_pid" "
22678    #include <sys/param.h>
22679    #include <sys/sysctl.h>
22680    #include <kvm.h>
22681
22682
22683"
22684if test "x$ac_cv_member_struct_kinfo_proc_p_pid" = xyes; then :
22685
22686cat >>confdefs.h <<_ACEOF
22687#define HAVE_STRUCT_KINFO_PROC_P_PID 1
22688_ACEOF
22689
22690
22691
22692$as_echo "#define HAVE_STRUCT_KINFO_PROC_OPENBSD 1" >>confdefs.h
22693
22694    have_struct_kinfo_proc_openbsd="yes"
22695
22696fi
22697ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "p_vm_rssize" "ac_cv_member_struct_kinfo_proc_p_vm_rssize" "
22698    #include <sys/param.h>
22699    #include <sys/sysctl.h>
22700    #include <kvm.h>
22701
22702
22703"
22704if test "x$ac_cv_member_struct_kinfo_proc_p_vm_rssize" = xyes; then :
22705
22706cat >>confdefs.h <<_ACEOF
22707#define HAVE_STRUCT_KINFO_PROC_P_VM_RSSIZE 1
22708_ACEOF
22709
22710
22711
22712$as_echo "#define HAVE_STRUCT_KINFO_PROC_OPENBSD 1" >>confdefs.h
22713
22714    have_struct_kinfo_proc_openbsd="yes"
22715
22716fi
22717
22718
22719ac_fn_c_check_member "$LINENO" "struct kinfo_proc2" "p_pid" "ac_cv_member_struct_kinfo_proc2_p_pid" "
22720    #include <sys/param.h>
22721    #include <sys/sysctl.h>
22722    #include <kvm.h>
22723
22724
22725"
22726if test "x$ac_cv_member_struct_kinfo_proc2_p_pid" = xyes; then :
22727
22728cat >>confdefs.h <<_ACEOF
22729#define HAVE_STRUCT_KINFO_PROC2_P_PID 1
22730_ACEOF
22731
22732
22733
22734$as_echo "#define HAVE_STRUCT_KINFO_PROC2_NETBSD 1" >>confdefs.h
22735
22736    have_struct_kinfo_proc2_netbsd="yes"
22737
22738fi
22739ac_fn_c_check_member "$LINENO" "struct kinfo_proc2" "p_uru_maxrss" "ac_cv_member_struct_kinfo_proc2_p_uru_maxrss" "
22740    #include <sys/param.h>
22741    #include <sys/sysctl.h>
22742    #include <kvm.h>
22743
22744
22745"
22746if test "x$ac_cv_member_struct_kinfo_proc2_p_uru_maxrss" = xyes; then :
22747
22748cat >>confdefs.h <<_ACEOF
22749#define HAVE_STRUCT_KINFO_PROC2_P_URU_MAXRSS 1
22750_ACEOF
22751
22752
22753
22754$as_echo "#define HAVE_STRUCT_KINFO_PROC2_NETBSD 1" >>confdefs.h
22755
22756    have_struct_kinfo_proc2_netbsd="yes"
22757
22758fi
22759
22760
22761ac_fn_c_check_member "$LINENO" "struct udphdr" "uh_dport" "ac_cv_member_struct_udphdr_uh_dport" "
22762    #define _BSD_SOURCE
22763    #define _DEFAULT_SOURCE
22764    #include <stdint.h>
22765    #if HAVE_SYS_TYPES_H
22766    # include <sys/types.h>
22767    #endif
22768    #if HAVE_NETINET_IN_SYSTM_H
22769    # include <netinet/in_systm.h>
22770    #endif
22771    #if HAVE_NETINET_IN_H
22772    # include <netinet/in.h>
22773    #endif
22774    #if HAVE_NETINET_IP_H
22775    # include <netinet/ip.h>
22776    #endif
22777    #if HAVE_NETINET_UDP_H
22778    # include <netinet/udp.h>
22779    #endif
22780
22781
22782"
22783if test "x$ac_cv_member_struct_udphdr_uh_dport" = xyes; then :
22784
22785cat >>confdefs.h <<_ACEOF
22786#define HAVE_STRUCT_UDPHDR_UH_DPORT 1
22787_ACEOF
22788
22789
22790fi
22791ac_fn_c_check_member "$LINENO" "struct udphdr" "uh_sport" "ac_cv_member_struct_udphdr_uh_sport" "
22792    #define _BSD_SOURCE
22793    #define _DEFAULT_SOURCE
22794    #include <stdint.h>
22795    #if HAVE_SYS_TYPES_H
22796    # include <sys/types.h>
22797    #endif
22798    #if HAVE_NETINET_IN_SYSTM_H
22799    # include <netinet/in_systm.h>
22800    #endif
22801    #if HAVE_NETINET_IN_H
22802    # include <netinet/in.h>
22803    #endif
22804    #if HAVE_NETINET_IP_H
22805    # include <netinet/ip.h>
22806    #endif
22807    #if HAVE_NETINET_UDP_H
22808    # include <netinet/udp.h>
22809    #endif
22810
22811
22812"
22813if test "x$ac_cv_member_struct_udphdr_uh_sport" = xyes; then :
22814
22815cat >>confdefs.h <<_ACEOF
22816#define HAVE_STRUCT_UDPHDR_UH_SPORT 1
22817_ACEOF
22818
22819
22820fi
22821
22822
22823ac_fn_c_check_member "$LINENO" "struct udphdr" "dest" "ac_cv_member_struct_udphdr_dest" "
22824    #define _BSD_SOURCE
22825    #define _DEFAULT_SOURCE
22826    #include <stdint.h>
22827    #if HAVE_SYS_TYPES_H
22828    # include <sys/types.h>
22829    #endif
22830    #if HAVE_NETINET_IN_SYSTM_H
22831    # include <netinet/in_systm.h>
22832    #endif
22833    #if HAVE_NETINET_IN_H
22834    # include <netinet/in.h>
22835    #endif
22836    #if HAVE_NETINET_IP_H
22837    # include <netinet/ip.h>
22838    #endif
22839    #if HAVE_NETINET_UDP_H
22840    # include <netinet/udp.h>
22841    #endif
22842
22843
22844"
22845if test "x$ac_cv_member_struct_udphdr_dest" = xyes; then :
22846
22847cat >>confdefs.h <<_ACEOF
22848#define HAVE_STRUCT_UDPHDR_DEST 1
22849_ACEOF
22850
22851
22852fi
22853ac_fn_c_check_member "$LINENO" "struct udphdr" "source" "ac_cv_member_struct_udphdr_source" "
22854    #define _BSD_SOURCE
22855    #define _DEFAULT_SOURCE
22856    #include <stdint.h>
22857    #if HAVE_SYS_TYPES_H
22858    # include <sys/types.h>
22859    #endif
22860    #if HAVE_NETINET_IN_SYSTM_H
22861    # include <netinet/in_systm.h>
22862    #endif
22863    #if HAVE_NETINET_IN_H
22864    # include <netinet/in.h>
22865    #endif
22866    #if HAVE_NETINET_IP_H
22867    # include <netinet/ip.h>
22868    #endif
22869    #if HAVE_NETINET_UDP_H
22870    # include <netinet/udp.h>
22871    #endif
22872
22873
22874"
22875if test "x$ac_cv_member_struct_udphdr_source" = xyes; then :
22876
22877cat >>confdefs.h <<_ACEOF
22878#define HAVE_STRUCT_UDPHDR_SOURCE 1
22879_ACEOF
22880
22881
22882fi
22883
22884
22885ac_fn_c_check_member "$LINENO" "kstat_io_t" "nwritten" "ac_cv_member_kstat_io_t_nwritten" "# include <kstat.h>
22886
22887"
22888if test "x$ac_cv_member_kstat_io_t_nwritten" = xyes; then :
22889
22890cat >>confdefs.h <<_ACEOF
22891#define HAVE_KSTAT_IO_T_NWRITTEN 1
22892_ACEOF
22893
22894
22895fi
22896ac_fn_c_check_member "$LINENO" "kstat_io_t" "writes" "ac_cv_member_kstat_io_t_writes" "# include <kstat.h>
22897
22898"
22899if test "x$ac_cv_member_kstat_io_t_writes" = xyes; then :
22900
22901cat >>confdefs.h <<_ACEOF
22902#define HAVE_KSTAT_IO_T_WRITES 1
22903_ACEOF
22904
22905
22906fi
22907ac_fn_c_check_member "$LINENO" "kstat_io_t" "nwrites" "ac_cv_member_kstat_io_t_nwrites" "# include <kstat.h>
22908
22909"
22910if test "x$ac_cv_member_kstat_io_t_nwrites" = xyes; then :
22911
22912cat >>confdefs.h <<_ACEOF
22913#define HAVE_KSTAT_IO_T_NWRITES 1
22914_ACEOF
22915
22916
22917fi
22918ac_fn_c_check_member "$LINENO" "kstat_io_t" "wtime" "ac_cv_member_kstat_io_t_wtime" "# include <kstat.h>
22919
22920"
22921if test "x$ac_cv_member_kstat_io_t_wtime" = xyes; then :
22922
22923cat >>confdefs.h <<_ACEOF
22924#define HAVE_KSTAT_IO_T_WTIME 1
22925_ACEOF
22926
22927
22928fi
22929
22930
22931# check for pthread_setname_np
22932SAVE_LDFLAGS="$LDFLAGS"
22933LDFLAGS="$LDFLAGS -lpthread"
22934
22935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
22936$as_echo_n "checking for pthread_setname_np... " >&6; }
22937have_pthread_setname_np="no"
22938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22939/* end confdefs.h.  */
22940
22941
22942        #define _GNU_SOURCE
22943        #include <pthread.h>
22944
22945int
22946main ()
22947{
22948pthread_setname_np((pthread_t) {0}, "conftest");
22949
22950  ;
22951  return 0;
22952}
22953
22954_ACEOF
22955if ac_fn_c_try_link "$LINENO"; then :
22956
22957    have_pthread_setname_np="yes"
22958
22959$as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
22960
22961
22962
22963fi
22964rm -f core conftest.err conftest.$ac_objext \
22965    conftest$ac_exeext conftest.$ac_ext
22966
22967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_setname_np" >&5
22968$as_echo "$have_pthread_setname_np" >&6; }
22969
22970# check for pthread_set_name_np(3) (FreeBSD)
22971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
22972$as_echo_n "checking for pthread_set_name_np... " >&6; }
22973have_pthread_set_name_np="no"
22974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22975/* end confdefs.h.  */
22976
22977    #include <pthread_np.h>
22978int
22979main ()
22980{
22981pthread_set_name_np((pthread_t) {0}, "conftest");
22982
22983  ;
22984  return 0;
22985}
22986
22987_ACEOF
22988if ac_fn_c_try_link "$LINENO"; then :
22989
22990    have_pthread_set_name_np="yes"
22991
22992$as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
22993
22994
22995
22996fi
22997rm -f core conftest.err conftest.$ac_objext \
22998    conftest$ac_exeext conftest.$ac_ext
22999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_set_name_np" >&5
23000$as_echo "$have_pthread_set_name_np" >&6; }
23001
23002LDFLAGS="$SAVE_LDFLAGS"
23003
23004ac_fn_c_check_type "$LINENO" "struct ip6_ext" "ac_cv_type_struct_ip6_ext" "
23005    #include <stdint.h>
23006    #if HAVE_SYS_TYPES_H
23007    # include <sys/types.h>
23008    #endif
23009    #if HAVE_NETINET_IN_SYSTM_H
23010    # include <netinet/in_systm.h>
23011    #endif
23012    #if HAVE_NETINET_IN_H
23013    # include <netinet/in.h>
23014    #endif
23015    #if HAVE_NETINET_IP6_H
23016    # include <netinet/ip6.h>
23017    #endif
23018
23019
23020"
23021if test "x$ac_cv_type_struct_ip6_ext" = xyes; then :
23022
23023cat >>confdefs.h <<_ACEOF
23024#define HAVE_STRUCT_IP6_EXT 1
23025_ACEOF
23026
23027have_ip6_ext="yes"
23028else
23029  have_ip6_ext="no"
23030fi
23031
23032
23033if test "x$have_ip6_ext" = "xno"; then
23034  SAVE_CFLAGS="$CFLAGS"
23035  CFLAGS="$CFLAGS -DSOLARIS2=8"
23036  ac_fn_c_check_type "$LINENO" "struct ip6_ext" "ac_cv_type_struct_ip6_ext" "
23037      #include <stdint.h>
23038      #if HAVE_SYS_TYPES_H
23039      # include <sys/types.h>
23040      #endif
23041      #if HAVE_NETINET_IN_SYSTM_H
23042      # include <netinet/in_systm.h>
23043      #endif
23044      #if HAVE_NETINET_IN_H
23045      # include <netinet/in.h>
23046      #endif
23047      #if HAVE_NETINET_IP6_H
23048      # include <netinet/ip6.h>
23049      #endif
23050
23051
23052"
23053if test "x$ac_cv_type_struct_ip6_ext" = xyes; then :
23054
23055cat >>confdefs.h <<_ACEOF
23056#define HAVE_STRUCT_IP6_EXT 1
23057_ACEOF
23058
23059have_ip6_ext="yes, with -DSOLARIS2=8"
23060else
23061  have_ip6_ext="no"
23062fi
23063
23064  if test "x$have_ip6_ext" = "xno"; then
23065    CFLAGS="$SAVE_CFLAGS"
23066  fi
23067fi
23068
23069# libi2c-dev
23070if test "x$ac_system" = "xLinux"; then
23071  with_libi2c_libs=""
23072  for ac_header in i2c/smbus.h
23073do :
23074  ac_fn_c_check_header_mongrel "$LINENO" "i2c/smbus.h" "ac_cv_header_i2c_smbus_h" "$ac_includes_default"
23075if test "x$ac_cv_header_i2c_smbus_h" = xyes; then :
23076  cat >>confdefs.h <<_ACEOF
23077#define HAVE_I2C_SMBUS_H 1
23078_ACEOF
23079 with_libi2c_libs="-li2c"
23080
23081fi
23082
23083done
23084
23085  ac_fn_c_check_decl "$LINENO" "i2c_smbus_read_i2c_block_data" "ac_cv_have_decl_i2c_smbus_read_i2c_block_data" "
23086      #include <stdlib.h>
23087      #include <linux/i2c-dev.h>
23088      #if HAVE_I2C_SMBUS_H
23089      # include <i2c/smbus.h>
23090      #endif
23091
23092
23093"
23094if test "x$ac_cv_have_decl_i2c_smbus_read_i2c_block_data" = xyes; then :
23095  with_libi2c="yes"
23096else
23097  with_libi2c="no (symbol i2c_smbus_read_i2c_block_data not found - have you installed libi2c-dev ?)"
23098fi
23099
23100  BUILD_WITH_LIBI2C_LIBS="$with_libi2c_libs"
23101
23102else
23103  with_libi2c="no (Linux only)"
23104fi
23105
23106#
23107# Checks for libraries begin here
23108#
23109
23110# Check for libpthread
23111SAVE_LIBS="$LIBS"
23112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
23113$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
23114if ${ac_cv_lib_pthread_pthread_create+:} false; then :
23115  $as_echo_n "(cached) " >&6
23116else
23117  ac_check_lib_save_LIBS=$LIBS
23118LIBS="-lpthread
23119 $LIBS"
23120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23121/* end confdefs.h.  */
23122
23123/* Override any GCC internal prototype to avoid an error.
23124   Use char because int might match the return type of a GCC
23125   builtin and then its argument prototype would still apply.  */
23126#ifdef __cplusplus
23127extern "C"
23128#endif
23129char pthread_create ();
23130int
23131main ()
23132{
23133return pthread_create ();
23134  ;
23135  return 0;
23136}
23137_ACEOF
23138if ac_fn_c_try_link "$LINENO"; then :
23139  ac_cv_lib_pthread_pthread_create=yes
23140else
23141  ac_cv_lib_pthread_pthread_create=no
23142fi
23143rm -f core conftest.err conftest.$ac_objext \
23144    conftest$ac_exeext conftest.$ac_ext
23145LIBS=$ac_check_lib_save_LIBS
23146fi
23147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
23148$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
23149if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
23150  cat >>confdefs.h <<_ACEOF
23151#define HAVE_LIBPTHREAD 1
23152_ACEOF
23153
23154  LIBS="-lpthread $LIBS"
23155
23156else
23157  as_fn_error $? "Symbol 'pthread_create' not found in libpthread" "$LINENO" 5
23158fi
23159
23160PTHREAD_LIBS="$LIBS"
23161LIBS="$SAVE_LIBS"
23162
23163
23164for ac_header in pthread.h
23165do :
23166  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
23167if test "x$ac_cv_header_pthread_h" = xyes; then :
23168  cat >>confdefs.h <<_ACEOF
23169#define HAVE_PTHREAD_H 1
23170_ACEOF
23171
23172else
23173  as_fn_error $? "pthread.h not found" "$LINENO" 5
23174
23175fi
23176
23177done
23178
23179
23180
23181
23182if test "x$ac_system" = "xAIX"; then
23183  with_perfstat="yes"
23184  with_procinfo="yes"
23185else
23186  with_perfstat="no (AIX only)"
23187  with_procinfo="no (AIX only)"
23188fi
23189
23190if test "x$with_perfstat" = "xyes"; then
23191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_reset in -lperfstat" >&5
23192$as_echo_n "checking for perfstat_reset in -lperfstat... " >&6; }
23193if ${ac_cv_lib_perfstat_perfstat_reset+:} false; then :
23194  $as_echo_n "(cached) " >&6
23195else
23196  ac_check_lib_save_LIBS=$LIBS
23197LIBS="-lperfstat  $LIBS"
23198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23199/* end confdefs.h.  */
23200
23201/* Override any GCC internal prototype to avoid an error.
23202   Use char because int might match the return type of a GCC
23203   builtin and then its argument prototype would still apply.  */
23204#ifdef __cplusplus
23205extern "C"
23206#endif
23207char perfstat_reset ();
23208int
23209main ()
23210{
23211return perfstat_reset ();
23212  ;
23213  return 0;
23214}
23215_ACEOF
23216if ac_fn_c_try_link "$LINENO"; then :
23217  ac_cv_lib_perfstat_perfstat_reset=yes
23218else
23219  ac_cv_lib_perfstat_perfstat_reset=no
23220fi
23221rm -f core conftest.err conftest.$ac_objext \
23222    conftest$ac_exeext conftest.$ac_ext
23223LIBS=$ac_check_lib_save_LIBS
23224fi
23225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_reset" >&5
23226$as_echo "$ac_cv_lib_perfstat_perfstat_reset" >&6; }
23227if test "x$ac_cv_lib_perfstat_perfstat_reset" = xyes; then :
23228  with_perfstat="yes"
23229else
23230  with_perfstat="no (perfstat not found)"
23231
23232fi
23233
23234fi
23235
23236if test "x$with_perfstat" = "xyes"; then
23237
23238$as_echo "#define HAVE_PERFSTAT 1" >>confdefs.h
23239
23240  # struct members pertaining to donation have been added to libperfstat somewhere between AIX5.3ML5 and AIX5.3ML9
23241  ac_fn_c_check_member "$LINENO" "perfstat_partition_type_t" "b.donate_enabled" "ac_cv_member_perfstat_partition_type_t_b_donate_enabled" "#include <libperfstat.h
23242
23243"
23244if test "x$ac_cv_member_perfstat_partition_type_t_b_donate_enabled" = xyes; then :
23245
23246fi
23247
23248  if test "x$av_cv_member_perfstat_partition_type_t_b_donate_enabled" = "xyes"; then
23249
23250$as_echo "#define PERFSTAT_SUPPORTS_DONATION 1" >>confdefs.h
23251
23252  fi
23253fi
23254 if test "x$with_perfstat" = "xyes"; then
23255  BUILD_WITH_PERFSTAT_TRUE=
23256  BUILD_WITH_PERFSTAT_FALSE='#'
23257else
23258  BUILD_WITH_PERFSTAT_TRUE='#'
23259  BUILD_WITH_PERFSTAT_FALSE=
23260fi
23261
23262
23263# Processes plugin under AIX.
23264if test "x$with_procinfo" = "xyes"; then
23265  for ac_header in procinfo.h
23266do :
23267  ac_fn_c_check_header_mongrel "$LINENO" "procinfo.h" "ac_cv_header_procinfo_h" "$ac_includes_default"
23268if test "x$ac_cv_header_procinfo_h" = xyes; then :
23269  cat >>confdefs.h <<_ACEOF
23270#define HAVE_PROCINFO_H 1
23271_ACEOF
23272
23273$as_echo "#define HAVE_PROCINFO_H 1" >>confdefs.h
23274
23275else
23276  with_procinfo="no (procinfo.h not found)"
23277
23278fi
23279
23280done
23281
23282fi
23283
23284if test "x$ac_system" = "xSolaris"; then
23285  with_kstat="yes"
23286  with_devinfo="yes"
23287else
23288  with_kstat="no (Solaris only)"
23289  with_devinfo="no (Solaris only)"
23290fi
23291
23292if test "x$with_kstat" = "xyes"; then
23293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
23294$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
23295if ${ac_cv_lib_kstat_kstat_open+:} false; then :
23296  $as_echo_n "(cached) " >&6
23297else
23298  ac_check_lib_save_LIBS=$LIBS
23299LIBS="-lkstat  $LIBS"
23300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23301/* end confdefs.h.  */
23302
23303/* Override any GCC internal prototype to avoid an error.
23304   Use char because int might match the return type of a GCC
23305   builtin and then its argument prototype would still apply.  */
23306#ifdef __cplusplus
23307extern "C"
23308#endif
23309char kstat_open ();
23310int
23311main ()
23312{
23313return kstat_open ();
23314  ;
23315  return 0;
23316}
23317_ACEOF
23318if ac_fn_c_try_link "$LINENO"; then :
23319  ac_cv_lib_kstat_kstat_open=yes
23320else
23321  ac_cv_lib_kstat_kstat_open=no
23322fi
23323rm -f core conftest.err conftest.$ac_objext \
23324    conftest$ac_exeext conftest.$ac_ext
23325LIBS=$ac_check_lib_save_LIBS
23326fi
23327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
23328$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
23329if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
23330  with_kstat="yes"
23331else
23332  with_kstat="no (libkstat not found)"
23333
23334fi
23335
23336fi
23337
23338if test "x$with_kstat" = "xyes"; then
23339  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for di_init in -ldevinfo" >&5
23340$as_echo_n "checking for di_init in -ldevinfo... " >&6; }
23341if ${ac_cv_lib_devinfo_di_init+:} false; then :
23342  $as_echo_n "(cached) " >&6
23343else
23344  ac_check_lib_save_LIBS=$LIBS
23345LIBS="-ldevinfo  $LIBS"
23346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23347/* end confdefs.h.  */
23348
23349/* Override any GCC internal prototype to avoid an error.
23350   Use char because int might match the return type of a GCC
23351   builtin and then its argument prototype would still apply.  */
23352#ifdef __cplusplus
23353extern "C"
23354#endif
23355char di_init ();
23356int
23357main ()
23358{
23359return di_init ();
23360  ;
23361  return 0;
23362}
23363_ACEOF
23364if ac_fn_c_try_link "$LINENO"; then :
23365  ac_cv_lib_devinfo_di_init=yes
23366else
23367  ac_cv_lib_devinfo_di_init=no
23368fi
23369rm -f core conftest.err conftest.$ac_objext \
23370    conftest$ac_exeext conftest.$ac_ext
23371LIBS=$ac_check_lib_save_LIBS
23372fi
23373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devinfo_di_init" >&5
23374$as_echo "$ac_cv_lib_devinfo_di_init" >&6; }
23375if test "x$ac_cv_lib_devinfo_di_init" = xyes; then :
23376  with_devinfo="yes"
23377else
23378  with_devinfo="no (not found)"
23379
23380fi
23381
23382  for ac_header in kstat.h
23383do :
23384  ac_fn_c_check_header_mongrel "$LINENO" "kstat.h" "ac_cv_header_kstat_h" "$ac_includes_default"
23385if test "x$ac_cv_header_kstat_h" = xyes; then :
23386  cat >>confdefs.h <<_ACEOF
23387#define HAVE_KSTAT_H 1
23388_ACEOF
23389
23390$as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
23391
23392else
23393  with_kstat="no (kstat.h not found)"
23394
23395fi
23396
23397done
23398
23399fi
23400
23401 if test "x$with_devinfo" = "xyes"; then
23402  BUILD_WITH_LIBDEVINFO_TRUE=
23403  BUILD_WITH_LIBDEVINFO_FALSE='#'
23404else
23405  BUILD_WITH_LIBDEVINFO_TRUE='#'
23406  BUILD_WITH_LIBDEVINFO_FALSE=
23407fi
23408
23409 if test "x$with_kstat" = "xyes"; then
23410  BUILD_WITH_LIBKSTAT_TRUE=
23411  BUILD_WITH_LIBKSTAT_FALSE='#'
23412else
23413  BUILD_WITH_LIBKSTAT_TRUE='#'
23414  BUILD_WITH_LIBKSTAT_FALSE=
23415fi
23416
23417
23418if test "x$ac_system" = "xDarwin"; then
23419  with_libiokit="yes"
23420else
23421  with_libiokit="no"
23422fi
23423 if test "x$with_libiokit" = "xyes"; then
23424  BUILD_WITH_LIBIOKIT_TRUE=
23425  BUILD_WITH_LIBIOKIT_FALSE='#'
23426else
23427  BUILD_WITH_LIBIOKIT_TRUE='#'
23428  BUILD_WITH_LIBIOKIT_FALSE=
23429fi
23430
23431
23432with_libkvm="no"
23433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_getprocs in -lkvm" >&5
23434$as_echo_n "checking for kvm_getprocs in -lkvm... " >&6; }
23435if ${ac_cv_lib_kvm_kvm_getprocs+:} false; then :
23436  $as_echo_n "(cached) " >&6
23437else
23438  ac_check_lib_save_LIBS=$LIBS
23439LIBS="-lkvm  $LIBS"
23440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23441/* end confdefs.h.  */
23442
23443/* Override any GCC internal prototype to avoid an error.
23444   Use char because int might match the return type of a GCC
23445   builtin and then its argument prototype would still apply.  */
23446#ifdef __cplusplus
23447extern "C"
23448#endif
23449char kvm_getprocs ();
23450int
23451main ()
23452{
23453return kvm_getprocs ();
23454  ;
23455  return 0;
23456}
23457_ACEOF
23458if ac_fn_c_try_link "$LINENO"; then :
23459  ac_cv_lib_kvm_kvm_getprocs=yes
23460else
23461  ac_cv_lib_kvm_kvm_getprocs=no
23462fi
23463rm -f core conftest.err conftest.$ac_objext \
23464    conftest$ac_exeext conftest.$ac_ext
23465LIBS=$ac_check_lib_save_LIBS
23466fi
23467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_getprocs" >&5
23468$as_echo "$ac_cv_lib_kvm_kvm_getprocs" >&6; }
23469if test "x$ac_cv_lib_kvm_kvm_getprocs" = xyes; then :
23470  with_kvm_getprocs="yes"
23471else
23472  with_kvm_getprocs="no"
23473
23474fi
23475
23476
23477if test "x$with_kvm_getprocs" = "xyes"; then
23478
23479$as_echo "#define HAVE_LIBKVM_GETPROCS 1" >>confdefs.h
23480
23481  with_libkvm="yes"
23482fi
23483
23484 if test "x$with_kvm_getprocs" = "xyes"; then
23485  BUILD_WITH_LIBKVM_GETPROCS_TRUE=
23486  BUILD_WITH_LIBKVM_GETPROCS_FALSE='#'
23487else
23488  BUILD_WITH_LIBKVM_GETPROCS_TRUE='#'
23489  BUILD_WITH_LIBKVM_GETPROCS_FALSE=
23490fi
23491
23492
23493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_getswapinfo in -lkvm" >&5
23494$as_echo_n "checking for kvm_getswapinfo in -lkvm... " >&6; }
23495if ${ac_cv_lib_kvm_kvm_getswapinfo+:} false; then :
23496  $as_echo_n "(cached) " >&6
23497else
23498  ac_check_lib_save_LIBS=$LIBS
23499LIBS="-lkvm  $LIBS"
23500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23501/* end confdefs.h.  */
23502
23503/* Override any GCC internal prototype to avoid an error.
23504   Use char because int might match the return type of a GCC
23505   builtin and then its argument prototype would still apply.  */
23506#ifdef __cplusplus
23507extern "C"
23508#endif
23509char kvm_getswapinfo ();
23510int
23511main ()
23512{
23513return kvm_getswapinfo ();
23514  ;
23515  return 0;
23516}
23517_ACEOF
23518if ac_fn_c_try_link "$LINENO"; then :
23519  ac_cv_lib_kvm_kvm_getswapinfo=yes
23520else
23521  ac_cv_lib_kvm_kvm_getswapinfo=no
23522fi
23523rm -f core conftest.err conftest.$ac_objext \
23524    conftest$ac_exeext conftest.$ac_ext
23525LIBS=$ac_check_lib_save_LIBS
23526fi
23527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_getswapinfo" >&5
23528$as_echo "$ac_cv_lib_kvm_kvm_getswapinfo" >&6; }
23529if test "x$ac_cv_lib_kvm_kvm_getswapinfo" = xyes; then :
23530  with_kvm_getswapinfo="yes"
23531else
23532  with_kvm_getswapinfo="no"
23533
23534fi
23535
23536
23537if test "x$with_kvm_getswapinfo" = "xyes"; then
23538
23539$as_echo "#define HAVE_LIBKVM_GETSWAPINFO 1" >>confdefs.h
23540
23541  with_libkvm="yes"
23542fi
23543
23544 if test "x$with_kvm_getswapinfo" = "xyes"; then
23545  BUILD_WITH_LIBKVM_GETSWAPINFO_TRUE=
23546  BUILD_WITH_LIBKVM_GETSWAPINFO_FALSE='#'
23547else
23548  BUILD_WITH_LIBKVM_GETSWAPINFO_TRUE='#'
23549  BUILD_WITH_LIBKVM_GETSWAPINFO_FALSE=
23550fi
23551
23552
23553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_nlist in -lkvm" >&5
23554$as_echo_n "checking for kvm_nlist in -lkvm... " >&6; }
23555if ${ac_cv_lib_kvm_kvm_nlist+:} false; then :
23556  $as_echo_n "(cached) " >&6
23557else
23558  ac_check_lib_save_LIBS=$LIBS
23559LIBS="-lkvm  $LIBS"
23560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23561/* end confdefs.h.  */
23562
23563/* Override any GCC internal prototype to avoid an error.
23564   Use char because int might match the return type of a GCC
23565   builtin and then its argument prototype would still apply.  */
23566#ifdef __cplusplus
23567extern "C"
23568#endif
23569char kvm_nlist ();
23570int
23571main ()
23572{
23573return kvm_nlist ();
23574  ;
23575  return 0;
23576}
23577_ACEOF
23578if ac_fn_c_try_link "$LINENO"; then :
23579  ac_cv_lib_kvm_kvm_nlist=yes
23580else
23581  ac_cv_lib_kvm_kvm_nlist=no
23582fi
23583rm -f core conftest.err conftest.$ac_objext \
23584    conftest$ac_exeext conftest.$ac_ext
23585LIBS=$ac_check_lib_save_LIBS
23586fi
23587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_nlist" >&5
23588$as_echo "$ac_cv_lib_kvm_kvm_nlist" >&6; }
23589if test "x$ac_cv_lib_kvm_kvm_nlist" = xyes; then :
23590  with_kvm_nlist="yes"
23591else
23592  with_kvm_nlist="no"
23593
23594fi
23595
23596
23597if test "x$with_kvm_nlist" = "xyes"; then
23598  for ac_header in bsd/nlist.h nlist.h
23599do :
23600  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23601ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23602if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23603  cat >>confdefs.h <<_ACEOF
23604#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23605_ACEOF
23606
23607fi
23608
23609done
23610
23611
23612$as_echo "#define HAVE_LIBKVM_NLIST 1" >>confdefs.h
23613
23614  with_libkvm="yes"
23615fi
23616
23617 if test "x$with_kvm_nlist" = "xyes"; then
23618  BUILD_WITH_LIBKVM_NLIST_TRUE=
23619  BUILD_WITH_LIBKVM_NLIST_FALSE='#'
23620else
23621  BUILD_WITH_LIBKVM_NLIST_TRUE='#'
23622  BUILD_WITH_LIBKVM_NLIST_FALSE=
23623fi
23624
23625
23626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_openfiles in -lkvm" >&5
23627$as_echo_n "checking for kvm_openfiles in -lkvm... " >&6; }
23628if ${ac_cv_lib_kvm_kvm_openfiles+:} false; then :
23629  $as_echo_n "(cached) " >&6
23630else
23631  ac_check_lib_save_LIBS=$LIBS
23632LIBS="-lkvm  $LIBS"
23633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23634/* end confdefs.h.  */
23635
23636/* Override any GCC internal prototype to avoid an error.
23637   Use char because int might match the return type of a GCC
23638   builtin and then its argument prototype would still apply.  */
23639#ifdef __cplusplus
23640extern "C"
23641#endif
23642char kvm_openfiles ();
23643int
23644main ()
23645{
23646return kvm_openfiles ();
23647  ;
23648  return 0;
23649}
23650_ACEOF
23651if ac_fn_c_try_link "$LINENO"; then :
23652  ac_cv_lib_kvm_kvm_openfiles=yes
23653else
23654  ac_cv_lib_kvm_kvm_openfiles=no
23655fi
23656rm -f core conftest.err conftest.$ac_objext \
23657    conftest$ac_exeext conftest.$ac_ext
23658LIBS=$ac_check_lib_save_LIBS
23659fi
23660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_openfiles" >&5
23661$as_echo "$ac_cv_lib_kvm_kvm_openfiles" >&6; }
23662if test "x$ac_cv_lib_kvm_kvm_openfiles" = xyes; then :
23663  with_kvm_openfiles="yes"
23664else
23665  with_kvm_openfiles="no"
23666
23667fi
23668
23669
23670if test "x$with_kvm_openfiles" = "xyes"; then
23671
23672$as_echo "#define HAVE_LIBKVM_NLIST 1" >>confdefs.h
23673
23674  with_libkvm="yes"
23675fi
23676
23677# --with-cuda {{{
23678
23679# Check whether --with-cuda was given.
23680if test "${with_cuda+set}" = set; then :
23681  withval=$with_cuda;
23682    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
23683      with_cuda_cppflags="-I$withval/include"
23684      with_cuda_ldflags="-I$withval/lib"
23685      with_cuda="yes"
23686    else
23687      with_cuda="$withval"
23688    fi
23689
23690else
23691  with_cuda="no"
23692
23693fi
23694
23695
23696if test "x$with_cuda" = "xyes"; then
23697  SAVE_CPPFLAGS="$CPPFLAGS"
23698  CPPFLAGS="$CPPFLAGS $with_cuda_cppflags"
23699
23700  for ac_header in nvml.h
23701do :
23702  ac_fn_c_check_header_mongrel "$LINENO" "nvml.h" "ac_cv_header_nvml_h" "$ac_includes_default"
23703if test "x$ac_cv_header_nvml_h" = xyes; then :
23704  cat >>confdefs.h <<_ACEOF
23705#define HAVE_NVML_H 1
23706_ACEOF
23707 with_cuda="yes"
23708else
23709  with_cuda="no (nvml.h not found)"
23710
23711fi
23712
23713done
23714
23715
23716  CPPFLAGS="$SAVE_CPPFLAGS"
23717fi
23718
23719if test "x$with_cuda" = "xyes"; then
23720  BUILD_WITH_CUDA_CPPFLAGS="$with_cuda_cppflags"
23721  BUILD_WITH_CUDA_LDFLAGS="$with_cuda_ldflags"
23722  BUILD_WITH_CUDA_LIBS="-lnvidia-ml"
23723fi
23724
23725
23726
23727
23728
23729# }}}
23730
23731# --with-libaquaero5 {{{
23732
23733# Check whether --with-libaquaero5 was given.
23734if test "${with_libaquaero5+set}" = set; then :
23735  withval=$with_libaquaero5;
23736    if test "x$withval" = "xyes"; then
23737      with_libaquaero5="yes"
23738    else if test "x$withval" = "xno"; then
23739      with_libaquaero5="no"
23740    else
23741      with_libaquaero5="yes"
23742      LIBAQUAERO5_CFLAGS="$LIBAQUAERO5_CFLAGS -I$withval/src"
23743      LIBAQUAERO5_LDFLAGS="$LIBAQUAERO5_LDFLAGS -L$withval/obj"
23744    fi; fi
23745
23746else
23747  with_libaquaero5="yes"
23748
23749fi
23750
23751
23752SAVE_CPPFLAGS="$CPPFLAGS"
23753SAVE_LDFLAGS="$LDFLAGS"
23754CPPFLAGS="$CPPFLAGS $LIBAQUAERO5_CFLAGS"
23755LDFLAGS="$LDFLAGS $LIBAQUAERO5_LDFLAGS"
23756
23757if test "x$with_libaquaero5" = "xyes"; then
23758  for ac_header in libaquaero5.h
23759do :
23760  ac_fn_c_check_header_mongrel "$LINENO" "libaquaero5.h" "ac_cv_header_libaquaero5_h" "$ac_includes_default"
23761if test "x$ac_cv_header_libaquaero5_h" = xyes; then :
23762  cat >>confdefs.h <<_ACEOF
23763#define HAVE_LIBAQUAERO5_H 1
23764_ACEOF
23765 with_libaquaero5="yes"
23766else
23767  with_libaquaero5="no (libaquaero5.h not found)"
23768
23769fi
23770
23771done
23772
23773fi
23774
23775if test "x$with_libaquaero5" = "xyes"; then
23776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libaquaero5_poll in -laquaero5" >&5
23777$as_echo_n "checking for libaquaero5_poll in -laquaero5... " >&6; }
23778if ${ac_cv_lib_aquaero5_libaquaero5_poll+:} false; then :
23779  $as_echo_n "(cached) " >&6
23780else
23781  ac_check_lib_save_LIBS=$LIBS
23782LIBS="-laquaero5  $LIBS"
23783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23784/* end confdefs.h.  */
23785
23786/* Override any GCC internal prototype to avoid an error.
23787   Use char because int might match the return type of a GCC
23788   builtin and then its argument prototype would still apply.  */
23789#ifdef __cplusplus
23790extern "C"
23791#endif
23792char libaquaero5_poll ();
23793int
23794main ()
23795{
23796return libaquaero5_poll ();
23797  ;
23798  return 0;
23799}
23800_ACEOF
23801if ac_fn_c_try_link "$LINENO"; then :
23802  ac_cv_lib_aquaero5_libaquaero5_poll=yes
23803else
23804  ac_cv_lib_aquaero5_libaquaero5_poll=no
23805fi
23806rm -f core conftest.err conftest.$ac_objext \
23807    conftest$ac_exeext conftest.$ac_ext
23808LIBS=$ac_check_lib_save_LIBS
23809fi
23810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aquaero5_libaquaero5_poll" >&5
23811$as_echo "$ac_cv_lib_aquaero5_libaquaero5_poll" >&6; }
23812if test "x$ac_cv_lib_aquaero5_libaquaero5_poll" = xyes; then :
23813  with_libaquaero5="yes"
23814else
23815  with_libaquaero5="no (symbol 'libaquaero5_poll' not found)"
23816
23817fi
23818
23819fi
23820
23821CPPFLAGS="$SAVE_CPPFLAGS"
23822LDFLAGS="$SAVE_LDFLAGS"
23823
23824if test "x$with_libaquaero5" = "xyes"; then
23825  BUILD_WITH_LIBAQUAERO5_CFLAGS="$LIBAQUAERO5_CFLAGS"
23826  BUILD_WITH_LIBAQUAERO5_LDFLAGS="$LIBAQUAERO5_LDFLAGS"
23827fi
23828
23829
23830# }}}
23831
23832# --with-libhiredis {{{
23833
23834# Check whether --with-libhiredis was given.
23835if test "${with_libhiredis+set}" = set; then :
23836  withval=$with_libhiredis;
23837    if test "x$withval" = "xyes"; then
23838      with_libhiredis="yes"
23839    else if test "x$withval" = "xno"; then
23840      with_libhiredis="no"
23841    else
23842      with_libhiredis="yes"
23843      LIBHIREDIS_CPPFLAGS="$LIBHIREDIS_CPPFLAGS -I$withval/include"
23844      LIBHIREDIS_LDFLAGS="$LIBHIREDIS_LDFLAGS -L$withval/lib"
23845    fi; fi
23846
23847else
23848  with_libhiredis="yes"
23849
23850fi
23851
23852
23853SAVE_CPPFLAGS="$CPPFLAGS"
23854SAVE_LDFLAGS="$LDFLAGS"
23855CPPFLAGS="$CPPFLAGS $LIBHIREDIS_CPPFLAGS"
23856LDFLAGS="$LDFLAGS $LIBHIREDIS_LDFLAGS"
23857
23858if test "x$with_libhiredis" = "xyes"; then
23859  for ac_header in hiredis/hiredis.h
23860do :
23861  ac_fn_c_check_header_mongrel "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default"
23862if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then :
23863  cat >>confdefs.h <<_ACEOF
23864#define HAVE_HIREDIS_HIREDIS_H 1
23865_ACEOF
23866 with_libhiredis="yes"
23867else
23868  with_libhiredis="no (hiredis.h not found)"
23869
23870fi
23871
23872done
23873
23874fi
23875
23876if test "x$with_libhiredis" = "xyes"; then
23877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redisCommand in -lhiredis" >&5
23878$as_echo_n "checking for redisCommand in -lhiredis... " >&6; }
23879if ${ac_cv_lib_hiredis_redisCommand+:} false; then :
23880  $as_echo_n "(cached) " >&6
23881else
23882  ac_check_lib_save_LIBS=$LIBS
23883LIBS="-lhiredis  $LIBS"
23884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23885/* end confdefs.h.  */
23886
23887/* Override any GCC internal prototype to avoid an error.
23888   Use char because int might match the return type of a GCC
23889   builtin and then its argument prototype would still apply.  */
23890#ifdef __cplusplus
23891extern "C"
23892#endif
23893char redisCommand ();
23894int
23895main ()
23896{
23897return redisCommand ();
23898  ;
23899  return 0;
23900}
23901_ACEOF
23902if ac_fn_c_try_link "$LINENO"; then :
23903  ac_cv_lib_hiredis_redisCommand=yes
23904else
23905  ac_cv_lib_hiredis_redisCommand=no
23906fi
23907rm -f core conftest.err conftest.$ac_objext \
23908    conftest$ac_exeext conftest.$ac_ext
23909LIBS=$ac_check_lib_save_LIBS
23910fi
23911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hiredis_redisCommand" >&5
23912$as_echo "$ac_cv_lib_hiredis_redisCommand" >&6; }
23913if test "x$ac_cv_lib_hiredis_redisCommand" = xyes; then :
23914  with_libhiredis="yes"
23915else
23916  with_libhiredis="no (symbol 'redisCommand' not found)"
23917
23918fi
23919
23920fi
23921
23922CPPFLAGS="$SAVE_CPPFLAGS"
23923LDFLAGS="$SAVE_LDFLAGS"
23924
23925if test "x$with_libhiredis" = "xyes"; then
23926  BUILD_WITH_LIBHIREDIS_CPPFLAGS="$LIBHIREDIS_CPPFLAGS"
23927  BUILD_WITH_LIBHIREDIS_LDFLAGS="$LIBHIREDIS_LDFLAGS"
23928fi
23929
23930
23931
23932# }}}
23933
23934# --with-libredfish {{{
23935
23936# Check whether --with-libredfish was given.
23937if test "${with_libredfish+set}" = set; then :
23938  withval=$with_libredfish;
23939    if test "x$withval" = "xyes"; then
23940      with_libredfish="yes"
23941    else if test "x$withval" = "xno"; then
23942      with_libredfish="no"
23943    else
23944      with_libredfish="yes"
23945      LIBREDFISH_CPPFLAGS="$LIBREDFISH_CPPFLAGS -I$withval/include"
23946      LIBREDFISH_LDFLAGS="$LIBREDFISH_LDFLAGS -L$withval/lib"
23947    fi; fi
23948
23949else
23950  with_libredfish="yes"
23951
23952fi
23953
23954
23955SAVE_CPPFLAGS="$CPPFLAGS"
23956SAVE_LDFLAGS="$LDFLAGS"
23957CPPFLAGS="$CPPFLAGS $LIBREDFISH_CPPFLAGS"
23958LDFLAGS="$LDFLAGS $LIBREDFISH_LDFLAGS"
23959
23960if test "x$with_libredfish" = "xyes"; then
23961  if test "x$LIBREDFISH_CPPFLAGS" != "x"; then
23962    { $as_echo "$as_me:${as_lineno-$LINENO}: libredfish CPPFLAGS: $LIBHIREDFISH_CPPFLAGS" >&5
23963$as_echo "$as_me: libredfish CPPFLAGS: $LIBHIREDFISH_CPPFLAGS" >&6;}
23964  fi
23965  for ac_header in redfish.h
23966do :
23967  ac_fn_c_check_header_mongrel "$LINENO" "redfish.h" "ac_cv_header_redfish_h" "$ac_includes_default"
23968if test "x$ac_cv_header_redfish_h" = xyes; then :
23969  cat >>confdefs.h <<_ACEOF
23970#define HAVE_REDFISH_H 1
23971_ACEOF
23972 with_libredfish="yes"
23973else
23974  with_libredfish="no (redfish.h not found)"
23975
23976fi
23977
23978done
23979
23980fi
23981
23982if test "x$with_libredfish" = "xyes"; then
23983  if test "x$LIBREDFISH_LDFLAGS" != "x"; then
23984    { $as_echo "$as_me:${as_lineno-$LINENO}: libredfish LDFLAGS: $LIBREDFISH_LDFLAGS" >&5
23985$as_echo "$as_me: libredfish LDFLAGS: $LIBREDFISH_LDFLAGS" >&6;}
23986  fi
23987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for createServiceEnumerator in -lredfish" >&5
23988$as_echo_n "checking for createServiceEnumerator in -lredfish... " >&6; }
23989if ${ac_cv_lib_redfish_createServiceEnumerator+:} false; then :
23990  $as_echo_n "(cached) " >&6
23991else
23992  ac_check_lib_save_LIBS=$LIBS
23993LIBS="-lredfish  $LIBS"
23994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23995/* end confdefs.h.  */
23996
23997/* Override any GCC internal prototype to avoid an error.
23998   Use char because int might match the return type of a GCC
23999   builtin and then its argument prototype would still apply.  */
24000#ifdef __cplusplus
24001extern "C"
24002#endif
24003char createServiceEnumerator ();
24004int
24005main ()
24006{
24007return createServiceEnumerator ();
24008  ;
24009  return 0;
24010}
24011_ACEOF
24012if ac_fn_c_try_link "$LINENO"; then :
24013  ac_cv_lib_redfish_createServiceEnumerator=yes
24014else
24015  ac_cv_lib_redfish_createServiceEnumerator=no
24016fi
24017rm -f core conftest.err conftest.$ac_objext \
24018    conftest$ac_exeext conftest.$ac_ext
24019LIBS=$ac_check_lib_save_LIBS
24020fi
24021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_redfish_createServiceEnumerator" >&5
24022$as_echo "$ac_cv_lib_redfish_createServiceEnumerator" >&6; }
24023if test "x$ac_cv_lib_redfish_createServiceEnumerator" = xyes; then :
24024  with_libredfish="yes"
24025else
24026  with_libredfish="no (symbol 'createServiceEnumerator' not found)"
24027
24028fi
24029
24030fi
24031
24032CPPFLAGS="$SAVE_CPPFLAGS"
24033LDFLAGS="$SAVE_LDFLAGS"
24034
24035if test "x$with_libredfish" = "xyes"; then
24036  BUILD_WITH_LIBREDFISH_CPPFLAGS="$LIBREDFISH_CPPFLAGS"
24037  BUILD_WITH_LIBREDFISH_LDFLAGS="$LIBREDFISH_LDFLAGS"
24038fi
24039
24040
24041
24042
24043# }}}
24044
24045# --with-libcurl {{{
24046with_curl_config="curl-config"
24047with_curl_cflags=""
24048with_curl_libs=""
24049
24050# Check whether --with-libcurl was given.
24051if test "${with_libcurl+set}" = set; then :
24052  withval=$with_libcurl;
24053    if test "x$withval" = "xno"; then
24054      with_libcurl="no"
24055    else if test "x$withval" = "xyes"; then
24056      with_libcurl="yes"
24057    else
24058      if test -f "$withval" && test -x "$withval"; then
24059        with_curl_config="$withval"
24060        with_libcurl="yes"
24061      else if test -x "$withval/bin/curl-config"; then
24062        with_curl_config="$withval/bin/curl-config"
24063        with_libcurl="yes"
24064      fi; fi
24065      with_libcurl="yes"
24066    fi; fi
24067
24068else
24069  with_libcurl="yes"
24070
24071fi
24072
24073
24074if test "x$with_libcurl" = "xyes"; then
24075  with_curl_cflags=`$with_curl_config --cflags 2>/dev/null`
24076  curl_config_status=$?
24077
24078  if test $curl_config_status -ne 0; then
24079    with_libcurl="no ($with_curl_config failed)"
24080  else
24081    SAVE_CPPFLAGS="$CPPFLAGS"
24082    CPPFLAGS="$CPPFLAGS $with_curl_cflags"
24083
24084    for ac_header in curl/curl.h
24085do :
24086  ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
24087if test "x$ac_cv_header_curl_curl_h" = xyes; then :
24088  cat >>confdefs.h <<_ACEOF
24089#define HAVE_CURL_CURL_H 1
24090_ACEOF
24091 with_libcurl="yes"
24092else
24093  with_libcurl="no (curl/curl.h not found)"
24094
24095fi
24096
24097done
24098
24099
24100    CPPFLAGS="$SAVE_CPPFLAGS"
24101  fi
24102fi
24103
24104if test "x$with_libcurl" = "xyes"; then
24105  with_curl_libs=`$with_curl_config --libs 2>/dev/null`
24106  curl_config_status=$?
24107
24108  if test $curl_config_status -ne 0; then
24109    with_libcurl="no ($with_curl_config failed)"
24110  else
24111    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_init in -lcurl" >&5
24112$as_echo_n "checking for curl_easy_init in -lcurl... " >&6; }
24113if ${ac_cv_lib_curl_curl_easy_init+:} false; then :
24114  $as_echo_n "(cached) " >&6
24115else
24116  ac_check_lib_save_LIBS=$LIBS
24117LIBS="-lcurl $with_curl_libs
24118     $LIBS"
24119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24120/* end confdefs.h.  */
24121
24122/* Override any GCC internal prototype to avoid an error.
24123   Use char because int might match the return type of a GCC
24124   builtin and then its argument prototype would still apply.  */
24125#ifdef __cplusplus
24126extern "C"
24127#endif
24128char curl_easy_init ();
24129int
24130main ()
24131{
24132return curl_easy_init ();
24133  ;
24134  return 0;
24135}
24136_ACEOF
24137if ac_fn_c_try_link "$LINENO"; then :
24138  ac_cv_lib_curl_curl_easy_init=yes
24139else
24140  ac_cv_lib_curl_curl_easy_init=no
24141fi
24142rm -f core conftest.err conftest.$ac_objext \
24143    conftest$ac_exeext conftest.$ac_ext
24144LIBS=$ac_check_lib_save_LIBS
24145fi
24146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_init" >&5
24147$as_echo "$ac_cv_lib_curl_curl_easy_init" >&6; }
24148if test "x$ac_cv_lib_curl_curl_easy_init" = xyes; then :
24149  with_libcurl="yes"
24150else
24151  with_libcurl="no (symbol 'curl_easy_init' not found)"
24152fi
24153
24154
24155    ac_fn_c_check_decl "$LINENO" "CURLOPT_USERNAME" "ac_cv_have_decl_CURLOPT_USERNAME" "#include <curl/curl.h>
24156
24157"
24158if test "x$ac_cv_have_decl_CURLOPT_USERNAME" = xyes; then :
24159  have_curlopt_username="yes"
24160else
24161  have_curlopt_username="no"
24162fi
24163
24164
24165    ac_fn_c_check_decl "$LINENO" "CURLOPT_TIMEOUT_MS" "ac_cv_have_decl_CURLOPT_TIMEOUT_MS" "#include <curl/curl.h>
24166
24167"
24168if test "x$ac_cv_have_decl_CURLOPT_TIMEOUT_MS" = xyes; then :
24169  have_curlopt_timeout="yes"
24170else
24171  have_curlopt_timeout="no"
24172fi
24173
24174  fi
24175fi
24176
24177if test "x$with_libcurl" = "xyes"; then
24178  SAVE_CPPFLAGS="$CPPFLAGS"
24179  SAVE_LDFLAGS="$LDFLAGS"
24180  CPPFLAGS="$CPPFLAGS $with_curl_cflags"
24181  LDFLAGS="$LDFLAGS $with_curl_libs"
24182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURLINFO_APPCONNECT_TIME" >&5
24183$as_echo_n "checking for CURLINFO_APPCONNECT_TIME... " >&6; }
24184if ${c_cv_have_curlinfo_appconnect_time+:} false; then :
24185  $as_echo_n "(cached) " >&6
24186else
24187
24188      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24189/* end confdefs.h.  */
24190
24191          #include <curl/curl.h>
24192int
24193main ()
24194{
24195
24196              int val = CURLINFO_APPCONNECT_TIME;
24197              return val;
24198
24199
24200  ;
24201  return 0;
24202}
24203
24204_ACEOF
24205if ac_fn_c_try_link "$LINENO"; then :
24206  c_cv_have_curlinfo_appconnect_time="yes"
24207else
24208  c_cv_have_curlinfo_appconnect_time="no"
24209
24210fi
24211rm -f core conftest.err conftest.$ac_objext \
24212    conftest$ac_exeext conftest.$ac_ext
24213
24214
24215fi
24216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_curlinfo_appconnect_time" >&5
24217$as_echo "$c_cv_have_curlinfo_appconnect_time" >&6; }
24218  CPPFLAGS="$SAVE_CPPFLAGS"
24219  LDFLAGS="$SAVE_LDFLAGS"
24220fi
24221
24222if test "x$c_cv_have_curlinfo_appconnect_time" = "xyes"; then
24223
24224$as_echo "#define HAVE_CURLINFO_APPCONNECT_TIME 1" >>confdefs.h
24225
24226fi
24227
24228if test "x$with_libcurl" = "xyes"; then
24229  BUILD_WITH_LIBCURL_CFLAGS="$with_curl_cflags"
24230  BUILD_WITH_LIBCURL_LIBS="$with_curl_libs"
24231
24232  if test "x$have_curlopt_username" = "xyes"; then
24233
24234$as_echo "#define HAVE_CURLOPT_USERNAME 1" >>confdefs.h
24235
24236  fi
24237
24238  if test "x$have_curlopt_timeout" = "xyes"; then
24239
24240$as_echo "#define HAVE_CURLOPT_TIMEOUT_MS 1" >>confdefs.h
24241
24242  fi
24243fi
24244
24245
24246
24247
24248 if test "x$with_libcurl" = "xyes"; then
24249  BUILD_WITH_LIBCURL_TRUE=
24250  BUILD_WITH_LIBCURL_FALSE='#'
24251else
24252  BUILD_WITH_LIBCURL_TRUE='#'
24253  BUILD_WITH_LIBCURL_FALSE=
24254fi
24255
24256# }}}
24257
24258# --with-libdbi {{{
24259
24260# Check whether --with-libdbi was given.
24261if test "${with_libdbi+set}" = set; then :
24262  withval=$with_libdbi;
24263    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
24264      with_libdbi_cppflags="-I$withval/include"
24265      with_libdbi_ldflags="-L$withval/lib"
24266      with_libdbi="yes"
24267    else
24268      with_libdbi="$withval"
24269    fi
24270
24271else
24272  with_libdbi="yes"
24273
24274fi
24275
24276
24277if test "x$with_libdbi" = "xyes"; then
24278  SAVE_CPPFLAGS="$CPPFLAGS"
24279  CPPFLAGS="$CPPFLAGS $with_libdbi_cppflags"
24280
24281  for ac_header in dbi/dbi.h
24282do :
24283  ac_fn_c_check_header_mongrel "$LINENO" "dbi/dbi.h" "ac_cv_header_dbi_dbi_h" "$ac_includes_default"
24284if test "x$ac_cv_header_dbi_dbi_h" = xyes; then :
24285  cat >>confdefs.h <<_ACEOF
24286#define HAVE_DBI_DBI_H 1
24287_ACEOF
24288 with_libdbi="yes"
24289else
24290  with_libdbi="no (dbi/dbi.h not found)"
24291
24292fi
24293
24294done
24295
24296
24297  CPPFLAGS="$SAVE_CPPFLAGS"
24298fi
24299
24300if test "x$with_libdbi" = "xyes"; then
24301  SAVE_LDFLAGS="$LDFLAGS"
24302  LDFLAGS="$LDFLAGS $with_libdbi_ldflags"
24303
24304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbi_initialize in -ldbi" >&5
24305$as_echo_n "checking for dbi_initialize in -ldbi... " >&6; }
24306if ${ac_cv_lib_dbi_dbi_initialize+:} false; then :
24307  $as_echo_n "(cached) " >&6
24308else
24309  ac_check_lib_save_LIBS=$LIBS
24310LIBS="-ldbi  $LIBS"
24311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24312/* end confdefs.h.  */
24313
24314/* Override any GCC internal prototype to avoid an error.
24315   Use char because int might match the return type of a GCC
24316   builtin and then its argument prototype would still apply.  */
24317#ifdef __cplusplus
24318extern "C"
24319#endif
24320char dbi_initialize ();
24321int
24322main ()
24323{
24324return dbi_initialize ();
24325  ;
24326  return 0;
24327}
24328_ACEOF
24329if ac_fn_c_try_link "$LINENO"; then :
24330  ac_cv_lib_dbi_dbi_initialize=yes
24331else
24332  ac_cv_lib_dbi_dbi_initialize=no
24333fi
24334rm -f core conftest.err conftest.$ac_objext \
24335    conftest$ac_exeext conftest.$ac_ext
24336LIBS=$ac_check_lib_save_LIBS
24337fi
24338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbi_dbi_initialize" >&5
24339$as_echo "$ac_cv_lib_dbi_dbi_initialize" >&6; }
24340if test "x$ac_cv_lib_dbi_dbi_initialize" = xyes; then :
24341  with_libdbi="yes"
24342else
24343  with_libdbi="no (Symbol 'dbi_initialize' not found)"
24344
24345fi
24346
24347
24348  LDFLAGS="$SAVE_LDFLAGS"
24349fi
24350
24351BUILD_WITH_LIBDBI_CPPFLAGS="$with_libdbi_cppflags"
24352BUILD_WITH_LIBDBI_LDFLAGS="$with_libdbi_ldflags"
24353BUILD_WITH_LIBDBI_LIBS="-ldbi"
24354
24355
24356
24357# }}}
24358
24359# --with-libdpdk {{{
24360
24361
24362
24363
24364
24365
24366# Check whether --with-libdpdk was given.
24367if test "${with_libdpdk+set}" = set; then :
24368  withval=$with_libdpdk; with_libdpdk="$withval"
24369else
24370  with_libdpdk="yes"
24371
24372fi
24373
24374
24375if test "x$with_libdpdk" != "xno"; then
24376
24377pkg_failed=no
24378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPDK" >&5
24379$as_echo_n "checking for DPDK... " >&6; }
24380
24381if test -n "$DPDK_CFLAGS"; then
24382    pkg_cv_DPDK_CFLAGS="$DPDK_CFLAGS"
24383 elif test -n "$PKG_CONFIG"; then
24384    if test -n "$PKG_CONFIG" && \
24385    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdpdk\""; } >&5
24386  ($PKG_CONFIG --exists --print-errors "libdpdk") 2>&5
24387  ac_status=$?
24388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24389  test $ac_status = 0; }; then
24390  pkg_cv_DPDK_CFLAGS=`$PKG_CONFIG --cflags "libdpdk" 2>/dev/null`
24391		      test "x$?" != "x0" && pkg_failed=yes
24392else
24393  pkg_failed=yes
24394fi
24395 else
24396    pkg_failed=untried
24397fi
24398if test -n "$DPDK_LIBS"; then
24399    pkg_cv_DPDK_LIBS="$DPDK_LIBS"
24400 elif test -n "$PKG_CONFIG"; then
24401    if test -n "$PKG_CONFIG" && \
24402    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdpdk\""; } >&5
24403  ($PKG_CONFIG --exists --print-errors "libdpdk") 2>&5
24404  ac_status=$?
24405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24406  test $ac_status = 0; }; then
24407  pkg_cv_DPDK_LIBS=`$PKG_CONFIG --libs "libdpdk" 2>/dev/null`
24408		      test "x$?" != "x0" && pkg_failed=yes
24409else
24410  pkg_failed=yes
24411fi
24412 else
24413    pkg_failed=untried
24414fi
24415
24416
24417
24418if test $pkg_failed = yes; then
24419   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24420$as_echo "no" >&6; }
24421
24422if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24423        _pkg_short_errors_supported=yes
24424else
24425        _pkg_short_errors_supported=no
24426fi
24427        if test $_pkg_short_errors_supported = yes; then
24428	        DPDK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdpdk" 2>&1`
24429        else
24430	        DPDK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdpdk" 2>&1`
24431        fi
24432	# Put the nasty error message in config.log where it belongs
24433	echo "$DPDK_PKG_ERRORS" >&5
24434
24435	{ $as_echo "$as_me:${as_lineno-$LINENO}: no DPDK pkg-config, using defaults" >&5
24436$as_echo "$as_me: no DPDK pkg-config, using defaults" >&6;}
24437elif test $pkg_failed = untried; then
24438     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24439$as_echo "no" >&6; }
24440	{ $as_echo "$as_me:${as_lineno-$LINENO}: no DPDK pkg-config, using defaults" >&5
24441$as_echo "$as_me: no DPDK pkg-config, using defaults" >&6;}
24442else
24443	DPDK_CFLAGS=$pkg_cv_DPDK_CFLAGS
24444	DPDK_LIBS=$pkg_cv_DPDK_LIBS
24445        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24446$as_echo "yes" >&6; }
24447
24448fi
24449  if test "x$LIBDPDK_CPPFLAGS" = "x"; then
24450    LIBDPDK_CPPFLAGS="-I/usr/include/dpdk"
24451  fi
24452  if test "x$LIBDPDK_CFLAGS" = "x"; then
24453    LIBDPDK_CFLAGS="$DPDK_CFLAGS"
24454    LIBDPDK_CPPFLAGS="$LIBDPDK_CPPFLAGS $DPDK_CFLAGS"
24455  fi
24456  if test "x$LIBDPDK_LIBS" = "x"; then
24457    if test "x$DPDK_LIBS" != "x"; then
24458      LIBDPDK_LIBS="$DPDK_LIBS"
24459    else
24460      LIBDPDK_LIBS="-ldpdk"
24461    fi
24462  fi
24463  SAVE_CPPFLAGS="$CPPFLAGS"
24464  CPPFLAGS="$LIBDPDK_CPPFLAGS $CPPFLAGS"
24465  SAVE_CFLAGS="$CFLAGS"
24466  CFLAGS="$LIBDPDK_CFLAGS $CFLAGS"
24467  for ac_header in rte_config.h
24468do :
24469  ac_fn_c_check_header_mongrel "$LINENO" "rte_config.h" "ac_cv_header_rte_config_h" "$ac_includes_default"
24470if test "x$ac_cv_header_rte_config_h" = xyes; then :
24471  cat >>confdefs.h <<_ACEOF
24472#define HAVE_RTE_CONFIG_H 1
24473_ACEOF
24474
24475      with_libdpdk="yes"
24476      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24477/* end confdefs.h.  */
24478
24479
24480              #include <rte_version.h>
24481              #if RTE_VERSION < RTE_VERSION_NUM(16,7,0,0)
24482              #error "required DPDK >= 16.07"
24483              #endif
24484
24485
24486
24487_ACEOF
24488if ac_fn_c_try_cpp "$LINENO"; then :
24489  dpdk_keepalive="yes"
24490else
24491  dpdk_keepalive="no (DPDK version < 16.07)"
24492
24493fi
24494rm -f conftest.err conftest.i conftest.$ac_ext
24495
24496else
24497  with_libdpdk="no (rte_config.h not found)"
24498
24499fi
24500
24501done
24502
24503  CPPFLAGS="$SAVE_CPPFLAGS"
24504  CFLAGS="$SAVE_CFLAGS"
24505fi
24506
24507if test "x$with_libdpdk" = "xyes"; then
24508  SAVE_LIBS="$LIBS"
24509  LIBS="$LIBDPDK_LIBS $LIBS"
24510  SAVE_LDFLAGS="$LDFLAGS"
24511  LDFLAGS="$LIBDPDK_LDFLAGS $LDFLAGS"
24512  SAVE_CPPFLAGS="$CPPFLAGS"
24513  CPPFLAGS="$LIBDPDK_CPPFLAGS $CPPFLAGS"
24514  SAVE_CFLAGS="$CFLAGS"
24515  CFLAGS="$LIBDPDK_CFLAGS $CFLAGS"
24516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24517/* end confdefs.h.  */
24518
24519
24520          #include <rte_eal.h>
24521
24522int
24523main ()
24524{
24525return rte_eal_init(0, NULL);
24526
24527  ;
24528  return 0;
24529}
24530
24531_ACEOF
24532if ac_fn_c_try_link "$LINENO"; then :
24533  with_libdpdk="yes"
24534else
24535  with_libdpdk="no (symbol 'rte_eal_init' not found)"
24536
24537fi
24538rm -f core conftest.err conftest.$ac_objext \
24539    conftest$ac_exeext conftest.$ac_ext
24540  LIBS="$SAVE_LIBS"
24541  LDFLAGS="$SAVE_LDFLAGS"
24542  CPPFLAGS="$SAVE_CPPFLAGS"
24543  CFLAGS="$SAVE_CFLAGS"
24544fi
24545
24546# }}}
24547
24548# --with-libesmtp {{{
24549
24550# Check whether --with-libesmtp was given.
24551if test "${with_libesmtp+set}" = set; then :
24552  withval=$with_libesmtp;
24553    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
24554      with_libesmtp_cppflags="-I$withval/include"
24555      with_libesmtp_ldflags="-L$withval/lib"
24556      with_libesmtp="yes"
24557    else
24558      with_libesmtp="$withval"
24559    fi
24560
24561else
24562  with_libesmtp="yes"
24563
24564fi
24565
24566
24567if test "x$with_libesmtp" = "xyes"; then
24568  SAVE_CPPFLAGS="$CPPFLAGS"
24569  CPPFLAGS="$CPPFLAGS $with_libesmtp_cppflags"
24570
24571  for ac_header in libesmtp.h
24572do :
24573  ac_fn_c_check_header_mongrel "$LINENO" "libesmtp.h" "ac_cv_header_libesmtp_h" "$ac_includes_default"
24574if test "x$ac_cv_header_libesmtp_h" = xyes; then :
24575  cat >>confdefs.h <<_ACEOF
24576#define HAVE_LIBESMTP_H 1
24577_ACEOF
24578 with_libesmtp="yes"
24579else
24580  with_libesmtp="no (libesmtp.h not found)"
24581
24582fi
24583
24584done
24585
24586
24587  CPPFLAGS="$SAVE_CPPFLAGS"
24588fi
24589
24590if test "x$with_libesmtp" = "xyes"; then
24591  SAVE_LDFLAGS="$LDFLAGS"
24592  LDFLAGS="$LDFLAGS $with_esmtp_ldflags"
24593
24594  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smtp_create_session in -lesmtp" >&5
24595$as_echo_n "checking for smtp_create_session in -lesmtp... " >&6; }
24596if ${ac_cv_lib_esmtp_smtp_create_session+:} false; then :
24597  $as_echo_n "(cached) " >&6
24598else
24599  ac_check_lib_save_LIBS=$LIBS
24600LIBS="-lesmtp  $LIBS"
24601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24602/* end confdefs.h.  */
24603
24604/* Override any GCC internal prototype to avoid an error.
24605   Use char because int might match the return type of a GCC
24606   builtin and then its argument prototype would still apply.  */
24607#ifdef __cplusplus
24608extern "C"
24609#endif
24610char smtp_create_session ();
24611int
24612main ()
24613{
24614return smtp_create_session ();
24615  ;
24616  return 0;
24617}
24618_ACEOF
24619if ac_fn_c_try_link "$LINENO"; then :
24620  ac_cv_lib_esmtp_smtp_create_session=yes
24621else
24622  ac_cv_lib_esmtp_smtp_create_session=no
24623fi
24624rm -f core conftest.err conftest.$ac_objext \
24625    conftest$ac_exeext conftest.$ac_ext
24626LIBS=$ac_check_lib_save_LIBS
24627fi
24628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
24629$as_echo "$ac_cv_lib_esmtp_smtp_create_session" >&6; }
24630if test "x$ac_cv_lib_esmtp_smtp_create_session" = xyes; then :
24631  with_libesmtp="yes"
24632else
24633  with_libesmtp="no (Symbol 'smtp_create_session' not found)"
24634
24635fi
24636
24637
24638  LDFLAGS="$SAVE_LDFLAGS"
24639fi
24640
24641BUILD_WITH_LIBESMTP_CPPFLAGS="$with_libesmtp_cppflags"
24642BUILD_WITH_LIBESMTP_LDFLAGS="$with_libesmtp_ldflags"
24643BUILD_WITH_LIBESMTP_LIBS="-lesmtp"
24644
24645
24646
24647# }}}
24648
24649# --with-libganglia {{{
24650
24651# Check whether --with-libganglia was given.
24652if test "${with_libganglia+set}" = set; then :
24653  withval=$with_libganglia;
24654    if test -f "$withval" && test -x "$withval"; then
24655      with_libganglia_config="$withval"
24656      with_libganglia="yes"
24657    else if test -f "$withval/bin/ganglia-config" && test -x "$withval/bin/ganglia-config"; then
24658      with_libganglia_config="$withval/bin/ganglia-config"
24659      with_libganglia="yes"
24660    else if test -d "$withval"; then
24661      GANGLIA_CPPFLAGS="-I$withval/include"
24662      GANGLIA_LDFLAGS="-L$withval/lib"
24663      with_libganglia="yes"
24664    else
24665      with_libganglia="$withval"
24666    fi; fi; fi
24667
24668else
24669  with_libganglia="yes"
24670
24671fi
24672
24673
24674if test "x$with_libganglia" = "xyes"; then
24675  if test "x$with_libganglia_config" != "x"; then
24676    if test "x$GANGLIA_CPPFLAGS" = "x"; then
24677      GANGLIA_CPPFLAGS=`"$with_libganglia_config" --cflags 2>/dev/null`
24678    fi
24679
24680    if test "x$GANGLIA_LDFLAGS" = "x"; then
24681      GANGLIA_LDFLAGS=`"$with_libganglia_config" --ldflags 2>/dev/null`
24682    fi
24683
24684    if test "x$GANGLIA_LIBS" = "x"; then
24685      GANGLIA_LIBS=`"$with_libganglia_config" --libs 2>/dev/null`
24686    fi
24687  else
24688    GANGLIA_LIBS="-lganglia"
24689  fi
24690fi
24691
24692SAVE_CPPFLAGS="$CPPFLAGS"
24693SAVE_LDFLAGS="$LDFLAGS"
24694CPPFLAGS="$CPPFLAGS $GANGLIA_CPPFLAGS"
24695LDFLAGS="$LDFLAGS $GANGLIA_LDFLAGS"
24696
24697if test "x$with_libganglia" = "xyes"; then
24698  for ac_header in gm_protocol.h
24699do :
24700  ac_fn_c_check_header_mongrel "$LINENO" "gm_protocol.h" "ac_cv_header_gm_protocol_h" "$ac_includes_default"
24701if test "x$ac_cv_header_gm_protocol_h" = xyes; then :
24702  cat >>confdefs.h <<_ACEOF
24703#define HAVE_GM_PROTOCOL_H 1
24704_ACEOF
24705 with_libganglia="yes"
24706else
24707  with_libganglia="no (gm_protocol.h not found)"
24708
24709fi
24710
24711done
24712
24713fi
24714
24715if test "x$with_libganglia" = "xyes"; then
24716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xdr_Ganglia_value_msg in -lganglia" >&5
24717$as_echo_n "checking for xdr_Ganglia_value_msg in -lganglia... " >&6; }
24718if ${ac_cv_lib_ganglia_xdr_Ganglia_value_msg+:} false; then :
24719  $as_echo_n "(cached) " >&6
24720else
24721  ac_check_lib_save_LIBS=$LIBS
24722LIBS="-lganglia  $LIBS"
24723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24724/* end confdefs.h.  */
24725
24726/* Override any GCC internal prototype to avoid an error.
24727   Use char because int might match the return type of a GCC
24728   builtin and then its argument prototype would still apply.  */
24729#ifdef __cplusplus
24730extern "C"
24731#endif
24732char xdr_Ganglia_value_msg ();
24733int
24734main ()
24735{
24736return xdr_Ganglia_value_msg ();
24737  ;
24738  return 0;
24739}
24740_ACEOF
24741if ac_fn_c_try_link "$LINENO"; then :
24742  ac_cv_lib_ganglia_xdr_Ganglia_value_msg=yes
24743else
24744  ac_cv_lib_ganglia_xdr_Ganglia_value_msg=no
24745fi
24746rm -f core conftest.err conftest.$ac_objext \
24747    conftest$ac_exeext conftest.$ac_ext
24748LIBS=$ac_check_lib_save_LIBS
24749fi
24750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ganglia_xdr_Ganglia_value_msg" >&5
24751$as_echo "$ac_cv_lib_ganglia_xdr_Ganglia_value_msg" >&6; }
24752if test "x$ac_cv_lib_ganglia_xdr_Ganglia_value_msg" = xyes; then :
24753  with_libganglia="yes"
24754else
24755  with_libganglia="no (symbol xdr_Ganglia_value_msg not found)"
24756
24757fi
24758
24759fi
24760
24761CPPFLAGS="$SAVE_CPPFLAGS"
24762LDFLAGS="$SAVE_LDFLAGS"
24763
24764
24765
24766
24767# }}}
24768
24769# --with-libgcrypt {{{
24770GCRYPT_CPPFLAGS="$GCRYPT_CPPFLAGS"
24771GCRYPT_LDFLAGS="$GCRYPT_LDFLAGS"
24772GCRYPT_LIBS="$GCRYPT_LIBS"
24773
24774# Check whether --with-libgcrypt was given.
24775if test "${with_libgcrypt+set}" = set; then :
24776  withval=$with_libgcrypt;
24777    if test -f "$withval" && test -x "$withval"; then
24778      with_libgcrypt_config="$withval"
24779      with_libgcrypt="yes"
24780    else if test -f "$withval/bin/gcrypt-config" && test -x "$withval/bin/gcrypt-config"; then
24781      with_libgcrypt_config="$withval/bin/gcrypt-config"
24782      with_libgcrypt="yes"
24783    else if test -d "$withval"; then
24784      GCRYPT_CPPFLAGS="$GCRYPT_CPPFLAGS -I$withval/include"
24785      GCRYPT_LDFLAGS="$GCRYPT_LDFLAGS -L$withval/lib"
24786      with_libgcrypt="yes"
24787    else
24788      with_libgcrypt_config="gcrypt-config"
24789      with_libgcrypt="$withval"
24790    fi; fi; fi
24791
24792else
24793
24794    with_libgcrypt_config="libgcrypt-config"
24795    with_libgcrypt="yes"
24796
24797
24798fi
24799
24800
24801if test "x$with_libgcrypt" = "xyes" && test "x$with_libgcrypt_config" != "x"; then
24802  if test "x$GCRYPT_CPPFLAGS" = "x"; then
24803    GCRYPT_CPPFLAGS=`"$with_libgcrypt_config" --cflags 2>/dev/null`
24804  fi
24805
24806  if test "x$GCRYPT_LIBS" = "x"; then
24807    GCRYPT_LIBS=`"$with_libgcrypt_config" --libs 2>/dev/null`
24808  fi
24809fi
24810
24811SAVE_CPPFLAGS="$CPPFLAGS"
24812SAVE_LDFLAGS="$LDFLAGS"
24813SAVE_LIBS="$LIBS"
24814CPPFLAGS="$CPPFLAGS $GCRYPT_CPPFLAGS"
24815LDFLAGS="$LDFLAGS $GCRYPT_LDFLAGS"
24816LIBS="$LIBS $GCRYPT_LIBS"
24817
24818if test "x$with_libgcrypt" = "xyes"; then
24819  for ac_header in gcrypt.h
24820do :
24821  ac_fn_c_check_header_mongrel "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default"
24822if test "x$ac_cv_header_gcrypt_h" = xyes; then :
24823  cat >>confdefs.h <<_ACEOF
24824#define HAVE_GCRYPT_H 1
24825_ACEOF
24826 with_libgcrypt="yes"
24827else
24828  with_libgcrypt="no (gcrypt.h not found)"
24829
24830fi
24831
24832done
24833
24834fi
24835
24836if test "x$with_libgcrypt" = "xyes"; then
24837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_md_hash_buffer in -lgcrypt" >&5
24838$as_echo_n "checking for gcry_md_hash_buffer in -lgcrypt... " >&6; }
24839if ${ac_cv_lib_gcrypt_gcry_md_hash_buffer+:} false; then :
24840  $as_echo_n "(cached) " >&6
24841else
24842  ac_check_lib_save_LIBS=$LIBS
24843LIBS="-lgcrypt  $LIBS"
24844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24845/* end confdefs.h.  */
24846
24847/* Override any GCC internal prototype to avoid an error.
24848   Use char because int might match the return type of a GCC
24849   builtin and then its argument prototype would still apply.  */
24850#ifdef __cplusplus
24851extern "C"
24852#endif
24853char gcry_md_hash_buffer ();
24854int
24855main ()
24856{
24857return gcry_md_hash_buffer ();
24858  ;
24859  return 0;
24860}
24861_ACEOF
24862if ac_fn_c_try_link "$LINENO"; then :
24863  ac_cv_lib_gcrypt_gcry_md_hash_buffer=yes
24864else
24865  ac_cv_lib_gcrypt_gcry_md_hash_buffer=no
24866fi
24867rm -f core conftest.err conftest.$ac_objext \
24868    conftest$ac_exeext conftest.$ac_ext
24869LIBS=$ac_check_lib_save_LIBS
24870fi
24871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_hash_buffer" >&5
24872$as_echo "$ac_cv_lib_gcrypt_gcry_md_hash_buffer" >&6; }
24873if test "x$ac_cv_lib_gcrypt_gcry_md_hash_buffer" = xyes; then :
24874  with_libgcrypt="yes"
24875else
24876  with_libgcrypt="no (symbol gcry_md_hash_buffer not found)"
24877
24878fi
24879
24880fi
24881
24882CPPFLAGS="$SAVE_CPPFLAGS"
24883LDFLAGS="$SAVE_LDFLAGS"
24884LIBS="$SAVE_LIBS"
24885
24886
24887
24888
24889 if test "x$with_libgcrypt" = "xyes"; then
24890  BUILD_WITH_LIBGCRYPT_TRUE=
24891  BUILD_WITH_LIBGCRYPT_FALSE='#'
24892else
24893  BUILD_WITH_LIBGCRYPT_TRUE='#'
24894  BUILD_WITH_LIBGCRYPT_FALSE=
24895fi
24896
24897# }}}
24898
24899# --with-libgps {{{
24900
24901# Check whether --with-libgps was given.
24902if test "${with_libgps+set}" = set; then :
24903  withval=$with_libgps;
24904    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
24905      with_libgps_cflags="-I$withval/include"
24906      with_libgps_ldflags="-L$withval/lib"
24907      with_libgps="yes"
24908    else
24909      with_libgps="$withval"
24910    fi
24911
24912else
24913  with_libgps="yes"
24914
24915fi
24916
24917
24918if test "x$with_libgps" = "xyes"; then
24919  SAVE_CFLAGS="$CFLAGS"
24920  CFLAGS="$CFLAGS $with_libgps_cflags"
24921
24922  for ac_header in gps.h
24923do :
24924  ac_fn_c_check_header_mongrel "$LINENO" "gps.h" "ac_cv_header_gps_h" "$ac_includes_default"
24925if test "x$ac_cv_header_gps_h" = xyes; then :
24926  cat >>confdefs.h <<_ACEOF
24927#define HAVE_GPS_H 1
24928_ACEOF
24929 with_libgps="yes"
24930else
24931  with_libgps="no (gps.h not found)"
24932
24933fi
24934
24935done
24936
24937
24938  CFLAGS="$SAVE_CFLAGS"
24939fi
24940
24941if test "x$with_libgps" = "xyes"; then
24942  SAVE_LDFLAGS="$LDFLAGS"
24943  LDFLAGS="$LDFLAGS $with_libgps_ldflags"
24944
24945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gps_open in -lgps" >&5
24946$as_echo_n "checking for gps_open in -lgps... " >&6; }
24947if ${ac_cv_lib_gps_gps_open+:} false; then :
24948  $as_echo_n "(cached) " >&6
24949else
24950  ac_check_lib_save_LIBS=$LIBS
24951LIBS="-lgps  $LIBS"
24952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24953/* end confdefs.h.  */
24954
24955/* Override any GCC internal prototype to avoid an error.
24956   Use char because int might match the return type of a GCC
24957   builtin and then its argument prototype would still apply.  */
24958#ifdef __cplusplus
24959extern "C"
24960#endif
24961char gps_open ();
24962int
24963main ()
24964{
24965return gps_open ();
24966  ;
24967  return 0;
24968}
24969_ACEOF
24970if ac_fn_c_try_link "$LINENO"; then :
24971  ac_cv_lib_gps_gps_open=yes
24972else
24973  ac_cv_lib_gps_gps_open=no
24974fi
24975rm -f core conftest.err conftest.$ac_objext \
24976    conftest$ac_exeext conftest.$ac_ext
24977LIBS=$ac_check_lib_save_LIBS
24978fi
24979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gps_gps_open" >&5
24980$as_echo "$ac_cv_lib_gps_gps_open" >&6; }
24981if test "x$ac_cv_lib_gps_gps_open" = xyes; then :
24982  with_libgps="yes"
24983else
24984  with_libgps="no (symbol gps_open not found)"
24985
24986fi
24987
24988
24989  LDFLAGS="$SAVE_LDFLAGS"
24990fi
24991
24992if test "x$with_libgps" = "xyes"; then
24993  BUILD_WITH_LIBGPS_CFLAGS="$with_libgps_cflags"
24994  BUILD_WITH_LIBGPS_LDFLAGS="$with_libgps_ldflags"
24995  BUILD_WITH_LIBGPS_LIBS="-lgps"
24996fi
24997
24998
24999
25000
25001
25002# }}}
25003
25004# --with-libgrpc++ {{{
25005
25006# Check whether --with-libgrpc++ was given.
25007if test "${with_libgrpc__+set}" = set; then :
25008  withval=$with_libgrpc__;
25009    with_grpcpp="$withval"
25010    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
25011      with_libgrpcpp_cppflags="-I$withval/include"
25012      with_libgrpcpp_ldflags="-L$withval/lib"
25013      with_libgrpcpp_bin="$withval/bin"
25014      with_libgrpcpp="yes"
25015    fi
25016    if test "x$withval" = "xno"; then
25017      with_libgrpcpp="no (disabled on command line)"
25018    fi
25019
25020else
25021  withval="yes"
25022
25023fi
25024
25025if test "x$withval" = "xyes"; then
25026
25027pkg_failed=no
25028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRPCPP" >&5
25029$as_echo_n "checking for GRPCPP... " >&6; }
25030
25031if test -n "$GRPCPP_CFLAGS"; then
25032    pkg_cv_GRPCPP_CFLAGS="$GRPCPP_CFLAGS"
25033 elif test -n "$PKG_CONFIG"; then
25034    if test -n "$PKG_CONFIG" && \
25035    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"grpc++\""; } >&5
25036  ($PKG_CONFIG --exists --print-errors "grpc++") 2>&5
25037  ac_status=$?
25038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25039  test $ac_status = 0; }; then
25040  pkg_cv_GRPCPP_CFLAGS=`$PKG_CONFIG --cflags "grpc++" 2>/dev/null`
25041		      test "x$?" != "x0" && pkg_failed=yes
25042else
25043  pkg_failed=yes
25044fi
25045 else
25046    pkg_failed=untried
25047fi
25048if test -n "$GRPCPP_LIBS"; then
25049    pkg_cv_GRPCPP_LIBS="$GRPCPP_LIBS"
25050 elif test -n "$PKG_CONFIG"; then
25051    if test -n "$PKG_CONFIG" && \
25052    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"grpc++\""; } >&5
25053  ($PKG_CONFIG --exists --print-errors "grpc++") 2>&5
25054  ac_status=$?
25055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25056  test $ac_status = 0; }; then
25057  pkg_cv_GRPCPP_LIBS=`$PKG_CONFIG --libs "grpc++" 2>/dev/null`
25058		      test "x$?" != "x0" && pkg_failed=yes
25059else
25060  pkg_failed=yes
25061fi
25062 else
25063    pkg_failed=untried
25064fi
25065
25066
25067
25068if test $pkg_failed = yes; then
25069   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25070$as_echo "no" >&6; }
25071
25072if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25073        _pkg_short_errors_supported=yes
25074else
25075        _pkg_short_errors_supported=no
25076fi
25077        if test $_pkg_short_errors_supported = yes; then
25078	        GRPCPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "grpc++" 2>&1`
25079        else
25080	        GRPCPP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "grpc++" 2>&1`
25081        fi
25082	# Put the nasty error message in config.log where it belongs
25083	echo "$GRPCPP_PKG_ERRORS" >&5
25084
25085	with_libgrpcpp="no (pkg-config could not find libgrpc++)"
25086
25087elif test $pkg_failed = untried; then
25088     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25089$as_echo "no" >&6; }
25090	with_libgrpcpp="no (pkg-config could not find libgrpc++)"
25091
25092else
25093	GRPCPP_CFLAGS=$pkg_cv_GRPCPP_CFLAGS
25094	GRPCPP_LIBS=$pkg_cv_GRPCPP_LIBS
25095        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25096$as_echo "yes" >&6; }
25097	with_libgrpcpp="yes"
25098fi
25099fi
25100
25101if test "x$withval" != "xno"; then
25102  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -std=c++11" >&5
25103$as_echo_n "checking whether $CXX accepts -std=c++11... " >&6; }
25104  if test_cxx_flags -std=c++11; then
25105    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25106$as_echo "yes" >&6; }
25107  else
25108    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25109$as_echo "no" >&6; }
25110    with_libgrpcpp="no (requires C++11 support)"
25111    with_libprotobuf="no (<google/protobuf/util/time_util.h> requires C++11 support)"
25112  fi
25113fi
25114
25115if test "x$with_libgrpcpp" = "xyes"; then
25116  ac_ext=cpp
25117ac_cpp='$CXXCPP $CPPFLAGS'
25118ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25119ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25120ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25121
25122  SAVE_CPPFLAGS="$CPPFLAGS"
25123  CPPFLAGS="-std=c++11 $with_libgrpcpp_cppflags $GRPCPP_CFLAGS $CPPFLAGS"
25124
25125for ac_header in grpc++/grpc++.h
25126do :
25127  ac_fn_cxx_check_header_mongrel "$LINENO" "grpc++/grpc++.h" "ac_cv_header_grpcpp_grpcpp_h" "$ac_includes_default"
25128if test "x$ac_cv_header_grpcpp_grpcpp_h" = xyes; then :
25129  cat >>confdefs.h <<_ACEOF
25130#define HAVE_GRPC___GRPC___H 1
25131_ACEOF
25132 with_libgrpcpp="yes"
25133else
25134  with_libgrpcpp="no (<grpc++/grpc++.h> not found)"
25135
25136fi
25137
25138done
25139
25140  CPPFLAGS="$SAVE_CPPFLAGS"
25141  ac_ext=c
25142ac_cpp='$CPP $CPPFLAGS'
25143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25145ac_compiler_gnu=$ac_cv_c_compiler_gnu
25146
25147fi
25148
25149if test "x$with_libgrpcpp" = "xyes"; then
25150  ac_ext=cpp
25151ac_cpp='$CXXCPP $CPPFLAGS'
25152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25155
25156  SAVE_CPPFLAGS="$CPPFLAGS"
25157  SAVE_LDFLAGS="$LDFLAGS"
25158  SAVE_LIBS="$LIBS"
25159  CPPFLAGS="-std=c++11 $with_libgrpcpp_cppflags $GRPCPP_CFLAGS $CPPFLAGS"
25160  LDFLAGS="$with_libgrpcpp_ldflags"
25161  if test "x$GRPCPP_LIBS" = "x"; then
25162    LIBS="-lgrpc++"
25163  else
25164    LIBS="$GRPCPP_LIBS"
25165  fi
25166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25167/* end confdefs.h.  */
25168
25169      #include <grpc++/grpc++.h>
25170int
25171main ()
25172{
25173grpc::ServerBuilder sb;
25174
25175  ;
25176  return 0;
25177}
25178
25179_ACEOF
25180if ac_fn_cxx_try_link "$LINENO"; then :
25181
25182      with_libgrpcpp="yes"
25183      if test "x$GRPCPP_LIBS" = "x"; then
25184        GRPCPP_LIBS="-lgrpc++"
25185      fi
25186
25187else
25188  with_libgrpcpp="no (libgrpc++ not found)"
25189
25190fi
25191rm -f core conftest.err conftest.$ac_objext \
25192    conftest$ac_exeext conftest.$ac_ext
25193  CPPFLAGS="$SAVE_CPPFLAGS"
25194  LDFLAGS="$SAVE_LDFLAGS"
25195  LIBS="$SAVE_LIBS"
25196  ac_ext=c
25197ac_cpp='$CPP $CPPFLAGS'
25198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25200ac_compiler_gnu=$ac_cv_c_compiler_gnu
25201
25202fi
25203
25204BUILD_WITH_LIBGRPCPP_CPPFLAGS="-std=c++11 $with_libgrpcpp_cppflags $GRPCPP_CFLAGS"
25205BUILD_WITH_LIBGRPCPP_LDFLAGS="$with_libgrpcpp_ldflags"
25206BUILD_WITH_LIBGRPCPP_LIBS="$GRPCPP_LIBS"
25207
25208
25209
25210# }}}
25211
25212
25213if test "x$with_libgrpcpp_bin" = "x"; then
25214  # Extract the first word of "grpc_cpp_plugin", so it can be a program name with args.
25215set dummy grpc_cpp_plugin; ac_word=$2
25216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25217$as_echo_n "checking for $ac_word... " >&6; }
25218if ${ac_cv_path_GRPC_CPP_PLUGIN+:} false; then :
25219  $as_echo_n "(cached) " >&6
25220else
25221  case $GRPC_CPP_PLUGIN in
25222  [\\/]* | ?:[\\/]*)
25223  ac_cv_path_GRPC_CPP_PLUGIN="$GRPC_CPP_PLUGIN" # Let the user override the test with a path.
25224  ;;
25225  *)
25226  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25227for as_dir in $PATH
25228do
25229  IFS=$as_save_IFS
25230  test -z "$as_dir" && as_dir=.
25231    for ac_exec_ext in '' $ac_executable_extensions; do
25232  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25233    ac_cv_path_GRPC_CPP_PLUGIN="$as_dir/$ac_word$ac_exec_ext"
25234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25235    break 2
25236  fi
25237done
25238  done
25239IFS=$as_save_IFS
25240
25241  ;;
25242esac
25243fi
25244GRPC_CPP_PLUGIN=$ac_cv_path_GRPC_CPP_PLUGIN
25245if test -n "$GRPC_CPP_PLUGIN"; then
25246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRPC_CPP_PLUGIN" >&5
25247$as_echo "$GRPC_CPP_PLUGIN" >&6; }
25248else
25249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25250$as_echo "no" >&6; }
25251fi
25252
25253
25254else
25255  # Extract the first word of "grpc_cpp_plugin", so it can be a program name with args.
25256set dummy grpc_cpp_plugin; ac_word=$2
25257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25258$as_echo_n "checking for $ac_word... " >&6; }
25259if ${ac_cv_path_GRPC_CPP_PLUGIN+:} false; then :
25260  $as_echo_n "(cached) " >&6
25261else
25262  case $GRPC_CPP_PLUGIN in
25263  [\\/]* | ?:[\\/]*)
25264  ac_cv_path_GRPC_CPP_PLUGIN="$GRPC_CPP_PLUGIN" # Let the user override the test with a path.
25265  ;;
25266  *)
25267  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25268as_dummy=""$with_libgrpcpp_bin:$PATH""
25269for as_dir in $as_dummy
25270do
25271  IFS=$as_save_IFS
25272  test -z "$as_dir" && as_dir=.
25273    for ac_exec_ext in '' $ac_executable_extensions; do
25274  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25275    ac_cv_path_GRPC_CPP_PLUGIN="$as_dir/$ac_word$ac_exec_ext"
25276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25277    break 2
25278  fi
25279done
25280  done
25281IFS=$as_save_IFS
25282
25283  ;;
25284esac
25285fi
25286GRPC_CPP_PLUGIN=$ac_cv_path_GRPC_CPP_PLUGIN
25287if test -n "$GRPC_CPP_PLUGIN"; then
25288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRPC_CPP_PLUGIN" >&5
25289$as_echo "$GRPC_CPP_PLUGIN" >&6; }
25290else
25291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25292$as_echo "no" >&6; }
25293fi
25294
25295
25296fi
25297 if test "x$GRPC_CPP_PLUGIN" != "x"; then
25298  HAVE_GRPC_CPP_TRUE=
25299  HAVE_GRPC_CPP_FALSE='#'
25300else
25301  HAVE_GRPC_CPP_TRUE='#'
25302  HAVE_GRPC_CPP_FALSE=
25303fi
25304
25305
25306# --with-libiptc {{{
25307
25308# Check whether --with-libiptc was given.
25309if test "${with_libiptc+set}" = set; then :
25310  withval=$with_libiptc;
25311    if test "x$withval" = "xyes"; then
25312      with_libiptc="pkgconfig"
25313    else if test "x$withval" = "xno"; then
25314      with_libiptc="no"
25315    else
25316      with_libiptc="yes"
25317      with_libiptc_cflags="-I$withval/include"
25318      with_libiptc_libs="-L$withval/lib"
25319    fi; fi
25320
25321else
25322
25323    if test "x$ac_system" = "xLinux"; then
25324      with_libiptc="pkgconfig"
25325    else
25326      with_libiptc="no (Linux only)"
25327    fi
25328
25329
25330fi
25331
25332
25333if test "x$with_libiptc" = "xpkgconfig"; then
25334  $PKG_CONFIG --exists 'libiptc' 2>/dev/null
25335  if test $? -ne 0; then
25336    with_libiptc="no (pkg-config doesn't know libiptc)"
25337  fi
25338fi
25339
25340if test "x$with_libiptc" = "xpkgconfig"; then
25341  with_libiptc_cflags="`$PKG_CONFIG --cflags 'libiptc'`"
25342  if test $? -ne 0; then
25343    with_libiptc="no ($PKG_CONFIG failed)"
25344  fi
25345
25346  with_libiptc_libs="`$PKG_CONFIG --libs 'libiptc'`"
25347  if test $? -ne 0; then
25348    with_libiptc="no ($PKG_CONFIG failed)"
25349  fi
25350fi
25351
25352SAVE_CPPFLAGS="$CPPFLAGS"
25353CPPFLAGS="$CPPFLAGS $with_libiptc_cflags"
25354
25355# check whether the header file for libiptc is available.
25356if test "x$with_libiptc" = "xpkgconfig"; then
25357  for ac_header in libiptc/libiptc.h libiptc/libip6tc.h
25358do :
25359  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25360ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25361if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25362  cat >>confdefs.h <<_ACEOF
25363#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25364_ACEOF
25365
25366else
25367  with_libiptc="no (header file missing)"
25368
25369fi
25370
25371done
25372
25373fi
25374
25375# If the header file is available, check for the required type declaractions.
25376# They may be missing in old versions of libiptc. In that case, they will be
25377# declared in the iptables plugin.
25378if test "x$with_libiptc" = "xpkgconfig"; then
25379  ac_fn_c_check_type "$LINENO" "iptc_handle_t" "ac_cv_type_iptc_handle_t" "$ac_includes_default"
25380if test "x$ac_cv_type_iptc_handle_t" = xyes; then :
25381
25382cat >>confdefs.h <<_ACEOF
25383#define HAVE_IPTC_HANDLE_T 1
25384_ACEOF
25385
25386
25387fi
25388ac_fn_c_check_type "$LINENO" "ip6tc_handle_t" "ac_cv_type_ip6tc_handle_t" "$ac_includes_default"
25389if test "x$ac_cv_type_ip6tc_handle_t" = xyes; then :
25390
25391cat >>confdefs.h <<_ACEOF
25392#define HAVE_IP6TC_HANDLE_T 1
25393_ACEOF
25394
25395
25396fi
25397
25398fi
25399
25400# Check for the iptc_init symbol in the library.
25401# This could be in iptc or ip4tc
25402if test "x$with_libiptc" = "xpkgconfig"; then
25403  SAVE_LIBS="$LIBS"
25404  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iptc_init" >&5
25405$as_echo_n "checking for library containing iptc_init... " >&6; }
25406if ${ac_cv_search_iptc_init+:} false; then :
25407  $as_echo_n "(cached) " >&6
25408else
25409  ac_func_search_save_LIBS=$LIBS
25410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25411/* end confdefs.h.  */
25412
25413/* Override any GCC internal prototype to avoid an error.
25414   Use char because int might match the return type of a GCC
25415   builtin and then its argument prototype would still apply.  */
25416#ifdef __cplusplus
25417extern "C"
25418#endif
25419char iptc_init ();
25420int
25421main ()
25422{
25423return iptc_init ();
25424  ;
25425  return 0;
25426}
25427_ACEOF
25428for ac_lib in '' iptc ip4tc; do
25429  if test -z "$ac_lib"; then
25430    ac_res="none required"
25431  else
25432    ac_res=-l$ac_lib
25433    LIBS="-l$ac_lib $with_libiptc_libs
25434   $ac_func_search_save_LIBS"
25435  fi
25436  if ac_fn_c_try_link "$LINENO"; then :
25437  ac_cv_search_iptc_init=$ac_res
25438fi
25439rm -f core conftest.err conftest.$ac_objext \
25440    conftest$ac_exeext
25441  if ${ac_cv_search_iptc_init+:} false; then :
25442  break
25443fi
25444done
25445if ${ac_cv_search_iptc_init+:} false; then :
25446
25447else
25448  ac_cv_search_iptc_init=no
25449fi
25450rm conftest.$ac_ext
25451LIBS=$ac_func_search_save_LIBS
25452fi
25453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iptc_init" >&5
25454$as_echo "$ac_cv_search_iptc_init" >&6; }
25455ac_res=$ac_cv_search_iptc_init
25456if test "$ac_res" != no; then :
25457  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25458  with_libiptc="pkgconfig"
25459else
25460  with_libiptc="no"
25461fi
25462
25463  LIBS="$SAVE_LIBS"
25464fi
25465
25466if test "x$with_libiptc" = "xpkgconfig"; then
25467  with_libiptc="yes"
25468fi
25469
25470CPPFLAGS="$SAVE_CPPFLAGS"
25471
25472if test "x$with_libiptc" = "xyes"; then
25473  BUILD_WITH_LIBIPTC_CPPFLAGS="$with_libiptc_cflags"
25474  BUILD_WITH_LIBIPTC_LDFLAGS="$with_libiptc_libs"
25475fi
25476
25477
25478# }}}
25479
25480# --with-java {{{
25481with_java_home="$JAVA_HOME"
25482if test "x$with_java_home" = "x"; then
25483  with_java_home="/usr/lib/jvm"
25484fi
25485
25486JAVAC="$JAVAC"
25487JAR="$JAR"
25488
25489# Check whether --with-java was given.
25490if test "${with_java+set}" = set; then :
25491  withval=$with_java;
25492    if test "x$withval" = "xno"; then
25493      with_java="no"
25494    else if test "x$withval" = "xyes"; then
25495      with_java="yes"
25496    else
25497      with_java_home="$withval"
25498      with_java="yes"
25499    fi; fi
25500
25501else
25502  with_java="yes"
25503
25504fi
25505
25506
25507
25508
25509
25510  # Used to indicate true or false condition
25511  ax_compare_version=false
25512
25513  # Convert the two version strings to be compared into a format that
25514  # allows a simple string comparison.  The end result is that a version
25515  # string of the form 1.12.5-r617 will be converted to the form
25516  # 0001001200050617.  In other words, each number is zero padded to four
25517  # digits, and non digits are removed.
25518
25519  ax_compare_version_A=`echo "$am__api_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
25520                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
25521                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
25522                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
25523                     -e 's/[^0-9]//g'`
25524
25525
25526  ax_compare_version_B=`echo "1.12" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
25527                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
25528                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
25529                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
25530                     -e 's/[^0-9]//g'`
25531
25532
25533    ax_compare_version=`echo "x$ax_compare_version_A
25534x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
25535
25536
25537
25538    if test "$ax_compare_version" = "true" ; then
25539    JAVA_TIMESTAMP_FILE="classdist_noinst.stamp"
25540    else JAVA_TIMESTAMP_FILE="classnoinst.stamp"
25541  fi
25542
25543if test "x$with_java" = "xyes"; then
25544  if test -d "$with_java_home"; then
25545    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jni.h" >&5
25546$as_echo_n "checking for jni.h... " >&6; }
25547    TMPVAR=`find -L "$with_java_home" -name jni.h -type f -exec 'dirname' '{}' ';' 2>/dev/null | LC_ALL=C sort | head -n 1`
25548    if test "x$TMPVAR" != "x"; then
25549      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $TMPVAR" >&5
25550$as_echo "found in $TMPVAR" >&6; }
25551      JAVA_CPPFLAGS="$JAVA_CPPFLAGS -I$TMPVAR"
25552    else
25553      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25554$as_echo "not found" >&6; }
25555    fi
25556
25557    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jni_md.h" >&5
25558$as_echo_n "checking for jni_md.h... " >&6; }
25559    TMPVAR=`find -L "$with_java_home" -name jni_md.h -type f -exec 'dirname' '{}' ';' 2>/dev/null | LC_ALL=C sort | head -n 1`
25560    if test "x$TMPVAR" != "x"; then
25561      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $TMPVAR" >&5
25562$as_echo "found in $TMPVAR" >&6; }
25563      JAVA_CPPFLAGS="$JAVA_CPPFLAGS -I$TMPVAR"
25564    else
25565      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25566$as_echo "not found" >&6; }
25567    fi
25568
25569    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjvm.so" >&5
25570$as_echo_n "checking for libjvm.so... " >&6; }
25571    TMPVAR=`find -L "$with_java_home" -type f \( -name libjvm.so -o -name libjvm.dylib \) -exec 'dirname' '{}' ';' 2>/dev/null | LC_ALL=C sort | head -n 1`
25572    if test "x$TMPVAR" != "x"; then
25573      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $TMPVAR" >&5
25574$as_echo "found in $TMPVAR" >&6; }
25575      JAVA_LDFLAGS="$JAVA_LDFLAGS -L$TMPVAR -Wl,-rpath -Wl,$TMPVAR"
25576    else
25577      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25578$as_echo "not found" >&6; }
25579    fi
25580
25581    if test "x$JAVAC" = "x"; then
25582      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac" >&5
25583$as_echo_n "checking for javac... " >&6; }
25584      TMPVAR=`find -L "$with_java_home" -name javac -type f 2>/dev/null | LC_ALL=C sort | head -n 1`
25585      if test "x$TMPVAR" != "x"; then
25586        JAVAC="$TMPVAR"
25587        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
25588$as_echo "$JAVAC" >&6; }
25589      else
25590        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25591$as_echo "not found" >&6; }
25592      fi
25593    fi
25594
25595    if test "x$JAR" = "x"; then
25596      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar" >&5
25597$as_echo_n "checking for jar... " >&6; }
25598      TMPVAR=`find -L "$with_java_home" -name jar -type f 2>/dev/null | LC_ALL=C sort | head -n 1`
25599      if test "x$TMPVAR" != "x"; then
25600        JAR="$TMPVAR"
25601        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
25602$as_echo "$JAR" >&6; }
25603      else
25604        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25605$as_echo "not found" >&6; }
25606      fi
25607    fi
25608  else if test "x$with_java_home" != "x"; then
25609    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: JAVA_HOME: No such directory: $with_java_home" >&5
25610$as_echo "$as_me: WARNING: JAVA_HOME: No such directory: $with_java_home" >&2;}
25611  fi; fi
25612fi
25613
25614if test "x$JAVAC" = "x"; then
25615  with_javac_path="$PATH"
25616  if test "x$with_java_home" != "x"; then
25617    with_javac_path="$with_java_home:with_javac_path"
25618    if test -d "$with_java_home/bin"; then
25619      with_javac_path="$with_java_home/bin:with_javac_path"
25620    fi
25621  fi
25622
25623  # Extract the first word of "javac", so it can be a program name with args.
25624set dummy javac; ac_word=$2
25625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25626$as_echo_n "checking for $ac_word... " >&6; }
25627if ${ac_cv_path_JAVAC+:} false; then :
25628  $as_echo_n "(cached) " >&6
25629else
25630  case $JAVAC in
25631  [\\/]* | ?:[\\/]*)
25632  ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
25633  ;;
25634  *)
25635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25636for as_dir in "$with_javac_path"
25637do
25638  IFS=$as_save_IFS
25639  test -z "$as_dir" && as_dir=.
25640    for ac_exec_ext in '' $ac_executable_extensions; do
25641  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25642    ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
25643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25644    break 2
25645  fi
25646done
25647  done
25648IFS=$as_save_IFS
25649
25650  ;;
25651esac
25652fi
25653JAVAC=$ac_cv_path_JAVAC
25654if test -n "$JAVAC"; then
25655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
25656$as_echo "$JAVAC" >&6; }
25657else
25658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25659$as_echo "no" >&6; }
25660fi
25661
25662
25663fi
25664
25665if test "x$JAVAC" = "x"; then
25666  with_java="no (javac not found)"
25667fi
25668
25669if test "x$JAR" = "x"; then
25670  with_jar_path="$PATH"
25671  if test "x$with_java_home" != "x"; then
25672    with_jar_path="$with_java_home:$with_jar_path"
25673    if test -d "$with_java_home/bin"; then
25674      with_jar_path="$with_java_home/bin:$with_jar_path"
25675    fi
25676  fi
25677
25678  # Extract the first word of "jar", so it can be a program name with args.
25679set dummy jar; ac_word=$2
25680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25681$as_echo_n "checking for $ac_word... " >&6; }
25682if ${ac_cv_path_JAR+:} false; then :
25683  $as_echo_n "(cached) " >&6
25684else
25685  case $JAR in
25686  [\\/]* | ?:[\\/]*)
25687  ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
25688  ;;
25689  *)
25690  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25691for as_dir in "$with_jar_path"
25692do
25693  IFS=$as_save_IFS
25694  test -z "$as_dir" && as_dir=.
25695    for ac_exec_ext in '' $ac_executable_extensions; do
25696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25697    ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
25698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25699    break 2
25700  fi
25701done
25702  done
25703IFS=$as_save_IFS
25704
25705  ;;
25706esac
25707fi
25708JAR=$ac_cv_path_JAR
25709if test -n "$JAR"; then
25710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
25711$as_echo "$JAR" >&6; }
25712else
25713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25714$as_echo "no" >&6; }
25715fi
25716
25717
25718fi
25719
25720if test "x$JAR" = "x"; then
25721  with_java="no (jar not found)"
25722fi
25723
25724SAVE_CPPFLAGS="$CPPFLAGS"
25725SAVE_CFLAGS="$CFLAGS"
25726SAVE_LDFLAGS="$LDFLAGS"
25727SAVE_LIBS="$LIBS"
25728CPPFLAGS="$CPPFLAGS $JAVA_CPPFLAGS"
25729CFLAGS="$CFLAGS $JAVA_CFLAGS"
25730LDFLAGS="$LDFLAGS $JAVA_LDFLAGS"
25731LIBS="$LIBS $JAVA_LIBS"
25732
25733if test "x$with_java" = "xyes"; then
25734  for ac_header in jni.h
25735do :
25736  ac_fn_c_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
25737if test "x$ac_cv_header_jni_h" = xyes; then :
25738  cat >>confdefs.h <<_ACEOF
25739#define HAVE_JNI_H 1
25740_ACEOF
25741 with_jave="yes"
25742else
25743  with_java="no (jni.h not found)"
25744fi
25745
25746done
25747
25748fi
25749
25750if test "x$with_java" = "xyes"; then
25751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JNI_CreateJavaVM in -ljvm" >&5
25752$as_echo_n "checking for JNI_CreateJavaVM in -ljvm... " >&6; }
25753if ${ac_cv_lib_jvm_JNI_CreateJavaVM+:} false; then :
25754  $as_echo_n "(cached) " >&6
25755else
25756  ac_check_lib_save_LIBS=$LIBS
25757LIBS="-ljvm $JAVA_LIBS $PTHREAD_LIBS
25758   $LIBS"
25759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25760/* end confdefs.h.  */
25761
25762/* Override any GCC internal prototype to avoid an error.
25763   Use char because int might match the return type of a GCC
25764   builtin and then its argument prototype would still apply.  */
25765#ifdef __cplusplus
25766extern "C"
25767#endif
25768char JNI_CreateJavaVM ();
25769int
25770main ()
25771{
25772return JNI_CreateJavaVM ();
25773  ;
25774  return 0;
25775}
25776_ACEOF
25777if ac_fn_c_try_link "$LINENO"; then :
25778  ac_cv_lib_jvm_JNI_CreateJavaVM=yes
25779else
25780  ac_cv_lib_jvm_JNI_CreateJavaVM=no
25781fi
25782rm -f core conftest.err conftest.$ac_objext \
25783    conftest$ac_exeext conftest.$ac_ext
25784LIBS=$ac_check_lib_save_LIBS
25785fi
25786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jvm_JNI_CreateJavaVM" >&5
25787$as_echo "$ac_cv_lib_jvm_JNI_CreateJavaVM" >&6; }
25788if test "x$ac_cv_lib_jvm_JNI_CreateJavaVM" = xyes; then :
25789  with_java="yes"
25790else
25791  with_java="no (Symbol 'JNI_CreateJavaVM' not found)"
25792fi
25793
25794fi
25795
25796if test "x$with_java" = "xyes"; then
25797  JAVA_LIBS="$JAVA_LIBS -ljvm"
25798fi
25799
25800CPPFLAGS="$SAVE_CPPFLAGS"
25801CFLAGS="$SAVE_CFLAGS"
25802LDFLAGS="$SAVE_LDFLAGS"
25803LIBS="$SAVE_LIBS"
25804
25805
25806
25807
25808
25809
25810 if test "x$with_java" = "xyes"; then
25811  BUILD_WITH_JAVA_TRUE=
25812  BUILD_WITH_JAVA_FALSE='#'
25813else
25814  BUILD_WITH_JAVA_TRUE='#'
25815  BUILD_WITH_JAVA_FALSE=
25816fi
25817
25818# }}}
25819
25820# --with-libldap {{{
25821
25822# Check whether --with-libldap was given.
25823if test "${with_libldap+set}" = set; then :
25824  withval=$with_libldap;
25825    if test "x$withval" = "xyes"; then
25826      with_libldap="yes"
25827    else if test "x$withval" = "xno"; then
25828      with_libldap="no"
25829    else
25830      with_libldap="yes"
25831      LIBLDAP_CPPFLAGS="$LIBLDAP_CPPFLAGS -I$withval/include"
25832      LIBLDAP_LDFLAGS="$LIBLDAP_LDFLAGS -L$withval/lib"
25833    fi; fi
25834
25835else
25836  with_libldap="yes"
25837
25838fi
25839
25840
25841SAVE_CPPFLAGS="$CPPFLAGS"
25842SAVE_LDFLAGS="$LDFLAGS"
25843
25844CPPFLAGS="$CPPFLAGS $LIBLDAP_CPPFLAGS"
25845LDFLAGS="$LDFLAGS $LIBLDAP_LDFLAGS"
25846
25847if test "x$with_libldap" = "xyes"; then
25848  for ac_header in ldap.h
25849do :
25850  ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
25851if test "x$ac_cv_header_ldap_h" = xyes; then :
25852  cat >>confdefs.h <<_ACEOF
25853#define HAVE_LDAP_H 1
25854_ACEOF
25855 with_libldap="yes"
25856else
25857  with_libldap="no ('ldap.h' not found)"
25858
25859fi
25860
25861done
25862
25863fi
25864
25865if test "x$with_libldap" = "xyes"; then
25866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
25867$as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
25868if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
25869  $as_echo_n "(cached) " >&6
25870else
25871  ac_check_lib_save_LIBS=$LIBS
25872LIBS="-lldap  $LIBS"
25873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25874/* end confdefs.h.  */
25875
25876/* Override any GCC internal prototype to avoid an error.
25877   Use char because int might match the return type of a GCC
25878   builtin and then its argument prototype would still apply.  */
25879#ifdef __cplusplus
25880extern "C"
25881#endif
25882char ldap_initialize ();
25883int
25884main ()
25885{
25886return ldap_initialize ();
25887  ;
25888  return 0;
25889}
25890_ACEOF
25891if ac_fn_c_try_link "$LINENO"; then :
25892  ac_cv_lib_ldap_ldap_initialize=yes
25893else
25894  ac_cv_lib_ldap_ldap_initialize=no
25895fi
25896rm -f core conftest.err conftest.$ac_objext \
25897    conftest$ac_exeext conftest.$ac_ext
25898LIBS=$ac_check_lib_save_LIBS
25899fi
25900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
25901$as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
25902if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
25903  with_libldap="yes"
25904else
25905  with_libldap="no (symbol 'ldap_initialize' not found)"
25906
25907fi
25908
25909fi
25910
25911CPPFLAGS="$SAVE_CPPFLAGS"
25912LDFLAGS="$SAVE_LDFLAGS"
25913
25914if test "x$with_libldap" = "xyes"
25915then
25916  BUILD_WITH_LIBLDAP_CPPFLAGS="$LIBLDAP_CPPFLAGS"
25917  BUILD_WITH_LIBLDAP_LDFLAGS="$LIBLDAP_LDFLAGS"
25918fi
25919
25920
25921# }}}
25922
25923# --with-liblua {{{
25924
25925if test "x$LIBLUA_PKG_CONFIG_NAME" != "x"
25926then
25927
25928pkg_failed=no
25929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
25930$as_echo_n "checking for LUA... " >&6; }
25931
25932if test -n "$LUA_CFLAGS"; then
25933    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
25934 elif test -n "$PKG_CONFIG"; then
25935    if test -n "$PKG_CONFIG" && \
25936    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBLUA_PKG_CONFIG_NAME\""; } >&5
25937  ($PKG_CONFIG --exists --print-errors "$LIBLUA_PKG_CONFIG_NAME") 2>&5
25938  ac_status=$?
25939  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25940  test $ac_status = 0; }; then
25941  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$LIBLUA_PKG_CONFIG_NAME" 2>/dev/null`
25942		      test "x$?" != "x0" && pkg_failed=yes
25943else
25944  pkg_failed=yes
25945fi
25946 else
25947    pkg_failed=untried
25948fi
25949if test -n "$LUA_LIBS"; then
25950    pkg_cv_LUA_LIBS="$LUA_LIBS"
25951 elif test -n "$PKG_CONFIG"; then
25952    if test -n "$PKG_CONFIG" && \
25953    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBLUA_PKG_CONFIG_NAME\""; } >&5
25954  ($PKG_CONFIG --exists --print-errors "$LIBLUA_PKG_CONFIG_NAME") 2>&5
25955  ac_status=$?
25956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25957  test $ac_status = 0; }; then
25958  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$LIBLUA_PKG_CONFIG_NAME" 2>/dev/null`
25959		      test "x$?" != "x0" && pkg_failed=yes
25960else
25961  pkg_failed=yes
25962fi
25963 else
25964    pkg_failed=untried
25965fi
25966
25967
25968
25969if test $pkg_failed = yes; then
25970   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25971$as_echo "no" >&6; }
25972
25973if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25974        _pkg_short_errors_supported=yes
25975else
25976        _pkg_short_errors_supported=no
25977fi
25978        if test $_pkg_short_errors_supported = yes; then
25979	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBLUA_PKG_CONFIG_NAME" 2>&1`
25980        else
25981	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBLUA_PKG_CONFIG_NAME" 2>&1`
25982        fi
25983	# Put the nasty error message in config.log where it belongs
25984	echo "$LUA_PKG_ERRORS" >&5
25985
25986	with_liblua="no"
25987
25988elif test $pkg_failed = untried; then
25989     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25990$as_echo "no" >&6; }
25991	with_liblua="no"
25992
25993else
25994	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
25995	LUA_LIBS=$pkg_cv_LUA_LIBS
25996        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25997$as_echo "yes" >&6; }
25998	with_liblua="yes"
25999fi
26000else
26001
26002pkg_failed=no
26003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
26004$as_echo_n "checking for LUA... " >&6; }
26005
26006if test -n "$LUA_CFLAGS"; then
26007    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
26008 elif test -n "$PKG_CONFIG"; then
26009    if test -n "$PKG_CONFIG" && \
26010    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5
26011  ($PKG_CONFIG --exists --print-errors "lua") 2>&5
26012  ac_status=$?
26013  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26014  test $ac_status = 0; }; then
26015  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua" 2>/dev/null`
26016		      test "x$?" != "x0" && pkg_failed=yes
26017else
26018  pkg_failed=yes
26019fi
26020 else
26021    pkg_failed=untried
26022fi
26023if test -n "$LUA_LIBS"; then
26024    pkg_cv_LUA_LIBS="$LUA_LIBS"
26025 elif test -n "$PKG_CONFIG"; then
26026    if test -n "$PKG_CONFIG" && \
26027    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5
26028  ($PKG_CONFIG --exists --print-errors "lua") 2>&5
26029  ac_status=$?
26030  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26031  test $ac_status = 0; }; then
26032  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua" 2>/dev/null`
26033		      test "x$?" != "x0" && pkg_failed=yes
26034else
26035  pkg_failed=yes
26036fi
26037 else
26038    pkg_failed=untried
26039fi
26040
26041
26042
26043if test $pkg_failed = yes; then
26044   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26045$as_echo "no" >&6; }
26046
26047if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26048        _pkg_short_errors_supported=yes
26049else
26050        _pkg_short_errors_supported=no
26051fi
26052        if test $_pkg_short_errors_supported = yes; then
26053	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua" 2>&1`
26054        else
26055	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua" 2>&1`
26056        fi
26057	# Put the nasty error message in config.log where it belongs
26058	echo "$LUA_PKG_ERRORS" >&5
26059
26060
26061
26062pkg_failed=no
26063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
26064$as_echo_n "checking for LUA... " >&6; }
26065
26066if test -n "$LUA_CFLAGS"; then
26067    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
26068 elif test -n "$PKG_CONFIG"; then
26069    if test -n "$PKG_CONFIG" && \
26070    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.3\""; } >&5
26071  ($PKG_CONFIG --exists --print-errors "lua-5.3") 2>&5
26072  ac_status=$?
26073  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26074  test $ac_status = 0; }; then
26075  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.3" 2>/dev/null`
26076		      test "x$?" != "x0" && pkg_failed=yes
26077else
26078  pkg_failed=yes
26079fi
26080 else
26081    pkg_failed=untried
26082fi
26083if test -n "$LUA_LIBS"; then
26084    pkg_cv_LUA_LIBS="$LUA_LIBS"
26085 elif test -n "$PKG_CONFIG"; then
26086    if test -n "$PKG_CONFIG" && \
26087    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.3\""; } >&5
26088  ($PKG_CONFIG --exists --print-errors "lua-5.3") 2>&5
26089  ac_status=$?
26090  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26091  test $ac_status = 0; }; then
26092  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.3" 2>/dev/null`
26093		      test "x$?" != "x0" && pkg_failed=yes
26094else
26095  pkg_failed=yes
26096fi
26097 else
26098    pkg_failed=untried
26099fi
26100
26101
26102
26103if test $pkg_failed = yes; then
26104   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26105$as_echo "no" >&6; }
26106
26107if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26108        _pkg_short_errors_supported=yes
26109else
26110        _pkg_short_errors_supported=no
26111fi
26112        if test $_pkg_short_errors_supported = yes; then
26113	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.3" 2>&1`
26114        else
26115	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.3" 2>&1`
26116        fi
26117	# Put the nasty error message in config.log where it belongs
26118	echo "$LUA_PKG_ERRORS" >&5
26119
26120
26121
26122pkg_failed=no
26123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
26124$as_echo_n "checking for LUA... " >&6; }
26125
26126if test -n "$LUA_CFLAGS"; then
26127    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
26128 elif test -n "$PKG_CONFIG"; then
26129    if test -n "$PKG_CONFIG" && \
26130    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.3\""; } >&5
26131  ($PKG_CONFIG --exists --print-errors "lua5.3") 2>&5
26132  ac_status=$?
26133  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26134  test $ac_status = 0; }; then
26135  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.3" 2>/dev/null`
26136		      test "x$?" != "x0" && pkg_failed=yes
26137else
26138  pkg_failed=yes
26139fi
26140 else
26141    pkg_failed=untried
26142fi
26143if test -n "$LUA_LIBS"; then
26144    pkg_cv_LUA_LIBS="$LUA_LIBS"
26145 elif test -n "$PKG_CONFIG"; then
26146    if test -n "$PKG_CONFIG" && \
26147    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.3\""; } >&5
26148  ($PKG_CONFIG --exists --print-errors "lua5.3") 2>&5
26149  ac_status=$?
26150  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26151  test $ac_status = 0; }; then
26152  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.3" 2>/dev/null`
26153		      test "x$?" != "x0" && pkg_failed=yes
26154else
26155  pkg_failed=yes
26156fi
26157 else
26158    pkg_failed=untried
26159fi
26160
26161
26162
26163if test $pkg_failed = yes; then
26164   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26165$as_echo "no" >&6; }
26166
26167if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26168        _pkg_short_errors_supported=yes
26169else
26170        _pkg_short_errors_supported=no
26171fi
26172        if test $_pkg_short_errors_supported = yes; then
26173	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.3" 2>&1`
26174        else
26175	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.3" 2>&1`
26176        fi
26177	# Put the nasty error message in config.log where it belongs
26178	echo "$LUA_PKG_ERRORS" >&5
26179
26180
26181
26182pkg_failed=no
26183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
26184$as_echo_n "checking for LUA... " >&6; }
26185
26186if test -n "$LUA_CFLAGS"; then
26187    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
26188 elif test -n "$PKG_CONFIG"; then
26189    if test -n "$PKG_CONFIG" && \
26190    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua53\""; } >&5
26191  ($PKG_CONFIG --exists --print-errors "lua53") 2>&5
26192  ac_status=$?
26193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26194  test $ac_status = 0; }; then
26195  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua53" 2>/dev/null`
26196		      test "x$?" != "x0" && pkg_failed=yes
26197else
26198  pkg_failed=yes
26199fi
26200 else
26201    pkg_failed=untried
26202fi
26203if test -n "$LUA_LIBS"; then
26204    pkg_cv_LUA_LIBS="$LUA_LIBS"
26205 elif test -n "$PKG_CONFIG"; then
26206    if test -n "$PKG_CONFIG" && \
26207    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua53\""; } >&5
26208  ($PKG_CONFIG --exists --print-errors "lua53") 2>&5
26209  ac_status=$?
26210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26211  test $ac_status = 0; }; then
26212  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua53" 2>/dev/null`
26213		      test "x$?" != "x0" && pkg_failed=yes
26214else
26215  pkg_failed=yes
26216fi
26217 else
26218    pkg_failed=untried
26219fi
26220
26221
26222
26223if test $pkg_failed = yes; then
26224   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26225$as_echo "no" >&6; }
26226
26227if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26228        _pkg_short_errors_supported=yes
26229else
26230        _pkg_short_errors_supported=no
26231fi
26232        if test $_pkg_short_errors_supported = yes; then
26233	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua53" 2>&1`
26234        else
26235	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua53" 2>&1`
26236        fi
26237	# Put the nasty error message in config.log where it belongs
26238	echo "$LUA_PKG_ERRORS" >&5
26239
26240
26241
26242pkg_failed=no
26243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
26244$as_echo_n "checking for LUA... " >&6; }
26245
26246if test -n "$LUA_CFLAGS"; then
26247    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
26248 elif test -n "$PKG_CONFIG"; then
26249    if test -n "$PKG_CONFIG" && \
26250    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
26251  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
26252  ac_status=$?
26253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26254  test $ac_status = 0; }; then
26255  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.2" 2>/dev/null`
26256		      test "x$?" != "x0" && pkg_failed=yes
26257else
26258  pkg_failed=yes
26259fi
26260 else
26261    pkg_failed=untried
26262fi
26263if test -n "$LUA_LIBS"; then
26264    pkg_cv_LUA_LIBS="$LUA_LIBS"
26265 elif test -n "$PKG_CONFIG"; then
26266    if test -n "$PKG_CONFIG" && \
26267    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
26268  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
26269  ac_status=$?
26270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26271  test $ac_status = 0; }; then
26272  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.2" 2>/dev/null`
26273		      test "x$?" != "x0" && pkg_failed=yes
26274else
26275  pkg_failed=yes
26276fi
26277 else
26278    pkg_failed=untried
26279fi
26280
26281
26282
26283if test $pkg_failed = yes; then
26284   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26285$as_echo "no" >&6; }
26286
26287if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26288        _pkg_short_errors_supported=yes
26289else
26290        _pkg_short_errors_supported=no
26291fi
26292        if test $_pkg_short_errors_supported = yes; then
26293	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.2" 2>&1`
26294        else
26295	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.2" 2>&1`
26296        fi
26297	# Put the nasty error message in config.log where it belongs
26298	echo "$LUA_PKG_ERRORS" >&5
26299
26300
26301
26302pkg_failed=no
26303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
26304$as_echo_n "checking for LUA... " >&6; }
26305
26306if test -n "$LUA_CFLAGS"; then
26307    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
26308 elif test -n "$PKG_CONFIG"; then
26309    if test -n "$PKG_CONFIG" && \
26310    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
26311  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
26312  ac_status=$?
26313  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26314  test $ac_status = 0; }; then
26315  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
26316		      test "x$?" != "x0" && pkg_failed=yes
26317else
26318  pkg_failed=yes
26319fi
26320 else
26321    pkg_failed=untried
26322fi
26323if test -n "$LUA_LIBS"; then
26324    pkg_cv_LUA_LIBS="$LUA_LIBS"
26325 elif test -n "$PKG_CONFIG"; then
26326    if test -n "$PKG_CONFIG" && \
26327    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
26328  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
26329  ac_status=$?
26330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26331  test $ac_status = 0; }; then
26332  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
26333		      test "x$?" != "x0" && pkg_failed=yes
26334else
26335  pkg_failed=yes
26336fi
26337 else
26338    pkg_failed=untried
26339fi
26340
26341
26342
26343if test $pkg_failed = yes; then
26344   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26345$as_echo "no" >&6; }
26346
26347if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26348        _pkg_short_errors_supported=yes
26349else
26350        _pkg_short_errors_supported=no
26351fi
26352        if test $_pkg_short_errors_supported = yes; then
26353	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
26354        else
26355	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
26356        fi
26357	# Put the nasty error message in config.log where it belongs
26358	echo "$LUA_PKG_ERRORS" >&5
26359
26360
26361
26362pkg_failed=no
26363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
26364$as_echo_n "checking for LUA... " >&6; }
26365
26366if test -n "$LUA_CFLAGS"; then
26367    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
26368 elif test -n "$PKG_CONFIG"; then
26369    if test -n "$PKG_CONFIG" && \
26370    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
26371  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
26372  ac_status=$?
26373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26374  test $ac_status = 0; }; then
26375  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
26376		      test "x$?" != "x0" && pkg_failed=yes
26377else
26378  pkg_failed=yes
26379fi
26380 else
26381    pkg_failed=untried
26382fi
26383if test -n "$LUA_LIBS"; then
26384    pkg_cv_LUA_LIBS="$LUA_LIBS"
26385 elif test -n "$PKG_CONFIG"; then
26386    if test -n "$PKG_CONFIG" && \
26387    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
26388  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
26389  ac_status=$?
26390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26391  test $ac_status = 0; }; then
26392  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
26393		      test "x$?" != "x0" && pkg_failed=yes
26394else
26395  pkg_failed=yes
26396fi
26397 else
26398    pkg_failed=untried
26399fi
26400
26401
26402
26403if test $pkg_failed = yes; then
26404   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26405$as_echo "no" >&6; }
26406
26407if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26408        _pkg_short_errors_supported=yes
26409else
26410        _pkg_short_errors_supported=no
26411fi
26412        if test $_pkg_short_errors_supported = yes; then
26413	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
26414        else
26415	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
26416        fi
26417	# Put the nasty error message in config.log where it belongs
26418	echo "$LUA_PKG_ERRORS" >&5
26419
26420
26421
26422pkg_failed=no
26423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
26424$as_echo_n "checking for LUA... " >&6; }
26425
26426if test -n "$LUA_CFLAGS"; then
26427    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
26428 elif test -n "$PKG_CONFIG"; then
26429    if test -n "$PKG_CONFIG" && \
26430    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
26431  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
26432  ac_status=$?
26433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26434  test $ac_status = 0; }; then
26435  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
26436		      test "x$?" != "x0" && pkg_failed=yes
26437else
26438  pkg_failed=yes
26439fi
26440 else
26441    pkg_failed=untried
26442fi
26443if test -n "$LUA_LIBS"; then
26444    pkg_cv_LUA_LIBS="$LUA_LIBS"
26445 elif test -n "$PKG_CONFIG"; then
26446    if test -n "$PKG_CONFIG" && \
26447    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
26448  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
26449  ac_status=$?
26450  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26451  test $ac_status = 0; }; then
26452  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
26453		      test "x$?" != "x0" && pkg_failed=yes
26454else
26455  pkg_failed=yes
26456fi
26457 else
26458    pkg_failed=untried
26459fi
26460
26461
26462
26463if test $pkg_failed = yes; then
26464   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26465$as_echo "no" >&6; }
26466
26467if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26468        _pkg_short_errors_supported=yes
26469else
26470        _pkg_short_errors_supported=no
26471fi
26472        if test $_pkg_short_errors_supported = yes; then
26473	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
26474        else
26475	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
26476        fi
26477	# Put the nasty error message in config.log where it belongs
26478	echo "$LUA_PKG_ERRORS" >&5
26479
26480
26481
26482pkg_failed=no
26483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
26484$as_echo_n "checking for LUA... " >&6; }
26485
26486if test -n "$LUA_CFLAGS"; then
26487    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
26488 elif test -n "$PKG_CONFIG"; then
26489    if test -n "$PKG_CONFIG" && \
26490    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
26491  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
26492  ac_status=$?
26493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26494  test $ac_status = 0; }; then
26495  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
26496		      test "x$?" != "x0" && pkg_failed=yes
26497else
26498  pkg_failed=yes
26499fi
26500 else
26501    pkg_failed=untried
26502fi
26503if test -n "$LUA_LIBS"; then
26504    pkg_cv_LUA_LIBS="$LUA_LIBS"
26505 elif test -n "$PKG_CONFIG"; then
26506    if test -n "$PKG_CONFIG" && \
26507    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
26508  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
26509  ac_status=$?
26510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26511  test $ac_status = 0; }; then
26512  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
26513		      test "x$?" != "x0" && pkg_failed=yes
26514else
26515  pkg_failed=yes
26516fi
26517 else
26518    pkg_failed=untried
26519fi
26520
26521
26522
26523if test $pkg_failed = yes; then
26524   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26525$as_echo "no" >&6; }
26526
26527if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26528        _pkg_short_errors_supported=yes
26529else
26530        _pkg_short_errors_supported=no
26531fi
26532        if test $_pkg_short_errors_supported = yes; then
26533	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
26534        else
26535	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
26536        fi
26537	# Put the nasty error message in config.log where it belongs
26538	echo "$LUA_PKG_ERRORS" >&5
26539
26540
26541
26542pkg_failed=no
26543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
26544$as_echo_n "checking for LUA... " >&6; }
26545
26546if test -n "$LUA_CFLAGS"; then
26547    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
26548 elif test -n "$PKG_CONFIG"; then
26549    if test -n "$PKG_CONFIG" && \
26550    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
26551  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
26552  ac_status=$?
26553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26554  test $ac_status = 0; }; then
26555  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
26556		      test "x$?" != "x0" && pkg_failed=yes
26557else
26558  pkg_failed=yes
26559fi
26560 else
26561    pkg_failed=untried
26562fi
26563if test -n "$LUA_LIBS"; then
26564    pkg_cv_LUA_LIBS="$LUA_LIBS"
26565 elif test -n "$PKG_CONFIG"; then
26566    if test -n "$PKG_CONFIG" && \
26567    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
26568  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
26569  ac_status=$?
26570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26571  test $ac_status = 0; }; then
26572  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
26573		      test "x$?" != "x0" && pkg_failed=yes
26574else
26575  pkg_failed=yes
26576fi
26577 else
26578    pkg_failed=untried
26579fi
26580
26581
26582
26583if test $pkg_failed = yes; then
26584   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26585$as_echo "no" >&6; }
26586
26587if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26588        _pkg_short_errors_supported=yes
26589else
26590        _pkg_short_errors_supported=no
26591fi
26592        if test $_pkg_short_errors_supported = yes; then
26593	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
26594        else
26595	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
26596        fi
26597	# Put the nasty error message in config.log where it belongs
26598	echo "$LUA_PKG_ERRORS" >&5
26599
26600	with_liblua="no (pkg-config cannot find liblua)"
26601
26602elif test $pkg_failed = untried; then
26603     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26604$as_echo "no" >&6; }
26605	with_liblua="no (pkg-config cannot find liblua)"
26606
26607else
26608	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
26609	LUA_LIBS=$pkg_cv_LUA_LIBS
26610        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26611$as_echo "yes" >&6; }
26612	with_liblua="yes"
26613fi
26614
26615
26616elif test $pkg_failed = untried; then
26617     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26618$as_echo "no" >&6; }
26619
26620
26621pkg_failed=no
26622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
26623$as_echo_n "checking for LUA... " >&6; }
26624
26625if test -n "$LUA_CFLAGS"; then
26626    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
26627 elif test -n "$PKG_CONFIG"; then
26628    if test -n "$PKG_CONFIG" && \
26629    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
26630  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
26631  ac_status=$?
26632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26633  test $ac_status = 0; }; then
26634  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
26635		      test "x$?" != "x0" && pkg_failed=yes
26636else
26637  pkg_failed=yes
26638fi
26639 else
26640    pkg_failed=untried
26641fi
26642if test -n "$LUA_LIBS"; then
26643    pkg_cv_LUA_LIBS="$LUA_LIBS"
26644 elif test -n "$PKG_CONFIG"; then
26645    if test -n "$PKG_CONFIG" && \
26646    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
26647  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
26648  ac_status=$?
26649  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26650  test $ac_status = 0; }; then
26651  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
26652		      test "x$?" != "x0" && pkg_failed=yes
26653else
26654  pkg_failed=yes
26655fi
26656 else
26657    pkg_failed=untried
26658fi
26659
26660
26661
26662if test $pkg_failed = yes; then
26663   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26664$as_echo "no" >&6; }
26665
26666if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26667        _pkg_short_errors_supported=yes
26668else
26669        _pkg_short_errors_supported=no
26670fi
26671        if test $_pkg_short_errors_supported = yes; then
26672	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
26673        else
26674	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
26675        fi
26676	# Put the nasty error message in config.log where it belongs
26677	echo "$LUA_PKG_ERRORS" >&5
26678
26679	with_liblua="no (pkg-config cannot find liblua)"
26680
26681elif test $pkg_failed = untried; then
26682     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26683$as_echo "no" >&6; }
26684	with_liblua="no (pkg-config cannot find liblua)"
26685
26686else
26687	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
26688	LUA_LIBS=$pkg_cv_LUA_LIBS
26689        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26690$as_echo "yes" >&6; }
26691	with_liblua="yes"
26692fi
26693
26694
26695else
26696	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
26697	LUA_LIBS=$pkg_cv_LUA_LIBS
26698        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26699$as_echo "yes" >&6; }
26700	with_liblua="yes"
26701fi
26702
26703
26704elif test $pkg_failed = untried; then
26705     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26706$as_echo "no" >&6; }
26707
26708
26709pkg_failed=no
26710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
26711$as_echo_n "checking for LUA... " >&6; }
26712
26713if test -n "$LUA_CFLAGS"; then
26714    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
26715 elif test -n "$PKG_CONFIG"; then
26716    if test -n "$PKG_CONFIG" && \
26717    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
26718  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
26719  ac_status=$?
26720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26721  test $ac_status = 0; }; then
26722  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
26723		      test "x$?" != "x0" && pkg_failed=yes
26724else
26725  pkg_failed=yes
26726fi
26727 else
26728    pkg_failed=untried
26729fi
26730if test -n "$LUA_LIBS"; then
26731    pkg_cv_LUA_LIBS="$LUA_LIBS"
26732 elif test -n "$PKG_CONFIG"; then
26733    if test -n "$PKG_CONFIG" && \
26734    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
26735  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
26736  ac_status=$?
26737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26738  test $ac_status = 0; }; then
26739  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
26740		      test "x$?" != "x0" && pkg_failed=yes
26741else
26742  pkg_failed=yes
26743fi
26744 else
26745    pkg_failed=untried
26746fi
26747
26748
26749
26750if test $pkg_failed = yes; then
26751   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26752$as_echo "no" >&6; }
26753
26754if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26755        _pkg_short_errors_supported=yes
26756else
26757        _pkg_short_errors_supported=no
26758fi
26759        if test $_pkg_short_errors_supported = yes; then
26760	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
26761        else
26762	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
26763        fi
26764	# Put the nasty error message in config.log where it belongs
26765	echo "$LUA_PKG_ERRORS" >&5
26766
26767
26768
26769pkg_failed=no
26770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
26771$as_echo_n "checking for LUA... " >&6; }
26772
26773if test -n "$LUA_CFLAGS"; then
26774    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
26775 elif test -n "$PKG_CONFIG"; then
26776    if test -n "$PKG_CONFIG" && \
26777    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
26778  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
26779  ac_status=$?
26780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26781  test $ac_status = 0; }; then
26782  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
26783		      test "x$?" != "x0" && pkg_failed=yes
26784else
26785  pkg_failed=yes
26786fi
26787 else
26788    pkg_failed=untried
26789fi
26790if test -n "$LUA_LIBS"; then
26791    pkg_cv_LUA_LIBS="$LUA_LIBS"
26792 elif test -n "$PKG_CONFIG"; then
26793    if test -n "$PKG_CONFIG" && \
26794    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
26795  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
26796  ac_status=$?
26797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26798  test $ac_status = 0; }; then
26799  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
26800		      test "x$?" != "x0" && pkg_failed=yes
26801else
26802  pkg_failed=yes
26803fi
26804 else
26805    pkg_failed=untried
26806fi
26807
26808
26809
26810if test $pkg_failed = yes; then
26811   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26812$as_echo "no" >&6; }
26813
26814if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26815        _pkg_short_errors_supported=yes
26816else
26817        _pkg_short_errors_supported=no
26818fi
26819        if test $_pkg_short_errors_supported = yes; then
26820	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
26821        else
26822	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
26823        fi
26824	# Put the nasty error message in config.log where it belongs
26825	echo "$LUA_PKG_ERRORS" >&5
26826
26827	with_liblua="no (pkg-config cannot find liblua)"
26828
26829elif test $pkg_failed = untried; then
26830     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26831$as_echo "no" >&6; }
26832	with_liblua="no (pkg-config cannot find liblua)"
26833
26834else
26835	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
26836	LUA_LIBS=$pkg_cv_LUA_LIBS
26837        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26838$as_echo "yes" >&6; }
26839	with_liblua="yes"
26840fi
26841
26842
26843elif test $pkg_failed = untried; then
26844     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26845$as_echo "no" >&6; }
26846
26847
26848pkg_failed=no
26849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
26850$as_echo_n "checking for LUA... " >&6; }
26851
26852if test -n "$LUA_CFLAGS"; then
26853    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
26854 elif test -n "$PKG_CONFIG"; then
26855    if test -n "$PKG_CONFIG" && \
26856    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
26857  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
26858  ac_status=$?
26859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26860  test $ac_status = 0; }; then
26861  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
26862		      test "x$?" != "x0" && pkg_failed=yes
26863else
26864  pkg_failed=yes
26865fi
26866 else
26867    pkg_failed=untried
26868fi
26869if test -n "$LUA_LIBS"; then
26870    pkg_cv_LUA_LIBS="$LUA_LIBS"
26871 elif test -n "$PKG_CONFIG"; then
26872    if test -n "$PKG_CONFIG" && \
26873    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
26874  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
26875  ac_status=$?
26876  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26877  test $ac_status = 0; }; then
26878  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
26879		      test "x$?" != "x0" && pkg_failed=yes
26880else
26881  pkg_failed=yes
26882fi
26883 else
26884    pkg_failed=untried
26885fi
26886
26887
26888
26889if test $pkg_failed = yes; then
26890   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26891$as_echo "no" >&6; }
26892
26893if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26894        _pkg_short_errors_supported=yes
26895else
26896        _pkg_short_errors_supported=no
26897fi
26898        if test $_pkg_short_errors_supported = yes; then
26899	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
26900        else
26901	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
26902        fi
26903	# Put the nasty error message in config.log where it belongs
26904	echo "$LUA_PKG_ERRORS" >&5
26905
26906	with_liblua="no (pkg-config cannot find liblua)"
26907
26908elif test $pkg_failed = untried; then
26909     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26910$as_echo "no" >&6; }
26911	with_liblua="no (pkg-config cannot find liblua)"
26912
26913else
26914	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
26915	LUA_LIBS=$pkg_cv_LUA_LIBS
26916        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26917$as_echo "yes" >&6; }
26918	with_liblua="yes"
26919fi
26920
26921
26922else
26923	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
26924	LUA_LIBS=$pkg_cv_LUA_LIBS
26925        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26926$as_echo "yes" >&6; }
26927	with_liblua="yes"
26928fi
26929
26930
26931else
26932	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
26933	LUA_LIBS=$pkg_cv_LUA_LIBS
26934        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26935$as_echo "yes" >&6; }
26936	with_liblua="yes"
26937fi
26938
26939
26940elif test $pkg_failed = untried; then
26941     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26942$as_echo "no" >&6; }
26943
26944
26945pkg_failed=no
26946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
26947$as_echo_n "checking for LUA... " >&6; }
26948
26949if test -n "$LUA_CFLAGS"; then
26950    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
26951 elif test -n "$PKG_CONFIG"; then
26952    if test -n "$PKG_CONFIG" && \
26953    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
26954  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
26955  ac_status=$?
26956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26957  test $ac_status = 0; }; then
26958  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
26959		      test "x$?" != "x0" && pkg_failed=yes
26960else
26961  pkg_failed=yes
26962fi
26963 else
26964    pkg_failed=untried
26965fi
26966if test -n "$LUA_LIBS"; then
26967    pkg_cv_LUA_LIBS="$LUA_LIBS"
26968 elif test -n "$PKG_CONFIG"; then
26969    if test -n "$PKG_CONFIG" && \
26970    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
26971  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
26972  ac_status=$?
26973  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26974  test $ac_status = 0; }; then
26975  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
26976		      test "x$?" != "x0" && pkg_failed=yes
26977else
26978  pkg_failed=yes
26979fi
26980 else
26981    pkg_failed=untried
26982fi
26983
26984
26985
26986if test $pkg_failed = yes; then
26987   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26988$as_echo "no" >&6; }
26989
26990if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26991        _pkg_short_errors_supported=yes
26992else
26993        _pkg_short_errors_supported=no
26994fi
26995        if test $_pkg_short_errors_supported = yes; then
26996	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
26997        else
26998	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
26999        fi
27000	# Put the nasty error message in config.log where it belongs
27001	echo "$LUA_PKG_ERRORS" >&5
27002
27003
27004
27005pkg_failed=no
27006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
27007$as_echo_n "checking for LUA... " >&6; }
27008
27009if test -n "$LUA_CFLAGS"; then
27010    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
27011 elif test -n "$PKG_CONFIG"; then
27012    if test -n "$PKG_CONFIG" && \
27013    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
27014  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
27015  ac_status=$?
27016  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27017  test $ac_status = 0; }; then
27018  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
27019		      test "x$?" != "x0" && pkg_failed=yes
27020else
27021  pkg_failed=yes
27022fi
27023 else
27024    pkg_failed=untried
27025fi
27026if test -n "$LUA_LIBS"; then
27027    pkg_cv_LUA_LIBS="$LUA_LIBS"
27028 elif test -n "$PKG_CONFIG"; then
27029    if test -n "$PKG_CONFIG" && \
27030    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
27031  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
27032  ac_status=$?
27033  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27034  test $ac_status = 0; }; then
27035  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
27036		      test "x$?" != "x0" && pkg_failed=yes
27037else
27038  pkg_failed=yes
27039fi
27040 else
27041    pkg_failed=untried
27042fi
27043
27044
27045
27046if test $pkg_failed = yes; then
27047   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27048$as_echo "no" >&6; }
27049
27050if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27051        _pkg_short_errors_supported=yes
27052else
27053        _pkg_short_errors_supported=no
27054fi
27055        if test $_pkg_short_errors_supported = yes; then
27056	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
27057        else
27058	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
27059        fi
27060	# Put the nasty error message in config.log where it belongs
27061	echo "$LUA_PKG_ERRORS" >&5
27062
27063
27064
27065pkg_failed=no
27066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
27067$as_echo_n "checking for LUA... " >&6; }
27068
27069if test -n "$LUA_CFLAGS"; then
27070    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
27071 elif test -n "$PKG_CONFIG"; then
27072    if test -n "$PKG_CONFIG" && \
27073    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
27074  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
27075  ac_status=$?
27076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27077  test $ac_status = 0; }; then
27078  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
27079		      test "x$?" != "x0" && pkg_failed=yes
27080else
27081  pkg_failed=yes
27082fi
27083 else
27084    pkg_failed=untried
27085fi
27086if test -n "$LUA_LIBS"; then
27087    pkg_cv_LUA_LIBS="$LUA_LIBS"
27088 elif test -n "$PKG_CONFIG"; then
27089    if test -n "$PKG_CONFIG" && \
27090    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
27091  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
27092  ac_status=$?
27093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27094  test $ac_status = 0; }; then
27095  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
27096		      test "x$?" != "x0" && pkg_failed=yes
27097else
27098  pkg_failed=yes
27099fi
27100 else
27101    pkg_failed=untried
27102fi
27103
27104
27105
27106if test $pkg_failed = yes; then
27107   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27108$as_echo "no" >&6; }
27109
27110if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27111        _pkg_short_errors_supported=yes
27112else
27113        _pkg_short_errors_supported=no
27114fi
27115        if test $_pkg_short_errors_supported = yes; then
27116	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
27117        else
27118	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
27119        fi
27120	# Put the nasty error message in config.log where it belongs
27121	echo "$LUA_PKG_ERRORS" >&5
27122
27123	with_liblua="no (pkg-config cannot find liblua)"
27124
27125elif test $pkg_failed = untried; then
27126     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27127$as_echo "no" >&6; }
27128	with_liblua="no (pkg-config cannot find liblua)"
27129
27130else
27131	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
27132	LUA_LIBS=$pkg_cv_LUA_LIBS
27133        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27134$as_echo "yes" >&6; }
27135	with_liblua="yes"
27136fi
27137
27138
27139elif test $pkg_failed = untried; then
27140     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27141$as_echo "no" >&6; }
27142
27143
27144pkg_failed=no
27145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
27146$as_echo_n "checking for LUA... " >&6; }
27147
27148if test -n "$LUA_CFLAGS"; then
27149    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
27150 elif test -n "$PKG_CONFIG"; then
27151    if test -n "$PKG_CONFIG" && \
27152    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
27153  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
27154  ac_status=$?
27155  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27156  test $ac_status = 0; }; then
27157  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
27158		      test "x$?" != "x0" && pkg_failed=yes
27159else
27160  pkg_failed=yes
27161fi
27162 else
27163    pkg_failed=untried
27164fi
27165if test -n "$LUA_LIBS"; then
27166    pkg_cv_LUA_LIBS="$LUA_LIBS"
27167 elif test -n "$PKG_CONFIG"; then
27168    if test -n "$PKG_CONFIG" && \
27169    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
27170  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
27171  ac_status=$?
27172  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27173  test $ac_status = 0; }; then
27174  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
27175		      test "x$?" != "x0" && pkg_failed=yes
27176else
27177  pkg_failed=yes
27178fi
27179 else
27180    pkg_failed=untried
27181fi
27182
27183
27184
27185if test $pkg_failed = yes; then
27186   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27187$as_echo "no" >&6; }
27188
27189if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27190        _pkg_short_errors_supported=yes
27191else
27192        _pkg_short_errors_supported=no
27193fi
27194        if test $_pkg_short_errors_supported = yes; then
27195	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
27196        else
27197	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
27198        fi
27199	# Put the nasty error message in config.log where it belongs
27200	echo "$LUA_PKG_ERRORS" >&5
27201
27202	with_liblua="no (pkg-config cannot find liblua)"
27203
27204elif test $pkg_failed = untried; then
27205     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27206$as_echo "no" >&6; }
27207	with_liblua="no (pkg-config cannot find liblua)"
27208
27209else
27210	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
27211	LUA_LIBS=$pkg_cv_LUA_LIBS
27212        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27213$as_echo "yes" >&6; }
27214	with_liblua="yes"
27215fi
27216
27217
27218else
27219	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
27220	LUA_LIBS=$pkg_cv_LUA_LIBS
27221        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27222$as_echo "yes" >&6; }
27223	with_liblua="yes"
27224fi
27225
27226
27227elif test $pkg_failed = untried; then
27228     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27229$as_echo "no" >&6; }
27230
27231
27232pkg_failed=no
27233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
27234$as_echo_n "checking for LUA... " >&6; }
27235
27236if test -n "$LUA_CFLAGS"; then
27237    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
27238 elif test -n "$PKG_CONFIG"; then
27239    if test -n "$PKG_CONFIG" && \
27240    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
27241  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
27242  ac_status=$?
27243  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27244  test $ac_status = 0; }; then
27245  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
27246		      test "x$?" != "x0" && pkg_failed=yes
27247else
27248  pkg_failed=yes
27249fi
27250 else
27251    pkg_failed=untried
27252fi
27253if test -n "$LUA_LIBS"; then
27254    pkg_cv_LUA_LIBS="$LUA_LIBS"
27255 elif test -n "$PKG_CONFIG"; then
27256    if test -n "$PKG_CONFIG" && \
27257    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
27258  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
27259  ac_status=$?
27260  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27261  test $ac_status = 0; }; then
27262  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
27263		      test "x$?" != "x0" && pkg_failed=yes
27264else
27265  pkg_failed=yes
27266fi
27267 else
27268    pkg_failed=untried
27269fi
27270
27271
27272
27273if test $pkg_failed = yes; then
27274   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27275$as_echo "no" >&6; }
27276
27277if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27278        _pkg_short_errors_supported=yes
27279else
27280        _pkg_short_errors_supported=no
27281fi
27282        if test $_pkg_short_errors_supported = yes; then
27283	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
27284        else
27285	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
27286        fi
27287	# Put the nasty error message in config.log where it belongs
27288	echo "$LUA_PKG_ERRORS" >&5
27289
27290
27291
27292pkg_failed=no
27293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
27294$as_echo_n "checking for LUA... " >&6; }
27295
27296if test -n "$LUA_CFLAGS"; then
27297    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
27298 elif test -n "$PKG_CONFIG"; then
27299    if test -n "$PKG_CONFIG" && \
27300    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
27301  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
27302  ac_status=$?
27303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27304  test $ac_status = 0; }; then
27305  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
27306		      test "x$?" != "x0" && pkg_failed=yes
27307else
27308  pkg_failed=yes
27309fi
27310 else
27311    pkg_failed=untried
27312fi
27313if test -n "$LUA_LIBS"; then
27314    pkg_cv_LUA_LIBS="$LUA_LIBS"
27315 elif test -n "$PKG_CONFIG"; then
27316    if test -n "$PKG_CONFIG" && \
27317    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
27318  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
27319  ac_status=$?
27320  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27321  test $ac_status = 0; }; then
27322  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
27323		      test "x$?" != "x0" && pkg_failed=yes
27324else
27325  pkg_failed=yes
27326fi
27327 else
27328    pkg_failed=untried
27329fi
27330
27331
27332
27333if test $pkg_failed = yes; then
27334   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27335$as_echo "no" >&6; }
27336
27337if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27338        _pkg_short_errors_supported=yes
27339else
27340        _pkg_short_errors_supported=no
27341fi
27342        if test $_pkg_short_errors_supported = yes; then
27343	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
27344        else
27345	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
27346        fi
27347	# Put the nasty error message in config.log where it belongs
27348	echo "$LUA_PKG_ERRORS" >&5
27349
27350	with_liblua="no (pkg-config cannot find liblua)"
27351
27352elif test $pkg_failed = untried; then
27353     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27354$as_echo "no" >&6; }
27355	with_liblua="no (pkg-config cannot find liblua)"
27356
27357else
27358	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
27359	LUA_LIBS=$pkg_cv_LUA_LIBS
27360        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27361$as_echo "yes" >&6; }
27362	with_liblua="yes"
27363fi
27364
27365
27366elif test $pkg_failed = untried; then
27367     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27368$as_echo "no" >&6; }
27369
27370
27371pkg_failed=no
27372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
27373$as_echo_n "checking for LUA... " >&6; }
27374
27375if test -n "$LUA_CFLAGS"; then
27376    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
27377 elif test -n "$PKG_CONFIG"; then
27378    if test -n "$PKG_CONFIG" && \
27379    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
27380  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
27381  ac_status=$?
27382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27383  test $ac_status = 0; }; then
27384  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
27385		      test "x$?" != "x0" && pkg_failed=yes
27386else
27387  pkg_failed=yes
27388fi
27389 else
27390    pkg_failed=untried
27391fi
27392if test -n "$LUA_LIBS"; then
27393    pkg_cv_LUA_LIBS="$LUA_LIBS"
27394 elif test -n "$PKG_CONFIG"; then
27395    if test -n "$PKG_CONFIG" && \
27396    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
27397  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
27398  ac_status=$?
27399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27400  test $ac_status = 0; }; then
27401  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
27402		      test "x$?" != "x0" && pkg_failed=yes
27403else
27404  pkg_failed=yes
27405fi
27406 else
27407    pkg_failed=untried
27408fi
27409
27410
27411
27412if test $pkg_failed = yes; then
27413   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27414$as_echo "no" >&6; }
27415
27416if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27417        _pkg_short_errors_supported=yes
27418else
27419        _pkg_short_errors_supported=no
27420fi
27421        if test $_pkg_short_errors_supported = yes; then
27422	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
27423        else
27424	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
27425        fi
27426	# Put the nasty error message in config.log where it belongs
27427	echo "$LUA_PKG_ERRORS" >&5
27428
27429	with_liblua="no (pkg-config cannot find liblua)"
27430
27431elif test $pkg_failed = untried; then
27432     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27433$as_echo "no" >&6; }
27434	with_liblua="no (pkg-config cannot find liblua)"
27435
27436else
27437	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
27438	LUA_LIBS=$pkg_cv_LUA_LIBS
27439        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27440$as_echo "yes" >&6; }
27441	with_liblua="yes"
27442fi
27443
27444
27445else
27446	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
27447	LUA_LIBS=$pkg_cv_LUA_LIBS
27448        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27449$as_echo "yes" >&6; }
27450	with_liblua="yes"
27451fi
27452
27453
27454else
27455	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
27456	LUA_LIBS=$pkg_cv_LUA_LIBS
27457        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27458$as_echo "yes" >&6; }
27459	with_liblua="yes"
27460fi
27461
27462
27463else
27464	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
27465	LUA_LIBS=$pkg_cv_LUA_LIBS
27466        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27467$as_echo "yes" >&6; }
27468	with_liblua="yes"
27469fi
27470
27471
27472elif test $pkg_failed = untried; then
27473     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27474$as_echo "no" >&6; }
27475
27476
27477pkg_failed=no
27478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
27479$as_echo_n "checking for LUA... " >&6; }
27480
27481if test -n "$LUA_CFLAGS"; then
27482    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
27483 elif test -n "$PKG_CONFIG"; then
27484    if test -n "$PKG_CONFIG" && \
27485    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
27486  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
27487  ac_status=$?
27488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27489  test $ac_status = 0; }; then
27490  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
27491		      test "x$?" != "x0" && pkg_failed=yes
27492else
27493  pkg_failed=yes
27494fi
27495 else
27496    pkg_failed=untried
27497fi
27498if test -n "$LUA_LIBS"; then
27499    pkg_cv_LUA_LIBS="$LUA_LIBS"
27500 elif test -n "$PKG_CONFIG"; then
27501    if test -n "$PKG_CONFIG" && \
27502    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
27503  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
27504  ac_status=$?
27505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27506  test $ac_status = 0; }; then
27507  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
27508		      test "x$?" != "x0" && pkg_failed=yes
27509else
27510  pkg_failed=yes
27511fi
27512 else
27513    pkg_failed=untried
27514fi
27515
27516
27517
27518if test $pkg_failed = yes; then
27519   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27520$as_echo "no" >&6; }
27521
27522if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27523        _pkg_short_errors_supported=yes
27524else
27525        _pkg_short_errors_supported=no
27526fi
27527        if test $_pkg_short_errors_supported = yes; then
27528	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
27529        else
27530	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
27531        fi
27532	# Put the nasty error message in config.log where it belongs
27533	echo "$LUA_PKG_ERRORS" >&5
27534
27535
27536
27537pkg_failed=no
27538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
27539$as_echo_n "checking for LUA... " >&6; }
27540
27541if test -n "$LUA_CFLAGS"; then
27542    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
27543 elif test -n "$PKG_CONFIG"; then
27544    if test -n "$PKG_CONFIG" && \
27545    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
27546  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
27547  ac_status=$?
27548  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27549  test $ac_status = 0; }; then
27550  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
27551		      test "x$?" != "x0" && pkg_failed=yes
27552else
27553  pkg_failed=yes
27554fi
27555 else
27556    pkg_failed=untried
27557fi
27558if test -n "$LUA_LIBS"; then
27559    pkg_cv_LUA_LIBS="$LUA_LIBS"
27560 elif test -n "$PKG_CONFIG"; then
27561    if test -n "$PKG_CONFIG" && \
27562    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
27563  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
27564  ac_status=$?
27565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27566  test $ac_status = 0; }; then
27567  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
27568		      test "x$?" != "x0" && pkg_failed=yes
27569else
27570  pkg_failed=yes
27571fi
27572 else
27573    pkg_failed=untried
27574fi
27575
27576
27577
27578if test $pkg_failed = yes; then
27579   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27580$as_echo "no" >&6; }
27581
27582if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27583        _pkg_short_errors_supported=yes
27584else
27585        _pkg_short_errors_supported=no
27586fi
27587        if test $_pkg_short_errors_supported = yes; then
27588	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
27589        else
27590	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
27591        fi
27592	# Put the nasty error message in config.log where it belongs
27593	echo "$LUA_PKG_ERRORS" >&5
27594
27595
27596
27597pkg_failed=no
27598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
27599$as_echo_n "checking for LUA... " >&6; }
27600
27601if test -n "$LUA_CFLAGS"; then
27602    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
27603 elif test -n "$PKG_CONFIG"; then
27604    if test -n "$PKG_CONFIG" && \
27605    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
27606  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
27607  ac_status=$?
27608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27609  test $ac_status = 0; }; then
27610  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
27611		      test "x$?" != "x0" && pkg_failed=yes
27612else
27613  pkg_failed=yes
27614fi
27615 else
27616    pkg_failed=untried
27617fi
27618if test -n "$LUA_LIBS"; then
27619    pkg_cv_LUA_LIBS="$LUA_LIBS"
27620 elif test -n "$PKG_CONFIG"; then
27621    if test -n "$PKG_CONFIG" && \
27622    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
27623  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
27624  ac_status=$?
27625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27626  test $ac_status = 0; }; then
27627  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
27628		      test "x$?" != "x0" && pkg_failed=yes
27629else
27630  pkg_failed=yes
27631fi
27632 else
27633    pkg_failed=untried
27634fi
27635
27636
27637
27638if test $pkg_failed = yes; then
27639   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27640$as_echo "no" >&6; }
27641
27642if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27643        _pkg_short_errors_supported=yes
27644else
27645        _pkg_short_errors_supported=no
27646fi
27647        if test $_pkg_short_errors_supported = yes; then
27648	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
27649        else
27650	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
27651        fi
27652	# Put the nasty error message in config.log where it belongs
27653	echo "$LUA_PKG_ERRORS" >&5
27654
27655
27656
27657pkg_failed=no
27658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
27659$as_echo_n "checking for LUA... " >&6; }
27660
27661if test -n "$LUA_CFLAGS"; then
27662    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
27663 elif test -n "$PKG_CONFIG"; then
27664    if test -n "$PKG_CONFIG" && \
27665    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
27666  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
27667  ac_status=$?
27668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27669  test $ac_status = 0; }; then
27670  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
27671		      test "x$?" != "x0" && pkg_failed=yes
27672else
27673  pkg_failed=yes
27674fi
27675 else
27676    pkg_failed=untried
27677fi
27678if test -n "$LUA_LIBS"; then
27679    pkg_cv_LUA_LIBS="$LUA_LIBS"
27680 elif test -n "$PKG_CONFIG"; then
27681    if test -n "$PKG_CONFIG" && \
27682    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
27683  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
27684  ac_status=$?
27685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27686  test $ac_status = 0; }; then
27687  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
27688		      test "x$?" != "x0" && pkg_failed=yes
27689else
27690  pkg_failed=yes
27691fi
27692 else
27693    pkg_failed=untried
27694fi
27695
27696
27697
27698if test $pkg_failed = yes; then
27699   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27700$as_echo "no" >&6; }
27701
27702if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27703        _pkg_short_errors_supported=yes
27704else
27705        _pkg_short_errors_supported=no
27706fi
27707        if test $_pkg_short_errors_supported = yes; then
27708	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
27709        else
27710	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
27711        fi
27712	# Put the nasty error message in config.log where it belongs
27713	echo "$LUA_PKG_ERRORS" >&5
27714
27715	with_liblua="no (pkg-config cannot find liblua)"
27716
27717elif test $pkg_failed = untried; then
27718     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27719$as_echo "no" >&6; }
27720	with_liblua="no (pkg-config cannot find liblua)"
27721
27722else
27723	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
27724	LUA_LIBS=$pkg_cv_LUA_LIBS
27725        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27726$as_echo "yes" >&6; }
27727	with_liblua="yes"
27728fi
27729
27730
27731elif test $pkg_failed = untried; then
27732     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27733$as_echo "no" >&6; }
27734
27735
27736pkg_failed=no
27737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
27738$as_echo_n "checking for LUA... " >&6; }
27739
27740if test -n "$LUA_CFLAGS"; then
27741    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
27742 elif test -n "$PKG_CONFIG"; then
27743    if test -n "$PKG_CONFIG" && \
27744    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
27745  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
27746  ac_status=$?
27747  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27748  test $ac_status = 0; }; then
27749  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
27750		      test "x$?" != "x0" && pkg_failed=yes
27751else
27752  pkg_failed=yes
27753fi
27754 else
27755    pkg_failed=untried
27756fi
27757if test -n "$LUA_LIBS"; then
27758    pkg_cv_LUA_LIBS="$LUA_LIBS"
27759 elif test -n "$PKG_CONFIG"; then
27760    if test -n "$PKG_CONFIG" && \
27761    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
27762  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
27763  ac_status=$?
27764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27765  test $ac_status = 0; }; then
27766  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
27767		      test "x$?" != "x0" && pkg_failed=yes
27768else
27769  pkg_failed=yes
27770fi
27771 else
27772    pkg_failed=untried
27773fi
27774
27775
27776
27777if test $pkg_failed = yes; then
27778   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27779$as_echo "no" >&6; }
27780
27781if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27782        _pkg_short_errors_supported=yes
27783else
27784        _pkg_short_errors_supported=no
27785fi
27786        if test $_pkg_short_errors_supported = yes; then
27787	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
27788        else
27789	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
27790        fi
27791	# Put the nasty error message in config.log where it belongs
27792	echo "$LUA_PKG_ERRORS" >&5
27793
27794	with_liblua="no (pkg-config cannot find liblua)"
27795
27796elif test $pkg_failed = untried; then
27797     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27798$as_echo "no" >&6; }
27799	with_liblua="no (pkg-config cannot find liblua)"
27800
27801else
27802	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
27803	LUA_LIBS=$pkg_cv_LUA_LIBS
27804        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27805$as_echo "yes" >&6; }
27806	with_liblua="yes"
27807fi
27808
27809
27810else
27811	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
27812	LUA_LIBS=$pkg_cv_LUA_LIBS
27813        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27814$as_echo "yes" >&6; }
27815	with_liblua="yes"
27816fi
27817
27818
27819elif test $pkg_failed = untried; then
27820     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27821$as_echo "no" >&6; }
27822
27823
27824pkg_failed=no
27825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
27826$as_echo_n "checking for LUA... " >&6; }
27827
27828if test -n "$LUA_CFLAGS"; then
27829    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
27830 elif test -n "$PKG_CONFIG"; then
27831    if test -n "$PKG_CONFIG" && \
27832    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
27833  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
27834  ac_status=$?
27835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27836  test $ac_status = 0; }; then
27837  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
27838		      test "x$?" != "x0" && pkg_failed=yes
27839else
27840  pkg_failed=yes
27841fi
27842 else
27843    pkg_failed=untried
27844fi
27845if test -n "$LUA_LIBS"; then
27846    pkg_cv_LUA_LIBS="$LUA_LIBS"
27847 elif test -n "$PKG_CONFIG"; then
27848    if test -n "$PKG_CONFIG" && \
27849    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
27850  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
27851  ac_status=$?
27852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27853  test $ac_status = 0; }; then
27854  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
27855		      test "x$?" != "x0" && pkg_failed=yes
27856else
27857  pkg_failed=yes
27858fi
27859 else
27860    pkg_failed=untried
27861fi
27862
27863
27864
27865if test $pkg_failed = yes; then
27866   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27867$as_echo "no" >&6; }
27868
27869if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27870        _pkg_short_errors_supported=yes
27871else
27872        _pkg_short_errors_supported=no
27873fi
27874        if test $_pkg_short_errors_supported = yes; then
27875	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
27876        else
27877	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
27878        fi
27879	# Put the nasty error message in config.log where it belongs
27880	echo "$LUA_PKG_ERRORS" >&5
27881
27882
27883
27884pkg_failed=no
27885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
27886$as_echo_n "checking for LUA... " >&6; }
27887
27888if test -n "$LUA_CFLAGS"; then
27889    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
27890 elif test -n "$PKG_CONFIG"; then
27891    if test -n "$PKG_CONFIG" && \
27892    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
27893  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
27894  ac_status=$?
27895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27896  test $ac_status = 0; }; then
27897  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
27898		      test "x$?" != "x0" && pkg_failed=yes
27899else
27900  pkg_failed=yes
27901fi
27902 else
27903    pkg_failed=untried
27904fi
27905if test -n "$LUA_LIBS"; then
27906    pkg_cv_LUA_LIBS="$LUA_LIBS"
27907 elif test -n "$PKG_CONFIG"; then
27908    if test -n "$PKG_CONFIG" && \
27909    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
27910  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
27911  ac_status=$?
27912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27913  test $ac_status = 0; }; then
27914  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
27915		      test "x$?" != "x0" && pkg_failed=yes
27916else
27917  pkg_failed=yes
27918fi
27919 else
27920    pkg_failed=untried
27921fi
27922
27923
27924
27925if test $pkg_failed = yes; then
27926   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27927$as_echo "no" >&6; }
27928
27929if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27930        _pkg_short_errors_supported=yes
27931else
27932        _pkg_short_errors_supported=no
27933fi
27934        if test $_pkg_short_errors_supported = yes; then
27935	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
27936        else
27937	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
27938        fi
27939	# Put the nasty error message in config.log where it belongs
27940	echo "$LUA_PKG_ERRORS" >&5
27941
27942	with_liblua="no (pkg-config cannot find liblua)"
27943
27944elif test $pkg_failed = untried; then
27945     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27946$as_echo "no" >&6; }
27947	with_liblua="no (pkg-config cannot find liblua)"
27948
27949else
27950	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
27951	LUA_LIBS=$pkg_cv_LUA_LIBS
27952        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27953$as_echo "yes" >&6; }
27954	with_liblua="yes"
27955fi
27956
27957
27958elif test $pkg_failed = untried; then
27959     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27960$as_echo "no" >&6; }
27961
27962
27963pkg_failed=no
27964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
27965$as_echo_n "checking for LUA... " >&6; }
27966
27967if test -n "$LUA_CFLAGS"; then
27968    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
27969 elif test -n "$PKG_CONFIG"; then
27970    if test -n "$PKG_CONFIG" && \
27971    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
27972  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
27973  ac_status=$?
27974  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27975  test $ac_status = 0; }; then
27976  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
27977		      test "x$?" != "x0" && pkg_failed=yes
27978else
27979  pkg_failed=yes
27980fi
27981 else
27982    pkg_failed=untried
27983fi
27984if test -n "$LUA_LIBS"; then
27985    pkg_cv_LUA_LIBS="$LUA_LIBS"
27986 elif test -n "$PKG_CONFIG"; then
27987    if test -n "$PKG_CONFIG" && \
27988    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
27989  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
27990  ac_status=$?
27991  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27992  test $ac_status = 0; }; then
27993  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
27994		      test "x$?" != "x0" && pkg_failed=yes
27995else
27996  pkg_failed=yes
27997fi
27998 else
27999    pkg_failed=untried
28000fi
28001
28002
28003
28004if test $pkg_failed = yes; then
28005   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28006$as_echo "no" >&6; }
28007
28008if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28009        _pkg_short_errors_supported=yes
28010else
28011        _pkg_short_errors_supported=no
28012fi
28013        if test $_pkg_short_errors_supported = yes; then
28014	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
28015        else
28016	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
28017        fi
28018	# Put the nasty error message in config.log where it belongs
28019	echo "$LUA_PKG_ERRORS" >&5
28020
28021	with_liblua="no (pkg-config cannot find liblua)"
28022
28023elif test $pkg_failed = untried; then
28024     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28025$as_echo "no" >&6; }
28026	with_liblua="no (pkg-config cannot find liblua)"
28027
28028else
28029	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
28030	LUA_LIBS=$pkg_cv_LUA_LIBS
28031        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28032$as_echo "yes" >&6; }
28033	with_liblua="yes"
28034fi
28035
28036
28037else
28038	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
28039	LUA_LIBS=$pkg_cv_LUA_LIBS
28040        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28041$as_echo "yes" >&6; }
28042	with_liblua="yes"
28043fi
28044
28045
28046else
28047	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
28048	LUA_LIBS=$pkg_cv_LUA_LIBS
28049        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28050$as_echo "yes" >&6; }
28051	with_liblua="yes"
28052fi
28053
28054
28055elif test $pkg_failed = untried; then
28056     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28057$as_echo "no" >&6; }
28058
28059
28060pkg_failed=no
28061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
28062$as_echo_n "checking for LUA... " >&6; }
28063
28064if test -n "$LUA_CFLAGS"; then
28065    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
28066 elif test -n "$PKG_CONFIG"; then
28067    if test -n "$PKG_CONFIG" && \
28068    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
28069  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
28070  ac_status=$?
28071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28072  test $ac_status = 0; }; then
28073  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
28074		      test "x$?" != "x0" && pkg_failed=yes
28075else
28076  pkg_failed=yes
28077fi
28078 else
28079    pkg_failed=untried
28080fi
28081if test -n "$LUA_LIBS"; then
28082    pkg_cv_LUA_LIBS="$LUA_LIBS"
28083 elif test -n "$PKG_CONFIG"; then
28084    if test -n "$PKG_CONFIG" && \
28085    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
28086  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
28087  ac_status=$?
28088  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28089  test $ac_status = 0; }; then
28090  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
28091		      test "x$?" != "x0" && pkg_failed=yes
28092else
28093  pkg_failed=yes
28094fi
28095 else
28096    pkg_failed=untried
28097fi
28098
28099
28100
28101if test $pkg_failed = yes; then
28102   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28103$as_echo "no" >&6; }
28104
28105if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28106        _pkg_short_errors_supported=yes
28107else
28108        _pkg_short_errors_supported=no
28109fi
28110        if test $_pkg_short_errors_supported = yes; then
28111	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
28112        else
28113	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
28114        fi
28115	# Put the nasty error message in config.log where it belongs
28116	echo "$LUA_PKG_ERRORS" >&5
28117
28118
28119
28120pkg_failed=no
28121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
28122$as_echo_n "checking for LUA... " >&6; }
28123
28124if test -n "$LUA_CFLAGS"; then
28125    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
28126 elif test -n "$PKG_CONFIG"; then
28127    if test -n "$PKG_CONFIG" && \
28128    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
28129  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
28130  ac_status=$?
28131  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28132  test $ac_status = 0; }; then
28133  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
28134		      test "x$?" != "x0" && pkg_failed=yes
28135else
28136  pkg_failed=yes
28137fi
28138 else
28139    pkg_failed=untried
28140fi
28141if test -n "$LUA_LIBS"; then
28142    pkg_cv_LUA_LIBS="$LUA_LIBS"
28143 elif test -n "$PKG_CONFIG"; then
28144    if test -n "$PKG_CONFIG" && \
28145    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
28146  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
28147  ac_status=$?
28148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28149  test $ac_status = 0; }; then
28150  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
28151		      test "x$?" != "x0" && pkg_failed=yes
28152else
28153  pkg_failed=yes
28154fi
28155 else
28156    pkg_failed=untried
28157fi
28158
28159
28160
28161if test $pkg_failed = yes; then
28162   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28163$as_echo "no" >&6; }
28164
28165if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28166        _pkg_short_errors_supported=yes
28167else
28168        _pkg_short_errors_supported=no
28169fi
28170        if test $_pkg_short_errors_supported = yes; then
28171	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
28172        else
28173	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
28174        fi
28175	# Put the nasty error message in config.log where it belongs
28176	echo "$LUA_PKG_ERRORS" >&5
28177
28178
28179
28180pkg_failed=no
28181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
28182$as_echo_n "checking for LUA... " >&6; }
28183
28184if test -n "$LUA_CFLAGS"; then
28185    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
28186 elif test -n "$PKG_CONFIG"; then
28187    if test -n "$PKG_CONFIG" && \
28188    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
28189  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
28190  ac_status=$?
28191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28192  test $ac_status = 0; }; then
28193  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
28194		      test "x$?" != "x0" && pkg_failed=yes
28195else
28196  pkg_failed=yes
28197fi
28198 else
28199    pkg_failed=untried
28200fi
28201if test -n "$LUA_LIBS"; then
28202    pkg_cv_LUA_LIBS="$LUA_LIBS"
28203 elif test -n "$PKG_CONFIG"; then
28204    if test -n "$PKG_CONFIG" && \
28205    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
28206  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
28207  ac_status=$?
28208  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28209  test $ac_status = 0; }; then
28210  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
28211		      test "x$?" != "x0" && pkg_failed=yes
28212else
28213  pkg_failed=yes
28214fi
28215 else
28216    pkg_failed=untried
28217fi
28218
28219
28220
28221if test $pkg_failed = yes; then
28222   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28223$as_echo "no" >&6; }
28224
28225if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28226        _pkg_short_errors_supported=yes
28227else
28228        _pkg_short_errors_supported=no
28229fi
28230        if test $_pkg_short_errors_supported = yes; then
28231	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
28232        else
28233	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
28234        fi
28235	# Put the nasty error message in config.log where it belongs
28236	echo "$LUA_PKG_ERRORS" >&5
28237
28238	with_liblua="no (pkg-config cannot find liblua)"
28239
28240elif test $pkg_failed = untried; then
28241     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28242$as_echo "no" >&6; }
28243	with_liblua="no (pkg-config cannot find liblua)"
28244
28245else
28246	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
28247	LUA_LIBS=$pkg_cv_LUA_LIBS
28248        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28249$as_echo "yes" >&6; }
28250	with_liblua="yes"
28251fi
28252
28253
28254elif test $pkg_failed = untried; then
28255     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28256$as_echo "no" >&6; }
28257
28258
28259pkg_failed=no
28260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
28261$as_echo_n "checking for LUA... " >&6; }
28262
28263if test -n "$LUA_CFLAGS"; then
28264    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
28265 elif test -n "$PKG_CONFIG"; then
28266    if test -n "$PKG_CONFIG" && \
28267    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
28268  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
28269  ac_status=$?
28270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28271  test $ac_status = 0; }; then
28272  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
28273		      test "x$?" != "x0" && pkg_failed=yes
28274else
28275  pkg_failed=yes
28276fi
28277 else
28278    pkg_failed=untried
28279fi
28280if test -n "$LUA_LIBS"; then
28281    pkg_cv_LUA_LIBS="$LUA_LIBS"
28282 elif test -n "$PKG_CONFIG"; then
28283    if test -n "$PKG_CONFIG" && \
28284    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
28285  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
28286  ac_status=$?
28287  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28288  test $ac_status = 0; }; then
28289  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
28290		      test "x$?" != "x0" && pkg_failed=yes
28291else
28292  pkg_failed=yes
28293fi
28294 else
28295    pkg_failed=untried
28296fi
28297
28298
28299
28300if test $pkg_failed = yes; then
28301   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28302$as_echo "no" >&6; }
28303
28304if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28305        _pkg_short_errors_supported=yes
28306else
28307        _pkg_short_errors_supported=no
28308fi
28309        if test $_pkg_short_errors_supported = yes; then
28310	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
28311        else
28312	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
28313        fi
28314	# Put the nasty error message in config.log where it belongs
28315	echo "$LUA_PKG_ERRORS" >&5
28316
28317	with_liblua="no (pkg-config cannot find liblua)"
28318
28319elif test $pkg_failed = untried; then
28320     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28321$as_echo "no" >&6; }
28322	with_liblua="no (pkg-config cannot find liblua)"
28323
28324else
28325	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
28326	LUA_LIBS=$pkg_cv_LUA_LIBS
28327        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28328$as_echo "yes" >&6; }
28329	with_liblua="yes"
28330fi
28331
28332
28333else
28334	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
28335	LUA_LIBS=$pkg_cv_LUA_LIBS
28336        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28337$as_echo "yes" >&6; }
28338	with_liblua="yes"
28339fi
28340
28341
28342elif test $pkg_failed = untried; then
28343     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28344$as_echo "no" >&6; }
28345
28346
28347pkg_failed=no
28348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
28349$as_echo_n "checking for LUA... " >&6; }
28350
28351if test -n "$LUA_CFLAGS"; then
28352    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
28353 elif test -n "$PKG_CONFIG"; then
28354    if test -n "$PKG_CONFIG" && \
28355    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
28356  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
28357  ac_status=$?
28358  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28359  test $ac_status = 0; }; then
28360  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
28361		      test "x$?" != "x0" && pkg_failed=yes
28362else
28363  pkg_failed=yes
28364fi
28365 else
28366    pkg_failed=untried
28367fi
28368if test -n "$LUA_LIBS"; then
28369    pkg_cv_LUA_LIBS="$LUA_LIBS"
28370 elif test -n "$PKG_CONFIG"; then
28371    if test -n "$PKG_CONFIG" && \
28372    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
28373  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
28374  ac_status=$?
28375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28376  test $ac_status = 0; }; then
28377  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
28378		      test "x$?" != "x0" && pkg_failed=yes
28379else
28380  pkg_failed=yes
28381fi
28382 else
28383    pkg_failed=untried
28384fi
28385
28386
28387
28388if test $pkg_failed = yes; then
28389   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28390$as_echo "no" >&6; }
28391
28392if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28393        _pkg_short_errors_supported=yes
28394else
28395        _pkg_short_errors_supported=no
28396fi
28397        if test $_pkg_short_errors_supported = yes; then
28398	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
28399        else
28400	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
28401        fi
28402	# Put the nasty error message in config.log where it belongs
28403	echo "$LUA_PKG_ERRORS" >&5
28404
28405
28406
28407pkg_failed=no
28408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
28409$as_echo_n "checking for LUA... " >&6; }
28410
28411if test -n "$LUA_CFLAGS"; then
28412    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
28413 elif test -n "$PKG_CONFIG"; then
28414    if test -n "$PKG_CONFIG" && \
28415    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
28416  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
28417  ac_status=$?
28418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28419  test $ac_status = 0; }; then
28420  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
28421		      test "x$?" != "x0" && pkg_failed=yes
28422else
28423  pkg_failed=yes
28424fi
28425 else
28426    pkg_failed=untried
28427fi
28428if test -n "$LUA_LIBS"; then
28429    pkg_cv_LUA_LIBS="$LUA_LIBS"
28430 elif test -n "$PKG_CONFIG"; then
28431    if test -n "$PKG_CONFIG" && \
28432    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
28433  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
28434  ac_status=$?
28435  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28436  test $ac_status = 0; }; then
28437  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
28438		      test "x$?" != "x0" && pkg_failed=yes
28439else
28440  pkg_failed=yes
28441fi
28442 else
28443    pkg_failed=untried
28444fi
28445
28446
28447
28448if test $pkg_failed = yes; then
28449   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28450$as_echo "no" >&6; }
28451
28452if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28453        _pkg_short_errors_supported=yes
28454else
28455        _pkg_short_errors_supported=no
28456fi
28457        if test $_pkg_short_errors_supported = yes; then
28458	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
28459        else
28460	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
28461        fi
28462	# Put the nasty error message in config.log where it belongs
28463	echo "$LUA_PKG_ERRORS" >&5
28464
28465	with_liblua="no (pkg-config cannot find liblua)"
28466
28467elif test $pkg_failed = untried; then
28468     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28469$as_echo "no" >&6; }
28470	with_liblua="no (pkg-config cannot find liblua)"
28471
28472else
28473	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
28474	LUA_LIBS=$pkg_cv_LUA_LIBS
28475        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28476$as_echo "yes" >&6; }
28477	with_liblua="yes"
28478fi
28479
28480
28481elif test $pkg_failed = untried; then
28482     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28483$as_echo "no" >&6; }
28484
28485
28486pkg_failed=no
28487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
28488$as_echo_n "checking for LUA... " >&6; }
28489
28490if test -n "$LUA_CFLAGS"; then
28491    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
28492 elif test -n "$PKG_CONFIG"; then
28493    if test -n "$PKG_CONFIG" && \
28494    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
28495  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
28496  ac_status=$?
28497  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28498  test $ac_status = 0; }; then
28499  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
28500		      test "x$?" != "x0" && pkg_failed=yes
28501else
28502  pkg_failed=yes
28503fi
28504 else
28505    pkg_failed=untried
28506fi
28507if test -n "$LUA_LIBS"; then
28508    pkg_cv_LUA_LIBS="$LUA_LIBS"
28509 elif test -n "$PKG_CONFIG"; then
28510    if test -n "$PKG_CONFIG" && \
28511    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
28512  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
28513  ac_status=$?
28514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28515  test $ac_status = 0; }; then
28516  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
28517		      test "x$?" != "x0" && pkg_failed=yes
28518else
28519  pkg_failed=yes
28520fi
28521 else
28522    pkg_failed=untried
28523fi
28524
28525
28526
28527if test $pkg_failed = yes; then
28528   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28529$as_echo "no" >&6; }
28530
28531if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28532        _pkg_short_errors_supported=yes
28533else
28534        _pkg_short_errors_supported=no
28535fi
28536        if test $_pkg_short_errors_supported = yes; then
28537	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
28538        else
28539	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
28540        fi
28541	# Put the nasty error message in config.log where it belongs
28542	echo "$LUA_PKG_ERRORS" >&5
28543
28544	with_liblua="no (pkg-config cannot find liblua)"
28545
28546elif test $pkg_failed = untried; then
28547     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28548$as_echo "no" >&6; }
28549	with_liblua="no (pkg-config cannot find liblua)"
28550
28551else
28552	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
28553	LUA_LIBS=$pkg_cv_LUA_LIBS
28554        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28555$as_echo "yes" >&6; }
28556	with_liblua="yes"
28557fi
28558
28559
28560else
28561	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
28562	LUA_LIBS=$pkg_cv_LUA_LIBS
28563        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28564$as_echo "yes" >&6; }
28565	with_liblua="yes"
28566fi
28567
28568
28569else
28570	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
28571	LUA_LIBS=$pkg_cv_LUA_LIBS
28572        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28573$as_echo "yes" >&6; }
28574	with_liblua="yes"
28575fi
28576
28577
28578else
28579	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
28580	LUA_LIBS=$pkg_cv_LUA_LIBS
28581        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28582$as_echo "yes" >&6; }
28583	with_liblua="yes"
28584fi
28585
28586
28587else
28588	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
28589	LUA_LIBS=$pkg_cv_LUA_LIBS
28590        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28591$as_echo "yes" >&6; }
28592	with_liblua="yes"
28593fi
28594
28595
28596elif test $pkg_failed = untried; then
28597     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28598$as_echo "no" >&6; }
28599
28600
28601pkg_failed=no
28602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
28603$as_echo_n "checking for LUA... " >&6; }
28604
28605if test -n "$LUA_CFLAGS"; then
28606    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
28607 elif test -n "$PKG_CONFIG"; then
28608    if test -n "$PKG_CONFIG" && \
28609    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
28610  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
28611  ac_status=$?
28612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28613  test $ac_status = 0; }; then
28614  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
28615		      test "x$?" != "x0" && pkg_failed=yes
28616else
28617  pkg_failed=yes
28618fi
28619 else
28620    pkg_failed=untried
28621fi
28622if test -n "$LUA_LIBS"; then
28623    pkg_cv_LUA_LIBS="$LUA_LIBS"
28624 elif test -n "$PKG_CONFIG"; then
28625    if test -n "$PKG_CONFIG" && \
28626    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
28627  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
28628  ac_status=$?
28629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28630  test $ac_status = 0; }; then
28631  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
28632		      test "x$?" != "x0" && pkg_failed=yes
28633else
28634  pkg_failed=yes
28635fi
28636 else
28637    pkg_failed=untried
28638fi
28639
28640
28641
28642if test $pkg_failed = yes; then
28643   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28644$as_echo "no" >&6; }
28645
28646if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28647        _pkg_short_errors_supported=yes
28648else
28649        _pkg_short_errors_supported=no
28650fi
28651        if test $_pkg_short_errors_supported = yes; then
28652	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
28653        else
28654	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
28655        fi
28656	# Put the nasty error message in config.log where it belongs
28657	echo "$LUA_PKG_ERRORS" >&5
28658
28659
28660
28661pkg_failed=no
28662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
28663$as_echo_n "checking for LUA... " >&6; }
28664
28665if test -n "$LUA_CFLAGS"; then
28666    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
28667 elif test -n "$PKG_CONFIG"; then
28668    if test -n "$PKG_CONFIG" && \
28669    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
28670  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
28671  ac_status=$?
28672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28673  test $ac_status = 0; }; then
28674  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
28675		      test "x$?" != "x0" && pkg_failed=yes
28676else
28677  pkg_failed=yes
28678fi
28679 else
28680    pkg_failed=untried
28681fi
28682if test -n "$LUA_LIBS"; then
28683    pkg_cv_LUA_LIBS="$LUA_LIBS"
28684 elif test -n "$PKG_CONFIG"; then
28685    if test -n "$PKG_CONFIG" && \
28686    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
28687  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
28688  ac_status=$?
28689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28690  test $ac_status = 0; }; then
28691  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
28692		      test "x$?" != "x0" && pkg_failed=yes
28693else
28694  pkg_failed=yes
28695fi
28696 else
28697    pkg_failed=untried
28698fi
28699
28700
28701
28702if test $pkg_failed = yes; then
28703   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28704$as_echo "no" >&6; }
28705
28706if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28707        _pkg_short_errors_supported=yes
28708else
28709        _pkg_short_errors_supported=no
28710fi
28711        if test $_pkg_short_errors_supported = yes; then
28712	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
28713        else
28714	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
28715        fi
28716	# Put the nasty error message in config.log where it belongs
28717	echo "$LUA_PKG_ERRORS" >&5
28718
28719
28720
28721pkg_failed=no
28722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
28723$as_echo_n "checking for LUA... " >&6; }
28724
28725if test -n "$LUA_CFLAGS"; then
28726    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
28727 elif test -n "$PKG_CONFIG"; then
28728    if test -n "$PKG_CONFIG" && \
28729    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
28730  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
28731  ac_status=$?
28732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28733  test $ac_status = 0; }; then
28734  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
28735		      test "x$?" != "x0" && pkg_failed=yes
28736else
28737  pkg_failed=yes
28738fi
28739 else
28740    pkg_failed=untried
28741fi
28742if test -n "$LUA_LIBS"; then
28743    pkg_cv_LUA_LIBS="$LUA_LIBS"
28744 elif test -n "$PKG_CONFIG"; then
28745    if test -n "$PKG_CONFIG" && \
28746    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
28747  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
28748  ac_status=$?
28749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28750  test $ac_status = 0; }; then
28751  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
28752		      test "x$?" != "x0" && pkg_failed=yes
28753else
28754  pkg_failed=yes
28755fi
28756 else
28757    pkg_failed=untried
28758fi
28759
28760
28761
28762if test $pkg_failed = yes; then
28763   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28764$as_echo "no" >&6; }
28765
28766if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28767        _pkg_short_errors_supported=yes
28768else
28769        _pkg_short_errors_supported=no
28770fi
28771        if test $_pkg_short_errors_supported = yes; then
28772	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
28773        else
28774	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
28775        fi
28776	# Put the nasty error message in config.log where it belongs
28777	echo "$LUA_PKG_ERRORS" >&5
28778
28779
28780
28781pkg_failed=no
28782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
28783$as_echo_n "checking for LUA... " >&6; }
28784
28785if test -n "$LUA_CFLAGS"; then
28786    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
28787 elif test -n "$PKG_CONFIG"; then
28788    if test -n "$PKG_CONFIG" && \
28789    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
28790  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
28791  ac_status=$?
28792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28793  test $ac_status = 0; }; then
28794  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
28795		      test "x$?" != "x0" && pkg_failed=yes
28796else
28797  pkg_failed=yes
28798fi
28799 else
28800    pkg_failed=untried
28801fi
28802if test -n "$LUA_LIBS"; then
28803    pkg_cv_LUA_LIBS="$LUA_LIBS"
28804 elif test -n "$PKG_CONFIG"; then
28805    if test -n "$PKG_CONFIG" && \
28806    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
28807  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
28808  ac_status=$?
28809  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28810  test $ac_status = 0; }; then
28811  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
28812		      test "x$?" != "x0" && pkg_failed=yes
28813else
28814  pkg_failed=yes
28815fi
28816 else
28817    pkg_failed=untried
28818fi
28819
28820
28821
28822if test $pkg_failed = yes; then
28823   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28824$as_echo "no" >&6; }
28825
28826if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28827        _pkg_short_errors_supported=yes
28828else
28829        _pkg_short_errors_supported=no
28830fi
28831        if test $_pkg_short_errors_supported = yes; then
28832	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
28833        else
28834	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
28835        fi
28836	# Put the nasty error message in config.log where it belongs
28837	echo "$LUA_PKG_ERRORS" >&5
28838
28839
28840
28841pkg_failed=no
28842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
28843$as_echo_n "checking for LUA... " >&6; }
28844
28845if test -n "$LUA_CFLAGS"; then
28846    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
28847 elif test -n "$PKG_CONFIG"; then
28848    if test -n "$PKG_CONFIG" && \
28849    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
28850  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
28851  ac_status=$?
28852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28853  test $ac_status = 0; }; then
28854  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
28855		      test "x$?" != "x0" && pkg_failed=yes
28856else
28857  pkg_failed=yes
28858fi
28859 else
28860    pkg_failed=untried
28861fi
28862if test -n "$LUA_LIBS"; then
28863    pkg_cv_LUA_LIBS="$LUA_LIBS"
28864 elif test -n "$PKG_CONFIG"; then
28865    if test -n "$PKG_CONFIG" && \
28866    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
28867  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
28868  ac_status=$?
28869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28870  test $ac_status = 0; }; then
28871  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
28872		      test "x$?" != "x0" && pkg_failed=yes
28873else
28874  pkg_failed=yes
28875fi
28876 else
28877    pkg_failed=untried
28878fi
28879
28880
28881
28882if test $pkg_failed = yes; then
28883   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28884$as_echo "no" >&6; }
28885
28886if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28887        _pkg_short_errors_supported=yes
28888else
28889        _pkg_short_errors_supported=no
28890fi
28891        if test $_pkg_short_errors_supported = yes; then
28892	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
28893        else
28894	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
28895        fi
28896	# Put the nasty error message in config.log where it belongs
28897	echo "$LUA_PKG_ERRORS" >&5
28898
28899	with_liblua="no (pkg-config cannot find liblua)"
28900
28901elif test $pkg_failed = untried; then
28902     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28903$as_echo "no" >&6; }
28904	with_liblua="no (pkg-config cannot find liblua)"
28905
28906else
28907	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
28908	LUA_LIBS=$pkg_cv_LUA_LIBS
28909        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28910$as_echo "yes" >&6; }
28911	with_liblua="yes"
28912fi
28913
28914
28915elif test $pkg_failed = untried; then
28916     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28917$as_echo "no" >&6; }
28918
28919
28920pkg_failed=no
28921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
28922$as_echo_n "checking for LUA... " >&6; }
28923
28924if test -n "$LUA_CFLAGS"; then
28925    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
28926 elif test -n "$PKG_CONFIG"; then
28927    if test -n "$PKG_CONFIG" && \
28928    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
28929  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
28930  ac_status=$?
28931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28932  test $ac_status = 0; }; then
28933  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
28934		      test "x$?" != "x0" && pkg_failed=yes
28935else
28936  pkg_failed=yes
28937fi
28938 else
28939    pkg_failed=untried
28940fi
28941if test -n "$LUA_LIBS"; then
28942    pkg_cv_LUA_LIBS="$LUA_LIBS"
28943 elif test -n "$PKG_CONFIG"; then
28944    if test -n "$PKG_CONFIG" && \
28945    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
28946  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
28947  ac_status=$?
28948  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28949  test $ac_status = 0; }; then
28950  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
28951		      test "x$?" != "x0" && pkg_failed=yes
28952else
28953  pkg_failed=yes
28954fi
28955 else
28956    pkg_failed=untried
28957fi
28958
28959
28960
28961if test $pkg_failed = yes; then
28962   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28963$as_echo "no" >&6; }
28964
28965if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28966        _pkg_short_errors_supported=yes
28967else
28968        _pkg_short_errors_supported=no
28969fi
28970        if test $_pkg_short_errors_supported = yes; then
28971	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
28972        else
28973	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
28974        fi
28975	# Put the nasty error message in config.log where it belongs
28976	echo "$LUA_PKG_ERRORS" >&5
28977
28978	with_liblua="no (pkg-config cannot find liblua)"
28979
28980elif test $pkg_failed = untried; then
28981     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28982$as_echo "no" >&6; }
28983	with_liblua="no (pkg-config cannot find liblua)"
28984
28985else
28986	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
28987	LUA_LIBS=$pkg_cv_LUA_LIBS
28988        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28989$as_echo "yes" >&6; }
28990	with_liblua="yes"
28991fi
28992
28993
28994else
28995	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
28996	LUA_LIBS=$pkg_cv_LUA_LIBS
28997        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28998$as_echo "yes" >&6; }
28999	with_liblua="yes"
29000fi
29001
29002
29003elif test $pkg_failed = untried; then
29004     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29005$as_echo "no" >&6; }
29006
29007
29008pkg_failed=no
29009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
29010$as_echo_n "checking for LUA... " >&6; }
29011
29012if test -n "$LUA_CFLAGS"; then
29013    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
29014 elif test -n "$PKG_CONFIG"; then
29015    if test -n "$PKG_CONFIG" && \
29016    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
29017  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
29018  ac_status=$?
29019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29020  test $ac_status = 0; }; then
29021  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
29022		      test "x$?" != "x0" && pkg_failed=yes
29023else
29024  pkg_failed=yes
29025fi
29026 else
29027    pkg_failed=untried
29028fi
29029if test -n "$LUA_LIBS"; then
29030    pkg_cv_LUA_LIBS="$LUA_LIBS"
29031 elif test -n "$PKG_CONFIG"; then
29032    if test -n "$PKG_CONFIG" && \
29033    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
29034  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
29035  ac_status=$?
29036  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29037  test $ac_status = 0; }; then
29038  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
29039		      test "x$?" != "x0" && pkg_failed=yes
29040else
29041  pkg_failed=yes
29042fi
29043 else
29044    pkg_failed=untried
29045fi
29046
29047
29048
29049if test $pkg_failed = yes; then
29050   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29051$as_echo "no" >&6; }
29052
29053if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29054        _pkg_short_errors_supported=yes
29055else
29056        _pkg_short_errors_supported=no
29057fi
29058        if test $_pkg_short_errors_supported = yes; then
29059	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
29060        else
29061	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
29062        fi
29063	# Put the nasty error message in config.log where it belongs
29064	echo "$LUA_PKG_ERRORS" >&5
29065
29066
29067
29068pkg_failed=no
29069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
29070$as_echo_n "checking for LUA... " >&6; }
29071
29072if test -n "$LUA_CFLAGS"; then
29073    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
29074 elif test -n "$PKG_CONFIG"; then
29075    if test -n "$PKG_CONFIG" && \
29076    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
29077  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
29078  ac_status=$?
29079  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29080  test $ac_status = 0; }; then
29081  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
29082		      test "x$?" != "x0" && pkg_failed=yes
29083else
29084  pkg_failed=yes
29085fi
29086 else
29087    pkg_failed=untried
29088fi
29089if test -n "$LUA_LIBS"; then
29090    pkg_cv_LUA_LIBS="$LUA_LIBS"
29091 elif test -n "$PKG_CONFIG"; then
29092    if test -n "$PKG_CONFIG" && \
29093    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
29094  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
29095  ac_status=$?
29096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29097  test $ac_status = 0; }; then
29098  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
29099		      test "x$?" != "x0" && pkg_failed=yes
29100else
29101  pkg_failed=yes
29102fi
29103 else
29104    pkg_failed=untried
29105fi
29106
29107
29108
29109if test $pkg_failed = yes; then
29110   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29111$as_echo "no" >&6; }
29112
29113if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29114        _pkg_short_errors_supported=yes
29115else
29116        _pkg_short_errors_supported=no
29117fi
29118        if test $_pkg_short_errors_supported = yes; then
29119	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
29120        else
29121	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
29122        fi
29123	# Put the nasty error message in config.log where it belongs
29124	echo "$LUA_PKG_ERRORS" >&5
29125
29126	with_liblua="no (pkg-config cannot find liblua)"
29127
29128elif test $pkg_failed = untried; then
29129     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29130$as_echo "no" >&6; }
29131	with_liblua="no (pkg-config cannot find liblua)"
29132
29133else
29134	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
29135	LUA_LIBS=$pkg_cv_LUA_LIBS
29136        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29137$as_echo "yes" >&6; }
29138	with_liblua="yes"
29139fi
29140
29141
29142elif test $pkg_failed = untried; then
29143     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29144$as_echo "no" >&6; }
29145
29146
29147pkg_failed=no
29148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
29149$as_echo_n "checking for LUA... " >&6; }
29150
29151if test -n "$LUA_CFLAGS"; then
29152    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
29153 elif test -n "$PKG_CONFIG"; then
29154    if test -n "$PKG_CONFIG" && \
29155    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
29156  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
29157  ac_status=$?
29158  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29159  test $ac_status = 0; }; then
29160  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
29161		      test "x$?" != "x0" && pkg_failed=yes
29162else
29163  pkg_failed=yes
29164fi
29165 else
29166    pkg_failed=untried
29167fi
29168if test -n "$LUA_LIBS"; then
29169    pkg_cv_LUA_LIBS="$LUA_LIBS"
29170 elif test -n "$PKG_CONFIG"; then
29171    if test -n "$PKG_CONFIG" && \
29172    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
29173  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
29174  ac_status=$?
29175  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29176  test $ac_status = 0; }; then
29177  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
29178		      test "x$?" != "x0" && pkg_failed=yes
29179else
29180  pkg_failed=yes
29181fi
29182 else
29183    pkg_failed=untried
29184fi
29185
29186
29187
29188if test $pkg_failed = yes; then
29189   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29190$as_echo "no" >&6; }
29191
29192if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29193        _pkg_short_errors_supported=yes
29194else
29195        _pkg_short_errors_supported=no
29196fi
29197        if test $_pkg_short_errors_supported = yes; then
29198	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
29199        else
29200	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
29201        fi
29202	# Put the nasty error message in config.log where it belongs
29203	echo "$LUA_PKG_ERRORS" >&5
29204
29205	with_liblua="no (pkg-config cannot find liblua)"
29206
29207elif test $pkg_failed = untried; then
29208     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29209$as_echo "no" >&6; }
29210	with_liblua="no (pkg-config cannot find liblua)"
29211
29212else
29213	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
29214	LUA_LIBS=$pkg_cv_LUA_LIBS
29215        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29216$as_echo "yes" >&6; }
29217	with_liblua="yes"
29218fi
29219
29220
29221else
29222	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
29223	LUA_LIBS=$pkg_cv_LUA_LIBS
29224        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29225$as_echo "yes" >&6; }
29226	with_liblua="yes"
29227fi
29228
29229
29230else
29231	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
29232	LUA_LIBS=$pkg_cv_LUA_LIBS
29233        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29234$as_echo "yes" >&6; }
29235	with_liblua="yes"
29236fi
29237
29238
29239elif test $pkg_failed = untried; then
29240     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29241$as_echo "no" >&6; }
29242
29243
29244pkg_failed=no
29245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
29246$as_echo_n "checking for LUA... " >&6; }
29247
29248if test -n "$LUA_CFLAGS"; then
29249    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
29250 elif test -n "$PKG_CONFIG"; then
29251    if test -n "$PKG_CONFIG" && \
29252    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
29253  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
29254  ac_status=$?
29255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29256  test $ac_status = 0; }; then
29257  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
29258		      test "x$?" != "x0" && pkg_failed=yes
29259else
29260  pkg_failed=yes
29261fi
29262 else
29263    pkg_failed=untried
29264fi
29265if test -n "$LUA_LIBS"; then
29266    pkg_cv_LUA_LIBS="$LUA_LIBS"
29267 elif test -n "$PKG_CONFIG"; then
29268    if test -n "$PKG_CONFIG" && \
29269    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
29270  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
29271  ac_status=$?
29272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29273  test $ac_status = 0; }; then
29274  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
29275		      test "x$?" != "x0" && pkg_failed=yes
29276else
29277  pkg_failed=yes
29278fi
29279 else
29280    pkg_failed=untried
29281fi
29282
29283
29284
29285if test $pkg_failed = yes; then
29286   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29287$as_echo "no" >&6; }
29288
29289if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29290        _pkg_short_errors_supported=yes
29291else
29292        _pkg_short_errors_supported=no
29293fi
29294        if test $_pkg_short_errors_supported = yes; then
29295	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
29296        else
29297	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
29298        fi
29299	# Put the nasty error message in config.log where it belongs
29300	echo "$LUA_PKG_ERRORS" >&5
29301
29302
29303
29304pkg_failed=no
29305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
29306$as_echo_n "checking for LUA... " >&6; }
29307
29308if test -n "$LUA_CFLAGS"; then
29309    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
29310 elif test -n "$PKG_CONFIG"; then
29311    if test -n "$PKG_CONFIG" && \
29312    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
29313  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
29314  ac_status=$?
29315  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29316  test $ac_status = 0; }; then
29317  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
29318		      test "x$?" != "x0" && pkg_failed=yes
29319else
29320  pkg_failed=yes
29321fi
29322 else
29323    pkg_failed=untried
29324fi
29325if test -n "$LUA_LIBS"; then
29326    pkg_cv_LUA_LIBS="$LUA_LIBS"
29327 elif test -n "$PKG_CONFIG"; then
29328    if test -n "$PKG_CONFIG" && \
29329    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
29330  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
29331  ac_status=$?
29332  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29333  test $ac_status = 0; }; then
29334  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
29335		      test "x$?" != "x0" && pkg_failed=yes
29336else
29337  pkg_failed=yes
29338fi
29339 else
29340    pkg_failed=untried
29341fi
29342
29343
29344
29345if test $pkg_failed = yes; then
29346   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29347$as_echo "no" >&6; }
29348
29349if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29350        _pkg_short_errors_supported=yes
29351else
29352        _pkg_short_errors_supported=no
29353fi
29354        if test $_pkg_short_errors_supported = yes; then
29355	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
29356        else
29357	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
29358        fi
29359	# Put the nasty error message in config.log where it belongs
29360	echo "$LUA_PKG_ERRORS" >&5
29361
29362
29363
29364pkg_failed=no
29365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
29366$as_echo_n "checking for LUA... " >&6; }
29367
29368if test -n "$LUA_CFLAGS"; then
29369    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
29370 elif test -n "$PKG_CONFIG"; then
29371    if test -n "$PKG_CONFIG" && \
29372    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
29373  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
29374  ac_status=$?
29375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29376  test $ac_status = 0; }; then
29377  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
29378		      test "x$?" != "x0" && pkg_failed=yes
29379else
29380  pkg_failed=yes
29381fi
29382 else
29383    pkg_failed=untried
29384fi
29385if test -n "$LUA_LIBS"; then
29386    pkg_cv_LUA_LIBS="$LUA_LIBS"
29387 elif test -n "$PKG_CONFIG"; then
29388    if test -n "$PKG_CONFIG" && \
29389    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
29390  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
29391  ac_status=$?
29392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29393  test $ac_status = 0; }; then
29394  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
29395		      test "x$?" != "x0" && pkg_failed=yes
29396else
29397  pkg_failed=yes
29398fi
29399 else
29400    pkg_failed=untried
29401fi
29402
29403
29404
29405if test $pkg_failed = yes; then
29406   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29407$as_echo "no" >&6; }
29408
29409if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29410        _pkg_short_errors_supported=yes
29411else
29412        _pkg_short_errors_supported=no
29413fi
29414        if test $_pkg_short_errors_supported = yes; then
29415	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
29416        else
29417	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
29418        fi
29419	# Put the nasty error message in config.log where it belongs
29420	echo "$LUA_PKG_ERRORS" >&5
29421
29422	with_liblua="no (pkg-config cannot find liblua)"
29423
29424elif test $pkg_failed = untried; then
29425     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29426$as_echo "no" >&6; }
29427	with_liblua="no (pkg-config cannot find liblua)"
29428
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	with_liblua="yes"
29435fi
29436
29437
29438elif test $pkg_failed = untried; then
29439     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29440$as_echo "no" >&6; }
29441
29442
29443pkg_failed=no
29444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
29445$as_echo_n "checking for LUA... " >&6; }
29446
29447if test -n "$LUA_CFLAGS"; then
29448    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
29449 elif test -n "$PKG_CONFIG"; then
29450    if test -n "$PKG_CONFIG" && \
29451    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
29452  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
29453  ac_status=$?
29454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29455  test $ac_status = 0; }; then
29456  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
29457		      test "x$?" != "x0" && pkg_failed=yes
29458else
29459  pkg_failed=yes
29460fi
29461 else
29462    pkg_failed=untried
29463fi
29464if test -n "$LUA_LIBS"; then
29465    pkg_cv_LUA_LIBS="$LUA_LIBS"
29466 elif test -n "$PKG_CONFIG"; then
29467    if test -n "$PKG_CONFIG" && \
29468    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
29469  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
29470  ac_status=$?
29471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29472  test $ac_status = 0; }; then
29473  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
29474		      test "x$?" != "x0" && pkg_failed=yes
29475else
29476  pkg_failed=yes
29477fi
29478 else
29479    pkg_failed=untried
29480fi
29481
29482
29483
29484if test $pkg_failed = yes; then
29485   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29486$as_echo "no" >&6; }
29487
29488if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29489        _pkg_short_errors_supported=yes
29490else
29491        _pkg_short_errors_supported=no
29492fi
29493        if test $_pkg_short_errors_supported = yes; then
29494	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
29495        else
29496	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
29497        fi
29498	# Put the nasty error message in config.log where it belongs
29499	echo "$LUA_PKG_ERRORS" >&5
29500
29501	with_liblua="no (pkg-config cannot find liblua)"
29502
29503elif test $pkg_failed = untried; then
29504     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29505$as_echo "no" >&6; }
29506	with_liblua="no (pkg-config cannot find liblua)"
29507
29508else
29509	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
29510	LUA_LIBS=$pkg_cv_LUA_LIBS
29511        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29512$as_echo "yes" >&6; }
29513	with_liblua="yes"
29514fi
29515
29516
29517else
29518	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
29519	LUA_LIBS=$pkg_cv_LUA_LIBS
29520        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29521$as_echo "yes" >&6; }
29522	with_liblua="yes"
29523fi
29524
29525
29526elif test $pkg_failed = untried; then
29527     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29528$as_echo "no" >&6; }
29529
29530
29531pkg_failed=no
29532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
29533$as_echo_n "checking for LUA... " >&6; }
29534
29535if test -n "$LUA_CFLAGS"; then
29536    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
29537 elif test -n "$PKG_CONFIG"; then
29538    if test -n "$PKG_CONFIG" && \
29539    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
29540  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
29541  ac_status=$?
29542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29543  test $ac_status = 0; }; then
29544  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
29545		      test "x$?" != "x0" && pkg_failed=yes
29546else
29547  pkg_failed=yes
29548fi
29549 else
29550    pkg_failed=untried
29551fi
29552if test -n "$LUA_LIBS"; then
29553    pkg_cv_LUA_LIBS="$LUA_LIBS"
29554 elif test -n "$PKG_CONFIG"; then
29555    if test -n "$PKG_CONFIG" && \
29556    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
29557  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
29558  ac_status=$?
29559  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29560  test $ac_status = 0; }; then
29561  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
29562		      test "x$?" != "x0" && pkg_failed=yes
29563else
29564  pkg_failed=yes
29565fi
29566 else
29567    pkg_failed=untried
29568fi
29569
29570
29571
29572if test $pkg_failed = yes; then
29573   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29574$as_echo "no" >&6; }
29575
29576if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29577        _pkg_short_errors_supported=yes
29578else
29579        _pkg_short_errors_supported=no
29580fi
29581        if test $_pkg_short_errors_supported = yes; then
29582	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
29583        else
29584	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
29585        fi
29586	# Put the nasty error message in config.log where it belongs
29587	echo "$LUA_PKG_ERRORS" >&5
29588
29589
29590
29591pkg_failed=no
29592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
29593$as_echo_n "checking for LUA... " >&6; }
29594
29595if test -n "$LUA_CFLAGS"; then
29596    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
29597 elif test -n "$PKG_CONFIG"; then
29598    if test -n "$PKG_CONFIG" && \
29599    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
29600  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
29601  ac_status=$?
29602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29603  test $ac_status = 0; }; then
29604  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
29605		      test "x$?" != "x0" && pkg_failed=yes
29606else
29607  pkg_failed=yes
29608fi
29609 else
29610    pkg_failed=untried
29611fi
29612if test -n "$LUA_LIBS"; then
29613    pkg_cv_LUA_LIBS="$LUA_LIBS"
29614 elif test -n "$PKG_CONFIG"; then
29615    if test -n "$PKG_CONFIG" && \
29616    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
29617  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
29618  ac_status=$?
29619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29620  test $ac_status = 0; }; then
29621  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
29622		      test "x$?" != "x0" && pkg_failed=yes
29623else
29624  pkg_failed=yes
29625fi
29626 else
29627    pkg_failed=untried
29628fi
29629
29630
29631
29632if test $pkg_failed = yes; then
29633   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29634$as_echo "no" >&6; }
29635
29636if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29637        _pkg_short_errors_supported=yes
29638else
29639        _pkg_short_errors_supported=no
29640fi
29641        if test $_pkg_short_errors_supported = yes; then
29642	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
29643        else
29644	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
29645        fi
29646	# Put the nasty error message in config.log where it belongs
29647	echo "$LUA_PKG_ERRORS" >&5
29648
29649	with_liblua="no (pkg-config cannot find liblua)"
29650
29651elif test $pkg_failed = untried; then
29652     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29653$as_echo "no" >&6; }
29654	with_liblua="no (pkg-config cannot find liblua)"
29655
29656else
29657	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
29658	LUA_LIBS=$pkg_cv_LUA_LIBS
29659        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29660$as_echo "yes" >&6; }
29661	with_liblua="yes"
29662fi
29663
29664
29665elif test $pkg_failed = untried; then
29666     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29667$as_echo "no" >&6; }
29668
29669
29670pkg_failed=no
29671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
29672$as_echo_n "checking for LUA... " >&6; }
29673
29674if test -n "$LUA_CFLAGS"; then
29675    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
29676 elif test -n "$PKG_CONFIG"; then
29677    if test -n "$PKG_CONFIG" && \
29678    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
29679  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
29680  ac_status=$?
29681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29682  test $ac_status = 0; }; then
29683  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
29684		      test "x$?" != "x0" && pkg_failed=yes
29685else
29686  pkg_failed=yes
29687fi
29688 else
29689    pkg_failed=untried
29690fi
29691if test -n "$LUA_LIBS"; then
29692    pkg_cv_LUA_LIBS="$LUA_LIBS"
29693 elif test -n "$PKG_CONFIG"; then
29694    if test -n "$PKG_CONFIG" && \
29695    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
29696  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
29697  ac_status=$?
29698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29699  test $ac_status = 0; }; then
29700  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
29701		      test "x$?" != "x0" && pkg_failed=yes
29702else
29703  pkg_failed=yes
29704fi
29705 else
29706    pkg_failed=untried
29707fi
29708
29709
29710
29711if test $pkg_failed = yes; then
29712   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29713$as_echo "no" >&6; }
29714
29715if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29716        _pkg_short_errors_supported=yes
29717else
29718        _pkg_short_errors_supported=no
29719fi
29720        if test $_pkg_short_errors_supported = yes; then
29721	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
29722        else
29723	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
29724        fi
29725	# Put the nasty error message in config.log where it belongs
29726	echo "$LUA_PKG_ERRORS" >&5
29727
29728	with_liblua="no (pkg-config cannot find liblua)"
29729
29730elif test $pkg_failed = untried; then
29731     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29732$as_echo "no" >&6; }
29733	with_liblua="no (pkg-config cannot find liblua)"
29734
29735else
29736	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
29737	LUA_LIBS=$pkg_cv_LUA_LIBS
29738        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29739$as_echo "yes" >&6; }
29740	with_liblua="yes"
29741fi
29742
29743
29744else
29745	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
29746	LUA_LIBS=$pkg_cv_LUA_LIBS
29747        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29748$as_echo "yes" >&6; }
29749	with_liblua="yes"
29750fi
29751
29752
29753else
29754	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
29755	LUA_LIBS=$pkg_cv_LUA_LIBS
29756        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29757$as_echo "yes" >&6; }
29758	with_liblua="yes"
29759fi
29760
29761
29762else
29763	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
29764	LUA_LIBS=$pkg_cv_LUA_LIBS
29765        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29766$as_echo "yes" >&6; }
29767	with_liblua="yes"
29768fi
29769
29770
29771elif test $pkg_failed = untried; then
29772     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29773$as_echo "no" >&6; }
29774
29775
29776pkg_failed=no
29777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
29778$as_echo_n "checking for LUA... " >&6; }
29779
29780if test -n "$LUA_CFLAGS"; then
29781    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
29782 elif test -n "$PKG_CONFIG"; then
29783    if test -n "$PKG_CONFIG" && \
29784    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
29785  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
29786  ac_status=$?
29787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29788  test $ac_status = 0; }; then
29789  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
29790		      test "x$?" != "x0" && pkg_failed=yes
29791else
29792  pkg_failed=yes
29793fi
29794 else
29795    pkg_failed=untried
29796fi
29797if test -n "$LUA_LIBS"; then
29798    pkg_cv_LUA_LIBS="$LUA_LIBS"
29799 elif test -n "$PKG_CONFIG"; then
29800    if test -n "$PKG_CONFIG" && \
29801    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
29802  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
29803  ac_status=$?
29804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29805  test $ac_status = 0; }; then
29806  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
29807		      test "x$?" != "x0" && pkg_failed=yes
29808else
29809  pkg_failed=yes
29810fi
29811 else
29812    pkg_failed=untried
29813fi
29814
29815
29816
29817if test $pkg_failed = yes; then
29818   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29819$as_echo "no" >&6; }
29820
29821if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29822        _pkg_short_errors_supported=yes
29823else
29824        _pkg_short_errors_supported=no
29825fi
29826        if test $_pkg_short_errors_supported = yes; then
29827	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
29828        else
29829	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
29830        fi
29831	# Put the nasty error message in config.log where it belongs
29832	echo "$LUA_PKG_ERRORS" >&5
29833
29834
29835
29836pkg_failed=no
29837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
29838$as_echo_n "checking for LUA... " >&6; }
29839
29840if test -n "$LUA_CFLAGS"; then
29841    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
29842 elif test -n "$PKG_CONFIG"; then
29843    if test -n "$PKG_CONFIG" && \
29844    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
29845  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
29846  ac_status=$?
29847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29848  test $ac_status = 0; }; then
29849  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
29850		      test "x$?" != "x0" && pkg_failed=yes
29851else
29852  pkg_failed=yes
29853fi
29854 else
29855    pkg_failed=untried
29856fi
29857if test -n "$LUA_LIBS"; then
29858    pkg_cv_LUA_LIBS="$LUA_LIBS"
29859 elif test -n "$PKG_CONFIG"; then
29860    if test -n "$PKG_CONFIG" && \
29861    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
29862  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
29863  ac_status=$?
29864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29865  test $ac_status = 0; }; then
29866  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
29867		      test "x$?" != "x0" && pkg_failed=yes
29868else
29869  pkg_failed=yes
29870fi
29871 else
29872    pkg_failed=untried
29873fi
29874
29875
29876
29877if test $pkg_failed = yes; then
29878   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29879$as_echo "no" >&6; }
29880
29881if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29882        _pkg_short_errors_supported=yes
29883else
29884        _pkg_short_errors_supported=no
29885fi
29886        if test $_pkg_short_errors_supported = yes; then
29887	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
29888        else
29889	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
29890        fi
29891	# Put the nasty error message in config.log where it belongs
29892	echo "$LUA_PKG_ERRORS" >&5
29893
29894
29895
29896pkg_failed=no
29897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
29898$as_echo_n "checking for LUA... " >&6; }
29899
29900if test -n "$LUA_CFLAGS"; then
29901    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
29902 elif test -n "$PKG_CONFIG"; then
29903    if test -n "$PKG_CONFIG" && \
29904    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
29905  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
29906  ac_status=$?
29907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29908  test $ac_status = 0; }; then
29909  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
29910		      test "x$?" != "x0" && pkg_failed=yes
29911else
29912  pkg_failed=yes
29913fi
29914 else
29915    pkg_failed=untried
29916fi
29917if test -n "$LUA_LIBS"; then
29918    pkg_cv_LUA_LIBS="$LUA_LIBS"
29919 elif test -n "$PKG_CONFIG"; then
29920    if test -n "$PKG_CONFIG" && \
29921    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
29922  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
29923  ac_status=$?
29924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29925  test $ac_status = 0; }; then
29926  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
29927		      test "x$?" != "x0" && pkg_failed=yes
29928else
29929  pkg_failed=yes
29930fi
29931 else
29932    pkg_failed=untried
29933fi
29934
29935
29936
29937if test $pkg_failed = yes; then
29938   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29939$as_echo "no" >&6; }
29940
29941if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29942        _pkg_short_errors_supported=yes
29943else
29944        _pkg_short_errors_supported=no
29945fi
29946        if test $_pkg_short_errors_supported = yes; then
29947	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
29948        else
29949	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
29950        fi
29951	# Put the nasty error message in config.log where it belongs
29952	echo "$LUA_PKG_ERRORS" >&5
29953
29954
29955
29956pkg_failed=no
29957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
29958$as_echo_n "checking for LUA... " >&6; }
29959
29960if test -n "$LUA_CFLAGS"; then
29961    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
29962 elif test -n "$PKG_CONFIG"; then
29963    if test -n "$PKG_CONFIG" && \
29964    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
29965  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
29966  ac_status=$?
29967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29968  test $ac_status = 0; }; then
29969  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
29970		      test "x$?" != "x0" && pkg_failed=yes
29971else
29972  pkg_failed=yes
29973fi
29974 else
29975    pkg_failed=untried
29976fi
29977if test -n "$LUA_LIBS"; then
29978    pkg_cv_LUA_LIBS="$LUA_LIBS"
29979 elif test -n "$PKG_CONFIG"; then
29980    if test -n "$PKG_CONFIG" && \
29981    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
29982  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
29983  ac_status=$?
29984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29985  test $ac_status = 0; }; then
29986  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
29987		      test "x$?" != "x0" && pkg_failed=yes
29988else
29989  pkg_failed=yes
29990fi
29991 else
29992    pkg_failed=untried
29993fi
29994
29995
29996
29997if test $pkg_failed = yes; then
29998   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29999$as_echo "no" >&6; }
30000
30001if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30002        _pkg_short_errors_supported=yes
30003else
30004        _pkg_short_errors_supported=no
30005fi
30006        if test $_pkg_short_errors_supported = yes; then
30007	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
30008        else
30009	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
30010        fi
30011	# Put the nasty error message in config.log where it belongs
30012	echo "$LUA_PKG_ERRORS" >&5
30013
30014	with_liblua="no (pkg-config cannot find liblua)"
30015
30016elif test $pkg_failed = untried; then
30017     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30018$as_echo "no" >&6; }
30019	with_liblua="no (pkg-config cannot find liblua)"
30020
30021else
30022	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
30023	LUA_LIBS=$pkg_cv_LUA_LIBS
30024        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30025$as_echo "yes" >&6; }
30026	with_liblua="yes"
30027fi
30028
30029
30030elif test $pkg_failed = untried; then
30031     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30032$as_echo "no" >&6; }
30033
30034
30035pkg_failed=no
30036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
30037$as_echo_n "checking for LUA... " >&6; }
30038
30039if test -n "$LUA_CFLAGS"; then
30040    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
30041 elif test -n "$PKG_CONFIG"; then
30042    if test -n "$PKG_CONFIG" && \
30043    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
30044  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
30045  ac_status=$?
30046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30047  test $ac_status = 0; }; then
30048  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
30049		      test "x$?" != "x0" && pkg_failed=yes
30050else
30051  pkg_failed=yes
30052fi
30053 else
30054    pkg_failed=untried
30055fi
30056if test -n "$LUA_LIBS"; then
30057    pkg_cv_LUA_LIBS="$LUA_LIBS"
30058 elif test -n "$PKG_CONFIG"; then
30059    if test -n "$PKG_CONFIG" && \
30060    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
30061  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
30062  ac_status=$?
30063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30064  test $ac_status = 0; }; then
30065  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
30066		      test "x$?" != "x0" && pkg_failed=yes
30067else
30068  pkg_failed=yes
30069fi
30070 else
30071    pkg_failed=untried
30072fi
30073
30074
30075
30076if test $pkg_failed = yes; then
30077   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30078$as_echo "no" >&6; }
30079
30080if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30081        _pkg_short_errors_supported=yes
30082else
30083        _pkg_short_errors_supported=no
30084fi
30085        if test $_pkg_short_errors_supported = yes; then
30086	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
30087        else
30088	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
30089        fi
30090	# Put the nasty error message in config.log where it belongs
30091	echo "$LUA_PKG_ERRORS" >&5
30092
30093	with_liblua="no (pkg-config cannot find liblua)"
30094
30095elif test $pkg_failed = untried; then
30096     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30097$as_echo "no" >&6; }
30098	with_liblua="no (pkg-config cannot find liblua)"
30099
30100else
30101	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
30102	LUA_LIBS=$pkg_cv_LUA_LIBS
30103        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30104$as_echo "yes" >&6; }
30105	with_liblua="yes"
30106fi
30107
30108
30109else
30110	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
30111	LUA_LIBS=$pkg_cv_LUA_LIBS
30112        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30113$as_echo "yes" >&6; }
30114	with_liblua="yes"
30115fi
30116
30117
30118elif test $pkg_failed = untried; then
30119     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30120$as_echo "no" >&6; }
30121
30122
30123pkg_failed=no
30124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
30125$as_echo_n "checking for LUA... " >&6; }
30126
30127if test -n "$LUA_CFLAGS"; then
30128    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
30129 elif test -n "$PKG_CONFIG"; then
30130    if test -n "$PKG_CONFIG" && \
30131    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
30132  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
30133  ac_status=$?
30134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30135  test $ac_status = 0; }; then
30136  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
30137		      test "x$?" != "x0" && pkg_failed=yes
30138else
30139  pkg_failed=yes
30140fi
30141 else
30142    pkg_failed=untried
30143fi
30144if test -n "$LUA_LIBS"; then
30145    pkg_cv_LUA_LIBS="$LUA_LIBS"
30146 elif test -n "$PKG_CONFIG"; then
30147    if test -n "$PKG_CONFIG" && \
30148    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
30149  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
30150  ac_status=$?
30151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30152  test $ac_status = 0; }; then
30153  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
30154		      test "x$?" != "x0" && pkg_failed=yes
30155else
30156  pkg_failed=yes
30157fi
30158 else
30159    pkg_failed=untried
30160fi
30161
30162
30163
30164if test $pkg_failed = yes; then
30165   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30166$as_echo "no" >&6; }
30167
30168if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30169        _pkg_short_errors_supported=yes
30170else
30171        _pkg_short_errors_supported=no
30172fi
30173        if test $_pkg_short_errors_supported = yes; then
30174	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
30175        else
30176	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
30177        fi
30178	# Put the nasty error message in config.log where it belongs
30179	echo "$LUA_PKG_ERRORS" >&5
30180
30181
30182
30183pkg_failed=no
30184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
30185$as_echo_n "checking for LUA... " >&6; }
30186
30187if test -n "$LUA_CFLAGS"; then
30188    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
30189 elif test -n "$PKG_CONFIG"; then
30190    if test -n "$PKG_CONFIG" && \
30191    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
30192  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
30193  ac_status=$?
30194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30195  test $ac_status = 0; }; then
30196  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
30197		      test "x$?" != "x0" && pkg_failed=yes
30198else
30199  pkg_failed=yes
30200fi
30201 else
30202    pkg_failed=untried
30203fi
30204if test -n "$LUA_LIBS"; then
30205    pkg_cv_LUA_LIBS="$LUA_LIBS"
30206 elif test -n "$PKG_CONFIG"; then
30207    if test -n "$PKG_CONFIG" && \
30208    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
30209  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
30210  ac_status=$?
30211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30212  test $ac_status = 0; }; then
30213  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
30214		      test "x$?" != "x0" && pkg_failed=yes
30215else
30216  pkg_failed=yes
30217fi
30218 else
30219    pkg_failed=untried
30220fi
30221
30222
30223
30224if test $pkg_failed = yes; then
30225   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30226$as_echo "no" >&6; }
30227
30228if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30229        _pkg_short_errors_supported=yes
30230else
30231        _pkg_short_errors_supported=no
30232fi
30233        if test $_pkg_short_errors_supported = yes; then
30234	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
30235        else
30236	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
30237        fi
30238	# Put the nasty error message in config.log where it belongs
30239	echo "$LUA_PKG_ERRORS" >&5
30240
30241	with_liblua="no (pkg-config cannot find liblua)"
30242
30243elif test $pkg_failed = untried; then
30244     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30245$as_echo "no" >&6; }
30246	with_liblua="no (pkg-config cannot find liblua)"
30247
30248else
30249	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
30250	LUA_LIBS=$pkg_cv_LUA_LIBS
30251        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30252$as_echo "yes" >&6; }
30253	with_liblua="yes"
30254fi
30255
30256
30257elif test $pkg_failed = untried; then
30258     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30259$as_echo "no" >&6; }
30260
30261
30262pkg_failed=no
30263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
30264$as_echo_n "checking for LUA... " >&6; }
30265
30266if test -n "$LUA_CFLAGS"; then
30267    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
30268 elif test -n "$PKG_CONFIG"; then
30269    if test -n "$PKG_CONFIG" && \
30270    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
30271  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
30272  ac_status=$?
30273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30274  test $ac_status = 0; }; then
30275  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
30276		      test "x$?" != "x0" && pkg_failed=yes
30277else
30278  pkg_failed=yes
30279fi
30280 else
30281    pkg_failed=untried
30282fi
30283if test -n "$LUA_LIBS"; then
30284    pkg_cv_LUA_LIBS="$LUA_LIBS"
30285 elif test -n "$PKG_CONFIG"; then
30286    if test -n "$PKG_CONFIG" && \
30287    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
30288  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
30289  ac_status=$?
30290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30291  test $ac_status = 0; }; then
30292  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
30293		      test "x$?" != "x0" && pkg_failed=yes
30294else
30295  pkg_failed=yes
30296fi
30297 else
30298    pkg_failed=untried
30299fi
30300
30301
30302
30303if test $pkg_failed = yes; then
30304   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30305$as_echo "no" >&6; }
30306
30307if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30308        _pkg_short_errors_supported=yes
30309else
30310        _pkg_short_errors_supported=no
30311fi
30312        if test $_pkg_short_errors_supported = yes; then
30313	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
30314        else
30315	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
30316        fi
30317	# Put the nasty error message in config.log where it belongs
30318	echo "$LUA_PKG_ERRORS" >&5
30319
30320	with_liblua="no (pkg-config cannot find liblua)"
30321
30322elif test $pkg_failed = untried; then
30323     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30324$as_echo "no" >&6; }
30325	with_liblua="no (pkg-config cannot find liblua)"
30326
30327else
30328	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
30329	LUA_LIBS=$pkg_cv_LUA_LIBS
30330        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30331$as_echo "yes" >&6; }
30332	with_liblua="yes"
30333fi
30334
30335
30336else
30337	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
30338	LUA_LIBS=$pkg_cv_LUA_LIBS
30339        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30340$as_echo "yes" >&6; }
30341	with_liblua="yes"
30342fi
30343
30344
30345else
30346	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
30347	LUA_LIBS=$pkg_cv_LUA_LIBS
30348        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30349$as_echo "yes" >&6; }
30350	with_liblua="yes"
30351fi
30352
30353
30354elif test $pkg_failed = untried; then
30355     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30356$as_echo "no" >&6; }
30357
30358
30359pkg_failed=no
30360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
30361$as_echo_n "checking for LUA... " >&6; }
30362
30363if test -n "$LUA_CFLAGS"; then
30364    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
30365 elif test -n "$PKG_CONFIG"; then
30366    if test -n "$PKG_CONFIG" && \
30367    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
30368  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
30369  ac_status=$?
30370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30371  test $ac_status = 0; }; then
30372  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
30373		      test "x$?" != "x0" && pkg_failed=yes
30374else
30375  pkg_failed=yes
30376fi
30377 else
30378    pkg_failed=untried
30379fi
30380if test -n "$LUA_LIBS"; then
30381    pkg_cv_LUA_LIBS="$LUA_LIBS"
30382 elif test -n "$PKG_CONFIG"; then
30383    if test -n "$PKG_CONFIG" && \
30384    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
30385  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
30386  ac_status=$?
30387  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30388  test $ac_status = 0; }; then
30389  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
30390		      test "x$?" != "x0" && pkg_failed=yes
30391else
30392  pkg_failed=yes
30393fi
30394 else
30395    pkg_failed=untried
30396fi
30397
30398
30399
30400if test $pkg_failed = yes; then
30401   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30402$as_echo "no" >&6; }
30403
30404if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30405        _pkg_short_errors_supported=yes
30406else
30407        _pkg_short_errors_supported=no
30408fi
30409        if test $_pkg_short_errors_supported = yes; then
30410	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
30411        else
30412	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
30413        fi
30414	# Put the nasty error message in config.log where it belongs
30415	echo "$LUA_PKG_ERRORS" >&5
30416
30417
30418
30419pkg_failed=no
30420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
30421$as_echo_n "checking for LUA... " >&6; }
30422
30423if test -n "$LUA_CFLAGS"; then
30424    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
30425 elif test -n "$PKG_CONFIG"; then
30426    if test -n "$PKG_CONFIG" && \
30427    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
30428  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
30429  ac_status=$?
30430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30431  test $ac_status = 0; }; then
30432  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
30433		      test "x$?" != "x0" && pkg_failed=yes
30434else
30435  pkg_failed=yes
30436fi
30437 else
30438    pkg_failed=untried
30439fi
30440if test -n "$LUA_LIBS"; then
30441    pkg_cv_LUA_LIBS="$LUA_LIBS"
30442 elif test -n "$PKG_CONFIG"; then
30443    if test -n "$PKG_CONFIG" && \
30444    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
30445  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
30446  ac_status=$?
30447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30448  test $ac_status = 0; }; then
30449  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
30450		      test "x$?" != "x0" && pkg_failed=yes
30451else
30452  pkg_failed=yes
30453fi
30454 else
30455    pkg_failed=untried
30456fi
30457
30458
30459
30460if test $pkg_failed = yes; then
30461   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30462$as_echo "no" >&6; }
30463
30464if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30465        _pkg_short_errors_supported=yes
30466else
30467        _pkg_short_errors_supported=no
30468fi
30469        if test $_pkg_short_errors_supported = yes; then
30470	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
30471        else
30472	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
30473        fi
30474	# Put the nasty error message in config.log where it belongs
30475	echo "$LUA_PKG_ERRORS" >&5
30476
30477
30478
30479pkg_failed=no
30480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
30481$as_echo_n "checking for LUA... " >&6; }
30482
30483if test -n "$LUA_CFLAGS"; then
30484    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
30485 elif test -n "$PKG_CONFIG"; then
30486    if test -n "$PKG_CONFIG" && \
30487    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
30488  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
30489  ac_status=$?
30490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30491  test $ac_status = 0; }; then
30492  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
30493		      test "x$?" != "x0" && pkg_failed=yes
30494else
30495  pkg_failed=yes
30496fi
30497 else
30498    pkg_failed=untried
30499fi
30500if test -n "$LUA_LIBS"; then
30501    pkg_cv_LUA_LIBS="$LUA_LIBS"
30502 elif test -n "$PKG_CONFIG"; then
30503    if test -n "$PKG_CONFIG" && \
30504    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
30505  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
30506  ac_status=$?
30507  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30508  test $ac_status = 0; }; then
30509  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
30510		      test "x$?" != "x0" && pkg_failed=yes
30511else
30512  pkg_failed=yes
30513fi
30514 else
30515    pkg_failed=untried
30516fi
30517
30518
30519
30520if test $pkg_failed = yes; then
30521   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30522$as_echo "no" >&6; }
30523
30524if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30525        _pkg_short_errors_supported=yes
30526else
30527        _pkg_short_errors_supported=no
30528fi
30529        if test $_pkg_short_errors_supported = yes; then
30530	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
30531        else
30532	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
30533        fi
30534	# Put the nasty error message in config.log where it belongs
30535	echo "$LUA_PKG_ERRORS" >&5
30536
30537	with_liblua="no (pkg-config cannot find liblua)"
30538
30539elif test $pkg_failed = untried; then
30540     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30541$as_echo "no" >&6; }
30542	with_liblua="no (pkg-config cannot find liblua)"
30543
30544else
30545	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
30546	LUA_LIBS=$pkg_cv_LUA_LIBS
30547        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30548$as_echo "yes" >&6; }
30549	with_liblua="yes"
30550fi
30551
30552
30553elif test $pkg_failed = untried; then
30554     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30555$as_echo "no" >&6; }
30556
30557
30558pkg_failed=no
30559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
30560$as_echo_n "checking for LUA... " >&6; }
30561
30562if test -n "$LUA_CFLAGS"; then
30563    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
30564 elif test -n "$PKG_CONFIG"; then
30565    if test -n "$PKG_CONFIG" && \
30566    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
30567  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
30568  ac_status=$?
30569  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30570  test $ac_status = 0; }; then
30571  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
30572		      test "x$?" != "x0" && pkg_failed=yes
30573else
30574  pkg_failed=yes
30575fi
30576 else
30577    pkg_failed=untried
30578fi
30579if test -n "$LUA_LIBS"; then
30580    pkg_cv_LUA_LIBS="$LUA_LIBS"
30581 elif test -n "$PKG_CONFIG"; then
30582    if test -n "$PKG_CONFIG" && \
30583    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
30584  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
30585  ac_status=$?
30586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30587  test $ac_status = 0; }; then
30588  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
30589		      test "x$?" != "x0" && pkg_failed=yes
30590else
30591  pkg_failed=yes
30592fi
30593 else
30594    pkg_failed=untried
30595fi
30596
30597
30598
30599if test $pkg_failed = yes; then
30600   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30601$as_echo "no" >&6; }
30602
30603if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30604        _pkg_short_errors_supported=yes
30605else
30606        _pkg_short_errors_supported=no
30607fi
30608        if test $_pkg_short_errors_supported = yes; then
30609	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
30610        else
30611	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
30612        fi
30613	# Put the nasty error message in config.log where it belongs
30614	echo "$LUA_PKG_ERRORS" >&5
30615
30616	with_liblua="no (pkg-config cannot find liblua)"
30617
30618elif test $pkg_failed = untried; then
30619     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30620$as_echo "no" >&6; }
30621	with_liblua="no (pkg-config cannot find liblua)"
30622
30623else
30624	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
30625	LUA_LIBS=$pkg_cv_LUA_LIBS
30626        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30627$as_echo "yes" >&6; }
30628	with_liblua="yes"
30629fi
30630
30631
30632else
30633	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
30634	LUA_LIBS=$pkg_cv_LUA_LIBS
30635        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30636$as_echo "yes" >&6; }
30637	with_liblua="yes"
30638fi
30639
30640
30641elif test $pkg_failed = untried; then
30642     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30643$as_echo "no" >&6; }
30644
30645
30646pkg_failed=no
30647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
30648$as_echo_n "checking for LUA... " >&6; }
30649
30650if test -n "$LUA_CFLAGS"; then
30651    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
30652 elif test -n "$PKG_CONFIG"; then
30653    if test -n "$PKG_CONFIG" && \
30654    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
30655  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
30656  ac_status=$?
30657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30658  test $ac_status = 0; }; then
30659  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
30660		      test "x$?" != "x0" && pkg_failed=yes
30661else
30662  pkg_failed=yes
30663fi
30664 else
30665    pkg_failed=untried
30666fi
30667if test -n "$LUA_LIBS"; then
30668    pkg_cv_LUA_LIBS="$LUA_LIBS"
30669 elif test -n "$PKG_CONFIG"; then
30670    if test -n "$PKG_CONFIG" && \
30671    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
30672  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
30673  ac_status=$?
30674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30675  test $ac_status = 0; }; then
30676  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
30677		      test "x$?" != "x0" && pkg_failed=yes
30678else
30679  pkg_failed=yes
30680fi
30681 else
30682    pkg_failed=untried
30683fi
30684
30685
30686
30687if test $pkg_failed = yes; then
30688   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30689$as_echo "no" >&6; }
30690
30691if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30692        _pkg_short_errors_supported=yes
30693else
30694        _pkg_short_errors_supported=no
30695fi
30696        if test $_pkg_short_errors_supported = yes; then
30697	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
30698        else
30699	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
30700        fi
30701	# Put the nasty error message in config.log where it belongs
30702	echo "$LUA_PKG_ERRORS" >&5
30703
30704
30705
30706pkg_failed=no
30707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
30708$as_echo_n "checking for LUA... " >&6; }
30709
30710if test -n "$LUA_CFLAGS"; then
30711    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
30712 elif test -n "$PKG_CONFIG"; then
30713    if test -n "$PKG_CONFIG" && \
30714    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
30715  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
30716  ac_status=$?
30717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30718  test $ac_status = 0; }; then
30719  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
30720		      test "x$?" != "x0" && pkg_failed=yes
30721else
30722  pkg_failed=yes
30723fi
30724 else
30725    pkg_failed=untried
30726fi
30727if test -n "$LUA_LIBS"; then
30728    pkg_cv_LUA_LIBS="$LUA_LIBS"
30729 elif test -n "$PKG_CONFIG"; then
30730    if test -n "$PKG_CONFIG" && \
30731    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
30732  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
30733  ac_status=$?
30734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30735  test $ac_status = 0; }; then
30736  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
30737		      test "x$?" != "x0" && pkg_failed=yes
30738else
30739  pkg_failed=yes
30740fi
30741 else
30742    pkg_failed=untried
30743fi
30744
30745
30746
30747if test $pkg_failed = yes; then
30748   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30749$as_echo "no" >&6; }
30750
30751if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30752        _pkg_short_errors_supported=yes
30753else
30754        _pkg_short_errors_supported=no
30755fi
30756        if test $_pkg_short_errors_supported = yes; then
30757	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
30758        else
30759	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
30760        fi
30761	# Put the nasty error message in config.log where it belongs
30762	echo "$LUA_PKG_ERRORS" >&5
30763
30764	with_liblua="no (pkg-config cannot find liblua)"
30765
30766elif test $pkg_failed = untried; then
30767     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30768$as_echo "no" >&6; }
30769	with_liblua="no (pkg-config cannot find liblua)"
30770
30771else
30772	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
30773	LUA_LIBS=$pkg_cv_LUA_LIBS
30774        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30775$as_echo "yes" >&6; }
30776	with_liblua="yes"
30777fi
30778
30779
30780elif test $pkg_failed = untried; then
30781     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30782$as_echo "no" >&6; }
30783
30784
30785pkg_failed=no
30786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
30787$as_echo_n "checking for LUA... " >&6; }
30788
30789if test -n "$LUA_CFLAGS"; then
30790    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
30791 elif test -n "$PKG_CONFIG"; then
30792    if test -n "$PKG_CONFIG" && \
30793    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
30794  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
30795  ac_status=$?
30796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30797  test $ac_status = 0; }; then
30798  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
30799		      test "x$?" != "x0" && pkg_failed=yes
30800else
30801  pkg_failed=yes
30802fi
30803 else
30804    pkg_failed=untried
30805fi
30806if test -n "$LUA_LIBS"; then
30807    pkg_cv_LUA_LIBS="$LUA_LIBS"
30808 elif test -n "$PKG_CONFIG"; then
30809    if test -n "$PKG_CONFIG" && \
30810    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
30811  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
30812  ac_status=$?
30813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30814  test $ac_status = 0; }; then
30815  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
30816		      test "x$?" != "x0" && pkg_failed=yes
30817else
30818  pkg_failed=yes
30819fi
30820 else
30821    pkg_failed=untried
30822fi
30823
30824
30825
30826if test $pkg_failed = yes; then
30827   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30828$as_echo "no" >&6; }
30829
30830if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30831        _pkg_short_errors_supported=yes
30832else
30833        _pkg_short_errors_supported=no
30834fi
30835        if test $_pkg_short_errors_supported = yes; then
30836	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
30837        else
30838	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
30839        fi
30840	# Put the nasty error message in config.log where it belongs
30841	echo "$LUA_PKG_ERRORS" >&5
30842
30843	with_liblua="no (pkg-config cannot find liblua)"
30844
30845elif test $pkg_failed = untried; then
30846     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30847$as_echo "no" >&6; }
30848	with_liblua="no (pkg-config cannot find liblua)"
30849
30850else
30851	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
30852	LUA_LIBS=$pkg_cv_LUA_LIBS
30853        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30854$as_echo "yes" >&6; }
30855	with_liblua="yes"
30856fi
30857
30858
30859else
30860	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
30861	LUA_LIBS=$pkg_cv_LUA_LIBS
30862        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30863$as_echo "yes" >&6; }
30864	with_liblua="yes"
30865fi
30866
30867
30868else
30869	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
30870	LUA_LIBS=$pkg_cv_LUA_LIBS
30871        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30872$as_echo "yes" >&6; }
30873	with_liblua="yes"
30874fi
30875
30876
30877else
30878	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
30879	LUA_LIBS=$pkg_cv_LUA_LIBS
30880        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30881$as_echo "yes" >&6; }
30882	with_liblua="yes"
30883fi
30884
30885
30886else
30887	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
30888	LUA_LIBS=$pkg_cv_LUA_LIBS
30889        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30890$as_echo "yes" >&6; }
30891	with_liblua="yes"
30892fi
30893
30894
30895else
30896	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
30897	LUA_LIBS=$pkg_cv_LUA_LIBS
30898        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30899$as_echo "yes" >&6; }
30900	with_liblua="yes"
30901fi
30902
30903
30904elif test $pkg_failed = untried; then
30905     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30906$as_echo "no" >&6; }
30907
30908
30909pkg_failed=no
30910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
30911$as_echo_n "checking for LUA... " >&6; }
30912
30913if test -n "$LUA_CFLAGS"; then
30914    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
30915 elif test -n "$PKG_CONFIG"; then
30916    if test -n "$PKG_CONFIG" && \
30917    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
30918  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
30919  ac_status=$?
30920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30921  test $ac_status = 0; }; then
30922  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.2" 2>/dev/null`
30923		      test "x$?" != "x0" && pkg_failed=yes
30924else
30925  pkg_failed=yes
30926fi
30927 else
30928    pkg_failed=untried
30929fi
30930if test -n "$LUA_LIBS"; then
30931    pkg_cv_LUA_LIBS="$LUA_LIBS"
30932 elif test -n "$PKG_CONFIG"; then
30933    if test -n "$PKG_CONFIG" && \
30934    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
30935  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
30936  ac_status=$?
30937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30938  test $ac_status = 0; }; then
30939  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.2" 2>/dev/null`
30940		      test "x$?" != "x0" && pkg_failed=yes
30941else
30942  pkg_failed=yes
30943fi
30944 else
30945    pkg_failed=untried
30946fi
30947
30948
30949
30950if test $pkg_failed = yes; then
30951   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30952$as_echo "no" >&6; }
30953
30954if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30955        _pkg_short_errors_supported=yes
30956else
30957        _pkg_short_errors_supported=no
30958fi
30959        if test $_pkg_short_errors_supported = yes; then
30960	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.2" 2>&1`
30961        else
30962	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.2" 2>&1`
30963        fi
30964	# Put the nasty error message in config.log where it belongs
30965	echo "$LUA_PKG_ERRORS" >&5
30966
30967
30968
30969pkg_failed=no
30970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
30971$as_echo_n "checking for LUA... " >&6; }
30972
30973if test -n "$LUA_CFLAGS"; then
30974    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
30975 elif test -n "$PKG_CONFIG"; then
30976    if test -n "$PKG_CONFIG" && \
30977    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
30978  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
30979  ac_status=$?
30980  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30981  test $ac_status = 0; }; then
30982  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
30983		      test "x$?" != "x0" && pkg_failed=yes
30984else
30985  pkg_failed=yes
30986fi
30987 else
30988    pkg_failed=untried
30989fi
30990if test -n "$LUA_LIBS"; then
30991    pkg_cv_LUA_LIBS="$LUA_LIBS"
30992 elif test -n "$PKG_CONFIG"; then
30993    if test -n "$PKG_CONFIG" && \
30994    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
30995  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
30996  ac_status=$?
30997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30998  test $ac_status = 0; }; then
30999  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
31000		      test "x$?" != "x0" && pkg_failed=yes
31001else
31002  pkg_failed=yes
31003fi
31004 else
31005    pkg_failed=untried
31006fi
31007
31008
31009
31010if test $pkg_failed = yes; then
31011   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31012$as_echo "no" >&6; }
31013
31014if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31015        _pkg_short_errors_supported=yes
31016else
31017        _pkg_short_errors_supported=no
31018fi
31019        if test $_pkg_short_errors_supported = yes; then
31020	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
31021        else
31022	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
31023        fi
31024	# Put the nasty error message in config.log where it belongs
31025	echo "$LUA_PKG_ERRORS" >&5
31026
31027
31028
31029pkg_failed=no
31030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
31031$as_echo_n "checking for LUA... " >&6; }
31032
31033if test -n "$LUA_CFLAGS"; then
31034    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
31035 elif test -n "$PKG_CONFIG"; then
31036    if test -n "$PKG_CONFIG" && \
31037    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
31038  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
31039  ac_status=$?
31040  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31041  test $ac_status = 0; }; then
31042  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
31043		      test "x$?" != "x0" && pkg_failed=yes
31044else
31045  pkg_failed=yes
31046fi
31047 else
31048    pkg_failed=untried
31049fi
31050if test -n "$LUA_LIBS"; then
31051    pkg_cv_LUA_LIBS="$LUA_LIBS"
31052 elif test -n "$PKG_CONFIG"; then
31053    if test -n "$PKG_CONFIG" && \
31054    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
31055  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
31056  ac_status=$?
31057  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31058  test $ac_status = 0; }; then
31059  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
31060		      test "x$?" != "x0" && pkg_failed=yes
31061else
31062  pkg_failed=yes
31063fi
31064 else
31065    pkg_failed=untried
31066fi
31067
31068
31069
31070if test $pkg_failed = yes; then
31071   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31072$as_echo "no" >&6; }
31073
31074if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31075        _pkg_short_errors_supported=yes
31076else
31077        _pkg_short_errors_supported=no
31078fi
31079        if test $_pkg_short_errors_supported = yes; then
31080	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
31081        else
31082	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
31083        fi
31084	# Put the nasty error message in config.log where it belongs
31085	echo "$LUA_PKG_ERRORS" >&5
31086
31087
31088
31089pkg_failed=no
31090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
31091$as_echo_n "checking for LUA... " >&6; }
31092
31093if test -n "$LUA_CFLAGS"; then
31094    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
31095 elif test -n "$PKG_CONFIG"; then
31096    if test -n "$PKG_CONFIG" && \
31097    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
31098  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
31099  ac_status=$?
31100  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31101  test $ac_status = 0; }; then
31102  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
31103		      test "x$?" != "x0" && pkg_failed=yes
31104else
31105  pkg_failed=yes
31106fi
31107 else
31108    pkg_failed=untried
31109fi
31110if test -n "$LUA_LIBS"; then
31111    pkg_cv_LUA_LIBS="$LUA_LIBS"
31112 elif test -n "$PKG_CONFIG"; then
31113    if test -n "$PKG_CONFIG" && \
31114    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
31115  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
31116  ac_status=$?
31117  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31118  test $ac_status = 0; }; then
31119  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
31120		      test "x$?" != "x0" && pkg_failed=yes
31121else
31122  pkg_failed=yes
31123fi
31124 else
31125    pkg_failed=untried
31126fi
31127
31128
31129
31130if test $pkg_failed = yes; then
31131   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31132$as_echo "no" >&6; }
31133
31134if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31135        _pkg_short_errors_supported=yes
31136else
31137        _pkg_short_errors_supported=no
31138fi
31139        if test $_pkg_short_errors_supported = yes; then
31140	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
31141        else
31142	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
31143        fi
31144	# Put the nasty error message in config.log where it belongs
31145	echo "$LUA_PKG_ERRORS" >&5
31146
31147
31148
31149pkg_failed=no
31150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
31151$as_echo_n "checking for LUA... " >&6; }
31152
31153if test -n "$LUA_CFLAGS"; then
31154    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
31155 elif test -n "$PKG_CONFIG"; then
31156    if test -n "$PKG_CONFIG" && \
31157    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
31158  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
31159  ac_status=$?
31160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31161  test $ac_status = 0; }; then
31162  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
31163		      test "x$?" != "x0" && pkg_failed=yes
31164else
31165  pkg_failed=yes
31166fi
31167 else
31168    pkg_failed=untried
31169fi
31170if test -n "$LUA_LIBS"; then
31171    pkg_cv_LUA_LIBS="$LUA_LIBS"
31172 elif test -n "$PKG_CONFIG"; then
31173    if test -n "$PKG_CONFIG" && \
31174    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
31175  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
31176  ac_status=$?
31177  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31178  test $ac_status = 0; }; then
31179  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
31180		      test "x$?" != "x0" && pkg_failed=yes
31181else
31182  pkg_failed=yes
31183fi
31184 else
31185    pkg_failed=untried
31186fi
31187
31188
31189
31190if test $pkg_failed = yes; then
31191   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31192$as_echo "no" >&6; }
31193
31194if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31195        _pkg_short_errors_supported=yes
31196else
31197        _pkg_short_errors_supported=no
31198fi
31199        if test $_pkg_short_errors_supported = yes; then
31200	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
31201        else
31202	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
31203        fi
31204	# Put the nasty error message in config.log where it belongs
31205	echo "$LUA_PKG_ERRORS" >&5
31206
31207
31208
31209pkg_failed=no
31210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
31211$as_echo_n "checking for LUA... " >&6; }
31212
31213if test -n "$LUA_CFLAGS"; then
31214    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
31215 elif test -n "$PKG_CONFIG"; then
31216    if test -n "$PKG_CONFIG" && \
31217    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
31218  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
31219  ac_status=$?
31220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31221  test $ac_status = 0; }; then
31222  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
31223		      test "x$?" != "x0" && pkg_failed=yes
31224else
31225  pkg_failed=yes
31226fi
31227 else
31228    pkg_failed=untried
31229fi
31230if test -n "$LUA_LIBS"; then
31231    pkg_cv_LUA_LIBS="$LUA_LIBS"
31232 elif test -n "$PKG_CONFIG"; then
31233    if test -n "$PKG_CONFIG" && \
31234    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
31235  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
31236  ac_status=$?
31237  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31238  test $ac_status = 0; }; then
31239  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
31240		      test "x$?" != "x0" && pkg_failed=yes
31241else
31242  pkg_failed=yes
31243fi
31244 else
31245    pkg_failed=untried
31246fi
31247
31248
31249
31250if test $pkg_failed = yes; then
31251   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31252$as_echo "no" >&6; }
31253
31254if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31255        _pkg_short_errors_supported=yes
31256else
31257        _pkg_short_errors_supported=no
31258fi
31259        if test $_pkg_short_errors_supported = yes; then
31260	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
31261        else
31262	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
31263        fi
31264	# Put the nasty error message in config.log where it belongs
31265	echo "$LUA_PKG_ERRORS" >&5
31266
31267	with_liblua="no (pkg-config cannot find liblua)"
31268
31269elif test $pkg_failed = untried; then
31270     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31271$as_echo "no" >&6; }
31272	with_liblua="no (pkg-config cannot find liblua)"
31273
31274else
31275	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
31276	LUA_LIBS=$pkg_cv_LUA_LIBS
31277        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31278$as_echo "yes" >&6; }
31279	with_liblua="yes"
31280fi
31281
31282
31283elif test $pkg_failed = untried; then
31284     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31285$as_echo "no" >&6; }
31286
31287
31288pkg_failed=no
31289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
31290$as_echo_n "checking for LUA... " >&6; }
31291
31292if test -n "$LUA_CFLAGS"; then
31293    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
31294 elif test -n "$PKG_CONFIG"; then
31295    if test -n "$PKG_CONFIG" && \
31296    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
31297  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
31298  ac_status=$?
31299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31300  test $ac_status = 0; }; then
31301  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
31302		      test "x$?" != "x0" && pkg_failed=yes
31303else
31304  pkg_failed=yes
31305fi
31306 else
31307    pkg_failed=untried
31308fi
31309if test -n "$LUA_LIBS"; then
31310    pkg_cv_LUA_LIBS="$LUA_LIBS"
31311 elif test -n "$PKG_CONFIG"; then
31312    if test -n "$PKG_CONFIG" && \
31313    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
31314  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
31315  ac_status=$?
31316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31317  test $ac_status = 0; }; then
31318  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
31319		      test "x$?" != "x0" && pkg_failed=yes
31320else
31321  pkg_failed=yes
31322fi
31323 else
31324    pkg_failed=untried
31325fi
31326
31327
31328
31329if test $pkg_failed = yes; then
31330   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31331$as_echo "no" >&6; }
31332
31333if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31334        _pkg_short_errors_supported=yes
31335else
31336        _pkg_short_errors_supported=no
31337fi
31338        if test $_pkg_short_errors_supported = yes; then
31339	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
31340        else
31341	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
31342        fi
31343	# Put the nasty error message in config.log where it belongs
31344	echo "$LUA_PKG_ERRORS" >&5
31345
31346	with_liblua="no (pkg-config cannot find liblua)"
31347
31348elif test $pkg_failed = untried; then
31349     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31350$as_echo "no" >&6; }
31351	with_liblua="no (pkg-config cannot find liblua)"
31352
31353else
31354	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
31355	LUA_LIBS=$pkg_cv_LUA_LIBS
31356        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31357$as_echo "yes" >&6; }
31358	with_liblua="yes"
31359fi
31360
31361
31362else
31363	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
31364	LUA_LIBS=$pkg_cv_LUA_LIBS
31365        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31366$as_echo "yes" >&6; }
31367	with_liblua="yes"
31368fi
31369
31370
31371elif test $pkg_failed = untried; then
31372     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31373$as_echo "no" >&6; }
31374
31375
31376pkg_failed=no
31377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
31378$as_echo_n "checking for LUA... " >&6; }
31379
31380if test -n "$LUA_CFLAGS"; then
31381    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
31382 elif test -n "$PKG_CONFIG"; then
31383    if test -n "$PKG_CONFIG" && \
31384    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
31385  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
31386  ac_status=$?
31387  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31388  test $ac_status = 0; }; then
31389  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
31390		      test "x$?" != "x0" && pkg_failed=yes
31391else
31392  pkg_failed=yes
31393fi
31394 else
31395    pkg_failed=untried
31396fi
31397if test -n "$LUA_LIBS"; then
31398    pkg_cv_LUA_LIBS="$LUA_LIBS"
31399 elif test -n "$PKG_CONFIG"; then
31400    if test -n "$PKG_CONFIG" && \
31401    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
31402  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
31403  ac_status=$?
31404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31405  test $ac_status = 0; }; then
31406  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
31407		      test "x$?" != "x0" && pkg_failed=yes
31408else
31409  pkg_failed=yes
31410fi
31411 else
31412    pkg_failed=untried
31413fi
31414
31415
31416
31417if test $pkg_failed = yes; then
31418   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31419$as_echo "no" >&6; }
31420
31421if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31422        _pkg_short_errors_supported=yes
31423else
31424        _pkg_short_errors_supported=no
31425fi
31426        if test $_pkg_short_errors_supported = yes; then
31427	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
31428        else
31429	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
31430        fi
31431	# Put the nasty error message in config.log where it belongs
31432	echo "$LUA_PKG_ERRORS" >&5
31433
31434
31435
31436pkg_failed=no
31437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
31438$as_echo_n "checking for LUA... " >&6; }
31439
31440if test -n "$LUA_CFLAGS"; then
31441    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
31442 elif test -n "$PKG_CONFIG"; then
31443    if test -n "$PKG_CONFIG" && \
31444    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
31445  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
31446  ac_status=$?
31447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31448  test $ac_status = 0; }; then
31449  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
31450		      test "x$?" != "x0" && pkg_failed=yes
31451else
31452  pkg_failed=yes
31453fi
31454 else
31455    pkg_failed=untried
31456fi
31457if test -n "$LUA_LIBS"; then
31458    pkg_cv_LUA_LIBS="$LUA_LIBS"
31459 elif test -n "$PKG_CONFIG"; then
31460    if test -n "$PKG_CONFIG" && \
31461    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
31462  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
31463  ac_status=$?
31464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31465  test $ac_status = 0; }; then
31466  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
31467		      test "x$?" != "x0" && pkg_failed=yes
31468else
31469  pkg_failed=yes
31470fi
31471 else
31472    pkg_failed=untried
31473fi
31474
31475
31476
31477if test $pkg_failed = yes; then
31478   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31479$as_echo "no" >&6; }
31480
31481if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31482        _pkg_short_errors_supported=yes
31483else
31484        _pkg_short_errors_supported=no
31485fi
31486        if test $_pkg_short_errors_supported = yes; then
31487	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
31488        else
31489	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
31490        fi
31491	# Put the nasty error message in config.log where it belongs
31492	echo "$LUA_PKG_ERRORS" >&5
31493
31494	with_liblua="no (pkg-config cannot find liblua)"
31495
31496elif test $pkg_failed = untried; then
31497     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31498$as_echo "no" >&6; }
31499	with_liblua="no (pkg-config cannot find liblua)"
31500
31501else
31502	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
31503	LUA_LIBS=$pkg_cv_LUA_LIBS
31504        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31505$as_echo "yes" >&6; }
31506	with_liblua="yes"
31507fi
31508
31509
31510elif test $pkg_failed = untried; then
31511     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31512$as_echo "no" >&6; }
31513
31514
31515pkg_failed=no
31516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
31517$as_echo_n "checking for LUA... " >&6; }
31518
31519if test -n "$LUA_CFLAGS"; then
31520    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
31521 elif test -n "$PKG_CONFIG"; then
31522    if test -n "$PKG_CONFIG" && \
31523    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
31524  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
31525  ac_status=$?
31526  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31527  test $ac_status = 0; }; then
31528  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
31529		      test "x$?" != "x0" && pkg_failed=yes
31530else
31531  pkg_failed=yes
31532fi
31533 else
31534    pkg_failed=untried
31535fi
31536if test -n "$LUA_LIBS"; then
31537    pkg_cv_LUA_LIBS="$LUA_LIBS"
31538 elif test -n "$PKG_CONFIG"; then
31539    if test -n "$PKG_CONFIG" && \
31540    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
31541  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
31542  ac_status=$?
31543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31544  test $ac_status = 0; }; then
31545  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
31546		      test "x$?" != "x0" && pkg_failed=yes
31547else
31548  pkg_failed=yes
31549fi
31550 else
31551    pkg_failed=untried
31552fi
31553
31554
31555
31556if test $pkg_failed = yes; then
31557   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31558$as_echo "no" >&6; }
31559
31560if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31561        _pkg_short_errors_supported=yes
31562else
31563        _pkg_short_errors_supported=no
31564fi
31565        if test $_pkg_short_errors_supported = yes; then
31566	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
31567        else
31568	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
31569        fi
31570	# Put the nasty error message in config.log where it belongs
31571	echo "$LUA_PKG_ERRORS" >&5
31572
31573	with_liblua="no (pkg-config cannot find liblua)"
31574
31575elif test $pkg_failed = untried; then
31576     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31577$as_echo "no" >&6; }
31578	with_liblua="no (pkg-config cannot find liblua)"
31579
31580else
31581	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
31582	LUA_LIBS=$pkg_cv_LUA_LIBS
31583        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31584$as_echo "yes" >&6; }
31585	with_liblua="yes"
31586fi
31587
31588
31589else
31590	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
31591	LUA_LIBS=$pkg_cv_LUA_LIBS
31592        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31593$as_echo "yes" >&6; }
31594	with_liblua="yes"
31595fi
31596
31597
31598else
31599	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
31600	LUA_LIBS=$pkg_cv_LUA_LIBS
31601        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31602$as_echo "yes" >&6; }
31603	with_liblua="yes"
31604fi
31605
31606
31607elif test $pkg_failed = untried; then
31608     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31609$as_echo "no" >&6; }
31610
31611
31612pkg_failed=no
31613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
31614$as_echo_n "checking for LUA... " >&6; }
31615
31616if test -n "$LUA_CFLAGS"; then
31617    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
31618 elif test -n "$PKG_CONFIG"; then
31619    if test -n "$PKG_CONFIG" && \
31620    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
31621  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
31622  ac_status=$?
31623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31624  test $ac_status = 0; }; then
31625  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
31626		      test "x$?" != "x0" && pkg_failed=yes
31627else
31628  pkg_failed=yes
31629fi
31630 else
31631    pkg_failed=untried
31632fi
31633if test -n "$LUA_LIBS"; then
31634    pkg_cv_LUA_LIBS="$LUA_LIBS"
31635 elif test -n "$PKG_CONFIG"; then
31636    if test -n "$PKG_CONFIG" && \
31637    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
31638  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
31639  ac_status=$?
31640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31641  test $ac_status = 0; }; then
31642  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
31643		      test "x$?" != "x0" && pkg_failed=yes
31644else
31645  pkg_failed=yes
31646fi
31647 else
31648    pkg_failed=untried
31649fi
31650
31651
31652
31653if test $pkg_failed = yes; then
31654   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31655$as_echo "no" >&6; }
31656
31657if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31658        _pkg_short_errors_supported=yes
31659else
31660        _pkg_short_errors_supported=no
31661fi
31662        if test $_pkg_short_errors_supported = yes; then
31663	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
31664        else
31665	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
31666        fi
31667	# Put the nasty error message in config.log where it belongs
31668	echo "$LUA_PKG_ERRORS" >&5
31669
31670
31671
31672pkg_failed=no
31673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
31674$as_echo_n "checking for LUA... " >&6; }
31675
31676if test -n "$LUA_CFLAGS"; then
31677    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
31678 elif test -n "$PKG_CONFIG"; then
31679    if test -n "$PKG_CONFIG" && \
31680    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
31681  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
31682  ac_status=$?
31683  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31684  test $ac_status = 0; }; then
31685  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
31686		      test "x$?" != "x0" && pkg_failed=yes
31687else
31688  pkg_failed=yes
31689fi
31690 else
31691    pkg_failed=untried
31692fi
31693if test -n "$LUA_LIBS"; then
31694    pkg_cv_LUA_LIBS="$LUA_LIBS"
31695 elif test -n "$PKG_CONFIG"; then
31696    if test -n "$PKG_CONFIG" && \
31697    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
31698  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
31699  ac_status=$?
31700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31701  test $ac_status = 0; }; then
31702  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
31703		      test "x$?" != "x0" && pkg_failed=yes
31704else
31705  pkg_failed=yes
31706fi
31707 else
31708    pkg_failed=untried
31709fi
31710
31711
31712
31713if test $pkg_failed = yes; then
31714   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31715$as_echo "no" >&6; }
31716
31717if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31718        _pkg_short_errors_supported=yes
31719else
31720        _pkg_short_errors_supported=no
31721fi
31722        if test $_pkg_short_errors_supported = yes; then
31723	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
31724        else
31725	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
31726        fi
31727	# Put the nasty error message in config.log where it belongs
31728	echo "$LUA_PKG_ERRORS" >&5
31729
31730
31731
31732pkg_failed=no
31733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
31734$as_echo_n "checking for LUA... " >&6; }
31735
31736if test -n "$LUA_CFLAGS"; then
31737    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
31738 elif test -n "$PKG_CONFIG"; then
31739    if test -n "$PKG_CONFIG" && \
31740    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
31741  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
31742  ac_status=$?
31743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31744  test $ac_status = 0; }; then
31745  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
31746		      test "x$?" != "x0" && pkg_failed=yes
31747else
31748  pkg_failed=yes
31749fi
31750 else
31751    pkg_failed=untried
31752fi
31753if test -n "$LUA_LIBS"; then
31754    pkg_cv_LUA_LIBS="$LUA_LIBS"
31755 elif test -n "$PKG_CONFIG"; then
31756    if test -n "$PKG_CONFIG" && \
31757    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
31758  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
31759  ac_status=$?
31760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31761  test $ac_status = 0; }; then
31762  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
31763		      test "x$?" != "x0" && pkg_failed=yes
31764else
31765  pkg_failed=yes
31766fi
31767 else
31768    pkg_failed=untried
31769fi
31770
31771
31772
31773if test $pkg_failed = yes; then
31774   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31775$as_echo "no" >&6; }
31776
31777if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31778        _pkg_short_errors_supported=yes
31779else
31780        _pkg_short_errors_supported=no
31781fi
31782        if test $_pkg_short_errors_supported = yes; then
31783	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
31784        else
31785	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
31786        fi
31787	# Put the nasty error message in config.log where it belongs
31788	echo "$LUA_PKG_ERRORS" >&5
31789
31790	with_liblua="no (pkg-config cannot find liblua)"
31791
31792elif test $pkg_failed = untried; then
31793     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31794$as_echo "no" >&6; }
31795	with_liblua="no (pkg-config cannot find liblua)"
31796
31797else
31798	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
31799	LUA_LIBS=$pkg_cv_LUA_LIBS
31800        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31801$as_echo "yes" >&6; }
31802	with_liblua="yes"
31803fi
31804
31805
31806elif test $pkg_failed = untried; then
31807     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31808$as_echo "no" >&6; }
31809
31810
31811pkg_failed=no
31812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
31813$as_echo_n "checking for LUA... " >&6; }
31814
31815if test -n "$LUA_CFLAGS"; then
31816    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
31817 elif test -n "$PKG_CONFIG"; then
31818    if test -n "$PKG_CONFIG" && \
31819    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
31820  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
31821  ac_status=$?
31822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31823  test $ac_status = 0; }; then
31824  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
31825		      test "x$?" != "x0" && pkg_failed=yes
31826else
31827  pkg_failed=yes
31828fi
31829 else
31830    pkg_failed=untried
31831fi
31832if test -n "$LUA_LIBS"; then
31833    pkg_cv_LUA_LIBS="$LUA_LIBS"
31834 elif test -n "$PKG_CONFIG"; then
31835    if test -n "$PKG_CONFIG" && \
31836    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
31837  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
31838  ac_status=$?
31839  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31840  test $ac_status = 0; }; then
31841  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
31842		      test "x$?" != "x0" && pkg_failed=yes
31843else
31844  pkg_failed=yes
31845fi
31846 else
31847    pkg_failed=untried
31848fi
31849
31850
31851
31852if test $pkg_failed = yes; then
31853   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31854$as_echo "no" >&6; }
31855
31856if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31857        _pkg_short_errors_supported=yes
31858else
31859        _pkg_short_errors_supported=no
31860fi
31861        if test $_pkg_short_errors_supported = yes; then
31862	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
31863        else
31864	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
31865        fi
31866	# Put the nasty error message in config.log where it belongs
31867	echo "$LUA_PKG_ERRORS" >&5
31868
31869	with_liblua="no (pkg-config cannot find liblua)"
31870
31871elif test $pkg_failed = untried; then
31872     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31873$as_echo "no" >&6; }
31874	with_liblua="no (pkg-config cannot find liblua)"
31875
31876else
31877	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
31878	LUA_LIBS=$pkg_cv_LUA_LIBS
31879        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31880$as_echo "yes" >&6; }
31881	with_liblua="yes"
31882fi
31883
31884
31885else
31886	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
31887	LUA_LIBS=$pkg_cv_LUA_LIBS
31888        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31889$as_echo "yes" >&6; }
31890	with_liblua="yes"
31891fi
31892
31893
31894elif test $pkg_failed = untried; then
31895     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31896$as_echo "no" >&6; }
31897
31898
31899pkg_failed=no
31900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
31901$as_echo_n "checking for LUA... " >&6; }
31902
31903if test -n "$LUA_CFLAGS"; then
31904    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
31905 elif test -n "$PKG_CONFIG"; then
31906    if test -n "$PKG_CONFIG" && \
31907    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
31908  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
31909  ac_status=$?
31910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31911  test $ac_status = 0; }; then
31912  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
31913		      test "x$?" != "x0" && pkg_failed=yes
31914else
31915  pkg_failed=yes
31916fi
31917 else
31918    pkg_failed=untried
31919fi
31920if test -n "$LUA_LIBS"; then
31921    pkg_cv_LUA_LIBS="$LUA_LIBS"
31922 elif test -n "$PKG_CONFIG"; then
31923    if test -n "$PKG_CONFIG" && \
31924    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
31925  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
31926  ac_status=$?
31927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31928  test $ac_status = 0; }; then
31929  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
31930		      test "x$?" != "x0" && pkg_failed=yes
31931else
31932  pkg_failed=yes
31933fi
31934 else
31935    pkg_failed=untried
31936fi
31937
31938
31939
31940if test $pkg_failed = yes; then
31941   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31942$as_echo "no" >&6; }
31943
31944if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31945        _pkg_short_errors_supported=yes
31946else
31947        _pkg_short_errors_supported=no
31948fi
31949        if test $_pkg_short_errors_supported = yes; then
31950	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
31951        else
31952	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
31953        fi
31954	# Put the nasty error message in config.log where it belongs
31955	echo "$LUA_PKG_ERRORS" >&5
31956
31957
31958
31959pkg_failed=no
31960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
31961$as_echo_n "checking for LUA... " >&6; }
31962
31963if test -n "$LUA_CFLAGS"; then
31964    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
31965 elif test -n "$PKG_CONFIG"; then
31966    if test -n "$PKG_CONFIG" && \
31967    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
31968  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
31969  ac_status=$?
31970  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31971  test $ac_status = 0; }; then
31972  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
31973		      test "x$?" != "x0" && pkg_failed=yes
31974else
31975  pkg_failed=yes
31976fi
31977 else
31978    pkg_failed=untried
31979fi
31980if test -n "$LUA_LIBS"; then
31981    pkg_cv_LUA_LIBS="$LUA_LIBS"
31982 elif test -n "$PKG_CONFIG"; then
31983    if test -n "$PKG_CONFIG" && \
31984    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
31985  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
31986  ac_status=$?
31987  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31988  test $ac_status = 0; }; then
31989  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
31990		      test "x$?" != "x0" && pkg_failed=yes
31991else
31992  pkg_failed=yes
31993fi
31994 else
31995    pkg_failed=untried
31996fi
31997
31998
31999
32000if test $pkg_failed = yes; then
32001   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32002$as_echo "no" >&6; }
32003
32004if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32005        _pkg_short_errors_supported=yes
32006else
32007        _pkg_short_errors_supported=no
32008fi
32009        if test $_pkg_short_errors_supported = yes; then
32010	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
32011        else
32012	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
32013        fi
32014	# Put the nasty error message in config.log where it belongs
32015	echo "$LUA_PKG_ERRORS" >&5
32016
32017	with_liblua="no (pkg-config cannot find liblua)"
32018
32019elif test $pkg_failed = untried; then
32020     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32021$as_echo "no" >&6; }
32022	with_liblua="no (pkg-config cannot find liblua)"
32023
32024else
32025	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
32026	LUA_LIBS=$pkg_cv_LUA_LIBS
32027        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32028$as_echo "yes" >&6; }
32029	with_liblua="yes"
32030fi
32031
32032
32033elif test $pkg_failed = untried; then
32034     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32035$as_echo "no" >&6; }
32036
32037
32038pkg_failed=no
32039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
32040$as_echo_n "checking for LUA... " >&6; }
32041
32042if test -n "$LUA_CFLAGS"; then
32043    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
32044 elif test -n "$PKG_CONFIG"; then
32045    if test -n "$PKG_CONFIG" && \
32046    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
32047  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
32048  ac_status=$?
32049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32050  test $ac_status = 0; }; then
32051  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
32052		      test "x$?" != "x0" && pkg_failed=yes
32053else
32054  pkg_failed=yes
32055fi
32056 else
32057    pkg_failed=untried
32058fi
32059if test -n "$LUA_LIBS"; then
32060    pkg_cv_LUA_LIBS="$LUA_LIBS"
32061 elif test -n "$PKG_CONFIG"; then
32062    if test -n "$PKG_CONFIG" && \
32063    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
32064  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
32065  ac_status=$?
32066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32067  test $ac_status = 0; }; then
32068  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
32069		      test "x$?" != "x0" && pkg_failed=yes
32070else
32071  pkg_failed=yes
32072fi
32073 else
32074    pkg_failed=untried
32075fi
32076
32077
32078
32079if test $pkg_failed = yes; then
32080   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32081$as_echo "no" >&6; }
32082
32083if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32084        _pkg_short_errors_supported=yes
32085else
32086        _pkg_short_errors_supported=no
32087fi
32088        if test $_pkg_short_errors_supported = yes; then
32089	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
32090        else
32091	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
32092        fi
32093	# Put the nasty error message in config.log where it belongs
32094	echo "$LUA_PKG_ERRORS" >&5
32095
32096	with_liblua="no (pkg-config cannot find liblua)"
32097
32098elif test $pkg_failed = untried; then
32099     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32100$as_echo "no" >&6; }
32101	with_liblua="no (pkg-config cannot find liblua)"
32102
32103else
32104	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
32105	LUA_LIBS=$pkg_cv_LUA_LIBS
32106        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32107$as_echo "yes" >&6; }
32108	with_liblua="yes"
32109fi
32110
32111
32112else
32113	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
32114	LUA_LIBS=$pkg_cv_LUA_LIBS
32115        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32116$as_echo "yes" >&6; }
32117	with_liblua="yes"
32118fi
32119
32120
32121else
32122	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
32123	LUA_LIBS=$pkg_cv_LUA_LIBS
32124        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32125$as_echo "yes" >&6; }
32126	with_liblua="yes"
32127fi
32128
32129
32130else
32131	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
32132	LUA_LIBS=$pkg_cv_LUA_LIBS
32133        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32134$as_echo "yes" >&6; }
32135	with_liblua="yes"
32136fi
32137
32138
32139elif test $pkg_failed = untried; then
32140     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32141$as_echo "no" >&6; }
32142
32143
32144pkg_failed=no
32145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
32146$as_echo_n "checking for LUA... " >&6; }
32147
32148if test -n "$LUA_CFLAGS"; then
32149    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
32150 elif test -n "$PKG_CONFIG"; then
32151    if test -n "$PKG_CONFIG" && \
32152    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
32153  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
32154  ac_status=$?
32155  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32156  test $ac_status = 0; }; then
32157  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
32158		      test "x$?" != "x0" && pkg_failed=yes
32159else
32160  pkg_failed=yes
32161fi
32162 else
32163    pkg_failed=untried
32164fi
32165if test -n "$LUA_LIBS"; then
32166    pkg_cv_LUA_LIBS="$LUA_LIBS"
32167 elif test -n "$PKG_CONFIG"; then
32168    if test -n "$PKG_CONFIG" && \
32169    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
32170  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
32171  ac_status=$?
32172  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32173  test $ac_status = 0; }; then
32174  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
32175		      test "x$?" != "x0" && pkg_failed=yes
32176else
32177  pkg_failed=yes
32178fi
32179 else
32180    pkg_failed=untried
32181fi
32182
32183
32184
32185if test $pkg_failed = yes; then
32186   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32187$as_echo "no" >&6; }
32188
32189if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32190        _pkg_short_errors_supported=yes
32191else
32192        _pkg_short_errors_supported=no
32193fi
32194        if test $_pkg_short_errors_supported = yes; then
32195	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
32196        else
32197	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
32198        fi
32199	# Put the nasty error message in config.log where it belongs
32200	echo "$LUA_PKG_ERRORS" >&5
32201
32202
32203
32204pkg_failed=no
32205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
32206$as_echo_n "checking for LUA... " >&6; }
32207
32208if test -n "$LUA_CFLAGS"; then
32209    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
32210 elif test -n "$PKG_CONFIG"; then
32211    if test -n "$PKG_CONFIG" && \
32212    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
32213  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
32214  ac_status=$?
32215  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32216  test $ac_status = 0; }; then
32217  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
32218		      test "x$?" != "x0" && pkg_failed=yes
32219else
32220  pkg_failed=yes
32221fi
32222 else
32223    pkg_failed=untried
32224fi
32225if test -n "$LUA_LIBS"; then
32226    pkg_cv_LUA_LIBS="$LUA_LIBS"
32227 elif test -n "$PKG_CONFIG"; then
32228    if test -n "$PKG_CONFIG" && \
32229    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
32230  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
32231  ac_status=$?
32232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32233  test $ac_status = 0; }; then
32234  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
32235		      test "x$?" != "x0" && pkg_failed=yes
32236else
32237  pkg_failed=yes
32238fi
32239 else
32240    pkg_failed=untried
32241fi
32242
32243
32244
32245if test $pkg_failed = yes; then
32246   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32247$as_echo "no" >&6; }
32248
32249if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32250        _pkg_short_errors_supported=yes
32251else
32252        _pkg_short_errors_supported=no
32253fi
32254        if test $_pkg_short_errors_supported = yes; then
32255	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
32256        else
32257	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
32258        fi
32259	# Put the nasty error message in config.log where it belongs
32260	echo "$LUA_PKG_ERRORS" >&5
32261
32262
32263
32264pkg_failed=no
32265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
32266$as_echo_n "checking for LUA... " >&6; }
32267
32268if test -n "$LUA_CFLAGS"; then
32269    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
32270 elif test -n "$PKG_CONFIG"; then
32271    if test -n "$PKG_CONFIG" && \
32272    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
32273  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
32274  ac_status=$?
32275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32276  test $ac_status = 0; }; then
32277  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
32278		      test "x$?" != "x0" && pkg_failed=yes
32279else
32280  pkg_failed=yes
32281fi
32282 else
32283    pkg_failed=untried
32284fi
32285if test -n "$LUA_LIBS"; then
32286    pkg_cv_LUA_LIBS="$LUA_LIBS"
32287 elif test -n "$PKG_CONFIG"; then
32288    if test -n "$PKG_CONFIG" && \
32289    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
32290  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
32291  ac_status=$?
32292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32293  test $ac_status = 0; }; then
32294  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
32295		      test "x$?" != "x0" && pkg_failed=yes
32296else
32297  pkg_failed=yes
32298fi
32299 else
32300    pkg_failed=untried
32301fi
32302
32303
32304
32305if test $pkg_failed = yes; then
32306   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32307$as_echo "no" >&6; }
32308
32309if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32310        _pkg_short_errors_supported=yes
32311else
32312        _pkg_short_errors_supported=no
32313fi
32314        if test $_pkg_short_errors_supported = yes; then
32315	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
32316        else
32317	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
32318        fi
32319	# Put the nasty error message in config.log where it belongs
32320	echo "$LUA_PKG_ERRORS" >&5
32321
32322
32323
32324pkg_failed=no
32325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
32326$as_echo_n "checking for LUA... " >&6; }
32327
32328if test -n "$LUA_CFLAGS"; then
32329    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
32330 elif test -n "$PKG_CONFIG"; then
32331    if test -n "$PKG_CONFIG" && \
32332    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
32333  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
32334  ac_status=$?
32335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32336  test $ac_status = 0; }; then
32337  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
32338		      test "x$?" != "x0" && pkg_failed=yes
32339else
32340  pkg_failed=yes
32341fi
32342 else
32343    pkg_failed=untried
32344fi
32345if test -n "$LUA_LIBS"; then
32346    pkg_cv_LUA_LIBS="$LUA_LIBS"
32347 elif test -n "$PKG_CONFIG"; then
32348    if test -n "$PKG_CONFIG" && \
32349    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
32350  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
32351  ac_status=$?
32352  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32353  test $ac_status = 0; }; then
32354  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
32355		      test "x$?" != "x0" && pkg_failed=yes
32356else
32357  pkg_failed=yes
32358fi
32359 else
32360    pkg_failed=untried
32361fi
32362
32363
32364
32365if test $pkg_failed = yes; then
32366   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32367$as_echo "no" >&6; }
32368
32369if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32370        _pkg_short_errors_supported=yes
32371else
32372        _pkg_short_errors_supported=no
32373fi
32374        if test $_pkg_short_errors_supported = yes; then
32375	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
32376        else
32377	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
32378        fi
32379	# Put the nasty error message in config.log where it belongs
32380	echo "$LUA_PKG_ERRORS" >&5
32381
32382	with_liblua="no (pkg-config cannot find liblua)"
32383
32384elif test $pkg_failed = untried; then
32385     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32386$as_echo "no" >&6; }
32387	with_liblua="no (pkg-config cannot find liblua)"
32388
32389else
32390	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
32391	LUA_LIBS=$pkg_cv_LUA_LIBS
32392        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32393$as_echo "yes" >&6; }
32394	with_liblua="yes"
32395fi
32396
32397
32398elif test $pkg_failed = untried; then
32399     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32400$as_echo "no" >&6; }
32401
32402
32403pkg_failed=no
32404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
32405$as_echo_n "checking for LUA... " >&6; }
32406
32407if test -n "$LUA_CFLAGS"; then
32408    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
32409 elif test -n "$PKG_CONFIG"; then
32410    if test -n "$PKG_CONFIG" && \
32411    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
32412  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
32413  ac_status=$?
32414  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32415  test $ac_status = 0; }; then
32416  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
32417		      test "x$?" != "x0" && pkg_failed=yes
32418else
32419  pkg_failed=yes
32420fi
32421 else
32422    pkg_failed=untried
32423fi
32424if test -n "$LUA_LIBS"; then
32425    pkg_cv_LUA_LIBS="$LUA_LIBS"
32426 elif test -n "$PKG_CONFIG"; then
32427    if test -n "$PKG_CONFIG" && \
32428    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
32429  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
32430  ac_status=$?
32431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32432  test $ac_status = 0; }; then
32433  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
32434		      test "x$?" != "x0" && pkg_failed=yes
32435else
32436  pkg_failed=yes
32437fi
32438 else
32439    pkg_failed=untried
32440fi
32441
32442
32443
32444if test $pkg_failed = yes; then
32445   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32446$as_echo "no" >&6; }
32447
32448if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32449        _pkg_short_errors_supported=yes
32450else
32451        _pkg_short_errors_supported=no
32452fi
32453        if test $_pkg_short_errors_supported = yes; then
32454	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
32455        else
32456	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
32457        fi
32458	# Put the nasty error message in config.log where it belongs
32459	echo "$LUA_PKG_ERRORS" >&5
32460
32461	with_liblua="no (pkg-config cannot find liblua)"
32462
32463elif test $pkg_failed = untried; then
32464     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32465$as_echo "no" >&6; }
32466	with_liblua="no (pkg-config cannot find liblua)"
32467
32468else
32469	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
32470	LUA_LIBS=$pkg_cv_LUA_LIBS
32471        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32472$as_echo "yes" >&6; }
32473	with_liblua="yes"
32474fi
32475
32476
32477else
32478	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
32479	LUA_LIBS=$pkg_cv_LUA_LIBS
32480        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32481$as_echo "yes" >&6; }
32482	with_liblua="yes"
32483fi
32484
32485
32486elif test $pkg_failed = untried; then
32487     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32488$as_echo "no" >&6; }
32489
32490
32491pkg_failed=no
32492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
32493$as_echo_n "checking for LUA... " >&6; }
32494
32495if test -n "$LUA_CFLAGS"; then
32496    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
32497 elif test -n "$PKG_CONFIG"; then
32498    if test -n "$PKG_CONFIG" && \
32499    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
32500  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
32501  ac_status=$?
32502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32503  test $ac_status = 0; }; then
32504  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
32505		      test "x$?" != "x0" && pkg_failed=yes
32506else
32507  pkg_failed=yes
32508fi
32509 else
32510    pkg_failed=untried
32511fi
32512if test -n "$LUA_LIBS"; then
32513    pkg_cv_LUA_LIBS="$LUA_LIBS"
32514 elif test -n "$PKG_CONFIG"; then
32515    if test -n "$PKG_CONFIG" && \
32516    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
32517  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
32518  ac_status=$?
32519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32520  test $ac_status = 0; }; then
32521  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
32522		      test "x$?" != "x0" && pkg_failed=yes
32523else
32524  pkg_failed=yes
32525fi
32526 else
32527    pkg_failed=untried
32528fi
32529
32530
32531
32532if test $pkg_failed = yes; then
32533   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32534$as_echo "no" >&6; }
32535
32536if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32537        _pkg_short_errors_supported=yes
32538else
32539        _pkg_short_errors_supported=no
32540fi
32541        if test $_pkg_short_errors_supported = yes; then
32542	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
32543        else
32544	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
32545        fi
32546	# Put the nasty error message in config.log where it belongs
32547	echo "$LUA_PKG_ERRORS" >&5
32548
32549
32550
32551pkg_failed=no
32552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
32553$as_echo_n "checking for LUA... " >&6; }
32554
32555if test -n "$LUA_CFLAGS"; then
32556    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
32557 elif test -n "$PKG_CONFIG"; then
32558    if test -n "$PKG_CONFIG" && \
32559    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
32560  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
32561  ac_status=$?
32562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32563  test $ac_status = 0; }; then
32564  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
32565		      test "x$?" != "x0" && pkg_failed=yes
32566else
32567  pkg_failed=yes
32568fi
32569 else
32570    pkg_failed=untried
32571fi
32572if test -n "$LUA_LIBS"; then
32573    pkg_cv_LUA_LIBS="$LUA_LIBS"
32574 elif test -n "$PKG_CONFIG"; then
32575    if test -n "$PKG_CONFIG" && \
32576    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
32577  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
32578  ac_status=$?
32579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32580  test $ac_status = 0; }; then
32581  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
32582		      test "x$?" != "x0" && pkg_failed=yes
32583else
32584  pkg_failed=yes
32585fi
32586 else
32587    pkg_failed=untried
32588fi
32589
32590
32591
32592if test $pkg_failed = yes; then
32593   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32594$as_echo "no" >&6; }
32595
32596if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32597        _pkg_short_errors_supported=yes
32598else
32599        _pkg_short_errors_supported=no
32600fi
32601        if test $_pkg_short_errors_supported = yes; then
32602	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
32603        else
32604	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
32605        fi
32606	# Put the nasty error message in config.log where it belongs
32607	echo "$LUA_PKG_ERRORS" >&5
32608
32609	with_liblua="no (pkg-config cannot find liblua)"
32610
32611elif test $pkg_failed = untried; then
32612     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32613$as_echo "no" >&6; }
32614	with_liblua="no (pkg-config cannot find liblua)"
32615
32616else
32617	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
32618	LUA_LIBS=$pkg_cv_LUA_LIBS
32619        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32620$as_echo "yes" >&6; }
32621	with_liblua="yes"
32622fi
32623
32624
32625elif test $pkg_failed = untried; then
32626     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32627$as_echo "no" >&6; }
32628
32629
32630pkg_failed=no
32631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
32632$as_echo_n "checking for LUA... " >&6; }
32633
32634if test -n "$LUA_CFLAGS"; then
32635    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
32636 elif test -n "$PKG_CONFIG"; then
32637    if test -n "$PKG_CONFIG" && \
32638    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
32639  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
32640  ac_status=$?
32641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32642  test $ac_status = 0; }; then
32643  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
32644		      test "x$?" != "x0" && pkg_failed=yes
32645else
32646  pkg_failed=yes
32647fi
32648 else
32649    pkg_failed=untried
32650fi
32651if test -n "$LUA_LIBS"; then
32652    pkg_cv_LUA_LIBS="$LUA_LIBS"
32653 elif test -n "$PKG_CONFIG"; then
32654    if test -n "$PKG_CONFIG" && \
32655    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
32656  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
32657  ac_status=$?
32658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32659  test $ac_status = 0; }; then
32660  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
32661		      test "x$?" != "x0" && pkg_failed=yes
32662else
32663  pkg_failed=yes
32664fi
32665 else
32666    pkg_failed=untried
32667fi
32668
32669
32670
32671if test $pkg_failed = yes; then
32672   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32673$as_echo "no" >&6; }
32674
32675if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32676        _pkg_short_errors_supported=yes
32677else
32678        _pkg_short_errors_supported=no
32679fi
32680        if test $_pkg_short_errors_supported = yes; then
32681	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
32682        else
32683	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
32684        fi
32685	# Put the nasty error message in config.log where it belongs
32686	echo "$LUA_PKG_ERRORS" >&5
32687
32688	with_liblua="no (pkg-config cannot find liblua)"
32689
32690elif test $pkg_failed = untried; then
32691     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32692$as_echo "no" >&6; }
32693	with_liblua="no (pkg-config cannot find liblua)"
32694
32695else
32696	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
32697	LUA_LIBS=$pkg_cv_LUA_LIBS
32698        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32699$as_echo "yes" >&6; }
32700	with_liblua="yes"
32701fi
32702
32703
32704else
32705	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
32706	LUA_LIBS=$pkg_cv_LUA_LIBS
32707        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32708$as_echo "yes" >&6; }
32709	with_liblua="yes"
32710fi
32711
32712
32713else
32714	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
32715	LUA_LIBS=$pkg_cv_LUA_LIBS
32716        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32717$as_echo "yes" >&6; }
32718	with_liblua="yes"
32719fi
32720
32721
32722elif test $pkg_failed = untried; then
32723     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32724$as_echo "no" >&6; }
32725
32726
32727pkg_failed=no
32728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
32729$as_echo_n "checking for LUA... " >&6; }
32730
32731if test -n "$LUA_CFLAGS"; then
32732    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
32733 elif test -n "$PKG_CONFIG"; then
32734    if test -n "$PKG_CONFIG" && \
32735    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
32736  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
32737  ac_status=$?
32738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32739  test $ac_status = 0; }; then
32740  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
32741		      test "x$?" != "x0" && pkg_failed=yes
32742else
32743  pkg_failed=yes
32744fi
32745 else
32746    pkg_failed=untried
32747fi
32748if test -n "$LUA_LIBS"; then
32749    pkg_cv_LUA_LIBS="$LUA_LIBS"
32750 elif test -n "$PKG_CONFIG"; then
32751    if test -n "$PKG_CONFIG" && \
32752    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
32753  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
32754  ac_status=$?
32755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32756  test $ac_status = 0; }; then
32757  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
32758		      test "x$?" != "x0" && pkg_failed=yes
32759else
32760  pkg_failed=yes
32761fi
32762 else
32763    pkg_failed=untried
32764fi
32765
32766
32767
32768if test $pkg_failed = yes; then
32769   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32770$as_echo "no" >&6; }
32771
32772if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32773        _pkg_short_errors_supported=yes
32774else
32775        _pkg_short_errors_supported=no
32776fi
32777        if test $_pkg_short_errors_supported = yes; then
32778	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
32779        else
32780	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
32781        fi
32782	# Put the nasty error message in config.log where it belongs
32783	echo "$LUA_PKG_ERRORS" >&5
32784
32785
32786
32787pkg_failed=no
32788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
32789$as_echo_n "checking for LUA... " >&6; }
32790
32791if test -n "$LUA_CFLAGS"; then
32792    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
32793 elif test -n "$PKG_CONFIG"; then
32794    if test -n "$PKG_CONFIG" && \
32795    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
32796  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
32797  ac_status=$?
32798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32799  test $ac_status = 0; }; then
32800  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
32801		      test "x$?" != "x0" && pkg_failed=yes
32802else
32803  pkg_failed=yes
32804fi
32805 else
32806    pkg_failed=untried
32807fi
32808if test -n "$LUA_LIBS"; then
32809    pkg_cv_LUA_LIBS="$LUA_LIBS"
32810 elif test -n "$PKG_CONFIG"; then
32811    if test -n "$PKG_CONFIG" && \
32812    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
32813  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
32814  ac_status=$?
32815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32816  test $ac_status = 0; }; then
32817  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
32818		      test "x$?" != "x0" && pkg_failed=yes
32819else
32820  pkg_failed=yes
32821fi
32822 else
32823    pkg_failed=untried
32824fi
32825
32826
32827
32828if test $pkg_failed = yes; then
32829   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32830$as_echo "no" >&6; }
32831
32832if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32833        _pkg_short_errors_supported=yes
32834else
32835        _pkg_short_errors_supported=no
32836fi
32837        if test $_pkg_short_errors_supported = yes; then
32838	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
32839        else
32840	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
32841        fi
32842	# Put the nasty error message in config.log where it belongs
32843	echo "$LUA_PKG_ERRORS" >&5
32844
32845
32846
32847pkg_failed=no
32848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
32849$as_echo_n "checking for LUA... " >&6; }
32850
32851if test -n "$LUA_CFLAGS"; then
32852    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
32853 elif test -n "$PKG_CONFIG"; then
32854    if test -n "$PKG_CONFIG" && \
32855    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
32856  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
32857  ac_status=$?
32858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32859  test $ac_status = 0; }; then
32860  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
32861		      test "x$?" != "x0" && pkg_failed=yes
32862else
32863  pkg_failed=yes
32864fi
32865 else
32866    pkg_failed=untried
32867fi
32868if test -n "$LUA_LIBS"; then
32869    pkg_cv_LUA_LIBS="$LUA_LIBS"
32870 elif test -n "$PKG_CONFIG"; then
32871    if test -n "$PKG_CONFIG" && \
32872    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
32873  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
32874  ac_status=$?
32875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32876  test $ac_status = 0; }; then
32877  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
32878		      test "x$?" != "x0" && pkg_failed=yes
32879else
32880  pkg_failed=yes
32881fi
32882 else
32883    pkg_failed=untried
32884fi
32885
32886
32887
32888if test $pkg_failed = yes; then
32889   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32890$as_echo "no" >&6; }
32891
32892if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32893        _pkg_short_errors_supported=yes
32894else
32895        _pkg_short_errors_supported=no
32896fi
32897        if test $_pkg_short_errors_supported = yes; then
32898	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
32899        else
32900	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
32901        fi
32902	# Put the nasty error message in config.log where it belongs
32903	echo "$LUA_PKG_ERRORS" >&5
32904
32905	with_liblua="no (pkg-config cannot find liblua)"
32906
32907elif test $pkg_failed = untried; then
32908     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32909$as_echo "no" >&6; }
32910	with_liblua="no (pkg-config cannot find liblua)"
32911
32912else
32913	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
32914	LUA_LIBS=$pkg_cv_LUA_LIBS
32915        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32916$as_echo "yes" >&6; }
32917	with_liblua="yes"
32918fi
32919
32920
32921elif test $pkg_failed = untried; then
32922     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32923$as_echo "no" >&6; }
32924
32925
32926pkg_failed=no
32927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
32928$as_echo_n "checking for LUA... " >&6; }
32929
32930if test -n "$LUA_CFLAGS"; then
32931    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
32932 elif test -n "$PKG_CONFIG"; then
32933    if test -n "$PKG_CONFIG" && \
32934    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
32935  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
32936  ac_status=$?
32937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32938  test $ac_status = 0; }; then
32939  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
32940		      test "x$?" != "x0" && pkg_failed=yes
32941else
32942  pkg_failed=yes
32943fi
32944 else
32945    pkg_failed=untried
32946fi
32947if test -n "$LUA_LIBS"; then
32948    pkg_cv_LUA_LIBS="$LUA_LIBS"
32949 elif test -n "$PKG_CONFIG"; then
32950    if test -n "$PKG_CONFIG" && \
32951    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
32952  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
32953  ac_status=$?
32954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32955  test $ac_status = 0; }; then
32956  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
32957		      test "x$?" != "x0" && pkg_failed=yes
32958else
32959  pkg_failed=yes
32960fi
32961 else
32962    pkg_failed=untried
32963fi
32964
32965
32966
32967if test $pkg_failed = yes; then
32968   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32969$as_echo "no" >&6; }
32970
32971if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32972        _pkg_short_errors_supported=yes
32973else
32974        _pkg_short_errors_supported=no
32975fi
32976        if test $_pkg_short_errors_supported = yes; then
32977	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
32978        else
32979	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
32980        fi
32981	# Put the nasty error message in config.log where it belongs
32982	echo "$LUA_PKG_ERRORS" >&5
32983
32984	with_liblua="no (pkg-config cannot find liblua)"
32985
32986elif test $pkg_failed = untried; then
32987     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32988$as_echo "no" >&6; }
32989	with_liblua="no (pkg-config cannot find liblua)"
32990
32991else
32992	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
32993	LUA_LIBS=$pkg_cv_LUA_LIBS
32994        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32995$as_echo "yes" >&6; }
32996	with_liblua="yes"
32997fi
32998
32999
33000else
33001	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
33002	LUA_LIBS=$pkg_cv_LUA_LIBS
33003        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33004$as_echo "yes" >&6; }
33005	with_liblua="yes"
33006fi
33007
33008
33009elif test $pkg_failed = untried; then
33010     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33011$as_echo "no" >&6; }
33012
33013
33014pkg_failed=no
33015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
33016$as_echo_n "checking for LUA... " >&6; }
33017
33018if test -n "$LUA_CFLAGS"; then
33019    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
33020 elif test -n "$PKG_CONFIG"; then
33021    if test -n "$PKG_CONFIG" && \
33022    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
33023  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
33024  ac_status=$?
33025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33026  test $ac_status = 0; }; then
33027  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
33028		      test "x$?" != "x0" && pkg_failed=yes
33029else
33030  pkg_failed=yes
33031fi
33032 else
33033    pkg_failed=untried
33034fi
33035if test -n "$LUA_LIBS"; then
33036    pkg_cv_LUA_LIBS="$LUA_LIBS"
33037 elif test -n "$PKG_CONFIG"; then
33038    if test -n "$PKG_CONFIG" && \
33039    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
33040  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
33041  ac_status=$?
33042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33043  test $ac_status = 0; }; then
33044  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
33045		      test "x$?" != "x0" && pkg_failed=yes
33046else
33047  pkg_failed=yes
33048fi
33049 else
33050    pkg_failed=untried
33051fi
33052
33053
33054
33055if test $pkg_failed = yes; then
33056   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33057$as_echo "no" >&6; }
33058
33059if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33060        _pkg_short_errors_supported=yes
33061else
33062        _pkg_short_errors_supported=no
33063fi
33064        if test $_pkg_short_errors_supported = yes; then
33065	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
33066        else
33067	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
33068        fi
33069	# Put the nasty error message in config.log where it belongs
33070	echo "$LUA_PKG_ERRORS" >&5
33071
33072
33073
33074pkg_failed=no
33075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
33076$as_echo_n "checking for LUA... " >&6; }
33077
33078if test -n "$LUA_CFLAGS"; then
33079    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
33080 elif test -n "$PKG_CONFIG"; then
33081    if test -n "$PKG_CONFIG" && \
33082    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
33083  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
33084  ac_status=$?
33085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33086  test $ac_status = 0; }; then
33087  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
33088		      test "x$?" != "x0" && pkg_failed=yes
33089else
33090  pkg_failed=yes
33091fi
33092 else
33093    pkg_failed=untried
33094fi
33095if test -n "$LUA_LIBS"; then
33096    pkg_cv_LUA_LIBS="$LUA_LIBS"
33097 elif test -n "$PKG_CONFIG"; then
33098    if test -n "$PKG_CONFIG" && \
33099    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
33100  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
33101  ac_status=$?
33102  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33103  test $ac_status = 0; }; then
33104  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
33105		      test "x$?" != "x0" && pkg_failed=yes
33106else
33107  pkg_failed=yes
33108fi
33109 else
33110    pkg_failed=untried
33111fi
33112
33113
33114
33115if test $pkg_failed = yes; then
33116   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33117$as_echo "no" >&6; }
33118
33119if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33120        _pkg_short_errors_supported=yes
33121else
33122        _pkg_short_errors_supported=no
33123fi
33124        if test $_pkg_short_errors_supported = yes; then
33125	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
33126        else
33127	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
33128        fi
33129	# Put the nasty error message in config.log where it belongs
33130	echo "$LUA_PKG_ERRORS" >&5
33131
33132	with_liblua="no (pkg-config cannot find liblua)"
33133
33134elif test $pkg_failed = untried; then
33135     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33136$as_echo "no" >&6; }
33137	with_liblua="no (pkg-config cannot find liblua)"
33138
33139else
33140	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
33141	LUA_LIBS=$pkg_cv_LUA_LIBS
33142        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33143$as_echo "yes" >&6; }
33144	with_liblua="yes"
33145fi
33146
33147
33148elif test $pkg_failed = untried; then
33149     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33150$as_echo "no" >&6; }
33151
33152
33153pkg_failed=no
33154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
33155$as_echo_n "checking for LUA... " >&6; }
33156
33157if test -n "$LUA_CFLAGS"; then
33158    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
33159 elif test -n "$PKG_CONFIG"; then
33160    if test -n "$PKG_CONFIG" && \
33161    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
33162  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
33163  ac_status=$?
33164  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33165  test $ac_status = 0; }; then
33166  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
33167		      test "x$?" != "x0" && pkg_failed=yes
33168else
33169  pkg_failed=yes
33170fi
33171 else
33172    pkg_failed=untried
33173fi
33174if test -n "$LUA_LIBS"; then
33175    pkg_cv_LUA_LIBS="$LUA_LIBS"
33176 elif test -n "$PKG_CONFIG"; then
33177    if test -n "$PKG_CONFIG" && \
33178    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
33179  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
33180  ac_status=$?
33181  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33182  test $ac_status = 0; }; then
33183  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
33184		      test "x$?" != "x0" && pkg_failed=yes
33185else
33186  pkg_failed=yes
33187fi
33188 else
33189    pkg_failed=untried
33190fi
33191
33192
33193
33194if test $pkg_failed = yes; then
33195   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33196$as_echo "no" >&6; }
33197
33198if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33199        _pkg_short_errors_supported=yes
33200else
33201        _pkg_short_errors_supported=no
33202fi
33203        if test $_pkg_short_errors_supported = yes; then
33204	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
33205        else
33206	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
33207        fi
33208	# Put the nasty error message in config.log where it belongs
33209	echo "$LUA_PKG_ERRORS" >&5
33210
33211	with_liblua="no (pkg-config cannot find liblua)"
33212
33213elif test $pkg_failed = untried; then
33214     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33215$as_echo "no" >&6; }
33216	with_liblua="no (pkg-config cannot find liblua)"
33217
33218else
33219	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
33220	LUA_LIBS=$pkg_cv_LUA_LIBS
33221        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33222$as_echo "yes" >&6; }
33223	with_liblua="yes"
33224fi
33225
33226
33227else
33228	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
33229	LUA_LIBS=$pkg_cv_LUA_LIBS
33230        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33231$as_echo "yes" >&6; }
33232	with_liblua="yes"
33233fi
33234
33235
33236else
33237	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
33238	LUA_LIBS=$pkg_cv_LUA_LIBS
33239        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33240$as_echo "yes" >&6; }
33241	with_liblua="yes"
33242fi
33243
33244
33245else
33246	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
33247	LUA_LIBS=$pkg_cv_LUA_LIBS
33248        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33249$as_echo "yes" >&6; }
33250	with_liblua="yes"
33251fi
33252
33253
33254else
33255	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
33256	LUA_LIBS=$pkg_cv_LUA_LIBS
33257        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33258$as_echo "yes" >&6; }
33259	with_liblua="yes"
33260fi
33261
33262
33263elif test $pkg_failed = untried; then
33264     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33265$as_echo "no" >&6; }
33266
33267
33268pkg_failed=no
33269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
33270$as_echo_n "checking for LUA... " >&6; }
33271
33272if test -n "$LUA_CFLAGS"; then
33273    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
33274 elif test -n "$PKG_CONFIG"; then
33275    if test -n "$PKG_CONFIG" && \
33276    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
33277  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
33278  ac_status=$?
33279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33280  test $ac_status = 0; }; then
33281  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
33282		      test "x$?" != "x0" && pkg_failed=yes
33283else
33284  pkg_failed=yes
33285fi
33286 else
33287    pkg_failed=untried
33288fi
33289if test -n "$LUA_LIBS"; then
33290    pkg_cv_LUA_LIBS="$LUA_LIBS"
33291 elif test -n "$PKG_CONFIG"; then
33292    if test -n "$PKG_CONFIG" && \
33293    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
33294  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
33295  ac_status=$?
33296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33297  test $ac_status = 0; }; then
33298  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
33299		      test "x$?" != "x0" && pkg_failed=yes
33300else
33301  pkg_failed=yes
33302fi
33303 else
33304    pkg_failed=untried
33305fi
33306
33307
33308
33309if test $pkg_failed = yes; then
33310   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33311$as_echo "no" >&6; }
33312
33313if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33314        _pkg_short_errors_supported=yes
33315else
33316        _pkg_short_errors_supported=no
33317fi
33318        if test $_pkg_short_errors_supported = yes; then
33319	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
33320        else
33321	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
33322        fi
33323	# Put the nasty error message in config.log where it belongs
33324	echo "$LUA_PKG_ERRORS" >&5
33325
33326
33327
33328pkg_failed=no
33329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
33330$as_echo_n "checking for LUA... " >&6; }
33331
33332if test -n "$LUA_CFLAGS"; then
33333    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
33334 elif test -n "$PKG_CONFIG"; then
33335    if test -n "$PKG_CONFIG" && \
33336    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
33337  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
33338  ac_status=$?
33339  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33340  test $ac_status = 0; }; then
33341  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
33342		      test "x$?" != "x0" && pkg_failed=yes
33343else
33344  pkg_failed=yes
33345fi
33346 else
33347    pkg_failed=untried
33348fi
33349if test -n "$LUA_LIBS"; then
33350    pkg_cv_LUA_LIBS="$LUA_LIBS"
33351 elif test -n "$PKG_CONFIG"; then
33352    if test -n "$PKG_CONFIG" && \
33353    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
33354  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
33355  ac_status=$?
33356  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33357  test $ac_status = 0; }; then
33358  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
33359		      test "x$?" != "x0" && pkg_failed=yes
33360else
33361  pkg_failed=yes
33362fi
33363 else
33364    pkg_failed=untried
33365fi
33366
33367
33368
33369if test $pkg_failed = yes; then
33370   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33371$as_echo "no" >&6; }
33372
33373if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33374        _pkg_short_errors_supported=yes
33375else
33376        _pkg_short_errors_supported=no
33377fi
33378        if test $_pkg_short_errors_supported = yes; then
33379	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
33380        else
33381	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
33382        fi
33383	# Put the nasty error message in config.log where it belongs
33384	echo "$LUA_PKG_ERRORS" >&5
33385
33386
33387
33388pkg_failed=no
33389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
33390$as_echo_n "checking for LUA... " >&6; }
33391
33392if test -n "$LUA_CFLAGS"; then
33393    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
33394 elif test -n "$PKG_CONFIG"; then
33395    if test -n "$PKG_CONFIG" && \
33396    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
33397  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
33398  ac_status=$?
33399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33400  test $ac_status = 0; }; then
33401  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
33402		      test "x$?" != "x0" && pkg_failed=yes
33403else
33404  pkg_failed=yes
33405fi
33406 else
33407    pkg_failed=untried
33408fi
33409if test -n "$LUA_LIBS"; then
33410    pkg_cv_LUA_LIBS="$LUA_LIBS"
33411 elif test -n "$PKG_CONFIG"; then
33412    if test -n "$PKG_CONFIG" && \
33413    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
33414  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
33415  ac_status=$?
33416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33417  test $ac_status = 0; }; then
33418  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
33419		      test "x$?" != "x0" && pkg_failed=yes
33420else
33421  pkg_failed=yes
33422fi
33423 else
33424    pkg_failed=untried
33425fi
33426
33427
33428
33429if test $pkg_failed = yes; then
33430   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33431$as_echo "no" >&6; }
33432
33433if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33434        _pkg_short_errors_supported=yes
33435else
33436        _pkg_short_errors_supported=no
33437fi
33438        if test $_pkg_short_errors_supported = yes; then
33439	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
33440        else
33441	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
33442        fi
33443	# Put the nasty error message in config.log where it belongs
33444	echo "$LUA_PKG_ERRORS" >&5
33445
33446
33447
33448pkg_failed=no
33449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
33450$as_echo_n "checking for LUA... " >&6; }
33451
33452if test -n "$LUA_CFLAGS"; then
33453    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
33454 elif test -n "$PKG_CONFIG"; then
33455    if test -n "$PKG_CONFIG" && \
33456    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
33457  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
33458  ac_status=$?
33459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33460  test $ac_status = 0; }; then
33461  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
33462		      test "x$?" != "x0" && pkg_failed=yes
33463else
33464  pkg_failed=yes
33465fi
33466 else
33467    pkg_failed=untried
33468fi
33469if test -n "$LUA_LIBS"; then
33470    pkg_cv_LUA_LIBS="$LUA_LIBS"
33471 elif test -n "$PKG_CONFIG"; then
33472    if test -n "$PKG_CONFIG" && \
33473    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
33474  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
33475  ac_status=$?
33476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33477  test $ac_status = 0; }; then
33478  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
33479		      test "x$?" != "x0" && pkg_failed=yes
33480else
33481  pkg_failed=yes
33482fi
33483 else
33484    pkg_failed=untried
33485fi
33486
33487
33488
33489if test $pkg_failed = yes; then
33490   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33491$as_echo "no" >&6; }
33492
33493if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33494        _pkg_short_errors_supported=yes
33495else
33496        _pkg_short_errors_supported=no
33497fi
33498        if test $_pkg_short_errors_supported = yes; then
33499	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
33500        else
33501	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
33502        fi
33503	# Put the nasty error message in config.log where it belongs
33504	echo "$LUA_PKG_ERRORS" >&5
33505
33506
33507
33508pkg_failed=no
33509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
33510$as_echo_n "checking for LUA... " >&6; }
33511
33512if test -n "$LUA_CFLAGS"; then
33513    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
33514 elif test -n "$PKG_CONFIG"; then
33515    if test -n "$PKG_CONFIG" && \
33516    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
33517  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
33518  ac_status=$?
33519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33520  test $ac_status = 0; }; then
33521  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
33522		      test "x$?" != "x0" && pkg_failed=yes
33523else
33524  pkg_failed=yes
33525fi
33526 else
33527    pkg_failed=untried
33528fi
33529if test -n "$LUA_LIBS"; then
33530    pkg_cv_LUA_LIBS="$LUA_LIBS"
33531 elif test -n "$PKG_CONFIG"; then
33532    if test -n "$PKG_CONFIG" && \
33533    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
33534  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
33535  ac_status=$?
33536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33537  test $ac_status = 0; }; then
33538  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
33539		      test "x$?" != "x0" && pkg_failed=yes
33540else
33541  pkg_failed=yes
33542fi
33543 else
33544    pkg_failed=untried
33545fi
33546
33547
33548
33549if test $pkg_failed = yes; then
33550   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33551$as_echo "no" >&6; }
33552
33553if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33554        _pkg_short_errors_supported=yes
33555else
33556        _pkg_short_errors_supported=no
33557fi
33558        if test $_pkg_short_errors_supported = yes; then
33559	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
33560        else
33561	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
33562        fi
33563	# Put the nasty error message in config.log where it belongs
33564	echo "$LUA_PKG_ERRORS" >&5
33565
33566	with_liblua="no (pkg-config cannot find liblua)"
33567
33568elif test $pkg_failed = untried; then
33569     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33570$as_echo "no" >&6; }
33571	with_liblua="no (pkg-config cannot find liblua)"
33572
33573else
33574	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
33575	LUA_LIBS=$pkg_cv_LUA_LIBS
33576        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33577$as_echo "yes" >&6; }
33578	with_liblua="yes"
33579fi
33580
33581
33582elif test $pkg_failed = untried; then
33583     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33584$as_echo "no" >&6; }
33585
33586
33587pkg_failed=no
33588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
33589$as_echo_n "checking for LUA... " >&6; }
33590
33591if test -n "$LUA_CFLAGS"; then
33592    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
33593 elif test -n "$PKG_CONFIG"; then
33594    if test -n "$PKG_CONFIG" && \
33595    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
33596  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
33597  ac_status=$?
33598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33599  test $ac_status = 0; }; then
33600  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
33601		      test "x$?" != "x0" && pkg_failed=yes
33602else
33603  pkg_failed=yes
33604fi
33605 else
33606    pkg_failed=untried
33607fi
33608if test -n "$LUA_LIBS"; then
33609    pkg_cv_LUA_LIBS="$LUA_LIBS"
33610 elif test -n "$PKG_CONFIG"; then
33611    if test -n "$PKG_CONFIG" && \
33612    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
33613  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
33614  ac_status=$?
33615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33616  test $ac_status = 0; }; then
33617  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
33618		      test "x$?" != "x0" && pkg_failed=yes
33619else
33620  pkg_failed=yes
33621fi
33622 else
33623    pkg_failed=untried
33624fi
33625
33626
33627
33628if test $pkg_failed = yes; then
33629   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33630$as_echo "no" >&6; }
33631
33632if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33633        _pkg_short_errors_supported=yes
33634else
33635        _pkg_short_errors_supported=no
33636fi
33637        if test $_pkg_short_errors_supported = yes; then
33638	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
33639        else
33640	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
33641        fi
33642	# Put the nasty error message in config.log where it belongs
33643	echo "$LUA_PKG_ERRORS" >&5
33644
33645	with_liblua="no (pkg-config cannot find liblua)"
33646
33647elif test $pkg_failed = untried; then
33648     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33649$as_echo "no" >&6; }
33650	with_liblua="no (pkg-config cannot find liblua)"
33651
33652else
33653	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
33654	LUA_LIBS=$pkg_cv_LUA_LIBS
33655        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33656$as_echo "yes" >&6; }
33657	with_liblua="yes"
33658fi
33659
33660
33661else
33662	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
33663	LUA_LIBS=$pkg_cv_LUA_LIBS
33664        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33665$as_echo "yes" >&6; }
33666	with_liblua="yes"
33667fi
33668
33669
33670elif test $pkg_failed = untried; then
33671     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33672$as_echo "no" >&6; }
33673
33674
33675pkg_failed=no
33676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
33677$as_echo_n "checking for LUA... " >&6; }
33678
33679if test -n "$LUA_CFLAGS"; then
33680    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
33681 elif test -n "$PKG_CONFIG"; then
33682    if test -n "$PKG_CONFIG" && \
33683    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
33684  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
33685  ac_status=$?
33686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33687  test $ac_status = 0; }; then
33688  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
33689		      test "x$?" != "x0" && pkg_failed=yes
33690else
33691  pkg_failed=yes
33692fi
33693 else
33694    pkg_failed=untried
33695fi
33696if test -n "$LUA_LIBS"; then
33697    pkg_cv_LUA_LIBS="$LUA_LIBS"
33698 elif test -n "$PKG_CONFIG"; then
33699    if test -n "$PKG_CONFIG" && \
33700    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
33701  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
33702  ac_status=$?
33703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33704  test $ac_status = 0; }; then
33705  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
33706		      test "x$?" != "x0" && pkg_failed=yes
33707else
33708  pkg_failed=yes
33709fi
33710 else
33711    pkg_failed=untried
33712fi
33713
33714
33715
33716if test $pkg_failed = yes; then
33717   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33718$as_echo "no" >&6; }
33719
33720if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33721        _pkg_short_errors_supported=yes
33722else
33723        _pkg_short_errors_supported=no
33724fi
33725        if test $_pkg_short_errors_supported = yes; then
33726	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
33727        else
33728	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
33729        fi
33730	# Put the nasty error message in config.log where it belongs
33731	echo "$LUA_PKG_ERRORS" >&5
33732
33733
33734
33735pkg_failed=no
33736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
33737$as_echo_n "checking for LUA... " >&6; }
33738
33739if test -n "$LUA_CFLAGS"; then
33740    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
33741 elif test -n "$PKG_CONFIG"; then
33742    if test -n "$PKG_CONFIG" && \
33743    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
33744  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
33745  ac_status=$?
33746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33747  test $ac_status = 0; }; then
33748  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
33749		      test "x$?" != "x0" && pkg_failed=yes
33750else
33751  pkg_failed=yes
33752fi
33753 else
33754    pkg_failed=untried
33755fi
33756if test -n "$LUA_LIBS"; then
33757    pkg_cv_LUA_LIBS="$LUA_LIBS"
33758 elif test -n "$PKG_CONFIG"; then
33759    if test -n "$PKG_CONFIG" && \
33760    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
33761  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
33762  ac_status=$?
33763  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33764  test $ac_status = 0; }; then
33765  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
33766		      test "x$?" != "x0" && pkg_failed=yes
33767else
33768  pkg_failed=yes
33769fi
33770 else
33771    pkg_failed=untried
33772fi
33773
33774
33775
33776if test $pkg_failed = yes; then
33777   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33778$as_echo "no" >&6; }
33779
33780if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33781        _pkg_short_errors_supported=yes
33782else
33783        _pkg_short_errors_supported=no
33784fi
33785        if test $_pkg_short_errors_supported = yes; then
33786	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
33787        else
33788	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
33789        fi
33790	# Put the nasty error message in config.log where it belongs
33791	echo "$LUA_PKG_ERRORS" >&5
33792
33793	with_liblua="no (pkg-config cannot find liblua)"
33794
33795elif test $pkg_failed = untried; then
33796     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33797$as_echo "no" >&6; }
33798	with_liblua="no (pkg-config cannot find liblua)"
33799
33800else
33801	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
33802	LUA_LIBS=$pkg_cv_LUA_LIBS
33803        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33804$as_echo "yes" >&6; }
33805	with_liblua="yes"
33806fi
33807
33808
33809elif test $pkg_failed = untried; then
33810     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33811$as_echo "no" >&6; }
33812
33813
33814pkg_failed=no
33815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
33816$as_echo_n "checking for LUA... " >&6; }
33817
33818if test -n "$LUA_CFLAGS"; then
33819    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
33820 elif test -n "$PKG_CONFIG"; then
33821    if test -n "$PKG_CONFIG" && \
33822    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
33823  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
33824  ac_status=$?
33825  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33826  test $ac_status = 0; }; then
33827  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
33828		      test "x$?" != "x0" && pkg_failed=yes
33829else
33830  pkg_failed=yes
33831fi
33832 else
33833    pkg_failed=untried
33834fi
33835if test -n "$LUA_LIBS"; then
33836    pkg_cv_LUA_LIBS="$LUA_LIBS"
33837 elif test -n "$PKG_CONFIG"; then
33838    if test -n "$PKG_CONFIG" && \
33839    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
33840  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
33841  ac_status=$?
33842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33843  test $ac_status = 0; }; then
33844  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
33845		      test "x$?" != "x0" && pkg_failed=yes
33846else
33847  pkg_failed=yes
33848fi
33849 else
33850    pkg_failed=untried
33851fi
33852
33853
33854
33855if test $pkg_failed = yes; then
33856   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33857$as_echo "no" >&6; }
33858
33859if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33860        _pkg_short_errors_supported=yes
33861else
33862        _pkg_short_errors_supported=no
33863fi
33864        if test $_pkg_short_errors_supported = yes; then
33865	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
33866        else
33867	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
33868        fi
33869	# Put the nasty error message in config.log where it belongs
33870	echo "$LUA_PKG_ERRORS" >&5
33871
33872	with_liblua="no (pkg-config cannot find liblua)"
33873
33874elif test $pkg_failed = untried; then
33875     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33876$as_echo "no" >&6; }
33877	with_liblua="no (pkg-config cannot find liblua)"
33878
33879else
33880	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
33881	LUA_LIBS=$pkg_cv_LUA_LIBS
33882        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33883$as_echo "yes" >&6; }
33884	with_liblua="yes"
33885fi
33886
33887
33888else
33889	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
33890	LUA_LIBS=$pkg_cv_LUA_LIBS
33891        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33892$as_echo "yes" >&6; }
33893	with_liblua="yes"
33894fi
33895
33896
33897else
33898	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
33899	LUA_LIBS=$pkg_cv_LUA_LIBS
33900        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33901$as_echo "yes" >&6; }
33902	with_liblua="yes"
33903fi
33904
33905
33906elif test $pkg_failed = untried; then
33907     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33908$as_echo "no" >&6; }
33909
33910
33911pkg_failed=no
33912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
33913$as_echo_n "checking for LUA... " >&6; }
33914
33915if test -n "$LUA_CFLAGS"; then
33916    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
33917 elif test -n "$PKG_CONFIG"; then
33918    if test -n "$PKG_CONFIG" && \
33919    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
33920  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
33921  ac_status=$?
33922  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33923  test $ac_status = 0; }; then
33924  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
33925		      test "x$?" != "x0" && pkg_failed=yes
33926else
33927  pkg_failed=yes
33928fi
33929 else
33930    pkg_failed=untried
33931fi
33932if test -n "$LUA_LIBS"; then
33933    pkg_cv_LUA_LIBS="$LUA_LIBS"
33934 elif test -n "$PKG_CONFIG"; then
33935    if test -n "$PKG_CONFIG" && \
33936    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
33937  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
33938  ac_status=$?
33939  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33940  test $ac_status = 0; }; then
33941  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
33942		      test "x$?" != "x0" && pkg_failed=yes
33943else
33944  pkg_failed=yes
33945fi
33946 else
33947    pkg_failed=untried
33948fi
33949
33950
33951
33952if test $pkg_failed = yes; then
33953   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33954$as_echo "no" >&6; }
33955
33956if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33957        _pkg_short_errors_supported=yes
33958else
33959        _pkg_short_errors_supported=no
33960fi
33961        if test $_pkg_short_errors_supported = yes; then
33962	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
33963        else
33964	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
33965        fi
33966	# Put the nasty error message in config.log where it belongs
33967	echo "$LUA_PKG_ERRORS" >&5
33968
33969
33970
33971pkg_failed=no
33972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
33973$as_echo_n "checking for LUA... " >&6; }
33974
33975if test -n "$LUA_CFLAGS"; then
33976    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
33977 elif test -n "$PKG_CONFIG"; then
33978    if test -n "$PKG_CONFIG" && \
33979    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
33980  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
33981  ac_status=$?
33982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33983  test $ac_status = 0; }; then
33984  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
33985		      test "x$?" != "x0" && pkg_failed=yes
33986else
33987  pkg_failed=yes
33988fi
33989 else
33990    pkg_failed=untried
33991fi
33992if test -n "$LUA_LIBS"; then
33993    pkg_cv_LUA_LIBS="$LUA_LIBS"
33994 elif test -n "$PKG_CONFIG"; then
33995    if test -n "$PKG_CONFIG" && \
33996    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
33997  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
33998  ac_status=$?
33999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34000  test $ac_status = 0; }; then
34001  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
34002		      test "x$?" != "x0" && pkg_failed=yes
34003else
34004  pkg_failed=yes
34005fi
34006 else
34007    pkg_failed=untried
34008fi
34009
34010
34011
34012if test $pkg_failed = yes; then
34013   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34014$as_echo "no" >&6; }
34015
34016if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34017        _pkg_short_errors_supported=yes
34018else
34019        _pkg_short_errors_supported=no
34020fi
34021        if test $_pkg_short_errors_supported = yes; then
34022	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
34023        else
34024	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
34025        fi
34026	# Put the nasty error message in config.log where it belongs
34027	echo "$LUA_PKG_ERRORS" >&5
34028
34029
34030
34031pkg_failed=no
34032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
34033$as_echo_n "checking for LUA... " >&6; }
34034
34035if test -n "$LUA_CFLAGS"; then
34036    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
34037 elif test -n "$PKG_CONFIG"; then
34038    if test -n "$PKG_CONFIG" && \
34039    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
34040  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
34041  ac_status=$?
34042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34043  test $ac_status = 0; }; then
34044  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
34045		      test "x$?" != "x0" && pkg_failed=yes
34046else
34047  pkg_failed=yes
34048fi
34049 else
34050    pkg_failed=untried
34051fi
34052if test -n "$LUA_LIBS"; then
34053    pkg_cv_LUA_LIBS="$LUA_LIBS"
34054 elif test -n "$PKG_CONFIG"; then
34055    if test -n "$PKG_CONFIG" && \
34056    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
34057  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
34058  ac_status=$?
34059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34060  test $ac_status = 0; }; then
34061  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
34062		      test "x$?" != "x0" && pkg_failed=yes
34063else
34064  pkg_failed=yes
34065fi
34066 else
34067    pkg_failed=untried
34068fi
34069
34070
34071
34072if test $pkg_failed = yes; then
34073   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34074$as_echo "no" >&6; }
34075
34076if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34077        _pkg_short_errors_supported=yes
34078else
34079        _pkg_short_errors_supported=no
34080fi
34081        if test $_pkg_short_errors_supported = yes; then
34082	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
34083        else
34084	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
34085        fi
34086	# Put the nasty error message in config.log where it belongs
34087	echo "$LUA_PKG_ERRORS" >&5
34088
34089	with_liblua="no (pkg-config cannot find liblua)"
34090
34091elif test $pkg_failed = untried; then
34092     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34093$as_echo "no" >&6; }
34094	with_liblua="no (pkg-config cannot find liblua)"
34095
34096else
34097	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
34098	LUA_LIBS=$pkg_cv_LUA_LIBS
34099        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34100$as_echo "yes" >&6; }
34101	with_liblua="yes"
34102fi
34103
34104
34105elif test $pkg_failed = untried; then
34106     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34107$as_echo "no" >&6; }
34108
34109
34110pkg_failed=no
34111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
34112$as_echo_n "checking for LUA... " >&6; }
34113
34114if test -n "$LUA_CFLAGS"; then
34115    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
34116 elif test -n "$PKG_CONFIG"; then
34117    if test -n "$PKG_CONFIG" && \
34118    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
34119  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
34120  ac_status=$?
34121  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34122  test $ac_status = 0; }; then
34123  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
34124		      test "x$?" != "x0" && pkg_failed=yes
34125else
34126  pkg_failed=yes
34127fi
34128 else
34129    pkg_failed=untried
34130fi
34131if test -n "$LUA_LIBS"; then
34132    pkg_cv_LUA_LIBS="$LUA_LIBS"
34133 elif test -n "$PKG_CONFIG"; then
34134    if test -n "$PKG_CONFIG" && \
34135    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
34136  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
34137  ac_status=$?
34138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34139  test $ac_status = 0; }; then
34140  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
34141		      test "x$?" != "x0" && pkg_failed=yes
34142else
34143  pkg_failed=yes
34144fi
34145 else
34146    pkg_failed=untried
34147fi
34148
34149
34150
34151if test $pkg_failed = yes; then
34152   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34153$as_echo "no" >&6; }
34154
34155if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34156        _pkg_short_errors_supported=yes
34157else
34158        _pkg_short_errors_supported=no
34159fi
34160        if test $_pkg_short_errors_supported = yes; then
34161	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
34162        else
34163	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
34164        fi
34165	# Put the nasty error message in config.log where it belongs
34166	echo "$LUA_PKG_ERRORS" >&5
34167
34168	with_liblua="no (pkg-config cannot find liblua)"
34169
34170elif test $pkg_failed = untried; then
34171     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34172$as_echo "no" >&6; }
34173	with_liblua="no (pkg-config cannot find liblua)"
34174
34175else
34176	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
34177	LUA_LIBS=$pkg_cv_LUA_LIBS
34178        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34179$as_echo "yes" >&6; }
34180	with_liblua="yes"
34181fi
34182
34183
34184else
34185	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
34186	LUA_LIBS=$pkg_cv_LUA_LIBS
34187        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34188$as_echo "yes" >&6; }
34189	with_liblua="yes"
34190fi
34191
34192
34193elif test $pkg_failed = untried; then
34194     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34195$as_echo "no" >&6; }
34196
34197
34198pkg_failed=no
34199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
34200$as_echo_n "checking for LUA... " >&6; }
34201
34202if test -n "$LUA_CFLAGS"; then
34203    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
34204 elif test -n "$PKG_CONFIG"; then
34205    if test -n "$PKG_CONFIG" && \
34206    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
34207  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
34208  ac_status=$?
34209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34210  test $ac_status = 0; }; then
34211  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
34212		      test "x$?" != "x0" && pkg_failed=yes
34213else
34214  pkg_failed=yes
34215fi
34216 else
34217    pkg_failed=untried
34218fi
34219if test -n "$LUA_LIBS"; then
34220    pkg_cv_LUA_LIBS="$LUA_LIBS"
34221 elif test -n "$PKG_CONFIG"; then
34222    if test -n "$PKG_CONFIG" && \
34223    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
34224  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
34225  ac_status=$?
34226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34227  test $ac_status = 0; }; then
34228  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
34229		      test "x$?" != "x0" && pkg_failed=yes
34230else
34231  pkg_failed=yes
34232fi
34233 else
34234    pkg_failed=untried
34235fi
34236
34237
34238
34239if test $pkg_failed = yes; then
34240   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34241$as_echo "no" >&6; }
34242
34243if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34244        _pkg_short_errors_supported=yes
34245else
34246        _pkg_short_errors_supported=no
34247fi
34248        if test $_pkg_short_errors_supported = yes; then
34249	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
34250        else
34251	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
34252        fi
34253	# Put the nasty error message in config.log where it belongs
34254	echo "$LUA_PKG_ERRORS" >&5
34255
34256
34257
34258pkg_failed=no
34259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
34260$as_echo_n "checking for LUA... " >&6; }
34261
34262if test -n "$LUA_CFLAGS"; then
34263    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
34264 elif test -n "$PKG_CONFIG"; then
34265    if test -n "$PKG_CONFIG" && \
34266    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
34267  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
34268  ac_status=$?
34269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34270  test $ac_status = 0; }; then
34271  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
34272		      test "x$?" != "x0" && pkg_failed=yes
34273else
34274  pkg_failed=yes
34275fi
34276 else
34277    pkg_failed=untried
34278fi
34279if test -n "$LUA_LIBS"; then
34280    pkg_cv_LUA_LIBS="$LUA_LIBS"
34281 elif test -n "$PKG_CONFIG"; then
34282    if test -n "$PKG_CONFIG" && \
34283    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
34284  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
34285  ac_status=$?
34286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34287  test $ac_status = 0; }; then
34288  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
34289		      test "x$?" != "x0" && pkg_failed=yes
34290else
34291  pkg_failed=yes
34292fi
34293 else
34294    pkg_failed=untried
34295fi
34296
34297
34298
34299if test $pkg_failed = yes; then
34300   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34301$as_echo "no" >&6; }
34302
34303if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34304        _pkg_short_errors_supported=yes
34305else
34306        _pkg_short_errors_supported=no
34307fi
34308        if test $_pkg_short_errors_supported = yes; then
34309	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
34310        else
34311	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
34312        fi
34313	# Put the nasty error message in config.log where it belongs
34314	echo "$LUA_PKG_ERRORS" >&5
34315
34316	with_liblua="no (pkg-config cannot find liblua)"
34317
34318elif test $pkg_failed = untried; then
34319     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34320$as_echo "no" >&6; }
34321	with_liblua="no (pkg-config cannot find liblua)"
34322
34323else
34324	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
34325	LUA_LIBS=$pkg_cv_LUA_LIBS
34326        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34327$as_echo "yes" >&6; }
34328	with_liblua="yes"
34329fi
34330
34331
34332elif test $pkg_failed = untried; then
34333     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34334$as_echo "no" >&6; }
34335
34336
34337pkg_failed=no
34338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
34339$as_echo_n "checking for LUA... " >&6; }
34340
34341if test -n "$LUA_CFLAGS"; then
34342    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
34343 elif test -n "$PKG_CONFIG"; then
34344    if test -n "$PKG_CONFIG" && \
34345    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
34346  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
34347  ac_status=$?
34348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34349  test $ac_status = 0; }; then
34350  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
34351		      test "x$?" != "x0" && pkg_failed=yes
34352else
34353  pkg_failed=yes
34354fi
34355 else
34356    pkg_failed=untried
34357fi
34358if test -n "$LUA_LIBS"; then
34359    pkg_cv_LUA_LIBS="$LUA_LIBS"
34360 elif test -n "$PKG_CONFIG"; then
34361    if test -n "$PKG_CONFIG" && \
34362    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
34363  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
34364  ac_status=$?
34365  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34366  test $ac_status = 0; }; then
34367  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
34368		      test "x$?" != "x0" && pkg_failed=yes
34369else
34370  pkg_failed=yes
34371fi
34372 else
34373    pkg_failed=untried
34374fi
34375
34376
34377
34378if test $pkg_failed = yes; then
34379   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34380$as_echo "no" >&6; }
34381
34382if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34383        _pkg_short_errors_supported=yes
34384else
34385        _pkg_short_errors_supported=no
34386fi
34387        if test $_pkg_short_errors_supported = yes; then
34388	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
34389        else
34390	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
34391        fi
34392	# Put the nasty error message in config.log where it belongs
34393	echo "$LUA_PKG_ERRORS" >&5
34394
34395	with_liblua="no (pkg-config cannot find liblua)"
34396
34397elif test $pkg_failed = untried; then
34398     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34399$as_echo "no" >&6; }
34400	with_liblua="no (pkg-config cannot find liblua)"
34401
34402else
34403	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
34404	LUA_LIBS=$pkg_cv_LUA_LIBS
34405        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34406$as_echo "yes" >&6; }
34407	with_liblua="yes"
34408fi
34409
34410
34411else
34412	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
34413	LUA_LIBS=$pkg_cv_LUA_LIBS
34414        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34415$as_echo "yes" >&6; }
34416	with_liblua="yes"
34417fi
34418
34419
34420else
34421	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
34422	LUA_LIBS=$pkg_cv_LUA_LIBS
34423        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34424$as_echo "yes" >&6; }
34425	with_liblua="yes"
34426fi
34427
34428
34429else
34430	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
34431	LUA_LIBS=$pkg_cv_LUA_LIBS
34432        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34433$as_echo "yes" >&6; }
34434	with_liblua="yes"
34435fi
34436
34437
34438elif test $pkg_failed = untried; then
34439     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34440$as_echo "no" >&6; }
34441
34442
34443pkg_failed=no
34444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
34445$as_echo_n "checking for LUA... " >&6; }
34446
34447if test -n "$LUA_CFLAGS"; then
34448    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
34449 elif test -n "$PKG_CONFIG"; then
34450    if test -n "$PKG_CONFIG" && \
34451    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
34452  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
34453  ac_status=$?
34454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34455  test $ac_status = 0; }; then
34456  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
34457		      test "x$?" != "x0" && pkg_failed=yes
34458else
34459  pkg_failed=yes
34460fi
34461 else
34462    pkg_failed=untried
34463fi
34464if test -n "$LUA_LIBS"; then
34465    pkg_cv_LUA_LIBS="$LUA_LIBS"
34466 elif test -n "$PKG_CONFIG"; then
34467    if test -n "$PKG_CONFIG" && \
34468    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
34469  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
34470  ac_status=$?
34471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34472  test $ac_status = 0; }; then
34473  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
34474		      test "x$?" != "x0" && pkg_failed=yes
34475else
34476  pkg_failed=yes
34477fi
34478 else
34479    pkg_failed=untried
34480fi
34481
34482
34483
34484if test $pkg_failed = yes; then
34485   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34486$as_echo "no" >&6; }
34487
34488if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34489        _pkg_short_errors_supported=yes
34490else
34491        _pkg_short_errors_supported=no
34492fi
34493        if test $_pkg_short_errors_supported = yes; then
34494	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
34495        else
34496	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
34497        fi
34498	# Put the nasty error message in config.log where it belongs
34499	echo "$LUA_PKG_ERRORS" >&5
34500
34501
34502
34503pkg_failed=no
34504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
34505$as_echo_n "checking for LUA... " >&6; }
34506
34507if test -n "$LUA_CFLAGS"; then
34508    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
34509 elif test -n "$PKG_CONFIG"; then
34510    if test -n "$PKG_CONFIG" && \
34511    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
34512  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
34513  ac_status=$?
34514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34515  test $ac_status = 0; }; then
34516  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
34517		      test "x$?" != "x0" && pkg_failed=yes
34518else
34519  pkg_failed=yes
34520fi
34521 else
34522    pkg_failed=untried
34523fi
34524if test -n "$LUA_LIBS"; then
34525    pkg_cv_LUA_LIBS="$LUA_LIBS"
34526 elif test -n "$PKG_CONFIG"; then
34527    if test -n "$PKG_CONFIG" && \
34528    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
34529  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
34530  ac_status=$?
34531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34532  test $ac_status = 0; }; then
34533  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
34534		      test "x$?" != "x0" && pkg_failed=yes
34535else
34536  pkg_failed=yes
34537fi
34538 else
34539    pkg_failed=untried
34540fi
34541
34542
34543
34544if test $pkg_failed = yes; then
34545   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34546$as_echo "no" >&6; }
34547
34548if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34549        _pkg_short_errors_supported=yes
34550else
34551        _pkg_short_errors_supported=no
34552fi
34553        if test $_pkg_short_errors_supported = yes; then
34554	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
34555        else
34556	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
34557        fi
34558	# Put the nasty error message in config.log where it belongs
34559	echo "$LUA_PKG_ERRORS" >&5
34560
34561
34562
34563pkg_failed=no
34564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
34565$as_echo_n "checking for LUA... " >&6; }
34566
34567if test -n "$LUA_CFLAGS"; then
34568    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
34569 elif test -n "$PKG_CONFIG"; then
34570    if test -n "$PKG_CONFIG" && \
34571    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
34572  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
34573  ac_status=$?
34574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34575  test $ac_status = 0; }; then
34576  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
34577		      test "x$?" != "x0" && pkg_failed=yes
34578else
34579  pkg_failed=yes
34580fi
34581 else
34582    pkg_failed=untried
34583fi
34584if test -n "$LUA_LIBS"; then
34585    pkg_cv_LUA_LIBS="$LUA_LIBS"
34586 elif test -n "$PKG_CONFIG"; then
34587    if test -n "$PKG_CONFIG" && \
34588    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
34589  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
34590  ac_status=$?
34591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34592  test $ac_status = 0; }; then
34593  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
34594		      test "x$?" != "x0" && pkg_failed=yes
34595else
34596  pkg_failed=yes
34597fi
34598 else
34599    pkg_failed=untried
34600fi
34601
34602
34603
34604if test $pkg_failed = yes; then
34605   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34606$as_echo "no" >&6; }
34607
34608if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34609        _pkg_short_errors_supported=yes
34610else
34611        _pkg_short_errors_supported=no
34612fi
34613        if test $_pkg_short_errors_supported = yes; then
34614	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
34615        else
34616	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
34617        fi
34618	# Put the nasty error message in config.log where it belongs
34619	echo "$LUA_PKG_ERRORS" >&5
34620
34621
34622
34623pkg_failed=no
34624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
34625$as_echo_n "checking for LUA... " >&6; }
34626
34627if test -n "$LUA_CFLAGS"; then
34628    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
34629 elif test -n "$PKG_CONFIG"; then
34630    if test -n "$PKG_CONFIG" && \
34631    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
34632  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
34633  ac_status=$?
34634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34635  test $ac_status = 0; }; then
34636  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
34637		      test "x$?" != "x0" && pkg_failed=yes
34638else
34639  pkg_failed=yes
34640fi
34641 else
34642    pkg_failed=untried
34643fi
34644if test -n "$LUA_LIBS"; then
34645    pkg_cv_LUA_LIBS="$LUA_LIBS"
34646 elif test -n "$PKG_CONFIG"; then
34647    if test -n "$PKG_CONFIG" && \
34648    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
34649  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
34650  ac_status=$?
34651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34652  test $ac_status = 0; }; then
34653  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
34654		      test "x$?" != "x0" && pkg_failed=yes
34655else
34656  pkg_failed=yes
34657fi
34658 else
34659    pkg_failed=untried
34660fi
34661
34662
34663
34664if test $pkg_failed = yes; then
34665   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34666$as_echo "no" >&6; }
34667
34668if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34669        _pkg_short_errors_supported=yes
34670else
34671        _pkg_short_errors_supported=no
34672fi
34673        if test $_pkg_short_errors_supported = yes; then
34674	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
34675        else
34676	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
34677        fi
34678	# Put the nasty error message in config.log where it belongs
34679	echo "$LUA_PKG_ERRORS" >&5
34680
34681	with_liblua="no (pkg-config cannot find liblua)"
34682
34683elif test $pkg_failed = untried; then
34684     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34685$as_echo "no" >&6; }
34686	with_liblua="no (pkg-config cannot find liblua)"
34687
34688else
34689	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
34690	LUA_LIBS=$pkg_cv_LUA_LIBS
34691        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34692$as_echo "yes" >&6; }
34693	with_liblua="yes"
34694fi
34695
34696
34697elif test $pkg_failed = untried; then
34698     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34699$as_echo "no" >&6; }
34700
34701
34702pkg_failed=no
34703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
34704$as_echo_n "checking for LUA... " >&6; }
34705
34706if test -n "$LUA_CFLAGS"; then
34707    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
34708 elif test -n "$PKG_CONFIG"; then
34709    if test -n "$PKG_CONFIG" && \
34710    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
34711  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
34712  ac_status=$?
34713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34714  test $ac_status = 0; }; then
34715  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
34716		      test "x$?" != "x0" && pkg_failed=yes
34717else
34718  pkg_failed=yes
34719fi
34720 else
34721    pkg_failed=untried
34722fi
34723if test -n "$LUA_LIBS"; then
34724    pkg_cv_LUA_LIBS="$LUA_LIBS"
34725 elif test -n "$PKG_CONFIG"; then
34726    if test -n "$PKG_CONFIG" && \
34727    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
34728  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
34729  ac_status=$?
34730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34731  test $ac_status = 0; }; then
34732  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
34733		      test "x$?" != "x0" && pkg_failed=yes
34734else
34735  pkg_failed=yes
34736fi
34737 else
34738    pkg_failed=untried
34739fi
34740
34741
34742
34743if test $pkg_failed = yes; then
34744   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34745$as_echo "no" >&6; }
34746
34747if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34748        _pkg_short_errors_supported=yes
34749else
34750        _pkg_short_errors_supported=no
34751fi
34752        if test $_pkg_short_errors_supported = yes; then
34753	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
34754        else
34755	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
34756        fi
34757	# Put the nasty error message in config.log where it belongs
34758	echo "$LUA_PKG_ERRORS" >&5
34759
34760	with_liblua="no (pkg-config cannot find liblua)"
34761
34762elif test $pkg_failed = untried; then
34763     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34764$as_echo "no" >&6; }
34765	with_liblua="no (pkg-config cannot find liblua)"
34766
34767else
34768	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
34769	LUA_LIBS=$pkg_cv_LUA_LIBS
34770        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34771$as_echo "yes" >&6; }
34772	with_liblua="yes"
34773fi
34774
34775
34776else
34777	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
34778	LUA_LIBS=$pkg_cv_LUA_LIBS
34779        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34780$as_echo "yes" >&6; }
34781	with_liblua="yes"
34782fi
34783
34784
34785elif test $pkg_failed = untried; then
34786     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34787$as_echo "no" >&6; }
34788
34789
34790pkg_failed=no
34791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
34792$as_echo_n "checking for LUA... " >&6; }
34793
34794if test -n "$LUA_CFLAGS"; then
34795    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
34796 elif test -n "$PKG_CONFIG"; then
34797    if test -n "$PKG_CONFIG" && \
34798    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
34799  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
34800  ac_status=$?
34801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34802  test $ac_status = 0; }; then
34803  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
34804		      test "x$?" != "x0" && pkg_failed=yes
34805else
34806  pkg_failed=yes
34807fi
34808 else
34809    pkg_failed=untried
34810fi
34811if test -n "$LUA_LIBS"; then
34812    pkg_cv_LUA_LIBS="$LUA_LIBS"
34813 elif test -n "$PKG_CONFIG"; then
34814    if test -n "$PKG_CONFIG" && \
34815    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
34816  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
34817  ac_status=$?
34818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34819  test $ac_status = 0; }; then
34820  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
34821		      test "x$?" != "x0" && pkg_failed=yes
34822else
34823  pkg_failed=yes
34824fi
34825 else
34826    pkg_failed=untried
34827fi
34828
34829
34830
34831if test $pkg_failed = yes; then
34832   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34833$as_echo "no" >&6; }
34834
34835if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34836        _pkg_short_errors_supported=yes
34837else
34838        _pkg_short_errors_supported=no
34839fi
34840        if test $_pkg_short_errors_supported = yes; then
34841	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
34842        else
34843	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
34844        fi
34845	# Put the nasty error message in config.log where it belongs
34846	echo "$LUA_PKG_ERRORS" >&5
34847
34848
34849
34850pkg_failed=no
34851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
34852$as_echo_n "checking for LUA... " >&6; }
34853
34854if test -n "$LUA_CFLAGS"; then
34855    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
34856 elif test -n "$PKG_CONFIG"; then
34857    if test -n "$PKG_CONFIG" && \
34858    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
34859  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
34860  ac_status=$?
34861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34862  test $ac_status = 0; }; then
34863  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
34864		      test "x$?" != "x0" && pkg_failed=yes
34865else
34866  pkg_failed=yes
34867fi
34868 else
34869    pkg_failed=untried
34870fi
34871if test -n "$LUA_LIBS"; then
34872    pkg_cv_LUA_LIBS="$LUA_LIBS"
34873 elif test -n "$PKG_CONFIG"; then
34874    if test -n "$PKG_CONFIG" && \
34875    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
34876  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
34877  ac_status=$?
34878  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34879  test $ac_status = 0; }; then
34880  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
34881		      test "x$?" != "x0" && pkg_failed=yes
34882else
34883  pkg_failed=yes
34884fi
34885 else
34886    pkg_failed=untried
34887fi
34888
34889
34890
34891if test $pkg_failed = yes; then
34892   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34893$as_echo "no" >&6; }
34894
34895if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34896        _pkg_short_errors_supported=yes
34897else
34898        _pkg_short_errors_supported=no
34899fi
34900        if test $_pkg_short_errors_supported = yes; then
34901	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
34902        else
34903	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
34904        fi
34905	# Put the nasty error message in config.log where it belongs
34906	echo "$LUA_PKG_ERRORS" >&5
34907
34908	with_liblua="no (pkg-config cannot find liblua)"
34909
34910elif test $pkg_failed = untried; then
34911     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34912$as_echo "no" >&6; }
34913	with_liblua="no (pkg-config cannot find liblua)"
34914
34915else
34916	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
34917	LUA_LIBS=$pkg_cv_LUA_LIBS
34918        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34919$as_echo "yes" >&6; }
34920	with_liblua="yes"
34921fi
34922
34923
34924elif test $pkg_failed = untried; then
34925     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34926$as_echo "no" >&6; }
34927
34928
34929pkg_failed=no
34930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
34931$as_echo_n "checking for LUA... " >&6; }
34932
34933if test -n "$LUA_CFLAGS"; then
34934    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
34935 elif test -n "$PKG_CONFIG"; then
34936    if test -n "$PKG_CONFIG" && \
34937    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
34938  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
34939  ac_status=$?
34940  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34941  test $ac_status = 0; }; then
34942  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
34943		      test "x$?" != "x0" && pkg_failed=yes
34944else
34945  pkg_failed=yes
34946fi
34947 else
34948    pkg_failed=untried
34949fi
34950if test -n "$LUA_LIBS"; then
34951    pkg_cv_LUA_LIBS="$LUA_LIBS"
34952 elif test -n "$PKG_CONFIG"; then
34953    if test -n "$PKG_CONFIG" && \
34954    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
34955  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
34956  ac_status=$?
34957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34958  test $ac_status = 0; }; then
34959  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
34960		      test "x$?" != "x0" && pkg_failed=yes
34961else
34962  pkg_failed=yes
34963fi
34964 else
34965    pkg_failed=untried
34966fi
34967
34968
34969
34970if test $pkg_failed = yes; then
34971   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34972$as_echo "no" >&6; }
34973
34974if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34975        _pkg_short_errors_supported=yes
34976else
34977        _pkg_short_errors_supported=no
34978fi
34979        if test $_pkg_short_errors_supported = yes; then
34980	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
34981        else
34982	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
34983        fi
34984	# Put the nasty error message in config.log where it belongs
34985	echo "$LUA_PKG_ERRORS" >&5
34986
34987	with_liblua="no (pkg-config cannot find liblua)"
34988
34989elif test $pkg_failed = untried; then
34990     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34991$as_echo "no" >&6; }
34992	with_liblua="no (pkg-config cannot find liblua)"
34993
34994else
34995	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
34996	LUA_LIBS=$pkg_cv_LUA_LIBS
34997        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34998$as_echo "yes" >&6; }
34999	with_liblua="yes"
35000fi
35001
35002
35003else
35004	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
35005	LUA_LIBS=$pkg_cv_LUA_LIBS
35006        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35007$as_echo "yes" >&6; }
35008	with_liblua="yes"
35009fi
35010
35011
35012else
35013	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
35014	LUA_LIBS=$pkg_cv_LUA_LIBS
35015        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35016$as_echo "yes" >&6; }
35017	with_liblua="yes"
35018fi
35019
35020
35021elif test $pkg_failed = untried; then
35022     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35023$as_echo "no" >&6; }
35024
35025
35026pkg_failed=no
35027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
35028$as_echo_n "checking for LUA... " >&6; }
35029
35030if test -n "$LUA_CFLAGS"; then
35031    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
35032 elif test -n "$PKG_CONFIG"; then
35033    if test -n "$PKG_CONFIG" && \
35034    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
35035  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
35036  ac_status=$?
35037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35038  test $ac_status = 0; }; then
35039  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
35040		      test "x$?" != "x0" && pkg_failed=yes
35041else
35042  pkg_failed=yes
35043fi
35044 else
35045    pkg_failed=untried
35046fi
35047if test -n "$LUA_LIBS"; then
35048    pkg_cv_LUA_LIBS="$LUA_LIBS"
35049 elif test -n "$PKG_CONFIG"; then
35050    if test -n "$PKG_CONFIG" && \
35051    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
35052  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
35053  ac_status=$?
35054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35055  test $ac_status = 0; }; then
35056  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
35057		      test "x$?" != "x0" && pkg_failed=yes
35058else
35059  pkg_failed=yes
35060fi
35061 else
35062    pkg_failed=untried
35063fi
35064
35065
35066
35067if test $pkg_failed = yes; then
35068   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35069$as_echo "no" >&6; }
35070
35071if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35072        _pkg_short_errors_supported=yes
35073else
35074        _pkg_short_errors_supported=no
35075fi
35076        if test $_pkg_short_errors_supported = yes; then
35077	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
35078        else
35079	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
35080        fi
35081	# Put the nasty error message in config.log where it belongs
35082	echo "$LUA_PKG_ERRORS" >&5
35083
35084
35085
35086pkg_failed=no
35087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
35088$as_echo_n "checking for LUA... " >&6; }
35089
35090if test -n "$LUA_CFLAGS"; then
35091    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
35092 elif test -n "$PKG_CONFIG"; then
35093    if test -n "$PKG_CONFIG" && \
35094    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
35095  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
35096  ac_status=$?
35097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35098  test $ac_status = 0; }; then
35099  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
35100		      test "x$?" != "x0" && pkg_failed=yes
35101else
35102  pkg_failed=yes
35103fi
35104 else
35105    pkg_failed=untried
35106fi
35107if test -n "$LUA_LIBS"; then
35108    pkg_cv_LUA_LIBS="$LUA_LIBS"
35109 elif test -n "$PKG_CONFIG"; then
35110    if test -n "$PKG_CONFIG" && \
35111    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
35112  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
35113  ac_status=$?
35114  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35115  test $ac_status = 0; }; then
35116  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
35117		      test "x$?" != "x0" && pkg_failed=yes
35118else
35119  pkg_failed=yes
35120fi
35121 else
35122    pkg_failed=untried
35123fi
35124
35125
35126
35127if test $pkg_failed = yes; then
35128   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35129$as_echo "no" >&6; }
35130
35131if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35132        _pkg_short_errors_supported=yes
35133else
35134        _pkg_short_errors_supported=no
35135fi
35136        if test $_pkg_short_errors_supported = yes; then
35137	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
35138        else
35139	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
35140        fi
35141	# Put the nasty error message in config.log where it belongs
35142	echo "$LUA_PKG_ERRORS" >&5
35143
35144
35145
35146pkg_failed=no
35147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
35148$as_echo_n "checking for LUA... " >&6; }
35149
35150if test -n "$LUA_CFLAGS"; then
35151    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
35152 elif test -n "$PKG_CONFIG"; then
35153    if test -n "$PKG_CONFIG" && \
35154    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
35155  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
35156  ac_status=$?
35157  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35158  test $ac_status = 0; }; then
35159  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
35160		      test "x$?" != "x0" && pkg_failed=yes
35161else
35162  pkg_failed=yes
35163fi
35164 else
35165    pkg_failed=untried
35166fi
35167if test -n "$LUA_LIBS"; then
35168    pkg_cv_LUA_LIBS="$LUA_LIBS"
35169 elif test -n "$PKG_CONFIG"; then
35170    if test -n "$PKG_CONFIG" && \
35171    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
35172  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
35173  ac_status=$?
35174  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35175  test $ac_status = 0; }; then
35176  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
35177		      test "x$?" != "x0" && pkg_failed=yes
35178else
35179  pkg_failed=yes
35180fi
35181 else
35182    pkg_failed=untried
35183fi
35184
35185
35186
35187if test $pkg_failed = yes; then
35188   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35189$as_echo "no" >&6; }
35190
35191if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35192        _pkg_short_errors_supported=yes
35193else
35194        _pkg_short_errors_supported=no
35195fi
35196        if test $_pkg_short_errors_supported = yes; then
35197	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
35198        else
35199	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
35200        fi
35201	# Put the nasty error message in config.log where it belongs
35202	echo "$LUA_PKG_ERRORS" >&5
35203
35204	with_liblua="no (pkg-config cannot find liblua)"
35205
35206elif test $pkg_failed = untried; then
35207     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35208$as_echo "no" >&6; }
35209	with_liblua="no (pkg-config cannot find liblua)"
35210
35211else
35212	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
35213	LUA_LIBS=$pkg_cv_LUA_LIBS
35214        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35215$as_echo "yes" >&6; }
35216	with_liblua="yes"
35217fi
35218
35219
35220elif test $pkg_failed = untried; then
35221     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35222$as_echo "no" >&6; }
35223
35224
35225pkg_failed=no
35226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
35227$as_echo_n "checking for LUA... " >&6; }
35228
35229if test -n "$LUA_CFLAGS"; then
35230    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
35231 elif test -n "$PKG_CONFIG"; then
35232    if test -n "$PKG_CONFIG" && \
35233    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
35234  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
35235  ac_status=$?
35236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35237  test $ac_status = 0; }; then
35238  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
35239		      test "x$?" != "x0" && pkg_failed=yes
35240else
35241  pkg_failed=yes
35242fi
35243 else
35244    pkg_failed=untried
35245fi
35246if test -n "$LUA_LIBS"; then
35247    pkg_cv_LUA_LIBS="$LUA_LIBS"
35248 elif test -n "$PKG_CONFIG"; then
35249    if test -n "$PKG_CONFIG" && \
35250    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
35251  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
35252  ac_status=$?
35253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35254  test $ac_status = 0; }; then
35255  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
35256		      test "x$?" != "x0" && pkg_failed=yes
35257else
35258  pkg_failed=yes
35259fi
35260 else
35261    pkg_failed=untried
35262fi
35263
35264
35265
35266if test $pkg_failed = yes; then
35267   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35268$as_echo "no" >&6; }
35269
35270if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35271        _pkg_short_errors_supported=yes
35272else
35273        _pkg_short_errors_supported=no
35274fi
35275        if test $_pkg_short_errors_supported = yes; then
35276	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
35277        else
35278	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
35279        fi
35280	# Put the nasty error message in config.log where it belongs
35281	echo "$LUA_PKG_ERRORS" >&5
35282
35283	with_liblua="no (pkg-config cannot find liblua)"
35284
35285elif test $pkg_failed = untried; then
35286     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35287$as_echo "no" >&6; }
35288	with_liblua="no (pkg-config cannot find liblua)"
35289
35290else
35291	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
35292	LUA_LIBS=$pkg_cv_LUA_LIBS
35293        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35294$as_echo "yes" >&6; }
35295	with_liblua="yes"
35296fi
35297
35298
35299else
35300	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
35301	LUA_LIBS=$pkg_cv_LUA_LIBS
35302        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35303$as_echo "yes" >&6; }
35304	with_liblua="yes"
35305fi
35306
35307
35308elif test $pkg_failed = untried; then
35309     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35310$as_echo "no" >&6; }
35311
35312
35313pkg_failed=no
35314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
35315$as_echo_n "checking for LUA... " >&6; }
35316
35317if test -n "$LUA_CFLAGS"; then
35318    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
35319 elif test -n "$PKG_CONFIG"; then
35320    if test -n "$PKG_CONFIG" && \
35321    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
35322  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
35323  ac_status=$?
35324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35325  test $ac_status = 0; }; then
35326  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
35327		      test "x$?" != "x0" && pkg_failed=yes
35328else
35329  pkg_failed=yes
35330fi
35331 else
35332    pkg_failed=untried
35333fi
35334if test -n "$LUA_LIBS"; then
35335    pkg_cv_LUA_LIBS="$LUA_LIBS"
35336 elif test -n "$PKG_CONFIG"; then
35337    if test -n "$PKG_CONFIG" && \
35338    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
35339  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
35340  ac_status=$?
35341  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35342  test $ac_status = 0; }; then
35343  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
35344		      test "x$?" != "x0" && pkg_failed=yes
35345else
35346  pkg_failed=yes
35347fi
35348 else
35349    pkg_failed=untried
35350fi
35351
35352
35353
35354if test $pkg_failed = yes; then
35355   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35356$as_echo "no" >&6; }
35357
35358if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35359        _pkg_short_errors_supported=yes
35360else
35361        _pkg_short_errors_supported=no
35362fi
35363        if test $_pkg_short_errors_supported = yes; then
35364	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
35365        else
35366	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
35367        fi
35368	# Put the nasty error message in config.log where it belongs
35369	echo "$LUA_PKG_ERRORS" >&5
35370
35371
35372
35373pkg_failed=no
35374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
35375$as_echo_n "checking for LUA... " >&6; }
35376
35377if test -n "$LUA_CFLAGS"; then
35378    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
35379 elif test -n "$PKG_CONFIG"; then
35380    if test -n "$PKG_CONFIG" && \
35381    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
35382  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
35383  ac_status=$?
35384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35385  test $ac_status = 0; }; then
35386  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
35387		      test "x$?" != "x0" && pkg_failed=yes
35388else
35389  pkg_failed=yes
35390fi
35391 else
35392    pkg_failed=untried
35393fi
35394if test -n "$LUA_LIBS"; then
35395    pkg_cv_LUA_LIBS="$LUA_LIBS"
35396 elif test -n "$PKG_CONFIG"; then
35397    if test -n "$PKG_CONFIG" && \
35398    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
35399  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
35400  ac_status=$?
35401  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35402  test $ac_status = 0; }; then
35403  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
35404		      test "x$?" != "x0" && pkg_failed=yes
35405else
35406  pkg_failed=yes
35407fi
35408 else
35409    pkg_failed=untried
35410fi
35411
35412
35413
35414if test $pkg_failed = yes; then
35415   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35416$as_echo "no" >&6; }
35417
35418if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35419        _pkg_short_errors_supported=yes
35420else
35421        _pkg_short_errors_supported=no
35422fi
35423        if test $_pkg_short_errors_supported = yes; then
35424	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
35425        else
35426	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
35427        fi
35428	# Put the nasty error message in config.log where it belongs
35429	echo "$LUA_PKG_ERRORS" >&5
35430
35431	with_liblua="no (pkg-config cannot find liblua)"
35432
35433elif test $pkg_failed = untried; then
35434     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35435$as_echo "no" >&6; }
35436	with_liblua="no (pkg-config cannot find liblua)"
35437
35438else
35439	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
35440	LUA_LIBS=$pkg_cv_LUA_LIBS
35441        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35442$as_echo "yes" >&6; }
35443	with_liblua="yes"
35444fi
35445
35446
35447elif test $pkg_failed = untried; then
35448     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35449$as_echo "no" >&6; }
35450
35451
35452pkg_failed=no
35453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
35454$as_echo_n "checking for LUA... " >&6; }
35455
35456if test -n "$LUA_CFLAGS"; then
35457    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
35458 elif test -n "$PKG_CONFIG"; then
35459    if test -n "$PKG_CONFIG" && \
35460    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
35461  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
35462  ac_status=$?
35463  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35464  test $ac_status = 0; }; then
35465  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
35466		      test "x$?" != "x0" && pkg_failed=yes
35467else
35468  pkg_failed=yes
35469fi
35470 else
35471    pkg_failed=untried
35472fi
35473if test -n "$LUA_LIBS"; then
35474    pkg_cv_LUA_LIBS="$LUA_LIBS"
35475 elif test -n "$PKG_CONFIG"; then
35476    if test -n "$PKG_CONFIG" && \
35477    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
35478  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
35479  ac_status=$?
35480  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35481  test $ac_status = 0; }; then
35482  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
35483		      test "x$?" != "x0" && pkg_failed=yes
35484else
35485  pkg_failed=yes
35486fi
35487 else
35488    pkg_failed=untried
35489fi
35490
35491
35492
35493if test $pkg_failed = yes; then
35494   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35495$as_echo "no" >&6; }
35496
35497if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35498        _pkg_short_errors_supported=yes
35499else
35500        _pkg_short_errors_supported=no
35501fi
35502        if test $_pkg_short_errors_supported = yes; then
35503	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
35504        else
35505	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
35506        fi
35507	# Put the nasty error message in config.log where it belongs
35508	echo "$LUA_PKG_ERRORS" >&5
35509
35510	with_liblua="no (pkg-config cannot find liblua)"
35511
35512elif test $pkg_failed = untried; then
35513     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35514$as_echo "no" >&6; }
35515	with_liblua="no (pkg-config cannot find liblua)"
35516
35517else
35518	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
35519	LUA_LIBS=$pkg_cv_LUA_LIBS
35520        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35521$as_echo "yes" >&6; }
35522	with_liblua="yes"
35523fi
35524
35525
35526else
35527	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
35528	LUA_LIBS=$pkg_cv_LUA_LIBS
35529        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35530$as_echo "yes" >&6; }
35531	with_liblua="yes"
35532fi
35533
35534
35535else
35536	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
35537	LUA_LIBS=$pkg_cv_LUA_LIBS
35538        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35539$as_echo "yes" >&6; }
35540	with_liblua="yes"
35541fi
35542
35543
35544else
35545	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
35546	LUA_LIBS=$pkg_cv_LUA_LIBS
35547        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35548$as_echo "yes" >&6; }
35549	with_liblua="yes"
35550fi
35551
35552
35553else
35554	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
35555	LUA_LIBS=$pkg_cv_LUA_LIBS
35556        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35557$as_echo "yes" >&6; }
35558	with_liblua="yes"
35559fi
35560
35561
35562else
35563	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
35564	LUA_LIBS=$pkg_cv_LUA_LIBS
35565        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35566$as_echo "yes" >&6; }
35567	with_liblua="yes"
35568fi
35569
35570
35571else
35572	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
35573	LUA_LIBS=$pkg_cv_LUA_LIBS
35574        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35575$as_echo "yes" >&6; }
35576	with_liblua="yes"
35577fi
35578
35579
35580elif test $pkg_failed = untried; then
35581     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35582$as_echo "no" >&6; }
35583
35584
35585pkg_failed=no
35586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
35587$as_echo_n "checking for LUA... " >&6; }
35588
35589if test -n "$LUA_CFLAGS"; then
35590    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
35591 elif test -n "$PKG_CONFIG"; then
35592    if test -n "$PKG_CONFIG" && \
35593    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua53\""; } >&5
35594  ($PKG_CONFIG --exists --print-errors "lua53") 2>&5
35595  ac_status=$?
35596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35597  test $ac_status = 0; }; then
35598  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua53" 2>/dev/null`
35599		      test "x$?" != "x0" && pkg_failed=yes
35600else
35601  pkg_failed=yes
35602fi
35603 else
35604    pkg_failed=untried
35605fi
35606if test -n "$LUA_LIBS"; then
35607    pkg_cv_LUA_LIBS="$LUA_LIBS"
35608 elif test -n "$PKG_CONFIG"; then
35609    if test -n "$PKG_CONFIG" && \
35610    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua53\""; } >&5
35611  ($PKG_CONFIG --exists --print-errors "lua53") 2>&5
35612  ac_status=$?
35613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35614  test $ac_status = 0; }; then
35615  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua53" 2>/dev/null`
35616		      test "x$?" != "x0" && pkg_failed=yes
35617else
35618  pkg_failed=yes
35619fi
35620 else
35621    pkg_failed=untried
35622fi
35623
35624
35625
35626if test $pkg_failed = yes; then
35627   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35628$as_echo "no" >&6; }
35629
35630if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35631        _pkg_short_errors_supported=yes
35632else
35633        _pkg_short_errors_supported=no
35634fi
35635        if test $_pkg_short_errors_supported = yes; then
35636	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua53" 2>&1`
35637        else
35638	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua53" 2>&1`
35639        fi
35640	# Put the nasty error message in config.log where it belongs
35641	echo "$LUA_PKG_ERRORS" >&5
35642
35643
35644
35645pkg_failed=no
35646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
35647$as_echo_n "checking for LUA... " >&6; }
35648
35649if test -n "$LUA_CFLAGS"; then
35650    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
35651 elif test -n "$PKG_CONFIG"; then
35652    if test -n "$PKG_CONFIG" && \
35653    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
35654  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
35655  ac_status=$?
35656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35657  test $ac_status = 0; }; then
35658  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.2" 2>/dev/null`
35659		      test "x$?" != "x0" && pkg_failed=yes
35660else
35661  pkg_failed=yes
35662fi
35663 else
35664    pkg_failed=untried
35665fi
35666if test -n "$LUA_LIBS"; then
35667    pkg_cv_LUA_LIBS="$LUA_LIBS"
35668 elif test -n "$PKG_CONFIG"; then
35669    if test -n "$PKG_CONFIG" && \
35670    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
35671  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
35672  ac_status=$?
35673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35674  test $ac_status = 0; }; then
35675  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.2" 2>/dev/null`
35676		      test "x$?" != "x0" && pkg_failed=yes
35677else
35678  pkg_failed=yes
35679fi
35680 else
35681    pkg_failed=untried
35682fi
35683
35684
35685
35686if test $pkg_failed = yes; then
35687   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35688$as_echo "no" >&6; }
35689
35690if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35691        _pkg_short_errors_supported=yes
35692else
35693        _pkg_short_errors_supported=no
35694fi
35695        if test $_pkg_short_errors_supported = yes; then
35696	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.2" 2>&1`
35697        else
35698	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.2" 2>&1`
35699        fi
35700	# Put the nasty error message in config.log where it belongs
35701	echo "$LUA_PKG_ERRORS" >&5
35702
35703
35704
35705pkg_failed=no
35706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
35707$as_echo_n "checking for LUA... " >&6; }
35708
35709if test -n "$LUA_CFLAGS"; then
35710    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
35711 elif test -n "$PKG_CONFIG"; then
35712    if test -n "$PKG_CONFIG" && \
35713    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
35714  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
35715  ac_status=$?
35716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35717  test $ac_status = 0; }; then
35718  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
35719		      test "x$?" != "x0" && pkg_failed=yes
35720else
35721  pkg_failed=yes
35722fi
35723 else
35724    pkg_failed=untried
35725fi
35726if test -n "$LUA_LIBS"; then
35727    pkg_cv_LUA_LIBS="$LUA_LIBS"
35728 elif test -n "$PKG_CONFIG"; then
35729    if test -n "$PKG_CONFIG" && \
35730    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
35731  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
35732  ac_status=$?
35733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35734  test $ac_status = 0; }; then
35735  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
35736		      test "x$?" != "x0" && pkg_failed=yes
35737else
35738  pkg_failed=yes
35739fi
35740 else
35741    pkg_failed=untried
35742fi
35743
35744
35745
35746if test $pkg_failed = yes; then
35747   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35748$as_echo "no" >&6; }
35749
35750if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35751        _pkg_short_errors_supported=yes
35752else
35753        _pkg_short_errors_supported=no
35754fi
35755        if test $_pkg_short_errors_supported = yes; then
35756	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
35757        else
35758	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
35759        fi
35760	# Put the nasty error message in config.log where it belongs
35761	echo "$LUA_PKG_ERRORS" >&5
35762
35763
35764
35765pkg_failed=no
35766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
35767$as_echo_n "checking for LUA... " >&6; }
35768
35769if test -n "$LUA_CFLAGS"; then
35770    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
35771 elif test -n "$PKG_CONFIG"; then
35772    if test -n "$PKG_CONFIG" && \
35773    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
35774  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
35775  ac_status=$?
35776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35777  test $ac_status = 0; }; then
35778  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
35779		      test "x$?" != "x0" && pkg_failed=yes
35780else
35781  pkg_failed=yes
35782fi
35783 else
35784    pkg_failed=untried
35785fi
35786if test -n "$LUA_LIBS"; then
35787    pkg_cv_LUA_LIBS="$LUA_LIBS"
35788 elif test -n "$PKG_CONFIG"; then
35789    if test -n "$PKG_CONFIG" && \
35790    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
35791  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
35792  ac_status=$?
35793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35794  test $ac_status = 0; }; then
35795  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
35796		      test "x$?" != "x0" && pkg_failed=yes
35797else
35798  pkg_failed=yes
35799fi
35800 else
35801    pkg_failed=untried
35802fi
35803
35804
35805
35806if test $pkg_failed = yes; then
35807   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35808$as_echo "no" >&6; }
35809
35810if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35811        _pkg_short_errors_supported=yes
35812else
35813        _pkg_short_errors_supported=no
35814fi
35815        if test $_pkg_short_errors_supported = yes; then
35816	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
35817        else
35818	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
35819        fi
35820	# Put the nasty error message in config.log where it belongs
35821	echo "$LUA_PKG_ERRORS" >&5
35822
35823
35824
35825pkg_failed=no
35826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
35827$as_echo_n "checking for LUA... " >&6; }
35828
35829if test -n "$LUA_CFLAGS"; then
35830    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
35831 elif test -n "$PKG_CONFIG"; then
35832    if test -n "$PKG_CONFIG" && \
35833    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
35834  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
35835  ac_status=$?
35836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35837  test $ac_status = 0; }; then
35838  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
35839		      test "x$?" != "x0" && pkg_failed=yes
35840else
35841  pkg_failed=yes
35842fi
35843 else
35844    pkg_failed=untried
35845fi
35846if test -n "$LUA_LIBS"; then
35847    pkg_cv_LUA_LIBS="$LUA_LIBS"
35848 elif test -n "$PKG_CONFIG"; then
35849    if test -n "$PKG_CONFIG" && \
35850    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
35851  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
35852  ac_status=$?
35853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35854  test $ac_status = 0; }; then
35855  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
35856		      test "x$?" != "x0" && pkg_failed=yes
35857else
35858  pkg_failed=yes
35859fi
35860 else
35861    pkg_failed=untried
35862fi
35863
35864
35865
35866if test $pkg_failed = yes; then
35867   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35868$as_echo "no" >&6; }
35869
35870if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35871        _pkg_short_errors_supported=yes
35872else
35873        _pkg_short_errors_supported=no
35874fi
35875        if test $_pkg_short_errors_supported = yes; then
35876	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
35877        else
35878	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
35879        fi
35880	# Put the nasty error message in config.log where it belongs
35881	echo "$LUA_PKG_ERRORS" >&5
35882
35883
35884
35885pkg_failed=no
35886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
35887$as_echo_n "checking for LUA... " >&6; }
35888
35889if test -n "$LUA_CFLAGS"; then
35890    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
35891 elif test -n "$PKG_CONFIG"; then
35892    if test -n "$PKG_CONFIG" && \
35893    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
35894  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
35895  ac_status=$?
35896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35897  test $ac_status = 0; }; then
35898  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
35899		      test "x$?" != "x0" && pkg_failed=yes
35900else
35901  pkg_failed=yes
35902fi
35903 else
35904    pkg_failed=untried
35905fi
35906if test -n "$LUA_LIBS"; then
35907    pkg_cv_LUA_LIBS="$LUA_LIBS"
35908 elif test -n "$PKG_CONFIG"; then
35909    if test -n "$PKG_CONFIG" && \
35910    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
35911  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
35912  ac_status=$?
35913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35914  test $ac_status = 0; }; then
35915  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
35916		      test "x$?" != "x0" && pkg_failed=yes
35917else
35918  pkg_failed=yes
35919fi
35920 else
35921    pkg_failed=untried
35922fi
35923
35924
35925
35926if test $pkg_failed = yes; then
35927   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35928$as_echo "no" >&6; }
35929
35930if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35931        _pkg_short_errors_supported=yes
35932else
35933        _pkg_short_errors_supported=no
35934fi
35935        if test $_pkg_short_errors_supported = yes; then
35936	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
35937        else
35938	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
35939        fi
35940	# Put the nasty error message in config.log where it belongs
35941	echo "$LUA_PKG_ERRORS" >&5
35942
35943
35944
35945pkg_failed=no
35946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
35947$as_echo_n "checking for LUA... " >&6; }
35948
35949if test -n "$LUA_CFLAGS"; then
35950    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
35951 elif test -n "$PKG_CONFIG"; then
35952    if test -n "$PKG_CONFIG" && \
35953    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
35954  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
35955  ac_status=$?
35956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35957  test $ac_status = 0; }; then
35958  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
35959		      test "x$?" != "x0" && pkg_failed=yes
35960else
35961  pkg_failed=yes
35962fi
35963 else
35964    pkg_failed=untried
35965fi
35966if test -n "$LUA_LIBS"; then
35967    pkg_cv_LUA_LIBS="$LUA_LIBS"
35968 elif test -n "$PKG_CONFIG"; then
35969    if test -n "$PKG_CONFIG" && \
35970    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
35971  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
35972  ac_status=$?
35973  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35974  test $ac_status = 0; }; then
35975  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
35976		      test "x$?" != "x0" && pkg_failed=yes
35977else
35978  pkg_failed=yes
35979fi
35980 else
35981    pkg_failed=untried
35982fi
35983
35984
35985
35986if test $pkg_failed = yes; then
35987   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35988$as_echo "no" >&6; }
35989
35990if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35991        _pkg_short_errors_supported=yes
35992else
35993        _pkg_short_errors_supported=no
35994fi
35995        if test $_pkg_short_errors_supported = yes; then
35996	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
35997        else
35998	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
35999        fi
36000	# Put the nasty error message in config.log where it belongs
36001	echo "$LUA_PKG_ERRORS" >&5
36002
36003	with_liblua="no (pkg-config cannot find liblua)"
36004
36005elif test $pkg_failed = untried; then
36006     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36007$as_echo "no" >&6; }
36008	with_liblua="no (pkg-config cannot find liblua)"
36009
36010else
36011	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
36012	LUA_LIBS=$pkg_cv_LUA_LIBS
36013        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36014$as_echo "yes" >&6; }
36015	with_liblua="yes"
36016fi
36017
36018
36019elif test $pkg_failed = untried; then
36020     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36021$as_echo "no" >&6; }
36022
36023
36024pkg_failed=no
36025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
36026$as_echo_n "checking for LUA... " >&6; }
36027
36028if test -n "$LUA_CFLAGS"; then
36029    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
36030 elif test -n "$PKG_CONFIG"; then
36031    if test -n "$PKG_CONFIG" && \
36032    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
36033  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
36034  ac_status=$?
36035  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36036  test $ac_status = 0; }; then
36037  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
36038		      test "x$?" != "x0" && pkg_failed=yes
36039else
36040  pkg_failed=yes
36041fi
36042 else
36043    pkg_failed=untried
36044fi
36045if test -n "$LUA_LIBS"; then
36046    pkg_cv_LUA_LIBS="$LUA_LIBS"
36047 elif test -n "$PKG_CONFIG"; then
36048    if test -n "$PKG_CONFIG" && \
36049    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
36050  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
36051  ac_status=$?
36052  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36053  test $ac_status = 0; }; then
36054  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
36055		      test "x$?" != "x0" && pkg_failed=yes
36056else
36057  pkg_failed=yes
36058fi
36059 else
36060    pkg_failed=untried
36061fi
36062
36063
36064
36065if test $pkg_failed = yes; then
36066   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36067$as_echo "no" >&6; }
36068
36069if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36070        _pkg_short_errors_supported=yes
36071else
36072        _pkg_short_errors_supported=no
36073fi
36074        if test $_pkg_short_errors_supported = yes; then
36075	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
36076        else
36077	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
36078        fi
36079	# Put the nasty error message in config.log where it belongs
36080	echo "$LUA_PKG_ERRORS" >&5
36081
36082	with_liblua="no (pkg-config cannot find liblua)"
36083
36084elif test $pkg_failed = untried; then
36085     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36086$as_echo "no" >&6; }
36087	with_liblua="no (pkg-config cannot find liblua)"
36088
36089else
36090	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
36091	LUA_LIBS=$pkg_cv_LUA_LIBS
36092        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36093$as_echo "yes" >&6; }
36094	with_liblua="yes"
36095fi
36096
36097
36098else
36099	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
36100	LUA_LIBS=$pkg_cv_LUA_LIBS
36101        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36102$as_echo "yes" >&6; }
36103	with_liblua="yes"
36104fi
36105
36106
36107elif test $pkg_failed = untried; then
36108     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36109$as_echo "no" >&6; }
36110
36111
36112pkg_failed=no
36113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
36114$as_echo_n "checking for LUA... " >&6; }
36115
36116if test -n "$LUA_CFLAGS"; then
36117    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
36118 elif test -n "$PKG_CONFIG"; then
36119    if test -n "$PKG_CONFIG" && \
36120    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
36121  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
36122  ac_status=$?
36123  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36124  test $ac_status = 0; }; then
36125  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
36126		      test "x$?" != "x0" && pkg_failed=yes
36127else
36128  pkg_failed=yes
36129fi
36130 else
36131    pkg_failed=untried
36132fi
36133if test -n "$LUA_LIBS"; then
36134    pkg_cv_LUA_LIBS="$LUA_LIBS"
36135 elif test -n "$PKG_CONFIG"; then
36136    if test -n "$PKG_CONFIG" && \
36137    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
36138  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
36139  ac_status=$?
36140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36141  test $ac_status = 0; }; then
36142  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
36143		      test "x$?" != "x0" && pkg_failed=yes
36144else
36145  pkg_failed=yes
36146fi
36147 else
36148    pkg_failed=untried
36149fi
36150
36151
36152
36153if test $pkg_failed = yes; then
36154   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36155$as_echo "no" >&6; }
36156
36157if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36158        _pkg_short_errors_supported=yes
36159else
36160        _pkg_short_errors_supported=no
36161fi
36162        if test $_pkg_short_errors_supported = yes; then
36163	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
36164        else
36165	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
36166        fi
36167	# Put the nasty error message in config.log where it belongs
36168	echo "$LUA_PKG_ERRORS" >&5
36169
36170
36171
36172pkg_failed=no
36173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
36174$as_echo_n "checking for LUA... " >&6; }
36175
36176if test -n "$LUA_CFLAGS"; then
36177    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
36178 elif test -n "$PKG_CONFIG"; then
36179    if test -n "$PKG_CONFIG" && \
36180    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
36181  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
36182  ac_status=$?
36183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36184  test $ac_status = 0; }; then
36185  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
36186		      test "x$?" != "x0" && pkg_failed=yes
36187else
36188  pkg_failed=yes
36189fi
36190 else
36191    pkg_failed=untried
36192fi
36193if test -n "$LUA_LIBS"; then
36194    pkg_cv_LUA_LIBS="$LUA_LIBS"
36195 elif test -n "$PKG_CONFIG"; then
36196    if test -n "$PKG_CONFIG" && \
36197    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
36198  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
36199  ac_status=$?
36200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36201  test $ac_status = 0; }; then
36202  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
36203		      test "x$?" != "x0" && pkg_failed=yes
36204else
36205  pkg_failed=yes
36206fi
36207 else
36208    pkg_failed=untried
36209fi
36210
36211
36212
36213if test $pkg_failed = yes; then
36214   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36215$as_echo "no" >&6; }
36216
36217if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36218        _pkg_short_errors_supported=yes
36219else
36220        _pkg_short_errors_supported=no
36221fi
36222        if test $_pkg_short_errors_supported = yes; then
36223	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
36224        else
36225	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
36226        fi
36227	# Put the nasty error message in config.log where it belongs
36228	echo "$LUA_PKG_ERRORS" >&5
36229
36230	with_liblua="no (pkg-config cannot find liblua)"
36231
36232elif test $pkg_failed = untried; then
36233     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36234$as_echo "no" >&6; }
36235	with_liblua="no (pkg-config cannot find liblua)"
36236
36237else
36238	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
36239	LUA_LIBS=$pkg_cv_LUA_LIBS
36240        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36241$as_echo "yes" >&6; }
36242	with_liblua="yes"
36243fi
36244
36245
36246elif test $pkg_failed = untried; then
36247     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36248$as_echo "no" >&6; }
36249
36250
36251pkg_failed=no
36252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
36253$as_echo_n "checking for LUA... " >&6; }
36254
36255if test -n "$LUA_CFLAGS"; then
36256    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
36257 elif test -n "$PKG_CONFIG"; then
36258    if test -n "$PKG_CONFIG" && \
36259    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
36260  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
36261  ac_status=$?
36262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36263  test $ac_status = 0; }; then
36264  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
36265		      test "x$?" != "x0" && pkg_failed=yes
36266else
36267  pkg_failed=yes
36268fi
36269 else
36270    pkg_failed=untried
36271fi
36272if test -n "$LUA_LIBS"; then
36273    pkg_cv_LUA_LIBS="$LUA_LIBS"
36274 elif test -n "$PKG_CONFIG"; then
36275    if test -n "$PKG_CONFIG" && \
36276    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
36277  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
36278  ac_status=$?
36279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36280  test $ac_status = 0; }; then
36281  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
36282		      test "x$?" != "x0" && pkg_failed=yes
36283else
36284  pkg_failed=yes
36285fi
36286 else
36287    pkg_failed=untried
36288fi
36289
36290
36291
36292if test $pkg_failed = yes; then
36293   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36294$as_echo "no" >&6; }
36295
36296if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36297        _pkg_short_errors_supported=yes
36298else
36299        _pkg_short_errors_supported=no
36300fi
36301        if test $_pkg_short_errors_supported = yes; then
36302	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
36303        else
36304	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
36305        fi
36306	# Put the nasty error message in config.log where it belongs
36307	echo "$LUA_PKG_ERRORS" >&5
36308
36309	with_liblua="no (pkg-config cannot find liblua)"
36310
36311elif test $pkg_failed = untried; then
36312     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36313$as_echo "no" >&6; }
36314	with_liblua="no (pkg-config cannot find liblua)"
36315
36316else
36317	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
36318	LUA_LIBS=$pkg_cv_LUA_LIBS
36319        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36320$as_echo "yes" >&6; }
36321	with_liblua="yes"
36322fi
36323
36324
36325else
36326	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
36327	LUA_LIBS=$pkg_cv_LUA_LIBS
36328        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36329$as_echo "yes" >&6; }
36330	with_liblua="yes"
36331fi
36332
36333
36334else
36335	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
36336	LUA_LIBS=$pkg_cv_LUA_LIBS
36337        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36338$as_echo "yes" >&6; }
36339	with_liblua="yes"
36340fi
36341
36342
36343elif test $pkg_failed = untried; then
36344     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36345$as_echo "no" >&6; }
36346
36347
36348pkg_failed=no
36349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
36350$as_echo_n "checking for LUA... " >&6; }
36351
36352if test -n "$LUA_CFLAGS"; then
36353    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
36354 elif test -n "$PKG_CONFIG"; then
36355    if test -n "$PKG_CONFIG" && \
36356    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
36357  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
36358  ac_status=$?
36359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36360  test $ac_status = 0; }; then
36361  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
36362		      test "x$?" != "x0" && pkg_failed=yes
36363else
36364  pkg_failed=yes
36365fi
36366 else
36367    pkg_failed=untried
36368fi
36369if test -n "$LUA_LIBS"; then
36370    pkg_cv_LUA_LIBS="$LUA_LIBS"
36371 elif test -n "$PKG_CONFIG"; then
36372    if test -n "$PKG_CONFIG" && \
36373    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
36374  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
36375  ac_status=$?
36376  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36377  test $ac_status = 0; }; then
36378  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
36379		      test "x$?" != "x0" && pkg_failed=yes
36380else
36381  pkg_failed=yes
36382fi
36383 else
36384    pkg_failed=untried
36385fi
36386
36387
36388
36389if test $pkg_failed = yes; then
36390   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36391$as_echo "no" >&6; }
36392
36393if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36394        _pkg_short_errors_supported=yes
36395else
36396        _pkg_short_errors_supported=no
36397fi
36398        if test $_pkg_short_errors_supported = yes; then
36399	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
36400        else
36401	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
36402        fi
36403	# Put the nasty error message in config.log where it belongs
36404	echo "$LUA_PKG_ERRORS" >&5
36405
36406
36407
36408pkg_failed=no
36409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
36410$as_echo_n "checking for LUA... " >&6; }
36411
36412if test -n "$LUA_CFLAGS"; then
36413    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
36414 elif test -n "$PKG_CONFIG"; then
36415    if test -n "$PKG_CONFIG" && \
36416    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
36417  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
36418  ac_status=$?
36419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36420  test $ac_status = 0; }; then
36421  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
36422		      test "x$?" != "x0" && pkg_failed=yes
36423else
36424  pkg_failed=yes
36425fi
36426 else
36427    pkg_failed=untried
36428fi
36429if test -n "$LUA_LIBS"; then
36430    pkg_cv_LUA_LIBS="$LUA_LIBS"
36431 elif test -n "$PKG_CONFIG"; then
36432    if test -n "$PKG_CONFIG" && \
36433    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
36434  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
36435  ac_status=$?
36436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36437  test $ac_status = 0; }; then
36438  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
36439		      test "x$?" != "x0" && pkg_failed=yes
36440else
36441  pkg_failed=yes
36442fi
36443 else
36444    pkg_failed=untried
36445fi
36446
36447
36448
36449if test $pkg_failed = yes; then
36450   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36451$as_echo "no" >&6; }
36452
36453if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36454        _pkg_short_errors_supported=yes
36455else
36456        _pkg_short_errors_supported=no
36457fi
36458        if test $_pkg_short_errors_supported = yes; then
36459	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
36460        else
36461	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
36462        fi
36463	# Put the nasty error message in config.log where it belongs
36464	echo "$LUA_PKG_ERRORS" >&5
36465
36466
36467
36468pkg_failed=no
36469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
36470$as_echo_n "checking for LUA... " >&6; }
36471
36472if test -n "$LUA_CFLAGS"; then
36473    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
36474 elif test -n "$PKG_CONFIG"; then
36475    if test -n "$PKG_CONFIG" && \
36476    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
36477  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
36478  ac_status=$?
36479  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36480  test $ac_status = 0; }; then
36481  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
36482		      test "x$?" != "x0" && pkg_failed=yes
36483else
36484  pkg_failed=yes
36485fi
36486 else
36487    pkg_failed=untried
36488fi
36489if test -n "$LUA_LIBS"; then
36490    pkg_cv_LUA_LIBS="$LUA_LIBS"
36491 elif test -n "$PKG_CONFIG"; then
36492    if test -n "$PKG_CONFIG" && \
36493    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
36494  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
36495  ac_status=$?
36496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36497  test $ac_status = 0; }; then
36498  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
36499		      test "x$?" != "x0" && pkg_failed=yes
36500else
36501  pkg_failed=yes
36502fi
36503 else
36504    pkg_failed=untried
36505fi
36506
36507
36508
36509if test $pkg_failed = yes; then
36510   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36511$as_echo "no" >&6; }
36512
36513if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36514        _pkg_short_errors_supported=yes
36515else
36516        _pkg_short_errors_supported=no
36517fi
36518        if test $_pkg_short_errors_supported = yes; then
36519	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
36520        else
36521	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
36522        fi
36523	# Put the nasty error message in config.log where it belongs
36524	echo "$LUA_PKG_ERRORS" >&5
36525
36526	with_liblua="no (pkg-config cannot find liblua)"
36527
36528elif test $pkg_failed = untried; then
36529     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36530$as_echo "no" >&6; }
36531	with_liblua="no (pkg-config cannot find liblua)"
36532
36533else
36534	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
36535	LUA_LIBS=$pkg_cv_LUA_LIBS
36536        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36537$as_echo "yes" >&6; }
36538	with_liblua="yes"
36539fi
36540
36541
36542elif test $pkg_failed = untried; then
36543     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36544$as_echo "no" >&6; }
36545
36546
36547pkg_failed=no
36548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
36549$as_echo_n "checking for LUA... " >&6; }
36550
36551if test -n "$LUA_CFLAGS"; then
36552    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
36553 elif test -n "$PKG_CONFIG"; then
36554    if test -n "$PKG_CONFIG" && \
36555    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
36556  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
36557  ac_status=$?
36558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36559  test $ac_status = 0; }; then
36560  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
36561		      test "x$?" != "x0" && pkg_failed=yes
36562else
36563  pkg_failed=yes
36564fi
36565 else
36566    pkg_failed=untried
36567fi
36568if test -n "$LUA_LIBS"; then
36569    pkg_cv_LUA_LIBS="$LUA_LIBS"
36570 elif test -n "$PKG_CONFIG"; then
36571    if test -n "$PKG_CONFIG" && \
36572    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
36573  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
36574  ac_status=$?
36575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36576  test $ac_status = 0; }; then
36577  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
36578		      test "x$?" != "x0" && pkg_failed=yes
36579else
36580  pkg_failed=yes
36581fi
36582 else
36583    pkg_failed=untried
36584fi
36585
36586
36587
36588if test $pkg_failed = yes; then
36589   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36590$as_echo "no" >&6; }
36591
36592if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36593        _pkg_short_errors_supported=yes
36594else
36595        _pkg_short_errors_supported=no
36596fi
36597        if test $_pkg_short_errors_supported = yes; then
36598	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
36599        else
36600	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
36601        fi
36602	# Put the nasty error message in config.log where it belongs
36603	echo "$LUA_PKG_ERRORS" >&5
36604
36605	with_liblua="no (pkg-config cannot find liblua)"
36606
36607elif test $pkg_failed = untried; then
36608     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36609$as_echo "no" >&6; }
36610	with_liblua="no (pkg-config cannot find liblua)"
36611
36612else
36613	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
36614	LUA_LIBS=$pkg_cv_LUA_LIBS
36615        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36616$as_echo "yes" >&6; }
36617	with_liblua="yes"
36618fi
36619
36620
36621else
36622	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
36623	LUA_LIBS=$pkg_cv_LUA_LIBS
36624        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36625$as_echo "yes" >&6; }
36626	with_liblua="yes"
36627fi
36628
36629
36630elif test $pkg_failed = untried; then
36631     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36632$as_echo "no" >&6; }
36633
36634
36635pkg_failed=no
36636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
36637$as_echo_n "checking for LUA... " >&6; }
36638
36639if test -n "$LUA_CFLAGS"; then
36640    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
36641 elif test -n "$PKG_CONFIG"; then
36642    if test -n "$PKG_CONFIG" && \
36643    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
36644  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
36645  ac_status=$?
36646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36647  test $ac_status = 0; }; then
36648  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
36649		      test "x$?" != "x0" && pkg_failed=yes
36650else
36651  pkg_failed=yes
36652fi
36653 else
36654    pkg_failed=untried
36655fi
36656if test -n "$LUA_LIBS"; then
36657    pkg_cv_LUA_LIBS="$LUA_LIBS"
36658 elif test -n "$PKG_CONFIG"; then
36659    if test -n "$PKG_CONFIG" && \
36660    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
36661  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
36662  ac_status=$?
36663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36664  test $ac_status = 0; }; then
36665  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
36666		      test "x$?" != "x0" && pkg_failed=yes
36667else
36668  pkg_failed=yes
36669fi
36670 else
36671    pkg_failed=untried
36672fi
36673
36674
36675
36676if test $pkg_failed = yes; then
36677   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36678$as_echo "no" >&6; }
36679
36680if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36681        _pkg_short_errors_supported=yes
36682else
36683        _pkg_short_errors_supported=no
36684fi
36685        if test $_pkg_short_errors_supported = yes; then
36686	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
36687        else
36688	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
36689        fi
36690	# Put the nasty error message in config.log where it belongs
36691	echo "$LUA_PKG_ERRORS" >&5
36692
36693
36694
36695pkg_failed=no
36696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
36697$as_echo_n "checking for LUA... " >&6; }
36698
36699if test -n "$LUA_CFLAGS"; then
36700    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
36701 elif test -n "$PKG_CONFIG"; then
36702    if test -n "$PKG_CONFIG" && \
36703    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
36704  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
36705  ac_status=$?
36706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36707  test $ac_status = 0; }; then
36708  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
36709		      test "x$?" != "x0" && pkg_failed=yes
36710else
36711  pkg_failed=yes
36712fi
36713 else
36714    pkg_failed=untried
36715fi
36716if test -n "$LUA_LIBS"; then
36717    pkg_cv_LUA_LIBS="$LUA_LIBS"
36718 elif test -n "$PKG_CONFIG"; then
36719    if test -n "$PKG_CONFIG" && \
36720    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
36721  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
36722  ac_status=$?
36723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36724  test $ac_status = 0; }; then
36725  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
36726		      test "x$?" != "x0" && pkg_failed=yes
36727else
36728  pkg_failed=yes
36729fi
36730 else
36731    pkg_failed=untried
36732fi
36733
36734
36735
36736if test $pkg_failed = yes; then
36737   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36738$as_echo "no" >&6; }
36739
36740if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36741        _pkg_short_errors_supported=yes
36742else
36743        _pkg_short_errors_supported=no
36744fi
36745        if test $_pkg_short_errors_supported = yes; then
36746	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
36747        else
36748	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
36749        fi
36750	# Put the nasty error message in config.log where it belongs
36751	echo "$LUA_PKG_ERRORS" >&5
36752
36753	with_liblua="no (pkg-config cannot find liblua)"
36754
36755elif test $pkg_failed = untried; then
36756     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36757$as_echo "no" >&6; }
36758	with_liblua="no (pkg-config cannot find liblua)"
36759
36760else
36761	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
36762	LUA_LIBS=$pkg_cv_LUA_LIBS
36763        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36764$as_echo "yes" >&6; }
36765	with_liblua="yes"
36766fi
36767
36768
36769elif test $pkg_failed = untried; then
36770     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36771$as_echo "no" >&6; }
36772
36773
36774pkg_failed=no
36775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
36776$as_echo_n "checking for LUA... " >&6; }
36777
36778if test -n "$LUA_CFLAGS"; then
36779    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
36780 elif test -n "$PKG_CONFIG"; then
36781    if test -n "$PKG_CONFIG" && \
36782    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
36783  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
36784  ac_status=$?
36785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36786  test $ac_status = 0; }; then
36787  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
36788		      test "x$?" != "x0" && pkg_failed=yes
36789else
36790  pkg_failed=yes
36791fi
36792 else
36793    pkg_failed=untried
36794fi
36795if test -n "$LUA_LIBS"; then
36796    pkg_cv_LUA_LIBS="$LUA_LIBS"
36797 elif test -n "$PKG_CONFIG"; then
36798    if test -n "$PKG_CONFIG" && \
36799    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
36800  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
36801  ac_status=$?
36802  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36803  test $ac_status = 0; }; then
36804  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
36805		      test "x$?" != "x0" && pkg_failed=yes
36806else
36807  pkg_failed=yes
36808fi
36809 else
36810    pkg_failed=untried
36811fi
36812
36813
36814
36815if test $pkg_failed = yes; then
36816   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36817$as_echo "no" >&6; }
36818
36819if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36820        _pkg_short_errors_supported=yes
36821else
36822        _pkg_short_errors_supported=no
36823fi
36824        if test $_pkg_short_errors_supported = yes; then
36825	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
36826        else
36827	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
36828        fi
36829	# Put the nasty error message in config.log where it belongs
36830	echo "$LUA_PKG_ERRORS" >&5
36831
36832	with_liblua="no (pkg-config cannot find liblua)"
36833
36834elif test $pkg_failed = untried; then
36835     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36836$as_echo "no" >&6; }
36837	with_liblua="no (pkg-config cannot find liblua)"
36838
36839else
36840	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
36841	LUA_LIBS=$pkg_cv_LUA_LIBS
36842        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36843$as_echo "yes" >&6; }
36844	with_liblua="yes"
36845fi
36846
36847
36848else
36849	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
36850	LUA_LIBS=$pkg_cv_LUA_LIBS
36851        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36852$as_echo "yes" >&6; }
36853	with_liblua="yes"
36854fi
36855
36856
36857else
36858	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
36859	LUA_LIBS=$pkg_cv_LUA_LIBS
36860        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36861$as_echo "yes" >&6; }
36862	with_liblua="yes"
36863fi
36864
36865
36866else
36867	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
36868	LUA_LIBS=$pkg_cv_LUA_LIBS
36869        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36870$as_echo "yes" >&6; }
36871	with_liblua="yes"
36872fi
36873
36874
36875elif test $pkg_failed = untried; then
36876     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36877$as_echo "no" >&6; }
36878
36879
36880pkg_failed=no
36881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
36882$as_echo_n "checking for LUA... " >&6; }
36883
36884if test -n "$LUA_CFLAGS"; then
36885    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
36886 elif test -n "$PKG_CONFIG"; then
36887    if test -n "$PKG_CONFIG" && \
36888    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
36889  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
36890  ac_status=$?
36891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36892  test $ac_status = 0; }; then
36893  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
36894		      test "x$?" != "x0" && pkg_failed=yes
36895else
36896  pkg_failed=yes
36897fi
36898 else
36899    pkg_failed=untried
36900fi
36901if test -n "$LUA_LIBS"; then
36902    pkg_cv_LUA_LIBS="$LUA_LIBS"
36903 elif test -n "$PKG_CONFIG"; then
36904    if test -n "$PKG_CONFIG" && \
36905    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
36906  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
36907  ac_status=$?
36908  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36909  test $ac_status = 0; }; then
36910  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
36911		      test "x$?" != "x0" && pkg_failed=yes
36912else
36913  pkg_failed=yes
36914fi
36915 else
36916    pkg_failed=untried
36917fi
36918
36919
36920
36921if test $pkg_failed = yes; then
36922   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36923$as_echo "no" >&6; }
36924
36925if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36926        _pkg_short_errors_supported=yes
36927else
36928        _pkg_short_errors_supported=no
36929fi
36930        if test $_pkg_short_errors_supported = yes; then
36931	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
36932        else
36933	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
36934        fi
36935	# Put the nasty error message in config.log where it belongs
36936	echo "$LUA_PKG_ERRORS" >&5
36937
36938
36939
36940pkg_failed=no
36941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
36942$as_echo_n "checking for LUA... " >&6; }
36943
36944if test -n "$LUA_CFLAGS"; then
36945    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
36946 elif test -n "$PKG_CONFIG"; then
36947    if test -n "$PKG_CONFIG" && \
36948    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
36949  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
36950  ac_status=$?
36951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36952  test $ac_status = 0; }; then
36953  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
36954		      test "x$?" != "x0" && pkg_failed=yes
36955else
36956  pkg_failed=yes
36957fi
36958 else
36959    pkg_failed=untried
36960fi
36961if test -n "$LUA_LIBS"; then
36962    pkg_cv_LUA_LIBS="$LUA_LIBS"
36963 elif test -n "$PKG_CONFIG"; then
36964    if test -n "$PKG_CONFIG" && \
36965    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
36966  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
36967  ac_status=$?
36968  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36969  test $ac_status = 0; }; then
36970  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
36971		      test "x$?" != "x0" && pkg_failed=yes
36972else
36973  pkg_failed=yes
36974fi
36975 else
36976    pkg_failed=untried
36977fi
36978
36979
36980
36981if test $pkg_failed = yes; then
36982   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36983$as_echo "no" >&6; }
36984
36985if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36986        _pkg_short_errors_supported=yes
36987else
36988        _pkg_short_errors_supported=no
36989fi
36990        if test $_pkg_short_errors_supported = yes; then
36991	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
36992        else
36993	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
36994        fi
36995	# Put the nasty error message in config.log where it belongs
36996	echo "$LUA_PKG_ERRORS" >&5
36997
36998
36999
37000pkg_failed=no
37001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
37002$as_echo_n "checking for LUA... " >&6; }
37003
37004if test -n "$LUA_CFLAGS"; then
37005    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
37006 elif test -n "$PKG_CONFIG"; then
37007    if test -n "$PKG_CONFIG" && \
37008    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
37009  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
37010  ac_status=$?
37011  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37012  test $ac_status = 0; }; then
37013  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
37014		      test "x$?" != "x0" && pkg_failed=yes
37015else
37016  pkg_failed=yes
37017fi
37018 else
37019    pkg_failed=untried
37020fi
37021if test -n "$LUA_LIBS"; then
37022    pkg_cv_LUA_LIBS="$LUA_LIBS"
37023 elif test -n "$PKG_CONFIG"; then
37024    if test -n "$PKG_CONFIG" && \
37025    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
37026  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
37027  ac_status=$?
37028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37029  test $ac_status = 0; }; then
37030  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
37031		      test "x$?" != "x0" && pkg_failed=yes
37032else
37033  pkg_failed=yes
37034fi
37035 else
37036    pkg_failed=untried
37037fi
37038
37039
37040
37041if test $pkg_failed = yes; then
37042   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37043$as_echo "no" >&6; }
37044
37045if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37046        _pkg_short_errors_supported=yes
37047else
37048        _pkg_short_errors_supported=no
37049fi
37050        if test $_pkg_short_errors_supported = yes; then
37051	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
37052        else
37053	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
37054        fi
37055	# Put the nasty error message in config.log where it belongs
37056	echo "$LUA_PKG_ERRORS" >&5
37057
37058
37059
37060pkg_failed=no
37061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
37062$as_echo_n "checking for LUA... " >&6; }
37063
37064if test -n "$LUA_CFLAGS"; then
37065    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
37066 elif test -n "$PKG_CONFIG"; then
37067    if test -n "$PKG_CONFIG" && \
37068    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
37069  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
37070  ac_status=$?
37071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37072  test $ac_status = 0; }; then
37073  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
37074		      test "x$?" != "x0" && pkg_failed=yes
37075else
37076  pkg_failed=yes
37077fi
37078 else
37079    pkg_failed=untried
37080fi
37081if test -n "$LUA_LIBS"; then
37082    pkg_cv_LUA_LIBS="$LUA_LIBS"
37083 elif test -n "$PKG_CONFIG"; then
37084    if test -n "$PKG_CONFIG" && \
37085    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
37086  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
37087  ac_status=$?
37088  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37089  test $ac_status = 0; }; then
37090  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
37091		      test "x$?" != "x0" && pkg_failed=yes
37092else
37093  pkg_failed=yes
37094fi
37095 else
37096    pkg_failed=untried
37097fi
37098
37099
37100
37101if test $pkg_failed = yes; then
37102   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37103$as_echo "no" >&6; }
37104
37105if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37106        _pkg_short_errors_supported=yes
37107else
37108        _pkg_short_errors_supported=no
37109fi
37110        if test $_pkg_short_errors_supported = yes; then
37111	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
37112        else
37113	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
37114        fi
37115	# Put the nasty error message in config.log where it belongs
37116	echo "$LUA_PKG_ERRORS" >&5
37117
37118	with_liblua="no (pkg-config cannot find liblua)"
37119
37120elif test $pkg_failed = untried; then
37121     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37122$as_echo "no" >&6; }
37123	with_liblua="no (pkg-config cannot find liblua)"
37124
37125else
37126	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
37127	LUA_LIBS=$pkg_cv_LUA_LIBS
37128        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37129$as_echo "yes" >&6; }
37130	with_liblua="yes"
37131fi
37132
37133
37134elif test $pkg_failed = untried; then
37135     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37136$as_echo "no" >&6; }
37137
37138
37139pkg_failed=no
37140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
37141$as_echo_n "checking for LUA... " >&6; }
37142
37143if test -n "$LUA_CFLAGS"; then
37144    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
37145 elif test -n "$PKG_CONFIG"; then
37146    if test -n "$PKG_CONFIG" && \
37147    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
37148  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
37149  ac_status=$?
37150  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37151  test $ac_status = 0; }; then
37152  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
37153		      test "x$?" != "x0" && pkg_failed=yes
37154else
37155  pkg_failed=yes
37156fi
37157 else
37158    pkg_failed=untried
37159fi
37160if test -n "$LUA_LIBS"; then
37161    pkg_cv_LUA_LIBS="$LUA_LIBS"
37162 elif test -n "$PKG_CONFIG"; then
37163    if test -n "$PKG_CONFIG" && \
37164    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
37165  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
37166  ac_status=$?
37167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37168  test $ac_status = 0; }; then
37169  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
37170		      test "x$?" != "x0" && pkg_failed=yes
37171else
37172  pkg_failed=yes
37173fi
37174 else
37175    pkg_failed=untried
37176fi
37177
37178
37179
37180if test $pkg_failed = yes; then
37181   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37182$as_echo "no" >&6; }
37183
37184if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37185        _pkg_short_errors_supported=yes
37186else
37187        _pkg_short_errors_supported=no
37188fi
37189        if test $_pkg_short_errors_supported = yes; then
37190	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
37191        else
37192	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
37193        fi
37194	# Put the nasty error message in config.log where it belongs
37195	echo "$LUA_PKG_ERRORS" >&5
37196
37197	with_liblua="no (pkg-config cannot find liblua)"
37198
37199elif test $pkg_failed = untried; then
37200     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37201$as_echo "no" >&6; }
37202	with_liblua="no (pkg-config cannot find liblua)"
37203
37204else
37205	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
37206	LUA_LIBS=$pkg_cv_LUA_LIBS
37207        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37208$as_echo "yes" >&6; }
37209	with_liblua="yes"
37210fi
37211
37212
37213else
37214	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
37215	LUA_LIBS=$pkg_cv_LUA_LIBS
37216        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37217$as_echo "yes" >&6; }
37218	with_liblua="yes"
37219fi
37220
37221
37222elif test $pkg_failed = untried; then
37223     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37224$as_echo "no" >&6; }
37225
37226
37227pkg_failed=no
37228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
37229$as_echo_n "checking for LUA... " >&6; }
37230
37231if test -n "$LUA_CFLAGS"; then
37232    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
37233 elif test -n "$PKG_CONFIG"; then
37234    if test -n "$PKG_CONFIG" && \
37235    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
37236  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
37237  ac_status=$?
37238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37239  test $ac_status = 0; }; then
37240  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
37241		      test "x$?" != "x0" && pkg_failed=yes
37242else
37243  pkg_failed=yes
37244fi
37245 else
37246    pkg_failed=untried
37247fi
37248if test -n "$LUA_LIBS"; then
37249    pkg_cv_LUA_LIBS="$LUA_LIBS"
37250 elif test -n "$PKG_CONFIG"; then
37251    if test -n "$PKG_CONFIG" && \
37252    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
37253  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
37254  ac_status=$?
37255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37256  test $ac_status = 0; }; then
37257  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
37258		      test "x$?" != "x0" && pkg_failed=yes
37259else
37260  pkg_failed=yes
37261fi
37262 else
37263    pkg_failed=untried
37264fi
37265
37266
37267
37268if test $pkg_failed = yes; then
37269   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37270$as_echo "no" >&6; }
37271
37272if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37273        _pkg_short_errors_supported=yes
37274else
37275        _pkg_short_errors_supported=no
37276fi
37277        if test $_pkg_short_errors_supported = yes; then
37278	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
37279        else
37280	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
37281        fi
37282	# Put the nasty error message in config.log where it belongs
37283	echo "$LUA_PKG_ERRORS" >&5
37284
37285
37286
37287pkg_failed=no
37288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
37289$as_echo_n "checking for LUA... " >&6; }
37290
37291if test -n "$LUA_CFLAGS"; then
37292    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
37293 elif test -n "$PKG_CONFIG"; then
37294    if test -n "$PKG_CONFIG" && \
37295    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
37296  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
37297  ac_status=$?
37298  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37299  test $ac_status = 0; }; then
37300  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
37301		      test "x$?" != "x0" && pkg_failed=yes
37302else
37303  pkg_failed=yes
37304fi
37305 else
37306    pkg_failed=untried
37307fi
37308if test -n "$LUA_LIBS"; then
37309    pkg_cv_LUA_LIBS="$LUA_LIBS"
37310 elif test -n "$PKG_CONFIG"; then
37311    if test -n "$PKG_CONFIG" && \
37312    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
37313  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
37314  ac_status=$?
37315  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37316  test $ac_status = 0; }; then
37317  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
37318		      test "x$?" != "x0" && pkg_failed=yes
37319else
37320  pkg_failed=yes
37321fi
37322 else
37323    pkg_failed=untried
37324fi
37325
37326
37327
37328if test $pkg_failed = yes; then
37329   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37330$as_echo "no" >&6; }
37331
37332if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37333        _pkg_short_errors_supported=yes
37334else
37335        _pkg_short_errors_supported=no
37336fi
37337        if test $_pkg_short_errors_supported = yes; then
37338	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
37339        else
37340	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
37341        fi
37342	# Put the nasty error message in config.log where it belongs
37343	echo "$LUA_PKG_ERRORS" >&5
37344
37345	with_liblua="no (pkg-config cannot find liblua)"
37346
37347elif test $pkg_failed = untried; then
37348     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37349$as_echo "no" >&6; }
37350	with_liblua="no (pkg-config cannot find liblua)"
37351
37352else
37353	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
37354	LUA_LIBS=$pkg_cv_LUA_LIBS
37355        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37356$as_echo "yes" >&6; }
37357	with_liblua="yes"
37358fi
37359
37360
37361elif test $pkg_failed = untried; then
37362     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37363$as_echo "no" >&6; }
37364
37365
37366pkg_failed=no
37367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
37368$as_echo_n "checking for LUA... " >&6; }
37369
37370if test -n "$LUA_CFLAGS"; then
37371    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
37372 elif test -n "$PKG_CONFIG"; then
37373    if test -n "$PKG_CONFIG" && \
37374    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
37375  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
37376  ac_status=$?
37377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37378  test $ac_status = 0; }; then
37379  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
37380		      test "x$?" != "x0" && pkg_failed=yes
37381else
37382  pkg_failed=yes
37383fi
37384 else
37385    pkg_failed=untried
37386fi
37387if test -n "$LUA_LIBS"; then
37388    pkg_cv_LUA_LIBS="$LUA_LIBS"
37389 elif test -n "$PKG_CONFIG"; then
37390    if test -n "$PKG_CONFIG" && \
37391    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
37392  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
37393  ac_status=$?
37394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37395  test $ac_status = 0; }; then
37396  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
37397		      test "x$?" != "x0" && pkg_failed=yes
37398else
37399  pkg_failed=yes
37400fi
37401 else
37402    pkg_failed=untried
37403fi
37404
37405
37406
37407if test $pkg_failed = yes; then
37408   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37409$as_echo "no" >&6; }
37410
37411if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37412        _pkg_short_errors_supported=yes
37413else
37414        _pkg_short_errors_supported=no
37415fi
37416        if test $_pkg_short_errors_supported = yes; then
37417	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
37418        else
37419	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
37420        fi
37421	# Put the nasty error message in config.log where it belongs
37422	echo "$LUA_PKG_ERRORS" >&5
37423
37424	with_liblua="no (pkg-config cannot find liblua)"
37425
37426elif test $pkg_failed = untried; then
37427     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37428$as_echo "no" >&6; }
37429	with_liblua="no (pkg-config cannot find liblua)"
37430
37431else
37432	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
37433	LUA_LIBS=$pkg_cv_LUA_LIBS
37434        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37435$as_echo "yes" >&6; }
37436	with_liblua="yes"
37437fi
37438
37439
37440else
37441	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
37442	LUA_LIBS=$pkg_cv_LUA_LIBS
37443        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37444$as_echo "yes" >&6; }
37445	with_liblua="yes"
37446fi
37447
37448
37449else
37450	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
37451	LUA_LIBS=$pkg_cv_LUA_LIBS
37452        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37453$as_echo "yes" >&6; }
37454	with_liblua="yes"
37455fi
37456
37457
37458elif test $pkg_failed = untried; then
37459     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37460$as_echo "no" >&6; }
37461
37462
37463pkg_failed=no
37464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
37465$as_echo_n "checking for LUA... " >&6; }
37466
37467if test -n "$LUA_CFLAGS"; then
37468    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
37469 elif test -n "$PKG_CONFIG"; then
37470    if test -n "$PKG_CONFIG" && \
37471    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
37472  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
37473  ac_status=$?
37474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37475  test $ac_status = 0; }; then
37476  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
37477		      test "x$?" != "x0" && pkg_failed=yes
37478else
37479  pkg_failed=yes
37480fi
37481 else
37482    pkg_failed=untried
37483fi
37484if test -n "$LUA_LIBS"; then
37485    pkg_cv_LUA_LIBS="$LUA_LIBS"
37486 elif test -n "$PKG_CONFIG"; then
37487    if test -n "$PKG_CONFIG" && \
37488    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
37489  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
37490  ac_status=$?
37491  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37492  test $ac_status = 0; }; then
37493  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
37494		      test "x$?" != "x0" && pkg_failed=yes
37495else
37496  pkg_failed=yes
37497fi
37498 else
37499    pkg_failed=untried
37500fi
37501
37502
37503
37504if test $pkg_failed = yes; then
37505   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37506$as_echo "no" >&6; }
37507
37508if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37509        _pkg_short_errors_supported=yes
37510else
37511        _pkg_short_errors_supported=no
37512fi
37513        if test $_pkg_short_errors_supported = yes; then
37514	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
37515        else
37516	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
37517        fi
37518	# Put the nasty error message in config.log where it belongs
37519	echo "$LUA_PKG_ERRORS" >&5
37520
37521
37522
37523pkg_failed=no
37524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
37525$as_echo_n "checking for LUA... " >&6; }
37526
37527if test -n "$LUA_CFLAGS"; then
37528    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
37529 elif test -n "$PKG_CONFIG"; then
37530    if test -n "$PKG_CONFIG" && \
37531    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
37532  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
37533  ac_status=$?
37534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37535  test $ac_status = 0; }; then
37536  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
37537		      test "x$?" != "x0" && pkg_failed=yes
37538else
37539  pkg_failed=yes
37540fi
37541 else
37542    pkg_failed=untried
37543fi
37544if test -n "$LUA_LIBS"; then
37545    pkg_cv_LUA_LIBS="$LUA_LIBS"
37546 elif test -n "$PKG_CONFIG"; then
37547    if test -n "$PKG_CONFIG" && \
37548    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
37549  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
37550  ac_status=$?
37551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37552  test $ac_status = 0; }; then
37553  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
37554		      test "x$?" != "x0" && pkg_failed=yes
37555else
37556  pkg_failed=yes
37557fi
37558 else
37559    pkg_failed=untried
37560fi
37561
37562
37563
37564if test $pkg_failed = yes; then
37565   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37566$as_echo "no" >&6; }
37567
37568if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37569        _pkg_short_errors_supported=yes
37570else
37571        _pkg_short_errors_supported=no
37572fi
37573        if test $_pkg_short_errors_supported = yes; then
37574	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
37575        else
37576	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
37577        fi
37578	# Put the nasty error message in config.log where it belongs
37579	echo "$LUA_PKG_ERRORS" >&5
37580
37581
37582
37583pkg_failed=no
37584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
37585$as_echo_n "checking for LUA... " >&6; }
37586
37587if test -n "$LUA_CFLAGS"; then
37588    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
37589 elif test -n "$PKG_CONFIG"; then
37590    if test -n "$PKG_CONFIG" && \
37591    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
37592  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
37593  ac_status=$?
37594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37595  test $ac_status = 0; }; then
37596  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
37597		      test "x$?" != "x0" && pkg_failed=yes
37598else
37599  pkg_failed=yes
37600fi
37601 else
37602    pkg_failed=untried
37603fi
37604if test -n "$LUA_LIBS"; then
37605    pkg_cv_LUA_LIBS="$LUA_LIBS"
37606 elif test -n "$PKG_CONFIG"; then
37607    if test -n "$PKG_CONFIG" && \
37608    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
37609  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
37610  ac_status=$?
37611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37612  test $ac_status = 0; }; then
37613  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
37614		      test "x$?" != "x0" && pkg_failed=yes
37615else
37616  pkg_failed=yes
37617fi
37618 else
37619    pkg_failed=untried
37620fi
37621
37622
37623
37624if test $pkg_failed = yes; then
37625   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37626$as_echo "no" >&6; }
37627
37628if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37629        _pkg_short_errors_supported=yes
37630else
37631        _pkg_short_errors_supported=no
37632fi
37633        if test $_pkg_short_errors_supported = yes; then
37634	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
37635        else
37636	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
37637        fi
37638	# Put the nasty error message in config.log where it belongs
37639	echo "$LUA_PKG_ERRORS" >&5
37640
37641	with_liblua="no (pkg-config cannot find liblua)"
37642
37643elif test $pkg_failed = untried; then
37644     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37645$as_echo "no" >&6; }
37646	with_liblua="no (pkg-config cannot find liblua)"
37647
37648else
37649	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
37650	LUA_LIBS=$pkg_cv_LUA_LIBS
37651        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37652$as_echo "yes" >&6; }
37653	with_liblua="yes"
37654fi
37655
37656
37657elif test $pkg_failed = untried; then
37658     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37659$as_echo "no" >&6; }
37660
37661
37662pkg_failed=no
37663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
37664$as_echo_n "checking for LUA... " >&6; }
37665
37666if test -n "$LUA_CFLAGS"; then
37667    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
37668 elif test -n "$PKG_CONFIG"; then
37669    if test -n "$PKG_CONFIG" && \
37670    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
37671  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
37672  ac_status=$?
37673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37674  test $ac_status = 0; }; then
37675  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
37676		      test "x$?" != "x0" && pkg_failed=yes
37677else
37678  pkg_failed=yes
37679fi
37680 else
37681    pkg_failed=untried
37682fi
37683if test -n "$LUA_LIBS"; then
37684    pkg_cv_LUA_LIBS="$LUA_LIBS"
37685 elif test -n "$PKG_CONFIG"; then
37686    if test -n "$PKG_CONFIG" && \
37687    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
37688  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
37689  ac_status=$?
37690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37691  test $ac_status = 0; }; then
37692  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
37693		      test "x$?" != "x0" && pkg_failed=yes
37694else
37695  pkg_failed=yes
37696fi
37697 else
37698    pkg_failed=untried
37699fi
37700
37701
37702
37703if test $pkg_failed = yes; then
37704   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37705$as_echo "no" >&6; }
37706
37707if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37708        _pkg_short_errors_supported=yes
37709else
37710        _pkg_short_errors_supported=no
37711fi
37712        if test $_pkg_short_errors_supported = yes; then
37713	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
37714        else
37715	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
37716        fi
37717	# Put the nasty error message in config.log where it belongs
37718	echo "$LUA_PKG_ERRORS" >&5
37719
37720	with_liblua="no (pkg-config cannot find liblua)"
37721
37722elif test $pkg_failed = untried; then
37723     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37724$as_echo "no" >&6; }
37725	with_liblua="no (pkg-config cannot find liblua)"
37726
37727else
37728	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
37729	LUA_LIBS=$pkg_cv_LUA_LIBS
37730        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37731$as_echo "yes" >&6; }
37732	with_liblua="yes"
37733fi
37734
37735
37736else
37737	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
37738	LUA_LIBS=$pkg_cv_LUA_LIBS
37739        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37740$as_echo "yes" >&6; }
37741	with_liblua="yes"
37742fi
37743
37744
37745elif test $pkg_failed = untried; then
37746     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37747$as_echo "no" >&6; }
37748
37749
37750pkg_failed=no
37751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
37752$as_echo_n "checking for LUA... " >&6; }
37753
37754if test -n "$LUA_CFLAGS"; then
37755    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
37756 elif test -n "$PKG_CONFIG"; then
37757    if test -n "$PKG_CONFIG" && \
37758    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
37759  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
37760  ac_status=$?
37761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37762  test $ac_status = 0; }; then
37763  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
37764		      test "x$?" != "x0" && pkg_failed=yes
37765else
37766  pkg_failed=yes
37767fi
37768 else
37769    pkg_failed=untried
37770fi
37771if test -n "$LUA_LIBS"; then
37772    pkg_cv_LUA_LIBS="$LUA_LIBS"
37773 elif test -n "$PKG_CONFIG"; then
37774    if test -n "$PKG_CONFIG" && \
37775    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
37776  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
37777  ac_status=$?
37778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37779  test $ac_status = 0; }; then
37780  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
37781		      test "x$?" != "x0" && pkg_failed=yes
37782else
37783  pkg_failed=yes
37784fi
37785 else
37786    pkg_failed=untried
37787fi
37788
37789
37790
37791if test $pkg_failed = yes; then
37792   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37793$as_echo "no" >&6; }
37794
37795if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37796        _pkg_short_errors_supported=yes
37797else
37798        _pkg_short_errors_supported=no
37799fi
37800        if test $_pkg_short_errors_supported = yes; then
37801	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
37802        else
37803	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
37804        fi
37805	# Put the nasty error message in config.log where it belongs
37806	echo "$LUA_PKG_ERRORS" >&5
37807
37808
37809
37810pkg_failed=no
37811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
37812$as_echo_n "checking for LUA... " >&6; }
37813
37814if test -n "$LUA_CFLAGS"; then
37815    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
37816 elif test -n "$PKG_CONFIG"; then
37817    if test -n "$PKG_CONFIG" && \
37818    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
37819  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
37820  ac_status=$?
37821  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37822  test $ac_status = 0; }; then
37823  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
37824		      test "x$?" != "x0" && pkg_failed=yes
37825else
37826  pkg_failed=yes
37827fi
37828 else
37829    pkg_failed=untried
37830fi
37831if test -n "$LUA_LIBS"; then
37832    pkg_cv_LUA_LIBS="$LUA_LIBS"
37833 elif test -n "$PKG_CONFIG"; then
37834    if test -n "$PKG_CONFIG" && \
37835    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
37836  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
37837  ac_status=$?
37838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37839  test $ac_status = 0; }; then
37840  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
37841		      test "x$?" != "x0" && pkg_failed=yes
37842else
37843  pkg_failed=yes
37844fi
37845 else
37846    pkg_failed=untried
37847fi
37848
37849
37850
37851if test $pkg_failed = yes; then
37852   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37853$as_echo "no" >&6; }
37854
37855if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37856        _pkg_short_errors_supported=yes
37857else
37858        _pkg_short_errors_supported=no
37859fi
37860        if test $_pkg_short_errors_supported = yes; then
37861	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
37862        else
37863	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
37864        fi
37865	# Put the nasty error message in config.log where it belongs
37866	echo "$LUA_PKG_ERRORS" >&5
37867
37868	with_liblua="no (pkg-config cannot find liblua)"
37869
37870elif test $pkg_failed = untried; then
37871     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37872$as_echo "no" >&6; }
37873	with_liblua="no (pkg-config cannot find liblua)"
37874
37875else
37876	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
37877	LUA_LIBS=$pkg_cv_LUA_LIBS
37878        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37879$as_echo "yes" >&6; }
37880	with_liblua="yes"
37881fi
37882
37883
37884elif test $pkg_failed = untried; then
37885     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37886$as_echo "no" >&6; }
37887
37888
37889pkg_failed=no
37890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
37891$as_echo_n "checking for LUA... " >&6; }
37892
37893if test -n "$LUA_CFLAGS"; then
37894    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
37895 elif test -n "$PKG_CONFIG"; then
37896    if test -n "$PKG_CONFIG" && \
37897    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
37898  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
37899  ac_status=$?
37900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37901  test $ac_status = 0; }; then
37902  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
37903		      test "x$?" != "x0" && pkg_failed=yes
37904else
37905  pkg_failed=yes
37906fi
37907 else
37908    pkg_failed=untried
37909fi
37910if test -n "$LUA_LIBS"; then
37911    pkg_cv_LUA_LIBS="$LUA_LIBS"
37912 elif test -n "$PKG_CONFIG"; then
37913    if test -n "$PKG_CONFIG" && \
37914    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
37915  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
37916  ac_status=$?
37917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37918  test $ac_status = 0; }; then
37919  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
37920		      test "x$?" != "x0" && pkg_failed=yes
37921else
37922  pkg_failed=yes
37923fi
37924 else
37925    pkg_failed=untried
37926fi
37927
37928
37929
37930if test $pkg_failed = yes; then
37931   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37932$as_echo "no" >&6; }
37933
37934if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37935        _pkg_short_errors_supported=yes
37936else
37937        _pkg_short_errors_supported=no
37938fi
37939        if test $_pkg_short_errors_supported = yes; then
37940	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
37941        else
37942	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
37943        fi
37944	# Put the nasty error message in config.log where it belongs
37945	echo "$LUA_PKG_ERRORS" >&5
37946
37947	with_liblua="no (pkg-config cannot find liblua)"
37948
37949elif test $pkg_failed = untried; then
37950     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37951$as_echo "no" >&6; }
37952	with_liblua="no (pkg-config cannot find liblua)"
37953
37954else
37955	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
37956	LUA_LIBS=$pkg_cv_LUA_LIBS
37957        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37958$as_echo "yes" >&6; }
37959	with_liblua="yes"
37960fi
37961
37962
37963else
37964	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
37965	LUA_LIBS=$pkg_cv_LUA_LIBS
37966        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37967$as_echo "yes" >&6; }
37968	with_liblua="yes"
37969fi
37970
37971
37972else
37973	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
37974	LUA_LIBS=$pkg_cv_LUA_LIBS
37975        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37976$as_echo "yes" >&6; }
37977	with_liblua="yes"
37978fi
37979
37980
37981else
37982	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
37983	LUA_LIBS=$pkg_cv_LUA_LIBS
37984        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37985$as_echo "yes" >&6; }
37986	with_liblua="yes"
37987fi
37988
37989
37990else
37991	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
37992	LUA_LIBS=$pkg_cv_LUA_LIBS
37993        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37994$as_echo "yes" >&6; }
37995	with_liblua="yes"
37996fi
37997
37998
37999elif test $pkg_failed = untried; then
38000     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38001$as_echo "no" >&6; }
38002
38003
38004pkg_failed=no
38005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
38006$as_echo_n "checking for LUA... " >&6; }
38007
38008if test -n "$LUA_CFLAGS"; then
38009    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
38010 elif test -n "$PKG_CONFIG"; then
38011    if test -n "$PKG_CONFIG" && \
38012    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
38013  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
38014  ac_status=$?
38015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38016  test $ac_status = 0; }; then
38017  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
38018		      test "x$?" != "x0" && pkg_failed=yes
38019else
38020  pkg_failed=yes
38021fi
38022 else
38023    pkg_failed=untried
38024fi
38025if test -n "$LUA_LIBS"; then
38026    pkg_cv_LUA_LIBS="$LUA_LIBS"
38027 elif test -n "$PKG_CONFIG"; then
38028    if test -n "$PKG_CONFIG" && \
38029    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
38030  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
38031  ac_status=$?
38032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38033  test $ac_status = 0; }; then
38034  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
38035		      test "x$?" != "x0" && pkg_failed=yes
38036else
38037  pkg_failed=yes
38038fi
38039 else
38040    pkg_failed=untried
38041fi
38042
38043
38044
38045if test $pkg_failed = yes; then
38046   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38047$as_echo "no" >&6; }
38048
38049if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38050        _pkg_short_errors_supported=yes
38051else
38052        _pkg_short_errors_supported=no
38053fi
38054        if test $_pkg_short_errors_supported = yes; then
38055	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
38056        else
38057	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
38058        fi
38059	# Put the nasty error message in config.log where it belongs
38060	echo "$LUA_PKG_ERRORS" >&5
38061
38062
38063
38064pkg_failed=no
38065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
38066$as_echo_n "checking for LUA... " >&6; }
38067
38068if test -n "$LUA_CFLAGS"; then
38069    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
38070 elif test -n "$PKG_CONFIG"; then
38071    if test -n "$PKG_CONFIG" && \
38072    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
38073  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
38074  ac_status=$?
38075  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38076  test $ac_status = 0; }; then
38077  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
38078		      test "x$?" != "x0" && pkg_failed=yes
38079else
38080  pkg_failed=yes
38081fi
38082 else
38083    pkg_failed=untried
38084fi
38085if test -n "$LUA_LIBS"; then
38086    pkg_cv_LUA_LIBS="$LUA_LIBS"
38087 elif test -n "$PKG_CONFIG"; then
38088    if test -n "$PKG_CONFIG" && \
38089    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
38090  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
38091  ac_status=$?
38092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38093  test $ac_status = 0; }; then
38094  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
38095		      test "x$?" != "x0" && pkg_failed=yes
38096else
38097  pkg_failed=yes
38098fi
38099 else
38100    pkg_failed=untried
38101fi
38102
38103
38104
38105if test $pkg_failed = yes; then
38106   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38107$as_echo "no" >&6; }
38108
38109if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38110        _pkg_short_errors_supported=yes
38111else
38112        _pkg_short_errors_supported=no
38113fi
38114        if test $_pkg_short_errors_supported = yes; then
38115	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
38116        else
38117	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
38118        fi
38119	# Put the nasty error message in config.log where it belongs
38120	echo "$LUA_PKG_ERRORS" >&5
38121
38122
38123
38124pkg_failed=no
38125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
38126$as_echo_n "checking for LUA... " >&6; }
38127
38128if test -n "$LUA_CFLAGS"; then
38129    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
38130 elif test -n "$PKG_CONFIG"; then
38131    if test -n "$PKG_CONFIG" && \
38132    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
38133  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
38134  ac_status=$?
38135  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38136  test $ac_status = 0; }; then
38137  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
38138		      test "x$?" != "x0" && pkg_failed=yes
38139else
38140  pkg_failed=yes
38141fi
38142 else
38143    pkg_failed=untried
38144fi
38145if test -n "$LUA_LIBS"; then
38146    pkg_cv_LUA_LIBS="$LUA_LIBS"
38147 elif test -n "$PKG_CONFIG"; then
38148    if test -n "$PKG_CONFIG" && \
38149    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
38150  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
38151  ac_status=$?
38152  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38153  test $ac_status = 0; }; then
38154  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
38155		      test "x$?" != "x0" && pkg_failed=yes
38156else
38157  pkg_failed=yes
38158fi
38159 else
38160    pkg_failed=untried
38161fi
38162
38163
38164
38165if test $pkg_failed = yes; then
38166   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38167$as_echo "no" >&6; }
38168
38169if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38170        _pkg_short_errors_supported=yes
38171else
38172        _pkg_short_errors_supported=no
38173fi
38174        if test $_pkg_short_errors_supported = yes; then
38175	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
38176        else
38177	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
38178        fi
38179	# Put the nasty error message in config.log where it belongs
38180	echo "$LUA_PKG_ERRORS" >&5
38181
38182
38183
38184pkg_failed=no
38185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
38186$as_echo_n "checking for LUA... " >&6; }
38187
38188if test -n "$LUA_CFLAGS"; then
38189    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
38190 elif test -n "$PKG_CONFIG"; then
38191    if test -n "$PKG_CONFIG" && \
38192    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
38193  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
38194  ac_status=$?
38195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38196  test $ac_status = 0; }; then
38197  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
38198		      test "x$?" != "x0" && pkg_failed=yes
38199else
38200  pkg_failed=yes
38201fi
38202 else
38203    pkg_failed=untried
38204fi
38205if test -n "$LUA_LIBS"; then
38206    pkg_cv_LUA_LIBS="$LUA_LIBS"
38207 elif test -n "$PKG_CONFIG"; then
38208    if test -n "$PKG_CONFIG" && \
38209    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
38210  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
38211  ac_status=$?
38212  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38213  test $ac_status = 0; }; then
38214  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
38215		      test "x$?" != "x0" && pkg_failed=yes
38216else
38217  pkg_failed=yes
38218fi
38219 else
38220    pkg_failed=untried
38221fi
38222
38223
38224
38225if test $pkg_failed = yes; then
38226   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38227$as_echo "no" >&6; }
38228
38229if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38230        _pkg_short_errors_supported=yes
38231else
38232        _pkg_short_errors_supported=no
38233fi
38234        if test $_pkg_short_errors_supported = yes; then
38235	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
38236        else
38237	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
38238        fi
38239	# Put the nasty error message in config.log where it belongs
38240	echo "$LUA_PKG_ERRORS" >&5
38241
38242
38243
38244pkg_failed=no
38245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
38246$as_echo_n "checking for LUA... " >&6; }
38247
38248if test -n "$LUA_CFLAGS"; then
38249    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
38250 elif test -n "$PKG_CONFIG"; then
38251    if test -n "$PKG_CONFIG" && \
38252    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
38253  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
38254  ac_status=$?
38255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38256  test $ac_status = 0; }; then
38257  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
38258		      test "x$?" != "x0" && pkg_failed=yes
38259else
38260  pkg_failed=yes
38261fi
38262 else
38263    pkg_failed=untried
38264fi
38265if test -n "$LUA_LIBS"; then
38266    pkg_cv_LUA_LIBS="$LUA_LIBS"
38267 elif test -n "$PKG_CONFIG"; then
38268    if test -n "$PKG_CONFIG" && \
38269    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
38270  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
38271  ac_status=$?
38272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38273  test $ac_status = 0; }; then
38274  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
38275		      test "x$?" != "x0" && pkg_failed=yes
38276else
38277  pkg_failed=yes
38278fi
38279 else
38280    pkg_failed=untried
38281fi
38282
38283
38284
38285if test $pkg_failed = yes; then
38286   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38287$as_echo "no" >&6; }
38288
38289if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38290        _pkg_short_errors_supported=yes
38291else
38292        _pkg_short_errors_supported=no
38293fi
38294        if test $_pkg_short_errors_supported = yes; then
38295	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
38296        else
38297	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
38298        fi
38299	# Put the nasty error message in config.log where it belongs
38300	echo "$LUA_PKG_ERRORS" >&5
38301
38302	with_liblua="no (pkg-config cannot find liblua)"
38303
38304elif test $pkg_failed = untried; then
38305     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38306$as_echo "no" >&6; }
38307	with_liblua="no (pkg-config cannot find liblua)"
38308
38309else
38310	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
38311	LUA_LIBS=$pkg_cv_LUA_LIBS
38312        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38313$as_echo "yes" >&6; }
38314	with_liblua="yes"
38315fi
38316
38317
38318elif test $pkg_failed = untried; then
38319     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38320$as_echo "no" >&6; }
38321
38322
38323pkg_failed=no
38324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
38325$as_echo_n "checking for LUA... " >&6; }
38326
38327if test -n "$LUA_CFLAGS"; then
38328    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
38329 elif test -n "$PKG_CONFIG"; then
38330    if test -n "$PKG_CONFIG" && \
38331    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
38332  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
38333  ac_status=$?
38334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38335  test $ac_status = 0; }; then
38336  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
38337		      test "x$?" != "x0" && pkg_failed=yes
38338else
38339  pkg_failed=yes
38340fi
38341 else
38342    pkg_failed=untried
38343fi
38344if test -n "$LUA_LIBS"; then
38345    pkg_cv_LUA_LIBS="$LUA_LIBS"
38346 elif test -n "$PKG_CONFIG"; then
38347    if test -n "$PKG_CONFIG" && \
38348    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
38349  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
38350  ac_status=$?
38351  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38352  test $ac_status = 0; }; then
38353  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
38354		      test "x$?" != "x0" && pkg_failed=yes
38355else
38356  pkg_failed=yes
38357fi
38358 else
38359    pkg_failed=untried
38360fi
38361
38362
38363
38364if test $pkg_failed = yes; then
38365   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38366$as_echo "no" >&6; }
38367
38368if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38369        _pkg_short_errors_supported=yes
38370else
38371        _pkg_short_errors_supported=no
38372fi
38373        if test $_pkg_short_errors_supported = yes; then
38374	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
38375        else
38376	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
38377        fi
38378	# Put the nasty error message in config.log where it belongs
38379	echo "$LUA_PKG_ERRORS" >&5
38380
38381	with_liblua="no (pkg-config cannot find liblua)"
38382
38383elif test $pkg_failed = untried; then
38384     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38385$as_echo "no" >&6; }
38386	with_liblua="no (pkg-config cannot find liblua)"
38387
38388else
38389	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
38390	LUA_LIBS=$pkg_cv_LUA_LIBS
38391        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38392$as_echo "yes" >&6; }
38393	with_liblua="yes"
38394fi
38395
38396
38397else
38398	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
38399	LUA_LIBS=$pkg_cv_LUA_LIBS
38400        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38401$as_echo "yes" >&6; }
38402	with_liblua="yes"
38403fi
38404
38405
38406elif test $pkg_failed = untried; then
38407     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38408$as_echo "no" >&6; }
38409
38410
38411pkg_failed=no
38412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
38413$as_echo_n "checking for LUA... " >&6; }
38414
38415if test -n "$LUA_CFLAGS"; then
38416    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
38417 elif test -n "$PKG_CONFIG"; then
38418    if test -n "$PKG_CONFIG" && \
38419    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
38420  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
38421  ac_status=$?
38422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38423  test $ac_status = 0; }; then
38424  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
38425		      test "x$?" != "x0" && pkg_failed=yes
38426else
38427  pkg_failed=yes
38428fi
38429 else
38430    pkg_failed=untried
38431fi
38432if test -n "$LUA_LIBS"; then
38433    pkg_cv_LUA_LIBS="$LUA_LIBS"
38434 elif test -n "$PKG_CONFIG"; then
38435    if test -n "$PKG_CONFIG" && \
38436    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
38437  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
38438  ac_status=$?
38439  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38440  test $ac_status = 0; }; then
38441  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
38442		      test "x$?" != "x0" && pkg_failed=yes
38443else
38444  pkg_failed=yes
38445fi
38446 else
38447    pkg_failed=untried
38448fi
38449
38450
38451
38452if test $pkg_failed = yes; then
38453   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38454$as_echo "no" >&6; }
38455
38456if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38457        _pkg_short_errors_supported=yes
38458else
38459        _pkg_short_errors_supported=no
38460fi
38461        if test $_pkg_short_errors_supported = yes; then
38462	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
38463        else
38464	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
38465        fi
38466	# Put the nasty error message in config.log where it belongs
38467	echo "$LUA_PKG_ERRORS" >&5
38468
38469
38470
38471pkg_failed=no
38472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
38473$as_echo_n "checking for LUA... " >&6; }
38474
38475if test -n "$LUA_CFLAGS"; then
38476    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
38477 elif test -n "$PKG_CONFIG"; then
38478    if test -n "$PKG_CONFIG" && \
38479    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
38480  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
38481  ac_status=$?
38482  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38483  test $ac_status = 0; }; then
38484  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
38485		      test "x$?" != "x0" && pkg_failed=yes
38486else
38487  pkg_failed=yes
38488fi
38489 else
38490    pkg_failed=untried
38491fi
38492if test -n "$LUA_LIBS"; then
38493    pkg_cv_LUA_LIBS="$LUA_LIBS"
38494 elif test -n "$PKG_CONFIG"; then
38495    if test -n "$PKG_CONFIG" && \
38496    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
38497  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
38498  ac_status=$?
38499  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38500  test $ac_status = 0; }; then
38501  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
38502		      test "x$?" != "x0" && pkg_failed=yes
38503else
38504  pkg_failed=yes
38505fi
38506 else
38507    pkg_failed=untried
38508fi
38509
38510
38511
38512if test $pkg_failed = yes; then
38513   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38514$as_echo "no" >&6; }
38515
38516if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38517        _pkg_short_errors_supported=yes
38518else
38519        _pkg_short_errors_supported=no
38520fi
38521        if test $_pkg_short_errors_supported = yes; then
38522	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
38523        else
38524	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
38525        fi
38526	# Put the nasty error message in config.log where it belongs
38527	echo "$LUA_PKG_ERRORS" >&5
38528
38529	with_liblua="no (pkg-config cannot find liblua)"
38530
38531elif test $pkg_failed = untried; then
38532     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38533$as_echo "no" >&6; }
38534	with_liblua="no (pkg-config cannot find liblua)"
38535
38536else
38537	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
38538	LUA_LIBS=$pkg_cv_LUA_LIBS
38539        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38540$as_echo "yes" >&6; }
38541	with_liblua="yes"
38542fi
38543
38544
38545elif test $pkg_failed = untried; then
38546     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38547$as_echo "no" >&6; }
38548
38549
38550pkg_failed=no
38551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
38552$as_echo_n "checking for LUA... " >&6; }
38553
38554if test -n "$LUA_CFLAGS"; then
38555    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
38556 elif test -n "$PKG_CONFIG"; then
38557    if test -n "$PKG_CONFIG" && \
38558    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
38559  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
38560  ac_status=$?
38561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38562  test $ac_status = 0; }; then
38563  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
38564		      test "x$?" != "x0" && pkg_failed=yes
38565else
38566  pkg_failed=yes
38567fi
38568 else
38569    pkg_failed=untried
38570fi
38571if test -n "$LUA_LIBS"; then
38572    pkg_cv_LUA_LIBS="$LUA_LIBS"
38573 elif test -n "$PKG_CONFIG"; then
38574    if test -n "$PKG_CONFIG" && \
38575    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
38576  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
38577  ac_status=$?
38578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38579  test $ac_status = 0; }; then
38580  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
38581		      test "x$?" != "x0" && pkg_failed=yes
38582else
38583  pkg_failed=yes
38584fi
38585 else
38586    pkg_failed=untried
38587fi
38588
38589
38590
38591if test $pkg_failed = yes; then
38592   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38593$as_echo "no" >&6; }
38594
38595if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38596        _pkg_short_errors_supported=yes
38597else
38598        _pkg_short_errors_supported=no
38599fi
38600        if test $_pkg_short_errors_supported = yes; then
38601	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
38602        else
38603	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
38604        fi
38605	# Put the nasty error message in config.log where it belongs
38606	echo "$LUA_PKG_ERRORS" >&5
38607
38608	with_liblua="no (pkg-config cannot find liblua)"
38609
38610elif test $pkg_failed = untried; then
38611     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38612$as_echo "no" >&6; }
38613	with_liblua="no (pkg-config cannot find liblua)"
38614
38615else
38616	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
38617	LUA_LIBS=$pkg_cv_LUA_LIBS
38618        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38619$as_echo "yes" >&6; }
38620	with_liblua="yes"
38621fi
38622
38623
38624else
38625	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
38626	LUA_LIBS=$pkg_cv_LUA_LIBS
38627        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38628$as_echo "yes" >&6; }
38629	with_liblua="yes"
38630fi
38631
38632
38633else
38634	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
38635	LUA_LIBS=$pkg_cv_LUA_LIBS
38636        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38637$as_echo "yes" >&6; }
38638	with_liblua="yes"
38639fi
38640
38641
38642elif test $pkg_failed = untried; then
38643     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38644$as_echo "no" >&6; }
38645
38646
38647pkg_failed=no
38648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
38649$as_echo_n "checking for LUA... " >&6; }
38650
38651if test -n "$LUA_CFLAGS"; then
38652    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
38653 elif test -n "$PKG_CONFIG"; then
38654    if test -n "$PKG_CONFIG" && \
38655    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
38656  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
38657  ac_status=$?
38658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38659  test $ac_status = 0; }; then
38660  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
38661		      test "x$?" != "x0" && pkg_failed=yes
38662else
38663  pkg_failed=yes
38664fi
38665 else
38666    pkg_failed=untried
38667fi
38668if test -n "$LUA_LIBS"; then
38669    pkg_cv_LUA_LIBS="$LUA_LIBS"
38670 elif test -n "$PKG_CONFIG"; then
38671    if test -n "$PKG_CONFIG" && \
38672    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
38673  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
38674  ac_status=$?
38675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38676  test $ac_status = 0; }; then
38677  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
38678		      test "x$?" != "x0" && pkg_failed=yes
38679else
38680  pkg_failed=yes
38681fi
38682 else
38683    pkg_failed=untried
38684fi
38685
38686
38687
38688if test $pkg_failed = yes; then
38689   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38690$as_echo "no" >&6; }
38691
38692if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38693        _pkg_short_errors_supported=yes
38694else
38695        _pkg_short_errors_supported=no
38696fi
38697        if test $_pkg_short_errors_supported = yes; then
38698	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
38699        else
38700	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
38701        fi
38702	# Put the nasty error message in config.log where it belongs
38703	echo "$LUA_PKG_ERRORS" >&5
38704
38705
38706
38707pkg_failed=no
38708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
38709$as_echo_n "checking for LUA... " >&6; }
38710
38711if test -n "$LUA_CFLAGS"; then
38712    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
38713 elif test -n "$PKG_CONFIG"; then
38714    if test -n "$PKG_CONFIG" && \
38715    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
38716  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
38717  ac_status=$?
38718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38719  test $ac_status = 0; }; then
38720  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
38721		      test "x$?" != "x0" && pkg_failed=yes
38722else
38723  pkg_failed=yes
38724fi
38725 else
38726    pkg_failed=untried
38727fi
38728if test -n "$LUA_LIBS"; then
38729    pkg_cv_LUA_LIBS="$LUA_LIBS"
38730 elif test -n "$PKG_CONFIG"; then
38731    if test -n "$PKG_CONFIG" && \
38732    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
38733  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
38734  ac_status=$?
38735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38736  test $ac_status = 0; }; then
38737  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
38738		      test "x$?" != "x0" && pkg_failed=yes
38739else
38740  pkg_failed=yes
38741fi
38742 else
38743    pkg_failed=untried
38744fi
38745
38746
38747
38748if test $pkg_failed = yes; then
38749   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38750$as_echo "no" >&6; }
38751
38752if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38753        _pkg_short_errors_supported=yes
38754else
38755        _pkg_short_errors_supported=no
38756fi
38757        if test $_pkg_short_errors_supported = yes; then
38758	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
38759        else
38760	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
38761        fi
38762	# Put the nasty error message in config.log where it belongs
38763	echo "$LUA_PKG_ERRORS" >&5
38764
38765
38766
38767pkg_failed=no
38768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
38769$as_echo_n "checking for LUA... " >&6; }
38770
38771if test -n "$LUA_CFLAGS"; then
38772    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
38773 elif test -n "$PKG_CONFIG"; then
38774    if test -n "$PKG_CONFIG" && \
38775    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
38776  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
38777  ac_status=$?
38778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38779  test $ac_status = 0; }; then
38780  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
38781		      test "x$?" != "x0" && pkg_failed=yes
38782else
38783  pkg_failed=yes
38784fi
38785 else
38786    pkg_failed=untried
38787fi
38788if test -n "$LUA_LIBS"; then
38789    pkg_cv_LUA_LIBS="$LUA_LIBS"
38790 elif test -n "$PKG_CONFIG"; then
38791    if test -n "$PKG_CONFIG" && \
38792    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
38793  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
38794  ac_status=$?
38795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38796  test $ac_status = 0; }; then
38797  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
38798		      test "x$?" != "x0" && pkg_failed=yes
38799else
38800  pkg_failed=yes
38801fi
38802 else
38803    pkg_failed=untried
38804fi
38805
38806
38807
38808if test $pkg_failed = yes; then
38809   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38810$as_echo "no" >&6; }
38811
38812if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38813        _pkg_short_errors_supported=yes
38814else
38815        _pkg_short_errors_supported=no
38816fi
38817        if test $_pkg_short_errors_supported = yes; then
38818	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
38819        else
38820	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
38821        fi
38822	# Put the nasty error message in config.log where it belongs
38823	echo "$LUA_PKG_ERRORS" >&5
38824
38825	with_liblua="no (pkg-config cannot find liblua)"
38826
38827elif test $pkg_failed = untried; then
38828     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38829$as_echo "no" >&6; }
38830	with_liblua="no (pkg-config cannot find liblua)"
38831
38832else
38833	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
38834	LUA_LIBS=$pkg_cv_LUA_LIBS
38835        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38836$as_echo "yes" >&6; }
38837	with_liblua="yes"
38838fi
38839
38840
38841elif test $pkg_failed = untried; then
38842     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38843$as_echo "no" >&6; }
38844
38845
38846pkg_failed=no
38847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
38848$as_echo_n "checking for LUA... " >&6; }
38849
38850if test -n "$LUA_CFLAGS"; then
38851    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
38852 elif test -n "$PKG_CONFIG"; then
38853    if test -n "$PKG_CONFIG" && \
38854    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
38855  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
38856  ac_status=$?
38857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38858  test $ac_status = 0; }; then
38859  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
38860		      test "x$?" != "x0" && pkg_failed=yes
38861else
38862  pkg_failed=yes
38863fi
38864 else
38865    pkg_failed=untried
38866fi
38867if test -n "$LUA_LIBS"; then
38868    pkg_cv_LUA_LIBS="$LUA_LIBS"
38869 elif test -n "$PKG_CONFIG"; then
38870    if test -n "$PKG_CONFIG" && \
38871    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
38872  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
38873  ac_status=$?
38874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38875  test $ac_status = 0; }; then
38876  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
38877		      test "x$?" != "x0" && pkg_failed=yes
38878else
38879  pkg_failed=yes
38880fi
38881 else
38882    pkg_failed=untried
38883fi
38884
38885
38886
38887if test $pkg_failed = yes; then
38888   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38889$as_echo "no" >&6; }
38890
38891if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38892        _pkg_short_errors_supported=yes
38893else
38894        _pkg_short_errors_supported=no
38895fi
38896        if test $_pkg_short_errors_supported = yes; then
38897	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
38898        else
38899	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
38900        fi
38901	# Put the nasty error message in config.log where it belongs
38902	echo "$LUA_PKG_ERRORS" >&5
38903
38904	with_liblua="no (pkg-config cannot find liblua)"
38905
38906elif test $pkg_failed = untried; then
38907     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38908$as_echo "no" >&6; }
38909	with_liblua="no (pkg-config cannot find liblua)"
38910
38911else
38912	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
38913	LUA_LIBS=$pkg_cv_LUA_LIBS
38914        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38915$as_echo "yes" >&6; }
38916	with_liblua="yes"
38917fi
38918
38919
38920else
38921	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
38922	LUA_LIBS=$pkg_cv_LUA_LIBS
38923        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38924$as_echo "yes" >&6; }
38925	with_liblua="yes"
38926fi
38927
38928
38929elif test $pkg_failed = untried; then
38930     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38931$as_echo "no" >&6; }
38932
38933
38934pkg_failed=no
38935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
38936$as_echo_n "checking for LUA... " >&6; }
38937
38938if test -n "$LUA_CFLAGS"; then
38939    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
38940 elif test -n "$PKG_CONFIG"; then
38941    if test -n "$PKG_CONFIG" && \
38942    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
38943  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
38944  ac_status=$?
38945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38946  test $ac_status = 0; }; then
38947  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
38948		      test "x$?" != "x0" && pkg_failed=yes
38949else
38950  pkg_failed=yes
38951fi
38952 else
38953    pkg_failed=untried
38954fi
38955if test -n "$LUA_LIBS"; then
38956    pkg_cv_LUA_LIBS="$LUA_LIBS"
38957 elif test -n "$PKG_CONFIG"; then
38958    if test -n "$PKG_CONFIG" && \
38959    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
38960  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
38961  ac_status=$?
38962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38963  test $ac_status = 0; }; then
38964  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
38965		      test "x$?" != "x0" && pkg_failed=yes
38966else
38967  pkg_failed=yes
38968fi
38969 else
38970    pkg_failed=untried
38971fi
38972
38973
38974
38975if test $pkg_failed = yes; then
38976   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38977$as_echo "no" >&6; }
38978
38979if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38980        _pkg_short_errors_supported=yes
38981else
38982        _pkg_short_errors_supported=no
38983fi
38984        if test $_pkg_short_errors_supported = yes; then
38985	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
38986        else
38987	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
38988        fi
38989	# Put the nasty error message in config.log where it belongs
38990	echo "$LUA_PKG_ERRORS" >&5
38991
38992
38993
38994pkg_failed=no
38995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
38996$as_echo_n "checking for LUA... " >&6; }
38997
38998if test -n "$LUA_CFLAGS"; then
38999    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
39000 elif test -n "$PKG_CONFIG"; then
39001    if test -n "$PKG_CONFIG" && \
39002    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
39003  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
39004  ac_status=$?
39005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39006  test $ac_status = 0; }; then
39007  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
39008		      test "x$?" != "x0" && pkg_failed=yes
39009else
39010  pkg_failed=yes
39011fi
39012 else
39013    pkg_failed=untried
39014fi
39015if test -n "$LUA_LIBS"; then
39016    pkg_cv_LUA_LIBS="$LUA_LIBS"
39017 elif test -n "$PKG_CONFIG"; then
39018    if test -n "$PKG_CONFIG" && \
39019    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
39020  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
39021  ac_status=$?
39022  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39023  test $ac_status = 0; }; then
39024  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
39025		      test "x$?" != "x0" && pkg_failed=yes
39026else
39027  pkg_failed=yes
39028fi
39029 else
39030    pkg_failed=untried
39031fi
39032
39033
39034
39035if test $pkg_failed = yes; then
39036   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39037$as_echo "no" >&6; }
39038
39039if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39040        _pkg_short_errors_supported=yes
39041else
39042        _pkg_short_errors_supported=no
39043fi
39044        if test $_pkg_short_errors_supported = yes; then
39045	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
39046        else
39047	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
39048        fi
39049	# Put the nasty error message in config.log where it belongs
39050	echo "$LUA_PKG_ERRORS" >&5
39051
39052	with_liblua="no (pkg-config cannot find liblua)"
39053
39054elif test $pkg_failed = untried; then
39055     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39056$as_echo "no" >&6; }
39057	with_liblua="no (pkg-config cannot find liblua)"
39058
39059else
39060	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
39061	LUA_LIBS=$pkg_cv_LUA_LIBS
39062        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39063$as_echo "yes" >&6; }
39064	with_liblua="yes"
39065fi
39066
39067
39068elif test $pkg_failed = untried; then
39069     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39070$as_echo "no" >&6; }
39071
39072
39073pkg_failed=no
39074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
39075$as_echo_n "checking for LUA... " >&6; }
39076
39077if test -n "$LUA_CFLAGS"; then
39078    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
39079 elif test -n "$PKG_CONFIG"; then
39080    if test -n "$PKG_CONFIG" && \
39081    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
39082  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
39083  ac_status=$?
39084  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39085  test $ac_status = 0; }; then
39086  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
39087		      test "x$?" != "x0" && pkg_failed=yes
39088else
39089  pkg_failed=yes
39090fi
39091 else
39092    pkg_failed=untried
39093fi
39094if test -n "$LUA_LIBS"; then
39095    pkg_cv_LUA_LIBS="$LUA_LIBS"
39096 elif test -n "$PKG_CONFIG"; then
39097    if test -n "$PKG_CONFIG" && \
39098    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
39099  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
39100  ac_status=$?
39101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39102  test $ac_status = 0; }; then
39103  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
39104		      test "x$?" != "x0" && pkg_failed=yes
39105else
39106  pkg_failed=yes
39107fi
39108 else
39109    pkg_failed=untried
39110fi
39111
39112
39113
39114if test $pkg_failed = yes; then
39115   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39116$as_echo "no" >&6; }
39117
39118if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39119        _pkg_short_errors_supported=yes
39120else
39121        _pkg_short_errors_supported=no
39122fi
39123        if test $_pkg_short_errors_supported = yes; then
39124	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
39125        else
39126	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
39127        fi
39128	# Put the nasty error message in config.log where it belongs
39129	echo "$LUA_PKG_ERRORS" >&5
39130
39131	with_liblua="no (pkg-config cannot find liblua)"
39132
39133elif test $pkg_failed = untried; then
39134     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39135$as_echo "no" >&6; }
39136	with_liblua="no (pkg-config cannot find liblua)"
39137
39138else
39139	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
39140	LUA_LIBS=$pkg_cv_LUA_LIBS
39141        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39142$as_echo "yes" >&6; }
39143	with_liblua="yes"
39144fi
39145
39146
39147else
39148	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
39149	LUA_LIBS=$pkg_cv_LUA_LIBS
39150        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39151$as_echo "yes" >&6; }
39152	with_liblua="yes"
39153fi
39154
39155
39156else
39157	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
39158	LUA_LIBS=$pkg_cv_LUA_LIBS
39159        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39160$as_echo "yes" >&6; }
39161	with_liblua="yes"
39162fi
39163
39164
39165else
39166	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
39167	LUA_LIBS=$pkg_cv_LUA_LIBS
39168        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39169$as_echo "yes" >&6; }
39170	with_liblua="yes"
39171fi
39172
39173
39174elif test $pkg_failed = untried; then
39175     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39176$as_echo "no" >&6; }
39177
39178
39179pkg_failed=no
39180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
39181$as_echo_n "checking for LUA... " >&6; }
39182
39183if test -n "$LUA_CFLAGS"; then
39184    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
39185 elif test -n "$PKG_CONFIG"; then
39186    if test -n "$PKG_CONFIG" && \
39187    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
39188  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
39189  ac_status=$?
39190  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39191  test $ac_status = 0; }; then
39192  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
39193		      test "x$?" != "x0" && pkg_failed=yes
39194else
39195  pkg_failed=yes
39196fi
39197 else
39198    pkg_failed=untried
39199fi
39200if test -n "$LUA_LIBS"; then
39201    pkg_cv_LUA_LIBS="$LUA_LIBS"
39202 elif test -n "$PKG_CONFIG"; then
39203    if test -n "$PKG_CONFIG" && \
39204    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
39205  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
39206  ac_status=$?
39207  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39208  test $ac_status = 0; }; then
39209  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
39210		      test "x$?" != "x0" && pkg_failed=yes
39211else
39212  pkg_failed=yes
39213fi
39214 else
39215    pkg_failed=untried
39216fi
39217
39218
39219
39220if test $pkg_failed = yes; then
39221   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39222$as_echo "no" >&6; }
39223
39224if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39225        _pkg_short_errors_supported=yes
39226else
39227        _pkg_short_errors_supported=no
39228fi
39229        if test $_pkg_short_errors_supported = yes; then
39230	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
39231        else
39232	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
39233        fi
39234	# Put the nasty error message in config.log where it belongs
39235	echo "$LUA_PKG_ERRORS" >&5
39236
39237
39238
39239pkg_failed=no
39240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
39241$as_echo_n "checking for LUA... " >&6; }
39242
39243if test -n "$LUA_CFLAGS"; then
39244    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
39245 elif test -n "$PKG_CONFIG"; then
39246    if test -n "$PKG_CONFIG" && \
39247    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
39248  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
39249  ac_status=$?
39250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39251  test $ac_status = 0; }; then
39252  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
39253		      test "x$?" != "x0" && pkg_failed=yes
39254else
39255  pkg_failed=yes
39256fi
39257 else
39258    pkg_failed=untried
39259fi
39260if test -n "$LUA_LIBS"; then
39261    pkg_cv_LUA_LIBS="$LUA_LIBS"
39262 elif test -n "$PKG_CONFIG"; then
39263    if test -n "$PKG_CONFIG" && \
39264    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
39265  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
39266  ac_status=$?
39267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39268  test $ac_status = 0; }; then
39269  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
39270		      test "x$?" != "x0" && pkg_failed=yes
39271else
39272  pkg_failed=yes
39273fi
39274 else
39275    pkg_failed=untried
39276fi
39277
39278
39279
39280if test $pkg_failed = yes; then
39281   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39282$as_echo "no" >&6; }
39283
39284if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39285        _pkg_short_errors_supported=yes
39286else
39287        _pkg_short_errors_supported=no
39288fi
39289        if test $_pkg_short_errors_supported = yes; then
39290	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
39291        else
39292	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
39293        fi
39294	# Put the nasty error message in config.log where it belongs
39295	echo "$LUA_PKG_ERRORS" >&5
39296
39297
39298
39299pkg_failed=no
39300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
39301$as_echo_n "checking for LUA... " >&6; }
39302
39303if test -n "$LUA_CFLAGS"; then
39304    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
39305 elif test -n "$PKG_CONFIG"; then
39306    if test -n "$PKG_CONFIG" && \
39307    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
39308  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
39309  ac_status=$?
39310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39311  test $ac_status = 0; }; then
39312  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
39313		      test "x$?" != "x0" && pkg_failed=yes
39314else
39315  pkg_failed=yes
39316fi
39317 else
39318    pkg_failed=untried
39319fi
39320if test -n "$LUA_LIBS"; then
39321    pkg_cv_LUA_LIBS="$LUA_LIBS"
39322 elif test -n "$PKG_CONFIG"; then
39323    if test -n "$PKG_CONFIG" && \
39324    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
39325  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
39326  ac_status=$?
39327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39328  test $ac_status = 0; }; then
39329  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
39330		      test "x$?" != "x0" && pkg_failed=yes
39331else
39332  pkg_failed=yes
39333fi
39334 else
39335    pkg_failed=untried
39336fi
39337
39338
39339
39340if test $pkg_failed = yes; then
39341   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39342$as_echo "no" >&6; }
39343
39344if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39345        _pkg_short_errors_supported=yes
39346else
39347        _pkg_short_errors_supported=no
39348fi
39349        if test $_pkg_short_errors_supported = yes; then
39350	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
39351        else
39352	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
39353        fi
39354	# Put the nasty error message in config.log where it belongs
39355	echo "$LUA_PKG_ERRORS" >&5
39356
39357
39358
39359pkg_failed=no
39360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
39361$as_echo_n "checking for LUA... " >&6; }
39362
39363if test -n "$LUA_CFLAGS"; then
39364    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
39365 elif test -n "$PKG_CONFIG"; then
39366    if test -n "$PKG_CONFIG" && \
39367    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
39368  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
39369  ac_status=$?
39370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39371  test $ac_status = 0; }; then
39372  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
39373		      test "x$?" != "x0" && pkg_failed=yes
39374else
39375  pkg_failed=yes
39376fi
39377 else
39378    pkg_failed=untried
39379fi
39380if test -n "$LUA_LIBS"; then
39381    pkg_cv_LUA_LIBS="$LUA_LIBS"
39382 elif test -n "$PKG_CONFIG"; then
39383    if test -n "$PKG_CONFIG" && \
39384    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
39385  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
39386  ac_status=$?
39387  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39388  test $ac_status = 0; }; then
39389  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
39390		      test "x$?" != "x0" && pkg_failed=yes
39391else
39392  pkg_failed=yes
39393fi
39394 else
39395    pkg_failed=untried
39396fi
39397
39398
39399
39400if test $pkg_failed = yes; then
39401   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39402$as_echo "no" >&6; }
39403
39404if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39405        _pkg_short_errors_supported=yes
39406else
39407        _pkg_short_errors_supported=no
39408fi
39409        if test $_pkg_short_errors_supported = yes; then
39410	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
39411        else
39412	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
39413        fi
39414	# Put the nasty error message in config.log where it belongs
39415	echo "$LUA_PKG_ERRORS" >&5
39416
39417	with_liblua="no (pkg-config cannot find liblua)"
39418
39419elif test $pkg_failed = untried; then
39420     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39421$as_echo "no" >&6; }
39422	with_liblua="no (pkg-config cannot find liblua)"
39423
39424else
39425	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
39426	LUA_LIBS=$pkg_cv_LUA_LIBS
39427        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39428$as_echo "yes" >&6; }
39429	with_liblua="yes"
39430fi
39431
39432
39433elif test $pkg_failed = untried; then
39434     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39435$as_echo "no" >&6; }
39436
39437
39438pkg_failed=no
39439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
39440$as_echo_n "checking for LUA... " >&6; }
39441
39442if test -n "$LUA_CFLAGS"; then
39443    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
39444 elif test -n "$PKG_CONFIG"; then
39445    if test -n "$PKG_CONFIG" && \
39446    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
39447  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
39448  ac_status=$?
39449  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39450  test $ac_status = 0; }; then
39451  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
39452		      test "x$?" != "x0" && pkg_failed=yes
39453else
39454  pkg_failed=yes
39455fi
39456 else
39457    pkg_failed=untried
39458fi
39459if test -n "$LUA_LIBS"; then
39460    pkg_cv_LUA_LIBS="$LUA_LIBS"
39461 elif test -n "$PKG_CONFIG"; then
39462    if test -n "$PKG_CONFIG" && \
39463    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
39464  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
39465  ac_status=$?
39466  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39467  test $ac_status = 0; }; then
39468  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
39469		      test "x$?" != "x0" && pkg_failed=yes
39470else
39471  pkg_failed=yes
39472fi
39473 else
39474    pkg_failed=untried
39475fi
39476
39477
39478
39479if test $pkg_failed = yes; then
39480   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39481$as_echo "no" >&6; }
39482
39483if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39484        _pkg_short_errors_supported=yes
39485else
39486        _pkg_short_errors_supported=no
39487fi
39488        if test $_pkg_short_errors_supported = yes; then
39489	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
39490        else
39491	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
39492        fi
39493	# Put the nasty error message in config.log where it belongs
39494	echo "$LUA_PKG_ERRORS" >&5
39495
39496	with_liblua="no (pkg-config cannot find liblua)"
39497
39498elif test $pkg_failed = untried; then
39499     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39500$as_echo "no" >&6; }
39501	with_liblua="no (pkg-config cannot find liblua)"
39502
39503else
39504	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
39505	LUA_LIBS=$pkg_cv_LUA_LIBS
39506        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39507$as_echo "yes" >&6; }
39508	with_liblua="yes"
39509fi
39510
39511
39512else
39513	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
39514	LUA_LIBS=$pkg_cv_LUA_LIBS
39515        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39516$as_echo "yes" >&6; }
39517	with_liblua="yes"
39518fi
39519
39520
39521elif test $pkg_failed = untried; then
39522     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39523$as_echo "no" >&6; }
39524
39525
39526pkg_failed=no
39527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
39528$as_echo_n "checking for LUA... " >&6; }
39529
39530if test -n "$LUA_CFLAGS"; then
39531    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
39532 elif test -n "$PKG_CONFIG"; then
39533    if test -n "$PKG_CONFIG" && \
39534    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
39535  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
39536  ac_status=$?
39537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39538  test $ac_status = 0; }; then
39539  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
39540		      test "x$?" != "x0" && pkg_failed=yes
39541else
39542  pkg_failed=yes
39543fi
39544 else
39545    pkg_failed=untried
39546fi
39547if test -n "$LUA_LIBS"; then
39548    pkg_cv_LUA_LIBS="$LUA_LIBS"
39549 elif test -n "$PKG_CONFIG"; then
39550    if test -n "$PKG_CONFIG" && \
39551    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
39552  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
39553  ac_status=$?
39554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39555  test $ac_status = 0; }; then
39556  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
39557		      test "x$?" != "x0" && pkg_failed=yes
39558else
39559  pkg_failed=yes
39560fi
39561 else
39562    pkg_failed=untried
39563fi
39564
39565
39566
39567if test $pkg_failed = yes; then
39568   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39569$as_echo "no" >&6; }
39570
39571if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39572        _pkg_short_errors_supported=yes
39573else
39574        _pkg_short_errors_supported=no
39575fi
39576        if test $_pkg_short_errors_supported = yes; then
39577	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
39578        else
39579	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
39580        fi
39581	# Put the nasty error message in config.log where it belongs
39582	echo "$LUA_PKG_ERRORS" >&5
39583
39584
39585
39586pkg_failed=no
39587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
39588$as_echo_n "checking for LUA... " >&6; }
39589
39590if test -n "$LUA_CFLAGS"; then
39591    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
39592 elif test -n "$PKG_CONFIG"; then
39593    if test -n "$PKG_CONFIG" && \
39594    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
39595  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
39596  ac_status=$?
39597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39598  test $ac_status = 0; }; then
39599  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
39600		      test "x$?" != "x0" && pkg_failed=yes
39601else
39602  pkg_failed=yes
39603fi
39604 else
39605    pkg_failed=untried
39606fi
39607if test -n "$LUA_LIBS"; then
39608    pkg_cv_LUA_LIBS="$LUA_LIBS"
39609 elif test -n "$PKG_CONFIG"; then
39610    if test -n "$PKG_CONFIG" && \
39611    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
39612  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
39613  ac_status=$?
39614  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39615  test $ac_status = 0; }; then
39616  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
39617		      test "x$?" != "x0" && pkg_failed=yes
39618else
39619  pkg_failed=yes
39620fi
39621 else
39622    pkg_failed=untried
39623fi
39624
39625
39626
39627if test $pkg_failed = yes; then
39628   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39629$as_echo "no" >&6; }
39630
39631if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39632        _pkg_short_errors_supported=yes
39633else
39634        _pkg_short_errors_supported=no
39635fi
39636        if test $_pkg_short_errors_supported = yes; then
39637	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
39638        else
39639	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
39640        fi
39641	# Put the nasty error message in config.log where it belongs
39642	echo "$LUA_PKG_ERRORS" >&5
39643
39644	with_liblua="no (pkg-config cannot find liblua)"
39645
39646elif test $pkg_failed = untried; then
39647     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39648$as_echo "no" >&6; }
39649	with_liblua="no (pkg-config cannot find liblua)"
39650
39651else
39652	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
39653	LUA_LIBS=$pkg_cv_LUA_LIBS
39654        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39655$as_echo "yes" >&6; }
39656	with_liblua="yes"
39657fi
39658
39659
39660elif test $pkg_failed = untried; then
39661     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39662$as_echo "no" >&6; }
39663
39664
39665pkg_failed=no
39666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
39667$as_echo_n "checking for LUA... " >&6; }
39668
39669if test -n "$LUA_CFLAGS"; then
39670    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
39671 elif test -n "$PKG_CONFIG"; then
39672    if test -n "$PKG_CONFIG" && \
39673    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
39674  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
39675  ac_status=$?
39676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39677  test $ac_status = 0; }; then
39678  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
39679		      test "x$?" != "x0" && pkg_failed=yes
39680else
39681  pkg_failed=yes
39682fi
39683 else
39684    pkg_failed=untried
39685fi
39686if test -n "$LUA_LIBS"; then
39687    pkg_cv_LUA_LIBS="$LUA_LIBS"
39688 elif test -n "$PKG_CONFIG"; then
39689    if test -n "$PKG_CONFIG" && \
39690    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
39691  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
39692  ac_status=$?
39693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39694  test $ac_status = 0; }; then
39695  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
39696		      test "x$?" != "x0" && pkg_failed=yes
39697else
39698  pkg_failed=yes
39699fi
39700 else
39701    pkg_failed=untried
39702fi
39703
39704
39705
39706if test $pkg_failed = yes; then
39707   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39708$as_echo "no" >&6; }
39709
39710if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39711        _pkg_short_errors_supported=yes
39712else
39713        _pkg_short_errors_supported=no
39714fi
39715        if test $_pkg_short_errors_supported = yes; then
39716	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
39717        else
39718	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
39719        fi
39720	# Put the nasty error message in config.log where it belongs
39721	echo "$LUA_PKG_ERRORS" >&5
39722
39723	with_liblua="no (pkg-config cannot find liblua)"
39724
39725elif test $pkg_failed = untried; then
39726     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39727$as_echo "no" >&6; }
39728	with_liblua="no (pkg-config cannot find liblua)"
39729
39730else
39731	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
39732	LUA_LIBS=$pkg_cv_LUA_LIBS
39733        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39734$as_echo "yes" >&6; }
39735	with_liblua="yes"
39736fi
39737
39738
39739else
39740	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
39741	LUA_LIBS=$pkg_cv_LUA_LIBS
39742        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39743$as_echo "yes" >&6; }
39744	with_liblua="yes"
39745fi
39746
39747
39748else
39749	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
39750	LUA_LIBS=$pkg_cv_LUA_LIBS
39751        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39752$as_echo "yes" >&6; }
39753	with_liblua="yes"
39754fi
39755
39756
39757elif test $pkg_failed = untried; then
39758     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39759$as_echo "no" >&6; }
39760
39761
39762pkg_failed=no
39763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
39764$as_echo_n "checking for LUA... " >&6; }
39765
39766if test -n "$LUA_CFLAGS"; then
39767    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
39768 elif test -n "$PKG_CONFIG"; then
39769    if test -n "$PKG_CONFIG" && \
39770    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
39771  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
39772  ac_status=$?
39773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39774  test $ac_status = 0; }; then
39775  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
39776		      test "x$?" != "x0" && pkg_failed=yes
39777else
39778  pkg_failed=yes
39779fi
39780 else
39781    pkg_failed=untried
39782fi
39783if test -n "$LUA_LIBS"; then
39784    pkg_cv_LUA_LIBS="$LUA_LIBS"
39785 elif test -n "$PKG_CONFIG"; then
39786    if test -n "$PKG_CONFIG" && \
39787    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
39788  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
39789  ac_status=$?
39790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39791  test $ac_status = 0; }; then
39792  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
39793		      test "x$?" != "x0" && pkg_failed=yes
39794else
39795  pkg_failed=yes
39796fi
39797 else
39798    pkg_failed=untried
39799fi
39800
39801
39802
39803if test $pkg_failed = yes; then
39804   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39805$as_echo "no" >&6; }
39806
39807if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39808        _pkg_short_errors_supported=yes
39809else
39810        _pkg_short_errors_supported=no
39811fi
39812        if test $_pkg_short_errors_supported = yes; then
39813	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
39814        else
39815	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
39816        fi
39817	# Put the nasty error message in config.log where it belongs
39818	echo "$LUA_PKG_ERRORS" >&5
39819
39820
39821
39822pkg_failed=no
39823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
39824$as_echo_n "checking for LUA... " >&6; }
39825
39826if test -n "$LUA_CFLAGS"; then
39827    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
39828 elif test -n "$PKG_CONFIG"; then
39829    if test -n "$PKG_CONFIG" && \
39830    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
39831  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
39832  ac_status=$?
39833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39834  test $ac_status = 0; }; then
39835  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
39836		      test "x$?" != "x0" && pkg_failed=yes
39837else
39838  pkg_failed=yes
39839fi
39840 else
39841    pkg_failed=untried
39842fi
39843if test -n "$LUA_LIBS"; then
39844    pkg_cv_LUA_LIBS="$LUA_LIBS"
39845 elif test -n "$PKG_CONFIG"; then
39846    if test -n "$PKG_CONFIG" && \
39847    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
39848  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
39849  ac_status=$?
39850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39851  test $ac_status = 0; }; then
39852  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
39853		      test "x$?" != "x0" && pkg_failed=yes
39854else
39855  pkg_failed=yes
39856fi
39857 else
39858    pkg_failed=untried
39859fi
39860
39861
39862
39863if test $pkg_failed = yes; then
39864   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39865$as_echo "no" >&6; }
39866
39867if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39868        _pkg_short_errors_supported=yes
39869else
39870        _pkg_short_errors_supported=no
39871fi
39872        if test $_pkg_short_errors_supported = yes; then
39873	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
39874        else
39875	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
39876        fi
39877	# Put the nasty error message in config.log where it belongs
39878	echo "$LUA_PKG_ERRORS" >&5
39879
39880
39881
39882pkg_failed=no
39883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
39884$as_echo_n "checking for LUA... " >&6; }
39885
39886if test -n "$LUA_CFLAGS"; then
39887    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
39888 elif test -n "$PKG_CONFIG"; then
39889    if test -n "$PKG_CONFIG" && \
39890    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
39891  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
39892  ac_status=$?
39893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39894  test $ac_status = 0; }; then
39895  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
39896		      test "x$?" != "x0" && pkg_failed=yes
39897else
39898  pkg_failed=yes
39899fi
39900 else
39901    pkg_failed=untried
39902fi
39903if test -n "$LUA_LIBS"; then
39904    pkg_cv_LUA_LIBS="$LUA_LIBS"
39905 elif test -n "$PKG_CONFIG"; then
39906    if test -n "$PKG_CONFIG" && \
39907    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
39908  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
39909  ac_status=$?
39910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39911  test $ac_status = 0; }; then
39912  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
39913		      test "x$?" != "x0" && pkg_failed=yes
39914else
39915  pkg_failed=yes
39916fi
39917 else
39918    pkg_failed=untried
39919fi
39920
39921
39922
39923if test $pkg_failed = yes; then
39924   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39925$as_echo "no" >&6; }
39926
39927if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39928        _pkg_short_errors_supported=yes
39929else
39930        _pkg_short_errors_supported=no
39931fi
39932        if test $_pkg_short_errors_supported = yes; then
39933	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
39934        else
39935	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
39936        fi
39937	# Put the nasty error message in config.log where it belongs
39938	echo "$LUA_PKG_ERRORS" >&5
39939
39940	with_liblua="no (pkg-config cannot find liblua)"
39941
39942elif test $pkg_failed = untried; then
39943     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39944$as_echo "no" >&6; }
39945	with_liblua="no (pkg-config cannot find liblua)"
39946
39947else
39948	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
39949	LUA_LIBS=$pkg_cv_LUA_LIBS
39950        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39951$as_echo "yes" >&6; }
39952	with_liblua="yes"
39953fi
39954
39955
39956elif test $pkg_failed = untried; then
39957     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39958$as_echo "no" >&6; }
39959
39960
39961pkg_failed=no
39962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
39963$as_echo_n "checking for LUA... " >&6; }
39964
39965if test -n "$LUA_CFLAGS"; then
39966    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
39967 elif test -n "$PKG_CONFIG"; then
39968    if test -n "$PKG_CONFIG" && \
39969    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
39970  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
39971  ac_status=$?
39972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39973  test $ac_status = 0; }; then
39974  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
39975		      test "x$?" != "x0" && pkg_failed=yes
39976else
39977  pkg_failed=yes
39978fi
39979 else
39980    pkg_failed=untried
39981fi
39982if test -n "$LUA_LIBS"; then
39983    pkg_cv_LUA_LIBS="$LUA_LIBS"
39984 elif test -n "$PKG_CONFIG"; then
39985    if test -n "$PKG_CONFIG" && \
39986    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
39987  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
39988  ac_status=$?
39989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39990  test $ac_status = 0; }; then
39991  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
39992		      test "x$?" != "x0" && pkg_failed=yes
39993else
39994  pkg_failed=yes
39995fi
39996 else
39997    pkg_failed=untried
39998fi
39999
40000
40001
40002if test $pkg_failed = yes; then
40003   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40004$as_echo "no" >&6; }
40005
40006if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40007        _pkg_short_errors_supported=yes
40008else
40009        _pkg_short_errors_supported=no
40010fi
40011        if test $_pkg_short_errors_supported = yes; then
40012	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
40013        else
40014	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
40015        fi
40016	# Put the nasty error message in config.log where it belongs
40017	echo "$LUA_PKG_ERRORS" >&5
40018
40019	with_liblua="no (pkg-config cannot find liblua)"
40020
40021elif test $pkg_failed = untried; then
40022     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40023$as_echo "no" >&6; }
40024	with_liblua="no (pkg-config cannot find liblua)"
40025
40026else
40027	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
40028	LUA_LIBS=$pkg_cv_LUA_LIBS
40029        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40030$as_echo "yes" >&6; }
40031	with_liblua="yes"
40032fi
40033
40034
40035else
40036	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
40037	LUA_LIBS=$pkg_cv_LUA_LIBS
40038        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40039$as_echo "yes" >&6; }
40040	with_liblua="yes"
40041fi
40042
40043
40044elif test $pkg_failed = untried; then
40045     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40046$as_echo "no" >&6; }
40047
40048
40049pkg_failed=no
40050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
40051$as_echo_n "checking for LUA... " >&6; }
40052
40053if test -n "$LUA_CFLAGS"; then
40054    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
40055 elif test -n "$PKG_CONFIG"; then
40056    if test -n "$PKG_CONFIG" && \
40057    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
40058  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
40059  ac_status=$?
40060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40061  test $ac_status = 0; }; then
40062  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
40063		      test "x$?" != "x0" && pkg_failed=yes
40064else
40065  pkg_failed=yes
40066fi
40067 else
40068    pkg_failed=untried
40069fi
40070if test -n "$LUA_LIBS"; then
40071    pkg_cv_LUA_LIBS="$LUA_LIBS"
40072 elif test -n "$PKG_CONFIG"; then
40073    if test -n "$PKG_CONFIG" && \
40074    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
40075  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
40076  ac_status=$?
40077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40078  test $ac_status = 0; }; then
40079  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
40080		      test "x$?" != "x0" && pkg_failed=yes
40081else
40082  pkg_failed=yes
40083fi
40084 else
40085    pkg_failed=untried
40086fi
40087
40088
40089
40090if test $pkg_failed = yes; then
40091   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40092$as_echo "no" >&6; }
40093
40094if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40095        _pkg_short_errors_supported=yes
40096else
40097        _pkg_short_errors_supported=no
40098fi
40099        if test $_pkg_short_errors_supported = yes; then
40100	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
40101        else
40102	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
40103        fi
40104	# Put the nasty error message in config.log where it belongs
40105	echo "$LUA_PKG_ERRORS" >&5
40106
40107
40108
40109pkg_failed=no
40110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
40111$as_echo_n "checking for LUA... " >&6; }
40112
40113if test -n "$LUA_CFLAGS"; then
40114    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
40115 elif test -n "$PKG_CONFIG"; then
40116    if test -n "$PKG_CONFIG" && \
40117    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
40118  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
40119  ac_status=$?
40120  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40121  test $ac_status = 0; }; then
40122  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
40123		      test "x$?" != "x0" && pkg_failed=yes
40124else
40125  pkg_failed=yes
40126fi
40127 else
40128    pkg_failed=untried
40129fi
40130if test -n "$LUA_LIBS"; then
40131    pkg_cv_LUA_LIBS="$LUA_LIBS"
40132 elif test -n "$PKG_CONFIG"; then
40133    if test -n "$PKG_CONFIG" && \
40134    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
40135  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
40136  ac_status=$?
40137  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40138  test $ac_status = 0; }; then
40139  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
40140		      test "x$?" != "x0" && pkg_failed=yes
40141else
40142  pkg_failed=yes
40143fi
40144 else
40145    pkg_failed=untried
40146fi
40147
40148
40149
40150if test $pkg_failed = yes; then
40151   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40152$as_echo "no" >&6; }
40153
40154if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40155        _pkg_short_errors_supported=yes
40156else
40157        _pkg_short_errors_supported=no
40158fi
40159        if test $_pkg_short_errors_supported = yes; then
40160	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
40161        else
40162	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
40163        fi
40164	# Put the nasty error message in config.log where it belongs
40165	echo "$LUA_PKG_ERRORS" >&5
40166
40167	with_liblua="no (pkg-config cannot find liblua)"
40168
40169elif test $pkg_failed = untried; then
40170     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40171$as_echo "no" >&6; }
40172	with_liblua="no (pkg-config cannot find liblua)"
40173
40174else
40175	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
40176	LUA_LIBS=$pkg_cv_LUA_LIBS
40177        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40178$as_echo "yes" >&6; }
40179	with_liblua="yes"
40180fi
40181
40182
40183elif test $pkg_failed = untried; then
40184     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40185$as_echo "no" >&6; }
40186
40187
40188pkg_failed=no
40189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
40190$as_echo_n "checking for LUA... " >&6; }
40191
40192if test -n "$LUA_CFLAGS"; then
40193    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
40194 elif test -n "$PKG_CONFIG"; then
40195    if test -n "$PKG_CONFIG" && \
40196    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
40197  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
40198  ac_status=$?
40199  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40200  test $ac_status = 0; }; then
40201  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
40202		      test "x$?" != "x0" && pkg_failed=yes
40203else
40204  pkg_failed=yes
40205fi
40206 else
40207    pkg_failed=untried
40208fi
40209if test -n "$LUA_LIBS"; then
40210    pkg_cv_LUA_LIBS="$LUA_LIBS"
40211 elif test -n "$PKG_CONFIG"; then
40212    if test -n "$PKG_CONFIG" && \
40213    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
40214  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
40215  ac_status=$?
40216  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40217  test $ac_status = 0; }; then
40218  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
40219		      test "x$?" != "x0" && pkg_failed=yes
40220else
40221  pkg_failed=yes
40222fi
40223 else
40224    pkg_failed=untried
40225fi
40226
40227
40228
40229if test $pkg_failed = yes; then
40230   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40231$as_echo "no" >&6; }
40232
40233if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40234        _pkg_short_errors_supported=yes
40235else
40236        _pkg_short_errors_supported=no
40237fi
40238        if test $_pkg_short_errors_supported = yes; then
40239	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
40240        else
40241	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
40242        fi
40243	# Put the nasty error message in config.log where it belongs
40244	echo "$LUA_PKG_ERRORS" >&5
40245
40246	with_liblua="no (pkg-config cannot find liblua)"
40247
40248elif test $pkg_failed = untried; then
40249     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40250$as_echo "no" >&6; }
40251	with_liblua="no (pkg-config cannot find liblua)"
40252
40253else
40254	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
40255	LUA_LIBS=$pkg_cv_LUA_LIBS
40256        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40257$as_echo "yes" >&6; }
40258	with_liblua="yes"
40259fi
40260
40261
40262else
40263	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
40264	LUA_LIBS=$pkg_cv_LUA_LIBS
40265        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40266$as_echo "yes" >&6; }
40267	with_liblua="yes"
40268fi
40269
40270
40271else
40272	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
40273	LUA_LIBS=$pkg_cv_LUA_LIBS
40274        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40275$as_echo "yes" >&6; }
40276	with_liblua="yes"
40277fi
40278
40279
40280else
40281	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
40282	LUA_LIBS=$pkg_cv_LUA_LIBS
40283        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40284$as_echo "yes" >&6; }
40285	with_liblua="yes"
40286fi
40287
40288
40289else
40290	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
40291	LUA_LIBS=$pkg_cv_LUA_LIBS
40292        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40293$as_echo "yes" >&6; }
40294	with_liblua="yes"
40295fi
40296
40297
40298else
40299	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
40300	LUA_LIBS=$pkg_cv_LUA_LIBS
40301        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40302$as_echo "yes" >&6; }
40303	with_liblua="yes"
40304fi
40305
40306
40307elif test $pkg_failed = untried; then
40308     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40309$as_echo "no" >&6; }
40310
40311
40312pkg_failed=no
40313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
40314$as_echo_n "checking for LUA... " >&6; }
40315
40316if test -n "$LUA_CFLAGS"; then
40317    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
40318 elif test -n "$PKG_CONFIG"; then
40319    if test -n "$PKG_CONFIG" && \
40320    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
40321  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
40322  ac_status=$?
40323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40324  test $ac_status = 0; }; then
40325  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.2" 2>/dev/null`
40326		      test "x$?" != "x0" && pkg_failed=yes
40327else
40328  pkg_failed=yes
40329fi
40330 else
40331    pkg_failed=untried
40332fi
40333if test -n "$LUA_LIBS"; then
40334    pkg_cv_LUA_LIBS="$LUA_LIBS"
40335 elif test -n "$PKG_CONFIG"; then
40336    if test -n "$PKG_CONFIG" && \
40337    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
40338  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
40339  ac_status=$?
40340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40341  test $ac_status = 0; }; then
40342  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.2" 2>/dev/null`
40343		      test "x$?" != "x0" && pkg_failed=yes
40344else
40345  pkg_failed=yes
40346fi
40347 else
40348    pkg_failed=untried
40349fi
40350
40351
40352
40353if test $pkg_failed = yes; then
40354   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40355$as_echo "no" >&6; }
40356
40357if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40358        _pkg_short_errors_supported=yes
40359else
40360        _pkg_short_errors_supported=no
40361fi
40362        if test $_pkg_short_errors_supported = yes; then
40363	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.2" 2>&1`
40364        else
40365	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.2" 2>&1`
40366        fi
40367	# Put the nasty error message in config.log where it belongs
40368	echo "$LUA_PKG_ERRORS" >&5
40369
40370
40371
40372pkg_failed=no
40373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
40374$as_echo_n "checking for LUA... " >&6; }
40375
40376if test -n "$LUA_CFLAGS"; then
40377    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
40378 elif test -n "$PKG_CONFIG"; then
40379    if test -n "$PKG_CONFIG" && \
40380    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
40381  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
40382  ac_status=$?
40383  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40384  test $ac_status = 0; }; then
40385  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
40386		      test "x$?" != "x0" && pkg_failed=yes
40387else
40388  pkg_failed=yes
40389fi
40390 else
40391    pkg_failed=untried
40392fi
40393if test -n "$LUA_LIBS"; then
40394    pkg_cv_LUA_LIBS="$LUA_LIBS"
40395 elif test -n "$PKG_CONFIG"; then
40396    if test -n "$PKG_CONFIG" && \
40397    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
40398  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
40399  ac_status=$?
40400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40401  test $ac_status = 0; }; then
40402  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
40403		      test "x$?" != "x0" && pkg_failed=yes
40404else
40405  pkg_failed=yes
40406fi
40407 else
40408    pkg_failed=untried
40409fi
40410
40411
40412
40413if test $pkg_failed = yes; then
40414   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40415$as_echo "no" >&6; }
40416
40417if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40418        _pkg_short_errors_supported=yes
40419else
40420        _pkg_short_errors_supported=no
40421fi
40422        if test $_pkg_short_errors_supported = yes; then
40423	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
40424        else
40425	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
40426        fi
40427	# Put the nasty error message in config.log where it belongs
40428	echo "$LUA_PKG_ERRORS" >&5
40429
40430
40431
40432pkg_failed=no
40433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
40434$as_echo_n "checking for LUA... " >&6; }
40435
40436if test -n "$LUA_CFLAGS"; then
40437    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
40438 elif test -n "$PKG_CONFIG"; then
40439    if test -n "$PKG_CONFIG" && \
40440    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
40441  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
40442  ac_status=$?
40443  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40444  test $ac_status = 0; }; then
40445  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
40446		      test "x$?" != "x0" && pkg_failed=yes
40447else
40448  pkg_failed=yes
40449fi
40450 else
40451    pkg_failed=untried
40452fi
40453if test -n "$LUA_LIBS"; then
40454    pkg_cv_LUA_LIBS="$LUA_LIBS"
40455 elif test -n "$PKG_CONFIG"; then
40456    if test -n "$PKG_CONFIG" && \
40457    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
40458  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
40459  ac_status=$?
40460  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40461  test $ac_status = 0; }; then
40462  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
40463		      test "x$?" != "x0" && pkg_failed=yes
40464else
40465  pkg_failed=yes
40466fi
40467 else
40468    pkg_failed=untried
40469fi
40470
40471
40472
40473if test $pkg_failed = yes; then
40474   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40475$as_echo "no" >&6; }
40476
40477if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40478        _pkg_short_errors_supported=yes
40479else
40480        _pkg_short_errors_supported=no
40481fi
40482        if test $_pkg_short_errors_supported = yes; then
40483	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
40484        else
40485	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
40486        fi
40487	# Put the nasty error message in config.log where it belongs
40488	echo "$LUA_PKG_ERRORS" >&5
40489
40490
40491
40492pkg_failed=no
40493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
40494$as_echo_n "checking for LUA... " >&6; }
40495
40496if test -n "$LUA_CFLAGS"; then
40497    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
40498 elif test -n "$PKG_CONFIG"; then
40499    if test -n "$PKG_CONFIG" && \
40500    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
40501  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
40502  ac_status=$?
40503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40504  test $ac_status = 0; }; then
40505  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
40506		      test "x$?" != "x0" && pkg_failed=yes
40507else
40508  pkg_failed=yes
40509fi
40510 else
40511    pkg_failed=untried
40512fi
40513if test -n "$LUA_LIBS"; then
40514    pkg_cv_LUA_LIBS="$LUA_LIBS"
40515 elif test -n "$PKG_CONFIG"; then
40516    if test -n "$PKG_CONFIG" && \
40517    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
40518  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
40519  ac_status=$?
40520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40521  test $ac_status = 0; }; then
40522  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
40523		      test "x$?" != "x0" && pkg_failed=yes
40524else
40525  pkg_failed=yes
40526fi
40527 else
40528    pkg_failed=untried
40529fi
40530
40531
40532
40533if test $pkg_failed = yes; then
40534   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40535$as_echo "no" >&6; }
40536
40537if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40538        _pkg_short_errors_supported=yes
40539else
40540        _pkg_short_errors_supported=no
40541fi
40542        if test $_pkg_short_errors_supported = yes; then
40543	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
40544        else
40545	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
40546        fi
40547	# Put the nasty error message in config.log where it belongs
40548	echo "$LUA_PKG_ERRORS" >&5
40549
40550
40551
40552pkg_failed=no
40553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
40554$as_echo_n "checking for LUA... " >&6; }
40555
40556if test -n "$LUA_CFLAGS"; then
40557    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
40558 elif test -n "$PKG_CONFIG"; then
40559    if test -n "$PKG_CONFIG" && \
40560    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
40561  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
40562  ac_status=$?
40563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40564  test $ac_status = 0; }; then
40565  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
40566		      test "x$?" != "x0" && pkg_failed=yes
40567else
40568  pkg_failed=yes
40569fi
40570 else
40571    pkg_failed=untried
40572fi
40573if test -n "$LUA_LIBS"; then
40574    pkg_cv_LUA_LIBS="$LUA_LIBS"
40575 elif test -n "$PKG_CONFIG"; then
40576    if test -n "$PKG_CONFIG" && \
40577    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
40578  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
40579  ac_status=$?
40580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40581  test $ac_status = 0; }; then
40582  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
40583		      test "x$?" != "x0" && pkg_failed=yes
40584else
40585  pkg_failed=yes
40586fi
40587 else
40588    pkg_failed=untried
40589fi
40590
40591
40592
40593if test $pkg_failed = yes; then
40594   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40595$as_echo "no" >&6; }
40596
40597if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40598        _pkg_short_errors_supported=yes
40599else
40600        _pkg_short_errors_supported=no
40601fi
40602        if test $_pkg_short_errors_supported = yes; then
40603	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
40604        else
40605	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
40606        fi
40607	# Put the nasty error message in config.log where it belongs
40608	echo "$LUA_PKG_ERRORS" >&5
40609
40610
40611
40612pkg_failed=no
40613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
40614$as_echo_n "checking for LUA... " >&6; }
40615
40616if test -n "$LUA_CFLAGS"; then
40617    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
40618 elif test -n "$PKG_CONFIG"; then
40619    if test -n "$PKG_CONFIG" && \
40620    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
40621  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
40622  ac_status=$?
40623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40624  test $ac_status = 0; }; then
40625  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
40626		      test "x$?" != "x0" && pkg_failed=yes
40627else
40628  pkg_failed=yes
40629fi
40630 else
40631    pkg_failed=untried
40632fi
40633if test -n "$LUA_LIBS"; then
40634    pkg_cv_LUA_LIBS="$LUA_LIBS"
40635 elif test -n "$PKG_CONFIG"; then
40636    if test -n "$PKG_CONFIG" && \
40637    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
40638  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
40639  ac_status=$?
40640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40641  test $ac_status = 0; }; then
40642  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
40643		      test "x$?" != "x0" && pkg_failed=yes
40644else
40645  pkg_failed=yes
40646fi
40647 else
40648    pkg_failed=untried
40649fi
40650
40651
40652
40653if test $pkg_failed = yes; then
40654   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40655$as_echo "no" >&6; }
40656
40657if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40658        _pkg_short_errors_supported=yes
40659else
40660        _pkg_short_errors_supported=no
40661fi
40662        if test $_pkg_short_errors_supported = yes; then
40663	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
40664        else
40665	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
40666        fi
40667	# Put the nasty error message in config.log where it belongs
40668	echo "$LUA_PKG_ERRORS" >&5
40669
40670	with_liblua="no (pkg-config cannot find liblua)"
40671
40672elif test $pkg_failed = untried; then
40673     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40674$as_echo "no" >&6; }
40675	with_liblua="no (pkg-config cannot find liblua)"
40676
40677else
40678	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
40679	LUA_LIBS=$pkg_cv_LUA_LIBS
40680        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40681$as_echo "yes" >&6; }
40682	with_liblua="yes"
40683fi
40684
40685
40686elif test $pkg_failed = untried; then
40687     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40688$as_echo "no" >&6; }
40689
40690
40691pkg_failed=no
40692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
40693$as_echo_n "checking for LUA... " >&6; }
40694
40695if test -n "$LUA_CFLAGS"; then
40696    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
40697 elif test -n "$PKG_CONFIG"; then
40698    if test -n "$PKG_CONFIG" && \
40699    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
40700  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
40701  ac_status=$?
40702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40703  test $ac_status = 0; }; then
40704  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
40705		      test "x$?" != "x0" && pkg_failed=yes
40706else
40707  pkg_failed=yes
40708fi
40709 else
40710    pkg_failed=untried
40711fi
40712if test -n "$LUA_LIBS"; then
40713    pkg_cv_LUA_LIBS="$LUA_LIBS"
40714 elif test -n "$PKG_CONFIG"; then
40715    if test -n "$PKG_CONFIG" && \
40716    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
40717  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
40718  ac_status=$?
40719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40720  test $ac_status = 0; }; then
40721  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
40722		      test "x$?" != "x0" && pkg_failed=yes
40723else
40724  pkg_failed=yes
40725fi
40726 else
40727    pkg_failed=untried
40728fi
40729
40730
40731
40732if test $pkg_failed = yes; then
40733   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40734$as_echo "no" >&6; }
40735
40736if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40737        _pkg_short_errors_supported=yes
40738else
40739        _pkg_short_errors_supported=no
40740fi
40741        if test $_pkg_short_errors_supported = yes; then
40742	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
40743        else
40744	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
40745        fi
40746	# Put the nasty error message in config.log where it belongs
40747	echo "$LUA_PKG_ERRORS" >&5
40748
40749	with_liblua="no (pkg-config cannot find liblua)"
40750
40751elif test $pkg_failed = untried; then
40752     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40753$as_echo "no" >&6; }
40754	with_liblua="no (pkg-config cannot find liblua)"
40755
40756else
40757	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
40758	LUA_LIBS=$pkg_cv_LUA_LIBS
40759        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40760$as_echo "yes" >&6; }
40761	with_liblua="yes"
40762fi
40763
40764
40765else
40766	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
40767	LUA_LIBS=$pkg_cv_LUA_LIBS
40768        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40769$as_echo "yes" >&6; }
40770	with_liblua="yes"
40771fi
40772
40773
40774elif test $pkg_failed = untried; then
40775     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40776$as_echo "no" >&6; }
40777
40778
40779pkg_failed=no
40780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
40781$as_echo_n "checking for LUA... " >&6; }
40782
40783if test -n "$LUA_CFLAGS"; then
40784    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
40785 elif test -n "$PKG_CONFIG"; then
40786    if test -n "$PKG_CONFIG" && \
40787    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
40788  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
40789  ac_status=$?
40790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40791  test $ac_status = 0; }; then
40792  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
40793		      test "x$?" != "x0" && pkg_failed=yes
40794else
40795  pkg_failed=yes
40796fi
40797 else
40798    pkg_failed=untried
40799fi
40800if test -n "$LUA_LIBS"; then
40801    pkg_cv_LUA_LIBS="$LUA_LIBS"
40802 elif test -n "$PKG_CONFIG"; then
40803    if test -n "$PKG_CONFIG" && \
40804    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
40805  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
40806  ac_status=$?
40807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40808  test $ac_status = 0; }; then
40809  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
40810		      test "x$?" != "x0" && pkg_failed=yes
40811else
40812  pkg_failed=yes
40813fi
40814 else
40815    pkg_failed=untried
40816fi
40817
40818
40819
40820if test $pkg_failed = yes; then
40821   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40822$as_echo "no" >&6; }
40823
40824if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40825        _pkg_short_errors_supported=yes
40826else
40827        _pkg_short_errors_supported=no
40828fi
40829        if test $_pkg_short_errors_supported = yes; then
40830	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
40831        else
40832	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
40833        fi
40834	# Put the nasty error message in config.log where it belongs
40835	echo "$LUA_PKG_ERRORS" >&5
40836
40837
40838
40839pkg_failed=no
40840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
40841$as_echo_n "checking for LUA... " >&6; }
40842
40843if test -n "$LUA_CFLAGS"; then
40844    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
40845 elif test -n "$PKG_CONFIG"; then
40846    if test -n "$PKG_CONFIG" && \
40847    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
40848  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
40849  ac_status=$?
40850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40851  test $ac_status = 0; }; then
40852  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
40853		      test "x$?" != "x0" && pkg_failed=yes
40854else
40855  pkg_failed=yes
40856fi
40857 else
40858    pkg_failed=untried
40859fi
40860if test -n "$LUA_LIBS"; then
40861    pkg_cv_LUA_LIBS="$LUA_LIBS"
40862 elif test -n "$PKG_CONFIG"; then
40863    if test -n "$PKG_CONFIG" && \
40864    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
40865  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
40866  ac_status=$?
40867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40868  test $ac_status = 0; }; then
40869  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
40870		      test "x$?" != "x0" && pkg_failed=yes
40871else
40872  pkg_failed=yes
40873fi
40874 else
40875    pkg_failed=untried
40876fi
40877
40878
40879
40880if test $pkg_failed = yes; then
40881   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40882$as_echo "no" >&6; }
40883
40884if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40885        _pkg_short_errors_supported=yes
40886else
40887        _pkg_short_errors_supported=no
40888fi
40889        if test $_pkg_short_errors_supported = yes; then
40890	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
40891        else
40892	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
40893        fi
40894	# Put the nasty error message in config.log where it belongs
40895	echo "$LUA_PKG_ERRORS" >&5
40896
40897	with_liblua="no (pkg-config cannot find liblua)"
40898
40899elif test $pkg_failed = untried; then
40900     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40901$as_echo "no" >&6; }
40902	with_liblua="no (pkg-config cannot find liblua)"
40903
40904else
40905	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
40906	LUA_LIBS=$pkg_cv_LUA_LIBS
40907        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40908$as_echo "yes" >&6; }
40909	with_liblua="yes"
40910fi
40911
40912
40913elif test $pkg_failed = untried; then
40914     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40915$as_echo "no" >&6; }
40916
40917
40918pkg_failed=no
40919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
40920$as_echo_n "checking for LUA... " >&6; }
40921
40922if test -n "$LUA_CFLAGS"; then
40923    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
40924 elif test -n "$PKG_CONFIG"; then
40925    if test -n "$PKG_CONFIG" && \
40926    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
40927  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
40928  ac_status=$?
40929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40930  test $ac_status = 0; }; then
40931  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
40932		      test "x$?" != "x0" && pkg_failed=yes
40933else
40934  pkg_failed=yes
40935fi
40936 else
40937    pkg_failed=untried
40938fi
40939if test -n "$LUA_LIBS"; then
40940    pkg_cv_LUA_LIBS="$LUA_LIBS"
40941 elif test -n "$PKG_CONFIG"; then
40942    if test -n "$PKG_CONFIG" && \
40943    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
40944  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
40945  ac_status=$?
40946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40947  test $ac_status = 0; }; then
40948  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
40949		      test "x$?" != "x0" && pkg_failed=yes
40950else
40951  pkg_failed=yes
40952fi
40953 else
40954    pkg_failed=untried
40955fi
40956
40957
40958
40959if test $pkg_failed = yes; then
40960   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40961$as_echo "no" >&6; }
40962
40963if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40964        _pkg_short_errors_supported=yes
40965else
40966        _pkg_short_errors_supported=no
40967fi
40968        if test $_pkg_short_errors_supported = yes; then
40969	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
40970        else
40971	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
40972        fi
40973	# Put the nasty error message in config.log where it belongs
40974	echo "$LUA_PKG_ERRORS" >&5
40975
40976	with_liblua="no (pkg-config cannot find liblua)"
40977
40978elif test $pkg_failed = untried; then
40979     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40980$as_echo "no" >&6; }
40981	with_liblua="no (pkg-config cannot find liblua)"
40982
40983else
40984	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
40985	LUA_LIBS=$pkg_cv_LUA_LIBS
40986        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40987$as_echo "yes" >&6; }
40988	with_liblua="yes"
40989fi
40990
40991
40992else
40993	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
40994	LUA_LIBS=$pkg_cv_LUA_LIBS
40995        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40996$as_echo "yes" >&6; }
40997	with_liblua="yes"
40998fi
40999
41000
41001else
41002	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
41003	LUA_LIBS=$pkg_cv_LUA_LIBS
41004        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41005$as_echo "yes" >&6; }
41006	with_liblua="yes"
41007fi
41008
41009
41010elif test $pkg_failed = untried; then
41011     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41012$as_echo "no" >&6; }
41013
41014
41015pkg_failed=no
41016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
41017$as_echo_n "checking for LUA... " >&6; }
41018
41019if test -n "$LUA_CFLAGS"; then
41020    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
41021 elif test -n "$PKG_CONFIG"; then
41022    if test -n "$PKG_CONFIG" && \
41023    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
41024  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
41025  ac_status=$?
41026  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41027  test $ac_status = 0; }; then
41028  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
41029		      test "x$?" != "x0" && pkg_failed=yes
41030else
41031  pkg_failed=yes
41032fi
41033 else
41034    pkg_failed=untried
41035fi
41036if test -n "$LUA_LIBS"; then
41037    pkg_cv_LUA_LIBS="$LUA_LIBS"
41038 elif test -n "$PKG_CONFIG"; then
41039    if test -n "$PKG_CONFIG" && \
41040    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
41041  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
41042  ac_status=$?
41043  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41044  test $ac_status = 0; }; then
41045  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
41046		      test "x$?" != "x0" && pkg_failed=yes
41047else
41048  pkg_failed=yes
41049fi
41050 else
41051    pkg_failed=untried
41052fi
41053
41054
41055
41056if test $pkg_failed = yes; then
41057   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41058$as_echo "no" >&6; }
41059
41060if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41061        _pkg_short_errors_supported=yes
41062else
41063        _pkg_short_errors_supported=no
41064fi
41065        if test $_pkg_short_errors_supported = yes; then
41066	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
41067        else
41068	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
41069        fi
41070	# Put the nasty error message in config.log where it belongs
41071	echo "$LUA_PKG_ERRORS" >&5
41072
41073
41074
41075pkg_failed=no
41076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
41077$as_echo_n "checking for LUA... " >&6; }
41078
41079if test -n "$LUA_CFLAGS"; then
41080    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
41081 elif test -n "$PKG_CONFIG"; then
41082    if test -n "$PKG_CONFIG" && \
41083    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
41084  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
41085  ac_status=$?
41086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41087  test $ac_status = 0; }; then
41088  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
41089		      test "x$?" != "x0" && pkg_failed=yes
41090else
41091  pkg_failed=yes
41092fi
41093 else
41094    pkg_failed=untried
41095fi
41096if test -n "$LUA_LIBS"; then
41097    pkg_cv_LUA_LIBS="$LUA_LIBS"
41098 elif test -n "$PKG_CONFIG"; then
41099    if test -n "$PKG_CONFIG" && \
41100    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
41101  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
41102  ac_status=$?
41103  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41104  test $ac_status = 0; }; then
41105  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
41106		      test "x$?" != "x0" && pkg_failed=yes
41107else
41108  pkg_failed=yes
41109fi
41110 else
41111    pkg_failed=untried
41112fi
41113
41114
41115
41116if test $pkg_failed = yes; then
41117   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41118$as_echo "no" >&6; }
41119
41120if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41121        _pkg_short_errors_supported=yes
41122else
41123        _pkg_short_errors_supported=no
41124fi
41125        if test $_pkg_short_errors_supported = yes; then
41126	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
41127        else
41128	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
41129        fi
41130	# Put the nasty error message in config.log where it belongs
41131	echo "$LUA_PKG_ERRORS" >&5
41132
41133
41134
41135pkg_failed=no
41136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
41137$as_echo_n "checking for LUA... " >&6; }
41138
41139if test -n "$LUA_CFLAGS"; then
41140    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
41141 elif test -n "$PKG_CONFIG"; then
41142    if test -n "$PKG_CONFIG" && \
41143    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
41144  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
41145  ac_status=$?
41146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41147  test $ac_status = 0; }; then
41148  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
41149		      test "x$?" != "x0" && pkg_failed=yes
41150else
41151  pkg_failed=yes
41152fi
41153 else
41154    pkg_failed=untried
41155fi
41156if test -n "$LUA_LIBS"; then
41157    pkg_cv_LUA_LIBS="$LUA_LIBS"
41158 elif test -n "$PKG_CONFIG"; then
41159    if test -n "$PKG_CONFIG" && \
41160    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
41161  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
41162  ac_status=$?
41163  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41164  test $ac_status = 0; }; then
41165  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
41166		      test "x$?" != "x0" && pkg_failed=yes
41167else
41168  pkg_failed=yes
41169fi
41170 else
41171    pkg_failed=untried
41172fi
41173
41174
41175
41176if test $pkg_failed = yes; then
41177   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41178$as_echo "no" >&6; }
41179
41180if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41181        _pkg_short_errors_supported=yes
41182else
41183        _pkg_short_errors_supported=no
41184fi
41185        if test $_pkg_short_errors_supported = yes; then
41186	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
41187        else
41188	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
41189        fi
41190	# Put the nasty error message in config.log where it belongs
41191	echo "$LUA_PKG_ERRORS" >&5
41192
41193	with_liblua="no (pkg-config cannot find liblua)"
41194
41195elif test $pkg_failed = untried; then
41196     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41197$as_echo "no" >&6; }
41198	with_liblua="no (pkg-config cannot find liblua)"
41199
41200else
41201	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
41202	LUA_LIBS=$pkg_cv_LUA_LIBS
41203        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41204$as_echo "yes" >&6; }
41205	with_liblua="yes"
41206fi
41207
41208
41209elif test $pkg_failed = untried; then
41210     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41211$as_echo "no" >&6; }
41212
41213
41214pkg_failed=no
41215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
41216$as_echo_n "checking for LUA... " >&6; }
41217
41218if test -n "$LUA_CFLAGS"; then
41219    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
41220 elif test -n "$PKG_CONFIG"; then
41221    if test -n "$PKG_CONFIG" && \
41222    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
41223  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
41224  ac_status=$?
41225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41226  test $ac_status = 0; }; then
41227  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
41228		      test "x$?" != "x0" && pkg_failed=yes
41229else
41230  pkg_failed=yes
41231fi
41232 else
41233    pkg_failed=untried
41234fi
41235if test -n "$LUA_LIBS"; then
41236    pkg_cv_LUA_LIBS="$LUA_LIBS"
41237 elif test -n "$PKG_CONFIG"; then
41238    if test -n "$PKG_CONFIG" && \
41239    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
41240  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
41241  ac_status=$?
41242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41243  test $ac_status = 0; }; then
41244  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
41245		      test "x$?" != "x0" && pkg_failed=yes
41246else
41247  pkg_failed=yes
41248fi
41249 else
41250    pkg_failed=untried
41251fi
41252
41253
41254
41255if test $pkg_failed = yes; then
41256   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41257$as_echo "no" >&6; }
41258
41259if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41260        _pkg_short_errors_supported=yes
41261else
41262        _pkg_short_errors_supported=no
41263fi
41264        if test $_pkg_short_errors_supported = yes; then
41265	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
41266        else
41267	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
41268        fi
41269	# Put the nasty error message in config.log where it belongs
41270	echo "$LUA_PKG_ERRORS" >&5
41271
41272	with_liblua="no (pkg-config cannot find liblua)"
41273
41274elif test $pkg_failed = untried; then
41275     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41276$as_echo "no" >&6; }
41277	with_liblua="no (pkg-config cannot find liblua)"
41278
41279else
41280	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
41281	LUA_LIBS=$pkg_cv_LUA_LIBS
41282        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41283$as_echo "yes" >&6; }
41284	with_liblua="yes"
41285fi
41286
41287
41288else
41289	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
41290	LUA_LIBS=$pkg_cv_LUA_LIBS
41291        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41292$as_echo "yes" >&6; }
41293	with_liblua="yes"
41294fi
41295
41296
41297elif test $pkg_failed = untried; then
41298     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41299$as_echo "no" >&6; }
41300
41301
41302pkg_failed=no
41303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
41304$as_echo_n "checking for LUA... " >&6; }
41305
41306if test -n "$LUA_CFLAGS"; then
41307    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
41308 elif test -n "$PKG_CONFIG"; then
41309    if test -n "$PKG_CONFIG" && \
41310    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
41311  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
41312  ac_status=$?
41313  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41314  test $ac_status = 0; }; then
41315  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
41316		      test "x$?" != "x0" && pkg_failed=yes
41317else
41318  pkg_failed=yes
41319fi
41320 else
41321    pkg_failed=untried
41322fi
41323if test -n "$LUA_LIBS"; then
41324    pkg_cv_LUA_LIBS="$LUA_LIBS"
41325 elif test -n "$PKG_CONFIG"; then
41326    if test -n "$PKG_CONFIG" && \
41327    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
41328  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
41329  ac_status=$?
41330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41331  test $ac_status = 0; }; then
41332  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
41333		      test "x$?" != "x0" && pkg_failed=yes
41334else
41335  pkg_failed=yes
41336fi
41337 else
41338    pkg_failed=untried
41339fi
41340
41341
41342
41343if test $pkg_failed = yes; then
41344   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41345$as_echo "no" >&6; }
41346
41347if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41348        _pkg_short_errors_supported=yes
41349else
41350        _pkg_short_errors_supported=no
41351fi
41352        if test $_pkg_short_errors_supported = yes; then
41353	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
41354        else
41355	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
41356        fi
41357	# Put the nasty error message in config.log where it belongs
41358	echo "$LUA_PKG_ERRORS" >&5
41359
41360
41361
41362pkg_failed=no
41363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
41364$as_echo_n "checking for LUA... " >&6; }
41365
41366if test -n "$LUA_CFLAGS"; then
41367    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
41368 elif test -n "$PKG_CONFIG"; then
41369    if test -n "$PKG_CONFIG" && \
41370    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
41371  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
41372  ac_status=$?
41373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41374  test $ac_status = 0; }; then
41375  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
41376		      test "x$?" != "x0" && pkg_failed=yes
41377else
41378  pkg_failed=yes
41379fi
41380 else
41381    pkg_failed=untried
41382fi
41383if test -n "$LUA_LIBS"; then
41384    pkg_cv_LUA_LIBS="$LUA_LIBS"
41385 elif test -n "$PKG_CONFIG"; then
41386    if test -n "$PKG_CONFIG" && \
41387    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
41388  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
41389  ac_status=$?
41390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41391  test $ac_status = 0; }; then
41392  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
41393		      test "x$?" != "x0" && pkg_failed=yes
41394else
41395  pkg_failed=yes
41396fi
41397 else
41398    pkg_failed=untried
41399fi
41400
41401
41402
41403if test $pkg_failed = yes; then
41404   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41405$as_echo "no" >&6; }
41406
41407if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41408        _pkg_short_errors_supported=yes
41409else
41410        _pkg_short_errors_supported=no
41411fi
41412        if test $_pkg_short_errors_supported = yes; then
41413	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
41414        else
41415	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
41416        fi
41417	# Put the nasty error message in config.log where it belongs
41418	echo "$LUA_PKG_ERRORS" >&5
41419
41420	with_liblua="no (pkg-config cannot find liblua)"
41421
41422elif test $pkg_failed = untried; then
41423     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41424$as_echo "no" >&6; }
41425	with_liblua="no (pkg-config cannot find liblua)"
41426
41427else
41428	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
41429	LUA_LIBS=$pkg_cv_LUA_LIBS
41430        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41431$as_echo "yes" >&6; }
41432	with_liblua="yes"
41433fi
41434
41435
41436elif test $pkg_failed = untried; then
41437     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41438$as_echo "no" >&6; }
41439
41440
41441pkg_failed=no
41442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
41443$as_echo_n "checking for LUA... " >&6; }
41444
41445if test -n "$LUA_CFLAGS"; then
41446    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
41447 elif test -n "$PKG_CONFIG"; then
41448    if test -n "$PKG_CONFIG" && \
41449    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
41450  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
41451  ac_status=$?
41452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41453  test $ac_status = 0; }; then
41454  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
41455		      test "x$?" != "x0" && pkg_failed=yes
41456else
41457  pkg_failed=yes
41458fi
41459 else
41460    pkg_failed=untried
41461fi
41462if test -n "$LUA_LIBS"; then
41463    pkg_cv_LUA_LIBS="$LUA_LIBS"
41464 elif test -n "$PKG_CONFIG"; then
41465    if test -n "$PKG_CONFIG" && \
41466    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
41467  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
41468  ac_status=$?
41469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41470  test $ac_status = 0; }; then
41471  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
41472		      test "x$?" != "x0" && pkg_failed=yes
41473else
41474  pkg_failed=yes
41475fi
41476 else
41477    pkg_failed=untried
41478fi
41479
41480
41481
41482if test $pkg_failed = yes; then
41483   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41484$as_echo "no" >&6; }
41485
41486if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41487        _pkg_short_errors_supported=yes
41488else
41489        _pkg_short_errors_supported=no
41490fi
41491        if test $_pkg_short_errors_supported = yes; then
41492	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
41493        else
41494	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
41495        fi
41496	# Put the nasty error message in config.log where it belongs
41497	echo "$LUA_PKG_ERRORS" >&5
41498
41499	with_liblua="no (pkg-config cannot find liblua)"
41500
41501elif test $pkg_failed = untried; then
41502     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41503$as_echo "no" >&6; }
41504	with_liblua="no (pkg-config cannot find liblua)"
41505
41506else
41507	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
41508	LUA_LIBS=$pkg_cv_LUA_LIBS
41509        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41510$as_echo "yes" >&6; }
41511	with_liblua="yes"
41512fi
41513
41514
41515else
41516	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
41517	LUA_LIBS=$pkg_cv_LUA_LIBS
41518        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41519$as_echo "yes" >&6; }
41520	with_liblua="yes"
41521fi
41522
41523
41524else
41525	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
41526	LUA_LIBS=$pkg_cv_LUA_LIBS
41527        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41528$as_echo "yes" >&6; }
41529	with_liblua="yes"
41530fi
41531
41532
41533else
41534	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
41535	LUA_LIBS=$pkg_cv_LUA_LIBS
41536        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41537$as_echo "yes" >&6; }
41538	with_liblua="yes"
41539fi
41540
41541
41542elif test $pkg_failed = untried; then
41543     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41544$as_echo "no" >&6; }
41545
41546
41547pkg_failed=no
41548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
41549$as_echo_n "checking for LUA... " >&6; }
41550
41551if test -n "$LUA_CFLAGS"; then
41552    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
41553 elif test -n "$PKG_CONFIG"; then
41554    if test -n "$PKG_CONFIG" && \
41555    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
41556  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
41557  ac_status=$?
41558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41559  test $ac_status = 0; }; then
41560  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
41561		      test "x$?" != "x0" && pkg_failed=yes
41562else
41563  pkg_failed=yes
41564fi
41565 else
41566    pkg_failed=untried
41567fi
41568if test -n "$LUA_LIBS"; then
41569    pkg_cv_LUA_LIBS="$LUA_LIBS"
41570 elif test -n "$PKG_CONFIG"; then
41571    if test -n "$PKG_CONFIG" && \
41572    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
41573  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
41574  ac_status=$?
41575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41576  test $ac_status = 0; }; then
41577  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
41578		      test "x$?" != "x0" && pkg_failed=yes
41579else
41580  pkg_failed=yes
41581fi
41582 else
41583    pkg_failed=untried
41584fi
41585
41586
41587
41588if test $pkg_failed = yes; then
41589   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41590$as_echo "no" >&6; }
41591
41592if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41593        _pkg_short_errors_supported=yes
41594else
41595        _pkg_short_errors_supported=no
41596fi
41597        if test $_pkg_short_errors_supported = yes; then
41598	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
41599        else
41600	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
41601        fi
41602	# Put the nasty error message in config.log where it belongs
41603	echo "$LUA_PKG_ERRORS" >&5
41604
41605
41606
41607pkg_failed=no
41608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
41609$as_echo_n "checking for LUA... " >&6; }
41610
41611if test -n "$LUA_CFLAGS"; then
41612    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
41613 elif test -n "$PKG_CONFIG"; then
41614    if test -n "$PKG_CONFIG" && \
41615    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
41616  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
41617  ac_status=$?
41618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41619  test $ac_status = 0; }; then
41620  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
41621		      test "x$?" != "x0" && pkg_failed=yes
41622else
41623  pkg_failed=yes
41624fi
41625 else
41626    pkg_failed=untried
41627fi
41628if test -n "$LUA_LIBS"; then
41629    pkg_cv_LUA_LIBS="$LUA_LIBS"
41630 elif test -n "$PKG_CONFIG"; then
41631    if test -n "$PKG_CONFIG" && \
41632    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
41633  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
41634  ac_status=$?
41635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41636  test $ac_status = 0; }; then
41637  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
41638		      test "x$?" != "x0" && pkg_failed=yes
41639else
41640  pkg_failed=yes
41641fi
41642 else
41643    pkg_failed=untried
41644fi
41645
41646
41647
41648if test $pkg_failed = yes; then
41649   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41650$as_echo "no" >&6; }
41651
41652if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41653        _pkg_short_errors_supported=yes
41654else
41655        _pkg_short_errors_supported=no
41656fi
41657        if test $_pkg_short_errors_supported = yes; then
41658	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
41659        else
41660	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
41661        fi
41662	# Put the nasty error message in config.log where it belongs
41663	echo "$LUA_PKG_ERRORS" >&5
41664
41665
41666
41667pkg_failed=no
41668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
41669$as_echo_n "checking for LUA... " >&6; }
41670
41671if test -n "$LUA_CFLAGS"; then
41672    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
41673 elif test -n "$PKG_CONFIG"; then
41674    if test -n "$PKG_CONFIG" && \
41675    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
41676  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
41677  ac_status=$?
41678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41679  test $ac_status = 0; }; then
41680  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
41681		      test "x$?" != "x0" && pkg_failed=yes
41682else
41683  pkg_failed=yes
41684fi
41685 else
41686    pkg_failed=untried
41687fi
41688if test -n "$LUA_LIBS"; then
41689    pkg_cv_LUA_LIBS="$LUA_LIBS"
41690 elif test -n "$PKG_CONFIG"; then
41691    if test -n "$PKG_CONFIG" && \
41692    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
41693  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
41694  ac_status=$?
41695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41696  test $ac_status = 0; }; then
41697  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
41698		      test "x$?" != "x0" && pkg_failed=yes
41699else
41700  pkg_failed=yes
41701fi
41702 else
41703    pkg_failed=untried
41704fi
41705
41706
41707
41708if test $pkg_failed = yes; then
41709   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41710$as_echo "no" >&6; }
41711
41712if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41713        _pkg_short_errors_supported=yes
41714else
41715        _pkg_short_errors_supported=no
41716fi
41717        if test $_pkg_short_errors_supported = yes; then
41718	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
41719        else
41720	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
41721        fi
41722	# Put the nasty error message in config.log where it belongs
41723	echo "$LUA_PKG_ERRORS" >&5
41724
41725
41726
41727pkg_failed=no
41728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
41729$as_echo_n "checking for LUA... " >&6; }
41730
41731if test -n "$LUA_CFLAGS"; then
41732    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
41733 elif test -n "$PKG_CONFIG"; then
41734    if test -n "$PKG_CONFIG" && \
41735    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
41736  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
41737  ac_status=$?
41738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41739  test $ac_status = 0; }; then
41740  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
41741		      test "x$?" != "x0" && pkg_failed=yes
41742else
41743  pkg_failed=yes
41744fi
41745 else
41746    pkg_failed=untried
41747fi
41748if test -n "$LUA_LIBS"; then
41749    pkg_cv_LUA_LIBS="$LUA_LIBS"
41750 elif test -n "$PKG_CONFIG"; then
41751    if test -n "$PKG_CONFIG" && \
41752    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
41753  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
41754  ac_status=$?
41755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41756  test $ac_status = 0; }; then
41757  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
41758		      test "x$?" != "x0" && pkg_failed=yes
41759else
41760  pkg_failed=yes
41761fi
41762 else
41763    pkg_failed=untried
41764fi
41765
41766
41767
41768if test $pkg_failed = yes; then
41769   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41770$as_echo "no" >&6; }
41771
41772if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41773        _pkg_short_errors_supported=yes
41774else
41775        _pkg_short_errors_supported=no
41776fi
41777        if test $_pkg_short_errors_supported = yes; then
41778	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
41779        else
41780	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
41781        fi
41782	# Put the nasty error message in config.log where it belongs
41783	echo "$LUA_PKG_ERRORS" >&5
41784
41785	with_liblua="no (pkg-config cannot find liblua)"
41786
41787elif test $pkg_failed = untried; then
41788     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41789$as_echo "no" >&6; }
41790	with_liblua="no (pkg-config cannot find liblua)"
41791
41792else
41793	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
41794	LUA_LIBS=$pkg_cv_LUA_LIBS
41795        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41796$as_echo "yes" >&6; }
41797	with_liblua="yes"
41798fi
41799
41800
41801elif test $pkg_failed = untried; then
41802     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41803$as_echo "no" >&6; }
41804
41805
41806pkg_failed=no
41807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
41808$as_echo_n "checking for LUA... " >&6; }
41809
41810if test -n "$LUA_CFLAGS"; then
41811    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
41812 elif test -n "$PKG_CONFIG"; then
41813    if test -n "$PKG_CONFIG" && \
41814    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
41815  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
41816  ac_status=$?
41817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41818  test $ac_status = 0; }; then
41819  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
41820		      test "x$?" != "x0" && pkg_failed=yes
41821else
41822  pkg_failed=yes
41823fi
41824 else
41825    pkg_failed=untried
41826fi
41827if test -n "$LUA_LIBS"; then
41828    pkg_cv_LUA_LIBS="$LUA_LIBS"
41829 elif test -n "$PKG_CONFIG"; then
41830    if test -n "$PKG_CONFIG" && \
41831    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
41832  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
41833  ac_status=$?
41834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41835  test $ac_status = 0; }; then
41836  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
41837		      test "x$?" != "x0" && pkg_failed=yes
41838else
41839  pkg_failed=yes
41840fi
41841 else
41842    pkg_failed=untried
41843fi
41844
41845
41846
41847if test $pkg_failed = yes; then
41848   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41849$as_echo "no" >&6; }
41850
41851if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41852        _pkg_short_errors_supported=yes
41853else
41854        _pkg_short_errors_supported=no
41855fi
41856        if test $_pkg_short_errors_supported = yes; then
41857	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
41858        else
41859	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
41860        fi
41861	# Put the nasty error message in config.log where it belongs
41862	echo "$LUA_PKG_ERRORS" >&5
41863
41864	with_liblua="no (pkg-config cannot find liblua)"
41865
41866elif test $pkg_failed = untried; then
41867     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41868$as_echo "no" >&6; }
41869	with_liblua="no (pkg-config cannot find liblua)"
41870
41871else
41872	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
41873	LUA_LIBS=$pkg_cv_LUA_LIBS
41874        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41875$as_echo "yes" >&6; }
41876	with_liblua="yes"
41877fi
41878
41879
41880else
41881	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
41882	LUA_LIBS=$pkg_cv_LUA_LIBS
41883        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41884$as_echo "yes" >&6; }
41885	with_liblua="yes"
41886fi
41887
41888
41889elif test $pkg_failed = untried; then
41890     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41891$as_echo "no" >&6; }
41892
41893
41894pkg_failed=no
41895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
41896$as_echo_n "checking for LUA... " >&6; }
41897
41898if test -n "$LUA_CFLAGS"; then
41899    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
41900 elif test -n "$PKG_CONFIG"; then
41901    if test -n "$PKG_CONFIG" && \
41902    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
41903  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
41904  ac_status=$?
41905  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41906  test $ac_status = 0; }; then
41907  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
41908		      test "x$?" != "x0" && pkg_failed=yes
41909else
41910  pkg_failed=yes
41911fi
41912 else
41913    pkg_failed=untried
41914fi
41915if test -n "$LUA_LIBS"; then
41916    pkg_cv_LUA_LIBS="$LUA_LIBS"
41917 elif test -n "$PKG_CONFIG"; then
41918    if test -n "$PKG_CONFIG" && \
41919    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
41920  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
41921  ac_status=$?
41922  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41923  test $ac_status = 0; }; then
41924  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
41925		      test "x$?" != "x0" && pkg_failed=yes
41926else
41927  pkg_failed=yes
41928fi
41929 else
41930    pkg_failed=untried
41931fi
41932
41933
41934
41935if test $pkg_failed = yes; then
41936   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41937$as_echo "no" >&6; }
41938
41939if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41940        _pkg_short_errors_supported=yes
41941else
41942        _pkg_short_errors_supported=no
41943fi
41944        if test $_pkg_short_errors_supported = yes; then
41945	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
41946        else
41947	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
41948        fi
41949	# Put the nasty error message in config.log where it belongs
41950	echo "$LUA_PKG_ERRORS" >&5
41951
41952
41953
41954pkg_failed=no
41955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
41956$as_echo_n "checking for LUA... " >&6; }
41957
41958if test -n "$LUA_CFLAGS"; then
41959    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
41960 elif test -n "$PKG_CONFIG"; then
41961    if test -n "$PKG_CONFIG" && \
41962    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
41963  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
41964  ac_status=$?
41965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41966  test $ac_status = 0; }; then
41967  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
41968		      test "x$?" != "x0" && pkg_failed=yes
41969else
41970  pkg_failed=yes
41971fi
41972 else
41973    pkg_failed=untried
41974fi
41975if test -n "$LUA_LIBS"; then
41976    pkg_cv_LUA_LIBS="$LUA_LIBS"
41977 elif test -n "$PKG_CONFIG"; then
41978    if test -n "$PKG_CONFIG" && \
41979    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
41980  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
41981  ac_status=$?
41982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41983  test $ac_status = 0; }; then
41984  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
41985		      test "x$?" != "x0" && pkg_failed=yes
41986else
41987  pkg_failed=yes
41988fi
41989 else
41990    pkg_failed=untried
41991fi
41992
41993
41994
41995if test $pkg_failed = yes; then
41996   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41997$as_echo "no" >&6; }
41998
41999if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42000        _pkg_short_errors_supported=yes
42001else
42002        _pkg_short_errors_supported=no
42003fi
42004        if test $_pkg_short_errors_supported = yes; then
42005	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
42006        else
42007	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
42008        fi
42009	# Put the nasty error message in config.log where it belongs
42010	echo "$LUA_PKG_ERRORS" >&5
42011
42012	with_liblua="no (pkg-config cannot find liblua)"
42013
42014elif test $pkg_failed = untried; then
42015     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42016$as_echo "no" >&6; }
42017	with_liblua="no (pkg-config cannot find liblua)"
42018
42019else
42020	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
42021	LUA_LIBS=$pkg_cv_LUA_LIBS
42022        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42023$as_echo "yes" >&6; }
42024	with_liblua="yes"
42025fi
42026
42027
42028elif test $pkg_failed = untried; then
42029     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42030$as_echo "no" >&6; }
42031
42032
42033pkg_failed=no
42034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
42035$as_echo_n "checking for LUA... " >&6; }
42036
42037if test -n "$LUA_CFLAGS"; then
42038    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
42039 elif test -n "$PKG_CONFIG"; then
42040    if test -n "$PKG_CONFIG" && \
42041    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
42042  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
42043  ac_status=$?
42044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42045  test $ac_status = 0; }; then
42046  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
42047		      test "x$?" != "x0" && pkg_failed=yes
42048else
42049  pkg_failed=yes
42050fi
42051 else
42052    pkg_failed=untried
42053fi
42054if test -n "$LUA_LIBS"; then
42055    pkg_cv_LUA_LIBS="$LUA_LIBS"
42056 elif test -n "$PKG_CONFIG"; then
42057    if test -n "$PKG_CONFIG" && \
42058    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
42059  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
42060  ac_status=$?
42061  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42062  test $ac_status = 0; }; then
42063  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
42064		      test "x$?" != "x0" && pkg_failed=yes
42065else
42066  pkg_failed=yes
42067fi
42068 else
42069    pkg_failed=untried
42070fi
42071
42072
42073
42074if test $pkg_failed = yes; then
42075   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42076$as_echo "no" >&6; }
42077
42078if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42079        _pkg_short_errors_supported=yes
42080else
42081        _pkg_short_errors_supported=no
42082fi
42083        if test $_pkg_short_errors_supported = yes; then
42084	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
42085        else
42086	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
42087        fi
42088	# Put the nasty error message in config.log where it belongs
42089	echo "$LUA_PKG_ERRORS" >&5
42090
42091	with_liblua="no (pkg-config cannot find liblua)"
42092
42093elif test $pkg_failed = untried; then
42094     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42095$as_echo "no" >&6; }
42096	with_liblua="no (pkg-config cannot find liblua)"
42097
42098else
42099	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
42100	LUA_LIBS=$pkg_cv_LUA_LIBS
42101        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42102$as_echo "yes" >&6; }
42103	with_liblua="yes"
42104fi
42105
42106
42107else
42108	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
42109	LUA_LIBS=$pkg_cv_LUA_LIBS
42110        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42111$as_echo "yes" >&6; }
42112	with_liblua="yes"
42113fi
42114
42115
42116else
42117	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
42118	LUA_LIBS=$pkg_cv_LUA_LIBS
42119        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42120$as_echo "yes" >&6; }
42121	with_liblua="yes"
42122fi
42123
42124
42125elif test $pkg_failed = untried; then
42126     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42127$as_echo "no" >&6; }
42128
42129
42130pkg_failed=no
42131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
42132$as_echo_n "checking for LUA... " >&6; }
42133
42134if test -n "$LUA_CFLAGS"; then
42135    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
42136 elif test -n "$PKG_CONFIG"; then
42137    if test -n "$PKG_CONFIG" && \
42138    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
42139  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
42140  ac_status=$?
42141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42142  test $ac_status = 0; }; then
42143  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
42144		      test "x$?" != "x0" && pkg_failed=yes
42145else
42146  pkg_failed=yes
42147fi
42148 else
42149    pkg_failed=untried
42150fi
42151if test -n "$LUA_LIBS"; then
42152    pkg_cv_LUA_LIBS="$LUA_LIBS"
42153 elif test -n "$PKG_CONFIG"; then
42154    if test -n "$PKG_CONFIG" && \
42155    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
42156  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
42157  ac_status=$?
42158  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42159  test $ac_status = 0; }; then
42160  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
42161		      test "x$?" != "x0" && pkg_failed=yes
42162else
42163  pkg_failed=yes
42164fi
42165 else
42166    pkg_failed=untried
42167fi
42168
42169
42170
42171if test $pkg_failed = yes; then
42172   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42173$as_echo "no" >&6; }
42174
42175if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42176        _pkg_short_errors_supported=yes
42177else
42178        _pkg_short_errors_supported=no
42179fi
42180        if test $_pkg_short_errors_supported = yes; then
42181	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
42182        else
42183	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
42184        fi
42185	# Put the nasty error message in config.log where it belongs
42186	echo "$LUA_PKG_ERRORS" >&5
42187
42188
42189
42190pkg_failed=no
42191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
42192$as_echo_n "checking for LUA... " >&6; }
42193
42194if test -n "$LUA_CFLAGS"; then
42195    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
42196 elif test -n "$PKG_CONFIG"; then
42197    if test -n "$PKG_CONFIG" && \
42198    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
42199  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
42200  ac_status=$?
42201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42202  test $ac_status = 0; }; then
42203  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
42204		      test "x$?" != "x0" && pkg_failed=yes
42205else
42206  pkg_failed=yes
42207fi
42208 else
42209    pkg_failed=untried
42210fi
42211if test -n "$LUA_LIBS"; then
42212    pkg_cv_LUA_LIBS="$LUA_LIBS"
42213 elif test -n "$PKG_CONFIG"; then
42214    if test -n "$PKG_CONFIG" && \
42215    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
42216  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
42217  ac_status=$?
42218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42219  test $ac_status = 0; }; then
42220  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
42221		      test "x$?" != "x0" && pkg_failed=yes
42222else
42223  pkg_failed=yes
42224fi
42225 else
42226    pkg_failed=untried
42227fi
42228
42229
42230
42231if test $pkg_failed = yes; then
42232   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42233$as_echo "no" >&6; }
42234
42235if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42236        _pkg_short_errors_supported=yes
42237else
42238        _pkg_short_errors_supported=no
42239fi
42240        if test $_pkg_short_errors_supported = yes; then
42241	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
42242        else
42243	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
42244        fi
42245	# Put the nasty error message in config.log where it belongs
42246	echo "$LUA_PKG_ERRORS" >&5
42247
42248
42249
42250pkg_failed=no
42251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
42252$as_echo_n "checking for LUA... " >&6; }
42253
42254if test -n "$LUA_CFLAGS"; then
42255    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
42256 elif test -n "$PKG_CONFIG"; then
42257    if test -n "$PKG_CONFIG" && \
42258    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
42259  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
42260  ac_status=$?
42261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42262  test $ac_status = 0; }; then
42263  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
42264		      test "x$?" != "x0" && pkg_failed=yes
42265else
42266  pkg_failed=yes
42267fi
42268 else
42269    pkg_failed=untried
42270fi
42271if test -n "$LUA_LIBS"; then
42272    pkg_cv_LUA_LIBS="$LUA_LIBS"
42273 elif test -n "$PKG_CONFIG"; then
42274    if test -n "$PKG_CONFIG" && \
42275    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
42276  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
42277  ac_status=$?
42278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42279  test $ac_status = 0; }; then
42280  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
42281		      test "x$?" != "x0" && pkg_failed=yes
42282else
42283  pkg_failed=yes
42284fi
42285 else
42286    pkg_failed=untried
42287fi
42288
42289
42290
42291if test $pkg_failed = yes; then
42292   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42293$as_echo "no" >&6; }
42294
42295if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42296        _pkg_short_errors_supported=yes
42297else
42298        _pkg_short_errors_supported=no
42299fi
42300        if test $_pkg_short_errors_supported = yes; then
42301	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
42302        else
42303	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
42304        fi
42305	# Put the nasty error message in config.log where it belongs
42306	echo "$LUA_PKG_ERRORS" >&5
42307
42308	with_liblua="no (pkg-config cannot find liblua)"
42309
42310elif test $pkg_failed = untried; then
42311     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42312$as_echo "no" >&6; }
42313	with_liblua="no (pkg-config cannot find liblua)"
42314
42315else
42316	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
42317	LUA_LIBS=$pkg_cv_LUA_LIBS
42318        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42319$as_echo "yes" >&6; }
42320	with_liblua="yes"
42321fi
42322
42323
42324elif test $pkg_failed = untried; then
42325     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42326$as_echo "no" >&6; }
42327
42328
42329pkg_failed=no
42330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
42331$as_echo_n "checking for LUA... " >&6; }
42332
42333if test -n "$LUA_CFLAGS"; then
42334    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
42335 elif test -n "$PKG_CONFIG"; then
42336    if test -n "$PKG_CONFIG" && \
42337    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
42338  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
42339  ac_status=$?
42340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42341  test $ac_status = 0; }; then
42342  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
42343		      test "x$?" != "x0" && pkg_failed=yes
42344else
42345  pkg_failed=yes
42346fi
42347 else
42348    pkg_failed=untried
42349fi
42350if test -n "$LUA_LIBS"; then
42351    pkg_cv_LUA_LIBS="$LUA_LIBS"
42352 elif test -n "$PKG_CONFIG"; then
42353    if test -n "$PKG_CONFIG" && \
42354    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
42355  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
42356  ac_status=$?
42357  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42358  test $ac_status = 0; }; then
42359  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
42360		      test "x$?" != "x0" && pkg_failed=yes
42361else
42362  pkg_failed=yes
42363fi
42364 else
42365    pkg_failed=untried
42366fi
42367
42368
42369
42370if test $pkg_failed = yes; then
42371   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42372$as_echo "no" >&6; }
42373
42374if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42375        _pkg_short_errors_supported=yes
42376else
42377        _pkg_short_errors_supported=no
42378fi
42379        if test $_pkg_short_errors_supported = yes; then
42380	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
42381        else
42382	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
42383        fi
42384	# Put the nasty error message in config.log where it belongs
42385	echo "$LUA_PKG_ERRORS" >&5
42386
42387	with_liblua="no (pkg-config cannot find liblua)"
42388
42389elif test $pkg_failed = untried; then
42390     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42391$as_echo "no" >&6; }
42392	with_liblua="no (pkg-config cannot find liblua)"
42393
42394else
42395	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
42396	LUA_LIBS=$pkg_cv_LUA_LIBS
42397        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42398$as_echo "yes" >&6; }
42399	with_liblua="yes"
42400fi
42401
42402
42403else
42404	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
42405	LUA_LIBS=$pkg_cv_LUA_LIBS
42406        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42407$as_echo "yes" >&6; }
42408	with_liblua="yes"
42409fi
42410
42411
42412elif test $pkg_failed = untried; then
42413     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42414$as_echo "no" >&6; }
42415
42416
42417pkg_failed=no
42418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
42419$as_echo_n "checking for LUA... " >&6; }
42420
42421if test -n "$LUA_CFLAGS"; then
42422    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
42423 elif test -n "$PKG_CONFIG"; then
42424    if test -n "$PKG_CONFIG" && \
42425    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
42426  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
42427  ac_status=$?
42428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42429  test $ac_status = 0; }; then
42430  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
42431		      test "x$?" != "x0" && pkg_failed=yes
42432else
42433  pkg_failed=yes
42434fi
42435 else
42436    pkg_failed=untried
42437fi
42438if test -n "$LUA_LIBS"; then
42439    pkg_cv_LUA_LIBS="$LUA_LIBS"
42440 elif test -n "$PKG_CONFIG"; then
42441    if test -n "$PKG_CONFIG" && \
42442    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
42443  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
42444  ac_status=$?
42445  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42446  test $ac_status = 0; }; then
42447  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
42448		      test "x$?" != "x0" && pkg_failed=yes
42449else
42450  pkg_failed=yes
42451fi
42452 else
42453    pkg_failed=untried
42454fi
42455
42456
42457
42458if test $pkg_failed = yes; then
42459   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42460$as_echo "no" >&6; }
42461
42462if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42463        _pkg_short_errors_supported=yes
42464else
42465        _pkg_short_errors_supported=no
42466fi
42467        if test $_pkg_short_errors_supported = yes; then
42468	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
42469        else
42470	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
42471        fi
42472	# Put the nasty error message in config.log where it belongs
42473	echo "$LUA_PKG_ERRORS" >&5
42474
42475
42476
42477pkg_failed=no
42478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
42479$as_echo_n "checking for LUA... " >&6; }
42480
42481if test -n "$LUA_CFLAGS"; then
42482    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
42483 elif test -n "$PKG_CONFIG"; then
42484    if test -n "$PKG_CONFIG" && \
42485    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
42486  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
42487  ac_status=$?
42488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42489  test $ac_status = 0; }; then
42490  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
42491		      test "x$?" != "x0" && pkg_failed=yes
42492else
42493  pkg_failed=yes
42494fi
42495 else
42496    pkg_failed=untried
42497fi
42498if test -n "$LUA_LIBS"; then
42499    pkg_cv_LUA_LIBS="$LUA_LIBS"
42500 elif test -n "$PKG_CONFIG"; then
42501    if test -n "$PKG_CONFIG" && \
42502    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
42503  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
42504  ac_status=$?
42505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42506  test $ac_status = 0; }; then
42507  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
42508		      test "x$?" != "x0" && pkg_failed=yes
42509else
42510  pkg_failed=yes
42511fi
42512 else
42513    pkg_failed=untried
42514fi
42515
42516
42517
42518if test $pkg_failed = yes; then
42519   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42520$as_echo "no" >&6; }
42521
42522if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42523        _pkg_short_errors_supported=yes
42524else
42525        _pkg_short_errors_supported=no
42526fi
42527        if test $_pkg_short_errors_supported = yes; then
42528	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
42529        else
42530	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
42531        fi
42532	# Put the nasty error message in config.log where it belongs
42533	echo "$LUA_PKG_ERRORS" >&5
42534
42535	with_liblua="no (pkg-config cannot find liblua)"
42536
42537elif test $pkg_failed = untried; then
42538     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42539$as_echo "no" >&6; }
42540	with_liblua="no (pkg-config cannot find liblua)"
42541
42542else
42543	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
42544	LUA_LIBS=$pkg_cv_LUA_LIBS
42545        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42546$as_echo "yes" >&6; }
42547	with_liblua="yes"
42548fi
42549
42550
42551elif test $pkg_failed = untried; then
42552     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42553$as_echo "no" >&6; }
42554
42555
42556pkg_failed=no
42557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
42558$as_echo_n "checking for LUA... " >&6; }
42559
42560if test -n "$LUA_CFLAGS"; then
42561    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
42562 elif test -n "$PKG_CONFIG"; then
42563    if test -n "$PKG_CONFIG" && \
42564    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
42565  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
42566  ac_status=$?
42567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42568  test $ac_status = 0; }; then
42569  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
42570		      test "x$?" != "x0" && pkg_failed=yes
42571else
42572  pkg_failed=yes
42573fi
42574 else
42575    pkg_failed=untried
42576fi
42577if test -n "$LUA_LIBS"; then
42578    pkg_cv_LUA_LIBS="$LUA_LIBS"
42579 elif test -n "$PKG_CONFIG"; then
42580    if test -n "$PKG_CONFIG" && \
42581    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
42582  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
42583  ac_status=$?
42584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42585  test $ac_status = 0; }; then
42586  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
42587		      test "x$?" != "x0" && pkg_failed=yes
42588else
42589  pkg_failed=yes
42590fi
42591 else
42592    pkg_failed=untried
42593fi
42594
42595
42596
42597if test $pkg_failed = yes; then
42598   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42599$as_echo "no" >&6; }
42600
42601if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42602        _pkg_short_errors_supported=yes
42603else
42604        _pkg_short_errors_supported=no
42605fi
42606        if test $_pkg_short_errors_supported = yes; then
42607	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
42608        else
42609	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
42610        fi
42611	# Put the nasty error message in config.log where it belongs
42612	echo "$LUA_PKG_ERRORS" >&5
42613
42614	with_liblua="no (pkg-config cannot find liblua)"
42615
42616elif test $pkg_failed = untried; then
42617     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42618$as_echo "no" >&6; }
42619	with_liblua="no (pkg-config cannot find liblua)"
42620
42621else
42622	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
42623	LUA_LIBS=$pkg_cv_LUA_LIBS
42624        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42625$as_echo "yes" >&6; }
42626	with_liblua="yes"
42627fi
42628
42629
42630else
42631	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
42632	LUA_LIBS=$pkg_cv_LUA_LIBS
42633        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42634$as_echo "yes" >&6; }
42635	with_liblua="yes"
42636fi
42637
42638
42639else
42640	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
42641	LUA_LIBS=$pkg_cv_LUA_LIBS
42642        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42643$as_echo "yes" >&6; }
42644	with_liblua="yes"
42645fi
42646
42647
42648else
42649	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
42650	LUA_LIBS=$pkg_cv_LUA_LIBS
42651        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42652$as_echo "yes" >&6; }
42653	with_liblua="yes"
42654fi
42655
42656
42657else
42658	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
42659	LUA_LIBS=$pkg_cv_LUA_LIBS
42660        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42661$as_echo "yes" >&6; }
42662	with_liblua="yes"
42663fi
42664
42665
42666elif test $pkg_failed = untried; then
42667     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42668$as_echo "no" >&6; }
42669
42670
42671pkg_failed=no
42672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
42673$as_echo_n "checking for LUA... " >&6; }
42674
42675if test -n "$LUA_CFLAGS"; then
42676    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
42677 elif test -n "$PKG_CONFIG"; then
42678    if test -n "$PKG_CONFIG" && \
42679    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
42680  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
42681  ac_status=$?
42682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42683  test $ac_status = 0; }; then
42684  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
42685		      test "x$?" != "x0" && pkg_failed=yes
42686else
42687  pkg_failed=yes
42688fi
42689 else
42690    pkg_failed=untried
42691fi
42692if test -n "$LUA_LIBS"; then
42693    pkg_cv_LUA_LIBS="$LUA_LIBS"
42694 elif test -n "$PKG_CONFIG"; then
42695    if test -n "$PKG_CONFIG" && \
42696    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
42697  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
42698  ac_status=$?
42699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42700  test $ac_status = 0; }; then
42701  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
42702		      test "x$?" != "x0" && pkg_failed=yes
42703else
42704  pkg_failed=yes
42705fi
42706 else
42707    pkg_failed=untried
42708fi
42709
42710
42711
42712if test $pkg_failed = yes; then
42713   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42714$as_echo "no" >&6; }
42715
42716if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42717        _pkg_short_errors_supported=yes
42718else
42719        _pkg_short_errors_supported=no
42720fi
42721        if test $_pkg_short_errors_supported = yes; then
42722	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
42723        else
42724	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
42725        fi
42726	# Put the nasty error message in config.log where it belongs
42727	echo "$LUA_PKG_ERRORS" >&5
42728
42729
42730
42731pkg_failed=no
42732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
42733$as_echo_n "checking for LUA... " >&6; }
42734
42735if test -n "$LUA_CFLAGS"; then
42736    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
42737 elif test -n "$PKG_CONFIG"; then
42738    if test -n "$PKG_CONFIG" && \
42739    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
42740  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
42741  ac_status=$?
42742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42743  test $ac_status = 0; }; then
42744  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
42745		      test "x$?" != "x0" && pkg_failed=yes
42746else
42747  pkg_failed=yes
42748fi
42749 else
42750    pkg_failed=untried
42751fi
42752if test -n "$LUA_LIBS"; then
42753    pkg_cv_LUA_LIBS="$LUA_LIBS"
42754 elif test -n "$PKG_CONFIG"; then
42755    if test -n "$PKG_CONFIG" && \
42756    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
42757  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
42758  ac_status=$?
42759  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42760  test $ac_status = 0; }; then
42761  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
42762		      test "x$?" != "x0" && pkg_failed=yes
42763else
42764  pkg_failed=yes
42765fi
42766 else
42767    pkg_failed=untried
42768fi
42769
42770
42771
42772if test $pkg_failed = yes; then
42773   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42774$as_echo "no" >&6; }
42775
42776if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42777        _pkg_short_errors_supported=yes
42778else
42779        _pkg_short_errors_supported=no
42780fi
42781        if test $_pkg_short_errors_supported = yes; then
42782	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
42783        else
42784	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
42785        fi
42786	# Put the nasty error message in config.log where it belongs
42787	echo "$LUA_PKG_ERRORS" >&5
42788
42789
42790
42791pkg_failed=no
42792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
42793$as_echo_n "checking for LUA... " >&6; }
42794
42795if test -n "$LUA_CFLAGS"; then
42796    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
42797 elif test -n "$PKG_CONFIG"; then
42798    if test -n "$PKG_CONFIG" && \
42799    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
42800  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
42801  ac_status=$?
42802  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42803  test $ac_status = 0; }; then
42804  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
42805		      test "x$?" != "x0" && pkg_failed=yes
42806else
42807  pkg_failed=yes
42808fi
42809 else
42810    pkg_failed=untried
42811fi
42812if test -n "$LUA_LIBS"; then
42813    pkg_cv_LUA_LIBS="$LUA_LIBS"
42814 elif test -n "$PKG_CONFIG"; then
42815    if test -n "$PKG_CONFIG" && \
42816    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
42817  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
42818  ac_status=$?
42819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42820  test $ac_status = 0; }; then
42821  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
42822		      test "x$?" != "x0" && pkg_failed=yes
42823else
42824  pkg_failed=yes
42825fi
42826 else
42827    pkg_failed=untried
42828fi
42829
42830
42831
42832if test $pkg_failed = yes; then
42833   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42834$as_echo "no" >&6; }
42835
42836if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42837        _pkg_short_errors_supported=yes
42838else
42839        _pkg_short_errors_supported=no
42840fi
42841        if test $_pkg_short_errors_supported = yes; then
42842	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
42843        else
42844	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
42845        fi
42846	# Put the nasty error message in config.log where it belongs
42847	echo "$LUA_PKG_ERRORS" >&5
42848
42849
42850
42851pkg_failed=no
42852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
42853$as_echo_n "checking for LUA... " >&6; }
42854
42855if test -n "$LUA_CFLAGS"; then
42856    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
42857 elif test -n "$PKG_CONFIG"; then
42858    if test -n "$PKG_CONFIG" && \
42859    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
42860  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
42861  ac_status=$?
42862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42863  test $ac_status = 0; }; then
42864  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
42865		      test "x$?" != "x0" && pkg_failed=yes
42866else
42867  pkg_failed=yes
42868fi
42869 else
42870    pkg_failed=untried
42871fi
42872if test -n "$LUA_LIBS"; then
42873    pkg_cv_LUA_LIBS="$LUA_LIBS"
42874 elif test -n "$PKG_CONFIG"; then
42875    if test -n "$PKG_CONFIG" && \
42876    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
42877  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
42878  ac_status=$?
42879  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42880  test $ac_status = 0; }; then
42881  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
42882		      test "x$?" != "x0" && pkg_failed=yes
42883else
42884  pkg_failed=yes
42885fi
42886 else
42887    pkg_failed=untried
42888fi
42889
42890
42891
42892if test $pkg_failed = yes; then
42893   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42894$as_echo "no" >&6; }
42895
42896if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42897        _pkg_short_errors_supported=yes
42898else
42899        _pkg_short_errors_supported=no
42900fi
42901        if test $_pkg_short_errors_supported = yes; then
42902	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
42903        else
42904	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
42905        fi
42906	# Put the nasty error message in config.log where it belongs
42907	echo "$LUA_PKG_ERRORS" >&5
42908
42909
42910
42911pkg_failed=no
42912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
42913$as_echo_n "checking for LUA... " >&6; }
42914
42915if test -n "$LUA_CFLAGS"; then
42916    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
42917 elif test -n "$PKG_CONFIG"; then
42918    if test -n "$PKG_CONFIG" && \
42919    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
42920  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
42921  ac_status=$?
42922  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42923  test $ac_status = 0; }; then
42924  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
42925		      test "x$?" != "x0" && pkg_failed=yes
42926else
42927  pkg_failed=yes
42928fi
42929 else
42930    pkg_failed=untried
42931fi
42932if test -n "$LUA_LIBS"; then
42933    pkg_cv_LUA_LIBS="$LUA_LIBS"
42934 elif test -n "$PKG_CONFIG"; then
42935    if test -n "$PKG_CONFIG" && \
42936    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
42937  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
42938  ac_status=$?
42939  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42940  test $ac_status = 0; }; then
42941  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
42942		      test "x$?" != "x0" && pkg_failed=yes
42943else
42944  pkg_failed=yes
42945fi
42946 else
42947    pkg_failed=untried
42948fi
42949
42950
42951
42952if test $pkg_failed = yes; then
42953   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42954$as_echo "no" >&6; }
42955
42956if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42957        _pkg_short_errors_supported=yes
42958else
42959        _pkg_short_errors_supported=no
42960fi
42961        if test $_pkg_short_errors_supported = yes; then
42962	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
42963        else
42964	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
42965        fi
42966	# Put the nasty error message in config.log where it belongs
42967	echo "$LUA_PKG_ERRORS" >&5
42968
42969	with_liblua="no (pkg-config cannot find liblua)"
42970
42971elif test $pkg_failed = untried; then
42972     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42973$as_echo "no" >&6; }
42974	with_liblua="no (pkg-config cannot find liblua)"
42975
42976else
42977	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
42978	LUA_LIBS=$pkg_cv_LUA_LIBS
42979        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42980$as_echo "yes" >&6; }
42981	with_liblua="yes"
42982fi
42983
42984
42985elif test $pkg_failed = untried; then
42986     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42987$as_echo "no" >&6; }
42988
42989
42990pkg_failed=no
42991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
42992$as_echo_n "checking for LUA... " >&6; }
42993
42994if test -n "$LUA_CFLAGS"; then
42995    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
42996 elif test -n "$PKG_CONFIG"; then
42997    if test -n "$PKG_CONFIG" && \
42998    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
42999  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
43000  ac_status=$?
43001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43002  test $ac_status = 0; }; then
43003  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
43004		      test "x$?" != "x0" && pkg_failed=yes
43005else
43006  pkg_failed=yes
43007fi
43008 else
43009    pkg_failed=untried
43010fi
43011if test -n "$LUA_LIBS"; then
43012    pkg_cv_LUA_LIBS="$LUA_LIBS"
43013 elif test -n "$PKG_CONFIG"; then
43014    if test -n "$PKG_CONFIG" && \
43015    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
43016  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
43017  ac_status=$?
43018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43019  test $ac_status = 0; }; then
43020  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
43021		      test "x$?" != "x0" && pkg_failed=yes
43022else
43023  pkg_failed=yes
43024fi
43025 else
43026    pkg_failed=untried
43027fi
43028
43029
43030
43031if test $pkg_failed = yes; then
43032   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43033$as_echo "no" >&6; }
43034
43035if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43036        _pkg_short_errors_supported=yes
43037else
43038        _pkg_short_errors_supported=no
43039fi
43040        if test $_pkg_short_errors_supported = yes; then
43041	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
43042        else
43043	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
43044        fi
43045	# Put the nasty error message in config.log where it belongs
43046	echo "$LUA_PKG_ERRORS" >&5
43047
43048	with_liblua="no (pkg-config cannot find liblua)"
43049
43050elif test $pkg_failed = untried; then
43051     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43052$as_echo "no" >&6; }
43053	with_liblua="no (pkg-config cannot find liblua)"
43054
43055else
43056	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
43057	LUA_LIBS=$pkg_cv_LUA_LIBS
43058        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43059$as_echo "yes" >&6; }
43060	with_liblua="yes"
43061fi
43062
43063
43064else
43065	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
43066	LUA_LIBS=$pkg_cv_LUA_LIBS
43067        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43068$as_echo "yes" >&6; }
43069	with_liblua="yes"
43070fi
43071
43072
43073elif test $pkg_failed = untried; then
43074     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43075$as_echo "no" >&6; }
43076
43077
43078pkg_failed=no
43079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
43080$as_echo_n "checking for LUA... " >&6; }
43081
43082if test -n "$LUA_CFLAGS"; then
43083    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
43084 elif test -n "$PKG_CONFIG"; then
43085    if test -n "$PKG_CONFIG" && \
43086    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
43087  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
43088  ac_status=$?
43089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43090  test $ac_status = 0; }; then
43091  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
43092		      test "x$?" != "x0" && pkg_failed=yes
43093else
43094  pkg_failed=yes
43095fi
43096 else
43097    pkg_failed=untried
43098fi
43099if test -n "$LUA_LIBS"; then
43100    pkg_cv_LUA_LIBS="$LUA_LIBS"
43101 elif test -n "$PKG_CONFIG"; then
43102    if test -n "$PKG_CONFIG" && \
43103    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
43104  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
43105  ac_status=$?
43106  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43107  test $ac_status = 0; }; then
43108  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
43109		      test "x$?" != "x0" && pkg_failed=yes
43110else
43111  pkg_failed=yes
43112fi
43113 else
43114    pkg_failed=untried
43115fi
43116
43117
43118
43119if test $pkg_failed = yes; then
43120   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43121$as_echo "no" >&6; }
43122
43123if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43124        _pkg_short_errors_supported=yes
43125else
43126        _pkg_short_errors_supported=no
43127fi
43128        if test $_pkg_short_errors_supported = yes; then
43129	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
43130        else
43131	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
43132        fi
43133	# Put the nasty error message in config.log where it belongs
43134	echo "$LUA_PKG_ERRORS" >&5
43135
43136
43137
43138pkg_failed=no
43139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
43140$as_echo_n "checking for LUA... " >&6; }
43141
43142if test -n "$LUA_CFLAGS"; then
43143    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
43144 elif test -n "$PKG_CONFIG"; then
43145    if test -n "$PKG_CONFIG" && \
43146    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
43147  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
43148  ac_status=$?
43149  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43150  test $ac_status = 0; }; then
43151  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
43152		      test "x$?" != "x0" && pkg_failed=yes
43153else
43154  pkg_failed=yes
43155fi
43156 else
43157    pkg_failed=untried
43158fi
43159if test -n "$LUA_LIBS"; then
43160    pkg_cv_LUA_LIBS="$LUA_LIBS"
43161 elif test -n "$PKG_CONFIG"; then
43162    if test -n "$PKG_CONFIG" && \
43163    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
43164  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
43165  ac_status=$?
43166  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43167  test $ac_status = 0; }; then
43168  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
43169		      test "x$?" != "x0" && pkg_failed=yes
43170else
43171  pkg_failed=yes
43172fi
43173 else
43174    pkg_failed=untried
43175fi
43176
43177
43178
43179if test $pkg_failed = yes; then
43180   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43181$as_echo "no" >&6; }
43182
43183if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43184        _pkg_short_errors_supported=yes
43185else
43186        _pkg_short_errors_supported=no
43187fi
43188        if test $_pkg_short_errors_supported = yes; then
43189	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
43190        else
43191	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
43192        fi
43193	# Put the nasty error message in config.log where it belongs
43194	echo "$LUA_PKG_ERRORS" >&5
43195
43196	with_liblua="no (pkg-config cannot find liblua)"
43197
43198elif test $pkg_failed = untried; then
43199     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43200$as_echo "no" >&6; }
43201	with_liblua="no (pkg-config cannot find liblua)"
43202
43203else
43204	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
43205	LUA_LIBS=$pkg_cv_LUA_LIBS
43206        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43207$as_echo "yes" >&6; }
43208	with_liblua="yes"
43209fi
43210
43211
43212elif test $pkg_failed = untried; then
43213     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43214$as_echo "no" >&6; }
43215
43216
43217pkg_failed=no
43218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
43219$as_echo_n "checking for LUA... " >&6; }
43220
43221if test -n "$LUA_CFLAGS"; then
43222    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
43223 elif test -n "$PKG_CONFIG"; then
43224    if test -n "$PKG_CONFIG" && \
43225    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
43226  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
43227  ac_status=$?
43228  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43229  test $ac_status = 0; }; then
43230  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
43231		      test "x$?" != "x0" && pkg_failed=yes
43232else
43233  pkg_failed=yes
43234fi
43235 else
43236    pkg_failed=untried
43237fi
43238if test -n "$LUA_LIBS"; then
43239    pkg_cv_LUA_LIBS="$LUA_LIBS"
43240 elif test -n "$PKG_CONFIG"; then
43241    if test -n "$PKG_CONFIG" && \
43242    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
43243  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
43244  ac_status=$?
43245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43246  test $ac_status = 0; }; then
43247  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
43248		      test "x$?" != "x0" && pkg_failed=yes
43249else
43250  pkg_failed=yes
43251fi
43252 else
43253    pkg_failed=untried
43254fi
43255
43256
43257
43258if test $pkg_failed = yes; then
43259   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43260$as_echo "no" >&6; }
43261
43262if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43263        _pkg_short_errors_supported=yes
43264else
43265        _pkg_short_errors_supported=no
43266fi
43267        if test $_pkg_short_errors_supported = yes; then
43268	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
43269        else
43270	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
43271        fi
43272	# Put the nasty error message in config.log where it belongs
43273	echo "$LUA_PKG_ERRORS" >&5
43274
43275	with_liblua="no (pkg-config cannot find liblua)"
43276
43277elif test $pkg_failed = untried; then
43278     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43279$as_echo "no" >&6; }
43280	with_liblua="no (pkg-config cannot find liblua)"
43281
43282else
43283	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
43284	LUA_LIBS=$pkg_cv_LUA_LIBS
43285        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43286$as_echo "yes" >&6; }
43287	with_liblua="yes"
43288fi
43289
43290
43291else
43292	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
43293	LUA_LIBS=$pkg_cv_LUA_LIBS
43294        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43295$as_echo "yes" >&6; }
43296	with_liblua="yes"
43297fi
43298
43299
43300else
43301	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
43302	LUA_LIBS=$pkg_cv_LUA_LIBS
43303        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43304$as_echo "yes" >&6; }
43305	with_liblua="yes"
43306fi
43307
43308
43309elif test $pkg_failed = untried; then
43310     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43311$as_echo "no" >&6; }
43312
43313
43314pkg_failed=no
43315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
43316$as_echo_n "checking for LUA... " >&6; }
43317
43318if test -n "$LUA_CFLAGS"; then
43319    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
43320 elif test -n "$PKG_CONFIG"; then
43321    if test -n "$PKG_CONFIG" && \
43322    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
43323  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
43324  ac_status=$?
43325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43326  test $ac_status = 0; }; then
43327  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
43328		      test "x$?" != "x0" && pkg_failed=yes
43329else
43330  pkg_failed=yes
43331fi
43332 else
43333    pkg_failed=untried
43334fi
43335if test -n "$LUA_LIBS"; then
43336    pkg_cv_LUA_LIBS="$LUA_LIBS"
43337 elif test -n "$PKG_CONFIG"; then
43338    if test -n "$PKG_CONFIG" && \
43339    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
43340  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
43341  ac_status=$?
43342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43343  test $ac_status = 0; }; then
43344  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
43345		      test "x$?" != "x0" && pkg_failed=yes
43346else
43347  pkg_failed=yes
43348fi
43349 else
43350    pkg_failed=untried
43351fi
43352
43353
43354
43355if test $pkg_failed = yes; then
43356   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43357$as_echo "no" >&6; }
43358
43359if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43360        _pkg_short_errors_supported=yes
43361else
43362        _pkg_short_errors_supported=no
43363fi
43364        if test $_pkg_short_errors_supported = yes; then
43365	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
43366        else
43367	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
43368        fi
43369	# Put the nasty error message in config.log where it belongs
43370	echo "$LUA_PKG_ERRORS" >&5
43371
43372
43373
43374pkg_failed=no
43375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
43376$as_echo_n "checking for LUA... " >&6; }
43377
43378if test -n "$LUA_CFLAGS"; then
43379    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
43380 elif test -n "$PKG_CONFIG"; then
43381    if test -n "$PKG_CONFIG" && \
43382    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
43383  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
43384  ac_status=$?
43385  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43386  test $ac_status = 0; }; then
43387  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
43388		      test "x$?" != "x0" && pkg_failed=yes
43389else
43390  pkg_failed=yes
43391fi
43392 else
43393    pkg_failed=untried
43394fi
43395if test -n "$LUA_LIBS"; then
43396    pkg_cv_LUA_LIBS="$LUA_LIBS"
43397 elif test -n "$PKG_CONFIG"; then
43398    if test -n "$PKG_CONFIG" && \
43399    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
43400  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
43401  ac_status=$?
43402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43403  test $ac_status = 0; }; then
43404  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
43405		      test "x$?" != "x0" && pkg_failed=yes
43406else
43407  pkg_failed=yes
43408fi
43409 else
43410    pkg_failed=untried
43411fi
43412
43413
43414
43415if test $pkg_failed = yes; then
43416   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43417$as_echo "no" >&6; }
43418
43419if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43420        _pkg_short_errors_supported=yes
43421else
43422        _pkg_short_errors_supported=no
43423fi
43424        if test $_pkg_short_errors_supported = yes; then
43425	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
43426        else
43427	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
43428        fi
43429	# Put the nasty error message in config.log where it belongs
43430	echo "$LUA_PKG_ERRORS" >&5
43431
43432
43433
43434pkg_failed=no
43435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
43436$as_echo_n "checking for LUA... " >&6; }
43437
43438if test -n "$LUA_CFLAGS"; then
43439    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
43440 elif test -n "$PKG_CONFIG"; then
43441    if test -n "$PKG_CONFIG" && \
43442    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
43443  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
43444  ac_status=$?
43445  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43446  test $ac_status = 0; }; then
43447  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
43448		      test "x$?" != "x0" && pkg_failed=yes
43449else
43450  pkg_failed=yes
43451fi
43452 else
43453    pkg_failed=untried
43454fi
43455if test -n "$LUA_LIBS"; then
43456    pkg_cv_LUA_LIBS="$LUA_LIBS"
43457 elif test -n "$PKG_CONFIG"; then
43458    if test -n "$PKG_CONFIG" && \
43459    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
43460  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
43461  ac_status=$?
43462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43463  test $ac_status = 0; }; then
43464  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
43465		      test "x$?" != "x0" && pkg_failed=yes
43466else
43467  pkg_failed=yes
43468fi
43469 else
43470    pkg_failed=untried
43471fi
43472
43473
43474
43475if test $pkg_failed = yes; then
43476   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43477$as_echo "no" >&6; }
43478
43479if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43480        _pkg_short_errors_supported=yes
43481else
43482        _pkg_short_errors_supported=no
43483fi
43484        if test $_pkg_short_errors_supported = yes; then
43485	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
43486        else
43487	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
43488        fi
43489	# Put the nasty error message in config.log where it belongs
43490	echo "$LUA_PKG_ERRORS" >&5
43491
43492	with_liblua="no (pkg-config cannot find liblua)"
43493
43494elif test $pkg_failed = untried; then
43495     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43496$as_echo "no" >&6; }
43497	with_liblua="no (pkg-config cannot find liblua)"
43498
43499else
43500	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
43501	LUA_LIBS=$pkg_cv_LUA_LIBS
43502        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43503$as_echo "yes" >&6; }
43504	with_liblua="yes"
43505fi
43506
43507
43508elif test $pkg_failed = untried; then
43509     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43510$as_echo "no" >&6; }
43511
43512
43513pkg_failed=no
43514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
43515$as_echo_n "checking for LUA... " >&6; }
43516
43517if test -n "$LUA_CFLAGS"; then
43518    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
43519 elif test -n "$PKG_CONFIG"; then
43520    if test -n "$PKG_CONFIG" && \
43521    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
43522  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
43523  ac_status=$?
43524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43525  test $ac_status = 0; }; then
43526  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
43527		      test "x$?" != "x0" && pkg_failed=yes
43528else
43529  pkg_failed=yes
43530fi
43531 else
43532    pkg_failed=untried
43533fi
43534if test -n "$LUA_LIBS"; then
43535    pkg_cv_LUA_LIBS="$LUA_LIBS"
43536 elif test -n "$PKG_CONFIG"; then
43537    if test -n "$PKG_CONFIG" && \
43538    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
43539  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
43540  ac_status=$?
43541  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43542  test $ac_status = 0; }; then
43543  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
43544		      test "x$?" != "x0" && pkg_failed=yes
43545else
43546  pkg_failed=yes
43547fi
43548 else
43549    pkg_failed=untried
43550fi
43551
43552
43553
43554if test $pkg_failed = yes; then
43555   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43556$as_echo "no" >&6; }
43557
43558if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43559        _pkg_short_errors_supported=yes
43560else
43561        _pkg_short_errors_supported=no
43562fi
43563        if test $_pkg_short_errors_supported = yes; then
43564	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
43565        else
43566	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
43567        fi
43568	# Put the nasty error message in config.log where it belongs
43569	echo "$LUA_PKG_ERRORS" >&5
43570
43571	with_liblua="no (pkg-config cannot find liblua)"
43572
43573elif test $pkg_failed = untried; then
43574     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43575$as_echo "no" >&6; }
43576	with_liblua="no (pkg-config cannot find liblua)"
43577
43578else
43579	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
43580	LUA_LIBS=$pkg_cv_LUA_LIBS
43581        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43582$as_echo "yes" >&6; }
43583	with_liblua="yes"
43584fi
43585
43586
43587else
43588	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
43589	LUA_LIBS=$pkg_cv_LUA_LIBS
43590        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43591$as_echo "yes" >&6; }
43592	with_liblua="yes"
43593fi
43594
43595
43596elif test $pkg_failed = untried; then
43597     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43598$as_echo "no" >&6; }
43599
43600
43601pkg_failed=no
43602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
43603$as_echo_n "checking for LUA... " >&6; }
43604
43605if test -n "$LUA_CFLAGS"; then
43606    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
43607 elif test -n "$PKG_CONFIG"; then
43608    if test -n "$PKG_CONFIG" && \
43609    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
43610  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
43611  ac_status=$?
43612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43613  test $ac_status = 0; }; then
43614  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
43615		      test "x$?" != "x0" && pkg_failed=yes
43616else
43617  pkg_failed=yes
43618fi
43619 else
43620    pkg_failed=untried
43621fi
43622if test -n "$LUA_LIBS"; then
43623    pkg_cv_LUA_LIBS="$LUA_LIBS"
43624 elif test -n "$PKG_CONFIG"; then
43625    if test -n "$PKG_CONFIG" && \
43626    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
43627  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
43628  ac_status=$?
43629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43630  test $ac_status = 0; }; then
43631  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
43632		      test "x$?" != "x0" && pkg_failed=yes
43633else
43634  pkg_failed=yes
43635fi
43636 else
43637    pkg_failed=untried
43638fi
43639
43640
43641
43642if test $pkg_failed = yes; then
43643   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43644$as_echo "no" >&6; }
43645
43646if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43647        _pkg_short_errors_supported=yes
43648else
43649        _pkg_short_errors_supported=no
43650fi
43651        if test $_pkg_short_errors_supported = yes; then
43652	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
43653        else
43654	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
43655        fi
43656	# Put the nasty error message in config.log where it belongs
43657	echo "$LUA_PKG_ERRORS" >&5
43658
43659
43660
43661pkg_failed=no
43662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
43663$as_echo_n "checking for LUA... " >&6; }
43664
43665if test -n "$LUA_CFLAGS"; then
43666    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
43667 elif test -n "$PKG_CONFIG"; then
43668    if test -n "$PKG_CONFIG" && \
43669    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
43670  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
43671  ac_status=$?
43672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43673  test $ac_status = 0; }; then
43674  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
43675		      test "x$?" != "x0" && pkg_failed=yes
43676else
43677  pkg_failed=yes
43678fi
43679 else
43680    pkg_failed=untried
43681fi
43682if test -n "$LUA_LIBS"; then
43683    pkg_cv_LUA_LIBS="$LUA_LIBS"
43684 elif test -n "$PKG_CONFIG"; then
43685    if test -n "$PKG_CONFIG" && \
43686    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
43687  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
43688  ac_status=$?
43689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43690  test $ac_status = 0; }; then
43691  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
43692		      test "x$?" != "x0" && pkg_failed=yes
43693else
43694  pkg_failed=yes
43695fi
43696 else
43697    pkg_failed=untried
43698fi
43699
43700
43701
43702if test $pkg_failed = yes; then
43703   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43704$as_echo "no" >&6; }
43705
43706if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43707        _pkg_short_errors_supported=yes
43708else
43709        _pkg_short_errors_supported=no
43710fi
43711        if test $_pkg_short_errors_supported = yes; then
43712	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
43713        else
43714	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
43715        fi
43716	# Put the nasty error message in config.log where it belongs
43717	echo "$LUA_PKG_ERRORS" >&5
43718
43719	with_liblua="no (pkg-config cannot find liblua)"
43720
43721elif test $pkg_failed = untried; then
43722     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43723$as_echo "no" >&6; }
43724	with_liblua="no (pkg-config cannot find liblua)"
43725
43726else
43727	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
43728	LUA_LIBS=$pkg_cv_LUA_LIBS
43729        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43730$as_echo "yes" >&6; }
43731	with_liblua="yes"
43732fi
43733
43734
43735elif test $pkg_failed = untried; then
43736     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43737$as_echo "no" >&6; }
43738
43739
43740pkg_failed=no
43741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
43742$as_echo_n "checking for LUA... " >&6; }
43743
43744if test -n "$LUA_CFLAGS"; then
43745    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
43746 elif test -n "$PKG_CONFIG"; then
43747    if test -n "$PKG_CONFIG" && \
43748    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
43749  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
43750  ac_status=$?
43751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43752  test $ac_status = 0; }; then
43753  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
43754		      test "x$?" != "x0" && pkg_failed=yes
43755else
43756  pkg_failed=yes
43757fi
43758 else
43759    pkg_failed=untried
43760fi
43761if test -n "$LUA_LIBS"; then
43762    pkg_cv_LUA_LIBS="$LUA_LIBS"
43763 elif test -n "$PKG_CONFIG"; then
43764    if test -n "$PKG_CONFIG" && \
43765    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
43766  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
43767  ac_status=$?
43768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43769  test $ac_status = 0; }; then
43770  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
43771		      test "x$?" != "x0" && pkg_failed=yes
43772else
43773  pkg_failed=yes
43774fi
43775 else
43776    pkg_failed=untried
43777fi
43778
43779
43780
43781if test $pkg_failed = yes; then
43782   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43783$as_echo "no" >&6; }
43784
43785if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43786        _pkg_short_errors_supported=yes
43787else
43788        _pkg_short_errors_supported=no
43789fi
43790        if test $_pkg_short_errors_supported = yes; then
43791	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
43792        else
43793	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
43794        fi
43795	# Put the nasty error message in config.log where it belongs
43796	echo "$LUA_PKG_ERRORS" >&5
43797
43798	with_liblua="no (pkg-config cannot find liblua)"
43799
43800elif test $pkg_failed = untried; then
43801     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43802$as_echo "no" >&6; }
43803	with_liblua="no (pkg-config cannot find liblua)"
43804
43805else
43806	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
43807	LUA_LIBS=$pkg_cv_LUA_LIBS
43808        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43809$as_echo "yes" >&6; }
43810	with_liblua="yes"
43811fi
43812
43813
43814else
43815	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
43816	LUA_LIBS=$pkg_cv_LUA_LIBS
43817        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43818$as_echo "yes" >&6; }
43819	with_liblua="yes"
43820fi
43821
43822
43823else
43824	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
43825	LUA_LIBS=$pkg_cv_LUA_LIBS
43826        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43827$as_echo "yes" >&6; }
43828	with_liblua="yes"
43829fi
43830
43831
43832else
43833	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
43834	LUA_LIBS=$pkg_cv_LUA_LIBS
43835        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43836$as_echo "yes" >&6; }
43837	with_liblua="yes"
43838fi
43839
43840
43841elif test $pkg_failed = untried; then
43842     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43843$as_echo "no" >&6; }
43844
43845
43846pkg_failed=no
43847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
43848$as_echo_n "checking for LUA... " >&6; }
43849
43850if test -n "$LUA_CFLAGS"; then
43851    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
43852 elif test -n "$PKG_CONFIG"; then
43853    if test -n "$PKG_CONFIG" && \
43854    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
43855  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
43856  ac_status=$?
43857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43858  test $ac_status = 0; }; then
43859  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
43860		      test "x$?" != "x0" && pkg_failed=yes
43861else
43862  pkg_failed=yes
43863fi
43864 else
43865    pkg_failed=untried
43866fi
43867if test -n "$LUA_LIBS"; then
43868    pkg_cv_LUA_LIBS="$LUA_LIBS"
43869 elif test -n "$PKG_CONFIG"; then
43870    if test -n "$PKG_CONFIG" && \
43871    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
43872  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
43873  ac_status=$?
43874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43875  test $ac_status = 0; }; then
43876  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
43877		      test "x$?" != "x0" && pkg_failed=yes
43878else
43879  pkg_failed=yes
43880fi
43881 else
43882    pkg_failed=untried
43883fi
43884
43885
43886
43887if test $pkg_failed = yes; then
43888   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43889$as_echo "no" >&6; }
43890
43891if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43892        _pkg_short_errors_supported=yes
43893else
43894        _pkg_short_errors_supported=no
43895fi
43896        if test $_pkg_short_errors_supported = yes; then
43897	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
43898        else
43899	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
43900        fi
43901	# Put the nasty error message in config.log where it belongs
43902	echo "$LUA_PKG_ERRORS" >&5
43903
43904
43905
43906pkg_failed=no
43907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
43908$as_echo_n "checking for LUA... " >&6; }
43909
43910if test -n "$LUA_CFLAGS"; then
43911    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
43912 elif test -n "$PKG_CONFIG"; then
43913    if test -n "$PKG_CONFIG" && \
43914    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
43915  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
43916  ac_status=$?
43917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43918  test $ac_status = 0; }; then
43919  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
43920		      test "x$?" != "x0" && pkg_failed=yes
43921else
43922  pkg_failed=yes
43923fi
43924 else
43925    pkg_failed=untried
43926fi
43927if test -n "$LUA_LIBS"; then
43928    pkg_cv_LUA_LIBS="$LUA_LIBS"
43929 elif test -n "$PKG_CONFIG"; then
43930    if test -n "$PKG_CONFIG" && \
43931    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
43932  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
43933  ac_status=$?
43934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43935  test $ac_status = 0; }; then
43936  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
43937		      test "x$?" != "x0" && pkg_failed=yes
43938else
43939  pkg_failed=yes
43940fi
43941 else
43942    pkg_failed=untried
43943fi
43944
43945
43946
43947if test $pkg_failed = yes; then
43948   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43949$as_echo "no" >&6; }
43950
43951if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43952        _pkg_short_errors_supported=yes
43953else
43954        _pkg_short_errors_supported=no
43955fi
43956        if test $_pkg_short_errors_supported = yes; then
43957	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
43958        else
43959	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
43960        fi
43961	# Put the nasty error message in config.log where it belongs
43962	echo "$LUA_PKG_ERRORS" >&5
43963
43964
43965
43966pkg_failed=no
43967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
43968$as_echo_n "checking for LUA... " >&6; }
43969
43970if test -n "$LUA_CFLAGS"; then
43971    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
43972 elif test -n "$PKG_CONFIG"; then
43973    if test -n "$PKG_CONFIG" && \
43974    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
43975  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
43976  ac_status=$?
43977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43978  test $ac_status = 0; }; then
43979  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
43980		      test "x$?" != "x0" && pkg_failed=yes
43981else
43982  pkg_failed=yes
43983fi
43984 else
43985    pkg_failed=untried
43986fi
43987if test -n "$LUA_LIBS"; then
43988    pkg_cv_LUA_LIBS="$LUA_LIBS"
43989 elif test -n "$PKG_CONFIG"; then
43990    if test -n "$PKG_CONFIG" && \
43991    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
43992  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
43993  ac_status=$?
43994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43995  test $ac_status = 0; }; then
43996  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
43997		      test "x$?" != "x0" && pkg_failed=yes
43998else
43999  pkg_failed=yes
44000fi
44001 else
44002    pkg_failed=untried
44003fi
44004
44005
44006
44007if test $pkg_failed = yes; then
44008   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44009$as_echo "no" >&6; }
44010
44011if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44012        _pkg_short_errors_supported=yes
44013else
44014        _pkg_short_errors_supported=no
44015fi
44016        if test $_pkg_short_errors_supported = yes; then
44017	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
44018        else
44019	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
44020        fi
44021	# Put the nasty error message in config.log where it belongs
44022	echo "$LUA_PKG_ERRORS" >&5
44023
44024
44025
44026pkg_failed=no
44027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
44028$as_echo_n "checking for LUA... " >&6; }
44029
44030if test -n "$LUA_CFLAGS"; then
44031    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
44032 elif test -n "$PKG_CONFIG"; then
44033    if test -n "$PKG_CONFIG" && \
44034    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
44035  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
44036  ac_status=$?
44037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44038  test $ac_status = 0; }; then
44039  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
44040		      test "x$?" != "x0" && pkg_failed=yes
44041else
44042  pkg_failed=yes
44043fi
44044 else
44045    pkg_failed=untried
44046fi
44047if test -n "$LUA_LIBS"; then
44048    pkg_cv_LUA_LIBS="$LUA_LIBS"
44049 elif test -n "$PKG_CONFIG"; then
44050    if test -n "$PKG_CONFIG" && \
44051    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
44052  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
44053  ac_status=$?
44054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44055  test $ac_status = 0; }; then
44056  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
44057		      test "x$?" != "x0" && pkg_failed=yes
44058else
44059  pkg_failed=yes
44060fi
44061 else
44062    pkg_failed=untried
44063fi
44064
44065
44066
44067if test $pkg_failed = yes; then
44068   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44069$as_echo "no" >&6; }
44070
44071if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44072        _pkg_short_errors_supported=yes
44073else
44074        _pkg_short_errors_supported=no
44075fi
44076        if test $_pkg_short_errors_supported = yes; then
44077	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
44078        else
44079	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
44080        fi
44081	# Put the nasty error message in config.log where it belongs
44082	echo "$LUA_PKG_ERRORS" >&5
44083
44084	with_liblua="no (pkg-config cannot find liblua)"
44085
44086elif test $pkg_failed = untried; then
44087     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44088$as_echo "no" >&6; }
44089	with_liblua="no (pkg-config cannot find liblua)"
44090
44091else
44092	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
44093	LUA_LIBS=$pkg_cv_LUA_LIBS
44094        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44095$as_echo "yes" >&6; }
44096	with_liblua="yes"
44097fi
44098
44099
44100elif test $pkg_failed = untried; then
44101     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44102$as_echo "no" >&6; }
44103
44104
44105pkg_failed=no
44106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
44107$as_echo_n "checking for LUA... " >&6; }
44108
44109if test -n "$LUA_CFLAGS"; then
44110    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
44111 elif test -n "$PKG_CONFIG"; then
44112    if test -n "$PKG_CONFIG" && \
44113    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
44114  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
44115  ac_status=$?
44116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44117  test $ac_status = 0; }; then
44118  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
44119		      test "x$?" != "x0" && pkg_failed=yes
44120else
44121  pkg_failed=yes
44122fi
44123 else
44124    pkg_failed=untried
44125fi
44126if test -n "$LUA_LIBS"; then
44127    pkg_cv_LUA_LIBS="$LUA_LIBS"
44128 elif test -n "$PKG_CONFIG"; then
44129    if test -n "$PKG_CONFIG" && \
44130    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
44131  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
44132  ac_status=$?
44133  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44134  test $ac_status = 0; }; then
44135  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
44136		      test "x$?" != "x0" && pkg_failed=yes
44137else
44138  pkg_failed=yes
44139fi
44140 else
44141    pkg_failed=untried
44142fi
44143
44144
44145
44146if test $pkg_failed = yes; then
44147   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44148$as_echo "no" >&6; }
44149
44150if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44151        _pkg_short_errors_supported=yes
44152else
44153        _pkg_short_errors_supported=no
44154fi
44155        if test $_pkg_short_errors_supported = yes; then
44156	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
44157        else
44158	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
44159        fi
44160	# Put the nasty error message in config.log where it belongs
44161	echo "$LUA_PKG_ERRORS" >&5
44162
44163	with_liblua="no (pkg-config cannot find liblua)"
44164
44165elif test $pkg_failed = untried; then
44166     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44167$as_echo "no" >&6; }
44168	with_liblua="no (pkg-config cannot find liblua)"
44169
44170else
44171	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
44172	LUA_LIBS=$pkg_cv_LUA_LIBS
44173        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44174$as_echo "yes" >&6; }
44175	with_liblua="yes"
44176fi
44177
44178
44179else
44180	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
44181	LUA_LIBS=$pkg_cv_LUA_LIBS
44182        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44183$as_echo "yes" >&6; }
44184	with_liblua="yes"
44185fi
44186
44187
44188elif test $pkg_failed = untried; then
44189     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44190$as_echo "no" >&6; }
44191
44192
44193pkg_failed=no
44194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
44195$as_echo_n "checking for LUA... " >&6; }
44196
44197if test -n "$LUA_CFLAGS"; then
44198    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
44199 elif test -n "$PKG_CONFIG"; then
44200    if test -n "$PKG_CONFIG" && \
44201    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
44202  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
44203  ac_status=$?
44204  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44205  test $ac_status = 0; }; then
44206  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
44207		      test "x$?" != "x0" && pkg_failed=yes
44208else
44209  pkg_failed=yes
44210fi
44211 else
44212    pkg_failed=untried
44213fi
44214if test -n "$LUA_LIBS"; then
44215    pkg_cv_LUA_LIBS="$LUA_LIBS"
44216 elif test -n "$PKG_CONFIG"; then
44217    if test -n "$PKG_CONFIG" && \
44218    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
44219  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
44220  ac_status=$?
44221  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44222  test $ac_status = 0; }; then
44223  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
44224		      test "x$?" != "x0" && pkg_failed=yes
44225else
44226  pkg_failed=yes
44227fi
44228 else
44229    pkg_failed=untried
44230fi
44231
44232
44233
44234if test $pkg_failed = yes; then
44235   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44236$as_echo "no" >&6; }
44237
44238if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44239        _pkg_short_errors_supported=yes
44240else
44241        _pkg_short_errors_supported=no
44242fi
44243        if test $_pkg_short_errors_supported = yes; then
44244	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
44245        else
44246	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
44247        fi
44248	# Put the nasty error message in config.log where it belongs
44249	echo "$LUA_PKG_ERRORS" >&5
44250
44251
44252
44253pkg_failed=no
44254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
44255$as_echo_n "checking for LUA... " >&6; }
44256
44257if test -n "$LUA_CFLAGS"; then
44258    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
44259 elif test -n "$PKG_CONFIG"; then
44260    if test -n "$PKG_CONFIG" && \
44261    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
44262  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
44263  ac_status=$?
44264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44265  test $ac_status = 0; }; then
44266  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
44267		      test "x$?" != "x0" && pkg_failed=yes
44268else
44269  pkg_failed=yes
44270fi
44271 else
44272    pkg_failed=untried
44273fi
44274if test -n "$LUA_LIBS"; then
44275    pkg_cv_LUA_LIBS="$LUA_LIBS"
44276 elif test -n "$PKG_CONFIG"; then
44277    if test -n "$PKG_CONFIG" && \
44278    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
44279  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
44280  ac_status=$?
44281  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44282  test $ac_status = 0; }; then
44283  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
44284		      test "x$?" != "x0" && pkg_failed=yes
44285else
44286  pkg_failed=yes
44287fi
44288 else
44289    pkg_failed=untried
44290fi
44291
44292
44293
44294if test $pkg_failed = yes; then
44295   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44296$as_echo "no" >&6; }
44297
44298if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44299        _pkg_short_errors_supported=yes
44300else
44301        _pkg_short_errors_supported=no
44302fi
44303        if test $_pkg_short_errors_supported = yes; then
44304	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
44305        else
44306	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
44307        fi
44308	# Put the nasty error message in config.log where it belongs
44309	echo "$LUA_PKG_ERRORS" >&5
44310
44311	with_liblua="no (pkg-config cannot find liblua)"
44312
44313elif test $pkg_failed = untried; then
44314     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44315$as_echo "no" >&6; }
44316	with_liblua="no (pkg-config cannot find liblua)"
44317
44318else
44319	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
44320	LUA_LIBS=$pkg_cv_LUA_LIBS
44321        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44322$as_echo "yes" >&6; }
44323	with_liblua="yes"
44324fi
44325
44326
44327elif test $pkg_failed = untried; then
44328     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44329$as_echo "no" >&6; }
44330
44331
44332pkg_failed=no
44333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
44334$as_echo_n "checking for LUA... " >&6; }
44335
44336if test -n "$LUA_CFLAGS"; then
44337    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
44338 elif test -n "$PKG_CONFIG"; then
44339    if test -n "$PKG_CONFIG" && \
44340    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
44341  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
44342  ac_status=$?
44343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44344  test $ac_status = 0; }; then
44345  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
44346		      test "x$?" != "x0" && pkg_failed=yes
44347else
44348  pkg_failed=yes
44349fi
44350 else
44351    pkg_failed=untried
44352fi
44353if test -n "$LUA_LIBS"; then
44354    pkg_cv_LUA_LIBS="$LUA_LIBS"
44355 elif test -n "$PKG_CONFIG"; then
44356    if test -n "$PKG_CONFIG" && \
44357    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
44358  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
44359  ac_status=$?
44360  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44361  test $ac_status = 0; }; then
44362  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
44363		      test "x$?" != "x0" && pkg_failed=yes
44364else
44365  pkg_failed=yes
44366fi
44367 else
44368    pkg_failed=untried
44369fi
44370
44371
44372
44373if test $pkg_failed = yes; then
44374   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44375$as_echo "no" >&6; }
44376
44377if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44378        _pkg_short_errors_supported=yes
44379else
44380        _pkg_short_errors_supported=no
44381fi
44382        if test $_pkg_short_errors_supported = yes; then
44383	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
44384        else
44385	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
44386        fi
44387	# Put the nasty error message in config.log where it belongs
44388	echo "$LUA_PKG_ERRORS" >&5
44389
44390	with_liblua="no (pkg-config cannot find liblua)"
44391
44392elif test $pkg_failed = untried; then
44393     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44394$as_echo "no" >&6; }
44395	with_liblua="no (pkg-config cannot find liblua)"
44396
44397else
44398	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
44399	LUA_LIBS=$pkg_cv_LUA_LIBS
44400        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44401$as_echo "yes" >&6; }
44402	with_liblua="yes"
44403fi
44404
44405
44406else
44407	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
44408	LUA_LIBS=$pkg_cv_LUA_LIBS
44409        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44410$as_echo "yes" >&6; }
44411	with_liblua="yes"
44412fi
44413
44414
44415else
44416	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
44417	LUA_LIBS=$pkg_cv_LUA_LIBS
44418        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44419$as_echo "yes" >&6; }
44420	with_liblua="yes"
44421fi
44422
44423
44424elif test $pkg_failed = untried; then
44425     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44426$as_echo "no" >&6; }
44427
44428
44429pkg_failed=no
44430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
44431$as_echo_n "checking for LUA... " >&6; }
44432
44433if test -n "$LUA_CFLAGS"; then
44434    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
44435 elif test -n "$PKG_CONFIG"; then
44436    if test -n "$PKG_CONFIG" && \
44437    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
44438  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
44439  ac_status=$?
44440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44441  test $ac_status = 0; }; then
44442  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
44443		      test "x$?" != "x0" && pkg_failed=yes
44444else
44445  pkg_failed=yes
44446fi
44447 else
44448    pkg_failed=untried
44449fi
44450if test -n "$LUA_LIBS"; then
44451    pkg_cv_LUA_LIBS="$LUA_LIBS"
44452 elif test -n "$PKG_CONFIG"; then
44453    if test -n "$PKG_CONFIG" && \
44454    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
44455  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
44456  ac_status=$?
44457  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44458  test $ac_status = 0; }; then
44459  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
44460		      test "x$?" != "x0" && pkg_failed=yes
44461else
44462  pkg_failed=yes
44463fi
44464 else
44465    pkg_failed=untried
44466fi
44467
44468
44469
44470if test $pkg_failed = yes; then
44471   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44472$as_echo "no" >&6; }
44473
44474if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44475        _pkg_short_errors_supported=yes
44476else
44477        _pkg_short_errors_supported=no
44478fi
44479        if test $_pkg_short_errors_supported = yes; then
44480	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
44481        else
44482	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
44483        fi
44484	# Put the nasty error message in config.log where it belongs
44485	echo "$LUA_PKG_ERRORS" >&5
44486
44487
44488
44489pkg_failed=no
44490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
44491$as_echo_n "checking for LUA... " >&6; }
44492
44493if test -n "$LUA_CFLAGS"; then
44494    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
44495 elif test -n "$PKG_CONFIG"; then
44496    if test -n "$PKG_CONFIG" && \
44497    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
44498  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
44499  ac_status=$?
44500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44501  test $ac_status = 0; }; then
44502  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
44503		      test "x$?" != "x0" && pkg_failed=yes
44504else
44505  pkg_failed=yes
44506fi
44507 else
44508    pkg_failed=untried
44509fi
44510if test -n "$LUA_LIBS"; then
44511    pkg_cv_LUA_LIBS="$LUA_LIBS"
44512 elif test -n "$PKG_CONFIG"; then
44513    if test -n "$PKG_CONFIG" && \
44514    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
44515  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
44516  ac_status=$?
44517  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44518  test $ac_status = 0; }; then
44519  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
44520		      test "x$?" != "x0" && pkg_failed=yes
44521else
44522  pkg_failed=yes
44523fi
44524 else
44525    pkg_failed=untried
44526fi
44527
44528
44529
44530if test $pkg_failed = yes; then
44531   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44532$as_echo "no" >&6; }
44533
44534if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44535        _pkg_short_errors_supported=yes
44536else
44537        _pkg_short_errors_supported=no
44538fi
44539        if test $_pkg_short_errors_supported = yes; then
44540	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
44541        else
44542	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
44543        fi
44544	# Put the nasty error message in config.log where it belongs
44545	echo "$LUA_PKG_ERRORS" >&5
44546
44547
44548
44549pkg_failed=no
44550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
44551$as_echo_n "checking for LUA... " >&6; }
44552
44553if test -n "$LUA_CFLAGS"; then
44554    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
44555 elif test -n "$PKG_CONFIG"; then
44556    if test -n "$PKG_CONFIG" && \
44557    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
44558  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
44559  ac_status=$?
44560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44561  test $ac_status = 0; }; then
44562  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
44563		      test "x$?" != "x0" && pkg_failed=yes
44564else
44565  pkg_failed=yes
44566fi
44567 else
44568    pkg_failed=untried
44569fi
44570if test -n "$LUA_LIBS"; then
44571    pkg_cv_LUA_LIBS="$LUA_LIBS"
44572 elif test -n "$PKG_CONFIG"; then
44573    if test -n "$PKG_CONFIG" && \
44574    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
44575  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
44576  ac_status=$?
44577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44578  test $ac_status = 0; }; then
44579  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
44580		      test "x$?" != "x0" && pkg_failed=yes
44581else
44582  pkg_failed=yes
44583fi
44584 else
44585    pkg_failed=untried
44586fi
44587
44588
44589
44590if test $pkg_failed = yes; then
44591   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44592$as_echo "no" >&6; }
44593
44594if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44595        _pkg_short_errors_supported=yes
44596else
44597        _pkg_short_errors_supported=no
44598fi
44599        if test $_pkg_short_errors_supported = yes; then
44600	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
44601        else
44602	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
44603        fi
44604	# Put the nasty error message in config.log where it belongs
44605	echo "$LUA_PKG_ERRORS" >&5
44606
44607	with_liblua="no (pkg-config cannot find liblua)"
44608
44609elif test $pkg_failed = untried; then
44610     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44611$as_echo "no" >&6; }
44612	with_liblua="no (pkg-config cannot find liblua)"
44613
44614else
44615	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
44616	LUA_LIBS=$pkg_cv_LUA_LIBS
44617        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44618$as_echo "yes" >&6; }
44619	with_liblua="yes"
44620fi
44621
44622
44623elif test $pkg_failed = untried; then
44624     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44625$as_echo "no" >&6; }
44626
44627
44628pkg_failed=no
44629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
44630$as_echo_n "checking for LUA... " >&6; }
44631
44632if test -n "$LUA_CFLAGS"; then
44633    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
44634 elif test -n "$PKG_CONFIG"; then
44635    if test -n "$PKG_CONFIG" && \
44636    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
44637  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
44638  ac_status=$?
44639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44640  test $ac_status = 0; }; then
44641  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
44642		      test "x$?" != "x0" && pkg_failed=yes
44643else
44644  pkg_failed=yes
44645fi
44646 else
44647    pkg_failed=untried
44648fi
44649if test -n "$LUA_LIBS"; then
44650    pkg_cv_LUA_LIBS="$LUA_LIBS"
44651 elif test -n "$PKG_CONFIG"; then
44652    if test -n "$PKG_CONFIG" && \
44653    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
44654  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
44655  ac_status=$?
44656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44657  test $ac_status = 0; }; then
44658  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
44659		      test "x$?" != "x0" && pkg_failed=yes
44660else
44661  pkg_failed=yes
44662fi
44663 else
44664    pkg_failed=untried
44665fi
44666
44667
44668
44669if test $pkg_failed = yes; then
44670   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44671$as_echo "no" >&6; }
44672
44673if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44674        _pkg_short_errors_supported=yes
44675else
44676        _pkg_short_errors_supported=no
44677fi
44678        if test $_pkg_short_errors_supported = yes; then
44679	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
44680        else
44681	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
44682        fi
44683	# Put the nasty error message in config.log where it belongs
44684	echo "$LUA_PKG_ERRORS" >&5
44685
44686	with_liblua="no (pkg-config cannot find liblua)"
44687
44688elif test $pkg_failed = untried; then
44689     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44690$as_echo "no" >&6; }
44691	with_liblua="no (pkg-config cannot find liblua)"
44692
44693else
44694	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
44695	LUA_LIBS=$pkg_cv_LUA_LIBS
44696        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44697$as_echo "yes" >&6; }
44698	with_liblua="yes"
44699fi
44700
44701
44702else
44703	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
44704	LUA_LIBS=$pkg_cv_LUA_LIBS
44705        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44706$as_echo "yes" >&6; }
44707	with_liblua="yes"
44708fi
44709
44710
44711elif test $pkg_failed = untried; then
44712     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44713$as_echo "no" >&6; }
44714
44715
44716pkg_failed=no
44717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
44718$as_echo_n "checking for LUA... " >&6; }
44719
44720if test -n "$LUA_CFLAGS"; then
44721    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
44722 elif test -n "$PKG_CONFIG"; then
44723    if test -n "$PKG_CONFIG" && \
44724    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
44725  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
44726  ac_status=$?
44727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44728  test $ac_status = 0; }; then
44729  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
44730		      test "x$?" != "x0" && pkg_failed=yes
44731else
44732  pkg_failed=yes
44733fi
44734 else
44735    pkg_failed=untried
44736fi
44737if test -n "$LUA_LIBS"; then
44738    pkg_cv_LUA_LIBS="$LUA_LIBS"
44739 elif test -n "$PKG_CONFIG"; then
44740    if test -n "$PKG_CONFIG" && \
44741    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
44742  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
44743  ac_status=$?
44744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44745  test $ac_status = 0; }; then
44746  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
44747		      test "x$?" != "x0" && pkg_failed=yes
44748else
44749  pkg_failed=yes
44750fi
44751 else
44752    pkg_failed=untried
44753fi
44754
44755
44756
44757if test $pkg_failed = yes; then
44758   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44759$as_echo "no" >&6; }
44760
44761if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44762        _pkg_short_errors_supported=yes
44763else
44764        _pkg_short_errors_supported=no
44765fi
44766        if test $_pkg_short_errors_supported = yes; then
44767	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
44768        else
44769	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
44770        fi
44771	# Put the nasty error message in config.log where it belongs
44772	echo "$LUA_PKG_ERRORS" >&5
44773
44774
44775
44776pkg_failed=no
44777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
44778$as_echo_n "checking for LUA... " >&6; }
44779
44780if test -n "$LUA_CFLAGS"; then
44781    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
44782 elif test -n "$PKG_CONFIG"; then
44783    if test -n "$PKG_CONFIG" && \
44784    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
44785  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
44786  ac_status=$?
44787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44788  test $ac_status = 0; }; then
44789  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
44790		      test "x$?" != "x0" && pkg_failed=yes
44791else
44792  pkg_failed=yes
44793fi
44794 else
44795    pkg_failed=untried
44796fi
44797if test -n "$LUA_LIBS"; then
44798    pkg_cv_LUA_LIBS="$LUA_LIBS"
44799 elif test -n "$PKG_CONFIG"; then
44800    if test -n "$PKG_CONFIG" && \
44801    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
44802  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
44803  ac_status=$?
44804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44805  test $ac_status = 0; }; then
44806  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
44807		      test "x$?" != "x0" && pkg_failed=yes
44808else
44809  pkg_failed=yes
44810fi
44811 else
44812    pkg_failed=untried
44813fi
44814
44815
44816
44817if test $pkg_failed = yes; then
44818   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44819$as_echo "no" >&6; }
44820
44821if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44822        _pkg_short_errors_supported=yes
44823else
44824        _pkg_short_errors_supported=no
44825fi
44826        if test $_pkg_short_errors_supported = yes; then
44827	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
44828        else
44829	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
44830        fi
44831	# Put the nasty error message in config.log where it belongs
44832	echo "$LUA_PKG_ERRORS" >&5
44833
44834	with_liblua="no (pkg-config cannot find liblua)"
44835
44836elif test $pkg_failed = untried; then
44837     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44838$as_echo "no" >&6; }
44839	with_liblua="no (pkg-config cannot find liblua)"
44840
44841else
44842	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
44843	LUA_LIBS=$pkg_cv_LUA_LIBS
44844        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44845$as_echo "yes" >&6; }
44846	with_liblua="yes"
44847fi
44848
44849
44850elif test $pkg_failed = untried; then
44851     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44852$as_echo "no" >&6; }
44853
44854
44855pkg_failed=no
44856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
44857$as_echo_n "checking for LUA... " >&6; }
44858
44859if test -n "$LUA_CFLAGS"; then
44860    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
44861 elif test -n "$PKG_CONFIG"; then
44862    if test -n "$PKG_CONFIG" && \
44863    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
44864  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
44865  ac_status=$?
44866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44867  test $ac_status = 0; }; then
44868  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
44869		      test "x$?" != "x0" && pkg_failed=yes
44870else
44871  pkg_failed=yes
44872fi
44873 else
44874    pkg_failed=untried
44875fi
44876if test -n "$LUA_LIBS"; then
44877    pkg_cv_LUA_LIBS="$LUA_LIBS"
44878 elif test -n "$PKG_CONFIG"; then
44879    if test -n "$PKG_CONFIG" && \
44880    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
44881  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
44882  ac_status=$?
44883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44884  test $ac_status = 0; }; then
44885  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
44886		      test "x$?" != "x0" && pkg_failed=yes
44887else
44888  pkg_failed=yes
44889fi
44890 else
44891    pkg_failed=untried
44892fi
44893
44894
44895
44896if test $pkg_failed = yes; then
44897   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44898$as_echo "no" >&6; }
44899
44900if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44901        _pkg_short_errors_supported=yes
44902else
44903        _pkg_short_errors_supported=no
44904fi
44905        if test $_pkg_short_errors_supported = yes; then
44906	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
44907        else
44908	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
44909        fi
44910	# Put the nasty error message in config.log where it belongs
44911	echo "$LUA_PKG_ERRORS" >&5
44912
44913	with_liblua="no (pkg-config cannot find liblua)"
44914
44915elif test $pkg_failed = untried; then
44916     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44917$as_echo "no" >&6; }
44918	with_liblua="no (pkg-config cannot find liblua)"
44919
44920else
44921	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
44922	LUA_LIBS=$pkg_cv_LUA_LIBS
44923        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44924$as_echo "yes" >&6; }
44925	with_liblua="yes"
44926fi
44927
44928
44929else
44930	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
44931	LUA_LIBS=$pkg_cv_LUA_LIBS
44932        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44933$as_echo "yes" >&6; }
44934	with_liblua="yes"
44935fi
44936
44937
44938else
44939	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
44940	LUA_LIBS=$pkg_cv_LUA_LIBS
44941        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44942$as_echo "yes" >&6; }
44943	with_liblua="yes"
44944fi
44945
44946
44947else
44948	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
44949	LUA_LIBS=$pkg_cv_LUA_LIBS
44950        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44951$as_echo "yes" >&6; }
44952	with_liblua="yes"
44953fi
44954
44955
44956else
44957	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
44958	LUA_LIBS=$pkg_cv_LUA_LIBS
44959        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44960$as_echo "yes" >&6; }
44961	with_liblua="yes"
44962fi
44963
44964
44965else
44966	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
44967	LUA_LIBS=$pkg_cv_LUA_LIBS
44968        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44969$as_echo "yes" >&6; }
44970	with_liblua="yes"
44971fi
44972
44973
44974else
44975	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
44976	LUA_LIBS=$pkg_cv_LUA_LIBS
44977        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44978$as_echo "yes" >&6; }
44979	with_liblua="yes"
44980fi
44981
44982
44983else
44984	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
44985	LUA_LIBS=$pkg_cv_LUA_LIBS
44986        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44987$as_echo "yes" >&6; }
44988	with_liblua="yes"
44989fi
44990
44991
44992elif test $pkg_failed = untried; then
44993     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44994$as_echo "no" >&6; }
44995
44996
44997pkg_failed=no
44998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
44999$as_echo_n "checking for LUA... " >&6; }
45000
45001if test -n "$LUA_CFLAGS"; then
45002    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
45003 elif test -n "$PKG_CONFIG"; then
45004    if test -n "$PKG_CONFIG" && \
45005    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.3\""; } >&5
45006  ($PKG_CONFIG --exists --print-errors "lua5.3") 2>&5
45007  ac_status=$?
45008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45009  test $ac_status = 0; }; then
45010  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.3" 2>/dev/null`
45011		      test "x$?" != "x0" && pkg_failed=yes
45012else
45013  pkg_failed=yes
45014fi
45015 else
45016    pkg_failed=untried
45017fi
45018if test -n "$LUA_LIBS"; then
45019    pkg_cv_LUA_LIBS="$LUA_LIBS"
45020 elif test -n "$PKG_CONFIG"; then
45021    if test -n "$PKG_CONFIG" && \
45022    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.3\""; } >&5
45023  ($PKG_CONFIG --exists --print-errors "lua5.3") 2>&5
45024  ac_status=$?
45025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45026  test $ac_status = 0; }; then
45027  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.3" 2>/dev/null`
45028		      test "x$?" != "x0" && pkg_failed=yes
45029else
45030  pkg_failed=yes
45031fi
45032 else
45033    pkg_failed=untried
45034fi
45035
45036
45037
45038if test $pkg_failed = yes; then
45039   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45040$as_echo "no" >&6; }
45041
45042if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45043        _pkg_short_errors_supported=yes
45044else
45045        _pkg_short_errors_supported=no
45046fi
45047        if test $_pkg_short_errors_supported = yes; then
45048	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.3" 2>&1`
45049        else
45050	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.3" 2>&1`
45051        fi
45052	# Put the nasty error message in config.log where it belongs
45053	echo "$LUA_PKG_ERRORS" >&5
45054
45055
45056
45057pkg_failed=no
45058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
45059$as_echo_n "checking for LUA... " >&6; }
45060
45061if test -n "$LUA_CFLAGS"; then
45062    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
45063 elif test -n "$PKG_CONFIG"; then
45064    if test -n "$PKG_CONFIG" && \
45065    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua53\""; } >&5
45066  ($PKG_CONFIG --exists --print-errors "lua53") 2>&5
45067  ac_status=$?
45068  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45069  test $ac_status = 0; }; then
45070  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua53" 2>/dev/null`
45071		      test "x$?" != "x0" && pkg_failed=yes
45072else
45073  pkg_failed=yes
45074fi
45075 else
45076    pkg_failed=untried
45077fi
45078if test -n "$LUA_LIBS"; then
45079    pkg_cv_LUA_LIBS="$LUA_LIBS"
45080 elif test -n "$PKG_CONFIG"; then
45081    if test -n "$PKG_CONFIG" && \
45082    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua53\""; } >&5
45083  ($PKG_CONFIG --exists --print-errors "lua53") 2>&5
45084  ac_status=$?
45085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45086  test $ac_status = 0; }; then
45087  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua53" 2>/dev/null`
45088		      test "x$?" != "x0" && pkg_failed=yes
45089else
45090  pkg_failed=yes
45091fi
45092 else
45093    pkg_failed=untried
45094fi
45095
45096
45097
45098if test $pkg_failed = yes; then
45099   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45100$as_echo "no" >&6; }
45101
45102if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45103        _pkg_short_errors_supported=yes
45104else
45105        _pkg_short_errors_supported=no
45106fi
45107        if test $_pkg_short_errors_supported = yes; then
45108	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua53" 2>&1`
45109        else
45110	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua53" 2>&1`
45111        fi
45112	# Put the nasty error message in config.log where it belongs
45113	echo "$LUA_PKG_ERRORS" >&5
45114
45115
45116
45117pkg_failed=no
45118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
45119$as_echo_n "checking for LUA... " >&6; }
45120
45121if test -n "$LUA_CFLAGS"; then
45122    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
45123 elif test -n "$PKG_CONFIG"; then
45124    if test -n "$PKG_CONFIG" && \
45125    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
45126  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
45127  ac_status=$?
45128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45129  test $ac_status = 0; }; then
45130  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.2" 2>/dev/null`
45131		      test "x$?" != "x0" && pkg_failed=yes
45132else
45133  pkg_failed=yes
45134fi
45135 else
45136    pkg_failed=untried
45137fi
45138if test -n "$LUA_LIBS"; then
45139    pkg_cv_LUA_LIBS="$LUA_LIBS"
45140 elif test -n "$PKG_CONFIG"; then
45141    if test -n "$PKG_CONFIG" && \
45142    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
45143  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
45144  ac_status=$?
45145  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45146  test $ac_status = 0; }; then
45147  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.2" 2>/dev/null`
45148		      test "x$?" != "x0" && pkg_failed=yes
45149else
45150  pkg_failed=yes
45151fi
45152 else
45153    pkg_failed=untried
45154fi
45155
45156
45157
45158if test $pkg_failed = yes; then
45159   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45160$as_echo "no" >&6; }
45161
45162if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45163        _pkg_short_errors_supported=yes
45164else
45165        _pkg_short_errors_supported=no
45166fi
45167        if test $_pkg_short_errors_supported = yes; then
45168	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.2" 2>&1`
45169        else
45170	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.2" 2>&1`
45171        fi
45172	# Put the nasty error message in config.log where it belongs
45173	echo "$LUA_PKG_ERRORS" >&5
45174
45175
45176
45177pkg_failed=no
45178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
45179$as_echo_n "checking for LUA... " >&6; }
45180
45181if test -n "$LUA_CFLAGS"; then
45182    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
45183 elif test -n "$PKG_CONFIG"; then
45184    if test -n "$PKG_CONFIG" && \
45185    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
45186  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
45187  ac_status=$?
45188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45189  test $ac_status = 0; }; then
45190  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
45191		      test "x$?" != "x0" && pkg_failed=yes
45192else
45193  pkg_failed=yes
45194fi
45195 else
45196    pkg_failed=untried
45197fi
45198if test -n "$LUA_LIBS"; then
45199    pkg_cv_LUA_LIBS="$LUA_LIBS"
45200 elif test -n "$PKG_CONFIG"; then
45201    if test -n "$PKG_CONFIG" && \
45202    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
45203  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
45204  ac_status=$?
45205  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45206  test $ac_status = 0; }; then
45207  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
45208		      test "x$?" != "x0" && pkg_failed=yes
45209else
45210  pkg_failed=yes
45211fi
45212 else
45213    pkg_failed=untried
45214fi
45215
45216
45217
45218if test $pkg_failed = yes; then
45219   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45220$as_echo "no" >&6; }
45221
45222if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45223        _pkg_short_errors_supported=yes
45224else
45225        _pkg_short_errors_supported=no
45226fi
45227        if test $_pkg_short_errors_supported = yes; then
45228	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
45229        else
45230	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
45231        fi
45232	# Put the nasty error message in config.log where it belongs
45233	echo "$LUA_PKG_ERRORS" >&5
45234
45235
45236
45237pkg_failed=no
45238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
45239$as_echo_n "checking for LUA... " >&6; }
45240
45241if test -n "$LUA_CFLAGS"; then
45242    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
45243 elif test -n "$PKG_CONFIG"; then
45244    if test -n "$PKG_CONFIG" && \
45245    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
45246  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
45247  ac_status=$?
45248  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45249  test $ac_status = 0; }; then
45250  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
45251		      test "x$?" != "x0" && pkg_failed=yes
45252else
45253  pkg_failed=yes
45254fi
45255 else
45256    pkg_failed=untried
45257fi
45258if test -n "$LUA_LIBS"; then
45259    pkg_cv_LUA_LIBS="$LUA_LIBS"
45260 elif test -n "$PKG_CONFIG"; then
45261    if test -n "$PKG_CONFIG" && \
45262    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
45263  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
45264  ac_status=$?
45265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45266  test $ac_status = 0; }; then
45267  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
45268		      test "x$?" != "x0" && pkg_failed=yes
45269else
45270  pkg_failed=yes
45271fi
45272 else
45273    pkg_failed=untried
45274fi
45275
45276
45277
45278if test $pkg_failed = yes; then
45279   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45280$as_echo "no" >&6; }
45281
45282if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45283        _pkg_short_errors_supported=yes
45284else
45285        _pkg_short_errors_supported=no
45286fi
45287        if test $_pkg_short_errors_supported = yes; then
45288	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
45289        else
45290	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
45291        fi
45292	# Put the nasty error message in config.log where it belongs
45293	echo "$LUA_PKG_ERRORS" >&5
45294
45295
45296
45297pkg_failed=no
45298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
45299$as_echo_n "checking for LUA... " >&6; }
45300
45301if test -n "$LUA_CFLAGS"; then
45302    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
45303 elif test -n "$PKG_CONFIG"; then
45304    if test -n "$PKG_CONFIG" && \
45305    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
45306  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
45307  ac_status=$?
45308  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45309  test $ac_status = 0; }; then
45310  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
45311		      test "x$?" != "x0" && pkg_failed=yes
45312else
45313  pkg_failed=yes
45314fi
45315 else
45316    pkg_failed=untried
45317fi
45318if test -n "$LUA_LIBS"; then
45319    pkg_cv_LUA_LIBS="$LUA_LIBS"
45320 elif test -n "$PKG_CONFIG"; then
45321    if test -n "$PKG_CONFIG" && \
45322    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
45323  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
45324  ac_status=$?
45325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45326  test $ac_status = 0; }; then
45327  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
45328		      test "x$?" != "x0" && pkg_failed=yes
45329else
45330  pkg_failed=yes
45331fi
45332 else
45333    pkg_failed=untried
45334fi
45335
45336
45337
45338if test $pkg_failed = yes; then
45339   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45340$as_echo "no" >&6; }
45341
45342if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45343        _pkg_short_errors_supported=yes
45344else
45345        _pkg_short_errors_supported=no
45346fi
45347        if test $_pkg_short_errors_supported = yes; then
45348	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
45349        else
45350	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
45351        fi
45352	# Put the nasty error message in config.log where it belongs
45353	echo "$LUA_PKG_ERRORS" >&5
45354
45355
45356
45357pkg_failed=no
45358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
45359$as_echo_n "checking for LUA... " >&6; }
45360
45361if test -n "$LUA_CFLAGS"; then
45362    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
45363 elif test -n "$PKG_CONFIG"; then
45364    if test -n "$PKG_CONFIG" && \
45365    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
45366  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
45367  ac_status=$?
45368  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45369  test $ac_status = 0; }; then
45370  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
45371		      test "x$?" != "x0" && pkg_failed=yes
45372else
45373  pkg_failed=yes
45374fi
45375 else
45376    pkg_failed=untried
45377fi
45378if test -n "$LUA_LIBS"; then
45379    pkg_cv_LUA_LIBS="$LUA_LIBS"
45380 elif test -n "$PKG_CONFIG"; then
45381    if test -n "$PKG_CONFIG" && \
45382    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
45383  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
45384  ac_status=$?
45385  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45386  test $ac_status = 0; }; then
45387  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
45388		      test "x$?" != "x0" && pkg_failed=yes
45389else
45390  pkg_failed=yes
45391fi
45392 else
45393    pkg_failed=untried
45394fi
45395
45396
45397
45398if test $pkg_failed = yes; then
45399   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45400$as_echo "no" >&6; }
45401
45402if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45403        _pkg_short_errors_supported=yes
45404else
45405        _pkg_short_errors_supported=no
45406fi
45407        if test $_pkg_short_errors_supported = yes; then
45408	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
45409        else
45410	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
45411        fi
45412	# Put the nasty error message in config.log where it belongs
45413	echo "$LUA_PKG_ERRORS" >&5
45414
45415
45416
45417pkg_failed=no
45418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
45419$as_echo_n "checking for LUA... " >&6; }
45420
45421if test -n "$LUA_CFLAGS"; then
45422    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
45423 elif test -n "$PKG_CONFIG"; then
45424    if test -n "$PKG_CONFIG" && \
45425    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
45426  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
45427  ac_status=$?
45428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45429  test $ac_status = 0; }; then
45430  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
45431		      test "x$?" != "x0" && pkg_failed=yes
45432else
45433  pkg_failed=yes
45434fi
45435 else
45436    pkg_failed=untried
45437fi
45438if test -n "$LUA_LIBS"; then
45439    pkg_cv_LUA_LIBS="$LUA_LIBS"
45440 elif test -n "$PKG_CONFIG"; then
45441    if test -n "$PKG_CONFIG" && \
45442    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
45443  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
45444  ac_status=$?
45445  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45446  test $ac_status = 0; }; then
45447  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
45448		      test "x$?" != "x0" && pkg_failed=yes
45449else
45450  pkg_failed=yes
45451fi
45452 else
45453    pkg_failed=untried
45454fi
45455
45456
45457
45458if test $pkg_failed = yes; then
45459   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45460$as_echo "no" >&6; }
45461
45462if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45463        _pkg_short_errors_supported=yes
45464else
45465        _pkg_short_errors_supported=no
45466fi
45467        if test $_pkg_short_errors_supported = yes; then
45468	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
45469        else
45470	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
45471        fi
45472	# Put the nasty error message in config.log where it belongs
45473	echo "$LUA_PKG_ERRORS" >&5
45474
45475	with_liblua="no (pkg-config cannot find liblua)"
45476
45477elif test $pkg_failed = untried; then
45478     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45479$as_echo "no" >&6; }
45480	with_liblua="no (pkg-config cannot find liblua)"
45481
45482else
45483	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
45484	LUA_LIBS=$pkg_cv_LUA_LIBS
45485        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45486$as_echo "yes" >&6; }
45487	with_liblua="yes"
45488fi
45489
45490
45491elif test $pkg_failed = untried; then
45492     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45493$as_echo "no" >&6; }
45494
45495
45496pkg_failed=no
45497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
45498$as_echo_n "checking for LUA... " >&6; }
45499
45500if test -n "$LUA_CFLAGS"; then
45501    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
45502 elif test -n "$PKG_CONFIG"; then
45503    if test -n "$PKG_CONFIG" && \
45504    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
45505  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
45506  ac_status=$?
45507  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45508  test $ac_status = 0; }; then
45509  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
45510		      test "x$?" != "x0" && pkg_failed=yes
45511else
45512  pkg_failed=yes
45513fi
45514 else
45515    pkg_failed=untried
45516fi
45517if test -n "$LUA_LIBS"; then
45518    pkg_cv_LUA_LIBS="$LUA_LIBS"
45519 elif test -n "$PKG_CONFIG"; then
45520    if test -n "$PKG_CONFIG" && \
45521    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
45522  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
45523  ac_status=$?
45524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45525  test $ac_status = 0; }; then
45526  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
45527		      test "x$?" != "x0" && pkg_failed=yes
45528else
45529  pkg_failed=yes
45530fi
45531 else
45532    pkg_failed=untried
45533fi
45534
45535
45536
45537if test $pkg_failed = yes; then
45538   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45539$as_echo "no" >&6; }
45540
45541if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45542        _pkg_short_errors_supported=yes
45543else
45544        _pkg_short_errors_supported=no
45545fi
45546        if test $_pkg_short_errors_supported = yes; then
45547	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
45548        else
45549	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
45550        fi
45551	# Put the nasty error message in config.log where it belongs
45552	echo "$LUA_PKG_ERRORS" >&5
45553
45554	with_liblua="no (pkg-config cannot find liblua)"
45555
45556elif test $pkg_failed = untried; then
45557     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45558$as_echo "no" >&6; }
45559	with_liblua="no (pkg-config cannot find liblua)"
45560
45561else
45562	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
45563	LUA_LIBS=$pkg_cv_LUA_LIBS
45564        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45565$as_echo "yes" >&6; }
45566	with_liblua="yes"
45567fi
45568
45569
45570else
45571	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
45572	LUA_LIBS=$pkg_cv_LUA_LIBS
45573        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45574$as_echo "yes" >&6; }
45575	with_liblua="yes"
45576fi
45577
45578
45579elif test $pkg_failed = untried; then
45580     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45581$as_echo "no" >&6; }
45582
45583
45584pkg_failed=no
45585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
45586$as_echo_n "checking for LUA... " >&6; }
45587
45588if test -n "$LUA_CFLAGS"; then
45589    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
45590 elif test -n "$PKG_CONFIG"; then
45591    if test -n "$PKG_CONFIG" && \
45592    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
45593  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
45594  ac_status=$?
45595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45596  test $ac_status = 0; }; then
45597  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
45598		      test "x$?" != "x0" && pkg_failed=yes
45599else
45600  pkg_failed=yes
45601fi
45602 else
45603    pkg_failed=untried
45604fi
45605if test -n "$LUA_LIBS"; then
45606    pkg_cv_LUA_LIBS="$LUA_LIBS"
45607 elif test -n "$PKG_CONFIG"; then
45608    if test -n "$PKG_CONFIG" && \
45609    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
45610  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
45611  ac_status=$?
45612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45613  test $ac_status = 0; }; then
45614  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
45615		      test "x$?" != "x0" && pkg_failed=yes
45616else
45617  pkg_failed=yes
45618fi
45619 else
45620    pkg_failed=untried
45621fi
45622
45623
45624
45625if test $pkg_failed = yes; then
45626   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45627$as_echo "no" >&6; }
45628
45629if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45630        _pkg_short_errors_supported=yes
45631else
45632        _pkg_short_errors_supported=no
45633fi
45634        if test $_pkg_short_errors_supported = yes; then
45635	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
45636        else
45637	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
45638        fi
45639	# Put the nasty error message in config.log where it belongs
45640	echo "$LUA_PKG_ERRORS" >&5
45641
45642
45643
45644pkg_failed=no
45645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
45646$as_echo_n "checking for LUA... " >&6; }
45647
45648if test -n "$LUA_CFLAGS"; then
45649    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
45650 elif test -n "$PKG_CONFIG"; then
45651    if test -n "$PKG_CONFIG" && \
45652    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
45653  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
45654  ac_status=$?
45655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45656  test $ac_status = 0; }; then
45657  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
45658		      test "x$?" != "x0" && pkg_failed=yes
45659else
45660  pkg_failed=yes
45661fi
45662 else
45663    pkg_failed=untried
45664fi
45665if test -n "$LUA_LIBS"; then
45666    pkg_cv_LUA_LIBS="$LUA_LIBS"
45667 elif test -n "$PKG_CONFIG"; then
45668    if test -n "$PKG_CONFIG" && \
45669    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
45670  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
45671  ac_status=$?
45672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45673  test $ac_status = 0; }; then
45674  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
45675		      test "x$?" != "x0" && pkg_failed=yes
45676else
45677  pkg_failed=yes
45678fi
45679 else
45680    pkg_failed=untried
45681fi
45682
45683
45684
45685if test $pkg_failed = yes; then
45686   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45687$as_echo "no" >&6; }
45688
45689if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45690        _pkg_short_errors_supported=yes
45691else
45692        _pkg_short_errors_supported=no
45693fi
45694        if test $_pkg_short_errors_supported = yes; then
45695	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
45696        else
45697	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
45698        fi
45699	# Put the nasty error message in config.log where it belongs
45700	echo "$LUA_PKG_ERRORS" >&5
45701
45702	with_liblua="no (pkg-config cannot find liblua)"
45703
45704elif test $pkg_failed = untried; then
45705     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45706$as_echo "no" >&6; }
45707	with_liblua="no (pkg-config cannot find liblua)"
45708
45709else
45710	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
45711	LUA_LIBS=$pkg_cv_LUA_LIBS
45712        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45713$as_echo "yes" >&6; }
45714	with_liblua="yes"
45715fi
45716
45717
45718elif test $pkg_failed = untried; then
45719     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45720$as_echo "no" >&6; }
45721
45722
45723pkg_failed=no
45724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
45725$as_echo_n "checking for LUA... " >&6; }
45726
45727if test -n "$LUA_CFLAGS"; then
45728    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
45729 elif test -n "$PKG_CONFIG"; then
45730    if test -n "$PKG_CONFIG" && \
45731    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
45732  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
45733  ac_status=$?
45734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45735  test $ac_status = 0; }; then
45736  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
45737		      test "x$?" != "x0" && pkg_failed=yes
45738else
45739  pkg_failed=yes
45740fi
45741 else
45742    pkg_failed=untried
45743fi
45744if test -n "$LUA_LIBS"; then
45745    pkg_cv_LUA_LIBS="$LUA_LIBS"
45746 elif test -n "$PKG_CONFIG"; then
45747    if test -n "$PKG_CONFIG" && \
45748    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
45749  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
45750  ac_status=$?
45751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45752  test $ac_status = 0; }; then
45753  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
45754		      test "x$?" != "x0" && pkg_failed=yes
45755else
45756  pkg_failed=yes
45757fi
45758 else
45759    pkg_failed=untried
45760fi
45761
45762
45763
45764if test $pkg_failed = yes; then
45765   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45766$as_echo "no" >&6; }
45767
45768if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45769        _pkg_short_errors_supported=yes
45770else
45771        _pkg_short_errors_supported=no
45772fi
45773        if test $_pkg_short_errors_supported = yes; then
45774	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
45775        else
45776	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
45777        fi
45778	# Put the nasty error message in config.log where it belongs
45779	echo "$LUA_PKG_ERRORS" >&5
45780
45781	with_liblua="no (pkg-config cannot find liblua)"
45782
45783elif test $pkg_failed = untried; then
45784     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45785$as_echo "no" >&6; }
45786	with_liblua="no (pkg-config cannot find liblua)"
45787
45788else
45789	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
45790	LUA_LIBS=$pkg_cv_LUA_LIBS
45791        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45792$as_echo "yes" >&6; }
45793	with_liblua="yes"
45794fi
45795
45796
45797else
45798	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
45799	LUA_LIBS=$pkg_cv_LUA_LIBS
45800        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45801$as_echo "yes" >&6; }
45802	with_liblua="yes"
45803fi
45804
45805
45806else
45807	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
45808	LUA_LIBS=$pkg_cv_LUA_LIBS
45809        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45810$as_echo "yes" >&6; }
45811	with_liblua="yes"
45812fi
45813
45814
45815elif test $pkg_failed = untried; then
45816     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45817$as_echo "no" >&6; }
45818
45819
45820pkg_failed=no
45821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
45822$as_echo_n "checking for LUA... " >&6; }
45823
45824if test -n "$LUA_CFLAGS"; then
45825    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
45826 elif test -n "$PKG_CONFIG"; then
45827    if test -n "$PKG_CONFIG" && \
45828    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
45829  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
45830  ac_status=$?
45831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45832  test $ac_status = 0; }; then
45833  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
45834		      test "x$?" != "x0" && pkg_failed=yes
45835else
45836  pkg_failed=yes
45837fi
45838 else
45839    pkg_failed=untried
45840fi
45841if test -n "$LUA_LIBS"; then
45842    pkg_cv_LUA_LIBS="$LUA_LIBS"
45843 elif test -n "$PKG_CONFIG"; then
45844    if test -n "$PKG_CONFIG" && \
45845    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
45846  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
45847  ac_status=$?
45848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45849  test $ac_status = 0; }; then
45850  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
45851		      test "x$?" != "x0" && pkg_failed=yes
45852else
45853  pkg_failed=yes
45854fi
45855 else
45856    pkg_failed=untried
45857fi
45858
45859
45860
45861if test $pkg_failed = yes; then
45862   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45863$as_echo "no" >&6; }
45864
45865if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45866        _pkg_short_errors_supported=yes
45867else
45868        _pkg_short_errors_supported=no
45869fi
45870        if test $_pkg_short_errors_supported = yes; then
45871	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
45872        else
45873	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
45874        fi
45875	# Put the nasty error message in config.log where it belongs
45876	echo "$LUA_PKG_ERRORS" >&5
45877
45878
45879
45880pkg_failed=no
45881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
45882$as_echo_n "checking for LUA... " >&6; }
45883
45884if test -n "$LUA_CFLAGS"; then
45885    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
45886 elif test -n "$PKG_CONFIG"; then
45887    if test -n "$PKG_CONFIG" && \
45888    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
45889  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
45890  ac_status=$?
45891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45892  test $ac_status = 0; }; then
45893  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
45894		      test "x$?" != "x0" && pkg_failed=yes
45895else
45896  pkg_failed=yes
45897fi
45898 else
45899    pkg_failed=untried
45900fi
45901if test -n "$LUA_LIBS"; then
45902    pkg_cv_LUA_LIBS="$LUA_LIBS"
45903 elif test -n "$PKG_CONFIG"; then
45904    if test -n "$PKG_CONFIG" && \
45905    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
45906  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
45907  ac_status=$?
45908  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45909  test $ac_status = 0; }; then
45910  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
45911		      test "x$?" != "x0" && pkg_failed=yes
45912else
45913  pkg_failed=yes
45914fi
45915 else
45916    pkg_failed=untried
45917fi
45918
45919
45920
45921if test $pkg_failed = yes; then
45922   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45923$as_echo "no" >&6; }
45924
45925if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45926        _pkg_short_errors_supported=yes
45927else
45928        _pkg_short_errors_supported=no
45929fi
45930        if test $_pkg_short_errors_supported = yes; then
45931	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
45932        else
45933	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
45934        fi
45935	# Put the nasty error message in config.log where it belongs
45936	echo "$LUA_PKG_ERRORS" >&5
45937
45938
45939
45940pkg_failed=no
45941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
45942$as_echo_n "checking for LUA... " >&6; }
45943
45944if test -n "$LUA_CFLAGS"; then
45945    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
45946 elif test -n "$PKG_CONFIG"; then
45947    if test -n "$PKG_CONFIG" && \
45948    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
45949  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
45950  ac_status=$?
45951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45952  test $ac_status = 0; }; then
45953  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
45954		      test "x$?" != "x0" && pkg_failed=yes
45955else
45956  pkg_failed=yes
45957fi
45958 else
45959    pkg_failed=untried
45960fi
45961if test -n "$LUA_LIBS"; then
45962    pkg_cv_LUA_LIBS="$LUA_LIBS"
45963 elif test -n "$PKG_CONFIG"; then
45964    if test -n "$PKG_CONFIG" && \
45965    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
45966  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
45967  ac_status=$?
45968  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45969  test $ac_status = 0; }; then
45970  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
45971		      test "x$?" != "x0" && pkg_failed=yes
45972else
45973  pkg_failed=yes
45974fi
45975 else
45976    pkg_failed=untried
45977fi
45978
45979
45980
45981if test $pkg_failed = yes; then
45982   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45983$as_echo "no" >&6; }
45984
45985if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45986        _pkg_short_errors_supported=yes
45987else
45988        _pkg_short_errors_supported=no
45989fi
45990        if test $_pkg_short_errors_supported = yes; then
45991	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
45992        else
45993	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
45994        fi
45995	# Put the nasty error message in config.log where it belongs
45996	echo "$LUA_PKG_ERRORS" >&5
45997
45998	with_liblua="no (pkg-config cannot find liblua)"
45999
46000elif test $pkg_failed = untried; then
46001     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46002$as_echo "no" >&6; }
46003	with_liblua="no (pkg-config cannot find liblua)"
46004
46005else
46006	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
46007	LUA_LIBS=$pkg_cv_LUA_LIBS
46008        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46009$as_echo "yes" >&6; }
46010	with_liblua="yes"
46011fi
46012
46013
46014elif test $pkg_failed = untried; then
46015     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46016$as_echo "no" >&6; }
46017
46018
46019pkg_failed=no
46020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
46021$as_echo_n "checking for LUA... " >&6; }
46022
46023if test -n "$LUA_CFLAGS"; then
46024    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
46025 elif test -n "$PKG_CONFIG"; then
46026    if test -n "$PKG_CONFIG" && \
46027    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
46028  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
46029  ac_status=$?
46030  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46031  test $ac_status = 0; }; then
46032  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
46033		      test "x$?" != "x0" && pkg_failed=yes
46034else
46035  pkg_failed=yes
46036fi
46037 else
46038    pkg_failed=untried
46039fi
46040if test -n "$LUA_LIBS"; then
46041    pkg_cv_LUA_LIBS="$LUA_LIBS"
46042 elif test -n "$PKG_CONFIG"; then
46043    if test -n "$PKG_CONFIG" && \
46044    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
46045  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
46046  ac_status=$?
46047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46048  test $ac_status = 0; }; then
46049  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
46050		      test "x$?" != "x0" && pkg_failed=yes
46051else
46052  pkg_failed=yes
46053fi
46054 else
46055    pkg_failed=untried
46056fi
46057
46058
46059
46060if test $pkg_failed = yes; then
46061   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46062$as_echo "no" >&6; }
46063
46064if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46065        _pkg_short_errors_supported=yes
46066else
46067        _pkg_short_errors_supported=no
46068fi
46069        if test $_pkg_short_errors_supported = yes; then
46070	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
46071        else
46072	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
46073        fi
46074	# Put the nasty error message in config.log where it belongs
46075	echo "$LUA_PKG_ERRORS" >&5
46076
46077	with_liblua="no (pkg-config cannot find liblua)"
46078
46079elif test $pkg_failed = untried; then
46080     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46081$as_echo "no" >&6; }
46082	with_liblua="no (pkg-config cannot find liblua)"
46083
46084else
46085	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
46086	LUA_LIBS=$pkg_cv_LUA_LIBS
46087        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46088$as_echo "yes" >&6; }
46089	with_liblua="yes"
46090fi
46091
46092
46093else
46094	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
46095	LUA_LIBS=$pkg_cv_LUA_LIBS
46096        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46097$as_echo "yes" >&6; }
46098	with_liblua="yes"
46099fi
46100
46101
46102elif test $pkg_failed = untried; then
46103     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46104$as_echo "no" >&6; }
46105
46106
46107pkg_failed=no
46108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
46109$as_echo_n "checking for LUA... " >&6; }
46110
46111if test -n "$LUA_CFLAGS"; then
46112    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
46113 elif test -n "$PKG_CONFIG"; then
46114    if test -n "$PKG_CONFIG" && \
46115    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
46116  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
46117  ac_status=$?
46118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46119  test $ac_status = 0; }; then
46120  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
46121		      test "x$?" != "x0" && pkg_failed=yes
46122else
46123  pkg_failed=yes
46124fi
46125 else
46126    pkg_failed=untried
46127fi
46128if test -n "$LUA_LIBS"; then
46129    pkg_cv_LUA_LIBS="$LUA_LIBS"
46130 elif test -n "$PKG_CONFIG"; then
46131    if test -n "$PKG_CONFIG" && \
46132    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
46133  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
46134  ac_status=$?
46135  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46136  test $ac_status = 0; }; then
46137  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
46138		      test "x$?" != "x0" && pkg_failed=yes
46139else
46140  pkg_failed=yes
46141fi
46142 else
46143    pkg_failed=untried
46144fi
46145
46146
46147
46148if test $pkg_failed = yes; then
46149   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46150$as_echo "no" >&6; }
46151
46152if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46153        _pkg_short_errors_supported=yes
46154else
46155        _pkg_short_errors_supported=no
46156fi
46157        if test $_pkg_short_errors_supported = yes; then
46158	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
46159        else
46160	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
46161        fi
46162	# Put the nasty error message in config.log where it belongs
46163	echo "$LUA_PKG_ERRORS" >&5
46164
46165
46166
46167pkg_failed=no
46168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
46169$as_echo_n "checking for LUA... " >&6; }
46170
46171if test -n "$LUA_CFLAGS"; then
46172    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
46173 elif test -n "$PKG_CONFIG"; then
46174    if test -n "$PKG_CONFIG" && \
46175    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
46176  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
46177  ac_status=$?
46178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46179  test $ac_status = 0; }; then
46180  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
46181		      test "x$?" != "x0" && pkg_failed=yes
46182else
46183  pkg_failed=yes
46184fi
46185 else
46186    pkg_failed=untried
46187fi
46188if test -n "$LUA_LIBS"; then
46189    pkg_cv_LUA_LIBS="$LUA_LIBS"
46190 elif test -n "$PKG_CONFIG"; then
46191    if test -n "$PKG_CONFIG" && \
46192    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
46193  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
46194  ac_status=$?
46195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46196  test $ac_status = 0; }; then
46197  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
46198		      test "x$?" != "x0" && pkg_failed=yes
46199else
46200  pkg_failed=yes
46201fi
46202 else
46203    pkg_failed=untried
46204fi
46205
46206
46207
46208if test $pkg_failed = yes; then
46209   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46210$as_echo "no" >&6; }
46211
46212if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46213        _pkg_short_errors_supported=yes
46214else
46215        _pkg_short_errors_supported=no
46216fi
46217        if test $_pkg_short_errors_supported = yes; then
46218	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
46219        else
46220	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
46221        fi
46222	# Put the nasty error message in config.log where it belongs
46223	echo "$LUA_PKG_ERRORS" >&5
46224
46225	with_liblua="no (pkg-config cannot find liblua)"
46226
46227elif test $pkg_failed = untried; then
46228     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46229$as_echo "no" >&6; }
46230	with_liblua="no (pkg-config cannot find liblua)"
46231
46232else
46233	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
46234	LUA_LIBS=$pkg_cv_LUA_LIBS
46235        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46236$as_echo "yes" >&6; }
46237	with_liblua="yes"
46238fi
46239
46240
46241elif test $pkg_failed = untried; then
46242     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46243$as_echo "no" >&6; }
46244
46245
46246pkg_failed=no
46247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
46248$as_echo_n "checking for LUA... " >&6; }
46249
46250if test -n "$LUA_CFLAGS"; then
46251    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
46252 elif test -n "$PKG_CONFIG"; then
46253    if test -n "$PKG_CONFIG" && \
46254    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
46255  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
46256  ac_status=$?
46257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46258  test $ac_status = 0; }; then
46259  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
46260		      test "x$?" != "x0" && pkg_failed=yes
46261else
46262  pkg_failed=yes
46263fi
46264 else
46265    pkg_failed=untried
46266fi
46267if test -n "$LUA_LIBS"; then
46268    pkg_cv_LUA_LIBS="$LUA_LIBS"
46269 elif test -n "$PKG_CONFIG"; then
46270    if test -n "$PKG_CONFIG" && \
46271    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
46272  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
46273  ac_status=$?
46274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46275  test $ac_status = 0; }; then
46276  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
46277		      test "x$?" != "x0" && pkg_failed=yes
46278else
46279  pkg_failed=yes
46280fi
46281 else
46282    pkg_failed=untried
46283fi
46284
46285
46286
46287if test $pkg_failed = yes; then
46288   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46289$as_echo "no" >&6; }
46290
46291if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46292        _pkg_short_errors_supported=yes
46293else
46294        _pkg_short_errors_supported=no
46295fi
46296        if test $_pkg_short_errors_supported = yes; then
46297	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
46298        else
46299	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
46300        fi
46301	# Put the nasty error message in config.log where it belongs
46302	echo "$LUA_PKG_ERRORS" >&5
46303
46304	with_liblua="no (pkg-config cannot find liblua)"
46305
46306elif test $pkg_failed = untried; then
46307     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46308$as_echo "no" >&6; }
46309	with_liblua="no (pkg-config cannot find liblua)"
46310
46311else
46312	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
46313	LUA_LIBS=$pkg_cv_LUA_LIBS
46314        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46315$as_echo "yes" >&6; }
46316	with_liblua="yes"
46317fi
46318
46319
46320else
46321	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
46322	LUA_LIBS=$pkg_cv_LUA_LIBS
46323        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46324$as_echo "yes" >&6; }
46325	with_liblua="yes"
46326fi
46327
46328
46329else
46330	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
46331	LUA_LIBS=$pkg_cv_LUA_LIBS
46332        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46333$as_echo "yes" >&6; }
46334	with_liblua="yes"
46335fi
46336
46337
46338else
46339	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
46340	LUA_LIBS=$pkg_cv_LUA_LIBS
46341        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46342$as_echo "yes" >&6; }
46343	with_liblua="yes"
46344fi
46345
46346
46347elif test $pkg_failed = untried; then
46348     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46349$as_echo "no" >&6; }
46350
46351
46352pkg_failed=no
46353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
46354$as_echo_n "checking for LUA... " >&6; }
46355
46356if test -n "$LUA_CFLAGS"; then
46357    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
46358 elif test -n "$PKG_CONFIG"; then
46359    if test -n "$PKG_CONFIG" && \
46360    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
46361  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
46362  ac_status=$?
46363  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46364  test $ac_status = 0; }; then
46365  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
46366		      test "x$?" != "x0" && pkg_failed=yes
46367else
46368  pkg_failed=yes
46369fi
46370 else
46371    pkg_failed=untried
46372fi
46373if test -n "$LUA_LIBS"; then
46374    pkg_cv_LUA_LIBS="$LUA_LIBS"
46375 elif test -n "$PKG_CONFIG"; then
46376    if test -n "$PKG_CONFIG" && \
46377    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
46378  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
46379  ac_status=$?
46380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46381  test $ac_status = 0; }; then
46382  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
46383		      test "x$?" != "x0" && pkg_failed=yes
46384else
46385  pkg_failed=yes
46386fi
46387 else
46388    pkg_failed=untried
46389fi
46390
46391
46392
46393if test $pkg_failed = yes; then
46394   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46395$as_echo "no" >&6; }
46396
46397if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46398        _pkg_short_errors_supported=yes
46399else
46400        _pkg_short_errors_supported=no
46401fi
46402        if test $_pkg_short_errors_supported = yes; then
46403	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
46404        else
46405	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
46406        fi
46407	# Put the nasty error message in config.log where it belongs
46408	echo "$LUA_PKG_ERRORS" >&5
46409
46410
46411
46412pkg_failed=no
46413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
46414$as_echo_n "checking for LUA... " >&6; }
46415
46416if test -n "$LUA_CFLAGS"; then
46417    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
46418 elif test -n "$PKG_CONFIG"; then
46419    if test -n "$PKG_CONFIG" && \
46420    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
46421  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
46422  ac_status=$?
46423  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46424  test $ac_status = 0; }; then
46425  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
46426		      test "x$?" != "x0" && pkg_failed=yes
46427else
46428  pkg_failed=yes
46429fi
46430 else
46431    pkg_failed=untried
46432fi
46433if test -n "$LUA_LIBS"; then
46434    pkg_cv_LUA_LIBS="$LUA_LIBS"
46435 elif test -n "$PKG_CONFIG"; then
46436    if test -n "$PKG_CONFIG" && \
46437    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
46438  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
46439  ac_status=$?
46440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46441  test $ac_status = 0; }; then
46442  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
46443		      test "x$?" != "x0" && pkg_failed=yes
46444else
46445  pkg_failed=yes
46446fi
46447 else
46448    pkg_failed=untried
46449fi
46450
46451
46452
46453if test $pkg_failed = yes; then
46454   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46455$as_echo "no" >&6; }
46456
46457if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46458        _pkg_short_errors_supported=yes
46459else
46460        _pkg_short_errors_supported=no
46461fi
46462        if test $_pkg_short_errors_supported = yes; then
46463	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
46464        else
46465	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
46466        fi
46467	# Put the nasty error message in config.log where it belongs
46468	echo "$LUA_PKG_ERRORS" >&5
46469
46470
46471
46472pkg_failed=no
46473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
46474$as_echo_n "checking for LUA... " >&6; }
46475
46476if test -n "$LUA_CFLAGS"; then
46477    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
46478 elif test -n "$PKG_CONFIG"; then
46479    if test -n "$PKG_CONFIG" && \
46480    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
46481  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
46482  ac_status=$?
46483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46484  test $ac_status = 0; }; then
46485  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
46486		      test "x$?" != "x0" && pkg_failed=yes
46487else
46488  pkg_failed=yes
46489fi
46490 else
46491    pkg_failed=untried
46492fi
46493if test -n "$LUA_LIBS"; then
46494    pkg_cv_LUA_LIBS="$LUA_LIBS"
46495 elif test -n "$PKG_CONFIG"; then
46496    if test -n "$PKG_CONFIG" && \
46497    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
46498  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
46499  ac_status=$?
46500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46501  test $ac_status = 0; }; then
46502  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
46503		      test "x$?" != "x0" && pkg_failed=yes
46504else
46505  pkg_failed=yes
46506fi
46507 else
46508    pkg_failed=untried
46509fi
46510
46511
46512
46513if test $pkg_failed = yes; then
46514   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46515$as_echo "no" >&6; }
46516
46517if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46518        _pkg_short_errors_supported=yes
46519else
46520        _pkg_short_errors_supported=no
46521fi
46522        if test $_pkg_short_errors_supported = yes; then
46523	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
46524        else
46525	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
46526        fi
46527	# Put the nasty error message in config.log where it belongs
46528	echo "$LUA_PKG_ERRORS" >&5
46529
46530
46531
46532pkg_failed=no
46533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
46534$as_echo_n "checking for LUA... " >&6; }
46535
46536if test -n "$LUA_CFLAGS"; then
46537    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
46538 elif test -n "$PKG_CONFIG"; then
46539    if test -n "$PKG_CONFIG" && \
46540    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
46541  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
46542  ac_status=$?
46543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46544  test $ac_status = 0; }; then
46545  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
46546		      test "x$?" != "x0" && pkg_failed=yes
46547else
46548  pkg_failed=yes
46549fi
46550 else
46551    pkg_failed=untried
46552fi
46553if test -n "$LUA_LIBS"; then
46554    pkg_cv_LUA_LIBS="$LUA_LIBS"
46555 elif test -n "$PKG_CONFIG"; then
46556    if test -n "$PKG_CONFIG" && \
46557    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
46558  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
46559  ac_status=$?
46560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46561  test $ac_status = 0; }; then
46562  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
46563		      test "x$?" != "x0" && pkg_failed=yes
46564else
46565  pkg_failed=yes
46566fi
46567 else
46568    pkg_failed=untried
46569fi
46570
46571
46572
46573if test $pkg_failed = yes; then
46574   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46575$as_echo "no" >&6; }
46576
46577if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46578        _pkg_short_errors_supported=yes
46579else
46580        _pkg_short_errors_supported=no
46581fi
46582        if test $_pkg_short_errors_supported = yes; then
46583	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
46584        else
46585	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
46586        fi
46587	# Put the nasty error message in config.log where it belongs
46588	echo "$LUA_PKG_ERRORS" >&5
46589
46590	with_liblua="no (pkg-config cannot find liblua)"
46591
46592elif test $pkg_failed = untried; then
46593     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46594$as_echo "no" >&6; }
46595	with_liblua="no (pkg-config cannot find liblua)"
46596
46597else
46598	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
46599	LUA_LIBS=$pkg_cv_LUA_LIBS
46600        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46601$as_echo "yes" >&6; }
46602	with_liblua="yes"
46603fi
46604
46605
46606elif test $pkg_failed = untried; then
46607     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46608$as_echo "no" >&6; }
46609
46610
46611pkg_failed=no
46612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
46613$as_echo_n "checking for LUA... " >&6; }
46614
46615if test -n "$LUA_CFLAGS"; then
46616    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
46617 elif test -n "$PKG_CONFIG"; then
46618    if test -n "$PKG_CONFIG" && \
46619    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
46620  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
46621  ac_status=$?
46622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46623  test $ac_status = 0; }; then
46624  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
46625		      test "x$?" != "x0" && pkg_failed=yes
46626else
46627  pkg_failed=yes
46628fi
46629 else
46630    pkg_failed=untried
46631fi
46632if test -n "$LUA_LIBS"; then
46633    pkg_cv_LUA_LIBS="$LUA_LIBS"
46634 elif test -n "$PKG_CONFIG"; then
46635    if test -n "$PKG_CONFIG" && \
46636    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
46637  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
46638  ac_status=$?
46639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46640  test $ac_status = 0; }; then
46641  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
46642		      test "x$?" != "x0" && pkg_failed=yes
46643else
46644  pkg_failed=yes
46645fi
46646 else
46647    pkg_failed=untried
46648fi
46649
46650
46651
46652if test $pkg_failed = yes; then
46653   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46654$as_echo "no" >&6; }
46655
46656if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46657        _pkg_short_errors_supported=yes
46658else
46659        _pkg_short_errors_supported=no
46660fi
46661        if test $_pkg_short_errors_supported = yes; then
46662	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
46663        else
46664	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
46665        fi
46666	# Put the nasty error message in config.log where it belongs
46667	echo "$LUA_PKG_ERRORS" >&5
46668
46669	with_liblua="no (pkg-config cannot find liblua)"
46670
46671elif test $pkg_failed = untried; then
46672     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46673$as_echo "no" >&6; }
46674	with_liblua="no (pkg-config cannot find liblua)"
46675
46676else
46677	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
46678	LUA_LIBS=$pkg_cv_LUA_LIBS
46679        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46680$as_echo "yes" >&6; }
46681	with_liblua="yes"
46682fi
46683
46684
46685else
46686	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
46687	LUA_LIBS=$pkg_cv_LUA_LIBS
46688        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46689$as_echo "yes" >&6; }
46690	with_liblua="yes"
46691fi
46692
46693
46694elif test $pkg_failed = untried; then
46695     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46696$as_echo "no" >&6; }
46697
46698
46699pkg_failed=no
46700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
46701$as_echo_n "checking for LUA... " >&6; }
46702
46703if test -n "$LUA_CFLAGS"; then
46704    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
46705 elif test -n "$PKG_CONFIG"; then
46706    if test -n "$PKG_CONFIG" && \
46707    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
46708  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
46709  ac_status=$?
46710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46711  test $ac_status = 0; }; then
46712  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
46713		      test "x$?" != "x0" && pkg_failed=yes
46714else
46715  pkg_failed=yes
46716fi
46717 else
46718    pkg_failed=untried
46719fi
46720if test -n "$LUA_LIBS"; then
46721    pkg_cv_LUA_LIBS="$LUA_LIBS"
46722 elif test -n "$PKG_CONFIG"; then
46723    if test -n "$PKG_CONFIG" && \
46724    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
46725  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
46726  ac_status=$?
46727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46728  test $ac_status = 0; }; then
46729  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
46730		      test "x$?" != "x0" && pkg_failed=yes
46731else
46732  pkg_failed=yes
46733fi
46734 else
46735    pkg_failed=untried
46736fi
46737
46738
46739
46740if test $pkg_failed = yes; then
46741   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46742$as_echo "no" >&6; }
46743
46744if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46745        _pkg_short_errors_supported=yes
46746else
46747        _pkg_short_errors_supported=no
46748fi
46749        if test $_pkg_short_errors_supported = yes; then
46750	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
46751        else
46752	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
46753        fi
46754	# Put the nasty error message in config.log where it belongs
46755	echo "$LUA_PKG_ERRORS" >&5
46756
46757
46758
46759pkg_failed=no
46760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
46761$as_echo_n "checking for LUA... " >&6; }
46762
46763if test -n "$LUA_CFLAGS"; then
46764    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
46765 elif test -n "$PKG_CONFIG"; then
46766    if test -n "$PKG_CONFIG" && \
46767    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
46768  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
46769  ac_status=$?
46770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46771  test $ac_status = 0; }; then
46772  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
46773		      test "x$?" != "x0" && pkg_failed=yes
46774else
46775  pkg_failed=yes
46776fi
46777 else
46778    pkg_failed=untried
46779fi
46780if test -n "$LUA_LIBS"; then
46781    pkg_cv_LUA_LIBS="$LUA_LIBS"
46782 elif test -n "$PKG_CONFIG"; then
46783    if test -n "$PKG_CONFIG" && \
46784    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
46785  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
46786  ac_status=$?
46787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46788  test $ac_status = 0; }; then
46789  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
46790		      test "x$?" != "x0" && pkg_failed=yes
46791else
46792  pkg_failed=yes
46793fi
46794 else
46795    pkg_failed=untried
46796fi
46797
46798
46799
46800if test $pkg_failed = yes; then
46801   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46802$as_echo "no" >&6; }
46803
46804if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46805        _pkg_short_errors_supported=yes
46806else
46807        _pkg_short_errors_supported=no
46808fi
46809        if test $_pkg_short_errors_supported = yes; then
46810	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
46811        else
46812	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
46813        fi
46814	# Put the nasty error message in config.log where it belongs
46815	echo "$LUA_PKG_ERRORS" >&5
46816
46817	with_liblua="no (pkg-config cannot find liblua)"
46818
46819elif test $pkg_failed = untried; then
46820     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46821$as_echo "no" >&6; }
46822	with_liblua="no (pkg-config cannot find liblua)"
46823
46824else
46825	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
46826	LUA_LIBS=$pkg_cv_LUA_LIBS
46827        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46828$as_echo "yes" >&6; }
46829	with_liblua="yes"
46830fi
46831
46832
46833elif test $pkg_failed = untried; then
46834     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46835$as_echo "no" >&6; }
46836
46837
46838pkg_failed=no
46839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
46840$as_echo_n "checking for LUA... " >&6; }
46841
46842if test -n "$LUA_CFLAGS"; then
46843    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
46844 elif test -n "$PKG_CONFIG"; then
46845    if test -n "$PKG_CONFIG" && \
46846    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
46847  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
46848  ac_status=$?
46849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46850  test $ac_status = 0; }; then
46851  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
46852		      test "x$?" != "x0" && pkg_failed=yes
46853else
46854  pkg_failed=yes
46855fi
46856 else
46857    pkg_failed=untried
46858fi
46859if test -n "$LUA_LIBS"; then
46860    pkg_cv_LUA_LIBS="$LUA_LIBS"
46861 elif test -n "$PKG_CONFIG"; then
46862    if test -n "$PKG_CONFIG" && \
46863    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
46864  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
46865  ac_status=$?
46866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46867  test $ac_status = 0; }; then
46868  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
46869		      test "x$?" != "x0" && pkg_failed=yes
46870else
46871  pkg_failed=yes
46872fi
46873 else
46874    pkg_failed=untried
46875fi
46876
46877
46878
46879if test $pkg_failed = yes; then
46880   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46881$as_echo "no" >&6; }
46882
46883if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46884        _pkg_short_errors_supported=yes
46885else
46886        _pkg_short_errors_supported=no
46887fi
46888        if test $_pkg_short_errors_supported = yes; then
46889	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
46890        else
46891	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
46892        fi
46893	# Put the nasty error message in config.log where it belongs
46894	echo "$LUA_PKG_ERRORS" >&5
46895
46896	with_liblua="no (pkg-config cannot find liblua)"
46897
46898elif test $pkg_failed = untried; then
46899     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46900$as_echo "no" >&6; }
46901	with_liblua="no (pkg-config cannot find liblua)"
46902
46903else
46904	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
46905	LUA_LIBS=$pkg_cv_LUA_LIBS
46906        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46907$as_echo "yes" >&6; }
46908	with_liblua="yes"
46909fi
46910
46911
46912else
46913	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
46914	LUA_LIBS=$pkg_cv_LUA_LIBS
46915        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46916$as_echo "yes" >&6; }
46917	with_liblua="yes"
46918fi
46919
46920
46921else
46922	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
46923	LUA_LIBS=$pkg_cv_LUA_LIBS
46924        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46925$as_echo "yes" >&6; }
46926	with_liblua="yes"
46927fi
46928
46929
46930elif test $pkg_failed = untried; then
46931     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46932$as_echo "no" >&6; }
46933
46934
46935pkg_failed=no
46936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
46937$as_echo_n "checking for LUA... " >&6; }
46938
46939if test -n "$LUA_CFLAGS"; then
46940    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
46941 elif test -n "$PKG_CONFIG"; then
46942    if test -n "$PKG_CONFIG" && \
46943    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
46944  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
46945  ac_status=$?
46946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46947  test $ac_status = 0; }; then
46948  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
46949		      test "x$?" != "x0" && pkg_failed=yes
46950else
46951  pkg_failed=yes
46952fi
46953 else
46954    pkg_failed=untried
46955fi
46956if test -n "$LUA_LIBS"; then
46957    pkg_cv_LUA_LIBS="$LUA_LIBS"
46958 elif test -n "$PKG_CONFIG"; then
46959    if test -n "$PKG_CONFIG" && \
46960    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
46961  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
46962  ac_status=$?
46963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46964  test $ac_status = 0; }; then
46965  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
46966		      test "x$?" != "x0" && pkg_failed=yes
46967else
46968  pkg_failed=yes
46969fi
46970 else
46971    pkg_failed=untried
46972fi
46973
46974
46975
46976if test $pkg_failed = yes; then
46977   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46978$as_echo "no" >&6; }
46979
46980if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46981        _pkg_short_errors_supported=yes
46982else
46983        _pkg_short_errors_supported=no
46984fi
46985        if test $_pkg_short_errors_supported = yes; then
46986	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
46987        else
46988	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
46989        fi
46990	# Put the nasty error message in config.log where it belongs
46991	echo "$LUA_PKG_ERRORS" >&5
46992
46993
46994
46995pkg_failed=no
46996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
46997$as_echo_n "checking for LUA... " >&6; }
46998
46999if test -n "$LUA_CFLAGS"; then
47000    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
47001 elif test -n "$PKG_CONFIG"; then
47002    if test -n "$PKG_CONFIG" && \
47003    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
47004  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
47005  ac_status=$?
47006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47007  test $ac_status = 0; }; then
47008  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
47009		      test "x$?" != "x0" && pkg_failed=yes
47010else
47011  pkg_failed=yes
47012fi
47013 else
47014    pkg_failed=untried
47015fi
47016if test -n "$LUA_LIBS"; then
47017    pkg_cv_LUA_LIBS="$LUA_LIBS"
47018 elif test -n "$PKG_CONFIG"; then
47019    if test -n "$PKG_CONFIG" && \
47020    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
47021  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
47022  ac_status=$?
47023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47024  test $ac_status = 0; }; then
47025  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
47026		      test "x$?" != "x0" && pkg_failed=yes
47027else
47028  pkg_failed=yes
47029fi
47030 else
47031    pkg_failed=untried
47032fi
47033
47034
47035
47036if test $pkg_failed = yes; then
47037   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47038$as_echo "no" >&6; }
47039
47040if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47041        _pkg_short_errors_supported=yes
47042else
47043        _pkg_short_errors_supported=no
47044fi
47045        if test $_pkg_short_errors_supported = yes; then
47046	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
47047        else
47048	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
47049        fi
47050	# Put the nasty error message in config.log where it belongs
47051	echo "$LUA_PKG_ERRORS" >&5
47052
47053
47054
47055pkg_failed=no
47056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
47057$as_echo_n "checking for LUA... " >&6; }
47058
47059if test -n "$LUA_CFLAGS"; then
47060    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
47061 elif test -n "$PKG_CONFIG"; then
47062    if test -n "$PKG_CONFIG" && \
47063    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
47064  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
47065  ac_status=$?
47066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47067  test $ac_status = 0; }; then
47068  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
47069		      test "x$?" != "x0" && pkg_failed=yes
47070else
47071  pkg_failed=yes
47072fi
47073 else
47074    pkg_failed=untried
47075fi
47076if test -n "$LUA_LIBS"; then
47077    pkg_cv_LUA_LIBS="$LUA_LIBS"
47078 elif test -n "$PKG_CONFIG"; then
47079    if test -n "$PKG_CONFIG" && \
47080    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
47081  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
47082  ac_status=$?
47083  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47084  test $ac_status = 0; }; then
47085  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
47086		      test "x$?" != "x0" && pkg_failed=yes
47087else
47088  pkg_failed=yes
47089fi
47090 else
47091    pkg_failed=untried
47092fi
47093
47094
47095
47096if test $pkg_failed = yes; then
47097   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47098$as_echo "no" >&6; }
47099
47100if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47101        _pkg_short_errors_supported=yes
47102else
47103        _pkg_short_errors_supported=no
47104fi
47105        if test $_pkg_short_errors_supported = yes; then
47106	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
47107        else
47108	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
47109        fi
47110	# Put the nasty error message in config.log where it belongs
47111	echo "$LUA_PKG_ERRORS" >&5
47112
47113	with_liblua="no (pkg-config cannot find liblua)"
47114
47115elif test $pkg_failed = untried; then
47116     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47117$as_echo "no" >&6; }
47118	with_liblua="no (pkg-config cannot find liblua)"
47119
47120else
47121	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
47122	LUA_LIBS=$pkg_cv_LUA_LIBS
47123        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47124$as_echo "yes" >&6; }
47125	with_liblua="yes"
47126fi
47127
47128
47129elif test $pkg_failed = untried; then
47130     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47131$as_echo "no" >&6; }
47132
47133
47134pkg_failed=no
47135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
47136$as_echo_n "checking for LUA... " >&6; }
47137
47138if test -n "$LUA_CFLAGS"; then
47139    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
47140 elif test -n "$PKG_CONFIG"; then
47141    if test -n "$PKG_CONFIG" && \
47142    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
47143  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
47144  ac_status=$?
47145  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47146  test $ac_status = 0; }; then
47147  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
47148		      test "x$?" != "x0" && pkg_failed=yes
47149else
47150  pkg_failed=yes
47151fi
47152 else
47153    pkg_failed=untried
47154fi
47155if test -n "$LUA_LIBS"; then
47156    pkg_cv_LUA_LIBS="$LUA_LIBS"
47157 elif test -n "$PKG_CONFIG"; then
47158    if test -n "$PKG_CONFIG" && \
47159    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
47160  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
47161  ac_status=$?
47162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47163  test $ac_status = 0; }; then
47164  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
47165		      test "x$?" != "x0" && pkg_failed=yes
47166else
47167  pkg_failed=yes
47168fi
47169 else
47170    pkg_failed=untried
47171fi
47172
47173
47174
47175if test $pkg_failed = yes; then
47176   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47177$as_echo "no" >&6; }
47178
47179if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47180        _pkg_short_errors_supported=yes
47181else
47182        _pkg_short_errors_supported=no
47183fi
47184        if test $_pkg_short_errors_supported = yes; then
47185	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
47186        else
47187	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
47188        fi
47189	# Put the nasty error message in config.log where it belongs
47190	echo "$LUA_PKG_ERRORS" >&5
47191
47192	with_liblua="no (pkg-config cannot find liblua)"
47193
47194elif test $pkg_failed = untried; then
47195     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47196$as_echo "no" >&6; }
47197	with_liblua="no (pkg-config cannot find liblua)"
47198
47199else
47200	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
47201	LUA_LIBS=$pkg_cv_LUA_LIBS
47202        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47203$as_echo "yes" >&6; }
47204	with_liblua="yes"
47205fi
47206
47207
47208else
47209	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
47210	LUA_LIBS=$pkg_cv_LUA_LIBS
47211        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47212$as_echo "yes" >&6; }
47213	with_liblua="yes"
47214fi
47215
47216
47217elif test $pkg_failed = untried; then
47218     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47219$as_echo "no" >&6; }
47220
47221
47222pkg_failed=no
47223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
47224$as_echo_n "checking for LUA... " >&6; }
47225
47226if test -n "$LUA_CFLAGS"; then
47227    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
47228 elif test -n "$PKG_CONFIG"; then
47229    if test -n "$PKG_CONFIG" && \
47230    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
47231  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
47232  ac_status=$?
47233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47234  test $ac_status = 0; }; then
47235  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
47236		      test "x$?" != "x0" && pkg_failed=yes
47237else
47238  pkg_failed=yes
47239fi
47240 else
47241    pkg_failed=untried
47242fi
47243if test -n "$LUA_LIBS"; then
47244    pkg_cv_LUA_LIBS="$LUA_LIBS"
47245 elif test -n "$PKG_CONFIG"; then
47246    if test -n "$PKG_CONFIG" && \
47247    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
47248  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
47249  ac_status=$?
47250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47251  test $ac_status = 0; }; then
47252  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
47253		      test "x$?" != "x0" && pkg_failed=yes
47254else
47255  pkg_failed=yes
47256fi
47257 else
47258    pkg_failed=untried
47259fi
47260
47261
47262
47263if test $pkg_failed = yes; then
47264   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47265$as_echo "no" >&6; }
47266
47267if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47268        _pkg_short_errors_supported=yes
47269else
47270        _pkg_short_errors_supported=no
47271fi
47272        if test $_pkg_short_errors_supported = yes; then
47273	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
47274        else
47275	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
47276        fi
47277	# Put the nasty error message in config.log where it belongs
47278	echo "$LUA_PKG_ERRORS" >&5
47279
47280
47281
47282pkg_failed=no
47283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
47284$as_echo_n "checking for LUA... " >&6; }
47285
47286if test -n "$LUA_CFLAGS"; then
47287    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
47288 elif test -n "$PKG_CONFIG"; then
47289    if test -n "$PKG_CONFIG" && \
47290    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
47291  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
47292  ac_status=$?
47293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47294  test $ac_status = 0; }; then
47295  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
47296		      test "x$?" != "x0" && pkg_failed=yes
47297else
47298  pkg_failed=yes
47299fi
47300 else
47301    pkg_failed=untried
47302fi
47303if test -n "$LUA_LIBS"; then
47304    pkg_cv_LUA_LIBS="$LUA_LIBS"
47305 elif test -n "$PKG_CONFIG"; then
47306    if test -n "$PKG_CONFIG" && \
47307    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
47308  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
47309  ac_status=$?
47310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47311  test $ac_status = 0; }; then
47312  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
47313		      test "x$?" != "x0" && pkg_failed=yes
47314else
47315  pkg_failed=yes
47316fi
47317 else
47318    pkg_failed=untried
47319fi
47320
47321
47322
47323if test $pkg_failed = yes; then
47324   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47325$as_echo "no" >&6; }
47326
47327if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47328        _pkg_short_errors_supported=yes
47329else
47330        _pkg_short_errors_supported=no
47331fi
47332        if test $_pkg_short_errors_supported = yes; then
47333	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
47334        else
47335	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
47336        fi
47337	# Put the nasty error message in config.log where it belongs
47338	echo "$LUA_PKG_ERRORS" >&5
47339
47340	with_liblua="no (pkg-config cannot find liblua)"
47341
47342elif test $pkg_failed = untried; then
47343     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47344$as_echo "no" >&6; }
47345	with_liblua="no (pkg-config cannot find liblua)"
47346
47347else
47348	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
47349	LUA_LIBS=$pkg_cv_LUA_LIBS
47350        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47351$as_echo "yes" >&6; }
47352	with_liblua="yes"
47353fi
47354
47355
47356elif test $pkg_failed = untried; then
47357     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47358$as_echo "no" >&6; }
47359
47360
47361pkg_failed=no
47362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
47363$as_echo_n "checking for LUA... " >&6; }
47364
47365if test -n "$LUA_CFLAGS"; then
47366    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
47367 elif test -n "$PKG_CONFIG"; then
47368    if test -n "$PKG_CONFIG" && \
47369    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
47370  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
47371  ac_status=$?
47372  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47373  test $ac_status = 0; }; then
47374  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
47375		      test "x$?" != "x0" && pkg_failed=yes
47376else
47377  pkg_failed=yes
47378fi
47379 else
47380    pkg_failed=untried
47381fi
47382if test -n "$LUA_LIBS"; then
47383    pkg_cv_LUA_LIBS="$LUA_LIBS"
47384 elif test -n "$PKG_CONFIG"; then
47385    if test -n "$PKG_CONFIG" && \
47386    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
47387  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
47388  ac_status=$?
47389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47390  test $ac_status = 0; }; then
47391  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
47392		      test "x$?" != "x0" && pkg_failed=yes
47393else
47394  pkg_failed=yes
47395fi
47396 else
47397    pkg_failed=untried
47398fi
47399
47400
47401
47402if test $pkg_failed = yes; then
47403   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47404$as_echo "no" >&6; }
47405
47406if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47407        _pkg_short_errors_supported=yes
47408else
47409        _pkg_short_errors_supported=no
47410fi
47411        if test $_pkg_short_errors_supported = yes; then
47412	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
47413        else
47414	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
47415        fi
47416	# Put the nasty error message in config.log where it belongs
47417	echo "$LUA_PKG_ERRORS" >&5
47418
47419	with_liblua="no (pkg-config cannot find liblua)"
47420
47421elif test $pkg_failed = untried; then
47422     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47423$as_echo "no" >&6; }
47424	with_liblua="no (pkg-config cannot find liblua)"
47425
47426else
47427	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
47428	LUA_LIBS=$pkg_cv_LUA_LIBS
47429        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47430$as_echo "yes" >&6; }
47431	with_liblua="yes"
47432fi
47433
47434
47435else
47436	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
47437	LUA_LIBS=$pkg_cv_LUA_LIBS
47438        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47439$as_echo "yes" >&6; }
47440	with_liblua="yes"
47441fi
47442
47443
47444else
47445	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
47446	LUA_LIBS=$pkg_cv_LUA_LIBS
47447        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47448$as_echo "yes" >&6; }
47449	with_liblua="yes"
47450fi
47451
47452
47453else
47454	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
47455	LUA_LIBS=$pkg_cv_LUA_LIBS
47456        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47457$as_echo "yes" >&6; }
47458	with_liblua="yes"
47459fi
47460
47461
47462else
47463	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
47464	LUA_LIBS=$pkg_cv_LUA_LIBS
47465        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47466$as_echo "yes" >&6; }
47467	with_liblua="yes"
47468fi
47469
47470
47471elif test $pkg_failed = untried; then
47472     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47473$as_echo "no" >&6; }
47474
47475
47476pkg_failed=no
47477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
47478$as_echo_n "checking for LUA... " >&6; }
47479
47480if test -n "$LUA_CFLAGS"; then
47481    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
47482 elif test -n "$PKG_CONFIG"; then
47483    if test -n "$PKG_CONFIG" && \
47484    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
47485  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
47486  ac_status=$?
47487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47488  test $ac_status = 0; }; then
47489  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
47490		      test "x$?" != "x0" && pkg_failed=yes
47491else
47492  pkg_failed=yes
47493fi
47494 else
47495    pkg_failed=untried
47496fi
47497if test -n "$LUA_LIBS"; then
47498    pkg_cv_LUA_LIBS="$LUA_LIBS"
47499 elif test -n "$PKG_CONFIG"; then
47500    if test -n "$PKG_CONFIG" && \
47501    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
47502  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
47503  ac_status=$?
47504  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47505  test $ac_status = 0; }; then
47506  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
47507		      test "x$?" != "x0" && pkg_failed=yes
47508else
47509  pkg_failed=yes
47510fi
47511 else
47512    pkg_failed=untried
47513fi
47514
47515
47516
47517if test $pkg_failed = yes; then
47518   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47519$as_echo "no" >&6; }
47520
47521if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47522        _pkg_short_errors_supported=yes
47523else
47524        _pkg_short_errors_supported=no
47525fi
47526        if test $_pkg_short_errors_supported = yes; then
47527	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
47528        else
47529	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
47530        fi
47531	# Put the nasty error message in config.log where it belongs
47532	echo "$LUA_PKG_ERRORS" >&5
47533
47534
47535
47536pkg_failed=no
47537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
47538$as_echo_n "checking for LUA... " >&6; }
47539
47540if test -n "$LUA_CFLAGS"; then
47541    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
47542 elif test -n "$PKG_CONFIG"; then
47543    if test -n "$PKG_CONFIG" && \
47544    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
47545  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
47546  ac_status=$?
47547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47548  test $ac_status = 0; }; then
47549  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
47550		      test "x$?" != "x0" && pkg_failed=yes
47551else
47552  pkg_failed=yes
47553fi
47554 else
47555    pkg_failed=untried
47556fi
47557if test -n "$LUA_LIBS"; then
47558    pkg_cv_LUA_LIBS="$LUA_LIBS"
47559 elif test -n "$PKG_CONFIG"; then
47560    if test -n "$PKG_CONFIG" && \
47561    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
47562  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
47563  ac_status=$?
47564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47565  test $ac_status = 0; }; then
47566  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
47567		      test "x$?" != "x0" && pkg_failed=yes
47568else
47569  pkg_failed=yes
47570fi
47571 else
47572    pkg_failed=untried
47573fi
47574
47575
47576
47577if test $pkg_failed = yes; then
47578   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47579$as_echo "no" >&6; }
47580
47581if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47582        _pkg_short_errors_supported=yes
47583else
47584        _pkg_short_errors_supported=no
47585fi
47586        if test $_pkg_short_errors_supported = yes; then
47587	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
47588        else
47589	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
47590        fi
47591	# Put the nasty error message in config.log where it belongs
47592	echo "$LUA_PKG_ERRORS" >&5
47593
47594
47595
47596pkg_failed=no
47597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
47598$as_echo_n "checking for LUA... " >&6; }
47599
47600if test -n "$LUA_CFLAGS"; then
47601    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
47602 elif test -n "$PKG_CONFIG"; then
47603    if test -n "$PKG_CONFIG" && \
47604    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
47605  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
47606  ac_status=$?
47607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47608  test $ac_status = 0; }; then
47609  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
47610		      test "x$?" != "x0" && pkg_failed=yes
47611else
47612  pkg_failed=yes
47613fi
47614 else
47615    pkg_failed=untried
47616fi
47617if test -n "$LUA_LIBS"; then
47618    pkg_cv_LUA_LIBS="$LUA_LIBS"
47619 elif test -n "$PKG_CONFIG"; then
47620    if test -n "$PKG_CONFIG" && \
47621    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
47622  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
47623  ac_status=$?
47624  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47625  test $ac_status = 0; }; then
47626  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
47627		      test "x$?" != "x0" && pkg_failed=yes
47628else
47629  pkg_failed=yes
47630fi
47631 else
47632    pkg_failed=untried
47633fi
47634
47635
47636
47637if test $pkg_failed = yes; then
47638   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47639$as_echo "no" >&6; }
47640
47641if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47642        _pkg_short_errors_supported=yes
47643else
47644        _pkg_short_errors_supported=no
47645fi
47646        if test $_pkg_short_errors_supported = yes; then
47647	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
47648        else
47649	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
47650        fi
47651	# Put the nasty error message in config.log where it belongs
47652	echo "$LUA_PKG_ERRORS" >&5
47653
47654
47655
47656pkg_failed=no
47657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
47658$as_echo_n "checking for LUA... " >&6; }
47659
47660if test -n "$LUA_CFLAGS"; then
47661    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
47662 elif test -n "$PKG_CONFIG"; then
47663    if test -n "$PKG_CONFIG" && \
47664    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
47665  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
47666  ac_status=$?
47667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47668  test $ac_status = 0; }; then
47669  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
47670		      test "x$?" != "x0" && pkg_failed=yes
47671else
47672  pkg_failed=yes
47673fi
47674 else
47675    pkg_failed=untried
47676fi
47677if test -n "$LUA_LIBS"; then
47678    pkg_cv_LUA_LIBS="$LUA_LIBS"
47679 elif test -n "$PKG_CONFIG"; then
47680    if test -n "$PKG_CONFIG" && \
47681    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
47682  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
47683  ac_status=$?
47684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47685  test $ac_status = 0; }; then
47686  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
47687		      test "x$?" != "x0" && pkg_failed=yes
47688else
47689  pkg_failed=yes
47690fi
47691 else
47692    pkg_failed=untried
47693fi
47694
47695
47696
47697if test $pkg_failed = yes; then
47698   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47699$as_echo "no" >&6; }
47700
47701if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47702        _pkg_short_errors_supported=yes
47703else
47704        _pkg_short_errors_supported=no
47705fi
47706        if test $_pkg_short_errors_supported = yes; then
47707	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
47708        else
47709	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
47710        fi
47711	# Put the nasty error message in config.log where it belongs
47712	echo "$LUA_PKG_ERRORS" >&5
47713
47714
47715
47716pkg_failed=no
47717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
47718$as_echo_n "checking for LUA... " >&6; }
47719
47720if test -n "$LUA_CFLAGS"; then
47721    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
47722 elif test -n "$PKG_CONFIG"; then
47723    if test -n "$PKG_CONFIG" && \
47724    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
47725  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
47726  ac_status=$?
47727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47728  test $ac_status = 0; }; then
47729  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
47730		      test "x$?" != "x0" && pkg_failed=yes
47731else
47732  pkg_failed=yes
47733fi
47734 else
47735    pkg_failed=untried
47736fi
47737if test -n "$LUA_LIBS"; then
47738    pkg_cv_LUA_LIBS="$LUA_LIBS"
47739 elif test -n "$PKG_CONFIG"; then
47740    if test -n "$PKG_CONFIG" && \
47741    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
47742  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
47743  ac_status=$?
47744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47745  test $ac_status = 0; }; then
47746  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
47747		      test "x$?" != "x0" && pkg_failed=yes
47748else
47749  pkg_failed=yes
47750fi
47751 else
47752    pkg_failed=untried
47753fi
47754
47755
47756
47757if test $pkg_failed = yes; then
47758   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47759$as_echo "no" >&6; }
47760
47761if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47762        _pkg_short_errors_supported=yes
47763else
47764        _pkg_short_errors_supported=no
47765fi
47766        if test $_pkg_short_errors_supported = yes; then
47767	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
47768        else
47769	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
47770        fi
47771	# Put the nasty error message in config.log where it belongs
47772	echo "$LUA_PKG_ERRORS" >&5
47773
47774	with_liblua="no (pkg-config cannot find liblua)"
47775
47776elif test $pkg_failed = untried; then
47777     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47778$as_echo "no" >&6; }
47779	with_liblua="no (pkg-config cannot find liblua)"
47780
47781else
47782	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
47783	LUA_LIBS=$pkg_cv_LUA_LIBS
47784        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47785$as_echo "yes" >&6; }
47786	with_liblua="yes"
47787fi
47788
47789
47790elif test $pkg_failed = untried; then
47791     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47792$as_echo "no" >&6; }
47793
47794
47795pkg_failed=no
47796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
47797$as_echo_n "checking for LUA... " >&6; }
47798
47799if test -n "$LUA_CFLAGS"; then
47800    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
47801 elif test -n "$PKG_CONFIG"; then
47802    if test -n "$PKG_CONFIG" && \
47803    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
47804  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
47805  ac_status=$?
47806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47807  test $ac_status = 0; }; then
47808  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
47809		      test "x$?" != "x0" && pkg_failed=yes
47810else
47811  pkg_failed=yes
47812fi
47813 else
47814    pkg_failed=untried
47815fi
47816if test -n "$LUA_LIBS"; then
47817    pkg_cv_LUA_LIBS="$LUA_LIBS"
47818 elif test -n "$PKG_CONFIG"; then
47819    if test -n "$PKG_CONFIG" && \
47820    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
47821  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
47822  ac_status=$?
47823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47824  test $ac_status = 0; }; then
47825  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
47826		      test "x$?" != "x0" && pkg_failed=yes
47827else
47828  pkg_failed=yes
47829fi
47830 else
47831    pkg_failed=untried
47832fi
47833
47834
47835
47836if test $pkg_failed = yes; then
47837   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47838$as_echo "no" >&6; }
47839
47840if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47841        _pkg_short_errors_supported=yes
47842else
47843        _pkg_short_errors_supported=no
47844fi
47845        if test $_pkg_short_errors_supported = yes; then
47846	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
47847        else
47848	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
47849        fi
47850	# Put the nasty error message in config.log where it belongs
47851	echo "$LUA_PKG_ERRORS" >&5
47852
47853	with_liblua="no (pkg-config cannot find liblua)"
47854
47855elif test $pkg_failed = untried; then
47856     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47857$as_echo "no" >&6; }
47858	with_liblua="no (pkg-config cannot find liblua)"
47859
47860else
47861	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
47862	LUA_LIBS=$pkg_cv_LUA_LIBS
47863        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47864$as_echo "yes" >&6; }
47865	with_liblua="yes"
47866fi
47867
47868
47869else
47870	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
47871	LUA_LIBS=$pkg_cv_LUA_LIBS
47872        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47873$as_echo "yes" >&6; }
47874	with_liblua="yes"
47875fi
47876
47877
47878elif test $pkg_failed = untried; then
47879     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47880$as_echo "no" >&6; }
47881
47882
47883pkg_failed=no
47884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
47885$as_echo_n "checking for LUA... " >&6; }
47886
47887if test -n "$LUA_CFLAGS"; then
47888    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
47889 elif test -n "$PKG_CONFIG"; then
47890    if test -n "$PKG_CONFIG" && \
47891    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
47892  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
47893  ac_status=$?
47894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47895  test $ac_status = 0; }; then
47896  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
47897		      test "x$?" != "x0" && pkg_failed=yes
47898else
47899  pkg_failed=yes
47900fi
47901 else
47902    pkg_failed=untried
47903fi
47904if test -n "$LUA_LIBS"; then
47905    pkg_cv_LUA_LIBS="$LUA_LIBS"
47906 elif test -n "$PKG_CONFIG"; then
47907    if test -n "$PKG_CONFIG" && \
47908    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
47909  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
47910  ac_status=$?
47911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47912  test $ac_status = 0; }; then
47913  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
47914		      test "x$?" != "x0" && pkg_failed=yes
47915else
47916  pkg_failed=yes
47917fi
47918 else
47919    pkg_failed=untried
47920fi
47921
47922
47923
47924if test $pkg_failed = yes; then
47925   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47926$as_echo "no" >&6; }
47927
47928if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47929        _pkg_short_errors_supported=yes
47930else
47931        _pkg_short_errors_supported=no
47932fi
47933        if test $_pkg_short_errors_supported = yes; then
47934	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
47935        else
47936	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
47937        fi
47938	# Put the nasty error message in config.log where it belongs
47939	echo "$LUA_PKG_ERRORS" >&5
47940
47941
47942
47943pkg_failed=no
47944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
47945$as_echo_n "checking for LUA... " >&6; }
47946
47947if test -n "$LUA_CFLAGS"; then
47948    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
47949 elif test -n "$PKG_CONFIG"; then
47950    if test -n "$PKG_CONFIG" && \
47951    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
47952  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
47953  ac_status=$?
47954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47955  test $ac_status = 0; }; then
47956  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
47957		      test "x$?" != "x0" && pkg_failed=yes
47958else
47959  pkg_failed=yes
47960fi
47961 else
47962    pkg_failed=untried
47963fi
47964if test -n "$LUA_LIBS"; then
47965    pkg_cv_LUA_LIBS="$LUA_LIBS"
47966 elif test -n "$PKG_CONFIG"; then
47967    if test -n "$PKG_CONFIG" && \
47968    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
47969  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
47970  ac_status=$?
47971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47972  test $ac_status = 0; }; then
47973  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
47974		      test "x$?" != "x0" && pkg_failed=yes
47975else
47976  pkg_failed=yes
47977fi
47978 else
47979    pkg_failed=untried
47980fi
47981
47982
47983
47984if test $pkg_failed = yes; then
47985   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47986$as_echo "no" >&6; }
47987
47988if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47989        _pkg_short_errors_supported=yes
47990else
47991        _pkg_short_errors_supported=no
47992fi
47993        if test $_pkg_short_errors_supported = yes; then
47994	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
47995        else
47996	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
47997        fi
47998	# Put the nasty error message in config.log where it belongs
47999	echo "$LUA_PKG_ERRORS" >&5
48000
48001	with_liblua="no (pkg-config cannot find liblua)"
48002
48003elif test $pkg_failed = untried; then
48004     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48005$as_echo "no" >&6; }
48006	with_liblua="no (pkg-config cannot find liblua)"
48007
48008else
48009	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
48010	LUA_LIBS=$pkg_cv_LUA_LIBS
48011        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48012$as_echo "yes" >&6; }
48013	with_liblua="yes"
48014fi
48015
48016
48017elif test $pkg_failed = untried; then
48018     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48019$as_echo "no" >&6; }
48020
48021
48022pkg_failed=no
48023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
48024$as_echo_n "checking for LUA... " >&6; }
48025
48026if test -n "$LUA_CFLAGS"; then
48027    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
48028 elif test -n "$PKG_CONFIG"; then
48029    if test -n "$PKG_CONFIG" && \
48030    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
48031  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
48032  ac_status=$?
48033  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48034  test $ac_status = 0; }; then
48035  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
48036		      test "x$?" != "x0" && pkg_failed=yes
48037else
48038  pkg_failed=yes
48039fi
48040 else
48041    pkg_failed=untried
48042fi
48043if test -n "$LUA_LIBS"; then
48044    pkg_cv_LUA_LIBS="$LUA_LIBS"
48045 elif test -n "$PKG_CONFIG"; then
48046    if test -n "$PKG_CONFIG" && \
48047    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
48048  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
48049  ac_status=$?
48050  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48051  test $ac_status = 0; }; then
48052  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
48053		      test "x$?" != "x0" && pkg_failed=yes
48054else
48055  pkg_failed=yes
48056fi
48057 else
48058    pkg_failed=untried
48059fi
48060
48061
48062
48063if test $pkg_failed = yes; then
48064   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48065$as_echo "no" >&6; }
48066
48067if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48068        _pkg_short_errors_supported=yes
48069else
48070        _pkg_short_errors_supported=no
48071fi
48072        if test $_pkg_short_errors_supported = yes; then
48073	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
48074        else
48075	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
48076        fi
48077	# Put the nasty error message in config.log where it belongs
48078	echo "$LUA_PKG_ERRORS" >&5
48079
48080	with_liblua="no (pkg-config cannot find liblua)"
48081
48082elif test $pkg_failed = untried; then
48083     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48084$as_echo "no" >&6; }
48085	with_liblua="no (pkg-config cannot find liblua)"
48086
48087else
48088	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
48089	LUA_LIBS=$pkg_cv_LUA_LIBS
48090        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48091$as_echo "yes" >&6; }
48092	with_liblua="yes"
48093fi
48094
48095
48096else
48097	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
48098	LUA_LIBS=$pkg_cv_LUA_LIBS
48099        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48100$as_echo "yes" >&6; }
48101	with_liblua="yes"
48102fi
48103
48104
48105else
48106	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
48107	LUA_LIBS=$pkg_cv_LUA_LIBS
48108        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48109$as_echo "yes" >&6; }
48110	with_liblua="yes"
48111fi
48112
48113
48114elif test $pkg_failed = untried; then
48115     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48116$as_echo "no" >&6; }
48117
48118
48119pkg_failed=no
48120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
48121$as_echo_n "checking for LUA... " >&6; }
48122
48123if test -n "$LUA_CFLAGS"; then
48124    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
48125 elif test -n "$PKG_CONFIG"; then
48126    if test -n "$PKG_CONFIG" && \
48127    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
48128  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
48129  ac_status=$?
48130  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48131  test $ac_status = 0; }; then
48132  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
48133		      test "x$?" != "x0" && pkg_failed=yes
48134else
48135  pkg_failed=yes
48136fi
48137 else
48138    pkg_failed=untried
48139fi
48140if test -n "$LUA_LIBS"; then
48141    pkg_cv_LUA_LIBS="$LUA_LIBS"
48142 elif test -n "$PKG_CONFIG"; then
48143    if test -n "$PKG_CONFIG" && \
48144    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
48145  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
48146  ac_status=$?
48147  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48148  test $ac_status = 0; }; then
48149  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
48150		      test "x$?" != "x0" && pkg_failed=yes
48151else
48152  pkg_failed=yes
48153fi
48154 else
48155    pkg_failed=untried
48156fi
48157
48158
48159
48160if test $pkg_failed = yes; then
48161   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48162$as_echo "no" >&6; }
48163
48164if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48165        _pkg_short_errors_supported=yes
48166else
48167        _pkg_short_errors_supported=no
48168fi
48169        if test $_pkg_short_errors_supported = yes; then
48170	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
48171        else
48172	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
48173        fi
48174	# Put the nasty error message in config.log where it belongs
48175	echo "$LUA_PKG_ERRORS" >&5
48176
48177
48178
48179pkg_failed=no
48180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
48181$as_echo_n "checking for LUA... " >&6; }
48182
48183if test -n "$LUA_CFLAGS"; then
48184    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
48185 elif test -n "$PKG_CONFIG"; then
48186    if test -n "$PKG_CONFIG" && \
48187    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
48188  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
48189  ac_status=$?
48190  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48191  test $ac_status = 0; }; then
48192  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
48193		      test "x$?" != "x0" && pkg_failed=yes
48194else
48195  pkg_failed=yes
48196fi
48197 else
48198    pkg_failed=untried
48199fi
48200if test -n "$LUA_LIBS"; then
48201    pkg_cv_LUA_LIBS="$LUA_LIBS"
48202 elif test -n "$PKG_CONFIG"; then
48203    if test -n "$PKG_CONFIG" && \
48204    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
48205  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
48206  ac_status=$?
48207  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48208  test $ac_status = 0; }; then
48209  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
48210		      test "x$?" != "x0" && pkg_failed=yes
48211else
48212  pkg_failed=yes
48213fi
48214 else
48215    pkg_failed=untried
48216fi
48217
48218
48219
48220if test $pkg_failed = yes; then
48221   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48222$as_echo "no" >&6; }
48223
48224if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48225        _pkg_short_errors_supported=yes
48226else
48227        _pkg_short_errors_supported=no
48228fi
48229        if test $_pkg_short_errors_supported = yes; then
48230	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
48231        else
48232	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
48233        fi
48234	# Put the nasty error message in config.log where it belongs
48235	echo "$LUA_PKG_ERRORS" >&5
48236
48237
48238
48239pkg_failed=no
48240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
48241$as_echo_n "checking for LUA... " >&6; }
48242
48243if test -n "$LUA_CFLAGS"; then
48244    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
48245 elif test -n "$PKG_CONFIG"; then
48246    if test -n "$PKG_CONFIG" && \
48247    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
48248  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
48249  ac_status=$?
48250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48251  test $ac_status = 0; }; then
48252  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
48253		      test "x$?" != "x0" && pkg_failed=yes
48254else
48255  pkg_failed=yes
48256fi
48257 else
48258    pkg_failed=untried
48259fi
48260if test -n "$LUA_LIBS"; then
48261    pkg_cv_LUA_LIBS="$LUA_LIBS"
48262 elif test -n "$PKG_CONFIG"; then
48263    if test -n "$PKG_CONFIG" && \
48264    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
48265  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
48266  ac_status=$?
48267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48268  test $ac_status = 0; }; then
48269  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
48270		      test "x$?" != "x0" && pkg_failed=yes
48271else
48272  pkg_failed=yes
48273fi
48274 else
48275    pkg_failed=untried
48276fi
48277
48278
48279
48280if test $pkg_failed = yes; then
48281   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48282$as_echo "no" >&6; }
48283
48284if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48285        _pkg_short_errors_supported=yes
48286else
48287        _pkg_short_errors_supported=no
48288fi
48289        if test $_pkg_short_errors_supported = yes; then
48290	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
48291        else
48292	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
48293        fi
48294	# Put the nasty error message in config.log where it belongs
48295	echo "$LUA_PKG_ERRORS" >&5
48296
48297	with_liblua="no (pkg-config cannot find liblua)"
48298
48299elif test $pkg_failed = untried; then
48300     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48301$as_echo "no" >&6; }
48302	with_liblua="no (pkg-config cannot find liblua)"
48303
48304else
48305	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
48306	LUA_LIBS=$pkg_cv_LUA_LIBS
48307        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48308$as_echo "yes" >&6; }
48309	with_liblua="yes"
48310fi
48311
48312
48313elif test $pkg_failed = untried; then
48314     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48315$as_echo "no" >&6; }
48316
48317
48318pkg_failed=no
48319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
48320$as_echo_n "checking for LUA... " >&6; }
48321
48322if test -n "$LUA_CFLAGS"; then
48323    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
48324 elif test -n "$PKG_CONFIG"; then
48325    if test -n "$PKG_CONFIG" && \
48326    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
48327  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
48328  ac_status=$?
48329  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48330  test $ac_status = 0; }; then
48331  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
48332		      test "x$?" != "x0" && pkg_failed=yes
48333else
48334  pkg_failed=yes
48335fi
48336 else
48337    pkg_failed=untried
48338fi
48339if test -n "$LUA_LIBS"; then
48340    pkg_cv_LUA_LIBS="$LUA_LIBS"
48341 elif test -n "$PKG_CONFIG"; then
48342    if test -n "$PKG_CONFIG" && \
48343    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
48344  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
48345  ac_status=$?
48346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48347  test $ac_status = 0; }; then
48348  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
48349		      test "x$?" != "x0" && pkg_failed=yes
48350else
48351  pkg_failed=yes
48352fi
48353 else
48354    pkg_failed=untried
48355fi
48356
48357
48358
48359if test $pkg_failed = yes; then
48360   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48361$as_echo "no" >&6; }
48362
48363if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48364        _pkg_short_errors_supported=yes
48365else
48366        _pkg_short_errors_supported=no
48367fi
48368        if test $_pkg_short_errors_supported = yes; then
48369	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
48370        else
48371	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
48372        fi
48373	# Put the nasty error message in config.log where it belongs
48374	echo "$LUA_PKG_ERRORS" >&5
48375
48376	with_liblua="no (pkg-config cannot find liblua)"
48377
48378elif test $pkg_failed = untried; then
48379     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48380$as_echo "no" >&6; }
48381	with_liblua="no (pkg-config cannot find liblua)"
48382
48383else
48384	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
48385	LUA_LIBS=$pkg_cv_LUA_LIBS
48386        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48387$as_echo "yes" >&6; }
48388	with_liblua="yes"
48389fi
48390
48391
48392else
48393	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
48394	LUA_LIBS=$pkg_cv_LUA_LIBS
48395        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48396$as_echo "yes" >&6; }
48397	with_liblua="yes"
48398fi
48399
48400
48401elif test $pkg_failed = untried; then
48402     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48403$as_echo "no" >&6; }
48404
48405
48406pkg_failed=no
48407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
48408$as_echo_n "checking for LUA... " >&6; }
48409
48410if test -n "$LUA_CFLAGS"; then
48411    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
48412 elif test -n "$PKG_CONFIG"; then
48413    if test -n "$PKG_CONFIG" && \
48414    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
48415  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
48416  ac_status=$?
48417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48418  test $ac_status = 0; }; then
48419  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
48420		      test "x$?" != "x0" && pkg_failed=yes
48421else
48422  pkg_failed=yes
48423fi
48424 else
48425    pkg_failed=untried
48426fi
48427if test -n "$LUA_LIBS"; then
48428    pkg_cv_LUA_LIBS="$LUA_LIBS"
48429 elif test -n "$PKG_CONFIG"; then
48430    if test -n "$PKG_CONFIG" && \
48431    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
48432  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
48433  ac_status=$?
48434  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48435  test $ac_status = 0; }; then
48436  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
48437		      test "x$?" != "x0" && pkg_failed=yes
48438else
48439  pkg_failed=yes
48440fi
48441 else
48442    pkg_failed=untried
48443fi
48444
48445
48446
48447if test $pkg_failed = yes; then
48448   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48449$as_echo "no" >&6; }
48450
48451if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48452        _pkg_short_errors_supported=yes
48453else
48454        _pkg_short_errors_supported=no
48455fi
48456        if test $_pkg_short_errors_supported = yes; then
48457	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
48458        else
48459	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
48460        fi
48461	# Put the nasty error message in config.log where it belongs
48462	echo "$LUA_PKG_ERRORS" >&5
48463
48464
48465
48466pkg_failed=no
48467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
48468$as_echo_n "checking for LUA... " >&6; }
48469
48470if test -n "$LUA_CFLAGS"; then
48471    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
48472 elif test -n "$PKG_CONFIG"; then
48473    if test -n "$PKG_CONFIG" && \
48474    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
48475  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
48476  ac_status=$?
48477  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48478  test $ac_status = 0; }; then
48479  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
48480		      test "x$?" != "x0" && pkg_failed=yes
48481else
48482  pkg_failed=yes
48483fi
48484 else
48485    pkg_failed=untried
48486fi
48487if test -n "$LUA_LIBS"; then
48488    pkg_cv_LUA_LIBS="$LUA_LIBS"
48489 elif test -n "$PKG_CONFIG"; then
48490    if test -n "$PKG_CONFIG" && \
48491    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
48492  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
48493  ac_status=$?
48494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48495  test $ac_status = 0; }; then
48496  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
48497		      test "x$?" != "x0" && pkg_failed=yes
48498else
48499  pkg_failed=yes
48500fi
48501 else
48502    pkg_failed=untried
48503fi
48504
48505
48506
48507if test $pkg_failed = yes; then
48508   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48509$as_echo "no" >&6; }
48510
48511if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48512        _pkg_short_errors_supported=yes
48513else
48514        _pkg_short_errors_supported=no
48515fi
48516        if test $_pkg_short_errors_supported = yes; then
48517	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
48518        else
48519	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
48520        fi
48521	# Put the nasty error message in config.log where it belongs
48522	echo "$LUA_PKG_ERRORS" >&5
48523
48524	with_liblua="no (pkg-config cannot find liblua)"
48525
48526elif test $pkg_failed = untried; then
48527     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48528$as_echo "no" >&6; }
48529	with_liblua="no (pkg-config cannot find liblua)"
48530
48531else
48532	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
48533	LUA_LIBS=$pkg_cv_LUA_LIBS
48534        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48535$as_echo "yes" >&6; }
48536	with_liblua="yes"
48537fi
48538
48539
48540elif test $pkg_failed = untried; then
48541     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48542$as_echo "no" >&6; }
48543
48544
48545pkg_failed=no
48546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
48547$as_echo_n "checking for LUA... " >&6; }
48548
48549if test -n "$LUA_CFLAGS"; then
48550    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
48551 elif test -n "$PKG_CONFIG"; then
48552    if test -n "$PKG_CONFIG" && \
48553    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
48554  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
48555  ac_status=$?
48556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48557  test $ac_status = 0; }; then
48558  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
48559		      test "x$?" != "x0" && pkg_failed=yes
48560else
48561  pkg_failed=yes
48562fi
48563 else
48564    pkg_failed=untried
48565fi
48566if test -n "$LUA_LIBS"; then
48567    pkg_cv_LUA_LIBS="$LUA_LIBS"
48568 elif test -n "$PKG_CONFIG"; then
48569    if test -n "$PKG_CONFIG" && \
48570    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
48571  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
48572  ac_status=$?
48573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48574  test $ac_status = 0; }; then
48575  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
48576		      test "x$?" != "x0" && pkg_failed=yes
48577else
48578  pkg_failed=yes
48579fi
48580 else
48581    pkg_failed=untried
48582fi
48583
48584
48585
48586if test $pkg_failed = yes; then
48587   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48588$as_echo "no" >&6; }
48589
48590if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48591        _pkg_short_errors_supported=yes
48592else
48593        _pkg_short_errors_supported=no
48594fi
48595        if test $_pkg_short_errors_supported = yes; then
48596	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
48597        else
48598	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
48599        fi
48600	# Put the nasty error message in config.log where it belongs
48601	echo "$LUA_PKG_ERRORS" >&5
48602
48603	with_liblua="no (pkg-config cannot find liblua)"
48604
48605elif test $pkg_failed = untried; then
48606     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48607$as_echo "no" >&6; }
48608	with_liblua="no (pkg-config cannot find liblua)"
48609
48610else
48611	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
48612	LUA_LIBS=$pkg_cv_LUA_LIBS
48613        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48614$as_echo "yes" >&6; }
48615	with_liblua="yes"
48616fi
48617
48618
48619else
48620	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
48621	LUA_LIBS=$pkg_cv_LUA_LIBS
48622        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48623$as_echo "yes" >&6; }
48624	with_liblua="yes"
48625fi
48626
48627
48628else
48629	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
48630	LUA_LIBS=$pkg_cv_LUA_LIBS
48631        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48632$as_echo "yes" >&6; }
48633	with_liblua="yes"
48634fi
48635
48636
48637else
48638	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
48639	LUA_LIBS=$pkg_cv_LUA_LIBS
48640        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48641$as_echo "yes" >&6; }
48642	with_liblua="yes"
48643fi
48644
48645
48646elif test $pkg_failed = untried; then
48647     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48648$as_echo "no" >&6; }
48649
48650
48651pkg_failed=no
48652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
48653$as_echo_n "checking for LUA... " >&6; }
48654
48655if test -n "$LUA_CFLAGS"; then
48656    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
48657 elif test -n "$PKG_CONFIG"; then
48658    if test -n "$PKG_CONFIG" && \
48659    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
48660  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
48661  ac_status=$?
48662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48663  test $ac_status = 0; }; then
48664  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
48665		      test "x$?" != "x0" && pkg_failed=yes
48666else
48667  pkg_failed=yes
48668fi
48669 else
48670    pkg_failed=untried
48671fi
48672if test -n "$LUA_LIBS"; then
48673    pkg_cv_LUA_LIBS="$LUA_LIBS"
48674 elif test -n "$PKG_CONFIG"; then
48675    if test -n "$PKG_CONFIG" && \
48676    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
48677  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
48678  ac_status=$?
48679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48680  test $ac_status = 0; }; then
48681  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
48682		      test "x$?" != "x0" && pkg_failed=yes
48683else
48684  pkg_failed=yes
48685fi
48686 else
48687    pkg_failed=untried
48688fi
48689
48690
48691
48692if test $pkg_failed = yes; then
48693   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48694$as_echo "no" >&6; }
48695
48696if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48697        _pkg_short_errors_supported=yes
48698else
48699        _pkg_short_errors_supported=no
48700fi
48701        if test $_pkg_short_errors_supported = yes; then
48702	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
48703        else
48704	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
48705        fi
48706	# Put the nasty error message in config.log where it belongs
48707	echo "$LUA_PKG_ERRORS" >&5
48708
48709
48710
48711pkg_failed=no
48712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
48713$as_echo_n "checking for LUA... " >&6; }
48714
48715if test -n "$LUA_CFLAGS"; then
48716    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
48717 elif test -n "$PKG_CONFIG"; then
48718    if test -n "$PKG_CONFIG" && \
48719    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
48720  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
48721  ac_status=$?
48722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48723  test $ac_status = 0; }; then
48724  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
48725		      test "x$?" != "x0" && pkg_failed=yes
48726else
48727  pkg_failed=yes
48728fi
48729 else
48730    pkg_failed=untried
48731fi
48732if test -n "$LUA_LIBS"; then
48733    pkg_cv_LUA_LIBS="$LUA_LIBS"
48734 elif test -n "$PKG_CONFIG"; then
48735    if test -n "$PKG_CONFIG" && \
48736    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
48737  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
48738  ac_status=$?
48739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48740  test $ac_status = 0; }; then
48741  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
48742		      test "x$?" != "x0" && pkg_failed=yes
48743else
48744  pkg_failed=yes
48745fi
48746 else
48747    pkg_failed=untried
48748fi
48749
48750
48751
48752if test $pkg_failed = yes; then
48753   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48754$as_echo "no" >&6; }
48755
48756if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48757        _pkg_short_errors_supported=yes
48758else
48759        _pkg_short_errors_supported=no
48760fi
48761        if test $_pkg_short_errors_supported = yes; then
48762	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
48763        else
48764	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
48765        fi
48766	# Put the nasty error message in config.log where it belongs
48767	echo "$LUA_PKG_ERRORS" >&5
48768
48769
48770
48771pkg_failed=no
48772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
48773$as_echo_n "checking for LUA... " >&6; }
48774
48775if test -n "$LUA_CFLAGS"; then
48776    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
48777 elif test -n "$PKG_CONFIG"; then
48778    if test -n "$PKG_CONFIG" && \
48779    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
48780  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
48781  ac_status=$?
48782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48783  test $ac_status = 0; }; then
48784  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
48785		      test "x$?" != "x0" && pkg_failed=yes
48786else
48787  pkg_failed=yes
48788fi
48789 else
48790    pkg_failed=untried
48791fi
48792if test -n "$LUA_LIBS"; then
48793    pkg_cv_LUA_LIBS="$LUA_LIBS"
48794 elif test -n "$PKG_CONFIG"; then
48795    if test -n "$PKG_CONFIG" && \
48796    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
48797  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
48798  ac_status=$?
48799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48800  test $ac_status = 0; }; then
48801  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
48802		      test "x$?" != "x0" && pkg_failed=yes
48803else
48804  pkg_failed=yes
48805fi
48806 else
48807    pkg_failed=untried
48808fi
48809
48810
48811
48812if test $pkg_failed = yes; then
48813   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48814$as_echo "no" >&6; }
48815
48816if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48817        _pkg_short_errors_supported=yes
48818else
48819        _pkg_short_errors_supported=no
48820fi
48821        if test $_pkg_short_errors_supported = yes; then
48822	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
48823        else
48824	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
48825        fi
48826	# Put the nasty error message in config.log where it belongs
48827	echo "$LUA_PKG_ERRORS" >&5
48828
48829
48830
48831pkg_failed=no
48832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
48833$as_echo_n "checking for LUA... " >&6; }
48834
48835if test -n "$LUA_CFLAGS"; then
48836    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
48837 elif test -n "$PKG_CONFIG"; then
48838    if test -n "$PKG_CONFIG" && \
48839    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
48840  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
48841  ac_status=$?
48842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48843  test $ac_status = 0; }; then
48844  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
48845		      test "x$?" != "x0" && pkg_failed=yes
48846else
48847  pkg_failed=yes
48848fi
48849 else
48850    pkg_failed=untried
48851fi
48852if test -n "$LUA_LIBS"; then
48853    pkg_cv_LUA_LIBS="$LUA_LIBS"
48854 elif test -n "$PKG_CONFIG"; then
48855    if test -n "$PKG_CONFIG" && \
48856    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
48857  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
48858  ac_status=$?
48859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48860  test $ac_status = 0; }; then
48861  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
48862		      test "x$?" != "x0" && pkg_failed=yes
48863else
48864  pkg_failed=yes
48865fi
48866 else
48867    pkg_failed=untried
48868fi
48869
48870
48871
48872if test $pkg_failed = yes; then
48873   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48874$as_echo "no" >&6; }
48875
48876if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48877        _pkg_short_errors_supported=yes
48878else
48879        _pkg_short_errors_supported=no
48880fi
48881        if test $_pkg_short_errors_supported = yes; then
48882	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
48883        else
48884	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
48885        fi
48886	# Put the nasty error message in config.log where it belongs
48887	echo "$LUA_PKG_ERRORS" >&5
48888
48889	with_liblua="no (pkg-config cannot find liblua)"
48890
48891elif test $pkg_failed = untried; then
48892     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48893$as_echo "no" >&6; }
48894	with_liblua="no (pkg-config cannot find liblua)"
48895
48896else
48897	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
48898	LUA_LIBS=$pkg_cv_LUA_LIBS
48899        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48900$as_echo "yes" >&6; }
48901	with_liblua="yes"
48902fi
48903
48904
48905elif test $pkg_failed = untried; then
48906     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48907$as_echo "no" >&6; }
48908
48909
48910pkg_failed=no
48911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
48912$as_echo_n "checking for LUA... " >&6; }
48913
48914if test -n "$LUA_CFLAGS"; then
48915    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
48916 elif test -n "$PKG_CONFIG"; then
48917    if test -n "$PKG_CONFIG" && \
48918    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
48919  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
48920  ac_status=$?
48921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48922  test $ac_status = 0; }; then
48923  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
48924		      test "x$?" != "x0" && pkg_failed=yes
48925else
48926  pkg_failed=yes
48927fi
48928 else
48929    pkg_failed=untried
48930fi
48931if test -n "$LUA_LIBS"; then
48932    pkg_cv_LUA_LIBS="$LUA_LIBS"
48933 elif test -n "$PKG_CONFIG"; then
48934    if test -n "$PKG_CONFIG" && \
48935    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
48936  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
48937  ac_status=$?
48938  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48939  test $ac_status = 0; }; then
48940  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
48941		      test "x$?" != "x0" && pkg_failed=yes
48942else
48943  pkg_failed=yes
48944fi
48945 else
48946    pkg_failed=untried
48947fi
48948
48949
48950
48951if test $pkg_failed = yes; then
48952   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48953$as_echo "no" >&6; }
48954
48955if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48956        _pkg_short_errors_supported=yes
48957else
48958        _pkg_short_errors_supported=no
48959fi
48960        if test $_pkg_short_errors_supported = yes; then
48961	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
48962        else
48963	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
48964        fi
48965	# Put the nasty error message in config.log where it belongs
48966	echo "$LUA_PKG_ERRORS" >&5
48967
48968	with_liblua="no (pkg-config cannot find liblua)"
48969
48970elif test $pkg_failed = untried; then
48971     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48972$as_echo "no" >&6; }
48973	with_liblua="no (pkg-config cannot find liblua)"
48974
48975else
48976	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
48977	LUA_LIBS=$pkg_cv_LUA_LIBS
48978        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48979$as_echo "yes" >&6; }
48980	with_liblua="yes"
48981fi
48982
48983
48984else
48985	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
48986	LUA_LIBS=$pkg_cv_LUA_LIBS
48987        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48988$as_echo "yes" >&6; }
48989	with_liblua="yes"
48990fi
48991
48992
48993elif test $pkg_failed = untried; then
48994     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48995$as_echo "no" >&6; }
48996
48997
48998pkg_failed=no
48999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
49000$as_echo_n "checking for LUA... " >&6; }
49001
49002if test -n "$LUA_CFLAGS"; then
49003    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
49004 elif test -n "$PKG_CONFIG"; then
49005    if test -n "$PKG_CONFIG" && \
49006    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
49007  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
49008  ac_status=$?
49009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49010  test $ac_status = 0; }; then
49011  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
49012		      test "x$?" != "x0" && pkg_failed=yes
49013else
49014  pkg_failed=yes
49015fi
49016 else
49017    pkg_failed=untried
49018fi
49019if test -n "$LUA_LIBS"; then
49020    pkg_cv_LUA_LIBS="$LUA_LIBS"
49021 elif test -n "$PKG_CONFIG"; then
49022    if test -n "$PKG_CONFIG" && \
49023    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
49024  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
49025  ac_status=$?
49026  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49027  test $ac_status = 0; }; then
49028  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
49029		      test "x$?" != "x0" && pkg_failed=yes
49030else
49031  pkg_failed=yes
49032fi
49033 else
49034    pkg_failed=untried
49035fi
49036
49037
49038
49039if test $pkg_failed = yes; then
49040   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49041$as_echo "no" >&6; }
49042
49043if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49044        _pkg_short_errors_supported=yes
49045else
49046        _pkg_short_errors_supported=no
49047fi
49048        if test $_pkg_short_errors_supported = yes; then
49049	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
49050        else
49051	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
49052        fi
49053	# Put the nasty error message in config.log where it belongs
49054	echo "$LUA_PKG_ERRORS" >&5
49055
49056
49057
49058pkg_failed=no
49059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
49060$as_echo_n "checking for LUA... " >&6; }
49061
49062if test -n "$LUA_CFLAGS"; then
49063    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
49064 elif test -n "$PKG_CONFIG"; then
49065    if test -n "$PKG_CONFIG" && \
49066    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
49067  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
49068  ac_status=$?
49069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49070  test $ac_status = 0; }; then
49071  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
49072		      test "x$?" != "x0" && pkg_failed=yes
49073else
49074  pkg_failed=yes
49075fi
49076 else
49077    pkg_failed=untried
49078fi
49079if test -n "$LUA_LIBS"; then
49080    pkg_cv_LUA_LIBS="$LUA_LIBS"
49081 elif test -n "$PKG_CONFIG"; then
49082    if test -n "$PKG_CONFIG" && \
49083    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
49084  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
49085  ac_status=$?
49086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49087  test $ac_status = 0; }; then
49088  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
49089		      test "x$?" != "x0" && pkg_failed=yes
49090else
49091  pkg_failed=yes
49092fi
49093 else
49094    pkg_failed=untried
49095fi
49096
49097
49098
49099if test $pkg_failed = yes; then
49100   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49101$as_echo "no" >&6; }
49102
49103if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49104        _pkg_short_errors_supported=yes
49105else
49106        _pkg_short_errors_supported=no
49107fi
49108        if test $_pkg_short_errors_supported = yes; then
49109	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
49110        else
49111	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
49112        fi
49113	# Put the nasty error message in config.log where it belongs
49114	echo "$LUA_PKG_ERRORS" >&5
49115
49116	with_liblua="no (pkg-config cannot find liblua)"
49117
49118elif test $pkg_failed = untried; then
49119     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49120$as_echo "no" >&6; }
49121	with_liblua="no (pkg-config cannot find liblua)"
49122
49123else
49124	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
49125	LUA_LIBS=$pkg_cv_LUA_LIBS
49126        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49127$as_echo "yes" >&6; }
49128	with_liblua="yes"
49129fi
49130
49131
49132elif test $pkg_failed = untried; then
49133     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49134$as_echo "no" >&6; }
49135
49136
49137pkg_failed=no
49138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
49139$as_echo_n "checking for LUA... " >&6; }
49140
49141if test -n "$LUA_CFLAGS"; then
49142    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
49143 elif test -n "$PKG_CONFIG"; then
49144    if test -n "$PKG_CONFIG" && \
49145    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
49146  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
49147  ac_status=$?
49148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49149  test $ac_status = 0; }; then
49150  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
49151		      test "x$?" != "x0" && pkg_failed=yes
49152else
49153  pkg_failed=yes
49154fi
49155 else
49156    pkg_failed=untried
49157fi
49158if test -n "$LUA_LIBS"; then
49159    pkg_cv_LUA_LIBS="$LUA_LIBS"
49160 elif test -n "$PKG_CONFIG"; then
49161    if test -n "$PKG_CONFIG" && \
49162    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
49163  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
49164  ac_status=$?
49165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49166  test $ac_status = 0; }; then
49167  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
49168		      test "x$?" != "x0" && pkg_failed=yes
49169else
49170  pkg_failed=yes
49171fi
49172 else
49173    pkg_failed=untried
49174fi
49175
49176
49177
49178if test $pkg_failed = yes; then
49179   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49180$as_echo "no" >&6; }
49181
49182if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49183        _pkg_short_errors_supported=yes
49184else
49185        _pkg_short_errors_supported=no
49186fi
49187        if test $_pkg_short_errors_supported = yes; then
49188	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
49189        else
49190	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
49191        fi
49192	# Put the nasty error message in config.log where it belongs
49193	echo "$LUA_PKG_ERRORS" >&5
49194
49195	with_liblua="no (pkg-config cannot find liblua)"
49196
49197elif test $pkg_failed = untried; then
49198     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49199$as_echo "no" >&6; }
49200	with_liblua="no (pkg-config cannot find liblua)"
49201
49202else
49203	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
49204	LUA_LIBS=$pkg_cv_LUA_LIBS
49205        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49206$as_echo "yes" >&6; }
49207	with_liblua="yes"
49208fi
49209
49210
49211else
49212	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
49213	LUA_LIBS=$pkg_cv_LUA_LIBS
49214        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49215$as_echo "yes" >&6; }
49216	with_liblua="yes"
49217fi
49218
49219
49220else
49221	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
49222	LUA_LIBS=$pkg_cv_LUA_LIBS
49223        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49224$as_echo "yes" >&6; }
49225	with_liblua="yes"
49226fi
49227
49228
49229elif test $pkg_failed = untried; then
49230     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49231$as_echo "no" >&6; }
49232
49233
49234pkg_failed=no
49235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
49236$as_echo_n "checking for LUA... " >&6; }
49237
49238if test -n "$LUA_CFLAGS"; then
49239    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
49240 elif test -n "$PKG_CONFIG"; then
49241    if test -n "$PKG_CONFIG" && \
49242    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
49243  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
49244  ac_status=$?
49245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49246  test $ac_status = 0; }; then
49247  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
49248		      test "x$?" != "x0" && pkg_failed=yes
49249else
49250  pkg_failed=yes
49251fi
49252 else
49253    pkg_failed=untried
49254fi
49255if test -n "$LUA_LIBS"; then
49256    pkg_cv_LUA_LIBS="$LUA_LIBS"
49257 elif test -n "$PKG_CONFIG"; then
49258    if test -n "$PKG_CONFIG" && \
49259    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
49260  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
49261  ac_status=$?
49262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49263  test $ac_status = 0; }; then
49264  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
49265		      test "x$?" != "x0" && pkg_failed=yes
49266else
49267  pkg_failed=yes
49268fi
49269 else
49270    pkg_failed=untried
49271fi
49272
49273
49274
49275if test $pkg_failed = yes; then
49276   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49277$as_echo "no" >&6; }
49278
49279if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49280        _pkg_short_errors_supported=yes
49281else
49282        _pkg_short_errors_supported=no
49283fi
49284        if test $_pkg_short_errors_supported = yes; then
49285	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
49286        else
49287	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
49288        fi
49289	# Put the nasty error message in config.log where it belongs
49290	echo "$LUA_PKG_ERRORS" >&5
49291
49292
49293
49294pkg_failed=no
49295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
49296$as_echo_n "checking for LUA... " >&6; }
49297
49298if test -n "$LUA_CFLAGS"; then
49299    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
49300 elif test -n "$PKG_CONFIG"; then
49301    if test -n "$PKG_CONFIG" && \
49302    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
49303  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
49304  ac_status=$?
49305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49306  test $ac_status = 0; }; then
49307  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
49308		      test "x$?" != "x0" && pkg_failed=yes
49309else
49310  pkg_failed=yes
49311fi
49312 else
49313    pkg_failed=untried
49314fi
49315if test -n "$LUA_LIBS"; then
49316    pkg_cv_LUA_LIBS="$LUA_LIBS"
49317 elif test -n "$PKG_CONFIG"; then
49318    if test -n "$PKG_CONFIG" && \
49319    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
49320  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
49321  ac_status=$?
49322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49323  test $ac_status = 0; }; then
49324  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
49325		      test "x$?" != "x0" && pkg_failed=yes
49326else
49327  pkg_failed=yes
49328fi
49329 else
49330    pkg_failed=untried
49331fi
49332
49333
49334
49335if test $pkg_failed = yes; then
49336   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49337$as_echo "no" >&6; }
49338
49339if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49340        _pkg_short_errors_supported=yes
49341else
49342        _pkg_short_errors_supported=no
49343fi
49344        if test $_pkg_short_errors_supported = yes; then
49345	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
49346        else
49347	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
49348        fi
49349	# Put the nasty error message in config.log where it belongs
49350	echo "$LUA_PKG_ERRORS" >&5
49351
49352
49353
49354pkg_failed=no
49355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
49356$as_echo_n "checking for LUA... " >&6; }
49357
49358if test -n "$LUA_CFLAGS"; then
49359    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
49360 elif test -n "$PKG_CONFIG"; then
49361    if test -n "$PKG_CONFIG" && \
49362    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
49363  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
49364  ac_status=$?
49365  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49366  test $ac_status = 0; }; then
49367  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
49368		      test "x$?" != "x0" && pkg_failed=yes
49369else
49370  pkg_failed=yes
49371fi
49372 else
49373    pkg_failed=untried
49374fi
49375if test -n "$LUA_LIBS"; then
49376    pkg_cv_LUA_LIBS="$LUA_LIBS"
49377 elif test -n "$PKG_CONFIG"; then
49378    if test -n "$PKG_CONFIG" && \
49379    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
49380  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
49381  ac_status=$?
49382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49383  test $ac_status = 0; }; then
49384  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
49385		      test "x$?" != "x0" && pkg_failed=yes
49386else
49387  pkg_failed=yes
49388fi
49389 else
49390    pkg_failed=untried
49391fi
49392
49393
49394
49395if test $pkg_failed = yes; then
49396   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49397$as_echo "no" >&6; }
49398
49399if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49400        _pkg_short_errors_supported=yes
49401else
49402        _pkg_short_errors_supported=no
49403fi
49404        if test $_pkg_short_errors_supported = yes; then
49405	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
49406        else
49407	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
49408        fi
49409	# Put the nasty error message in config.log where it belongs
49410	echo "$LUA_PKG_ERRORS" >&5
49411
49412	with_liblua="no (pkg-config cannot find liblua)"
49413
49414elif test $pkg_failed = untried; then
49415     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49416$as_echo "no" >&6; }
49417	with_liblua="no (pkg-config cannot find liblua)"
49418
49419else
49420	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
49421	LUA_LIBS=$pkg_cv_LUA_LIBS
49422        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49423$as_echo "yes" >&6; }
49424	with_liblua="yes"
49425fi
49426
49427
49428elif test $pkg_failed = untried; then
49429     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49430$as_echo "no" >&6; }
49431
49432
49433pkg_failed=no
49434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
49435$as_echo_n "checking for LUA... " >&6; }
49436
49437if test -n "$LUA_CFLAGS"; then
49438    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
49439 elif test -n "$PKG_CONFIG"; then
49440    if test -n "$PKG_CONFIG" && \
49441    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
49442  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
49443  ac_status=$?
49444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49445  test $ac_status = 0; }; then
49446  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
49447		      test "x$?" != "x0" && pkg_failed=yes
49448else
49449  pkg_failed=yes
49450fi
49451 else
49452    pkg_failed=untried
49453fi
49454if test -n "$LUA_LIBS"; then
49455    pkg_cv_LUA_LIBS="$LUA_LIBS"
49456 elif test -n "$PKG_CONFIG"; then
49457    if test -n "$PKG_CONFIG" && \
49458    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
49459  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
49460  ac_status=$?
49461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49462  test $ac_status = 0; }; then
49463  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
49464		      test "x$?" != "x0" && pkg_failed=yes
49465else
49466  pkg_failed=yes
49467fi
49468 else
49469    pkg_failed=untried
49470fi
49471
49472
49473
49474if test $pkg_failed = yes; then
49475   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49476$as_echo "no" >&6; }
49477
49478if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49479        _pkg_short_errors_supported=yes
49480else
49481        _pkg_short_errors_supported=no
49482fi
49483        if test $_pkg_short_errors_supported = yes; then
49484	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
49485        else
49486	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
49487        fi
49488	# Put the nasty error message in config.log where it belongs
49489	echo "$LUA_PKG_ERRORS" >&5
49490
49491	with_liblua="no (pkg-config cannot find liblua)"
49492
49493elif test $pkg_failed = untried; then
49494     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49495$as_echo "no" >&6; }
49496	with_liblua="no (pkg-config cannot find liblua)"
49497
49498else
49499	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
49500	LUA_LIBS=$pkg_cv_LUA_LIBS
49501        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49502$as_echo "yes" >&6; }
49503	with_liblua="yes"
49504fi
49505
49506
49507else
49508	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
49509	LUA_LIBS=$pkg_cv_LUA_LIBS
49510        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49511$as_echo "yes" >&6; }
49512	with_liblua="yes"
49513fi
49514
49515
49516elif test $pkg_failed = untried; then
49517     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49518$as_echo "no" >&6; }
49519
49520
49521pkg_failed=no
49522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
49523$as_echo_n "checking for LUA... " >&6; }
49524
49525if test -n "$LUA_CFLAGS"; then
49526    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
49527 elif test -n "$PKG_CONFIG"; then
49528    if test -n "$PKG_CONFIG" && \
49529    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
49530  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
49531  ac_status=$?
49532  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49533  test $ac_status = 0; }; then
49534  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
49535		      test "x$?" != "x0" && pkg_failed=yes
49536else
49537  pkg_failed=yes
49538fi
49539 else
49540    pkg_failed=untried
49541fi
49542if test -n "$LUA_LIBS"; then
49543    pkg_cv_LUA_LIBS="$LUA_LIBS"
49544 elif test -n "$PKG_CONFIG"; then
49545    if test -n "$PKG_CONFIG" && \
49546    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
49547  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
49548  ac_status=$?
49549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49550  test $ac_status = 0; }; then
49551  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
49552		      test "x$?" != "x0" && pkg_failed=yes
49553else
49554  pkg_failed=yes
49555fi
49556 else
49557    pkg_failed=untried
49558fi
49559
49560
49561
49562if test $pkg_failed = yes; then
49563   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49564$as_echo "no" >&6; }
49565
49566if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49567        _pkg_short_errors_supported=yes
49568else
49569        _pkg_short_errors_supported=no
49570fi
49571        if test $_pkg_short_errors_supported = yes; then
49572	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
49573        else
49574	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
49575        fi
49576	# Put the nasty error message in config.log where it belongs
49577	echo "$LUA_PKG_ERRORS" >&5
49578
49579
49580
49581pkg_failed=no
49582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
49583$as_echo_n "checking for LUA... " >&6; }
49584
49585if test -n "$LUA_CFLAGS"; then
49586    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
49587 elif test -n "$PKG_CONFIG"; then
49588    if test -n "$PKG_CONFIG" && \
49589    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
49590  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
49591  ac_status=$?
49592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49593  test $ac_status = 0; }; then
49594  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
49595		      test "x$?" != "x0" && pkg_failed=yes
49596else
49597  pkg_failed=yes
49598fi
49599 else
49600    pkg_failed=untried
49601fi
49602if test -n "$LUA_LIBS"; then
49603    pkg_cv_LUA_LIBS="$LUA_LIBS"
49604 elif test -n "$PKG_CONFIG"; then
49605    if test -n "$PKG_CONFIG" && \
49606    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
49607  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
49608  ac_status=$?
49609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49610  test $ac_status = 0; }; then
49611  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
49612		      test "x$?" != "x0" && pkg_failed=yes
49613else
49614  pkg_failed=yes
49615fi
49616 else
49617    pkg_failed=untried
49618fi
49619
49620
49621
49622if test $pkg_failed = yes; then
49623   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49624$as_echo "no" >&6; }
49625
49626if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49627        _pkg_short_errors_supported=yes
49628else
49629        _pkg_short_errors_supported=no
49630fi
49631        if test $_pkg_short_errors_supported = yes; then
49632	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
49633        else
49634	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
49635        fi
49636	# Put the nasty error message in config.log where it belongs
49637	echo "$LUA_PKG_ERRORS" >&5
49638
49639	with_liblua="no (pkg-config cannot find liblua)"
49640
49641elif test $pkg_failed = untried; then
49642     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49643$as_echo "no" >&6; }
49644	with_liblua="no (pkg-config cannot find liblua)"
49645
49646else
49647	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
49648	LUA_LIBS=$pkg_cv_LUA_LIBS
49649        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49650$as_echo "yes" >&6; }
49651	with_liblua="yes"
49652fi
49653
49654
49655elif test $pkg_failed = untried; then
49656     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49657$as_echo "no" >&6; }
49658
49659
49660pkg_failed=no
49661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
49662$as_echo_n "checking for LUA... " >&6; }
49663
49664if test -n "$LUA_CFLAGS"; then
49665    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
49666 elif test -n "$PKG_CONFIG"; then
49667    if test -n "$PKG_CONFIG" && \
49668    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
49669  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
49670  ac_status=$?
49671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49672  test $ac_status = 0; }; then
49673  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
49674		      test "x$?" != "x0" && pkg_failed=yes
49675else
49676  pkg_failed=yes
49677fi
49678 else
49679    pkg_failed=untried
49680fi
49681if test -n "$LUA_LIBS"; then
49682    pkg_cv_LUA_LIBS="$LUA_LIBS"
49683 elif test -n "$PKG_CONFIG"; then
49684    if test -n "$PKG_CONFIG" && \
49685    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
49686  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
49687  ac_status=$?
49688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49689  test $ac_status = 0; }; then
49690  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
49691		      test "x$?" != "x0" && pkg_failed=yes
49692else
49693  pkg_failed=yes
49694fi
49695 else
49696    pkg_failed=untried
49697fi
49698
49699
49700
49701if test $pkg_failed = yes; then
49702   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49703$as_echo "no" >&6; }
49704
49705if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49706        _pkg_short_errors_supported=yes
49707else
49708        _pkg_short_errors_supported=no
49709fi
49710        if test $_pkg_short_errors_supported = yes; then
49711	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
49712        else
49713	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
49714        fi
49715	# Put the nasty error message in config.log where it belongs
49716	echo "$LUA_PKG_ERRORS" >&5
49717
49718	with_liblua="no (pkg-config cannot find liblua)"
49719
49720elif test $pkg_failed = untried; then
49721     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49722$as_echo "no" >&6; }
49723	with_liblua="no (pkg-config cannot find liblua)"
49724
49725else
49726	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
49727	LUA_LIBS=$pkg_cv_LUA_LIBS
49728        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49729$as_echo "yes" >&6; }
49730	with_liblua="yes"
49731fi
49732
49733
49734else
49735	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
49736	LUA_LIBS=$pkg_cv_LUA_LIBS
49737        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49738$as_echo "yes" >&6; }
49739	with_liblua="yes"
49740fi
49741
49742
49743else
49744	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
49745	LUA_LIBS=$pkg_cv_LUA_LIBS
49746        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49747$as_echo "yes" >&6; }
49748	with_liblua="yes"
49749fi
49750
49751
49752else
49753	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
49754	LUA_LIBS=$pkg_cv_LUA_LIBS
49755        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49756$as_echo "yes" >&6; }
49757	with_liblua="yes"
49758fi
49759
49760
49761else
49762	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
49763	LUA_LIBS=$pkg_cv_LUA_LIBS
49764        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49765$as_echo "yes" >&6; }
49766	with_liblua="yes"
49767fi
49768
49769
49770else
49771	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
49772	LUA_LIBS=$pkg_cv_LUA_LIBS
49773        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49774$as_echo "yes" >&6; }
49775	with_liblua="yes"
49776fi
49777
49778
49779elif test $pkg_failed = untried; then
49780     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49781$as_echo "no" >&6; }
49782
49783
49784pkg_failed=no
49785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
49786$as_echo_n "checking for LUA... " >&6; }
49787
49788if test -n "$LUA_CFLAGS"; then
49789    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
49790 elif test -n "$PKG_CONFIG"; then
49791    if test -n "$PKG_CONFIG" && \
49792    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
49793  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
49794  ac_status=$?
49795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49796  test $ac_status = 0; }; then
49797  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.2" 2>/dev/null`
49798		      test "x$?" != "x0" && pkg_failed=yes
49799else
49800  pkg_failed=yes
49801fi
49802 else
49803    pkg_failed=untried
49804fi
49805if test -n "$LUA_LIBS"; then
49806    pkg_cv_LUA_LIBS="$LUA_LIBS"
49807 elif test -n "$PKG_CONFIG"; then
49808    if test -n "$PKG_CONFIG" && \
49809    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
49810  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
49811  ac_status=$?
49812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49813  test $ac_status = 0; }; then
49814  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.2" 2>/dev/null`
49815		      test "x$?" != "x0" && pkg_failed=yes
49816else
49817  pkg_failed=yes
49818fi
49819 else
49820    pkg_failed=untried
49821fi
49822
49823
49824
49825if test $pkg_failed = yes; then
49826   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49827$as_echo "no" >&6; }
49828
49829if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49830        _pkg_short_errors_supported=yes
49831else
49832        _pkg_short_errors_supported=no
49833fi
49834        if test $_pkg_short_errors_supported = yes; then
49835	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.2" 2>&1`
49836        else
49837	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.2" 2>&1`
49838        fi
49839	# Put the nasty error message in config.log where it belongs
49840	echo "$LUA_PKG_ERRORS" >&5
49841
49842
49843
49844pkg_failed=no
49845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
49846$as_echo_n "checking for LUA... " >&6; }
49847
49848if test -n "$LUA_CFLAGS"; then
49849    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
49850 elif test -n "$PKG_CONFIG"; then
49851    if test -n "$PKG_CONFIG" && \
49852    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
49853  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
49854  ac_status=$?
49855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49856  test $ac_status = 0; }; then
49857  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
49858		      test "x$?" != "x0" && pkg_failed=yes
49859else
49860  pkg_failed=yes
49861fi
49862 else
49863    pkg_failed=untried
49864fi
49865if test -n "$LUA_LIBS"; then
49866    pkg_cv_LUA_LIBS="$LUA_LIBS"
49867 elif test -n "$PKG_CONFIG"; then
49868    if test -n "$PKG_CONFIG" && \
49869    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
49870  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
49871  ac_status=$?
49872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49873  test $ac_status = 0; }; then
49874  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
49875		      test "x$?" != "x0" && pkg_failed=yes
49876else
49877  pkg_failed=yes
49878fi
49879 else
49880    pkg_failed=untried
49881fi
49882
49883
49884
49885if test $pkg_failed = yes; then
49886   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49887$as_echo "no" >&6; }
49888
49889if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49890        _pkg_short_errors_supported=yes
49891else
49892        _pkg_short_errors_supported=no
49893fi
49894        if test $_pkg_short_errors_supported = yes; then
49895	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
49896        else
49897	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
49898        fi
49899	# Put the nasty error message in config.log where it belongs
49900	echo "$LUA_PKG_ERRORS" >&5
49901
49902
49903
49904pkg_failed=no
49905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
49906$as_echo_n "checking for LUA... " >&6; }
49907
49908if test -n "$LUA_CFLAGS"; then
49909    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
49910 elif test -n "$PKG_CONFIG"; then
49911    if test -n "$PKG_CONFIG" && \
49912    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
49913  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
49914  ac_status=$?
49915  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49916  test $ac_status = 0; }; then
49917  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
49918		      test "x$?" != "x0" && pkg_failed=yes
49919else
49920  pkg_failed=yes
49921fi
49922 else
49923    pkg_failed=untried
49924fi
49925if test -n "$LUA_LIBS"; then
49926    pkg_cv_LUA_LIBS="$LUA_LIBS"
49927 elif test -n "$PKG_CONFIG"; then
49928    if test -n "$PKG_CONFIG" && \
49929    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
49930  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
49931  ac_status=$?
49932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49933  test $ac_status = 0; }; then
49934  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
49935		      test "x$?" != "x0" && pkg_failed=yes
49936else
49937  pkg_failed=yes
49938fi
49939 else
49940    pkg_failed=untried
49941fi
49942
49943
49944
49945if test $pkg_failed = yes; then
49946   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49947$as_echo "no" >&6; }
49948
49949if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49950        _pkg_short_errors_supported=yes
49951else
49952        _pkg_short_errors_supported=no
49953fi
49954        if test $_pkg_short_errors_supported = yes; then
49955	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
49956        else
49957	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
49958        fi
49959	# Put the nasty error message in config.log where it belongs
49960	echo "$LUA_PKG_ERRORS" >&5
49961
49962
49963
49964pkg_failed=no
49965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
49966$as_echo_n "checking for LUA... " >&6; }
49967
49968if test -n "$LUA_CFLAGS"; then
49969    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
49970 elif test -n "$PKG_CONFIG"; then
49971    if test -n "$PKG_CONFIG" && \
49972    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
49973  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
49974  ac_status=$?
49975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49976  test $ac_status = 0; }; then
49977  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
49978		      test "x$?" != "x0" && pkg_failed=yes
49979else
49980  pkg_failed=yes
49981fi
49982 else
49983    pkg_failed=untried
49984fi
49985if test -n "$LUA_LIBS"; then
49986    pkg_cv_LUA_LIBS="$LUA_LIBS"
49987 elif test -n "$PKG_CONFIG"; then
49988    if test -n "$PKG_CONFIG" && \
49989    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
49990  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
49991  ac_status=$?
49992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49993  test $ac_status = 0; }; then
49994  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
49995		      test "x$?" != "x0" && pkg_failed=yes
49996else
49997  pkg_failed=yes
49998fi
49999 else
50000    pkg_failed=untried
50001fi
50002
50003
50004
50005if test $pkg_failed = yes; then
50006   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50007$as_echo "no" >&6; }
50008
50009if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50010        _pkg_short_errors_supported=yes
50011else
50012        _pkg_short_errors_supported=no
50013fi
50014        if test $_pkg_short_errors_supported = yes; then
50015	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
50016        else
50017	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
50018        fi
50019	# Put the nasty error message in config.log where it belongs
50020	echo "$LUA_PKG_ERRORS" >&5
50021
50022
50023
50024pkg_failed=no
50025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
50026$as_echo_n "checking for LUA... " >&6; }
50027
50028if test -n "$LUA_CFLAGS"; then
50029    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
50030 elif test -n "$PKG_CONFIG"; then
50031    if test -n "$PKG_CONFIG" && \
50032    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
50033  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
50034  ac_status=$?
50035  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50036  test $ac_status = 0; }; then
50037  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
50038		      test "x$?" != "x0" && pkg_failed=yes
50039else
50040  pkg_failed=yes
50041fi
50042 else
50043    pkg_failed=untried
50044fi
50045if test -n "$LUA_LIBS"; then
50046    pkg_cv_LUA_LIBS="$LUA_LIBS"
50047 elif test -n "$PKG_CONFIG"; then
50048    if test -n "$PKG_CONFIG" && \
50049    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
50050  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
50051  ac_status=$?
50052  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50053  test $ac_status = 0; }; then
50054  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
50055		      test "x$?" != "x0" && pkg_failed=yes
50056else
50057  pkg_failed=yes
50058fi
50059 else
50060    pkg_failed=untried
50061fi
50062
50063
50064
50065if test $pkg_failed = yes; then
50066   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50067$as_echo "no" >&6; }
50068
50069if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50070        _pkg_short_errors_supported=yes
50071else
50072        _pkg_short_errors_supported=no
50073fi
50074        if test $_pkg_short_errors_supported = yes; then
50075	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
50076        else
50077	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
50078        fi
50079	# Put the nasty error message in config.log where it belongs
50080	echo "$LUA_PKG_ERRORS" >&5
50081
50082
50083
50084pkg_failed=no
50085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
50086$as_echo_n "checking for LUA... " >&6; }
50087
50088if test -n "$LUA_CFLAGS"; then
50089    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
50090 elif test -n "$PKG_CONFIG"; then
50091    if test -n "$PKG_CONFIG" && \
50092    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
50093  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
50094  ac_status=$?
50095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50096  test $ac_status = 0; }; then
50097  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
50098		      test "x$?" != "x0" && pkg_failed=yes
50099else
50100  pkg_failed=yes
50101fi
50102 else
50103    pkg_failed=untried
50104fi
50105if test -n "$LUA_LIBS"; then
50106    pkg_cv_LUA_LIBS="$LUA_LIBS"
50107 elif test -n "$PKG_CONFIG"; then
50108    if test -n "$PKG_CONFIG" && \
50109    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
50110  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
50111  ac_status=$?
50112  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50113  test $ac_status = 0; }; then
50114  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
50115		      test "x$?" != "x0" && pkg_failed=yes
50116else
50117  pkg_failed=yes
50118fi
50119 else
50120    pkg_failed=untried
50121fi
50122
50123
50124
50125if test $pkg_failed = yes; then
50126   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50127$as_echo "no" >&6; }
50128
50129if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50130        _pkg_short_errors_supported=yes
50131else
50132        _pkg_short_errors_supported=no
50133fi
50134        if test $_pkg_short_errors_supported = yes; then
50135	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
50136        else
50137	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
50138        fi
50139	# Put the nasty error message in config.log where it belongs
50140	echo "$LUA_PKG_ERRORS" >&5
50141
50142	with_liblua="no (pkg-config cannot find liblua)"
50143
50144elif test $pkg_failed = untried; then
50145     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50146$as_echo "no" >&6; }
50147	with_liblua="no (pkg-config cannot find liblua)"
50148
50149else
50150	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
50151	LUA_LIBS=$pkg_cv_LUA_LIBS
50152        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50153$as_echo "yes" >&6; }
50154	with_liblua="yes"
50155fi
50156
50157
50158elif test $pkg_failed = untried; then
50159     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50160$as_echo "no" >&6; }
50161
50162
50163pkg_failed=no
50164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
50165$as_echo_n "checking for LUA... " >&6; }
50166
50167if test -n "$LUA_CFLAGS"; then
50168    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
50169 elif test -n "$PKG_CONFIG"; then
50170    if test -n "$PKG_CONFIG" && \
50171    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
50172  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
50173  ac_status=$?
50174  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50175  test $ac_status = 0; }; then
50176  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
50177		      test "x$?" != "x0" && pkg_failed=yes
50178else
50179  pkg_failed=yes
50180fi
50181 else
50182    pkg_failed=untried
50183fi
50184if test -n "$LUA_LIBS"; then
50185    pkg_cv_LUA_LIBS="$LUA_LIBS"
50186 elif test -n "$PKG_CONFIG"; then
50187    if test -n "$PKG_CONFIG" && \
50188    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
50189  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
50190  ac_status=$?
50191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50192  test $ac_status = 0; }; then
50193  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
50194		      test "x$?" != "x0" && pkg_failed=yes
50195else
50196  pkg_failed=yes
50197fi
50198 else
50199    pkg_failed=untried
50200fi
50201
50202
50203
50204if test $pkg_failed = yes; then
50205   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50206$as_echo "no" >&6; }
50207
50208if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50209        _pkg_short_errors_supported=yes
50210else
50211        _pkg_short_errors_supported=no
50212fi
50213        if test $_pkg_short_errors_supported = yes; then
50214	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
50215        else
50216	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
50217        fi
50218	# Put the nasty error message in config.log where it belongs
50219	echo "$LUA_PKG_ERRORS" >&5
50220
50221	with_liblua="no (pkg-config cannot find liblua)"
50222
50223elif test $pkg_failed = untried; then
50224     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50225$as_echo "no" >&6; }
50226	with_liblua="no (pkg-config cannot find liblua)"
50227
50228else
50229	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
50230	LUA_LIBS=$pkg_cv_LUA_LIBS
50231        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50232$as_echo "yes" >&6; }
50233	with_liblua="yes"
50234fi
50235
50236
50237else
50238	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
50239	LUA_LIBS=$pkg_cv_LUA_LIBS
50240        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50241$as_echo "yes" >&6; }
50242	with_liblua="yes"
50243fi
50244
50245
50246elif test $pkg_failed = untried; then
50247     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50248$as_echo "no" >&6; }
50249
50250
50251pkg_failed=no
50252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
50253$as_echo_n "checking for LUA... " >&6; }
50254
50255if test -n "$LUA_CFLAGS"; then
50256    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
50257 elif test -n "$PKG_CONFIG"; then
50258    if test -n "$PKG_CONFIG" && \
50259    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
50260  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
50261  ac_status=$?
50262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50263  test $ac_status = 0; }; then
50264  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
50265		      test "x$?" != "x0" && pkg_failed=yes
50266else
50267  pkg_failed=yes
50268fi
50269 else
50270    pkg_failed=untried
50271fi
50272if test -n "$LUA_LIBS"; then
50273    pkg_cv_LUA_LIBS="$LUA_LIBS"
50274 elif test -n "$PKG_CONFIG"; then
50275    if test -n "$PKG_CONFIG" && \
50276    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
50277  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
50278  ac_status=$?
50279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50280  test $ac_status = 0; }; then
50281  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
50282		      test "x$?" != "x0" && pkg_failed=yes
50283else
50284  pkg_failed=yes
50285fi
50286 else
50287    pkg_failed=untried
50288fi
50289
50290
50291
50292if test $pkg_failed = yes; then
50293   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50294$as_echo "no" >&6; }
50295
50296if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50297        _pkg_short_errors_supported=yes
50298else
50299        _pkg_short_errors_supported=no
50300fi
50301        if test $_pkg_short_errors_supported = yes; then
50302	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
50303        else
50304	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
50305        fi
50306	# Put the nasty error message in config.log where it belongs
50307	echo "$LUA_PKG_ERRORS" >&5
50308
50309
50310
50311pkg_failed=no
50312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
50313$as_echo_n "checking for LUA... " >&6; }
50314
50315if test -n "$LUA_CFLAGS"; then
50316    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
50317 elif test -n "$PKG_CONFIG"; then
50318    if test -n "$PKG_CONFIG" && \
50319    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
50320  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
50321  ac_status=$?
50322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50323  test $ac_status = 0; }; then
50324  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
50325		      test "x$?" != "x0" && pkg_failed=yes
50326else
50327  pkg_failed=yes
50328fi
50329 else
50330    pkg_failed=untried
50331fi
50332if test -n "$LUA_LIBS"; then
50333    pkg_cv_LUA_LIBS="$LUA_LIBS"
50334 elif test -n "$PKG_CONFIG"; then
50335    if test -n "$PKG_CONFIG" && \
50336    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
50337  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
50338  ac_status=$?
50339  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50340  test $ac_status = 0; }; then
50341  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
50342		      test "x$?" != "x0" && pkg_failed=yes
50343else
50344  pkg_failed=yes
50345fi
50346 else
50347    pkg_failed=untried
50348fi
50349
50350
50351
50352if test $pkg_failed = yes; then
50353   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50354$as_echo "no" >&6; }
50355
50356if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50357        _pkg_short_errors_supported=yes
50358else
50359        _pkg_short_errors_supported=no
50360fi
50361        if test $_pkg_short_errors_supported = yes; then
50362	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
50363        else
50364	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
50365        fi
50366	# Put the nasty error message in config.log where it belongs
50367	echo "$LUA_PKG_ERRORS" >&5
50368
50369	with_liblua="no (pkg-config cannot find liblua)"
50370
50371elif test $pkg_failed = untried; then
50372     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50373$as_echo "no" >&6; }
50374	with_liblua="no (pkg-config cannot find liblua)"
50375
50376else
50377	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
50378	LUA_LIBS=$pkg_cv_LUA_LIBS
50379        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50380$as_echo "yes" >&6; }
50381	with_liblua="yes"
50382fi
50383
50384
50385elif test $pkg_failed = untried; then
50386     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50387$as_echo "no" >&6; }
50388
50389
50390pkg_failed=no
50391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
50392$as_echo_n "checking for LUA... " >&6; }
50393
50394if test -n "$LUA_CFLAGS"; then
50395    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
50396 elif test -n "$PKG_CONFIG"; then
50397    if test -n "$PKG_CONFIG" && \
50398    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
50399  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
50400  ac_status=$?
50401  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50402  test $ac_status = 0; }; then
50403  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
50404		      test "x$?" != "x0" && pkg_failed=yes
50405else
50406  pkg_failed=yes
50407fi
50408 else
50409    pkg_failed=untried
50410fi
50411if test -n "$LUA_LIBS"; then
50412    pkg_cv_LUA_LIBS="$LUA_LIBS"
50413 elif test -n "$PKG_CONFIG"; then
50414    if test -n "$PKG_CONFIG" && \
50415    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
50416  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
50417  ac_status=$?
50418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50419  test $ac_status = 0; }; then
50420  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
50421		      test "x$?" != "x0" && pkg_failed=yes
50422else
50423  pkg_failed=yes
50424fi
50425 else
50426    pkg_failed=untried
50427fi
50428
50429
50430
50431if test $pkg_failed = yes; then
50432   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50433$as_echo "no" >&6; }
50434
50435if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50436        _pkg_short_errors_supported=yes
50437else
50438        _pkg_short_errors_supported=no
50439fi
50440        if test $_pkg_short_errors_supported = yes; then
50441	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
50442        else
50443	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
50444        fi
50445	# Put the nasty error message in config.log where it belongs
50446	echo "$LUA_PKG_ERRORS" >&5
50447
50448	with_liblua="no (pkg-config cannot find liblua)"
50449
50450elif test $pkg_failed = untried; then
50451     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50452$as_echo "no" >&6; }
50453	with_liblua="no (pkg-config cannot find liblua)"
50454
50455else
50456	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
50457	LUA_LIBS=$pkg_cv_LUA_LIBS
50458        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50459$as_echo "yes" >&6; }
50460	with_liblua="yes"
50461fi
50462
50463
50464else
50465	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
50466	LUA_LIBS=$pkg_cv_LUA_LIBS
50467        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50468$as_echo "yes" >&6; }
50469	with_liblua="yes"
50470fi
50471
50472
50473else
50474	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
50475	LUA_LIBS=$pkg_cv_LUA_LIBS
50476        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50477$as_echo "yes" >&6; }
50478	with_liblua="yes"
50479fi
50480
50481
50482elif test $pkg_failed = untried; then
50483     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50484$as_echo "no" >&6; }
50485
50486
50487pkg_failed=no
50488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
50489$as_echo_n "checking for LUA... " >&6; }
50490
50491if test -n "$LUA_CFLAGS"; then
50492    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
50493 elif test -n "$PKG_CONFIG"; then
50494    if test -n "$PKG_CONFIG" && \
50495    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
50496  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
50497  ac_status=$?
50498  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50499  test $ac_status = 0; }; then
50500  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
50501		      test "x$?" != "x0" && pkg_failed=yes
50502else
50503  pkg_failed=yes
50504fi
50505 else
50506    pkg_failed=untried
50507fi
50508if test -n "$LUA_LIBS"; then
50509    pkg_cv_LUA_LIBS="$LUA_LIBS"
50510 elif test -n "$PKG_CONFIG"; then
50511    if test -n "$PKG_CONFIG" && \
50512    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
50513  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
50514  ac_status=$?
50515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50516  test $ac_status = 0; }; then
50517  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
50518		      test "x$?" != "x0" && pkg_failed=yes
50519else
50520  pkg_failed=yes
50521fi
50522 else
50523    pkg_failed=untried
50524fi
50525
50526
50527
50528if test $pkg_failed = yes; then
50529   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50530$as_echo "no" >&6; }
50531
50532if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50533        _pkg_short_errors_supported=yes
50534else
50535        _pkg_short_errors_supported=no
50536fi
50537        if test $_pkg_short_errors_supported = yes; then
50538	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
50539        else
50540	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
50541        fi
50542	# Put the nasty error message in config.log where it belongs
50543	echo "$LUA_PKG_ERRORS" >&5
50544
50545
50546
50547pkg_failed=no
50548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
50549$as_echo_n "checking for LUA... " >&6; }
50550
50551if test -n "$LUA_CFLAGS"; then
50552    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
50553 elif test -n "$PKG_CONFIG"; then
50554    if test -n "$PKG_CONFIG" && \
50555    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
50556  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
50557  ac_status=$?
50558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50559  test $ac_status = 0; }; then
50560  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
50561		      test "x$?" != "x0" && pkg_failed=yes
50562else
50563  pkg_failed=yes
50564fi
50565 else
50566    pkg_failed=untried
50567fi
50568if test -n "$LUA_LIBS"; then
50569    pkg_cv_LUA_LIBS="$LUA_LIBS"
50570 elif test -n "$PKG_CONFIG"; then
50571    if test -n "$PKG_CONFIG" && \
50572    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
50573  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
50574  ac_status=$?
50575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50576  test $ac_status = 0; }; then
50577  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
50578		      test "x$?" != "x0" && pkg_failed=yes
50579else
50580  pkg_failed=yes
50581fi
50582 else
50583    pkg_failed=untried
50584fi
50585
50586
50587
50588if test $pkg_failed = yes; then
50589   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50590$as_echo "no" >&6; }
50591
50592if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50593        _pkg_short_errors_supported=yes
50594else
50595        _pkg_short_errors_supported=no
50596fi
50597        if test $_pkg_short_errors_supported = yes; then
50598	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
50599        else
50600	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
50601        fi
50602	# Put the nasty error message in config.log where it belongs
50603	echo "$LUA_PKG_ERRORS" >&5
50604
50605
50606
50607pkg_failed=no
50608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
50609$as_echo_n "checking for LUA... " >&6; }
50610
50611if test -n "$LUA_CFLAGS"; then
50612    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
50613 elif test -n "$PKG_CONFIG"; then
50614    if test -n "$PKG_CONFIG" && \
50615    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
50616  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
50617  ac_status=$?
50618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50619  test $ac_status = 0; }; then
50620  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
50621		      test "x$?" != "x0" && pkg_failed=yes
50622else
50623  pkg_failed=yes
50624fi
50625 else
50626    pkg_failed=untried
50627fi
50628if test -n "$LUA_LIBS"; then
50629    pkg_cv_LUA_LIBS="$LUA_LIBS"
50630 elif test -n "$PKG_CONFIG"; then
50631    if test -n "$PKG_CONFIG" && \
50632    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
50633  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
50634  ac_status=$?
50635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50636  test $ac_status = 0; }; then
50637  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
50638		      test "x$?" != "x0" && pkg_failed=yes
50639else
50640  pkg_failed=yes
50641fi
50642 else
50643    pkg_failed=untried
50644fi
50645
50646
50647
50648if test $pkg_failed = yes; then
50649   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50650$as_echo "no" >&6; }
50651
50652if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50653        _pkg_short_errors_supported=yes
50654else
50655        _pkg_short_errors_supported=no
50656fi
50657        if test $_pkg_short_errors_supported = yes; then
50658	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
50659        else
50660	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
50661        fi
50662	# Put the nasty error message in config.log where it belongs
50663	echo "$LUA_PKG_ERRORS" >&5
50664
50665	with_liblua="no (pkg-config cannot find liblua)"
50666
50667elif test $pkg_failed = untried; then
50668     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50669$as_echo "no" >&6; }
50670	with_liblua="no (pkg-config cannot find liblua)"
50671
50672else
50673	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
50674	LUA_LIBS=$pkg_cv_LUA_LIBS
50675        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50676$as_echo "yes" >&6; }
50677	with_liblua="yes"
50678fi
50679
50680
50681elif test $pkg_failed = untried; then
50682     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50683$as_echo "no" >&6; }
50684
50685
50686pkg_failed=no
50687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
50688$as_echo_n "checking for LUA... " >&6; }
50689
50690if test -n "$LUA_CFLAGS"; then
50691    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
50692 elif test -n "$PKG_CONFIG"; then
50693    if test -n "$PKG_CONFIG" && \
50694    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
50695  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
50696  ac_status=$?
50697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50698  test $ac_status = 0; }; then
50699  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
50700		      test "x$?" != "x0" && pkg_failed=yes
50701else
50702  pkg_failed=yes
50703fi
50704 else
50705    pkg_failed=untried
50706fi
50707if test -n "$LUA_LIBS"; then
50708    pkg_cv_LUA_LIBS="$LUA_LIBS"
50709 elif test -n "$PKG_CONFIG"; then
50710    if test -n "$PKG_CONFIG" && \
50711    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
50712  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
50713  ac_status=$?
50714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50715  test $ac_status = 0; }; then
50716  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
50717		      test "x$?" != "x0" && pkg_failed=yes
50718else
50719  pkg_failed=yes
50720fi
50721 else
50722    pkg_failed=untried
50723fi
50724
50725
50726
50727if test $pkg_failed = yes; then
50728   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50729$as_echo "no" >&6; }
50730
50731if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50732        _pkg_short_errors_supported=yes
50733else
50734        _pkg_short_errors_supported=no
50735fi
50736        if test $_pkg_short_errors_supported = yes; then
50737	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
50738        else
50739	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
50740        fi
50741	# Put the nasty error message in config.log where it belongs
50742	echo "$LUA_PKG_ERRORS" >&5
50743
50744	with_liblua="no (pkg-config cannot find liblua)"
50745
50746elif test $pkg_failed = untried; then
50747     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50748$as_echo "no" >&6; }
50749	with_liblua="no (pkg-config cannot find liblua)"
50750
50751else
50752	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
50753	LUA_LIBS=$pkg_cv_LUA_LIBS
50754        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50755$as_echo "yes" >&6; }
50756	with_liblua="yes"
50757fi
50758
50759
50760else
50761	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
50762	LUA_LIBS=$pkg_cv_LUA_LIBS
50763        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50764$as_echo "yes" >&6; }
50765	with_liblua="yes"
50766fi
50767
50768
50769elif test $pkg_failed = untried; then
50770     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50771$as_echo "no" >&6; }
50772
50773
50774pkg_failed=no
50775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
50776$as_echo_n "checking for LUA... " >&6; }
50777
50778if test -n "$LUA_CFLAGS"; then
50779    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
50780 elif test -n "$PKG_CONFIG"; then
50781    if test -n "$PKG_CONFIG" && \
50782    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
50783  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
50784  ac_status=$?
50785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50786  test $ac_status = 0; }; then
50787  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
50788		      test "x$?" != "x0" && pkg_failed=yes
50789else
50790  pkg_failed=yes
50791fi
50792 else
50793    pkg_failed=untried
50794fi
50795if test -n "$LUA_LIBS"; then
50796    pkg_cv_LUA_LIBS="$LUA_LIBS"
50797 elif test -n "$PKG_CONFIG"; then
50798    if test -n "$PKG_CONFIG" && \
50799    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
50800  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
50801  ac_status=$?
50802  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50803  test $ac_status = 0; }; then
50804  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
50805		      test "x$?" != "x0" && pkg_failed=yes
50806else
50807  pkg_failed=yes
50808fi
50809 else
50810    pkg_failed=untried
50811fi
50812
50813
50814
50815if test $pkg_failed = yes; then
50816   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50817$as_echo "no" >&6; }
50818
50819if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50820        _pkg_short_errors_supported=yes
50821else
50822        _pkg_short_errors_supported=no
50823fi
50824        if test $_pkg_short_errors_supported = yes; then
50825	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
50826        else
50827	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
50828        fi
50829	# Put the nasty error message in config.log where it belongs
50830	echo "$LUA_PKG_ERRORS" >&5
50831
50832
50833
50834pkg_failed=no
50835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
50836$as_echo_n "checking for LUA... " >&6; }
50837
50838if test -n "$LUA_CFLAGS"; then
50839    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
50840 elif test -n "$PKG_CONFIG"; then
50841    if test -n "$PKG_CONFIG" && \
50842    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
50843  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
50844  ac_status=$?
50845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50846  test $ac_status = 0; }; then
50847  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
50848		      test "x$?" != "x0" && pkg_failed=yes
50849else
50850  pkg_failed=yes
50851fi
50852 else
50853    pkg_failed=untried
50854fi
50855if test -n "$LUA_LIBS"; then
50856    pkg_cv_LUA_LIBS="$LUA_LIBS"
50857 elif test -n "$PKG_CONFIG"; then
50858    if test -n "$PKG_CONFIG" && \
50859    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
50860  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
50861  ac_status=$?
50862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50863  test $ac_status = 0; }; then
50864  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
50865		      test "x$?" != "x0" && pkg_failed=yes
50866else
50867  pkg_failed=yes
50868fi
50869 else
50870    pkg_failed=untried
50871fi
50872
50873
50874
50875if test $pkg_failed = yes; then
50876   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50877$as_echo "no" >&6; }
50878
50879if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50880        _pkg_short_errors_supported=yes
50881else
50882        _pkg_short_errors_supported=no
50883fi
50884        if test $_pkg_short_errors_supported = yes; then
50885	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
50886        else
50887	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
50888        fi
50889	# Put the nasty error message in config.log where it belongs
50890	echo "$LUA_PKG_ERRORS" >&5
50891
50892	with_liblua="no (pkg-config cannot find liblua)"
50893
50894elif test $pkg_failed = untried; then
50895     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50896$as_echo "no" >&6; }
50897	with_liblua="no (pkg-config cannot find liblua)"
50898
50899else
50900	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
50901	LUA_LIBS=$pkg_cv_LUA_LIBS
50902        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50903$as_echo "yes" >&6; }
50904	with_liblua="yes"
50905fi
50906
50907
50908elif test $pkg_failed = untried; then
50909     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50910$as_echo "no" >&6; }
50911
50912
50913pkg_failed=no
50914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
50915$as_echo_n "checking for LUA... " >&6; }
50916
50917if test -n "$LUA_CFLAGS"; then
50918    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
50919 elif test -n "$PKG_CONFIG"; then
50920    if test -n "$PKG_CONFIG" && \
50921    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
50922  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
50923  ac_status=$?
50924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50925  test $ac_status = 0; }; then
50926  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
50927		      test "x$?" != "x0" && pkg_failed=yes
50928else
50929  pkg_failed=yes
50930fi
50931 else
50932    pkg_failed=untried
50933fi
50934if test -n "$LUA_LIBS"; then
50935    pkg_cv_LUA_LIBS="$LUA_LIBS"
50936 elif test -n "$PKG_CONFIG"; then
50937    if test -n "$PKG_CONFIG" && \
50938    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
50939  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
50940  ac_status=$?
50941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50942  test $ac_status = 0; }; then
50943  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
50944		      test "x$?" != "x0" && pkg_failed=yes
50945else
50946  pkg_failed=yes
50947fi
50948 else
50949    pkg_failed=untried
50950fi
50951
50952
50953
50954if test $pkg_failed = yes; then
50955   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50956$as_echo "no" >&6; }
50957
50958if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50959        _pkg_short_errors_supported=yes
50960else
50961        _pkg_short_errors_supported=no
50962fi
50963        if test $_pkg_short_errors_supported = yes; then
50964	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
50965        else
50966	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
50967        fi
50968	# Put the nasty error message in config.log where it belongs
50969	echo "$LUA_PKG_ERRORS" >&5
50970
50971	with_liblua="no (pkg-config cannot find liblua)"
50972
50973elif test $pkg_failed = untried; then
50974     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50975$as_echo "no" >&6; }
50976	with_liblua="no (pkg-config cannot find liblua)"
50977
50978else
50979	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
50980	LUA_LIBS=$pkg_cv_LUA_LIBS
50981        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50982$as_echo "yes" >&6; }
50983	with_liblua="yes"
50984fi
50985
50986
50987else
50988	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
50989	LUA_LIBS=$pkg_cv_LUA_LIBS
50990        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50991$as_echo "yes" >&6; }
50992	with_liblua="yes"
50993fi
50994
50995
50996else
50997	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
50998	LUA_LIBS=$pkg_cv_LUA_LIBS
50999        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51000$as_echo "yes" >&6; }
51001	with_liblua="yes"
51002fi
51003
51004
51005else
51006	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
51007	LUA_LIBS=$pkg_cv_LUA_LIBS
51008        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51009$as_echo "yes" >&6; }
51010	with_liblua="yes"
51011fi
51012
51013
51014elif test $pkg_failed = untried; then
51015     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51016$as_echo "no" >&6; }
51017
51018
51019pkg_failed=no
51020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
51021$as_echo_n "checking for LUA... " >&6; }
51022
51023if test -n "$LUA_CFLAGS"; then
51024    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
51025 elif test -n "$PKG_CONFIG"; then
51026    if test -n "$PKG_CONFIG" && \
51027    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
51028  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
51029  ac_status=$?
51030  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51031  test $ac_status = 0; }; then
51032  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
51033		      test "x$?" != "x0" && pkg_failed=yes
51034else
51035  pkg_failed=yes
51036fi
51037 else
51038    pkg_failed=untried
51039fi
51040if test -n "$LUA_LIBS"; then
51041    pkg_cv_LUA_LIBS="$LUA_LIBS"
51042 elif test -n "$PKG_CONFIG"; then
51043    if test -n "$PKG_CONFIG" && \
51044    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
51045  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
51046  ac_status=$?
51047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51048  test $ac_status = 0; }; then
51049  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
51050		      test "x$?" != "x0" && pkg_failed=yes
51051else
51052  pkg_failed=yes
51053fi
51054 else
51055    pkg_failed=untried
51056fi
51057
51058
51059
51060if test $pkg_failed = yes; then
51061   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51062$as_echo "no" >&6; }
51063
51064if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51065        _pkg_short_errors_supported=yes
51066else
51067        _pkg_short_errors_supported=no
51068fi
51069        if test $_pkg_short_errors_supported = yes; then
51070	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
51071        else
51072	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
51073        fi
51074	# Put the nasty error message in config.log where it belongs
51075	echo "$LUA_PKG_ERRORS" >&5
51076
51077
51078
51079pkg_failed=no
51080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
51081$as_echo_n "checking for LUA... " >&6; }
51082
51083if test -n "$LUA_CFLAGS"; then
51084    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
51085 elif test -n "$PKG_CONFIG"; then
51086    if test -n "$PKG_CONFIG" && \
51087    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
51088  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
51089  ac_status=$?
51090  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51091  test $ac_status = 0; }; then
51092  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
51093		      test "x$?" != "x0" && pkg_failed=yes
51094else
51095  pkg_failed=yes
51096fi
51097 else
51098    pkg_failed=untried
51099fi
51100if test -n "$LUA_LIBS"; then
51101    pkg_cv_LUA_LIBS="$LUA_LIBS"
51102 elif test -n "$PKG_CONFIG"; then
51103    if test -n "$PKG_CONFIG" && \
51104    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
51105  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
51106  ac_status=$?
51107  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51108  test $ac_status = 0; }; then
51109  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
51110		      test "x$?" != "x0" && pkg_failed=yes
51111else
51112  pkg_failed=yes
51113fi
51114 else
51115    pkg_failed=untried
51116fi
51117
51118
51119
51120if test $pkg_failed = yes; then
51121   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51122$as_echo "no" >&6; }
51123
51124if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51125        _pkg_short_errors_supported=yes
51126else
51127        _pkg_short_errors_supported=no
51128fi
51129        if test $_pkg_short_errors_supported = yes; then
51130	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
51131        else
51132	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
51133        fi
51134	# Put the nasty error message in config.log where it belongs
51135	echo "$LUA_PKG_ERRORS" >&5
51136
51137
51138
51139pkg_failed=no
51140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
51141$as_echo_n "checking for LUA... " >&6; }
51142
51143if test -n "$LUA_CFLAGS"; then
51144    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
51145 elif test -n "$PKG_CONFIG"; then
51146    if test -n "$PKG_CONFIG" && \
51147    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
51148  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
51149  ac_status=$?
51150  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51151  test $ac_status = 0; }; then
51152  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
51153		      test "x$?" != "x0" && pkg_failed=yes
51154else
51155  pkg_failed=yes
51156fi
51157 else
51158    pkg_failed=untried
51159fi
51160if test -n "$LUA_LIBS"; then
51161    pkg_cv_LUA_LIBS="$LUA_LIBS"
51162 elif test -n "$PKG_CONFIG"; then
51163    if test -n "$PKG_CONFIG" && \
51164    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
51165  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
51166  ac_status=$?
51167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51168  test $ac_status = 0; }; then
51169  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
51170		      test "x$?" != "x0" && pkg_failed=yes
51171else
51172  pkg_failed=yes
51173fi
51174 else
51175    pkg_failed=untried
51176fi
51177
51178
51179
51180if test $pkg_failed = yes; then
51181   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51182$as_echo "no" >&6; }
51183
51184if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51185        _pkg_short_errors_supported=yes
51186else
51187        _pkg_short_errors_supported=no
51188fi
51189        if test $_pkg_short_errors_supported = yes; then
51190	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
51191        else
51192	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
51193        fi
51194	# Put the nasty error message in config.log where it belongs
51195	echo "$LUA_PKG_ERRORS" >&5
51196
51197
51198
51199pkg_failed=no
51200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
51201$as_echo_n "checking for LUA... " >&6; }
51202
51203if test -n "$LUA_CFLAGS"; then
51204    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
51205 elif test -n "$PKG_CONFIG"; then
51206    if test -n "$PKG_CONFIG" && \
51207    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
51208  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
51209  ac_status=$?
51210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51211  test $ac_status = 0; }; then
51212  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
51213		      test "x$?" != "x0" && pkg_failed=yes
51214else
51215  pkg_failed=yes
51216fi
51217 else
51218    pkg_failed=untried
51219fi
51220if test -n "$LUA_LIBS"; then
51221    pkg_cv_LUA_LIBS="$LUA_LIBS"
51222 elif test -n "$PKG_CONFIG"; then
51223    if test -n "$PKG_CONFIG" && \
51224    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
51225  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
51226  ac_status=$?
51227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51228  test $ac_status = 0; }; then
51229  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
51230		      test "x$?" != "x0" && pkg_failed=yes
51231else
51232  pkg_failed=yes
51233fi
51234 else
51235    pkg_failed=untried
51236fi
51237
51238
51239
51240if test $pkg_failed = yes; then
51241   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51242$as_echo "no" >&6; }
51243
51244if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51245        _pkg_short_errors_supported=yes
51246else
51247        _pkg_short_errors_supported=no
51248fi
51249        if test $_pkg_short_errors_supported = yes; then
51250	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
51251        else
51252	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
51253        fi
51254	# Put the nasty error message in config.log where it belongs
51255	echo "$LUA_PKG_ERRORS" >&5
51256
51257	with_liblua="no (pkg-config cannot find liblua)"
51258
51259elif test $pkg_failed = untried; then
51260     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51261$as_echo "no" >&6; }
51262	with_liblua="no (pkg-config cannot find liblua)"
51263
51264else
51265	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
51266	LUA_LIBS=$pkg_cv_LUA_LIBS
51267        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51268$as_echo "yes" >&6; }
51269	with_liblua="yes"
51270fi
51271
51272
51273elif test $pkg_failed = untried; then
51274     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51275$as_echo "no" >&6; }
51276
51277
51278pkg_failed=no
51279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
51280$as_echo_n "checking for LUA... " >&6; }
51281
51282if test -n "$LUA_CFLAGS"; then
51283    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
51284 elif test -n "$PKG_CONFIG"; then
51285    if test -n "$PKG_CONFIG" && \
51286    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
51287  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
51288  ac_status=$?
51289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51290  test $ac_status = 0; }; then
51291  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
51292		      test "x$?" != "x0" && pkg_failed=yes
51293else
51294  pkg_failed=yes
51295fi
51296 else
51297    pkg_failed=untried
51298fi
51299if test -n "$LUA_LIBS"; then
51300    pkg_cv_LUA_LIBS="$LUA_LIBS"
51301 elif test -n "$PKG_CONFIG"; then
51302    if test -n "$PKG_CONFIG" && \
51303    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
51304  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
51305  ac_status=$?
51306  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51307  test $ac_status = 0; }; then
51308  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
51309		      test "x$?" != "x0" && pkg_failed=yes
51310else
51311  pkg_failed=yes
51312fi
51313 else
51314    pkg_failed=untried
51315fi
51316
51317
51318
51319if test $pkg_failed = yes; then
51320   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51321$as_echo "no" >&6; }
51322
51323if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51324        _pkg_short_errors_supported=yes
51325else
51326        _pkg_short_errors_supported=no
51327fi
51328        if test $_pkg_short_errors_supported = yes; then
51329	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
51330        else
51331	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
51332        fi
51333	# Put the nasty error message in config.log where it belongs
51334	echo "$LUA_PKG_ERRORS" >&5
51335
51336	with_liblua="no (pkg-config cannot find liblua)"
51337
51338elif test $pkg_failed = untried; then
51339     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51340$as_echo "no" >&6; }
51341	with_liblua="no (pkg-config cannot find liblua)"
51342
51343else
51344	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
51345	LUA_LIBS=$pkg_cv_LUA_LIBS
51346        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51347$as_echo "yes" >&6; }
51348	with_liblua="yes"
51349fi
51350
51351
51352else
51353	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
51354	LUA_LIBS=$pkg_cv_LUA_LIBS
51355        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51356$as_echo "yes" >&6; }
51357	with_liblua="yes"
51358fi
51359
51360
51361elif test $pkg_failed = untried; then
51362     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51363$as_echo "no" >&6; }
51364
51365
51366pkg_failed=no
51367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
51368$as_echo_n "checking for LUA... " >&6; }
51369
51370if test -n "$LUA_CFLAGS"; then
51371    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
51372 elif test -n "$PKG_CONFIG"; then
51373    if test -n "$PKG_CONFIG" && \
51374    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
51375  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
51376  ac_status=$?
51377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51378  test $ac_status = 0; }; then
51379  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
51380		      test "x$?" != "x0" && pkg_failed=yes
51381else
51382  pkg_failed=yes
51383fi
51384 else
51385    pkg_failed=untried
51386fi
51387if test -n "$LUA_LIBS"; then
51388    pkg_cv_LUA_LIBS="$LUA_LIBS"
51389 elif test -n "$PKG_CONFIG"; then
51390    if test -n "$PKG_CONFIG" && \
51391    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
51392  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
51393  ac_status=$?
51394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51395  test $ac_status = 0; }; then
51396  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
51397		      test "x$?" != "x0" && pkg_failed=yes
51398else
51399  pkg_failed=yes
51400fi
51401 else
51402    pkg_failed=untried
51403fi
51404
51405
51406
51407if test $pkg_failed = yes; then
51408   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51409$as_echo "no" >&6; }
51410
51411if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51412        _pkg_short_errors_supported=yes
51413else
51414        _pkg_short_errors_supported=no
51415fi
51416        if test $_pkg_short_errors_supported = yes; then
51417	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
51418        else
51419	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
51420        fi
51421	# Put the nasty error message in config.log where it belongs
51422	echo "$LUA_PKG_ERRORS" >&5
51423
51424
51425
51426pkg_failed=no
51427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
51428$as_echo_n "checking for LUA... " >&6; }
51429
51430if test -n "$LUA_CFLAGS"; then
51431    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
51432 elif test -n "$PKG_CONFIG"; then
51433    if test -n "$PKG_CONFIG" && \
51434    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
51435  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
51436  ac_status=$?
51437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51438  test $ac_status = 0; }; then
51439  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
51440		      test "x$?" != "x0" && pkg_failed=yes
51441else
51442  pkg_failed=yes
51443fi
51444 else
51445    pkg_failed=untried
51446fi
51447if test -n "$LUA_LIBS"; then
51448    pkg_cv_LUA_LIBS="$LUA_LIBS"
51449 elif test -n "$PKG_CONFIG"; then
51450    if test -n "$PKG_CONFIG" && \
51451    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
51452  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
51453  ac_status=$?
51454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51455  test $ac_status = 0; }; then
51456  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
51457		      test "x$?" != "x0" && pkg_failed=yes
51458else
51459  pkg_failed=yes
51460fi
51461 else
51462    pkg_failed=untried
51463fi
51464
51465
51466
51467if test $pkg_failed = yes; then
51468   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51469$as_echo "no" >&6; }
51470
51471if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51472        _pkg_short_errors_supported=yes
51473else
51474        _pkg_short_errors_supported=no
51475fi
51476        if test $_pkg_short_errors_supported = yes; then
51477	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
51478        else
51479	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
51480        fi
51481	# Put the nasty error message in config.log where it belongs
51482	echo "$LUA_PKG_ERRORS" >&5
51483
51484	with_liblua="no (pkg-config cannot find liblua)"
51485
51486elif test $pkg_failed = untried; then
51487     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51488$as_echo "no" >&6; }
51489	with_liblua="no (pkg-config cannot find liblua)"
51490
51491else
51492	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
51493	LUA_LIBS=$pkg_cv_LUA_LIBS
51494        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51495$as_echo "yes" >&6; }
51496	with_liblua="yes"
51497fi
51498
51499
51500elif test $pkg_failed = untried; then
51501     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51502$as_echo "no" >&6; }
51503
51504
51505pkg_failed=no
51506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
51507$as_echo_n "checking for LUA... " >&6; }
51508
51509if test -n "$LUA_CFLAGS"; then
51510    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
51511 elif test -n "$PKG_CONFIG"; then
51512    if test -n "$PKG_CONFIG" && \
51513    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
51514  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
51515  ac_status=$?
51516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51517  test $ac_status = 0; }; then
51518  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
51519		      test "x$?" != "x0" && pkg_failed=yes
51520else
51521  pkg_failed=yes
51522fi
51523 else
51524    pkg_failed=untried
51525fi
51526if test -n "$LUA_LIBS"; then
51527    pkg_cv_LUA_LIBS="$LUA_LIBS"
51528 elif test -n "$PKG_CONFIG"; then
51529    if test -n "$PKG_CONFIG" && \
51530    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
51531  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
51532  ac_status=$?
51533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51534  test $ac_status = 0; }; then
51535  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
51536		      test "x$?" != "x0" && pkg_failed=yes
51537else
51538  pkg_failed=yes
51539fi
51540 else
51541    pkg_failed=untried
51542fi
51543
51544
51545
51546if test $pkg_failed = yes; then
51547   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51548$as_echo "no" >&6; }
51549
51550if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51551        _pkg_short_errors_supported=yes
51552else
51553        _pkg_short_errors_supported=no
51554fi
51555        if test $_pkg_short_errors_supported = yes; then
51556	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
51557        else
51558	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
51559        fi
51560	# Put the nasty error message in config.log where it belongs
51561	echo "$LUA_PKG_ERRORS" >&5
51562
51563	with_liblua="no (pkg-config cannot find liblua)"
51564
51565elif test $pkg_failed = untried; then
51566     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51567$as_echo "no" >&6; }
51568	with_liblua="no (pkg-config cannot find liblua)"
51569
51570else
51571	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
51572	LUA_LIBS=$pkg_cv_LUA_LIBS
51573        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51574$as_echo "yes" >&6; }
51575	with_liblua="yes"
51576fi
51577
51578
51579else
51580	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
51581	LUA_LIBS=$pkg_cv_LUA_LIBS
51582        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51583$as_echo "yes" >&6; }
51584	with_liblua="yes"
51585fi
51586
51587
51588else
51589	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
51590	LUA_LIBS=$pkg_cv_LUA_LIBS
51591        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51592$as_echo "yes" >&6; }
51593	with_liblua="yes"
51594fi
51595
51596
51597elif test $pkg_failed = untried; then
51598     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51599$as_echo "no" >&6; }
51600
51601
51602pkg_failed=no
51603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
51604$as_echo_n "checking for LUA... " >&6; }
51605
51606if test -n "$LUA_CFLAGS"; then
51607    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
51608 elif test -n "$PKG_CONFIG"; then
51609    if test -n "$PKG_CONFIG" && \
51610    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
51611  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
51612  ac_status=$?
51613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51614  test $ac_status = 0; }; then
51615  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
51616		      test "x$?" != "x0" && pkg_failed=yes
51617else
51618  pkg_failed=yes
51619fi
51620 else
51621    pkg_failed=untried
51622fi
51623if test -n "$LUA_LIBS"; then
51624    pkg_cv_LUA_LIBS="$LUA_LIBS"
51625 elif test -n "$PKG_CONFIG"; then
51626    if test -n "$PKG_CONFIG" && \
51627    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
51628  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
51629  ac_status=$?
51630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51631  test $ac_status = 0; }; then
51632  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
51633		      test "x$?" != "x0" && pkg_failed=yes
51634else
51635  pkg_failed=yes
51636fi
51637 else
51638    pkg_failed=untried
51639fi
51640
51641
51642
51643if test $pkg_failed = yes; then
51644   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51645$as_echo "no" >&6; }
51646
51647if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51648        _pkg_short_errors_supported=yes
51649else
51650        _pkg_short_errors_supported=no
51651fi
51652        if test $_pkg_short_errors_supported = yes; then
51653	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
51654        else
51655	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
51656        fi
51657	# Put the nasty error message in config.log where it belongs
51658	echo "$LUA_PKG_ERRORS" >&5
51659
51660
51661
51662pkg_failed=no
51663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
51664$as_echo_n "checking for LUA... " >&6; }
51665
51666if test -n "$LUA_CFLAGS"; then
51667    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
51668 elif test -n "$PKG_CONFIG"; then
51669    if test -n "$PKG_CONFIG" && \
51670    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
51671  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
51672  ac_status=$?
51673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51674  test $ac_status = 0; }; then
51675  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
51676		      test "x$?" != "x0" && pkg_failed=yes
51677else
51678  pkg_failed=yes
51679fi
51680 else
51681    pkg_failed=untried
51682fi
51683if test -n "$LUA_LIBS"; then
51684    pkg_cv_LUA_LIBS="$LUA_LIBS"
51685 elif test -n "$PKG_CONFIG"; then
51686    if test -n "$PKG_CONFIG" && \
51687    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
51688  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
51689  ac_status=$?
51690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51691  test $ac_status = 0; }; then
51692  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
51693		      test "x$?" != "x0" && pkg_failed=yes
51694else
51695  pkg_failed=yes
51696fi
51697 else
51698    pkg_failed=untried
51699fi
51700
51701
51702
51703if test $pkg_failed = yes; then
51704   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51705$as_echo "no" >&6; }
51706
51707if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51708        _pkg_short_errors_supported=yes
51709else
51710        _pkg_short_errors_supported=no
51711fi
51712        if test $_pkg_short_errors_supported = yes; then
51713	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
51714        else
51715	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
51716        fi
51717	# Put the nasty error message in config.log where it belongs
51718	echo "$LUA_PKG_ERRORS" >&5
51719
51720
51721
51722pkg_failed=no
51723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
51724$as_echo_n "checking for LUA... " >&6; }
51725
51726if test -n "$LUA_CFLAGS"; then
51727    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
51728 elif test -n "$PKG_CONFIG"; then
51729    if test -n "$PKG_CONFIG" && \
51730    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
51731  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
51732  ac_status=$?
51733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51734  test $ac_status = 0; }; then
51735  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
51736		      test "x$?" != "x0" && pkg_failed=yes
51737else
51738  pkg_failed=yes
51739fi
51740 else
51741    pkg_failed=untried
51742fi
51743if test -n "$LUA_LIBS"; then
51744    pkg_cv_LUA_LIBS="$LUA_LIBS"
51745 elif test -n "$PKG_CONFIG"; then
51746    if test -n "$PKG_CONFIG" && \
51747    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
51748  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
51749  ac_status=$?
51750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51751  test $ac_status = 0; }; then
51752  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
51753		      test "x$?" != "x0" && pkg_failed=yes
51754else
51755  pkg_failed=yes
51756fi
51757 else
51758    pkg_failed=untried
51759fi
51760
51761
51762
51763if test $pkg_failed = yes; then
51764   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51765$as_echo "no" >&6; }
51766
51767if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51768        _pkg_short_errors_supported=yes
51769else
51770        _pkg_short_errors_supported=no
51771fi
51772        if test $_pkg_short_errors_supported = yes; then
51773	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
51774        else
51775	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
51776        fi
51777	# Put the nasty error message in config.log where it belongs
51778	echo "$LUA_PKG_ERRORS" >&5
51779
51780	with_liblua="no (pkg-config cannot find liblua)"
51781
51782elif test $pkg_failed = untried; then
51783     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51784$as_echo "no" >&6; }
51785	with_liblua="no (pkg-config cannot find liblua)"
51786
51787else
51788	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
51789	LUA_LIBS=$pkg_cv_LUA_LIBS
51790        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51791$as_echo "yes" >&6; }
51792	with_liblua="yes"
51793fi
51794
51795
51796elif test $pkg_failed = untried; then
51797     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51798$as_echo "no" >&6; }
51799
51800
51801pkg_failed=no
51802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
51803$as_echo_n "checking for LUA... " >&6; }
51804
51805if test -n "$LUA_CFLAGS"; then
51806    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
51807 elif test -n "$PKG_CONFIG"; then
51808    if test -n "$PKG_CONFIG" && \
51809    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
51810  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
51811  ac_status=$?
51812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51813  test $ac_status = 0; }; then
51814  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
51815		      test "x$?" != "x0" && pkg_failed=yes
51816else
51817  pkg_failed=yes
51818fi
51819 else
51820    pkg_failed=untried
51821fi
51822if test -n "$LUA_LIBS"; then
51823    pkg_cv_LUA_LIBS="$LUA_LIBS"
51824 elif test -n "$PKG_CONFIG"; then
51825    if test -n "$PKG_CONFIG" && \
51826    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
51827  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
51828  ac_status=$?
51829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51830  test $ac_status = 0; }; then
51831  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
51832		      test "x$?" != "x0" && pkg_failed=yes
51833else
51834  pkg_failed=yes
51835fi
51836 else
51837    pkg_failed=untried
51838fi
51839
51840
51841
51842if test $pkg_failed = yes; then
51843   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51844$as_echo "no" >&6; }
51845
51846if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51847        _pkg_short_errors_supported=yes
51848else
51849        _pkg_short_errors_supported=no
51850fi
51851        if test $_pkg_short_errors_supported = yes; then
51852	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
51853        else
51854	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
51855        fi
51856	# Put the nasty error message in config.log where it belongs
51857	echo "$LUA_PKG_ERRORS" >&5
51858
51859	with_liblua="no (pkg-config cannot find liblua)"
51860
51861elif test $pkg_failed = untried; then
51862     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51863$as_echo "no" >&6; }
51864	with_liblua="no (pkg-config cannot find liblua)"
51865
51866else
51867	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
51868	LUA_LIBS=$pkg_cv_LUA_LIBS
51869        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51870$as_echo "yes" >&6; }
51871	with_liblua="yes"
51872fi
51873
51874
51875else
51876	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
51877	LUA_LIBS=$pkg_cv_LUA_LIBS
51878        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51879$as_echo "yes" >&6; }
51880	with_liblua="yes"
51881fi
51882
51883
51884elif test $pkg_failed = untried; then
51885     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51886$as_echo "no" >&6; }
51887
51888
51889pkg_failed=no
51890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
51891$as_echo_n "checking for LUA... " >&6; }
51892
51893if test -n "$LUA_CFLAGS"; then
51894    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
51895 elif test -n "$PKG_CONFIG"; then
51896    if test -n "$PKG_CONFIG" && \
51897    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
51898  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
51899  ac_status=$?
51900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51901  test $ac_status = 0; }; then
51902  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
51903		      test "x$?" != "x0" && pkg_failed=yes
51904else
51905  pkg_failed=yes
51906fi
51907 else
51908    pkg_failed=untried
51909fi
51910if test -n "$LUA_LIBS"; then
51911    pkg_cv_LUA_LIBS="$LUA_LIBS"
51912 elif test -n "$PKG_CONFIG"; then
51913    if test -n "$PKG_CONFIG" && \
51914    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
51915  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
51916  ac_status=$?
51917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51918  test $ac_status = 0; }; then
51919  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
51920		      test "x$?" != "x0" && pkg_failed=yes
51921else
51922  pkg_failed=yes
51923fi
51924 else
51925    pkg_failed=untried
51926fi
51927
51928
51929
51930if test $pkg_failed = yes; then
51931   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51932$as_echo "no" >&6; }
51933
51934if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51935        _pkg_short_errors_supported=yes
51936else
51937        _pkg_short_errors_supported=no
51938fi
51939        if test $_pkg_short_errors_supported = yes; then
51940	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
51941        else
51942	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
51943        fi
51944	# Put the nasty error message in config.log where it belongs
51945	echo "$LUA_PKG_ERRORS" >&5
51946
51947
51948
51949pkg_failed=no
51950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
51951$as_echo_n "checking for LUA... " >&6; }
51952
51953if test -n "$LUA_CFLAGS"; then
51954    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
51955 elif test -n "$PKG_CONFIG"; then
51956    if test -n "$PKG_CONFIG" && \
51957    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
51958  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
51959  ac_status=$?
51960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51961  test $ac_status = 0; }; then
51962  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
51963		      test "x$?" != "x0" && pkg_failed=yes
51964else
51965  pkg_failed=yes
51966fi
51967 else
51968    pkg_failed=untried
51969fi
51970if test -n "$LUA_LIBS"; then
51971    pkg_cv_LUA_LIBS="$LUA_LIBS"
51972 elif test -n "$PKG_CONFIG"; then
51973    if test -n "$PKG_CONFIG" && \
51974    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
51975  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
51976  ac_status=$?
51977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51978  test $ac_status = 0; }; then
51979  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
51980		      test "x$?" != "x0" && pkg_failed=yes
51981else
51982  pkg_failed=yes
51983fi
51984 else
51985    pkg_failed=untried
51986fi
51987
51988
51989
51990if test $pkg_failed = yes; then
51991   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51992$as_echo "no" >&6; }
51993
51994if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51995        _pkg_short_errors_supported=yes
51996else
51997        _pkg_short_errors_supported=no
51998fi
51999        if test $_pkg_short_errors_supported = yes; then
52000	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
52001        else
52002	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
52003        fi
52004	# Put the nasty error message in config.log where it belongs
52005	echo "$LUA_PKG_ERRORS" >&5
52006
52007	with_liblua="no (pkg-config cannot find liblua)"
52008
52009elif test $pkg_failed = untried; then
52010     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52011$as_echo "no" >&6; }
52012	with_liblua="no (pkg-config cannot find liblua)"
52013
52014else
52015	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
52016	LUA_LIBS=$pkg_cv_LUA_LIBS
52017        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52018$as_echo "yes" >&6; }
52019	with_liblua="yes"
52020fi
52021
52022
52023elif test $pkg_failed = untried; then
52024     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52025$as_echo "no" >&6; }
52026
52027
52028pkg_failed=no
52029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
52030$as_echo_n "checking for LUA... " >&6; }
52031
52032if test -n "$LUA_CFLAGS"; then
52033    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
52034 elif test -n "$PKG_CONFIG"; then
52035    if test -n "$PKG_CONFIG" && \
52036    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
52037  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
52038  ac_status=$?
52039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52040  test $ac_status = 0; }; then
52041  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
52042		      test "x$?" != "x0" && pkg_failed=yes
52043else
52044  pkg_failed=yes
52045fi
52046 else
52047    pkg_failed=untried
52048fi
52049if test -n "$LUA_LIBS"; then
52050    pkg_cv_LUA_LIBS="$LUA_LIBS"
52051 elif test -n "$PKG_CONFIG"; then
52052    if test -n "$PKG_CONFIG" && \
52053    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
52054  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
52055  ac_status=$?
52056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52057  test $ac_status = 0; }; then
52058  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
52059		      test "x$?" != "x0" && pkg_failed=yes
52060else
52061  pkg_failed=yes
52062fi
52063 else
52064    pkg_failed=untried
52065fi
52066
52067
52068
52069if test $pkg_failed = yes; then
52070   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52071$as_echo "no" >&6; }
52072
52073if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52074        _pkg_short_errors_supported=yes
52075else
52076        _pkg_short_errors_supported=no
52077fi
52078        if test $_pkg_short_errors_supported = yes; then
52079	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
52080        else
52081	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
52082        fi
52083	# Put the nasty error message in config.log where it belongs
52084	echo "$LUA_PKG_ERRORS" >&5
52085
52086	with_liblua="no (pkg-config cannot find liblua)"
52087
52088elif test $pkg_failed = untried; then
52089     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52090$as_echo "no" >&6; }
52091	with_liblua="no (pkg-config cannot find liblua)"
52092
52093else
52094	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
52095	LUA_LIBS=$pkg_cv_LUA_LIBS
52096        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52097$as_echo "yes" >&6; }
52098	with_liblua="yes"
52099fi
52100
52101
52102else
52103	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
52104	LUA_LIBS=$pkg_cv_LUA_LIBS
52105        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52106$as_echo "yes" >&6; }
52107	with_liblua="yes"
52108fi
52109
52110
52111else
52112	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
52113	LUA_LIBS=$pkg_cv_LUA_LIBS
52114        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52115$as_echo "yes" >&6; }
52116	with_liblua="yes"
52117fi
52118
52119
52120else
52121	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
52122	LUA_LIBS=$pkg_cv_LUA_LIBS
52123        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52124$as_echo "yes" >&6; }
52125	with_liblua="yes"
52126fi
52127
52128
52129else
52130	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
52131	LUA_LIBS=$pkg_cv_LUA_LIBS
52132        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52133$as_echo "yes" >&6; }
52134	with_liblua="yes"
52135fi
52136
52137
52138elif test $pkg_failed = untried; then
52139     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52140$as_echo "no" >&6; }
52141
52142
52143pkg_failed=no
52144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
52145$as_echo_n "checking for LUA... " >&6; }
52146
52147if test -n "$LUA_CFLAGS"; then
52148    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
52149 elif test -n "$PKG_CONFIG"; then
52150    if test -n "$PKG_CONFIG" && \
52151    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
52152  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
52153  ac_status=$?
52154  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52155  test $ac_status = 0; }; then
52156  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
52157		      test "x$?" != "x0" && pkg_failed=yes
52158else
52159  pkg_failed=yes
52160fi
52161 else
52162    pkg_failed=untried
52163fi
52164if test -n "$LUA_LIBS"; then
52165    pkg_cv_LUA_LIBS="$LUA_LIBS"
52166 elif test -n "$PKG_CONFIG"; then
52167    if test -n "$PKG_CONFIG" && \
52168    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
52169  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
52170  ac_status=$?
52171  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52172  test $ac_status = 0; }; then
52173  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
52174		      test "x$?" != "x0" && pkg_failed=yes
52175else
52176  pkg_failed=yes
52177fi
52178 else
52179    pkg_failed=untried
52180fi
52181
52182
52183
52184if test $pkg_failed = yes; then
52185   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52186$as_echo "no" >&6; }
52187
52188if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52189        _pkg_short_errors_supported=yes
52190else
52191        _pkg_short_errors_supported=no
52192fi
52193        if test $_pkg_short_errors_supported = yes; then
52194	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
52195        else
52196	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
52197        fi
52198	# Put the nasty error message in config.log where it belongs
52199	echo "$LUA_PKG_ERRORS" >&5
52200
52201
52202
52203pkg_failed=no
52204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
52205$as_echo_n "checking for LUA... " >&6; }
52206
52207if test -n "$LUA_CFLAGS"; then
52208    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
52209 elif test -n "$PKG_CONFIG"; then
52210    if test -n "$PKG_CONFIG" && \
52211    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
52212  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
52213  ac_status=$?
52214  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52215  test $ac_status = 0; }; then
52216  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
52217		      test "x$?" != "x0" && pkg_failed=yes
52218else
52219  pkg_failed=yes
52220fi
52221 else
52222    pkg_failed=untried
52223fi
52224if test -n "$LUA_LIBS"; then
52225    pkg_cv_LUA_LIBS="$LUA_LIBS"
52226 elif test -n "$PKG_CONFIG"; then
52227    if test -n "$PKG_CONFIG" && \
52228    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
52229  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
52230  ac_status=$?
52231  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52232  test $ac_status = 0; }; then
52233  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
52234		      test "x$?" != "x0" && pkg_failed=yes
52235else
52236  pkg_failed=yes
52237fi
52238 else
52239    pkg_failed=untried
52240fi
52241
52242
52243
52244if test $pkg_failed = yes; then
52245   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52246$as_echo "no" >&6; }
52247
52248if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52249        _pkg_short_errors_supported=yes
52250else
52251        _pkg_short_errors_supported=no
52252fi
52253        if test $_pkg_short_errors_supported = yes; then
52254	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
52255        else
52256	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
52257        fi
52258	# Put the nasty error message in config.log where it belongs
52259	echo "$LUA_PKG_ERRORS" >&5
52260
52261
52262
52263pkg_failed=no
52264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
52265$as_echo_n "checking for LUA... " >&6; }
52266
52267if test -n "$LUA_CFLAGS"; then
52268    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
52269 elif test -n "$PKG_CONFIG"; then
52270    if test -n "$PKG_CONFIG" && \
52271    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
52272  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
52273  ac_status=$?
52274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52275  test $ac_status = 0; }; then
52276  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
52277		      test "x$?" != "x0" && pkg_failed=yes
52278else
52279  pkg_failed=yes
52280fi
52281 else
52282    pkg_failed=untried
52283fi
52284if test -n "$LUA_LIBS"; then
52285    pkg_cv_LUA_LIBS="$LUA_LIBS"
52286 elif test -n "$PKG_CONFIG"; then
52287    if test -n "$PKG_CONFIG" && \
52288    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
52289  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
52290  ac_status=$?
52291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52292  test $ac_status = 0; }; then
52293  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
52294		      test "x$?" != "x0" && pkg_failed=yes
52295else
52296  pkg_failed=yes
52297fi
52298 else
52299    pkg_failed=untried
52300fi
52301
52302
52303
52304if test $pkg_failed = yes; then
52305   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52306$as_echo "no" >&6; }
52307
52308if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52309        _pkg_short_errors_supported=yes
52310else
52311        _pkg_short_errors_supported=no
52312fi
52313        if test $_pkg_short_errors_supported = yes; then
52314	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
52315        else
52316	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
52317        fi
52318	# Put the nasty error message in config.log where it belongs
52319	echo "$LUA_PKG_ERRORS" >&5
52320
52321
52322
52323pkg_failed=no
52324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
52325$as_echo_n "checking for LUA... " >&6; }
52326
52327if test -n "$LUA_CFLAGS"; then
52328    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
52329 elif test -n "$PKG_CONFIG"; then
52330    if test -n "$PKG_CONFIG" && \
52331    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
52332  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
52333  ac_status=$?
52334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52335  test $ac_status = 0; }; then
52336  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
52337		      test "x$?" != "x0" && pkg_failed=yes
52338else
52339  pkg_failed=yes
52340fi
52341 else
52342    pkg_failed=untried
52343fi
52344if test -n "$LUA_LIBS"; then
52345    pkg_cv_LUA_LIBS="$LUA_LIBS"
52346 elif test -n "$PKG_CONFIG"; then
52347    if test -n "$PKG_CONFIG" && \
52348    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
52349  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
52350  ac_status=$?
52351  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52352  test $ac_status = 0; }; then
52353  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
52354		      test "x$?" != "x0" && pkg_failed=yes
52355else
52356  pkg_failed=yes
52357fi
52358 else
52359    pkg_failed=untried
52360fi
52361
52362
52363
52364if test $pkg_failed = yes; then
52365   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52366$as_echo "no" >&6; }
52367
52368if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52369        _pkg_short_errors_supported=yes
52370else
52371        _pkg_short_errors_supported=no
52372fi
52373        if test $_pkg_short_errors_supported = yes; then
52374	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
52375        else
52376	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
52377        fi
52378	# Put the nasty error message in config.log where it belongs
52379	echo "$LUA_PKG_ERRORS" >&5
52380
52381
52382
52383pkg_failed=no
52384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
52385$as_echo_n "checking for LUA... " >&6; }
52386
52387if test -n "$LUA_CFLAGS"; then
52388    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
52389 elif test -n "$PKG_CONFIG"; then
52390    if test -n "$PKG_CONFIG" && \
52391    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
52392  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
52393  ac_status=$?
52394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52395  test $ac_status = 0; }; then
52396  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
52397		      test "x$?" != "x0" && pkg_failed=yes
52398else
52399  pkg_failed=yes
52400fi
52401 else
52402    pkg_failed=untried
52403fi
52404if test -n "$LUA_LIBS"; then
52405    pkg_cv_LUA_LIBS="$LUA_LIBS"
52406 elif test -n "$PKG_CONFIG"; then
52407    if test -n "$PKG_CONFIG" && \
52408    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
52409  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
52410  ac_status=$?
52411  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52412  test $ac_status = 0; }; then
52413  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
52414		      test "x$?" != "x0" && pkg_failed=yes
52415else
52416  pkg_failed=yes
52417fi
52418 else
52419    pkg_failed=untried
52420fi
52421
52422
52423
52424if test $pkg_failed = yes; then
52425   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52426$as_echo "no" >&6; }
52427
52428if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52429        _pkg_short_errors_supported=yes
52430else
52431        _pkg_short_errors_supported=no
52432fi
52433        if test $_pkg_short_errors_supported = yes; then
52434	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
52435        else
52436	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
52437        fi
52438	# Put the nasty error message in config.log where it belongs
52439	echo "$LUA_PKG_ERRORS" >&5
52440
52441	with_liblua="no (pkg-config cannot find liblua)"
52442
52443elif test $pkg_failed = untried; then
52444     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52445$as_echo "no" >&6; }
52446	with_liblua="no (pkg-config cannot find liblua)"
52447
52448else
52449	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
52450	LUA_LIBS=$pkg_cv_LUA_LIBS
52451        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52452$as_echo "yes" >&6; }
52453	with_liblua="yes"
52454fi
52455
52456
52457elif test $pkg_failed = untried; then
52458     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52459$as_echo "no" >&6; }
52460
52461
52462pkg_failed=no
52463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
52464$as_echo_n "checking for LUA... " >&6; }
52465
52466if test -n "$LUA_CFLAGS"; then
52467    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
52468 elif test -n "$PKG_CONFIG"; then
52469    if test -n "$PKG_CONFIG" && \
52470    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
52471  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
52472  ac_status=$?
52473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52474  test $ac_status = 0; }; then
52475  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
52476		      test "x$?" != "x0" && pkg_failed=yes
52477else
52478  pkg_failed=yes
52479fi
52480 else
52481    pkg_failed=untried
52482fi
52483if test -n "$LUA_LIBS"; then
52484    pkg_cv_LUA_LIBS="$LUA_LIBS"
52485 elif test -n "$PKG_CONFIG"; then
52486    if test -n "$PKG_CONFIG" && \
52487    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
52488  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
52489  ac_status=$?
52490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52491  test $ac_status = 0; }; then
52492  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
52493		      test "x$?" != "x0" && pkg_failed=yes
52494else
52495  pkg_failed=yes
52496fi
52497 else
52498    pkg_failed=untried
52499fi
52500
52501
52502
52503if test $pkg_failed = yes; then
52504   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52505$as_echo "no" >&6; }
52506
52507if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52508        _pkg_short_errors_supported=yes
52509else
52510        _pkg_short_errors_supported=no
52511fi
52512        if test $_pkg_short_errors_supported = yes; then
52513	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
52514        else
52515	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
52516        fi
52517	# Put the nasty error message in config.log where it belongs
52518	echo "$LUA_PKG_ERRORS" >&5
52519
52520	with_liblua="no (pkg-config cannot find liblua)"
52521
52522elif test $pkg_failed = untried; then
52523     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52524$as_echo "no" >&6; }
52525	with_liblua="no (pkg-config cannot find liblua)"
52526
52527else
52528	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
52529	LUA_LIBS=$pkg_cv_LUA_LIBS
52530        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52531$as_echo "yes" >&6; }
52532	with_liblua="yes"
52533fi
52534
52535
52536else
52537	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
52538	LUA_LIBS=$pkg_cv_LUA_LIBS
52539        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52540$as_echo "yes" >&6; }
52541	with_liblua="yes"
52542fi
52543
52544
52545elif test $pkg_failed = untried; then
52546     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52547$as_echo "no" >&6; }
52548
52549
52550pkg_failed=no
52551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
52552$as_echo_n "checking for LUA... " >&6; }
52553
52554if test -n "$LUA_CFLAGS"; then
52555    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
52556 elif test -n "$PKG_CONFIG"; then
52557    if test -n "$PKG_CONFIG" && \
52558    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
52559  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
52560  ac_status=$?
52561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52562  test $ac_status = 0; }; then
52563  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
52564		      test "x$?" != "x0" && pkg_failed=yes
52565else
52566  pkg_failed=yes
52567fi
52568 else
52569    pkg_failed=untried
52570fi
52571if test -n "$LUA_LIBS"; then
52572    pkg_cv_LUA_LIBS="$LUA_LIBS"
52573 elif test -n "$PKG_CONFIG"; then
52574    if test -n "$PKG_CONFIG" && \
52575    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
52576  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
52577  ac_status=$?
52578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52579  test $ac_status = 0; }; then
52580  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
52581		      test "x$?" != "x0" && pkg_failed=yes
52582else
52583  pkg_failed=yes
52584fi
52585 else
52586    pkg_failed=untried
52587fi
52588
52589
52590
52591if test $pkg_failed = yes; then
52592   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52593$as_echo "no" >&6; }
52594
52595if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52596        _pkg_short_errors_supported=yes
52597else
52598        _pkg_short_errors_supported=no
52599fi
52600        if test $_pkg_short_errors_supported = yes; then
52601	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
52602        else
52603	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
52604        fi
52605	# Put the nasty error message in config.log where it belongs
52606	echo "$LUA_PKG_ERRORS" >&5
52607
52608
52609
52610pkg_failed=no
52611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
52612$as_echo_n "checking for LUA... " >&6; }
52613
52614if test -n "$LUA_CFLAGS"; then
52615    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
52616 elif test -n "$PKG_CONFIG"; then
52617    if test -n "$PKG_CONFIG" && \
52618    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
52619  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
52620  ac_status=$?
52621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52622  test $ac_status = 0; }; then
52623  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
52624		      test "x$?" != "x0" && pkg_failed=yes
52625else
52626  pkg_failed=yes
52627fi
52628 else
52629    pkg_failed=untried
52630fi
52631if test -n "$LUA_LIBS"; then
52632    pkg_cv_LUA_LIBS="$LUA_LIBS"
52633 elif test -n "$PKG_CONFIG"; then
52634    if test -n "$PKG_CONFIG" && \
52635    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
52636  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
52637  ac_status=$?
52638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52639  test $ac_status = 0; }; then
52640  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
52641		      test "x$?" != "x0" && pkg_failed=yes
52642else
52643  pkg_failed=yes
52644fi
52645 else
52646    pkg_failed=untried
52647fi
52648
52649
52650
52651if test $pkg_failed = yes; then
52652   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52653$as_echo "no" >&6; }
52654
52655if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52656        _pkg_short_errors_supported=yes
52657else
52658        _pkg_short_errors_supported=no
52659fi
52660        if test $_pkg_short_errors_supported = yes; then
52661	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
52662        else
52663	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
52664        fi
52665	# Put the nasty error message in config.log where it belongs
52666	echo "$LUA_PKG_ERRORS" >&5
52667
52668	with_liblua="no (pkg-config cannot find liblua)"
52669
52670elif test $pkg_failed = untried; then
52671     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52672$as_echo "no" >&6; }
52673	with_liblua="no (pkg-config cannot find liblua)"
52674
52675else
52676	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
52677	LUA_LIBS=$pkg_cv_LUA_LIBS
52678        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52679$as_echo "yes" >&6; }
52680	with_liblua="yes"
52681fi
52682
52683
52684elif test $pkg_failed = untried; then
52685     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52686$as_echo "no" >&6; }
52687
52688
52689pkg_failed=no
52690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
52691$as_echo_n "checking for LUA... " >&6; }
52692
52693if test -n "$LUA_CFLAGS"; then
52694    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
52695 elif test -n "$PKG_CONFIG"; then
52696    if test -n "$PKG_CONFIG" && \
52697    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
52698  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
52699  ac_status=$?
52700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52701  test $ac_status = 0; }; then
52702  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
52703		      test "x$?" != "x0" && pkg_failed=yes
52704else
52705  pkg_failed=yes
52706fi
52707 else
52708    pkg_failed=untried
52709fi
52710if test -n "$LUA_LIBS"; then
52711    pkg_cv_LUA_LIBS="$LUA_LIBS"
52712 elif test -n "$PKG_CONFIG"; then
52713    if test -n "$PKG_CONFIG" && \
52714    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
52715  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
52716  ac_status=$?
52717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52718  test $ac_status = 0; }; then
52719  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
52720		      test "x$?" != "x0" && pkg_failed=yes
52721else
52722  pkg_failed=yes
52723fi
52724 else
52725    pkg_failed=untried
52726fi
52727
52728
52729
52730if test $pkg_failed = yes; then
52731   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52732$as_echo "no" >&6; }
52733
52734if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52735        _pkg_short_errors_supported=yes
52736else
52737        _pkg_short_errors_supported=no
52738fi
52739        if test $_pkg_short_errors_supported = yes; then
52740	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
52741        else
52742	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
52743        fi
52744	# Put the nasty error message in config.log where it belongs
52745	echo "$LUA_PKG_ERRORS" >&5
52746
52747	with_liblua="no (pkg-config cannot find liblua)"
52748
52749elif test $pkg_failed = untried; then
52750     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52751$as_echo "no" >&6; }
52752	with_liblua="no (pkg-config cannot find liblua)"
52753
52754else
52755	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
52756	LUA_LIBS=$pkg_cv_LUA_LIBS
52757        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52758$as_echo "yes" >&6; }
52759	with_liblua="yes"
52760fi
52761
52762
52763else
52764	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
52765	LUA_LIBS=$pkg_cv_LUA_LIBS
52766        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52767$as_echo "yes" >&6; }
52768	with_liblua="yes"
52769fi
52770
52771
52772else
52773	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
52774	LUA_LIBS=$pkg_cv_LUA_LIBS
52775        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52776$as_echo "yes" >&6; }
52777	with_liblua="yes"
52778fi
52779
52780
52781elif test $pkg_failed = untried; then
52782     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52783$as_echo "no" >&6; }
52784
52785
52786pkg_failed=no
52787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
52788$as_echo_n "checking for LUA... " >&6; }
52789
52790if test -n "$LUA_CFLAGS"; then
52791    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
52792 elif test -n "$PKG_CONFIG"; then
52793    if test -n "$PKG_CONFIG" && \
52794    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
52795  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
52796  ac_status=$?
52797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52798  test $ac_status = 0; }; then
52799  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
52800		      test "x$?" != "x0" && pkg_failed=yes
52801else
52802  pkg_failed=yes
52803fi
52804 else
52805    pkg_failed=untried
52806fi
52807if test -n "$LUA_LIBS"; then
52808    pkg_cv_LUA_LIBS="$LUA_LIBS"
52809 elif test -n "$PKG_CONFIG"; then
52810    if test -n "$PKG_CONFIG" && \
52811    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
52812  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
52813  ac_status=$?
52814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52815  test $ac_status = 0; }; then
52816  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
52817		      test "x$?" != "x0" && pkg_failed=yes
52818else
52819  pkg_failed=yes
52820fi
52821 else
52822    pkg_failed=untried
52823fi
52824
52825
52826
52827if test $pkg_failed = yes; then
52828   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52829$as_echo "no" >&6; }
52830
52831if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52832        _pkg_short_errors_supported=yes
52833else
52834        _pkg_short_errors_supported=no
52835fi
52836        if test $_pkg_short_errors_supported = yes; then
52837	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
52838        else
52839	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
52840        fi
52841	# Put the nasty error message in config.log where it belongs
52842	echo "$LUA_PKG_ERRORS" >&5
52843
52844
52845
52846pkg_failed=no
52847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
52848$as_echo_n "checking for LUA... " >&6; }
52849
52850if test -n "$LUA_CFLAGS"; then
52851    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
52852 elif test -n "$PKG_CONFIG"; then
52853    if test -n "$PKG_CONFIG" && \
52854    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
52855  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
52856  ac_status=$?
52857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52858  test $ac_status = 0; }; then
52859  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
52860		      test "x$?" != "x0" && pkg_failed=yes
52861else
52862  pkg_failed=yes
52863fi
52864 else
52865    pkg_failed=untried
52866fi
52867if test -n "$LUA_LIBS"; then
52868    pkg_cv_LUA_LIBS="$LUA_LIBS"
52869 elif test -n "$PKG_CONFIG"; then
52870    if test -n "$PKG_CONFIG" && \
52871    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
52872  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
52873  ac_status=$?
52874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52875  test $ac_status = 0; }; then
52876  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
52877		      test "x$?" != "x0" && pkg_failed=yes
52878else
52879  pkg_failed=yes
52880fi
52881 else
52882    pkg_failed=untried
52883fi
52884
52885
52886
52887if test $pkg_failed = yes; then
52888   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52889$as_echo "no" >&6; }
52890
52891if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52892        _pkg_short_errors_supported=yes
52893else
52894        _pkg_short_errors_supported=no
52895fi
52896        if test $_pkg_short_errors_supported = yes; then
52897	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
52898        else
52899	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
52900        fi
52901	# Put the nasty error message in config.log where it belongs
52902	echo "$LUA_PKG_ERRORS" >&5
52903
52904
52905
52906pkg_failed=no
52907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
52908$as_echo_n "checking for LUA... " >&6; }
52909
52910if test -n "$LUA_CFLAGS"; then
52911    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
52912 elif test -n "$PKG_CONFIG"; then
52913    if test -n "$PKG_CONFIG" && \
52914    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
52915  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
52916  ac_status=$?
52917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52918  test $ac_status = 0; }; then
52919  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
52920		      test "x$?" != "x0" && pkg_failed=yes
52921else
52922  pkg_failed=yes
52923fi
52924 else
52925    pkg_failed=untried
52926fi
52927if test -n "$LUA_LIBS"; then
52928    pkg_cv_LUA_LIBS="$LUA_LIBS"
52929 elif test -n "$PKG_CONFIG"; then
52930    if test -n "$PKG_CONFIG" && \
52931    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
52932  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
52933  ac_status=$?
52934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52935  test $ac_status = 0; }; then
52936  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
52937		      test "x$?" != "x0" && pkg_failed=yes
52938else
52939  pkg_failed=yes
52940fi
52941 else
52942    pkg_failed=untried
52943fi
52944
52945
52946
52947if test $pkg_failed = yes; then
52948   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52949$as_echo "no" >&6; }
52950
52951if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52952        _pkg_short_errors_supported=yes
52953else
52954        _pkg_short_errors_supported=no
52955fi
52956        if test $_pkg_short_errors_supported = yes; then
52957	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
52958        else
52959	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
52960        fi
52961	# Put the nasty error message in config.log where it belongs
52962	echo "$LUA_PKG_ERRORS" >&5
52963
52964	with_liblua="no (pkg-config cannot find liblua)"
52965
52966elif test $pkg_failed = untried; then
52967     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52968$as_echo "no" >&6; }
52969	with_liblua="no (pkg-config cannot find liblua)"
52970
52971else
52972	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
52973	LUA_LIBS=$pkg_cv_LUA_LIBS
52974        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52975$as_echo "yes" >&6; }
52976	with_liblua="yes"
52977fi
52978
52979
52980elif test $pkg_failed = untried; then
52981     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52982$as_echo "no" >&6; }
52983
52984
52985pkg_failed=no
52986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
52987$as_echo_n "checking for LUA... " >&6; }
52988
52989if test -n "$LUA_CFLAGS"; then
52990    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
52991 elif test -n "$PKG_CONFIG"; then
52992    if test -n "$PKG_CONFIG" && \
52993    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
52994  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
52995  ac_status=$?
52996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52997  test $ac_status = 0; }; then
52998  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
52999		      test "x$?" != "x0" && pkg_failed=yes
53000else
53001  pkg_failed=yes
53002fi
53003 else
53004    pkg_failed=untried
53005fi
53006if test -n "$LUA_LIBS"; then
53007    pkg_cv_LUA_LIBS="$LUA_LIBS"
53008 elif test -n "$PKG_CONFIG"; then
53009    if test -n "$PKG_CONFIG" && \
53010    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
53011  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
53012  ac_status=$?
53013  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53014  test $ac_status = 0; }; then
53015  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
53016		      test "x$?" != "x0" && pkg_failed=yes
53017else
53018  pkg_failed=yes
53019fi
53020 else
53021    pkg_failed=untried
53022fi
53023
53024
53025
53026if test $pkg_failed = yes; then
53027   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53028$as_echo "no" >&6; }
53029
53030if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53031        _pkg_short_errors_supported=yes
53032else
53033        _pkg_short_errors_supported=no
53034fi
53035        if test $_pkg_short_errors_supported = yes; then
53036	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
53037        else
53038	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
53039        fi
53040	# Put the nasty error message in config.log where it belongs
53041	echo "$LUA_PKG_ERRORS" >&5
53042
53043	with_liblua="no (pkg-config cannot find liblua)"
53044
53045elif test $pkg_failed = untried; then
53046     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53047$as_echo "no" >&6; }
53048	with_liblua="no (pkg-config cannot find liblua)"
53049
53050else
53051	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
53052	LUA_LIBS=$pkg_cv_LUA_LIBS
53053        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53054$as_echo "yes" >&6; }
53055	with_liblua="yes"
53056fi
53057
53058
53059else
53060	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
53061	LUA_LIBS=$pkg_cv_LUA_LIBS
53062        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53063$as_echo "yes" >&6; }
53064	with_liblua="yes"
53065fi
53066
53067
53068elif test $pkg_failed = untried; then
53069     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53070$as_echo "no" >&6; }
53071
53072
53073pkg_failed=no
53074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
53075$as_echo_n "checking for LUA... " >&6; }
53076
53077if test -n "$LUA_CFLAGS"; then
53078    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
53079 elif test -n "$PKG_CONFIG"; then
53080    if test -n "$PKG_CONFIG" && \
53081    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
53082  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
53083  ac_status=$?
53084  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53085  test $ac_status = 0; }; then
53086  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
53087		      test "x$?" != "x0" && pkg_failed=yes
53088else
53089  pkg_failed=yes
53090fi
53091 else
53092    pkg_failed=untried
53093fi
53094if test -n "$LUA_LIBS"; then
53095    pkg_cv_LUA_LIBS="$LUA_LIBS"
53096 elif test -n "$PKG_CONFIG"; then
53097    if test -n "$PKG_CONFIG" && \
53098    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
53099  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
53100  ac_status=$?
53101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53102  test $ac_status = 0; }; then
53103  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
53104		      test "x$?" != "x0" && pkg_failed=yes
53105else
53106  pkg_failed=yes
53107fi
53108 else
53109    pkg_failed=untried
53110fi
53111
53112
53113
53114if test $pkg_failed = yes; then
53115   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53116$as_echo "no" >&6; }
53117
53118if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53119        _pkg_short_errors_supported=yes
53120else
53121        _pkg_short_errors_supported=no
53122fi
53123        if test $_pkg_short_errors_supported = yes; then
53124	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
53125        else
53126	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
53127        fi
53128	# Put the nasty error message in config.log where it belongs
53129	echo "$LUA_PKG_ERRORS" >&5
53130
53131
53132
53133pkg_failed=no
53134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
53135$as_echo_n "checking for LUA... " >&6; }
53136
53137if test -n "$LUA_CFLAGS"; then
53138    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
53139 elif test -n "$PKG_CONFIG"; then
53140    if test -n "$PKG_CONFIG" && \
53141    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
53142  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
53143  ac_status=$?
53144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53145  test $ac_status = 0; }; then
53146  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
53147		      test "x$?" != "x0" && pkg_failed=yes
53148else
53149  pkg_failed=yes
53150fi
53151 else
53152    pkg_failed=untried
53153fi
53154if test -n "$LUA_LIBS"; then
53155    pkg_cv_LUA_LIBS="$LUA_LIBS"
53156 elif test -n "$PKG_CONFIG"; then
53157    if test -n "$PKG_CONFIG" && \
53158    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
53159  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
53160  ac_status=$?
53161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53162  test $ac_status = 0; }; then
53163  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
53164		      test "x$?" != "x0" && pkg_failed=yes
53165else
53166  pkg_failed=yes
53167fi
53168 else
53169    pkg_failed=untried
53170fi
53171
53172
53173
53174if test $pkg_failed = yes; then
53175   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53176$as_echo "no" >&6; }
53177
53178if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53179        _pkg_short_errors_supported=yes
53180else
53181        _pkg_short_errors_supported=no
53182fi
53183        if test $_pkg_short_errors_supported = yes; then
53184	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
53185        else
53186	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
53187        fi
53188	# Put the nasty error message in config.log where it belongs
53189	echo "$LUA_PKG_ERRORS" >&5
53190
53191	with_liblua="no (pkg-config cannot find liblua)"
53192
53193elif test $pkg_failed = untried; then
53194     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53195$as_echo "no" >&6; }
53196	with_liblua="no (pkg-config cannot find liblua)"
53197
53198else
53199	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
53200	LUA_LIBS=$pkg_cv_LUA_LIBS
53201        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53202$as_echo "yes" >&6; }
53203	with_liblua="yes"
53204fi
53205
53206
53207elif test $pkg_failed = untried; then
53208     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53209$as_echo "no" >&6; }
53210
53211
53212pkg_failed=no
53213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
53214$as_echo_n "checking for LUA... " >&6; }
53215
53216if test -n "$LUA_CFLAGS"; then
53217    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
53218 elif test -n "$PKG_CONFIG"; then
53219    if test -n "$PKG_CONFIG" && \
53220    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
53221  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
53222  ac_status=$?
53223  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53224  test $ac_status = 0; }; then
53225  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
53226		      test "x$?" != "x0" && pkg_failed=yes
53227else
53228  pkg_failed=yes
53229fi
53230 else
53231    pkg_failed=untried
53232fi
53233if test -n "$LUA_LIBS"; then
53234    pkg_cv_LUA_LIBS="$LUA_LIBS"
53235 elif test -n "$PKG_CONFIG"; then
53236    if test -n "$PKG_CONFIG" && \
53237    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
53238  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
53239  ac_status=$?
53240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53241  test $ac_status = 0; }; then
53242  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
53243		      test "x$?" != "x0" && pkg_failed=yes
53244else
53245  pkg_failed=yes
53246fi
53247 else
53248    pkg_failed=untried
53249fi
53250
53251
53252
53253if test $pkg_failed = yes; then
53254   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53255$as_echo "no" >&6; }
53256
53257if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53258        _pkg_short_errors_supported=yes
53259else
53260        _pkg_short_errors_supported=no
53261fi
53262        if test $_pkg_short_errors_supported = yes; then
53263	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
53264        else
53265	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
53266        fi
53267	# Put the nasty error message in config.log where it belongs
53268	echo "$LUA_PKG_ERRORS" >&5
53269
53270	with_liblua="no (pkg-config cannot find liblua)"
53271
53272elif test $pkg_failed = untried; then
53273     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53274$as_echo "no" >&6; }
53275	with_liblua="no (pkg-config cannot find liblua)"
53276
53277else
53278	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
53279	LUA_LIBS=$pkg_cv_LUA_LIBS
53280        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53281$as_echo "yes" >&6; }
53282	with_liblua="yes"
53283fi
53284
53285
53286else
53287	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
53288	LUA_LIBS=$pkg_cv_LUA_LIBS
53289        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53290$as_echo "yes" >&6; }
53291	with_liblua="yes"
53292fi
53293
53294
53295else
53296	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
53297	LUA_LIBS=$pkg_cv_LUA_LIBS
53298        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53299$as_echo "yes" >&6; }
53300	with_liblua="yes"
53301fi
53302
53303
53304else
53305	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
53306	LUA_LIBS=$pkg_cv_LUA_LIBS
53307        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53308$as_echo "yes" >&6; }
53309	with_liblua="yes"
53310fi
53311
53312
53313elif test $pkg_failed = untried; then
53314     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53315$as_echo "no" >&6; }
53316
53317
53318pkg_failed=no
53319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
53320$as_echo_n "checking for LUA... " >&6; }
53321
53322if test -n "$LUA_CFLAGS"; then
53323    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
53324 elif test -n "$PKG_CONFIG"; then
53325    if test -n "$PKG_CONFIG" && \
53326    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
53327  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
53328  ac_status=$?
53329  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53330  test $ac_status = 0; }; then
53331  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
53332		      test "x$?" != "x0" && pkg_failed=yes
53333else
53334  pkg_failed=yes
53335fi
53336 else
53337    pkg_failed=untried
53338fi
53339if test -n "$LUA_LIBS"; then
53340    pkg_cv_LUA_LIBS="$LUA_LIBS"
53341 elif test -n "$PKG_CONFIG"; then
53342    if test -n "$PKG_CONFIG" && \
53343    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
53344  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
53345  ac_status=$?
53346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53347  test $ac_status = 0; }; then
53348  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
53349		      test "x$?" != "x0" && pkg_failed=yes
53350else
53351  pkg_failed=yes
53352fi
53353 else
53354    pkg_failed=untried
53355fi
53356
53357
53358
53359if test $pkg_failed = yes; then
53360   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53361$as_echo "no" >&6; }
53362
53363if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53364        _pkg_short_errors_supported=yes
53365else
53366        _pkg_short_errors_supported=no
53367fi
53368        if test $_pkg_short_errors_supported = yes; then
53369	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
53370        else
53371	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
53372        fi
53373	# Put the nasty error message in config.log where it belongs
53374	echo "$LUA_PKG_ERRORS" >&5
53375
53376
53377
53378pkg_failed=no
53379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
53380$as_echo_n "checking for LUA... " >&6; }
53381
53382if test -n "$LUA_CFLAGS"; then
53383    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
53384 elif test -n "$PKG_CONFIG"; then
53385    if test -n "$PKG_CONFIG" && \
53386    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
53387  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
53388  ac_status=$?
53389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53390  test $ac_status = 0; }; then
53391  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
53392		      test "x$?" != "x0" && pkg_failed=yes
53393else
53394  pkg_failed=yes
53395fi
53396 else
53397    pkg_failed=untried
53398fi
53399if test -n "$LUA_LIBS"; then
53400    pkg_cv_LUA_LIBS="$LUA_LIBS"
53401 elif test -n "$PKG_CONFIG"; then
53402    if test -n "$PKG_CONFIG" && \
53403    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
53404  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
53405  ac_status=$?
53406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53407  test $ac_status = 0; }; then
53408  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
53409		      test "x$?" != "x0" && pkg_failed=yes
53410else
53411  pkg_failed=yes
53412fi
53413 else
53414    pkg_failed=untried
53415fi
53416
53417
53418
53419if test $pkg_failed = yes; then
53420   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53421$as_echo "no" >&6; }
53422
53423if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53424        _pkg_short_errors_supported=yes
53425else
53426        _pkg_short_errors_supported=no
53427fi
53428        if test $_pkg_short_errors_supported = yes; then
53429	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
53430        else
53431	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
53432        fi
53433	# Put the nasty error message in config.log where it belongs
53434	echo "$LUA_PKG_ERRORS" >&5
53435
53436
53437
53438pkg_failed=no
53439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
53440$as_echo_n "checking for LUA... " >&6; }
53441
53442if test -n "$LUA_CFLAGS"; then
53443    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
53444 elif test -n "$PKG_CONFIG"; then
53445    if test -n "$PKG_CONFIG" && \
53446    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
53447  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
53448  ac_status=$?
53449  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53450  test $ac_status = 0; }; then
53451  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
53452		      test "x$?" != "x0" && pkg_failed=yes
53453else
53454  pkg_failed=yes
53455fi
53456 else
53457    pkg_failed=untried
53458fi
53459if test -n "$LUA_LIBS"; then
53460    pkg_cv_LUA_LIBS="$LUA_LIBS"
53461 elif test -n "$PKG_CONFIG"; then
53462    if test -n "$PKG_CONFIG" && \
53463    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
53464  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
53465  ac_status=$?
53466  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53467  test $ac_status = 0; }; then
53468  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
53469		      test "x$?" != "x0" && pkg_failed=yes
53470else
53471  pkg_failed=yes
53472fi
53473 else
53474    pkg_failed=untried
53475fi
53476
53477
53478
53479if test $pkg_failed = yes; then
53480   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53481$as_echo "no" >&6; }
53482
53483if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53484        _pkg_short_errors_supported=yes
53485else
53486        _pkg_short_errors_supported=no
53487fi
53488        if test $_pkg_short_errors_supported = yes; then
53489	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
53490        else
53491	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
53492        fi
53493	# Put the nasty error message in config.log where it belongs
53494	echo "$LUA_PKG_ERRORS" >&5
53495
53496
53497
53498pkg_failed=no
53499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
53500$as_echo_n "checking for LUA... " >&6; }
53501
53502if test -n "$LUA_CFLAGS"; then
53503    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
53504 elif test -n "$PKG_CONFIG"; then
53505    if test -n "$PKG_CONFIG" && \
53506    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
53507  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
53508  ac_status=$?
53509  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53510  test $ac_status = 0; }; then
53511  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
53512		      test "x$?" != "x0" && pkg_failed=yes
53513else
53514  pkg_failed=yes
53515fi
53516 else
53517    pkg_failed=untried
53518fi
53519if test -n "$LUA_LIBS"; then
53520    pkg_cv_LUA_LIBS="$LUA_LIBS"
53521 elif test -n "$PKG_CONFIG"; then
53522    if test -n "$PKG_CONFIG" && \
53523    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
53524  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
53525  ac_status=$?
53526  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53527  test $ac_status = 0; }; then
53528  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
53529		      test "x$?" != "x0" && pkg_failed=yes
53530else
53531  pkg_failed=yes
53532fi
53533 else
53534    pkg_failed=untried
53535fi
53536
53537
53538
53539if test $pkg_failed = yes; then
53540   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53541$as_echo "no" >&6; }
53542
53543if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53544        _pkg_short_errors_supported=yes
53545else
53546        _pkg_short_errors_supported=no
53547fi
53548        if test $_pkg_short_errors_supported = yes; then
53549	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
53550        else
53551	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
53552        fi
53553	# Put the nasty error message in config.log where it belongs
53554	echo "$LUA_PKG_ERRORS" >&5
53555
53556	with_liblua="no (pkg-config cannot find liblua)"
53557
53558elif test $pkg_failed = untried; then
53559     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53560$as_echo "no" >&6; }
53561	with_liblua="no (pkg-config cannot find liblua)"
53562
53563else
53564	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
53565	LUA_LIBS=$pkg_cv_LUA_LIBS
53566        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53567$as_echo "yes" >&6; }
53568	with_liblua="yes"
53569fi
53570
53571
53572elif test $pkg_failed = untried; then
53573     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53574$as_echo "no" >&6; }
53575
53576
53577pkg_failed=no
53578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
53579$as_echo_n "checking for LUA... " >&6; }
53580
53581if test -n "$LUA_CFLAGS"; then
53582    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
53583 elif test -n "$PKG_CONFIG"; then
53584    if test -n "$PKG_CONFIG" && \
53585    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
53586  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
53587  ac_status=$?
53588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53589  test $ac_status = 0; }; then
53590  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
53591		      test "x$?" != "x0" && pkg_failed=yes
53592else
53593  pkg_failed=yes
53594fi
53595 else
53596    pkg_failed=untried
53597fi
53598if test -n "$LUA_LIBS"; then
53599    pkg_cv_LUA_LIBS="$LUA_LIBS"
53600 elif test -n "$PKG_CONFIG"; then
53601    if test -n "$PKG_CONFIG" && \
53602    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
53603  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
53604  ac_status=$?
53605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53606  test $ac_status = 0; }; then
53607  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
53608		      test "x$?" != "x0" && pkg_failed=yes
53609else
53610  pkg_failed=yes
53611fi
53612 else
53613    pkg_failed=untried
53614fi
53615
53616
53617
53618if test $pkg_failed = yes; then
53619   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53620$as_echo "no" >&6; }
53621
53622if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53623        _pkg_short_errors_supported=yes
53624else
53625        _pkg_short_errors_supported=no
53626fi
53627        if test $_pkg_short_errors_supported = yes; then
53628	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
53629        else
53630	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
53631        fi
53632	# Put the nasty error message in config.log where it belongs
53633	echo "$LUA_PKG_ERRORS" >&5
53634
53635	with_liblua="no (pkg-config cannot find liblua)"
53636
53637elif test $pkg_failed = untried; then
53638     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53639$as_echo "no" >&6; }
53640	with_liblua="no (pkg-config cannot find liblua)"
53641
53642else
53643	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
53644	LUA_LIBS=$pkg_cv_LUA_LIBS
53645        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53646$as_echo "yes" >&6; }
53647	with_liblua="yes"
53648fi
53649
53650
53651else
53652	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
53653	LUA_LIBS=$pkg_cv_LUA_LIBS
53654        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53655$as_echo "yes" >&6; }
53656	with_liblua="yes"
53657fi
53658
53659
53660elif test $pkg_failed = untried; then
53661     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53662$as_echo "no" >&6; }
53663
53664
53665pkg_failed=no
53666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
53667$as_echo_n "checking for LUA... " >&6; }
53668
53669if test -n "$LUA_CFLAGS"; then
53670    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
53671 elif test -n "$PKG_CONFIG"; then
53672    if test -n "$PKG_CONFIG" && \
53673    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
53674  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
53675  ac_status=$?
53676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53677  test $ac_status = 0; }; then
53678  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
53679		      test "x$?" != "x0" && pkg_failed=yes
53680else
53681  pkg_failed=yes
53682fi
53683 else
53684    pkg_failed=untried
53685fi
53686if test -n "$LUA_LIBS"; then
53687    pkg_cv_LUA_LIBS="$LUA_LIBS"
53688 elif test -n "$PKG_CONFIG"; then
53689    if test -n "$PKG_CONFIG" && \
53690    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
53691  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
53692  ac_status=$?
53693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53694  test $ac_status = 0; }; then
53695  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
53696		      test "x$?" != "x0" && pkg_failed=yes
53697else
53698  pkg_failed=yes
53699fi
53700 else
53701    pkg_failed=untried
53702fi
53703
53704
53705
53706if test $pkg_failed = yes; then
53707   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53708$as_echo "no" >&6; }
53709
53710if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53711        _pkg_short_errors_supported=yes
53712else
53713        _pkg_short_errors_supported=no
53714fi
53715        if test $_pkg_short_errors_supported = yes; then
53716	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
53717        else
53718	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
53719        fi
53720	# Put the nasty error message in config.log where it belongs
53721	echo "$LUA_PKG_ERRORS" >&5
53722
53723
53724
53725pkg_failed=no
53726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
53727$as_echo_n "checking for LUA... " >&6; }
53728
53729if test -n "$LUA_CFLAGS"; then
53730    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
53731 elif test -n "$PKG_CONFIG"; then
53732    if test -n "$PKG_CONFIG" && \
53733    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
53734  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
53735  ac_status=$?
53736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53737  test $ac_status = 0; }; then
53738  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
53739		      test "x$?" != "x0" && pkg_failed=yes
53740else
53741  pkg_failed=yes
53742fi
53743 else
53744    pkg_failed=untried
53745fi
53746if test -n "$LUA_LIBS"; then
53747    pkg_cv_LUA_LIBS="$LUA_LIBS"
53748 elif test -n "$PKG_CONFIG"; then
53749    if test -n "$PKG_CONFIG" && \
53750    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
53751  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
53752  ac_status=$?
53753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53754  test $ac_status = 0; }; then
53755  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
53756		      test "x$?" != "x0" && pkg_failed=yes
53757else
53758  pkg_failed=yes
53759fi
53760 else
53761    pkg_failed=untried
53762fi
53763
53764
53765
53766if test $pkg_failed = yes; then
53767   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53768$as_echo "no" >&6; }
53769
53770if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53771        _pkg_short_errors_supported=yes
53772else
53773        _pkg_short_errors_supported=no
53774fi
53775        if test $_pkg_short_errors_supported = yes; then
53776	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
53777        else
53778	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
53779        fi
53780	# Put the nasty error message in config.log where it belongs
53781	echo "$LUA_PKG_ERRORS" >&5
53782
53783	with_liblua="no (pkg-config cannot find liblua)"
53784
53785elif test $pkg_failed = untried; then
53786     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53787$as_echo "no" >&6; }
53788	with_liblua="no (pkg-config cannot find liblua)"
53789
53790else
53791	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
53792	LUA_LIBS=$pkg_cv_LUA_LIBS
53793        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53794$as_echo "yes" >&6; }
53795	with_liblua="yes"
53796fi
53797
53798
53799elif test $pkg_failed = untried; then
53800     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53801$as_echo "no" >&6; }
53802
53803
53804pkg_failed=no
53805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
53806$as_echo_n "checking for LUA... " >&6; }
53807
53808if test -n "$LUA_CFLAGS"; then
53809    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
53810 elif test -n "$PKG_CONFIG"; then
53811    if test -n "$PKG_CONFIG" && \
53812    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
53813  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
53814  ac_status=$?
53815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53816  test $ac_status = 0; }; then
53817  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
53818		      test "x$?" != "x0" && pkg_failed=yes
53819else
53820  pkg_failed=yes
53821fi
53822 else
53823    pkg_failed=untried
53824fi
53825if test -n "$LUA_LIBS"; then
53826    pkg_cv_LUA_LIBS="$LUA_LIBS"
53827 elif test -n "$PKG_CONFIG"; then
53828    if test -n "$PKG_CONFIG" && \
53829    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
53830  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
53831  ac_status=$?
53832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53833  test $ac_status = 0; }; then
53834  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
53835		      test "x$?" != "x0" && pkg_failed=yes
53836else
53837  pkg_failed=yes
53838fi
53839 else
53840    pkg_failed=untried
53841fi
53842
53843
53844
53845if test $pkg_failed = yes; then
53846   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53847$as_echo "no" >&6; }
53848
53849if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53850        _pkg_short_errors_supported=yes
53851else
53852        _pkg_short_errors_supported=no
53853fi
53854        if test $_pkg_short_errors_supported = yes; then
53855	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
53856        else
53857	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
53858        fi
53859	# Put the nasty error message in config.log where it belongs
53860	echo "$LUA_PKG_ERRORS" >&5
53861
53862	with_liblua="no (pkg-config cannot find liblua)"
53863
53864elif test $pkg_failed = untried; then
53865     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53866$as_echo "no" >&6; }
53867	with_liblua="no (pkg-config cannot find liblua)"
53868
53869else
53870	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
53871	LUA_LIBS=$pkg_cv_LUA_LIBS
53872        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53873$as_echo "yes" >&6; }
53874	with_liblua="yes"
53875fi
53876
53877
53878else
53879	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
53880	LUA_LIBS=$pkg_cv_LUA_LIBS
53881        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53882$as_echo "yes" >&6; }
53883	with_liblua="yes"
53884fi
53885
53886
53887else
53888	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
53889	LUA_LIBS=$pkg_cv_LUA_LIBS
53890        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53891$as_echo "yes" >&6; }
53892	with_liblua="yes"
53893fi
53894
53895
53896elif test $pkg_failed = untried; then
53897     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53898$as_echo "no" >&6; }
53899
53900
53901pkg_failed=no
53902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
53903$as_echo_n "checking for LUA... " >&6; }
53904
53905if test -n "$LUA_CFLAGS"; then
53906    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
53907 elif test -n "$PKG_CONFIG"; then
53908    if test -n "$PKG_CONFIG" && \
53909    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
53910  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
53911  ac_status=$?
53912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53913  test $ac_status = 0; }; then
53914  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
53915		      test "x$?" != "x0" && pkg_failed=yes
53916else
53917  pkg_failed=yes
53918fi
53919 else
53920    pkg_failed=untried
53921fi
53922if test -n "$LUA_LIBS"; then
53923    pkg_cv_LUA_LIBS="$LUA_LIBS"
53924 elif test -n "$PKG_CONFIG"; then
53925    if test -n "$PKG_CONFIG" && \
53926    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
53927  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
53928  ac_status=$?
53929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53930  test $ac_status = 0; }; then
53931  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
53932		      test "x$?" != "x0" && pkg_failed=yes
53933else
53934  pkg_failed=yes
53935fi
53936 else
53937    pkg_failed=untried
53938fi
53939
53940
53941
53942if test $pkg_failed = yes; then
53943   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53944$as_echo "no" >&6; }
53945
53946if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53947        _pkg_short_errors_supported=yes
53948else
53949        _pkg_short_errors_supported=no
53950fi
53951        if test $_pkg_short_errors_supported = yes; then
53952	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
53953        else
53954	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
53955        fi
53956	# Put the nasty error message in config.log where it belongs
53957	echo "$LUA_PKG_ERRORS" >&5
53958
53959
53960
53961pkg_failed=no
53962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
53963$as_echo_n "checking for LUA... " >&6; }
53964
53965if test -n "$LUA_CFLAGS"; then
53966    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
53967 elif test -n "$PKG_CONFIG"; then
53968    if test -n "$PKG_CONFIG" && \
53969    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
53970  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
53971  ac_status=$?
53972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53973  test $ac_status = 0; }; then
53974  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
53975		      test "x$?" != "x0" && pkg_failed=yes
53976else
53977  pkg_failed=yes
53978fi
53979 else
53980    pkg_failed=untried
53981fi
53982if test -n "$LUA_LIBS"; then
53983    pkg_cv_LUA_LIBS="$LUA_LIBS"
53984 elif test -n "$PKG_CONFIG"; then
53985    if test -n "$PKG_CONFIG" && \
53986    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
53987  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
53988  ac_status=$?
53989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53990  test $ac_status = 0; }; then
53991  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
53992		      test "x$?" != "x0" && pkg_failed=yes
53993else
53994  pkg_failed=yes
53995fi
53996 else
53997    pkg_failed=untried
53998fi
53999
54000
54001
54002if test $pkg_failed = yes; then
54003   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54004$as_echo "no" >&6; }
54005
54006if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54007        _pkg_short_errors_supported=yes
54008else
54009        _pkg_short_errors_supported=no
54010fi
54011        if test $_pkg_short_errors_supported = yes; then
54012	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
54013        else
54014	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
54015        fi
54016	# Put the nasty error message in config.log where it belongs
54017	echo "$LUA_PKG_ERRORS" >&5
54018
54019
54020
54021pkg_failed=no
54022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
54023$as_echo_n "checking for LUA... " >&6; }
54024
54025if test -n "$LUA_CFLAGS"; then
54026    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
54027 elif test -n "$PKG_CONFIG"; then
54028    if test -n "$PKG_CONFIG" && \
54029    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
54030  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
54031  ac_status=$?
54032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54033  test $ac_status = 0; }; then
54034  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
54035		      test "x$?" != "x0" && pkg_failed=yes
54036else
54037  pkg_failed=yes
54038fi
54039 else
54040    pkg_failed=untried
54041fi
54042if test -n "$LUA_LIBS"; then
54043    pkg_cv_LUA_LIBS="$LUA_LIBS"
54044 elif test -n "$PKG_CONFIG"; then
54045    if test -n "$PKG_CONFIG" && \
54046    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
54047  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
54048  ac_status=$?
54049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54050  test $ac_status = 0; }; then
54051  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
54052		      test "x$?" != "x0" && pkg_failed=yes
54053else
54054  pkg_failed=yes
54055fi
54056 else
54057    pkg_failed=untried
54058fi
54059
54060
54061
54062if test $pkg_failed = yes; then
54063   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54064$as_echo "no" >&6; }
54065
54066if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54067        _pkg_short_errors_supported=yes
54068else
54069        _pkg_short_errors_supported=no
54070fi
54071        if test $_pkg_short_errors_supported = yes; then
54072	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
54073        else
54074	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
54075        fi
54076	# Put the nasty error message in config.log where it belongs
54077	echo "$LUA_PKG_ERRORS" >&5
54078
54079	with_liblua="no (pkg-config cannot find liblua)"
54080
54081elif test $pkg_failed = untried; then
54082     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54083$as_echo "no" >&6; }
54084	with_liblua="no (pkg-config cannot find liblua)"
54085
54086else
54087	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
54088	LUA_LIBS=$pkg_cv_LUA_LIBS
54089        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54090$as_echo "yes" >&6; }
54091	with_liblua="yes"
54092fi
54093
54094
54095elif test $pkg_failed = untried; then
54096     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54097$as_echo "no" >&6; }
54098
54099
54100pkg_failed=no
54101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
54102$as_echo_n "checking for LUA... " >&6; }
54103
54104if test -n "$LUA_CFLAGS"; then
54105    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
54106 elif test -n "$PKG_CONFIG"; then
54107    if test -n "$PKG_CONFIG" && \
54108    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
54109  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
54110  ac_status=$?
54111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54112  test $ac_status = 0; }; then
54113  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
54114		      test "x$?" != "x0" && pkg_failed=yes
54115else
54116  pkg_failed=yes
54117fi
54118 else
54119    pkg_failed=untried
54120fi
54121if test -n "$LUA_LIBS"; then
54122    pkg_cv_LUA_LIBS="$LUA_LIBS"
54123 elif test -n "$PKG_CONFIG"; then
54124    if test -n "$PKG_CONFIG" && \
54125    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
54126  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
54127  ac_status=$?
54128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54129  test $ac_status = 0; }; then
54130  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
54131		      test "x$?" != "x0" && pkg_failed=yes
54132else
54133  pkg_failed=yes
54134fi
54135 else
54136    pkg_failed=untried
54137fi
54138
54139
54140
54141if test $pkg_failed = yes; then
54142   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54143$as_echo "no" >&6; }
54144
54145if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54146        _pkg_short_errors_supported=yes
54147else
54148        _pkg_short_errors_supported=no
54149fi
54150        if test $_pkg_short_errors_supported = yes; then
54151	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
54152        else
54153	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
54154        fi
54155	# Put the nasty error message in config.log where it belongs
54156	echo "$LUA_PKG_ERRORS" >&5
54157
54158	with_liblua="no (pkg-config cannot find liblua)"
54159
54160elif test $pkg_failed = untried; then
54161     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54162$as_echo "no" >&6; }
54163	with_liblua="no (pkg-config cannot find liblua)"
54164
54165else
54166	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
54167	LUA_LIBS=$pkg_cv_LUA_LIBS
54168        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54169$as_echo "yes" >&6; }
54170	with_liblua="yes"
54171fi
54172
54173
54174else
54175	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
54176	LUA_LIBS=$pkg_cv_LUA_LIBS
54177        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54178$as_echo "yes" >&6; }
54179	with_liblua="yes"
54180fi
54181
54182
54183elif test $pkg_failed = untried; then
54184     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54185$as_echo "no" >&6; }
54186
54187
54188pkg_failed=no
54189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
54190$as_echo_n "checking for LUA... " >&6; }
54191
54192if test -n "$LUA_CFLAGS"; then
54193    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
54194 elif test -n "$PKG_CONFIG"; then
54195    if test -n "$PKG_CONFIG" && \
54196    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
54197  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
54198  ac_status=$?
54199  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54200  test $ac_status = 0; }; then
54201  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
54202		      test "x$?" != "x0" && pkg_failed=yes
54203else
54204  pkg_failed=yes
54205fi
54206 else
54207    pkg_failed=untried
54208fi
54209if test -n "$LUA_LIBS"; then
54210    pkg_cv_LUA_LIBS="$LUA_LIBS"
54211 elif test -n "$PKG_CONFIG"; then
54212    if test -n "$PKG_CONFIG" && \
54213    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
54214  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
54215  ac_status=$?
54216  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54217  test $ac_status = 0; }; then
54218  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
54219		      test "x$?" != "x0" && pkg_failed=yes
54220else
54221  pkg_failed=yes
54222fi
54223 else
54224    pkg_failed=untried
54225fi
54226
54227
54228
54229if test $pkg_failed = yes; then
54230   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54231$as_echo "no" >&6; }
54232
54233if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54234        _pkg_short_errors_supported=yes
54235else
54236        _pkg_short_errors_supported=no
54237fi
54238        if test $_pkg_short_errors_supported = yes; then
54239	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
54240        else
54241	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
54242        fi
54243	# Put the nasty error message in config.log where it belongs
54244	echo "$LUA_PKG_ERRORS" >&5
54245
54246
54247
54248pkg_failed=no
54249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
54250$as_echo_n "checking for LUA... " >&6; }
54251
54252if test -n "$LUA_CFLAGS"; then
54253    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
54254 elif test -n "$PKG_CONFIG"; then
54255    if test -n "$PKG_CONFIG" && \
54256    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
54257  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
54258  ac_status=$?
54259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54260  test $ac_status = 0; }; then
54261  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
54262		      test "x$?" != "x0" && pkg_failed=yes
54263else
54264  pkg_failed=yes
54265fi
54266 else
54267    pkg_failed=untried
54268fi
54269if test -n "$LUA_LIBS"; then
54270    pkg_cv_LUA_LIBS="$LUA_LIBS"
54271 elif test -n "$PKG_CONFIG"; then
54272    if test -n "$PKG_CONFIG" && \
54273    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
54274  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
54275  ac_status=$?
54276  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54277  test $ac_status = 0; }; then
54278  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
54279		      test "x$?" != "x0" && pkg_failed=yes
54280else
54281  pkg_failed=yes
54282fi
54283 else
54284    pkg_failed=untried
54285fi
54286
54287
54288
54289if test $pkg_failed = yes; then
54290   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54291$as_echo "no" >&6; }
54292
54293if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54294        _pkg_short_errors_supported=yes
54295else
54296        _pkg_short_errors_supported=no
54297fi
54298        if test $_pkg_short_errors_supported = yes; then
54299	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
54300        else
54301	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
54302        fi
54303	# Put the nasty error message in config.log where it belongs
54304	echo "$LUA_PKG_ERRORS" >&5
54305
54306	with_liblua="no (pkg-config cannot find liblua)"
54307
54308elif test $pkg_failed = untried; then
54309     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54310$as_echo "no" >&6; }
54311	with_liblua="no (pkg-config cannot find liblua)"
54312
54313else
54314	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
54315	LUA_LIBS=$pkg_cv_LUA_LIBS
54316        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54317$as_echo "yes" >&6; }
54318	with_liblua="yes"
54319fi
54320
54321
54322elif test $pkg_failed = untried; then
54323     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54324$as_echo "no" >&6; }
54325
54326
54327pkg_failed=no
54328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
54329$as_echo_n "checking for LUA... " >&6; }
54330
54331if test -n "$LUA_CFLAGS"; then
54332    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
54333 elif test -n "$PKG_CONFIG"; then
54334    if test -n "$PKG_CONFIG" && \
54335    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
54336  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
54337  ac_status=$?
54338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54339  test $ac_status = 0; }; then
54340  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
54341		      test "x$?" != "x0" && pkg_failed=yes
54342else
54343  pkg_failed=yes
54344fi
54345 else
54346    pkg_failed=untried
54347fi
54348if test -n "$LUA_LIBS"; then
54349    pkg_cv_LUA_LIBS="$LUA_LIBS"
54350 elif test -n "$PKG_CONFIG"; then
54351    if test -n "$PKG_CONFIG" && \
54352    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
54353  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
54354  ac_status=$?
54355  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54356  test $ac_status = 0; }; then
54357  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
54358		      test "x$?" != "x0" && pkg_failed=yes
54359else
54360  pkg_failed=yes
54361fi
54362 else
54363    pkg_failed=untried
54364fi
54365
54366
54367
54368if test $pkg_failed = yes; then
54369   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54370$as_echo "no" >&6; }
54371
54372if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54373        _pkg_short_errors_supported=yes
54374else
54375        _pkg_short_errors_supported=no
54376fi
54377        if test $_pkg_short_errors_supported = yes; then
54378	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
54379        else
54380	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
54381        fi
54382	# Put the nasty error message in config.log where it belongs
54383	echo "$LUA_PKG_ERRORS" >&5
54384
54385	with_liblua="no (pkg-config cannot find liblua)"
54386
54387elif test $pkg_failed = untried; then
54388     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54389$as_echo "no" >&6; }
54390	with_liblua="no (pkg-config cannot find liblua)"
54391
54392else
54393	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
54394	LUA_LIBS=$pkg_cv_LUA_LIBS
54395        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54396$as_echo "yes" >&6; }
54397	with_liblua="yes"
54398fi
54399
54400
54401else
54402	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
54403	LUA_LIBS=$pkg_cv_LUA_LIBS
54404        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54405$as_echo "yes" >&6; }
54406	with_liblua="yes"
54407fi
54408
54409
54410else
54411	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
54412	LUA_LIBS=$pkg_cv_LUA_LIBS
54413        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54414$as_echo "yes" >&6; }
54415	with_liblua="yes"
54416fi
54417
54418
54419else
54420	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
54421	LUA_LIBS=$pkg_cv_LUA_LIBS
54422        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54423$as_echo "yes" >&6; }
54424	with_liblua="yes"
54425fi
54426
54427
54428else
54429	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
54430	LUA_LIBS=$pkg_cv_LUA_LIBS
54431        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54432$as_echo "yes" >&6; }
54433	with_liblua="yes"
54434fi
54435
54436
54437else
54438	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
54439	LUA_LIBS=$pkg_cv_LUA_LIBS
54440        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54441$as_echo "yes" >&6; }
54442	with_liblua="yes"
54443fi
54444
54445
54446else
54447	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
54448	LUA_LIBS=$pkg_cv_LUA_LIBS
54449        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54450$as_echo "yes" >&6; }
54451	with_liblua="yes"
54452fi
54453
54454
54455elif test $pkg_failed = untried; then
54456     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54457$as_echo "no" >&6; }
54458
54459
54460pkg_failed=no
54461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
54462$as_echo_n "checking for LUA... " >&6; }
54463
54464if test -n "$LUA_CFLAGS"; then
54465    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
54466 elif test -n "$PKG_CONFIG"; then
54467    if test -n "$PKG_CONFIG" && \
54468    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua53\""; } >&5
54469  ($PKG_CONFIG --exists --print-errors "lua53") 2>&5
54470  ac_status=$?
54471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54472  test $ac_status = 0; }; then
54473  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua53" 2>/dev/null`
54474		      test "x$?" != "x0" && pkg_failed=yes
54475else
54476  pkg_failed=yes
54477fi
54478 else
54479    pkg_failed=untried
54480fi
54481if test -n "$LUA_LIBS"; then
54482    pkg_cv_LUA_LIBS="$LUA_LIBS"
54483 elif test -n "$PKG_CONFIG"; then
54484    if test -n "$PKG_CONFIG" && \
54485    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua53\""; } >&5
54486  ($PKG_CONFIG --exists --print-errors "lua53") 2>&5
54487  ac_status=$?
54488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54489  test $ac_status = 0; }; then
54490  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua53" 2>/dev/null`
54491		      test "x$?" != "x0" && pkg_failed=yes
54492else
54493  pkg_failed=yes
54494fi
54495 else
54496    pkg_failed=untried
54497fi
54498
54499
54500
54501if test $pkg_failed = yes; then
54502   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54503$as_echo "no" >&6; }
54504
54505if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54506        _pkg_short_errors_supported=yes
54507else
54508        _pkg_short_errors_supported=no
54509fi
54510        if test $_pkg_short_errors_supported = yes; then
54511	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua53" 2>&1`
54512        else
54513	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua53" 2>&1`
54514        fi
54515	# Put the nasty error message in config.log where it belongs
54516	echo "$LUA_PKG_ERRORS" >&5
54517
54518
54519
54520pkg_failed=no
54521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
54522$as_echo_n "checking for LUA... " >&6; }
54523
54524if test -n "$LUA_CFLAGS"; then
54525    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
54526 elif test -n "$PKG_CONFIG"; then
54527    if test -n "$PKG_CONFIG" && \
54528    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
54529  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
54530  ac_status=$?
54531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54532  test $ac_status = 0; }; then
54533  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.2" 2>/dev/null`
54534		      test "x$?" != "x0" && pkg_failed=yes
54535else
54536  pkg_failed=yes
54537fi
54538 else
54539    pkg_failed=untried
54540fi
54541if test -n "$LUA_LIBS"; then
54542    pkg_cv_LUA_LIBS="$LUA_LIBS"
54543 elif test -n "$PKG_CONFIG"; then
54544    if test -n "$PKG_CONFIG" && \
54545    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
54546  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
54547  ac_status=$?
54548  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54549  test $ac_status = 0; }; then
54550  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.2" 2>/dev/null`
54551		      test "x$?" != "x0" && pkg_failed=yes
54552else
54553  pkg_failed=yes
54554fi
54555 else
54556    pkg_failed=untried
54557fi
54558
54559
54560
54561if test $pkg_failed = yes; then
54562   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54563$as_echo "no" >&6; }
54564
54565if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54566        _pkg_short_errors_supported=yes
54567else
54568        _pkg_short_errors_supported=no
54569fi
54570        if test $_pkg_short_errors_supported = yes; then
54571	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.2" 2>&1`
54572        else
54573	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.2" 2>&1`
54574        fi
54575	# Put the nasty error message in config.log where it belongs
54576	echo "$LUA_PKG_ERRORS" >&5
54577
54578
54579
54580pkg_failed=no
54581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
54582$as_echo_n "checking for LUA... " >&6; }
54583
54584if test -n "$LUA_CFLAGS"; then
54585    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
54586 elif test -n "$PKG_CONFIG"; then
54587    if test -n "$PKG_CONFIG" && \
54588    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
54589  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
54590  ac_status=$?
54591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54592  test $ac_status = 0; }; then
54593  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
54594		      test "x$?" != "x0" && pkg_failed=yes
54595else
54596  pkg_failed=yes
54597fi
54598 else
54599    pkg_failed=untried
54600fi
54601if test -n "$LUA_LIBS"; then
54602    pkg_cv_LUA_LIBS="$LUA_LIBS"
54603 elif test -n "$PKG_CONFIG"; then
54604    if test -n "$PKG_CONFIG" && \
54605    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
54606  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
54607  ac_status=$?
54608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54609  test $ac_status = 0; }; then
54610  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
54611		      test "x$?" != "x0" && pkg_failed=yes
54612else
54613  pkg_failed=yes
54614fi
54615 else
54616    pkg_failed=untried
54617fi
54618
54619
54620
54621if test $pkg_failed = yes; then
54622   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54623$as_echo "no" >&6; }
54624
54625if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54626        _pkg_short_errors_supported=yes
54627else
54628        _pkg_short_errors_supported=no
54629fi
54630        if test $_pkg_short_errors_supported = yes; then
54631	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
54632        else
54633	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
54634        fi
54635	# Put the nasty error message in config.log where it belongs
54636	echo "$LUA_PKG_ERRORS" >&5
54637
54638
54639
54640pkg_failed=no
54641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
54642$as_echo_n "checking for LUA... " >&6; }
54643
54644if test -n "$LUA_CFLAGS"; then
54645    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
54646 elif test -n "$PKG_CONFIG"; then
54647    if test -n "$PKG_CONFIG" && \
54648    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
54649  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
54650  ac_status=$?
54651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54652  test $ac_status = 0; }; then
54653  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
54654		      test "x$?" != "x0" && pkg_failed=yes
54655else
54656  pkg_failed=yes
54657fi
54658 else
54659    pkg_failed=untried
54660fi
54661if test -n "$LUA_LIBS"; then
54662    pkg_cv_LUA_LIBS="$LUA_LIBS"
54663 elif test -n "$PKG_CONFIG"; then
54664    if test -n "$PKG_CONFIG" && \
54665    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
54666  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
54667  ac_status=$?
54668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54669  test $ac_status = 0; }; then
54670  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
54671		      test "x$?" != "x0" && pkg_failed=yes
54672else
54673  pkg_failed=yes
54674fi
54675 else
54676    pkg_failed=untried
54677fi
54678
54679
54680
54681if test $pkg_failed = yes; then
54682   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54683$as_echo "no" >&6; }
54684
54685if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54686        _pkg_short_errors_supported=yes
54687else
54688        _pkg_short_errors_supported=no
54689fi
54690        if test $_pkg_short_errors_supported = yes; then
54691	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
54692        else
54693	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
54694        fi
54695	# Put the nasty error message in config.log where it belongs
54696	echo "$LUA_PKG_ERRORS" >&5
54697
54698
54699
54700pkg_failed=no
54701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
54702$as_echo_n "checking for LUA... " >&6; }
54703
54704if test -n "$LUA_CFLAGS"; then
54705    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
54706 elif test -n "$PKG_CONFIG"; then
54707    if test -n "$PKG_CONFIG" && \
54708    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
54709  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
54710  ac_status=$?
54711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54712  test $ac_status = 0; }; then
54713  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
54714		      test "x$?" != "x0" && pkg_failed=yes
54715else
54716  pkg_failed=yes
54717fi
54718 else
54719    pkg_failed=untried
54720fi
54721if test -n "$LUA_LIBS"; then
54722    pkg_cv_LUA_LIBS="$LUA_LIBS"
54723 elif test -n "$PKG_CONFIG"; then
54724    if test -n "$PKG_CONFIG" && \
54725    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
54726  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
54727  ac_status=$?
54728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54729  test $ac_status = 0; }; then
54730  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
54731		      test "x$?" != "x0" && pkg_failed=yes
54732else
54733  pkg_failed=yes
54734fi
54735 else
54736    pkg_failed=untried
54737fi
54738
54739
54740
54741if test $pkg_failed = yes; then
54742   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54743$as_echo "no" >&6; }
54744
54745if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54746        _pkg_short_errors_supported=yes
54747else
54748        _pkg_short_errors_supported=no
54749fi
54750        if test $_pkg_short_errors_supported = yes; then
54751	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
54752        else
54753	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
54754        fi
54755	# Put the nasty error message in config.log where it belongs
54756	echo "$LUA_PKG_ERRORS" >&5
54757
54758
54759
54760pkg_failed=no
54761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
54762$as_echo_n "checking for LUA... " >&6; }
54763
54764if test -n "$LUA_CFLAGS"; then
54765    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
54766 elif test -n "$PKG_CONFIG"; then
54767    if test -n "$PKG_CONFIG" && \
54768    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
54769  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
54770  ac_status=$?
54771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54772  test $ac_status = 0; }; then
54773  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
54774		      test "x$?" != "x0" && pkg_failed=yes
54775else
54776  pkg_failed=yes
54777fi
54778 else
54779    pkg_failed=untried
54780fi
54781if test -n "$LUA_LIBS"; then
54782    pkg_cv_LUA_LIBS="$LUA_LIBS"
54783 elif test -n "$PKG_CONFIG"; then
54784    if test -n "$PKG_CONFIG" && \
54785    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
54786  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
54787  ac_status=$?
54788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54789  test $ac_status = 0; }; then
54790  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
54791		      test "x$?" != "x0" && pkg_failed=yes
54792else
54793  pkg_failed=yes
54794fi
54795 else
54796    pkg_failed=untried
54797fi
54798
54799
54800
54801if test $pkg_failed = yes; then
54802   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54803$as_echo "no" >&6; }
54804
54805if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54806        _pkg_short_errors_supported=yes
54807else
54808        _pkg_short_errors_supported=no
54809fi
54810        if test $_pkg_short_errors_supported = yes; then
54811	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
54812        else
54813	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
54814        fi
54815	# Put the nasty error message in config.log where it belongs
54816	echo "$LUA_PKG_ERRORS" >&5
54817
54818
54819
54820pkg_failed=no
54821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
54822$as_echo_n "checking for LUA... " >&6; }
54823
54824if test -n "$LUA_CFLAGS"; then
54825    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
54826 elif test -n "$PKG_CONFIG"; then
54827    if test -n "$PKG_CONFIG" && \
54828    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
54829  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
54830  ac_status=$?
54831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54832  test $ac_status = 0; }; then
54833  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
54834		      test "x$?" != "x0" && pkg_failed=yes
54835else
54836  pkg_failed=yes
54837fi
54838 else
54839    pkg_failed=untried
54840fi
54841if test -n "$LUA_LIBS"; then
54842    pkg_cv_LUA_LIBS="$LUA_LIBS"
54843 elif test -n "$PKG_CONFIG"; then
54844    if test -n "$PKG_CONFIG" && \
54845    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
54846  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
54847  ac_status=$?
54848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54849  test $ac_status = 0; }; then
54850  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
54851		      test "x$?" != "x0" && pkg_failed=yes
54852else
54853  pkg_failed=yes
54854fi
54855 else
54856    pkg_failed=untried
54857fi
54858
54859
54860
54861if test $pkg_failed = yes; then
54862   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54863$as_echo "no" >&6; }
54864
54865if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54866        _pkg_short_errors_supported=yes
54867else
54868        _pkg_short_errors_supported=no
54869fi
54870        if test $_pkg_short_errors_supported = yes; then
54871	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
54872        else
54873	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
54874        fi
54875	# Put the nasty error message in config.log where it belongs
54876	echo "$LUA_PKG_ERRORS" >&5
54877
54878	with_liblua="no (pkg-config cannot find liblua)"
54879
54880elif test $pkg_failed = untried; then
54881     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54882$as_echo "no" >&6; }
54883	with_liblua="no (pkg-config cannot find liblua)"
54884
54885else
54886	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
54887	LUA_LIBS=$pkg_cv_LUA_LIBS
54888        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54889$as_echo "yes" >&6; }
54890	with_liblua="yes"
54891fi
54892
54893
54894elif test $pkg_failed = untried; then
54895     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54896$as_echo "no" >&6; }
54897
54898
54899pkg_failed=no
54900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
54901$as_echo_n "checking for LUA... " >&6; }
54902
54903if test -n "$LUA_CFLAGS"; then
54904    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
54905 elif test -n "$PKG_CONFIG"; then
54906    if test -n "$PKG_CONFIG" && \
54907    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
54908  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
54909  ac_status=$?
54910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54911  test $ac_status = 0; }; then
54912  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
54913		      test "x$?" != "x0" && pkg_failed=yes
54914else
54915  pkg_failed=yes
54916fi
54917 else
54918    pkg_failed=untried
54919fi
54920if test -n "$LUA_LIBS"; then
54921    pkg_cv_LUA_LIBS="$LUA_LIBS"
54922 elif test -n "$PKG_CONFIG"; then
54923    if test -n "$PKG_CONFIG" && \
54924    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
54925  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
54926  ac_status=$?
54927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54928  test $ac_status = 0; }; then
54929  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
54930		      test "x$?" != "x0" && pkg_failed=yes
54931else
54932  pkg_failed=yes
54933fi
54934 else
54935    pkg_failed=untried
54936fi
54937
54938
54939
54940if test $pkg_failed = yes; then
54941   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54942$as_echo "no" >&6; }
54943
54944if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54945        _pkg_short_errors_supported=yes
54946else
54947        _pkg_short_errors_supported=no
54948fi
54949        if test $_pkg_short_errors_supported = yes; then
54950	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
54951        else
54952	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
54953        fi
54954	# Put the nasty error message in config.log where it belongs
54955	echo "$LUA_PKG_ERRORS" >&5
54956
54957	with_liblua="no (pkg-config cannot find liblua)"
54958
54959elif test $pkg_failed = untried; then
54960     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54961$as_echo "no" >&6; }
54962	with_liblua="no (pkg-config cannot find liblua)"
54963
54964else
54965	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
54966	LUA_LIBS=$pkg_cv_LUA_LIBS
54967        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54968$as_echo "yes" >&6; }
54969	with_liblua="yes"
54970fi
54971
54972
54973else
54974	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
54975	LUA_LIBS=$pkg_cv_LUA_LIBS
54976        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54977$as_echo "yes" >&6; }
54978	with_liblua="yes"
54979fi
54980
54981
54982elif test $pkg_failed = untried; then
54983     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54984$as_echo "no" >&6; }
54985
54986
54987pkg_failed=no
54988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
54989$as_echo_n "checking for LUA... " >&6; }
54990
54991if test -n "$LUA_CFLAGS"; then
54992    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
54993 elif test -n "$PKG_CONFIG"; then
54994    if test -n "$PKG_CONFIG" && \
54995    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
54996  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
54997  ac_status=$?
54998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54999  test $ac_status = 0; }; then
55000  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
55001		      test "x$?" != "x0" && pkg_failed=yes
55002else
55003  pkg_failed=yes
55004fi
55005 else
55006    pkg_failed=untried
55007fi
55008if test -n "$LUA_LIBS"; then
55009    pkg_cv_LUA_LIBS="$LUA_LIBS"
55010 elif test -n "$PKG_CONFIG"; then
55011    if test -n "$PKG_CONFIG" && \
55012    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
55013  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
55014  ac_status=$?
55015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55016  test $ac_status = 0; }; then
55017  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
55018		      test "x$?" != "x0" && pkg_failed=yes
55019else
55020  pkg_failed=yes
55021fi
55022 else
55023    pkg_failed=untried
55024fi
55025
55026
55027
55028if test $pkg_failed = yes; then
55029   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55030$as_echo "no" >&6; }
55031
55032if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55033        _pkg_short_errors_supported=yes
55034else
55035        _pkg_short_errors_supported=no
55036fi
55037        if test $_pkg_short_errors_supported = yes; then
55038	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
55039        else
55040	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
55041        fi
55042	# Put the nasty error message in config.log where it belongs
55043	echo "$LUA_PKG_ERRORS" >&5
55044
55045
55046
55047pkg_failed=no
55048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
55049$as_echo_n "checking for LUA... " >&6; }
55050
55051if test -n "$LUA_CFLAGS"; then
55052    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
55053 elif test -n "$PKG_CONFIG"; then
55054    if test -n "$PKG_CONFIG" && \
55055    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
55056  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
55057  ac_status=$?
55058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55059  test $ac_status = 0; }; then
55060  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
55061		      test "x$?" != "x0" && pkg_failed=yes
55062else
55063  pkg_failed=yes
55064fi
55065 else
55066    pkg_failed=untried
55067fi
55068if test -n "$LUA_LIBS"; then
55069    pkg_cv_LUA_LIBS="$LUA_LIBS"
55070 elif test -n "$PKG_CONFIG"; then
55071    if test -n "$PKG_CONFIG" && \
55072    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
55073  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
55074  ac_status=$?
55075  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55076  test $ac_status = 0; }; then
55077  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
55078		      test "x$?" != "x0" && pkg_failed=yes
55079else
55080  pkg_failed=yes
55081fi
55082 else
55083    pkg_failed=untried
55084fi
55085
55086
55087
55088if test $pkg_failed = yes; then
55089   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55090$as_echo "no" >&6; }
55091
55092if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55093        _pkg_short_errors_supported=yes
55094else
55095        _pkg_short_errors_supported=no
55096fi
55097        if test $_pkg_short_errors_supported = yes; then
55098	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
55099        else
55100	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
55101        fi
55102	# Put the nasty error message in config.log where it belongs
55103	echo "$LUA_PKG_ERRORS" >&5
55104
55105	with_liblua="no (pkg-config cannot find liblua)"
55106
55107elif test $pkg_failed = untried; then
55108     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55109$as_echo "no" >&6; }
55110	with_liblua="no (pkg-config cannot find liblua)"
55111
55112else
55113	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
55114	LUA_LIBS=$pkg_cv_LUA_LIBS
55115        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55116$as_echo "yes" >&6; }
55117	with_liblua="yes"
55118fi
55119
55120
55121elif test $pkg_failed = untried; then
55122     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55123$as_echo "no" >&6; }
55124
55125
55126pkg_failed=no
55127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
55128$as_echo_n "checking for LUA... " >&6; }
55129
55130if test -n "$LUA_CFLAGS"; then
55131    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
55132 elif test -n "$PKG_CONFIG"; then
55133    if test -n "$PKG_CONFIG" && \
55134    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
55135  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
55136  ac_status=$?
55137  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55138  test $ac_status = 0; }; then
55139  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
55140		      test "x$?" != "x0" && pkg_failed=yes
55141else
55142  pkg_failed=yes
55143fi
55144 else
55145    pkg_failed=untried
55146fi
55147if test -n "$LUA_LIBS"; then
55148    pkg_cv_LUA_LIBS="$LUA_LIBS"
55149 elif test -n "$PKG_CONFIG"; then
55150    if test -n "$PKG_CONFIG" && \
55151    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
55152  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
55153  ac_status=$?
55154  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55155  test $ac_status = 0; }; then
55156  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
55157		      test "x$?" != "x0" && pkg_failed=yes
55158else
55159  pkg_failed=yes
55160fi
55161 else
55162    pkg_failed=untried
55163fi
55164
55165
55166
55167if test $pkg_failed = yes; then
55168   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55169$as_echo "no" >&6; }
55170
55171if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55172        _pkg_short_errors_supported=yes
55173else
55174        _pkg_short_errors_supported=no
55175fi
55176        if test $_pkg_short_errors_supported = yes; then
55177	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
55178        else
55179	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
55180        fi
55181	# Put the nasty error message in config.log where it belongs
55182	echo "$LUA_PKG_ERRORS" >&5
55183
55184	with_liblua="no (pkg-config cannot find liblua)"
55185
55186elif test $pkg_failed = untried; then
55187     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55188$as_echo "no" >&6; }
55189	with_liblua="no (pkg-config cannot find liblua)"
55190
55191else
55192	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
55193	LUA_LIBS=$pkg_cv_LUA_LIBS
55194        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55195$as_echo "yes" >&6; }
55196	with_liblua="yes"
55197fi
55198
55199
55200else
55201	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
55202	LUA_LIBS=$pkg_cv_LUA_LIBS
55203        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55204$as_echo "yes" >&6; }
55205	with_liblua="yes"
55206fi
55207
55208
55209else
55210	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
55211	LUA_LIBS=$pkg_cv_LUA_LIBS
55212        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55213$as_echo "yes" >&6; }
55214	with_liblua="yes"
55215fi
55216
55217
55218elif test $pkg_failed = untried; then
55219     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55220$as_echo "no" >&6; }
55221
55222
55223pkg_failed=no
55224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
55225$as_echo_n "checking for LUA... " >&6; }
55226
55227if test -n "$LUA_CFLAGS"; then
55228    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
55229 elif test -n "$PKG_CONFIG"; then
55230    if test -n "$PKG_CONFIG" && \
55231    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
55232  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
55233  ac_status=$?
55234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55235  test $ac_status = 0; }; then
55236  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
55237		      test "x$?" != "x0" && pkg_failed=yes
55238else
55239  pkg_failed=yes
55240fi
55241 else
55242    pkg_failed=untried
55243fi
55244if test -n "$LUA_LIBS"; then
55245    pkg_cv_LUA_LIBS="$LUA_LIBS"
55246 elif test -n "$PKG_CONFIG"; then
55247    if test -n "$PKG_CONFIG" && \
55248    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
55249  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
55250  ac_status=$?
55251  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55252  test $ac_status = 0; }; then
55253  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
55254		      test "x$?" != "x0" && pkg_failed=yes
55255else
55256  pkg_failed=yes
55257fi
55258 else
55259    pkg_failed=untried
55260fi
55261
55262
55263
55264if test $pkg_failed = yes; then
55265   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55266$as_echo "no" >&6; }
55267
55268if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55269        _pkg_short_errors_supported=yes
55270else
55271        _pkg_short_errors_supported=no
55272fi
55273        if test $_pkg_short_errors_supported = yes; then
55274	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
55275        else
55276	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
55277        fi
55278	# Put the nasty error message in config.log where it belongs
55279	echo "$LUA_PKG_ERRORS" >&5
55280
55281
55282
55283pkg_failed=no
55284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
55285$as_echo_n "checking for LUA... " >&6; }
55286
55287if test -n "$LUA_CFLAGS"; then
55288    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
55289 elif test -n "$PKG_CONFIG"; then
55290    if test -n "$PKG_CONFIG" && \
55291    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
55292  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
55293  ac_status=$?
55294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55295  test $ac_status = 0; }; then
55296  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
55297		      test "x$?" != "x0" && pkg_failed=yes
55298else
55299  pkg_failed=yes
55300fi
55301 else
55302    pkg_failed=untried
55303fi
55304if test -n "$LUA_LIBS"; then
55305    pkg_cv_LUA_LIBS="$LUA_LIBS"
55306 elif test -n "$PKG_CONFIG"; then
55307    if test -n "$PKG_CONFIG" && \
55308    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
55309  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
55310  ac_status=$?
55311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55312  test $ac_status = 0; }; then
55313  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
55314		      test "x$?" != "x0" && pkg_failed=yes
55315else
55316  pkg_failed=yes
55317fi
55318 else
55319    pkg_failed=untried
55320fi
55321
55322
55323
55324if test $pkg_failed = yes; then
55325   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55326$as_echo "no" >&6; }
55327
55328if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55329        _pkg_short_errors_supported=yes
55330else
55331        _pkg_short_errors_supported=no
55332fi
55333        if test $_pkg_short_errors_supported = yes; then
55334	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
55335        else
55336	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
55337        fi
55338	# Put the nasty error message in config.log where it belongs
55339	echo "$LUA_PKG_ERRORS" >&5
55340
55341
55342
55343pkg_failed=no
55344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
55345$as_echo_n "checking for LUA... " >&6; }
55346
55347if test -n "$LUA_CFLAGS"; then
55348    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
55349 elif test -n "$PKG_CONFIG"; then
55350    if test -n "$PKG_CONFIG" && \
55351    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
55352  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
55353  ac_status=$?
55354  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55355  test $ac_status = 0; }; then
55356  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
55357		      test "x$?" != "x0" && pkg_failed=yes
55358else
55359  pkg_failed=yes
55360fi
55361 else
55362    pkg_failed=untried
55363fi
55364if test -n "$LUA_LIBS"; then
55365    pkg_cv_LUA_LIBS="$LUA_LIBS"
55366 elif test -n "$PKG_CONFIG"; then
55367    if test -n "$PKG_CONFIG" && \
55368    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
55369  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
55370  ac_status=$?
55371  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55372  test $ac_status = 0; }; then
55373  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
55374		      test "x$?" != "x0" && pkg_failed=yes
55375else
55376  pkg_failed=yes
55377fi
55378 else
55379    pkg_failed=untried
55380fi
55381
55382
55383
55384if test $pkg_failed = yes; then
55385   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55386$as_echo "no" >&6; }
55387
55388if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55389        _pkg_short_errors_supported=yes
55390else
55391        _pkg_short_errors_supported=no
55392fi
55393        if test $_pkg_short_errors_supported = yes; then
55394	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
55395        else
55396	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
55397        fi
55398	# Put the nasty error message in config.log where it belongs
55399	echo "$LUA_PKG_ERRORS" >&5
55400
55401	with_liblua="no (pkg-config cannot find liblua)"
55402
55403elif test $pkg_failed = untried; then
55404     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55405$as_echo "no" >&6; }
55406	with_liblua="no (pkg-config cannot find liblua)"
55407
55408else
55409	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
55410	LUA_LIBS=$pkg_cv_LUA_LIBS
55411        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55412$as_echo "yes" >&6; }
55413	with_liblua="yes"
55414fi
55415
55416
55417elif test $pkg_failed = untried; then
55418     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55419$as_echo "no" >&6; }
55420
55421
55422pkg_failed=no
55423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
55424$as_echo_n "checking for LUA... " >&6; }
55425
55426if test -n "$LUA_CFLAGS"; then
55427    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
55428 elif test -n "$PKG_CONFIG"; then
55429    if test -n "$PKG_CONFIG" && \
55430    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
55431  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
55432  ac_status=$?
55433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55434  test $ac_status = 0; }; then
55435  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
55436		      test "x$?" != "x0" && pkg_failed=yes
55437else
55438  pkg_failed=yes
55439fi
55440 else
55441    pkg_failed=untried
55442fi
55443if test -n "$LUA_LIBS"; then
55444    pkg_cv_LUA_LIBS="$LUA_LIBS"
55445 elif test -n "$PKG_CONFIG"; then
55446    if test -n "$PKG_CONFIG" && \
55447    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
55448  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
55449  ac_status=$?
55450  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55451  test $ac_status = 0; }; then
55452  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
55453		      test "x$?" != "x0" && pkg_failed=yes
55454else
55455  pkg_failed=yes
55456fi
55457 else
55458    pkg_failed=untried
55459fi
55460
55461
55462
55463if test $pkg_failed = yes; then
55464   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55465$as_echo "no" >&6; }
55466
55467if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55468        _pkg_short_errors_supported=yes
55469else
55470        _pkg_short_errors_supported=no
55471fi
55472        if test $_pkg_short_errors_supported = yes; then
55473	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
55474        else
55475	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
55476        fi
55477	# Put the nasty error message in config.log where it belongs
55478	echo "$LUA_PKG_ERRORS" >&5
55479
55480	with_liblua="no (pkg-config cannot find liblua)"
55481
55482elif test $pkg_failed = untried; then
55483     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55484$as_echo "no" >&6; }
55485	with_liblua="no (pkg-config cannot find liblua)"
55486
55487else
55488	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
55489	LUA_LIBS=$pkg_cv_LUA_LIBS
55490        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55491$as_echo "yes" >&6; }
55492	with_liblua="yes"
55493fi
55494
55495
55496else
55497	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
55498	LUA_LIBS=$pkg_cv_LUA_LIBS
55499        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55500$as_echo "yes" >&6; }
55501	with_liblua="yes"
55502fi
55503
55504
55505elif test $pkg_failed = untried; then
55506     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55507$as_echo "no" >&6; }
55508
55509
55510pkg_failed=no
55511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
55512$as_echo_n "checking for LUA... " >&6; }
55513
55514if test -n "$LUA_CFLAGS"; then
55515    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
55516 elif test -n "$PKG_CONFIG"; then
55517    if test -n "$PKG_CONFIG" && \
55518    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
55519  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
55520  ac_status=$?
55521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55522  test $ac_status = 0; }; then
55523  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
55524		      test "x$?" != "x0" && pkg_failed=yes
55525else
55526  pkg_failed=yes
55527fi
55528 else
55529    pkg_failed=untried
55530fi
55531if test -n "$LUA_LIBS"; then
55532    pkg_cv_LUA_LIBS="$LUA_LIBS"
55533 elif test -n "$PKG_CONFIG"; then
55534    if test -n "$PKG_CONFIG" && \
55535    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
55536  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
55537  ac_status=$?
55538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55539  test $ac_status = 0; }; then
55540  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
55541		      test "x$?" != "x0" && pkg_failed=yes
55542else
55543  pkg_failed=yes
55544fi
55545 else
55546    pkg_failed=untried
55547fi
55548
55549
55550
55551if test $pkg_failed = yes; then
55552   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55553$as_echo "no" >&6; }
55554
55555if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55556        _pkg_short_errors_supported=yes
55557else
55558        _pkg_short_errors_supported=no
55559fi
55560        if test $_pkg_short_errors_supported = yes; then
55561	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
55562        else
55563	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
55564        fi
55565	# Put the nasty error message in config.log where it belongs
55566	echo "$LUA_PKG_ERRORS" >&5
55567
55568
55569
55570pkg_failed=no
55571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
55572$as_echo_n "checking for LUA... " >&6; }
55573
55574if test -n "$LUA_CFLAGS"; then
55575    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
55576 elif test -n "$PKG_CONFIG"; then
55577    if test -n "$PKG_CONFIG" && \
55578    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
55579  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
55580  ac_status=$?
55581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55582  test $ac_status = 0; }; then
55583  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
55584		      test "x$?" != "x0" && pkg_failed=yes
55585else
55586  pkg_failed=yes
55587fi
55588 else
55589    pkg_failed=untried
55590fi
55591if test -n "$LUA_LIBS"; then
55592    pkg_cv_LUA_LIBS="$LUA_LIBS"
55593 elif test -n "$PKG_CONFIG"; then
55594    if test -n "$PKG_CONFIG" && \
55595    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
55596  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
55597  ac_status=$?
55598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55599  test $ac_status = 0; }; then
55600  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
55601		      test "x$?" != "x0" && pkg_failed=yes
55602else
55603  pkg_failed=yes
55604fi
55605 else
55606    pkg_failed=untried
55607fi
55608
55609
55610
55611if test $pkg_failed = yes; then
55612   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55613$as_echo "no" >&6; }
55614
55615if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55616        _pkg_short_errors_supported=yes
55617else
55618        _pkg_short_errors_supported=no
55619fi
55620        if test $_pkg_short_errors_supported = yes; then
55621	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
55622        else
55623	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
55624        fi
55625	# Put the nasty error message in config.log where it belongs
55626	echo "$LUA_PKG_ERRORS" >&5
55627
55628	with_liblua="no (pkg-config cannot find liblua)"
55629
55630elif test $pkg_failed = untried; then
55631     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55632$as_echo "no" >&6; }
55633	with_liblua="no (pkg-config cannot find liblua)"
55634
55635else
55636	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
55637	LUA_LIBS=$pkg_cv_LUA_LIBS
55638        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55639$as_echo "yes" >&6; }
55640	with_liblua="yes"
55641fi
55642
55643
55644elif test $pkg_failed = untried; then
55645     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55646$as_echo "no" >&6; }
55647
55648
55649pkg_failed=no
55650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
55651$as_echo_n "checking for LUA... " >&6; }
55652
55653if test -n "$LUA_CFLAGS"; then
55654    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
55655 elif test -n "$PKG_CONFIG"; then
55656    if test -n "$PKG_CONFIG" && \
55657    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
55658  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
55659  ac_status=$?
55660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55661  test $ac_status = 0; }; then
55662  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
55663		      test "x$?" != "x0" && pkg_failed=yes
55664else
55665  pkg_failed=yes
55666fi
55667 else
55668    pkg_failed=untried
55669fi
55670if test -n "$LUA_LIBS"; then
55671    pkg_cv_LUA_LIBS="$LUA_LIBS"
55672 elif test -n "$PKG_CONFIG"; then
55673    if test -n "$PKG_CONFIG" && \
55674    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
55675  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
55676  ac_status=$?
55677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55678  test $ac_status = 0; }; then
55679  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
55680		      test "x$?" != "x0" && pkg_failed=yes
55681else
55682  pkg_failed=yes
55683fi
55684 else
55685    pkg_failed=untried
55686fi
55687
55688
55689
55690if test $pkg_failed = yes; then
55691   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55692$as_echo "no" >&6; }
55693
55694if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55695        _pkg_short_errors_supported=yes
55696else
55697        _pkg_short_errors_supported=no
55698fi
55699        if test $_pkg_short_errors_supported = yes; then
55700	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
55701        else
55702	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
55703        fi
55704	# Put the nasty error message in config.log where it belongs
55705	echo "$LUA_PKG_ERRORS" >&5
55706
55707	with_liblua="no (pkg-config cannot find liblua)"
55708
55709elif test $pkg_failed = untried; then
55710     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55711$as_echo "no" >&6; }
55712	with_liblua="no (pkg-config cannot find liblua)"
55713
55714else
55715	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
55716	LUA_LIBS=$pkg_cv_LUA_LIBS
55717        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55718$as_echo "yes" >&6; }
55719	with_liblua="yes"
55720fi
55721
55722
55723else
55724	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
55725	LUA_LIBS=$pkg_cv_LUA_LIBS
55726        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55727$as_echo "yes" >&6; }
55728	with_liblua="yes"
55729fi
55730
55731
55732else
55733	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
55734	LUA_LIBS=$pkg_cv_LUA_LIBS
55735        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55736$as_echo "yes" >&6; }
55737	with_liblua="yes"
55738fi
55739
55740
55741else
55742	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
55743	LUA_LIBS=$pkg_cv_LUA_LIBS
55744        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55745$as_echo "yes" >&6; }
55746	with_liblua="yes"
55747fi
55748
55749
55750elif test $pkg_failed = untried; then
55751     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55752$as_echo "no" >&6; }
55753
55754
55755pkg_failed=no
55756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
55757$as_echo_n "checking for LUA... " >&6; }
55758
55759if test -n "$LUA_CFLAGS"; then
55760    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
55761 elif test -n "$PKG_CONFIG"; then
55762    if test -n "$PKG_CONFIG" && \
55763    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
55764  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
55765  ac_status=$?
55766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55767  test $ac_status = 0; }; then
55768  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
55769		      test "x$?" != "x0" && pkg_failed=yes
55770else
55771  pkg_failed=yes
55772fi
55773 else
55774    pkg_failed=untried
55775fi
55776if test -n "$LUA_LIBS"; then
55777    pkg_cv_LUA_LIBS="$LUA_LIBS"
55778 elif test -n "$PKG_CONFIG"; then
55779    if test -n "$PKG_CONFIG" && \
55780    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
55781  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
55782  ac_status=$?
55783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55784  test $ac_status = 0; }; then
55785  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
55786		      test "x$?" != "x0" && pkg_failed=yes
55787else
55788  pkg_failed=yes
55789fi
55790 else
55791    pkg_failed=untried
55792fi
55793
55794
55795
55796if test $pkg_failed = yes; then
55797   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55798$as_echo "no" >&6; }
55799
55800if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55801        _pkg_short_errors_supported=yes
55802else
55803        _pkg_short_errors_supported=no
55804fi
55805        if test $_pkg_short_errors_supported = yes; then
55806	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
55807        else
55808	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
55809        fi
55810	# Put the nasty error message in config.log where it belongs
55811	echo "$LUA_PKG_ERRORS" >&5
55812
55813
55814
55815pkg_failed=no
55816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
55817$as_echo_n "checking for LUA... " >&6; }
55818
55819if test -n "$LUA_CFLAGS"; then
55820    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
55821 elif test -n "$PKG_CONFIG"; then
55822    if test -n "$PKG_CONFIG" && \
55823    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
55824  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
55825  ac_status=$?
55826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55827  test $ac_status = 0; }; then
55828  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
55829		      test "x$?" != "x0" && pkg_failed=yes
55830else
55831  pkg_failed=yes
55832fi
55833 else
55834    pkg_failed=untried
55835fi
55836if test -n "$LUA_LIBS"; then
55837    pkg_cv_LUA_LIBS="$LUA_LIBS"
55838 elif test -n "$PKG_CONFIG"; then
55839    if test -n "$PKG_CONFIG" && \
55840    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
55841  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
55842  ac_status=$?
55843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55844  test $ac_status = 0; }; then
55845  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
55846		      test "x$?" != "x0" && pkg_failed=yes
55847else
55848  pkg_failed=yes
55849fi
55850 else
55851    pkg_failed=untried
55852fi
55853
55854
55855
55856if test $pkg_failed = yes; then
55857   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55858$as_echo "no" >&6; }
55859
55860if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55861        _pkg_short_errors_supported=yes
55862else
55863        _pkg_short_errors_supported=no
55864fi
55865        if test $_pkg_short_errors_supported = yes; then
55866	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
55867        else
55868	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
55869        fi
55870	# Put the nasty error message in config.log where it belongs
55871	echo "$LUA_PKG_ERRORS" >&5
55872
55873
55874
55875pkg_failed=no
55876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
55877$as_echo_n "checking for LUA... " >&6; }
55878
55879if test -n "$LUA_CFLAGS"; then
55880    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
55881 elif test -n "$PKG_CONFIG"; then
55882    if test -n "$PKG_CONFIG" && \
55883    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
55884  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
55885  ac_status=$?
55886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55887  test $ac_status = 0; }; then
55888  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
55889		      test "x$?" != "x0" && pkg_failed=yes
55890else
55891  pkg_failed=yes
55892fi
55893 else
55894    pkg_failed=untried
55895fi
55896if test -n "$LUA_LIBS"; then
55897    pkg_cv_LUA_LIBS="$LUA_LIBS"
55898 elif test -n "$PKG_CONFIG"; then
55899    if test -n "$PKG_CONFIG" && \
55900    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
55901  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
55902  ac_status=$?
55903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55904  test $ac_status = 0; }; then
55905  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
55906		      test "x$?" != "x0" && pkg_failed=yes
55907else
55908  pkg_failed=yes
55909fi
55910 else
55911    pkg_failed=untried
55912fi
55913
55914
55915
55916if test $pkg_failed = yes; then
55917   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55918$as_echo "no" >&6; }
55919
55920if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55921        _pkg_short_errors_supported=yes
55922else
55923        _pkg_short_errors_supported=no
55924fi
55925        if test $_pkg_short_errors_supported = yes; then
55926	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
55927        else
55928	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
55929        fi
55930	# Put the nasty error message in config.log where it belongs
55931	echo "$LUA_PKG_ERRORS" >&5
55932
55933
55934
55935pkg_failed=no
55936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
55937$as_echo_n "checking for LUA... " >&6; }
55938
55939if test -n "$LUA_CFLAGS"; then
55940    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
55941 elif test -n "$PKG_CONFIG"; then
55942    if test -n "$PKG_CONFIG" && \
55943    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
55944  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
55945  ac_status=$?
55946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55947  test $ac_status = 0; }; then
55948  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
55949		      test "x$?" != "x0" && pkg_failed=yes
55950else
55951  pkg_failed=yes
55952fi
55953 else
55954    pkg_failed=untried
55955fi
55956if test -n "$LUA_LIBS"; then
55957    pkg_cv_LUA_LIBS="$LUA_LIBS"
55958 elif test -n "$PKG_CONFIG"; then
55959    if test -n "$PKG_CONFIG" && \
55960    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
55961  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
55962  ac_status=$?
55963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55964  test $ac_status = 0; }; then
55965  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
55966		      test "x$?" != "x0" && pkg_failed=yes
55967else
55968  pkg_failed=yes
55969fi
55970 else
55971    pkg_failed=untried
55972fi
55973
55974
55975
55976if test $pkg_failed = yes; then
55977   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55978$as_echo "no" >&6; }
55979
55980if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55981        _pkg_short_errors_supported=yes
55982else
55983        _pkg_short_errors_supported=no
55984fi
55985        if test $_pkg_short_errors_supported = yes; then
55986	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
55987        else
55988	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
55989        fi
55990	# Put the nasty error message in config.log where it belongs
55991	echo "$LUA_PKG_ERRORS" >&5
55992
55993	with_liblua="no (pkg-config cannot find liblua)"
55994
55995elif test $pkg_failed = untried; then
55996     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55997$as_echo "no" >&6; }
55998	with_liblua="no (pkg-config cannot find liblua)"
55999
56000else
56001	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
56002	LUA_LIBS=$pkg_cv_LUA_LIBS
56003        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56004$as_echo "yes" >&6; }
56005	with_liblua="yes"
56006fi
56007
56008
56009elif test $pkg_failed = untried; then
56010     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56011$as_echo "no" >&6; }
56012
56013
56014pkg_failed=no
56015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
56016$as_echo_n "checking for LUA... " >&6; }
56017
56018if test -n "$LUA_CFLAGS"; then
56019    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
56020 elif test -n "$PKG_CONFIG"; then
56021    if test -n "$PKG_CONFIG" && \
56022    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
56023  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
56024  ac_status=$?
56025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56026  test $ac_status = 0; }; then
56027  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
56028		      test "x$?" != "x0" && pkg_failed=yes
56029else
56030  pkg_failed=yes
56031fi
56032 else
56033    pkg_failed=untried
56034fi
56035if test -n "$LUA_LIBS"; then
56036    pkg_cv_LUA_LIBS="$LUA_LIBS"
56037 elif test -n "$PKG_CONFIG"; then
56038    if test -n "$PKG_CONFIG" && \
56039    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
56040  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
56041  ac_status=$?
56042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56043  test $ac_status = 0; }; then
56044  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
56045		      test "x$?" != "x0" && pkg_failed=yes
56046else
56047  pkg_failed=yes
56048fi
56049 else
56050    pkg_failed=untried
56051fi
56052
56053
56054
56055if test $pkg_failed = yes; then
56056   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56057$as_echo "no" >&6; }
56058
56059if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56060        _pkg_short_errors_supported=yes
56061else
56062        _pkg_short_errors_supported=no
56063fi
56064        if test $_pkg_short_errors_supported = yes; then
56065	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
56066        else
56067	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
56068        fi
56069	# Put the nasty error message in config.log where it belongs
56070	echo "$LUA_PKG_ERRORS" >&5
56071
56072	with_liblua="no (pkg-config cannot find liblua)"
56073
56074elif test $pkg_failed = untried; then
56075     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56076$as_echo "no" >&6; }
56077	with_liblua="no (pkg-config cannot find liblua)"
56078
56079else
56080	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
56081	LUA_LIBS=$pkg_cv_LUA_LIBS
56082        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56083$as_echo "yes" >&6; }
56084	with_liblua="yes"
56085fi
56086
56087
56088else
56089	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
56090	LUA_LIBS=$pkg_cv_LUA_LIBS
56091        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56092$as_echo "yes" >&6; }
56093	with_liblua="yes"
56094fi
56095
56096
56097elif test $pkg_failed = untried; then
56098     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56099$as_echo "no" >&6; }
56100
56101
56102pkg_failed=no
56103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
56104$as_echo_n "checking for LUA... " >&6; }
56105
56106if test -n "$LUA_CFLAGS"; then
56107    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
56108 elif test -n "$PKG_CONFIG"; then
56109    if test -n "$PKG_CONFIG" && \
56110    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
56111  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
56112  ac_status=$?
56113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56114  test $ac_status = 0; }; then
56115  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
56116		      test "x$?" != "x0" && pkg_failed=yes
56117else
56118  pkg_failed=yes
56119fi
56120 else
56121    pkg_failed=untried
56122fi
56123if test -n "$LUA_LIBS"; then
56124    pkg_cv_LUA_LIBS="$LUA_LIBS"
56125 elif test -n "$PKG_CONFIG"; then
56126    if test -n "$PKG_CONFIG" && \
56127    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
56128  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
56129  ac_status=$?
56130  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56131  test $ac_status = 0; }; then
56132  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
56133		      test "x$?" != "x0" && pkg_failed=yes
56134else
56135  pkg_failed=yes
56136fi
56137 else
56138    pkg_failed=untried
56139fi
56140
56141
56142
56143if test $pkg_failed = yes; then
56144   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56145$as_echo "no" >&6; }
56146
56147if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56148        _pkg_short_errors_supported=yes
56149else
56150        _pkg_short_errors_supported=no
56151fi
56152        if test $_pkg_short_errors_supported = yes; then
56153	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
56154        else
56155	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
56156        fi
56157	# Put the nasty error message in config.log where it belongs
56158	echo "$LUA_PKG_ERRORS" >&5
56159
56160
56161
56162pkg_failed=no
56163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
56164$as_echo_n "checking for LUA... " >&6; }
56165
56166if test -n "$LUA_CFLAGS"; then
56167    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
56168 elif test -n "$PKG_CONFIG"; then
56169    if test -n "$PKG_CONFIG" && \
56170    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
56171  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
56172  ac_status=$?
56173  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56174  test $ac_status = 0; }; then
56175  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
56176		      test "x$?" != "x0" && pkg_failed=yes
56177else
56178  pkg_failed=yes
56179fi
56180 else
56181    pkg_failed=untried
56182fi
56183if test -n "$LUA_LIBS"; then
56184    pkg_cv_LUA_LIBS="$LUA_LIBS"
56185 elif test -n "$PKG_CONFIG"; then
56186    if test -n "$PKG_CONFIG" && \
56187    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
56188  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
56189  ac_status=$?
56190  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56191  test $ac_status = 0; }; then
56192  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
56193		      test "x$?" != "x0" && pkg_failed=yes
56194else
56195  pkg_failed=yes
56196fi
56197 else
56198    pkg_failed=untried
56199fi
56200
56201
56202
56203if test $pkg_failed = yes; then
56204   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56205$as_echo "no" >&6; }
56206
56207if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56208        _pkg_short_errors_supported=yes
56209else
56210        _pkg_short_errors_supported=no
56211fi
56212        if test $_pkg_short_errors_supported = yes; then
56213	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
56214        else
56215	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
56216        fi
56217	# Put the nasty error message in config.log where it belongs
56218	echo "$LUA_PKG_ERRORS" >&5
56219
56220	with_liblua="no (pkg-config cannot find liblua)"
56221
56222elif test $pkg_failed = untried; then
56223     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56224$as_echo "no" >&6; }
56225	with_liblua="no (pkg-config cannot find liblua)"
56226
56227else
56228	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
56229	LUA_LIBS=$pkg_cv_LUA_LIBS
56230        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56231$as_echo "yes" >&6; }
56232	with_liblua="yes"
56233fi
56234
56235
56236elif test $pkg_failed = untried; then
56237     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56238$as_echo "no" >&6; }
56239
56240
56241pkg_failed=no
56242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
56243$as_echo_n "checking for LUA... " >&6; }
56244
56245if test -n "$LUA_CFLAGS"; then
56246    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
56247 elif test -n "$PKG_CONFIG"; then
56248    if test -n "$PKG_CONFIG" && \
56249    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
56250  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
56251  ac_status=$?
56252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56253  test $ac_status = 0; }; then
56254  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
56255		      test "x$?" != "x0" && pkg_failed=yes
56256else
56257  pkg_failed=yes
56258fi
56259 else
56260    pkg_failed=untried
56261fi
56262if test -n "$LUA_LIBS"; then
56263    pkg_cv_LUA_LIBS="$LUA_LIBS"
56264 elif test -n "$PKG_CONFIG"; then
56265    if test -n "$PKG_CONFIG" && \
56266    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
56267  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
56268  ac_status=$?
56269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56270  test $ac_status = 0; }; then
56271  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
56272		      test "x$?" != "x0" && pkg_failed=yes
56273else
56274  pkg_failed=yes
56275fi
56276 else
56277    pkg_failed=untried
56278fi
56279
56280
56281
56282if test $pkg_failed = yes; then
56283   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56284$as_echo "no" >&6; }
56285
56286if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56287        _pkg_short_errors_supported=yes
56288else
56289        _pkg_short_errors_supported=no
56290fi
56291        if test $_pkg_short_errors_supported = yes; then
56292	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
56293        else
56294	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
56295        fi
56296	# Put the nasty error message in config.log where it belongs
56297	echo "$LUA_PKG_ERRORS" >&5
56298
56299	with_liblua="no (pkg-config cannot find liblua)"
56300
56301elif test $pkg_failed = untried; then
56302     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56303$as_echo "no" >&6; }
56304	with_liblua="no (pkg-config cannot find liblua)"
56305
56306else
56307	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
56308	LUA_LIBS=$pkg_cv_LUA_LIBS
56309        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56310$as_echo "yes" >&6; }
56311	with_liblua="yes"
56312fi
56313
56314
56315else
56316	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
56317	LUA_LIBS=$pkg_cv_LUA_LIBS
56318        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56319$as_echo "yes" >&6; }
56320	with_liblua="yes"
56321fi
56322
56323
56324else
56325	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
56326	LUA_LIBS=$pkg_cv_LUA_LIBS
56327        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56328$as_echo "yes" >&6; }
56329	with_liblua="yes"
56330fi
56331
56332
56333elif test $pkg_failed = untried; then
56334     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56335$as_echo "no" >&6; }
56336
56337
56338pkg_failed=no
56339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
56340$as_echo_n "checking for LUA... " >&6; }
56341
56342if test -n "$LUA_CFLAGS"; then
56343    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
56344 elif test -n "$PKG_CONFIG"; then
56345    if test -n "$PKG_CONFIG" && \
56346    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
56347  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
56348  ac_status=$?
56349  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56350  test $ac_status = 0; }; then
56351  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
56352		      test "x$?" != "x0" && pkg_failed=yes
56353else
56354  pkg_failed=yes
56355fi
56356 else
56357    pkg_failed=untried
56358fi
56359if test -n "$LUA_LIBS"; then
56360    pkg_cv_LUA_LIBS="$LUA_LIBS"
56361 elif test -n "$PKG_CONFIG"; then
56362    if test -n "$PKG_CONFIG" && \
56363    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
56364  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
56365  ac_status=$?
56366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56367  test $ac_status = 0; }; then
56368  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
56369		      test "x$?" != "x0" && pkg_failed=yes
56370else
56371  pkg_failed=yes
56372fi
56373 else
56374    pkg_failed=untried
56375fi
56376
56377
56378
56379if test $pkg_failed = yes; then
56380   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56381$as_echo "no" >&6; }
56382
56383if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56384        _pkg_short_errors_supported=yes
56385else
56386        _pkg_short_errors_supported=no
56387fi
56388        if test $_pkg_short_errors_supported = yes; then
56389	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
56390        else
56391	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
56392        fi
56393	# Put the nasty error message in config.log where it belongs
56394	echo "$LUA_PKG_ERRORS" >&5
56395
56396
56397
56398pkg_failed=no
56399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
56400$as_echo_n "checking for LUA... " >&6; }
56401
56402if test -n "$LUA_CFLAGS"; then
56403    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
56404 elif test -n "$PKG_CONFIG"; then
56405    if test -n "$PKG_CONFIG" && \
56406    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
56407  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
56408  ac_status=$?
56409  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56410  test $ac_status = 0; }; then
56411  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
56412		      test "x$?" != "x0" && pkg_failed=yes
56413else
56414  pkg_failed=yes
56415fi
56416 else
56417    pkg_failed=untried
56418fi
56419if test -n "$LUA_LIBS"; then
56420    pkg_cv_LUA_LIBS="$LUA_LIBS"
56421 elif test -n "$PKG_CONFIG"; then
56422    if test -n "$PKG_CONFIG" && \
56423    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
56424  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
56425  ac_status=$?
56426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56427  test $ac_status = 0; }; then
56428  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
56429		      test "x$?" != "x0" && pkg_failed=yes
56430else
56431  pkg_failed=yes
56432fi
56433 else
56434    pkg_failed=untried
56435fi
56436
56437
56438
56439if test $pkg_failed = yes; then
56440   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56441$as_echo "no" >&6; }
56442
56443if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56444        _pkg_short_errors_supported=yes
56445else
56446        _pkg_short_errors_supported=no
56447fi
56448        if test $_pkg_short_errors_supported = yes; then
56449	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
56450        else
56451	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
56452        fi
56453	# Put the nasty error message in config.log where it belongs
56454	echo "$LUA_PKG_ERRORS" >&5
56455
56456
56457
56458pkg_failed=no
56459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
56460$as_echo_n "checking for LUA... " >&6; }
56461
56462if test -n "$LUA_CFLAGS"; then
56463    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
56464 elif test -n "$PKG_CONFIG"; then
56465    if test -n "$PKG_CONFIG" && \
56466    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
56467  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
56468  ac_status=$?
56469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56470  test $ac_status = 0; }; then
56471  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
56472		      test "x$?" != "x0" && pkg_failed=yes
56473else
56474  pkg_failed=yes
56475fi
56476 else
56477    pkg_failed=untried
56478fi
56479if test -n "$LUA_LIBS"; then
56480    pkg_cv_LUA_LIBS="$LUA_LIBS"
56481 elif test -n "$PKG_CONFIG"; then
56482    if test -n "$PKG_CONFIG" && \
56483    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
56484  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
56485  ac_status=$?
56486  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56487  test $ac_status = 0; }; then
56488  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
56489		      test "x$?" != "x0" && pkg_failed=yes
56490else
56491  pkg_failed=yes
56492fi
56493 else
56494    pkg_failed=untried
56495fi
56496
56497
56498
56499if test $pkg_failed = yes; then
56500   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56501$as_echo "no" >&6; }
56502
56503if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56504        _pkg_short_errors_supported=yes
56505else
56506        _pkg_short_errors_supported=no
56507fi
56508        if test $_pkg_short_errors_supported = yes; then
56509	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
56510        else
56511	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
56512        fi
56513	# Put the nasty error message in config.log where it belongs
56514	echo "$LUA_PKG_ERRORS" >&5
56515
56516	with_liblua="no (pkg-config cannot find liblua)"
56517
56518elif test $pkg_failed = untried; then
56519     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56520$as_echo "no" >&6; }
56521	with_liblua="no (pkg-config cannot find liblua)"
56522
56523else
56524	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
56525	LUA_LIBS=$pkg_cv_LUA_LIBS
56526        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56527$as_echo "yes" >&6; }
56528	with_liblua="yes"
56529fi
56530
56531
56532elif test $pkg_failed = untried; then
56533     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56534$as_echo "no" >&6; }
56535
56536
56537pkg_failed=no
56538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
56539$as_echo_n "checking for LUA... " >&6; }
56540
56541if test -n "$LUA_CFLAGS"; then
56542    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
56543 elif test -n "$PKG_CONFIG"; then
56544    if test -n "$PKG_CONFIG" && \
56545    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
56546  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
56547  ac_status=$?
56548  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56549  test $ac_status = 0; }; then
56550  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
56551		      test "x$?" != "x0" && pkg_failed=yes
56552else
56553  pkg_failed=yes
56554fi
56555 else
56556    pkg_failed=untried
56557fi
56558if test -n "$LUA_LIBS"; then
56559    pkg_cv_LUA_LIBS="$LUA_LIBS"
56560 elif test -n "$PKG_CONFIG"; then
56561    if test -n "$PKG_CONFIG" && \
56562    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
56563  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
56564  ac_status=$?
56565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56566  test $ac_status = 0; }; then
56567  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
56568		      test "x$?" != "x0" && pkg_failed=yes
56569else
56570  pkg_failed=yes
56571fi
56572 else
56573    pkg_failed=untried
56574fi
56575
56576
56577
56578if test $pkg_failed = yes; then
56579   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56580$as_echo "no" >&6; }
56581
56582if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56583        _pkg_short_errors_supported=yes
56584else
56585        _pkg_short_errors_supported=no
56586fi
56587        if test $_pkg_short_errors_supported = yes; then
56588	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
56589        else
56590	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
56591        fi
56592	# Put the nasty error message in config.log where it belongs
56593	echo "$LUA_PKG_ERRORS" >&5
56594
56595	with_liblua="no (pkg-config cannot find liblua)"
56596
56597elif test $pkg_failed = untried; then
56598     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56599$as_echo "no" >&6; }
56600	with_liblua="no (pkg-config cannot find liblua)"
56601
56602else
56603	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
56604	LUA_LIBS=$pkg_cv_LUA_LIBS
56605        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56606$as_echo "yes" >&6; }
56607	with_liblua="yes"
56608fi
56609
56610
56611else
56612	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
56613	LUA_LIBS=$pkg_cv_LUA_LIBS
56614        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56615$as_echo "yes" >&6; }
56616	with_liblua="yes"
56617fi
56618
56619
56620elif test $pkg_failed = untried; then
56621     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56622$as_echo "no" >&6; }
56623
56624
56625pkg_failed=no
56626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
56627$as_echo_n "checking for LUA... " >&6; }
56628
56629if test -n "$LUA_CFLAGS"; then
56630    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
56631 elif test -n "$PKG_CONFIG"; then
56632    if test -n "$PKG_CONFIG" && \
56633    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
56634  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
56635  ac_status=$?
56636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56637  test $ac_status = 0; }; then
56638  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
56639		      test "x$?" != "x0" && pkg_failed=yes
56640else
56641  pkg_failed=yes
56642fi
56643 else
56644    pkg_failed=untried
56645fi
56646if test -n "$LUA_LIBS"; then
56647    pkg_cv_LUA_LIBS="$LUA_LIBS"
56648 elif test -n "$PKG_CONFIG"; then
56649    if test -n "$PKG_CONFIG" && \
56650    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
56651  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
56652  ac_status=$?
56653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56654  test $ac_status = 0; }; then
56655  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
56656		      test "x$?" != "x0" && pkg_failed=yes
56657else
56658  pkg_failed=yes
56659fi
56660 else
56661    pkg_failed=untried
56662fi
56663
56664
56665
56666if test $pkg_failed = yes; then
56667   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56668$as_echo "no" >&6; }
56669
56670if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56671        _pkg_short_errors_supported=yes
56672else
56673        _pkg_short_errors_supported=no
56674fi
56675        if test $_pkg_short_errors_supported = yes; then
56676	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
56677        else
56678	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
56679        fi
56680	# Put the nasty error message in config.log where it belongs
56681	echo "$LUA_PKG_ERRORS" >&5
56682
56683
56684
56685pkg_failed=no
56686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
56687$as_echo_n "checking for LUA... " >&6; }
56688
56689if test -n "$LUA_CFLAGS"; then
56690    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
56691 elif test -n "$PKG_CONFIG"; then
56692    if test -n "$PKG_CONFIG" && \
56693    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
56694  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
56695  ac_status=$?
56696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56697  test $ac_status = 0; }; then
56698  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
56699		      test "x$?" != "x0" && pkg_failed=yes
56700else
56701  pkg_failed=yes
56702fi
56703 else
56704    pkg_failed=untried
56705fi
56706if test -n "$LUA_LIBS"; then
56707    pkg_cv_LUA_LIBS="$LUA_LIBS"
56708 elif test -n "$PKG_CONFIG"; then
56709    if test -n "$PKG_CONFIG" && \
56710    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
56711  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
56712  ac_status=$?
56713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56714  test $ac_status = 0; }; then
56715  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
56716		      test "x$?" != "x0" && pkg_failed=yes
56717else
56718  pkg_failed=yes
56719fi
56720 else
56721    pkg_failed=untried
56722fi
56723
56724
56725
56726if test $pkg_failed = yes; then
56727   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56728$as_echo "no" >&6; }
56729
56730if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56731        _pkg_short_errors_supported=yes
56732else
56733        _pkg_short_errors_supported=no
56734fi
56735        if test $_pkg_short_errors_supported = yes; then
56736	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
56737        else
56738	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
56739        fi
56740	# Put the nasty error message in config.log where it belongs
56741	echo "$LUA_PKG_ERRORS" >&5
56742
56743	with_liblua="no (pkg-config cannot find liblua)"
56744
56745elif test $pkg_failed = untried; then
56746     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56747$as_echo "no" >&6; }
56748	with_liblua="no (pkg-config cannot find liblua)"
56749
56750else
56751	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
56752	LUA_LIBS=$pkg_cv_LUA_LIBS
56753        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56754$as_echo "yes" >&6; }
56755	with_liblua="yes"
56756fi
56757
56758
56759elif test $pkg_failed = untried; then
56760     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56761$as_echo "no" >&6; }
56762
56763
56764pkg_failed=no
56765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
56766$as_echo_n "checking for LUA... " >&6; }
56767
56768if test -n "$LUA_CFLAGS"; then
56769    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
56770 elif test -n "$PKG_CONFIG"; then
56771    if test -n "$PKG_CONFIG" && \
56772    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
56773  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
56774  ac_status=$?
56775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56776  test $ac_status = 0; }; then
56777  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
56778		      test "x$?" != "x0" && pkg_failed=yes
56779else
56780  pkg_failed=yes
56781fi
56782 else
56783    pkg_failed=untried
56784fi
56785if test -n "$LUA_LIBS"; then
56786    pkg_cv_LUA_LIBS="$LUA_LIBS"
56787 elif test -n "$PKG_CONFIG"; then
56788    if test -n "$PKG_CONFIG" && \
56789    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
56790  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
56791  ac_status=$?
56792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56793  test $ac_status = 0; }; then
56794  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
56795		      test "x$?" != "x0" && pkg_failed=yes
56796else
56797  pkg_failed=yes
56798fi
56799 else
56800    pkg_failed=untried
56801fi
56802
56803
56804
56805if test $pkg_failed = yes; then
56806   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56807$as_echo "no" >&6; }
56808
56809if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56810        _pkg_short_errors_supported=yes
56811else
56812        _pkg_short_errors_supported=no
56813fi
56814        if test $_pkg_short_errors_supported = yes; then
56815	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
56816        else
56817	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
56818        fi
56819	# Put the nasty error message in config.log where it belongs
56820	echo "$LUA_PKG_ERRORS" >&5
56821
56822	with_liblua="no (pkg-config cannot find liblua)"
56823
56824elif test $pkg_failed = untried; then
56825     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56826$as_echo "no" >&6; }
56827	with_liblua="no (pkg-config cannot find liblua)"
56828
56829else
56830	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
56831	LUA_LIBS=$pkg_cv_LUA_LIBS
56832        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56833$as_echo "yes" >&6; }
56834	with_liblua="yes"
56835fi
56836
56837
56838else
56839	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
56840	LUA_LIBS=$pkg_cv_LUA_LIBS
56841        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56842$as_echo "yes" >&6; }
56843	with_liblua="yes"
56844fi
56845
56846
56847else
56848	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
56849	LUA_LIBS=$pkg_cv_LUA_LIBS
56850        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56851$as_echo "yes" >&6; }
56852	with_liblua="yes"
56853fi
56854
56855
56856else
56857	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
56858	LUA_LIBS=$pkg_cv_LUA_LIBS
56859        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56860$as_echo "yes" >&6; }
56861	with_liblua="yes"
56862fi
56863
56864
56865else
56866	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
56867	LUA_LIBS=$pkg_cv_LUA_LIBS
56868        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56869$as_echo "yes" >&6; }
56870	with_liblua="yes"
56871fi
56872
56873
56874elif test $pkg_failed = untried; then
56875     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56876$as_echo "no" >&6; }
56877
56878
56879pkg_failed=no
56880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
56881$as_echo_n "checking for LUA... " >&6; }
56882
56883if test -n "$LUA_CFLAGS"; then
56884    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
56885 elif test -n "$PKG_CONFIG"; then
56886    if test -n "$PKG_CONFIG" && \
56887    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
56888  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
56889  ac_status=$?
56890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56891  test $ac_status = 0; }; then
56892  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
56893		      test "x$?" != "x0" && pkg_failed=yes
56894else
56895  pkg_failed=yes
56896fi
56897 else
56898    pkg_failed=untried
56899fi
56900if test -n "$LUA_LIBS"; then
56901    pkg_cv_LUA_LIBS="$LUA_LIBS"
56902 elif test -n "$PKG_CONFIG"; then
56903    if test -n "$PKG_CONFIG" && \
56904    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
56905  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
56906  ac_status=$?
56907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56908  test $ac_status = 0; }; then
56909  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
56910		      test "x$?" != "x0" && pkg_failed=yes
56911else
56912  pkg_failed=yes
56913fi
56914 else
56915    pkg_failed=untried
56916fi
56917
56918
56919
56920if test $pkg_failed = yes; then
56921   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56922$as_echo "no" >&6; }
56923
56924if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56925        _pkg_short_errors_supported=yes
56926else
56927        _pkg_short_errors_supported=no
56928fi
56929        if test $_pkg_short_errors_supported = yes; then
56930	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
56931        else
56932	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
56933        fi
56934	# Put the nasty error message in config.log where it belongs
56935	echo "$LUA_PKG_ERRORS" >&5
56936
56937
56938
56939pkg_failed=no
56940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
56941$as_echo_n "checking for LUA... " >&6; }
56942
56943if test -n "$LUA_CFLAGS"; then
56944    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
56945 elif test -n "$PKG_CONFIG"; then
56946    if test -n "$PKG_CONFIG" && \
56947    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
56948  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
56949  ac_status=$?
56950  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56951  test $ac_status = 0; }; then
56952  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
56953		      test "x$?" != "x0" && pkg_failed=yes
56954else
56955  pkg_failed=yes
56956fi
56957 else
56958    pkg_failed=untried
56959fi
56960if test -n "$LUA_LIBS"; then
56961    pkg_cv_LUA_LIBS="$LUA_LIBS"
56962 elif test -n "$PKG_CONFIG"; then
56963    if test -n "$PKG_CONFIG" && \
56964    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
56965  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
56966  ac_status=$?
56967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56968  test $ac_status = 0; }; then
56969  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
56970		      test "x$?" != "x0" && pkg_failed=yes
56971else
56972  pkg_failed=yes
56973fi
56974 else
56975    pkg_failed=untried
56976fi
56977
56978
56979
56980if test $pkg_failed = yes; then
56981   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56982$as_echo "no" >&6; }
56983
56984if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56985        _pkg_short_errors_supported=yes
56986else
56987        _pkg_short_errors_supported=no
56988fi
56989        if test $_pkg_short_errors_supported = yes; then
56990	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
56991        else
56992	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
56993        fi
56994	# Put the nasty error message in config.log where it belongs
56995	echo "$LUA_PKG_ERRORS" >&5
56996
56997
56998
56999pkg_failed=no
57000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
57001$as_echo_n "checking for LUA... " >&6; }
57002
57003if test -n "$LUA_CFLAGS"; then
57004    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
57005 elif test -n "$PKG_CONFIG"; then
57006    if test -n "$PKG_CONFIG" && \
57007    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
57008  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
57009  ac_status=$?
57010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57011  test $ac_status = 0; }; then
57012  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
57013		      test "x$?" != "x0" && pkg_failed=yes
57014else
57015  pkg_failed=yes
57016fi
57017 else
57018    pkg_failed=untried
57019fi
57020if test -n "$LUA_LIBS"; then
57021    pkg_cv_LUA_LIBS="$LUA_LIBS"
57022 elif test -n "$PKG_CONFIG"; then
57023    if test -n "$PKG_CONFIG" && \
57024    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
57025  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
57026  ac_status=$?
57027  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57028  test $ac_status = 0; }; then
57029  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
57030		      test "x$?" != "x0" && pkg_failed=yes
57031else
57032  pkg_failed=yes
57033fi
57034 else
57035    pkg_failed=untried
57036fi
57037
57038
57039
57040if test $pkg_failed = yes; then
57041   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57042$as_echo "no" >&6; }
57043
57044if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57045        _pkg_short_errors_supported=yes
57046else
57047        _pkg_short_errors_supported=no
57048fi
57049        if test $_pkg_short_errors_supported = yes; then
57050	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
57051        else
57052	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
57053        fi
57054	# Put the nasty error message in config.log where it belongs
57055	echo "$LUA_PKG_ERRORS" >&5
57056
57057
57058
57059pkg_failed=no
57060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
57061$as_echo_n "checking for LUA... " >&6; }
57062
57063if test -n "$LUA_CFLAGS"; then
57064    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
57065 elif test -n "$PKG_CONFIG"; then
57066    if test -n "$PKG_CONFIG" && \
57067    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
57068  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
57069  ac_status=$?
57070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57071  test $ac_status = 0; }; then
57072  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
57073		      test "x$?" != "x0" && pkg_failed=yes
57074else
57075  pkg_failed=yes
57076fi
57077 else
57078    pkg_failed=untried
57079fi
57080if test -n "$LUA_LIBS"; then
57081    pkg_cv_LUA_LIBS="$LUA_LIBS"
57082 elif test -n "$PKG_CONFIG"; then
57083    if test -n "$PKG_CONFIG" && \
57084    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
57085  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
57086  ac_status=$?
57087  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57088  test $ac_status = 0; }; then
57089  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
57090		      test "x$?" != "x0" && pkg_failed=yes
57091else
57092  pkg_failed=yes
57093fi
57094 else
57095    pkg_failed=untried
57096fi
57097
57098
57099
57100if test $pkg_failed = yes; then
57101   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57102$as_echo "no" >&6; }
57103
57104if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57105        _pkg_short_errors_supported=yes
57106else
57107        _pkg_short_errors_supported=no
57108fi
57109        if test $_pkg_short_errors_supported = yes; then
57110	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
57111        else
57112	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
57113        fi
57114	# Put the nasty error message in config.log where it belongs
57115	echo "$LUA_PKG_ERRORS" >&5
57116
57117
57118
57119pkg_failed=no
57120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
57121$as_echo_n "checking for LUA... " >&6; }
57122
57123if test -n "$LUA_CFLAGS"; then
57124    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
57125 elif test -n "$PKG_CONFIG"; then
57126    if test -n "$PKG_CONFIG" && \
57127    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
57128  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
57129  ac_status=$?
57130  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57131  test $ac_status = 0; }; then
57132  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
57133		      test "x$?" != "x0" && pkg_failed=yes
57134else
57135  pkg_failed=yes
57136fi
57137 else
57138    pkg_failed=untried
57139fi
57140if test -n "$LUA_LIBS"; then
57141    pkg_cv_LUA_LIBS="$LUA_LIBS"
57142 elif test -n "$PKG_CONFIG"; then
57143    if test -n "$PKG_CONFIG" && \
57144    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
57145  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
57146  ac_status=$?
57147  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57148  test $ac_status = 0; }; then
57149  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
57150		      test "x$?" != "x0" && pkg_failed=yes
57151else
57152  pkg_failed=yes
57153fi
57154 else
57155    pkg_failed=untried
57156fi
57157
57158
57159
57160if test $pkg_failed = yes; then
57161   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57162$as_echo "no" >&6; }
57163
57164if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57165        _pkg_short_errors_supported=yes
57166else
57167        _pkg_short_errors_supported=no
57168fi
57169        if test $_pkg_short_errors_supported = yes; then
57170	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
57171        else
57172	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
57173        fi
57174	# Put the nasty error message in config.log where it belongs
57175	echo "$LUA_PKG_ERRORS" >&5
57176
57177	with_liblua="no (pkg-config cannot find liblua)"
57178
57179elif test $pkg_failed = untried; then
57180     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57181$as_echo "no" >&6; }
57182	with_liblua="no (pkg-config cannot find liblua)"
57183
57184else
57185	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
57186	LUA_LIBS=$pkg_cv_LUA_LIBS
57187        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57188$as_echo "yes" >&6; }
57189	with_liblua="yes"
57190fi
57191
57192
57193elif test $pkg_failed = untried; then
57194     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57195$as_echo "no" >&6; }
57196
57197
57198pkg_failed=no
57199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
57200$as_echo_n "checking for LUA... " >&6; }
57201
57202if test -n "$LUA_CFLAGS"; then
57203    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
57204 elif test -n "$PKG_CONFIG"; then
57205    if test -n "$PKG_CONFIG" && \
57206    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
57207  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
57208  ac_status=$?
57209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57210  test $ac_status = 0; }; then
57211  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
57212		      test "x$?" != "x0" && pkg_failed=yes
57213else
57214  pkg_failed=yes
57215fi
57216 else
57217    pkg_failed=untried
57218fi
57219if test -n "$LUA_LIBS"; then
57220    pkg_cv_LUA_LIBS="$LUA_LIBS"
57221 elif test -n "$PKG_CONFIG"; then
57222    if test -n "$PKG_CONFIG" && \
57223    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
57224  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
57225  ac_status=$?
57226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57227  test $ac_status = 0; }; then
57228  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
57229		      test "x$?" != "x0" && pkg_failed=yes
57230else
57231  pkg_failed=yes
57232fi
57233 else
57234    pkg_failed=untried
57235fi
57236
57237
57238
57239if test $pkg_failed = yes; then
57240   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57241$as_echo "no" >&6; }
57242
57243if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57244        _pkg_short_errors_supported=yes
57245else
57246        _pkg_short_errors_supported=no
57247fi
57248        if test $_pkg_short_errors_supported = yes; then
57249	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
57250        else
57251	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
57252        fi
57253	# Put the nasty error message in config.log where it belongs
57254	echo "$LUA_PKG_ERRORS" >&5
57255
57256	with_liblua="no (pkg-config cannot find liblua)"
57257
57258elif test $pkg_failed = untried; then
57259     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57260$as_echo "no" >&6; }
57261	with_liblua="no (pkg-config cannot find liblua)"
57262
57263else
57264	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
57265	LUA_LIBS=$pkg_cv_LUA_LIBS
57266        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57267$as_echo "yes" >&6; }
57268	with_liblua="yes"
57269fi
57270
57271
57272else
57273	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
57274	LUA_LIBS=$pkg_cv_LUA_LIBS
57275        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57276$as_echo "yes" >&6; }
57277	with_liblua="yes"
57278fi
57279
57280
57281elif test $pkg_failed = untried; then
57282     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57283$as_echo "no" >&6; }
57284
57285
57286pkg_failed=no
57287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
57288$as_echo_n "checking for LUA... " >&6; }
57289
57290if test -n "$LUA_CFLAGS"; then
57291    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
57292 elif test -n "$PKG_CONFIG"; then
57293    if test -n "$PKG_CONFIG" && \
57294    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
57295  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
57296  ac_status=$?
57297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57298  test $ac_status = 0; }; then
57299  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
57300		      test "x$?" != "x0" && pkg_failed=yes
57301else
57302  pkg_failed=yes
57303fi
57304 else
57305    pkg_failed=untried
57306fi
57307if test -n "$LUA_LIBS"; then
57308    pkg_cv_LUA_LIBS="$LUA_LIBS"
57309 elif test -n "$PKG_CONFIG"; then
57310    if test -n "$PKG_CONFIG" && \
57311    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
57312  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
57313  ac_status=$?
57314  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57315  test $ac_status = 0; }; then
57316  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
57317		      test "x$?" != "x0" && pkg_failed=yes
57318else
57319  pkg_failed=yes
57320fi
57321 else
57322    pkg_failed=untried
57323fi
57324
57325
57326
57327if test $pkg_failed = yes; then
57328   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57329$as_echo "no" >&6; }
57330
57331if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57332        _pkg_short_errors_supported=yes
57333else
57334        _pkg_short_errors_supported=no
57335fi
57336        if test $_pkg_short_errors_supported = yes; then
57337	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
57338        else
57339	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
57340        fi
57341	# Put the nasty error message in config.log where it belongs
57342	echo "$LUA_PKG_ERRORS" >&5
57343
57344
57345
57346pkg_failed=no
57347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
57348$as_echo_n "checking for LUA... " >&6; }
57349
57350if test -n "$LUA_CFLAGS"; then
57351    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
57352 elif test -n "$PKG_CONFIG"; then
57353    if test -n "$PKG_CONFIG" && \
57354    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
57355  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
57356  ac_status=$?
57357  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57358  test $ac_status = 0; }; then
57359  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
57360		      test "x$?" != "x0" && pkg_failed=yes
57361else
57362  pkg_failed=yes
57363fi
57364 else
57365    pkg_failed=untried
57366fi
57367if test -n "$LUA_LIBS"; then
57368    pkg_cv_LUA_LIBS="$LUA_LIBS"
57369 elif test -n "$PKG_CONFIG"; then
57370    if test -n "$PKG_CONFIG" && \
57371    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
57372  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
57373  ac_status=$?
57374  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57375  test $ac_status = 0; }; then
57376  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
57377		      test "x$?" != "x0" && pkg_failed=yes
57378else
57379  pkg_failed=yes
57380fi
57381 else
57382    pkg_failed=untried
57383fi
57384
57385
57386
57387if test $pkg_failed = yes; then
57388   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57389$as_echo "no" >&6; }
57390
57391if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57392        _pkg_short_errors_supported=yes
57393else
57394        _pkg_short_errors_supported=no
57395fi
57396        if test $_pkg_short_errors_supported = yes; then
57397	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
57398        else
57399	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
57400        fi
57401	# Put the nasty error message in config.log where it belongs
57402	echo "$LUA_PKG_ERRORS" >&5
57403
57404	with_liblua="no (pkg-config cannot find liblua)"
57405
57406elif test $pkg_failed = untried; then
57407     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57408$as_echo "no" >&6; }
57409	with_liblua="no (pkg-config cannot find liblua)"
57410
57411else
57412	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
57413	LUA_LIBS=$pkg_cv_LUA_LIBS
57414        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57415$as_echo "yes" >&6; }
57416	with_liblua="yes"
57417fi
57418
57419
57420elif test $pkg_failed = untried; then
57421     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57422$as_echo "no" >&6; }
57423
57424
57425pkg_failed=no
57426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
57427$as_echo_n "checking for LUA... " >&6; }
57428
57429if test -n "$LUA_CFLAGS"; then
57430    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
57431 elif test -n "$PKG_CONFIG"; then
57432    if test -n "$PKG_CONFIG" && \
57433    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
57434  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
57435  ac_status=$?
57436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57437  test $ac_status = 0; }; then
57438  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
57439		      test "x$?" != "x0" && pkg_failed=yes
57440else
57441  pkg_failed=yes
57442fi
57443 else
57444    pkg_failed=untried
57445fi
57446if test -n "$LUA_LIBS"; then
57447    pkg_cv_LUA_LIBS="$LUA_LIBS"
57448 elif test -n "$PKG_CONFIG"; then
57449    if test -n "$PKG_CONFIG" && \
57450    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
57451  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
57452  ac_status=$?
57453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57454  test $ac_status = 0; }; then
57455  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
57456		      test "x$?" != "x0" && pkg_failed=yes
57457else
57458  pkg_failed=yes
57459fi
57460 else
57461    pkg_failed=untried
57462fi
57463
57464
57465
57466if test $pkg_failed = yes; then
57467   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57468$as_echo "no" >&6; }
57469
57470if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57471        _pkg_short_errors_supported=yes
57472else
57473        _pkg_short_errors_supported=no
57474fi
57475        if test $_pkg_short_errors_supported = yes; then
57476	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
57477        else
57478	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
57479        fi
57480	# Put the nasty error message in config.log where it belongs
57481	echo "$LUA_PKG_ERRORS" >&5
57482
57483	with_liblua="no (pkg-config cannot find liblua)"
57484
57485elif test $pkg_failed = untried; then
57486     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57487$as_echo "no" >&6; }
57488	with_liblua="no (pkg-config cannot find liblua)"
57489
57490else
57491	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
57492	LUA_LIBS=$pkg_cv_LUA_LIBS
57493        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57494$as_echo "yes" >&6; }
57495	with_liblua="yes"
57496fi
57497
57498
57499else
57500	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
57501	LUA_LIBS=$pkg_cv_LUA_LIBS
57502        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57503$as_echo "yes" >&6; }
57504	with_liblua="yes"
57505fi
57506
57507
57508else
57509	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
57510	LUA_LIBS=$pkg_cv_LUA_LIBS
57511        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57512$as_echo "yes" >&6; }
57513	with_liblua="yes"
57514fi
57515
57516
57517elif test $pkg_failed = untried; then
57518     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57519$as_echo "no" >&6; }
57520
57521
57522pkg_failed=no
57523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
57524$as_echo_n "checking for LUA... " >&6; }
57525
57526if test -n "$LUA_CFLAGS"; then
57527    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
57528 elif test -n "$PKG_CONFIG"; then
57529    if test -n "$PKG_CONFIG" && \
57530    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
57531  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
57532  ac_status=$?
57533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57534  test $ac_status = 0; }; then
57535  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
57536		      test "x$?" != "x0" && pkg_failed=yes
57537else
57538  pkg_failed=yes
57539fi
57540 else
57541    pkg_failed=untried
57542fi
57543if test -n "$LUA_LIBS"; then
57544    pkg_cv_LUA_LIBS="$LUA_LIBS"
57545 elif test -n "$PKG_CONFIG"; then
57546    if test -n "$PKG_CONFIG" && \
57547    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
57548  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
57549  ac_status=$?
57550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57551  test $ac_status = 0; }; then
57552  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
57553		      test "x$?" != "x0" && pkg_failed=yes
57554else
57555  pkg_failed=yes
57556fi
57557 else
57558    pkg_failed=untried
57559fi
57560
57561
57562
57563if test $pkg_failed = yes; then
57564   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57565$as_echo "no" >&6; }
57566
57567if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57568        _pkg_short_errors_supported=yes
57569else
57570        _pkg_short_errors_supported=no
57571fi
57572        if test $_pkg_short_errors_supported = yes; then
57573	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
57574        else
57575	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
57576        fi
57577	# Put the nasty error message in config.log where it belongs
57578	echo "$LUA_PKG_ERRORS" >&5
57579
57580
57581
57582pkg_failed=no
57583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
57584$as_echo_n "checking for LUA... " >&6; }
57585
57586if test -n "$LUA_CFLAGS"; then
57587    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
57588 elif test -n "$PKG_CONFIG"; then
57589    if test -n "$PKG_CONFIG" && \
57590    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
57591  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
57592  ac_status=$?
57593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57594  test $ac_status = 0; }; then
57595  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
57596		      test "x$?" != "x0" && pkg_failed=yes
57597else
57598  pkg_failed=yes
57599fi
57600 else
57601    pkg_failed=untried
57602fi
57603if test -n "$LUA_LIBS"; then
57604    pkg_cv_LUA_LIBS="$LUA_LIBS"
57605 elif test -n "$PKG_CONFIG"; then
57606    if test -n "$PKG_CONFIG" && \
57607    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
57608  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
57609  ac_status=$?
57610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57611  test $ac_status = 0; }; then
57612  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
57613		      test "x$?" != "x0" && pkg_failed=yes
57614else
57615  pkg_failed=yes
57616fi
57617 else
57618    pkg_failed=untried
57619fi
57620
57621
57622
57623if test $pkg_failed = yes; then
57624   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57625$as_echo "no" >&6; }
57626
57627if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57628        _pkg_short_errors_supported=yes
57629else
57630        _pkg_short_errors_supported=no
57631fi
57632        if test $_pkg_short_errors_supported = yes; then
57633	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
57634        else
57635	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
57636        fi
57637	# Put the nasty error message in config.log where it belongs
57638	echo "$LUA_PKG_ERRORS" >&5
57639
57640
57641
57642pkg_failed=no
57643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
57644$as_echo_n "checking for LUA... " >&6; }
57645
57646if test -n "$LUA_CFLAGS"; then
57647    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
57648 elif test -n "$PKG_CONFIG"; then
57649    if test -n "$PKG_CONFIG" && \
57650    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
57651  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
57652  ac_status=$?
57653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57654  test $ac_status = 0; }; then
57655  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
57656		      test "x$?" != "x0" && pkg_failed=yes
57657else
57658  pkg_failed=yes
57659fi
57660 else
57661    pkg_failed=untried
57662fi
57663if test -n "$LUA_LIBS"; then
57664    pkg_cv_LUA_LIBS="$LUA_LIBS"
57665 elif test -n "$PKG_CONFIG"; then
57666    if test -n "$PKG_CONFIG" && \
57667    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
57668  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
57669  ac_status=$?
57670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57671  test $ac_status = 0; }; then
57672  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
57673		      test "x$?" != "x0" && pkg_failed=yes
57674else
57675  pkg_failed=yes
57676fi
57677 else
57678    pkg_failed=untried
57679fi
57680
57681
57682
57683if test $pkg_failed = yes; then
57684   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57685$as_echo "no" >&6; }
57686
57687if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57688        _pkg_short_errors_supported=yes
57689else
57690        _pkg_short_errors_supported=no
57691fi
57692        if test $_pkg_short_errors_supported = yes; then
57693	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
57694        else
57695	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
57696        fi
57697	# Put the nasty error message in config.log where it belongs
57698	echo "$LUA_PKG_ERRORS" >&5
57699
57700	with_liblua="no (pkg-config cannot find liblua)"
57701
57702elif test $pkg_failed = untried; then
57703     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57704$as_echo "no" >&6; }
57705	with_liblua="no (pkg-config cannot find liblua)"
57706
57707else
57708	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
57709	LUA_LIBS=$pkg_cv_LUA_LIBS
57710        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57711$as_echo "yes" >&6; }
57712	with_liblua="yes"
57713fi
57714
57715
57716elif test $pkg_failed = untried; then
57717     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57718$as_echo "no" >&6; }
57719
57720
57721pkg_failed=no
57722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
57723$as_echo_n "checking for LUA... " >&6; }
57724
57725if test -n "$LUA_CFLAGS"; then
57726    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
57727 elif test -n "$PKG_CONFIG"; then
57728    if test -n "$PKG_CONFIG" && \
57729    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
57730  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
57731  ac_status=$?
57732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57733  test $ac_status = 0; }; then
57734  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
57735		      test "x$?" != "x0" && pkg_failed=yes
57736else
57737  pkg_failed=yes
57738fi
57739 else
57740    pkg_failed=untried
57741fi
57742if test -n "$LUA_LIBS"; then
57743    pkg_cv_LUA_LIBS="$LUA_LIBS"
57744 elif test -n "$PKG_CONFIG"; then
57745    if test -n "$PKG_CONFIG" && \
57746    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
57747  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
57748  ac_status=$?
57749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57750  test $ac_status = 0; }; then
57751  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
57752		      test "x$?" != "x0" && pkg_failed=yes
57753else
57754  pkg_failed=yes
57755fi
57756 else
57757    pkg_failed=untried
57758fi
57759
57760
57761
57762if test $pkg_failed = yes; then
57763   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57764$as_echo "no" >&6; }
57765
57766if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57767        _pkg_short_errors_supported=yes
57768else
57769        _pkg_short_errors_supported=no
57770fi
57771        if test $_pkg_short_errors_supported = yes; then
57772	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
57773        else
57774	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
57775        fi
57776	# Put the nasty error message in config.log where it belongs
57777	echo "$LUA_PKG_ERRORS" >&5
57778
57779	with_liblua="no (pkg-config cannot find liblua)"
57780
57781elif test $pkg_failed = untried; then
57782     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57783$as_echo "no" >&6; }
57784	with_liblua="no (pkg-config cannot find liblua)"
57785
57786else
57787	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
57788	LUA_LIBS=$pkg_cv_LUA_LIBS
57789        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57790$as_echo "yes" >&6; }
57791	with_liblua="yes"
57792fi
57793
57794
57795else
57796	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
57797	LUA_LIBS=$pkg_cv_LUA_LIBS
57798        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57799$as_echo "yes" >&6; }
57800	with_liblua="yes"
57801fi
57802
57803
57804elif test $pkg_failed = untried; then
57805     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57806$as_echo "no" >&6; }
57807
57808
57809pkg_failed=no
57810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
57811$as_echo_n "checking for LUA... " >&6; }
57812
57813if test -n "$LUA_CFLAGS"; then
57814    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
57815 elif test -n "$PKG_CONFIG"; then
57816    if test -n "$PKG_CONFIG" && \
57817    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
57818  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
57819  ac_status=$?
57820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57821  test $ac_status = 0; }; then
57822  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
57823		      test "x$?" != "x0" && pkg_failed=yes
57824else
57825  pkg_failed=yes
57826fi
57827 else
57828    pkg_failed=untried
57829fi
57830if test -n "$LUA_LIBS"; then
57831    pkg_cv_LUA_LIBS="$LUA_LIBS"
57832 elif test -n "$PKG_CONFIG"; then
57833    if test -n "$PKG_CONFIG" && \
57834    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
57835  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
57836  ac_status=$?
57837  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57838  test $ac_status = 0; }; then
57839  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
57840		      test "x$?" != "x0" && pkg_failed=yes
57841else
57842  pkg_failed=yes
57843fi
57844 else
57845    pkg_failed=untried
57846fi
57847
57848
57849
57850if test $pkg_failed = yes; then
57851   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57852$as_echo "no" >&6; }
57853
57854if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57855        _pkg_short_errors_supported=yes
57856else
57857        _pkg_short_errors_supported=no
57858fi
57859        if test $_pkg_short_errors_supported = yes; then
57860	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
57861        else
57862	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
57863        fi
57864	# Put the nasty error message in config.log where it belongs
57865	echo "$LUA_PKG_ERRORS" >&5
57866
57867
57868
57869pkg_failed=no
57870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
57871$as_echo_n "checking for LUA... " >&6; }
57872
57873if test -n "$LUA_CFLAGS"; then
57874    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
57875 elif test -n "$PKG_CONFIG"; then
57876    if test -n "$PKG_CONFIG" && \
57877    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
57878  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
57879  ac_status=$?
57880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57881  test $ac_status = 0; }; then
57882  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
57883		      test "x$?" != "x0" && pkg_failed=yes
57884else
57885  pkg_failed=yes
57886fi
57887 else
57888    pkg_failed=untried
57889fi
57890if test -n "$LUA_LIBS"; then
57891    pkg_cv_LUA_LIBS="$LUA_LIBS"
57892 elif test -n "$PKG_CONFIG"; then
57893    if test -n "$PKG_CONFIG" && \
57894    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
57895  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
57896  ac_status=$?
57897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57898  test $ac_status = 0; }; then
57899  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
57900		      test "x$?" != "x0" && pkg_failed=yes
57901else
57902  pkg_failed=yes
57903fi
57904 else
57905    pkg_failed=untried
57906fi
57907
57908
57909
57910if test $pkg_failed = yes; then
57911   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57912$as_echo "no" >&6; }
57913
57914if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57915        _pkg_short_errors_supported=yes
57916else
57917        _pkg_short_errors_supported=no
57918fi
57919        if test $_pkg_short_errors_supported = yes; then
57920	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
57921        else
57922	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
57923        fi
57924	# Put the nasty error message in config.log where it belongs
57925	echo "$LUA_PKG_ERRORS" >&5
57926
57927	with_liblua="no (pkg-config cannot find liblua)"
57928
57929elif test $pkg_failed = untried; then
57930     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57931$as_echo "no" >&6; }
57932	with_liblua="no (pkg-config cannot find liblua)"
57933
57934else
57935	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
57936	LUA_LIBS=$pkg_cv_LUA_LIBS
57937        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57938$as_echo "yes" >&6; }
57939	with_liblua="yes"
57940fi
57941
57942
57943elif test $pkg_failed = untried; then
57944     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57945$as_echo "no" >&6; }
57946
57947
57948pkg_failed=no
57949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
57950$as_echo_n "checking for LUA... " >&6; }
57951
57952if test -n "$LUA_CFLAGS"; then
57953    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
57954 elif test -n "$PKG_CONFIG"; then
57955    if test -n "$PKG_CONFIG" && \
57956    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
57957  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
57958  ac_status=$?
57959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57960  test $ac_status = 0; }; then
57961  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
57962		      test "x$?" != "x0" && pkg_failed=yes
57963else
57964  pkg_failed=yes
57965fi
57966 else
57967    pkg_failed=untried
57968fi
57969if test -n "$LUA_LIBS"; then
57970    pkg_cv_LUA_LIBS="$LUA_LIBS"
57971 elif test -n "$PKG_CONFIG"; then
57972    if test -n "$PKG_CONFIG" && \
57973    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
57974  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
57975  ac_status=$?
57976  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57977  test $ac_status = 0; }; then
57978  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
57979		      test "x$?" != "x0" && pkg_failed=yes
57980else
57981  pkg_failed=yes
57982fi
57983 else
57984    pkg_failed=untried
57985fi
57986
57987
57988
57989if test $pkg_failed = yes; then
57990   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57991$as_echo "no" >&6; }
57992
57993if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57994        _pkg_short_errors_supported=yes
57995else
57996        _pkg_short_errors_supported=no
57997fi
57998        if test $_pkg_short_errors_supported = yes; then
57999	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
58000        else
58001	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
58002        fi
58003	# Put the nasty error message in config.log where it belongs
58004	echo "$LUA_PKG_ERRORS" >&5
58005
58006	with_liblua="no (pkg-config cannot find liblua)"
58007
58008elif test $pkg_failed = untried; then
58009     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58010$as_echo "no" >&6; }
58011	with_liblua="no (pkg-config cannot find liblua)"
58012
58013else
58014	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
58015	LUA_LIBS=$pkg_cv_LUA_LIBS
58016        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58017$as_echo "yes" >&6; }
58018	with_liblua="yes"
58019fi
58020
58021
58022else
58023	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
58024	LUA_LIBS=$pkg_cv_LUA_LIBS
58025        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58026$as_echo "yes" >&6; }
58027	with_liblua="yes"
58028fi
58029
58030
58031else
58032	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
58033	LUA_LIBS=$pkg_cv_LUA_LIBS
58034        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58035$as_echo "yes" >&6; }
58036	with_liblua="yes"
58037fi
58038
58039
58040else
58041	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
58042	LUA_LIBS=$pkg_cv_LUA_LIBS
58043        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58044$as_echo "yes" >&6; }
58045	with_liblua="yes"
58046fi
58047
58048
58049elif test $pkg_failed = untried; then
58050     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58051$as_echo "no" >&6; }
58052
58053
58054pkg_failed=no
58055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
58056$as_echo_n "checking for LUA... " >&6; }
58057
58058if test -n "$LUA_CFLAGS"; then
58059    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
58060 elif test -n "$PKG_CONFIG"; then
58061    if test -n "$PKG_CONFIG" && \
58062    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
58063  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
58064  ac_status=$?
58065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58066  test $ac_status = 0; }; then
58067  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
58068		      test "x$?" != "x0" && pkg_failed=yes
58069else
58070  pkg_failed=yes
58071fi
58072 else
58073    pkg_failed=untried
58074fi
58075if test -n "$LUA_LIBS"; then
58076    pkg_cv_LUA_LIBS="$LUA_LIBS"
58077 elif test -n "$PKG_CONFIG"; then
58078    if test -n "$PKG_CONFIG" && \
58079    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
58080  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
58081  ac_status=$?
58082  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58083  test $ac_status = 0; }; then
58084  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
58085		      test "x$?" != "x0" && pkg_failed=yes
58086else
58087  pkg_failed=yes
58088fi
58089 else
58090    pkg_failed=untried
58091fi
58092
58093
58094
58095if test $pkg_failed = yes; then
58096   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58097$as_echo "no" >&6; }
58098
58099if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58100        _pkg_short_errors_supported=yes
58101else
58102        _pkg_short_errors_supported=no
58103fi
58104        if test $_pkg_short_errors_supported = yes; then
58105	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
58106        else
58107	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
58108        fi
58109	# Put the nasty error message in config.log where it belongs
58110	echo "$LUA_PKG_ERRORS" >&5
58111
58112
58113
58114pkg_failed=no
58115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
58116$as_echo_n "checking for LUA... " >&6; }
58117
58118if test -n "$LUA_CFLAGS"; then
58119    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
58120 elif test -n "$PKG_CONFIG"; then
58121    if test -n "$PKG_CONFIG" && \
58122    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
58123  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
58124  ac_status=$?
58125  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58126  test $ac_status = 0; }; then
58127  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
58128		      test "x$?" != "x0" && pkg_failed=yes
58129else
58130  pkg_failed=yes
58131fi
58132 else
58133    pkg_failed=untried
58134fi
58135if test -n "$LUA_LIBS"; then
58136    pkg_cv_LUA_LIBS="$LUA_LIBS"
58137 elif test -n "$PKG_CONFIG"; then
58138    if test -n "$PKG_CONFIG" && \
58139    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
58140  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
58141  ac_status=$?
58142  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58143  test $ac_status = 0; }; then
58144  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
58145		      test "x$?" != "x0" && pkg_failed=yes
58146else
58147  pkg_failed=yes
58148fi
58149 else
58150    pkg_failed=untried
58151fi
58152
58153
58154
58155if test $pkg_failed = yes; then
58156   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58157$as_echo "no" >&6; }
58158
58159if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58160        _pkg_short_errors_supported=yes
58161else
58162        _pkg_short_errors_supported=no
58163fi
58164        if test $_pkg_short_errors_supported = yes; then
58165	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
58166        else
58167	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
58168        fi
58169	# Put the nasty error message in config.log where it belongs
58170	echo "$LUA_PKG_ERRORS" >&5
58171
58172
58173
58174pkg_failed=no
58175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
58176$as_echo_n "checking for LUA... " >&6; }
58177
58178if test -n "$LUA_CFLAGS"; then
58179    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
58180 elif test -n "$PKG_CONFIG"; then
58181    if test -n "$PKG_CONFIG" && \
58182    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
58183  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
58184  ac_status=$?
58185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58186  test $ac_status = 0; }; then
58187  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
58188		      test "x$?" != "x0" && pkg_failed=yes
58189else
58190  pkg_failed=yes
58191fi
58192 else
58193    pkg_failed=untried
58194fi
58195if test -n "$LUA_LIBS"; then
58196    pkg_cv_LUA_LIBS="$LUA_LIBS"
58197 elif test -n "$PKG_CONFIG"; then
58198    if test -n "$PKG_CONFIG" && \
58199    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
58200  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
58201  ac_status=$?
58202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58203  test $ac_status = 0; }; then
58204  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
58205		      test "x$?" != "x0" && pkg_failed=yes
58206else
58207  pkg_failed=yes
58208fi
58209 else
58210    pkg_failed=untried
58211fi
58212
58213
58214
58215if test $pkg_failed = yes; then
58216   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58217$as_echo "no" >&6; }
58218
58219if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58220        _pkg_short_errors_supported=yes
58221else
58222        _pkg_short_errors_supported=no
58223fi
58224        if test $_pkg_short_errors_supported = yes; then
58225	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
58226        else
58227	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
58228        fi
58229	# Put the nasty error message in config.log where it belongs
58230	echo "$LUA_PKG_ERRORS" >&5
58231
58232
58233
58234pkg_failed=no
58235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
58236$as_echo_n "checking for LUA... " >&6; }
58237
58238if test -n "$LUA_CFLAGS"; then
58239    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
58240 elif test -n "$PKG_CONFIG"; then
58241    if test -n "$PKG_CONFIG" && \
58242    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
58243  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
58244  ac_status=$?
58245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58246  test $ac_status = 0; }; then
58247  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
58248		      test "x$?" != "x0" && pkg_failed=yes
58249else
58250  pkg_failed=yes
58251fi
58252 else
58253    pkg_failed=untried
58254fi
58255if test -n "$LUA_LIBS"; then
58256    pkg_cv_LUA_LIBS="$LUA_LIBS"
58257 elif test -n "$PKG_CONFIG"; then
58258    if test -n "$PKG_CONFIG" && \
58259    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
58260  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
58261  ac_status=$?
58262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58263  test $ac_status = 0; }; then
58264  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
58265		      test "x$?" != "x0" && pkg_failed=yes
58266else
58267  pkg_failed=yes
58268fi
58269 else
58270    pkg_failed=untried
58271fi
58272
58273
58274
58275if test $pkg_failed = yes; then
58276   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58277$as_echo "no" >&6; }
58278
58279if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58280        _pkg_short_errors_supported=yes
58281else
58282        _pkg_short_errors_supported=no
58283fi
58284        if test $_pkg_short_errors_supported = yes; then
58285	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
58286        else
58287	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
58288        fi
58289	# Put the nasty error message in config.log where it belongs
58290	echo "$LUA_PKG_ERRORS" >&5
58291
58292	with_liblua="no (pkg-config cannot find liblua)"
58293
58294elif test $pkg_failed = untried; then
58295     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58296$as_echo "no" >&6; }
58297	with_liblua="no (pkg-config cannot find liblua)"
58298
58299else
58300	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
58301	LUA_LIBS=$pkg_cv_LUA_LIBS
58302        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58303$as_echo "yes" >&6; }
58304	with_liblua="yes"
58305fi
58306
58307
58308elif test $pkg_failed = untried; then
58309     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58310$as_echo "no" >&6; }
58311
58312
58313pkg_failed=no
58314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
58315$as_echo_n "checking for LUA... " >&6; }
58316
58317if test -n "$LUA_CFLAGS"; then
58318    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
58319 elif test -n "$PKG_CONFIG"; then
58320    if test -n "$PKG_CONFIG" && \
58321    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
58322  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
58323  ac_status=$?
58324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58325  test $ac_status = 0; }; then
58326  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
58327		      test "x$?" != "x0" && pkg_failed=yes
58328else
58329  pkg_failed=yes
58330fi
58331 else
58332    pkg_failed=untried
58333fi
58334if test -n "$LUA_LIBS"; then
58335    pkg_cv_LUA_LIBS="$LUA_LIBS"
58336 elif test -n "$PKG_CONFIG"; then
58337    if test -n "$PKG_CONFIG" && \
58338    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
58339  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
58340  ac_status=$?
58341  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58342  test $ac_status = 0; }; then
58343  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
58344		      test "x$?" != "x0" && pkg_failed=yes
58345else
58346  pkg_failed=yes
58347fi
58348 else
58349    pkg_failed=untried
58350fi
58351
58352
58353
58354if test $pkg_failed = yes; then
58355   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58356$as_echo "no" >&6; }
58357
58358if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58359        _pkg_short_errors_supported=yes
58360else
58361        _pkg_short_errors_supported=no
58362fi
58363        if test $_pkg_short_errors_supported = yes; then
58364	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
58365        else
58366	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
58367        fi
58368	# Put the nasty error message in config.log where it belongs
58369	echo "$LUA_PKG_ERRORS" >&5
58370
58371	with_liblua="no (pkg-config cannot find liblua)"
58372
58373elif test $pkg_failed = untried; then
58374     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58375$as_echo "no" >&6; }
58376	with_liblua="no (pkg-config cannot find liblua)"
58377
58378else
58379	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
58380	LUA_LIBS=$pkg_cv_LUA_LIBS
58381        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58382$as_echo "yes" >&6; }
58383	with_liblua="yes"
58384fi
58385
58386
58387else
58388	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
58389	LUA_LIBS=$pkg_cv_LUA_LIBS
58390        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58391$as_echo "yes" >&6; }
58392	with_liblua="yes"
58393fi
58394
58395
58396elif test $pkg_failed = untried; then
58397     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58398$as_echo "no" >&6; }
58399
58400
58401pkg_failed=no
58402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
58403$as_echo_n "checking for LUA... " >&6; }
58404
58405if test -n "$LUA_CFLAGS"; then
58406    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
58407 elif test -n "$PKG_CONFIG"; then
58408    if test -n "$PKG_CONFIG" && \
58409    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
58410  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
58411  ac_status=$?
58412  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58413  test $ac_status = 0; }; then
58414  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
58415		      test "x$?" != "x0" && pkg_failed=yes
58416else
58417  pkg_failed=yes
58418fi
58419 else
58420    pkg_failed=untried
58421fi
58422if test -n "$LUA_LIBS"; then
58423    pkg_cv_LUA_LIBS="$LUA_LIBS"
58424 elif test -n "$PKG_CONFIG"; then
58425    if test -n "$PKG_CONFIG" && \
58426    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
58427  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
58428  ac_status=$?
58429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58430  test $ac_status = 0; }; then
58431  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
58432		      test "x$?" != "x0" && pkg_failed=yes
58433else
58434  pkg_failed=yes
58435fi
58436 else
58437    pkg_failed=untried
58438fi
58439
58440
58441
58442if test $pkg_failed = yes; then
58443   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58444$as_echo "no" >&6; }
58445
58446if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58447        _pkg_short_errors_supported=yes
58448else
58449        _pkg_short_errors_supported=no
58450fi
58451        if test $_pkg_short_errors_supported = yes; then
58452	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
58453        else
58454	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
58455        fi
58456	# Put the nasty error message in config.log where it belongs
58457	echo "$LUA_PKG_ERRORS" >&5
58458
58459
58460
58461pkg_failed=no
58462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
58463$as_echo_n "checking for LUA... " >&6; }
58464
58465if test -n "$LUA_CFLAGS"; then
58466    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
58467 elif test -n "$PKG_CONFIG"; then
58468    if test -n "$PKG_CONFIG" && \
58469    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
58470  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
58471  ac_status=$?
58472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58473  test $ac_status = 0; }; then
58474  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
58475		      test "x$?" != "x0" && pkg_failed=yes
58476else
58477  pkg_failed=yes
58478fi
58479 else
58480    pkg_failed=untried
58481fi
58482if test -n "$LUA_LIBS"; then
58483    pkg_cv_LUA_LIBS="$LUA_LIBS"
58484 elif test -n "$PKG_CONFIG"; then
58485    if test -n "$PKG_CONFIG" && \
58486    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
58487  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
58488  ac_status=$?
58489  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58490  test $ac_status = 0; }; then
58491  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
58492		      test "x$?" != "x0" && pkg_failed=yes
58493else
58494  pkg_failed=yes
58495fi
58496 else
58497    pkg_failed=untried
58498fi
58499
58500
58501
58502if test $pkg_failed = yes; then
58503   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58504$as_echo "no" >&6; }
58505
58506if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58507        _pkg_short_errors_supported=yes
58508else
58509        _pkg_short_errors_supported=no
58510fi
58511        if test $_pkg_short_errors_supported = yes; then
58512	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
58513        else
58514	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
58515        fi
58516	# Put the nasty error message in config.log where it belongs
58517	echo "$LUA_PKG_ERRORS" >&5
58518
58519	with_liblua="no (pkg-config cannot find liblua)"
58520
58521elif test $pkg_failed = untried; then
58522     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58523$as_echo "no" >&6; }
58524	with_liblua="no (pkg-config cannot find liblua)"
58525
58526else
58527	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
58528	LUA_LIBS=$pkg_cv_LUA_LIBS
58529        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58530$as_echo "yes" >&6; }
58531	with_liblua="yes"
58532fi
58533
58534
58535elif test $pkg_failed = untried; then
58536     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58537$as_echo "no" >&6; }
58538
58539
58540pkg_failed=no
58541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
58542$as_echo_n "checking for LUA... " >&6; }
58543
58544if test -n "$LUA_CFLAGS"; then
58545    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
58546 elif test -n "$PKG_CONFIG"; then
58547    if test -n "$PKG_CONFIG" && \
58548    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
58549  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
58550  ac_status=$?
58551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58552  test $ac_status = 0; }; then
58553  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
58554		      test "x$?" != "x0" && pkg_failed=yes
58555else
58556  pkg_failed=yes
58557fi
58558 else
58559    pkg_failed=untried
58560fi
58561if test -n "$LUA_LIBS"; then
58562    pkg_cv_LUA_LIBS="$LUA_LIBS"
58563 elif test -n "$PKG_CONFIG"; then
58564    if test -n "$PKG_CONFIG" && \
58565    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
58566  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
58567  ac_status=$?
58568  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58569  test $ac_status = 0; }; then
58570  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
58571		      test "x$?" != "x0" && pkg_failed=yes
58572else
58573  pkg_failed=yes
58574fi
58575 else
58576    pkg_failed=untried
58577fi
58578
58579
58580
58581if test $pkg_failed = yes; then
58582   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58583$as_echo "no" >&6; }
58584
58585if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58586        _pkg_short_errors_supported=yes
58587else
58588        _pkg_short_errors_supported=no
58589fi
58590        if test $_pkg_short_errors_supported = yes; then
58591	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
58592        else
58593	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
58594        fi
58595	# Put the nasty error message in config.log where it belongs
58596	echo "$LUA_PKG_ERRORS" >&5
58597
58598	with_liblua="no (pkg-config cannot find liblua)"
58599
58600elif test $pkg_failed = untried; then
58601     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58602$as_echo "no" >&6; }
58603	with_liblua="no (pkg-config cannot find liblua)"
58604
58605else
58606	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
58607	LUA_LIBS=$pkg_cv_LUA_LIBS
58608        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58609$as_echo "yes" >&6; }
58610	with_liblua="yes"
58611fi
58612
58613
58614else
58615	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
58616	LUA_LIBS=$pkg_cv_LUA_LIBS
58617        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58618$as_echo "yes" >&6; }
58619	with_liblua="yes"
58620fi
58621
58622
58623else
58624	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
58625	LUA_LIBS=$pkg_cv_LUA_LIBS
58626        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58627$as_echo "yes" >&6; }
58628	with_liblua="yes"
58629fi
58630
58631
58632elif test $pkg_failed = untried; then
58633     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58634$as_echo "no" >&6; }
58635
58636
58637pkg_failed=no
58638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
58639$as_echo_n "checking for LUA... " >&6; }
58640
58641if test -n "$LUA_CFLAGS"; then
58642    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
58643 elif test -n "$PKG_CONFIG"; then
58644    if test -n "$PKG_CONFIG" && \
58645    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
58646  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
58647  ac_status=$?
58648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58649  test $ac_status = 0; }; then
58650  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
58651		      test "x$?" != "x0" && pkg_failed=yes
58652else
58653  pkg_failed=yes
58654fi
58655 else
58656    pkg_failed=untried
58657fi
58658if test -n "$LUA_LIBS"; then
58659    pkg_cv_LUA_LIBS="$LUA_LIBS"
58660 elif test -n "$PKG_CONFIG"; then
58661    if test -n "$PKG_CONFIG" && \
58662    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
58663  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
58664  ac_status=$?
58665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58666  test $ac_status = 0; }; then
58667  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
58668		      test "x$?" != "x0" && pkg_failed=yes
58669else
58670  pkg_failed=yes
58671fi
58672 else
58673    pkg_failed=untried
58674fi
58675
58676
58677
58678if test $pkg_failed = yes; then
58679   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58680$as_echo "no" >&6; }
58681
58682if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58683        _pkg_short_errors_supported=yes
58684else
58685        _pkg_short_errors_supported=no
58686fi
58687        if test $_pkg_short_errors_supported = yes; then
58688	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
58689        else
58690	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
58691        fi
58692	# Put the nasty error message in config.log where it belongs
58693	echo "$LUA_PKG_ERRORS" >&5
58694
58695
58696
58697pkg_failed=no
58698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
58699$as_echo_n "checking for LUA... " >&6; }
58700
58701if test -n "$LUA_CFLAGS"; then
58702    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
58703 elif test -n "$PKG_CONFIG"; then
58704    if test -n "$PKG_CONFIG" && \
58705    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
58706  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
58707  ac_status=$?
58708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58709  test $ac_status = 0; }; then
58710  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
58711		      test "x$?" != "x0" && pkg_failed=yes
58712else
58713  pkg_failed=yes
58714fi
58715 else
58716    pkg_failed=untried
58717fi
58718if test -n "$LUA_LIBS"; then
58719    pkg_cv_LUA_LIBS="$LUA_LIBS"
58720 elif test -n "$PKG_CONFIG"; then
58721    if test -n "$PKG_CONFIG" && \
58722    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
58723  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
58724  ac_status=$?
58725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58726  test $ac_status = 0; }; then
58727  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
58728		      test "x$?" != "x0" && pkg_failed=yes
58729else
58730  pkg_failed=yes
58731fi
58732 else
58733    pkg_failed=untried
58734fi
58735
58736
58737
58738if test $pkg_failed = yes; then
58739   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58740$as_echo "no" >&6; }
58741
58742if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58743        _pkg_short_errors_supported=yes
58744else
58745        _pkg_short_errors_supported=no
58746fi
58747        if test $_pkg_short_errors_supported = yes; then
58748	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
58749        else
58750	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
58751        fi
58752	# Put the nasty error message in config.log where it belongs
58753	echo "$LUA_PKG_ERRORS" >&5
58754
58755
58756
58757pkg_failed=no
58758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
58759$as_echo_n "checking for LUA... " >&6; }
58760
58761if test -n "$LUA_CFLAGS"; then
58762    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
58763 elif test -n "$PKG_CONFIG"; then
58764    if test -n "$PKG_CONFIG" && \
58765    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
58766  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
58767  ac_status=$?
58768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58769  test $ac_status = 0; }; then
58770  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
58771		      test "x$?" != "x0" && pkg_failed=yes
58772else
58773  pkg_failed=yes
58774fi
58775 else
58776    pkg_failed=untried
58777fi
58778if test -n "$LUA_LIBS"; then
58779    pkg_cv_LUA_LIBS="$LUA_LIBS"
58780 elif test -n "$PKG_CONFIG"; then
58781    if test -n "$PKG_CONFIG" && \
58782    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
58783  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
58784  ac_status=$?
58785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58786  test $ac_status = 0; }; then
58787  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
58788		      test "x$?" != "x0" && pkg_failed=yes
58789else
58790  pkg_failed=yes
58791fi
58792 else
58793    pkg_failed=untried
58794fi
58795
58796
58797
58798if test $pkg_failed = yes; then
58799   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58800$as_echo "no" >&6; }
58801
58802if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58803        _pkg_short_errors_supported=yes
58804else
58805        _pkg_short_errors_supported=no
58806fi
58807        if test $_pkg_short_errors_supported = yes; then
58808	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
58809        else
58810	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
58811        fi
58812	# Put the nasty error message in config.log where it belongs
58813	echo "$LUA_PKG_ERRORS" >&5
58814
58815	with_liblua="no (pkg-config cannot find liblua)"
58816
58817elif test $pkg_failed = untried; then
58818     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58819$as_echo "no" >&6; }
58820	with_liblua="no (pkg-config cannot find liblua)"
58821
58822else
58823	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
58824	LUA_LIBS=$pkg_cv_LUA_LIBS
58825        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58826$as_echo "yes" >&6; }
58827	with_liblua="yes"
58828fi
58829
58830
58831elif test $pkg_failed = untried; then
58832     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58833$as_echo "no" >&6; }
58834
58835
58836pkg_failed=no
58837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
58838$as_echo_n "checking for LUA... " >&6; }
58839
58840if test -n "$LUA_CFLAGS"; then
58841    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
58842 elif test -n "$PKG_CONFIG"; then
58843    if test -n "$PKG_CONFIG" && \
58844    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
58845  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
58846  ac_status=$?
58847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58848  test $ac_status = 0; }; then
58849  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
58850		      test "x$?" != "x0" && pkg_failed=yes
58851else
58852  pkg_failed=yes
58853fi
58854 else
58855    pkg_failed=untried
58856fi
58857if test -n "$LUA_LIBS"; then
58858    pkg_cv_LUA_LIBS="$LUA_LIBS"
58859 elif test -n "$PKG_CONFIG"; then
58860    if test -n "$PKG_CONFIG" && \
58861    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
58862  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
58863  ac_status=$?
58864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58865  test $ac_status = 0; }; then
58866  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
58867		      test "x$?" != "x0" && pkg_failed=yes
58868else
58869  pkg_failed=yes
58870fi
58871 else
58872    pkg_failed=untried
58873fi
58874
58875
58876
58877if test $pkg_failed = yes; then
58878   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58879$as_echo "no" >&6; }
58880
58881if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58882        _pkg_short_errors_supported=yes
58883else
58884        _pkg_short_errors_supported=no
58885fi
58886        if test $_pkg_short_errors_supported = yes; then
58887	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
58888        else
58889	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
58890        fi
58891	# Put the nasty error message in config.log where it belongs
58892	echo "$LUA_PKG_ERRORS" >&5
58893
58894	with_liblua="no (pkg-config cannot find liblua)"
58895
58896elif test $pkg_failed = untried; then
58897     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58898$as_echo "no" >&6; }
58899	with_liblua="no (pkg-config cannot find liblua)"
58900
58901else
58902	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
58903	LUA_LIBS=$pkg_cv_LUA_LIBS
58904        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58905$as_echo "yes" >&6; }
58906	with_liblua="yes"
58907fi
58908
58909
58910else
58911	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
58912	LUA_LIBS=$pkg_cv_LUA_LIBS
58913        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58914$as_echo "yes" >&6; }
58915	with_liblua="yes"
58916fi
58917
58918
58919elif test $pkg_failed = untried; then
58920     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58921$as_echo "no" >&6; }
58922
58923
58924pkg_failed=no
58925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
58926$as_echo_n "checking for LUA... " >&6; }
58927
58928if test -n "$LUA_CFLAGS"; then
58929    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
58930 elif test -n "$PKG_CONFIG"; then
58931    if test -n "$PKG_CONFIG" && \
58932    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
58933  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
58934  ac_status=$?
58935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58936  test $ac_status = 0; }; then
58937  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
58938		      test "x$?" != "x0" && pkg_failed=yes
58939else
58940  pkg_failed=yes
58941fi
58942 else
58943    pkg_failed=untried
58944fi
58945if test -n "$LUA_LIBS"; then
58946    pkg_cv_LUA_LIBS="$LUA_LIBS"
58947 elif test -n "$PKG_CONFIG"; then
58948    if test -n "$PKG_CONFIG" && \
58949    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
58950  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
58951  ac_status=$?
58952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58953  test $ac_status = 0; }; then
58954  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
58955		      test "x$?" != "x0" && pkg_failed=yes
58956else
58957  pkg_failed=yes
58958fi
58959 else
58960    pkg_failed=untried
58961fi
58962
58963
58964
58965if test $pkg_failed = yes; then
58966   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58967$as_echo "no" >&6; }
58968
58969if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58970        _pkg_short_errors_supported=yes
58971else
58972        _pkg_short_errors_supported=no
58973fi
58974        if test $_pkg_short_errors_supported = yes; then
58975	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
58976        else
58977	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
58978        fi
58979	# Put the nasty error message in config.log where it belongs
58980	echo "$LUA_PKG_ERRORS" >&5
58981
58982
58983
58984pkg_failed=no
58985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
58986$as_echo_n "checking for LUA... " >&6; }
58987
58988if test -n "$LUA_CFLAGS"; then
58989    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
58990 elif test -n "$PKG_CONFIG"; then
58991    if test -n "$PKG_CONFIG" && \
58992    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
58993  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
58994  ac_status=$?
58995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58996  test $ac_status = 0; }; then
58997  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
58998		      test "x$?" != "x0" && pkg_failed=yes
58999else
59000  pkg_failed=yes
59001fi
59002 else
59003    pkg_failed=untried
59004fi
59005if test -n "$LUA_LIBS"; then
59006    pkg_cv_LUA_LIBS="$LUA_LIBS"
59007 elif test -n "$PKG_CONFIG"; then
59008    if test -n "$PKG_CONFIG" && \
59009    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
59010  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
59011  ac_status=$?
59012  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59013  test $ac_status = 0; }; then
59014  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
59015		      test "x$?" != "x0" && pkg_failed=yes
59016else
59017  pkg_failed=yes
59018fi
59019 else
59020    pkg_failed=untried
59021fi
59022
59023
59024
59025if test $pkg_failed = yes; then
59026   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59027$as_echo "no" >&6; }
59028
59029if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59030        _pkg_short_errors_supported=yes
59031else
59032        _pkg_short_errors_supported=no
59033fi
59034        if test $_pkg_short_errors_supported = yes; then
59035	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
59036        else
59037	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
59038        fi
59039	# Put the nasty error message in config.log where it belongs
59040	echo "$LUA_PKG_ERRORS" >&5
59041
59042	with_liblua="no (pkg-config cannot find liblua)"
59043
59044elif test $pkg_failed = untried; then
59045     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59046$as_echo "no" >&6; }
59047	with_liblua="no (pkg-config cannot find liblua)"
59048
59049else
59050	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
59051	LUA_LIBS=$pkg_cv_LUA_LIBS
59052        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59053$as_echo "yes" >&6; }
59054	with_liblua="yes"
59055fi
59056
59057
59058elif test $pkg_failed = untried; then
59059     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59060$as_echo "no" >&6; }
59061
59062
59063pkg_failed=no
59064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
59065$as_echo_n "checking for LUA... " >&6; }
59066
59067if test -n "$LUA_CFLAGS"; then
59068    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
59069 elif test -n "$PKG_CONFIG"; then
59070    if test -n "$PKG_CONFIG" && \
59071    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
59072  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
59073  ac_status=$?
59074  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59075  test $ac_status = 0; }; then
59076  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
59077		      test "x$?" != "x0" && pkg_failed=yes
59078else
59079  pkg_failed=yes
59080fi
59081 else
59082    pkg_failed=untried
59083fi
59084if test -n "$LUA_LIBS"; then
59085    pkg_cv_LUA_LIBS="$LUA_LIBS"
59086 elif test -n "$PKG_CONFIG"; then
59087    if test -n "$PKG_CONFIG" && \
59088    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
59089  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
59090  ac_status=$?
59091  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59092  test $ac_status = 0; }; then
59093  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
59094		      test "x$?" != "x0" && pkg_failed=yes
59095else
59096  pkg_failed=yes
59097fi
59098 else
59099    pkg_failed=untried
59100fi
59101
59102
59103
59104if test $pkg_failed = yes; then
59105   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59106$as_echo "no" >&6; }
59107
59108if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59109        _pkg_short_errors_supported=yes
59110else
59111        _pkg_short_errors_supported=no
59112fi
59113        if test $_pkg_short_errors_supported = yes; then
59114	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
59115        else
59116	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
59117        fi
59118	# Put the nasty error message in config.log where it belongs
59119	echo "$LUA_PKG_ERRORS" >&5
59120
59121	with_liblua="no (pkg-config cannot find liblua)"
59122
59123elif test $pkg_failed = untried; then
59124     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59125$as_echo "no" >&6; }
59126	with_liblua="no (pkg-config cannot find liblua)"
59127
59128else
59129	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
59130	LUA_LIBS=$pkg_cv_LUA_LIBS
59131        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59132$as_echo "yes" >&6; }
59133	with_liblua="yes"
59134fi
59135
59136
59137else
59138	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
59139	LUA_LIBS=$pkg_cv_LUA_LIBS
59140        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59141$as_echo "yes" >&6; }
59142	with_liblua="yes"
59143fi
59144
59145
59146else
59147	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
59148	LUA_LIBS=$pkg_cv_LUA_LIBS
59149        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59150$as_echo "yes" >&6; }
59151	with_liblua="yes"
59152fi
59153
59154
59155else
59156	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
59157	LUA_LIBS=$pkg_cv_LUA_LIBS
59158        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59159$as_echo "yes" >&6; }
59160	with_liblua="yes"
59161fi
59162
59163
59164else
59165	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
59166	LUA_LIBS=$pkg_cv_LUA_LIBS
59167        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59168$as_echo "yes" >&6; }
59169	with_liblua="yes"
59170fi
59171
59172
59173else
59174	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
59175	LUA_LIBS=$pkg_cv_LUA_LIBS
59176        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59177$as_echo "yes" >&6; }
59178	with_liblua="yes"
59179fi
59180
59181
59182elif test $pkg_failed = untried; then
59183     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59184$as_echo "no" >&6; }
59185
59186
59187pkg_failed=no
59188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
59189$as_echo_n "checking for LUA... " >&6; }
59190
59191if test -n "$LUA_CFLAGS"; then
59192    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
59193 elif test -n "$PKG_CONFIG"; then
59194    if test -n "$PKG_CONFIG" && \
59195    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
59196  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
59197  ac_status=$?
59198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59199  test $ac_status = 0; }; then
59200  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.2" 2>/dev/null`
59201		      test "x$?" != "x0" && pkg_failed=yes
59202else
59203  pkg_failed=yes
59204fi
59205 else
59206    pkg_failed=untried
59207fi
59208if test -n "$LUA_LIBS"; then
59209    pkg_cv_LUA_LIBS="$LUA_LIBS"
59210 elif test -n "$PKG_CONFIG"; then
59211    if test -n "$PKG_CONFIG" && \
59212    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
59213  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
59214  ac_status=$?
59215  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59216  test $ac_status = 0; }; then
59217  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.2" 2>/dev/null`
59218		      test "x$?" != "x0" && pkg_failed=yes
59219else
59220  pkg_failed=yes
59221fi
59222 else
59223    pkg_failed=untried
59224fi
59225
59226
59227
59228if test $pkg_failed = yes; then
59229   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59230$as_echo "no" >&6; }
59231
59232if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59233        _pkg_short_errors_supported=yes
59234else
59235        _pkg_short_errors_supported=no
59236fi
59237        if test $_pkg_short_errors_supported = yes; then
59238	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.2" 2>&1`
59239        else
59240	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.2" 2>&1`
59241        fi
59242	# Put the nasty error message in config.log where it belongs
59243	echo "$LUA_PKG_ERRORS" >&5
59244
59245
59246
59247pkg_failed=no
59248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
59249$as_echo_n "checking for LUA... " >&6; }
59250
59251if test -n "$LUA_CFLAGS"; then
59252    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
59253 elif test -n "$PKG_CONFIG"; then
59254    if test -n "$PKG_CONFIG" && \
59255    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
59256  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
59257  ac_status=$?
59258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59259  test $ac_status = 0; }; then
59260  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
59261		      test "x$?" != "x0" && pkg_failed=yes
59262else
59263  pkg_failed=yes
59264fi
59265 else
59266    pkg_failed=untried
59267fi
59268if test -n "$LUA_LIBS"; then
59269    pkg_cv_LUA_LIBS="$LUA_LIBS"
59270 elif test -n "$PKG_CONFIG"; then
59271    if test -n "$PKG_CONFIG" && \
59272    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
59273  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
59274  ac_status=$?
59275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59276  test $ac_status = 0; }; then
59277  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
59278		      test "x$?" != "x0" && pkg_failed=yes
59279else
59280  pkg_failed=yes
59281fi
59282 else
59283    pkg_failed=untried
59284fi
59285
59286
59287
59288if test $pkg_failed = yes; then
59289   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59290$as_echo "no" >&6; }
59291
59292if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59293        _pkg_short_errors_supported=yes
59294else
59295        _pkg_short_errors_supported=no
59296fi
59297        if test $_pkg_short_errors_supported = yes; then
59298	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
59299        else
59300	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
59301        fi
59302	# Put the nasty error message in config.log where it belongs
59303	echo "$LUA_PKG_ERRORS" >&5
59304
59305
59306
59307pkg_failed=no
59308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
59309$as_echo_n "checking for LUA... " >&6; }
59310
59311if test -n "$LUA_CFLAGS"; then
59312    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
59313 elif test -n "$PKG_CONFIG"; then
59314    if test -n "$PKG_CONFIG" && \
59315    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
59316  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
59317  ac_status=$?
59318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59319  test $ac_status = 0; }; then
59320  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
59321		      test "x$?" != "x0" && pkg_failed=yes
59322else
59323  pkg_failed=yes
59324fi
59325 else
59326    pkg_failed=untried
59327fi
59328if test -n "$LUA_LIBS"; then
59329    pkg_cv_LUA_LIBS="$LUA_LIBS"
59330 elif test -n "$PKG_CONFIG"; then
59331    if test -n "$PKG_CONFIG" && \
59332    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
59333  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
59334  ac_status=$?
59335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59336  test $ac_status = 0; }; then
59337  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
59338		      test "x$?" != "x0" && pkg_failed=yes
59339else
59340  pkg_failed=yes
59341fi
59342 else
59343    pkg_failed=untried
59344fi
59345
59346
59347
59348if test $pkg_failed = yes; then
59349   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59350$as_echo "no" >&6; }
59351
59352if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59353        _pkg_short_errors_supported=yes
59354else
59355        _pkg_short_errors_supported=no
59356fi
59357        if test $_pkg_short_errors_supported = yes; then
59358	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
59359        else
59360	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
59361        fi
59362	# Put the nasty error message in config.log where it belongs
59363	echo "$LUA_PKG_ERRORS" >&5
59364
59365
59366
59367pkg_failed=no
59368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
59369$as_echo_n "checking for LUA... " >&6; }
59370
59371if test -n "$LUA_CFLAGS"; then
59372    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
59373 elif test -n "$PKG_CONFIG"; then
59374    if test -n "$PKG_CONFIG" && \
59375    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
59376  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
59377  ac_status=$?
59378  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59379  test $ac_status = 0; }; then
59380  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
59381		      test "x$?" != "x0" && pkg_failed=yes
59382else
59383  pkg_failed=yes
59384fi
59385 else
59386    pkg_failed=untried
59387fi
59388if test -n "$LUA_LIBS"; then
59389    pkg_cv_LUA_LIBS="$LUA_LIBS"
59390 elif test -n "$PKG_CONFIG"; then
59391    if test -n "$PKG_CONFIG" && \
59392    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
59393  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
59394  ac_status=$?
59395  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59396  test $ac_status = 0; }; then
59397  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
59398		      test "x$?" != "x0" && pkg_failed=yes
59399else
59400  pkg_failed=yes
59401fi
59402 else
59403    pkg_failed=untried
59404fi
59405
59406
59407
59408if test $pkg_failed = yes; then
59409   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59410$as_echo "no" >&6; }
59411
59412if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59413        _pkg_short_errors_supported=yes
59414else
59415        _pkg_short_errors_supported=no
59416fi
59417        if test $_pkg_short_errors_supported = yes; then
59418	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
59419        else
59420	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
59421        fi
59422	# Put the nasty error message in config.log where it belongs
59423	echo "$LUA_PKG_ERRORS" >&5
59424
59425
59426
59427pkg_failed=no
59428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
59429$as_echo_n "checking for LUA... " >&6; }
59430
59431if test -n "$LUA_CFLAGS"; then
59432    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
59433 elif test -n "$PKG_CONFIG"; then
59434    if test -n "$PKG_CONFIG" && \
59435    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
59436  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
59437  ac_status=$?
59438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59439  test $ac_status = 0; }; then
59440  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
59441		      test "x$?" != "x0" && pkg_failed=yes
59442else
59443  pkg_failed=yes
59444fi
59445 else
59446    pkg_failed=untried
59447fi
59448if test -n "$LUA_LIBS"; then
59449    pkg_cv_LUA_LIBS="$LUA_LIBS"
59450 elif test -n "$PKG_CONFIG"; then
59451    if test -n "$PKG_CONFIG" && \
59452    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
59453  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
59454  ac_status=$?
59455  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59456  test $ac_status = 0; }; then
59457  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
59458		      test "x$?" != "x0" && pkg_failed=yes
59459else
59460  pkg_failed=yes
59461fi
59462 else
59463    pkg_failed=untried
59464fi
59465
59466
59467
59468if test $pkg_failed = yes; then
59469   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59470$as_echo "no" >&6; }
59471
59472if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59473        _pkg_short_errors_supported=yes
59474else
59475        _pkg_short_errors_supported=no
59476fi
59477        if test $_pkg_short_errors_supported = yes; then
59478	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
59479        else
59480	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
59481        fi
59482	# Put the nasty error message in config.log where it belongs
59483	echo "$LUA_PKG_ERRORS" >&5
59484
59485
59486
59487pkg_failed=no
59488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
59489$as_echo_n "checking for LUA... " >&6; }
59490
59491if test -n "$LUA_CFLAGS"; then
59492    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
59493 elif test -n "$PKG_CONFIG"; then
59494    if test -n "$PKG_CONFIG" && \
59495    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
59496  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
59497  ac_status=$?
59498  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59499  test $ac_status = 0; }; then
59500  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
59501		      test "x$?" != "x0" && pkg_failed=yes
59502else
59503  pkg_failed=yes
59504fi
59505 else
59506    pkg_failed=untried
59507fi
59508if test -n "$LUA_LIBS"; then
59509    pkg_cv_LUA_LIBS="$LUA_LIBS"
59510 elif test -n "$PKG_CONFIG"; then
59511    if test -n "$PKG_CONFIG" && \
59512    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
59513  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
59514  ac_status=$?
59515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59516  test $ac_status = 0; }; then
59517  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
59518		      test "x$?" != "x0" && pkg_failed=yes
59519else
59520  pkg_failed=yes
59521fi
59522 else
59523    pkg_failed=untried
59524fi
59525
59526
59527
59528if test $pkg_failed = yes; then
59529   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59530$as_echo "no" >&6; }
59531
59532if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59533        _pkg_short_errors_supported=yes
59534else
59535        _pkg_short_errors_supported=no
59536fi
59537        if test $_pkg_short_errors_supported = yes; then
59538	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
59539        else
59540	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
59541        fi
59542	# Put the nasty error message in config.log where it belongs
59543	echo "$LUA_PKG_ERRORS" >&5
59544
59545	with_liblua="no (pkg-config cannot find liblua)"
59546
59547elif test $pkg_failed = untried; then
59548     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59549$as_echo "no" >&6; }
59550	with_liblua="no (pkg-config cannot find liblua)"
59551
59552else
59553	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
59554	LUA_LIBS=$pkg_cv_LUA_LIBS
59555        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59556$as_echo "yes" >&6; }
59557	with_liblua="yes"
59558fi
59559
59560
59561elif test $pkg_failed = untried; then
59562     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59563$as_echo "no" >&6; }
59564
59565
59566pkg_failed=no
59567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
59568$as_echo_n "checking for LUA... " >&6; }
59569
59570if test -n "$LUA_CFLAGS"; then
59571    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
59572 elif test -n "$PKG_CONFIG"; then
59573    if test -n "$PKG_CONFIG" && \
59574    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
59575  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
59576  ac_status=$?
59577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59578  test $ac_status = 0; }; then
59579  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
59580		      test "x$?" != "x0" && pkg_failed=yes
59581else
59582  pkg_failed=yes
59583fi
59584 else
59585    pkg_failed=untried
59586fi
59587if test -n "$LUA_LIBS"; then
59588    pkg_cv_LUA_LIBS="$LUA_LIBS"
59589 elif test -n "$PKG_CONFIG"; then
59590    if test -n "$PKG_CONFIG" && \
59591    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
59592  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
59593  ac_status=$?
59594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59595  test $ac_status = 0; }; then
59596  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
59597		      test "x$?" != "x0" && pkg_failed=yes
59598else
59599  pkg_failed=yes
59600fi
59601 else
59602    pkg_failed=untried
59603fi
59604
59605
59606
59607if test $pkg_failed = yes; then
59608   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59609$as_echo "no" >&6; }
59610
59611if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59612        _pkg_short_errors_supported=yes
59613else
59614        _pkg_short_errors_supported=no
59615fi
59616        if test $_pkg_short_errors_supported = yes; then
59617	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
59618        else
59619	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
59620        fi
59621	# Put the nasty error message in config.log where it belongs
59622	echo "$LUA_PKG_ERRORS" >&5
59623
59624	with_liblua="no (pkg-config cannot find liblua)"
59625
59626elif test $pkg_failed = untried; then
59627     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59628$as_echo "no" >&6; }
59629	with_liblua="no (pkg-config cannot find liblua)"
59630
59631else
59632	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
59633	LUA_LIBS=$pkg_cv_LUA_LIBS
59634        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59635$as_echo "yes" >&6; }
59636	with_liblua="yes"
59637fi
59638
59639
59640else
59641	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
59642	LUA_LIBS=$pkg_cv_LUA_LIBS
59643        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59644$as_echo "yes" >&6; }
59645	with_liblua="yes"
59646fi
59647
59648
59649elif test $pkg_failed = untried; then
59650     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59651$as_echo "no" >&6; }
59652
59653
59654pkg_failed=no
59655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
59656$as_echo_n "checking for LUA... " >&6; }
59657
59658if test -n "$LUA_CFLAGS"; then
59659    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
59660 elif test -n "$PKG_CONFIG"; then
59661    if test -n "$PKG_CONFIG" && \
59662    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
59663  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
59664  ac_status=$?
59665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59666  test $ac_status = 0; }; then
59667  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
59668		      test "x$?" != "x0" && pkg_failed=yes
59669else
59670  pkg_failed=yes
59671fi
59672 else
59673    pkg_failed=untried
59674fi
59675if test -n "$LUA_LIBS"; then
59676    pkg_cv_LUA_LIBS="$LUA_LIBS"
59677 elif test -n "$PKG_CONFIG"; then
59678    if test -n "$PKG_CONFIG" && \
59679    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
59680  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
59681  ac_status=$?
59682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59683  test $ac_status = 0; }; then
59684  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
59685		      test "x$?" != "x0" && pkg_failed=yes
59686else
59687  pkg_failed=yes
59688fi
59689 else
59690    pkg_failed=untried
59691fi
59692
59693
59694
59695if test $pkg_failed = yes; then
59696   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59697$as_echo "no" >&6; }
59698
59699if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59700        _pkg_short_errors_supported=yes
59701else
59702        _pkg_short_errors_supported=no
59703fi
59704        if test $_pkg_short_errors_supported = yes; then
59705	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
59706        else
59707	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
59708        fi
59709	# Put the nasty error message in config.log where it belongs
59710	echo "$LUA_PKG_ERRORS" >&5
59711
59712
59713
59714pkg_failed=no
59715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
59716$as_echo_n "checking for LUA... " >&6; }
59717
59718if test -n "$LUA_CFLAGS"; then
59719    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
59720 elif test -n "$PKG_CONFIG"; then
59721    if test -n "$PKG_CONFIG" && \
59722    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
59723  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
59724  ac_status=$?
59725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59726  test $ac_status = 0; }; then
59727  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
59728		      test "x$?" != "x0" && pkg_failed=yes
59729else
59730  pkg_failed=yes
59731fi
59732 else
59733    pkg_failed=untried
59734fi
59735if test -n "$LUA_LIBS"; then
59736    pkg_cv_LUA_LIBS="$LUA_LIBS"
59737 elif test -n "$PKG_CONFIG"; then
59738    if test -n "$PKG_CONFIG" && \
59739    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
59740  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
59741  ac_status=$?
59742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59743  test $ac_status = 0; }; then
59744  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
59745		      test "x$?" != "x0" && pkg_failed=yes
59746else
59747  pkg_failed=yes
59748fi
59749 else
59750    pkg_failed=untried
59751fi
59752
59753
59754
59755if test $pkg_failed = yes; then
59756   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59757$as_echo "no" >&6; }
59758
59759if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59760        _pkg_short_errors_supported=yes
59761else
59762        _pkg_short_errors_supported=no
59763fi
59764        if test $_pkg_short_errors_supported = yes; then
59765	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
59766        else
59767	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
59768        fi
59769	# Put the nasty error message in config.log where it belongs
59770	echo "$LUA_PKG_ERRORS" >&5
59771
59772	with_liblua="no (pkg-config cannot find liblua)"
59773
59774elif test $pkg_failed = untried; then
59775     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59776$as_echo "no" >&6; }
59777	with_liblua="no (pkg-config cannot find liblua)"
59778
59779else
59780	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
59781	LUA_LIBS=$pkg_cv_LUA_LIBS
59782        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59783$as_echo "yes" >&6; }
59784	with_liblua="yes"
59785fi
59786
59787
59788elif test $pkg_failed = untried; then
59789     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59790$as_echo "no" >&6; }
59791
59792
59793pkg_failed=no
59794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
59795$as_echo_n "checking for LUA... " >&6; }
59796
59797if test -n "$LUA_CFLAGS"; then
59798    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
59799 elif test -n "$PKG_CONFIG"; then
59800    if test -n "$PKG_CONFIG" && \
59801    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
59802  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
59803  ac_status=$?
59804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59805  test $ac_status = 0; }; then
59806  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
59807		      test "x$?" != "x0" && pkg_failed=yes
59808else
59809  pkg_failed=yes
59810fi
59811 else
59812    pkg_failed=untried
59813fi
59814if test -n "$LUA_LIBS"; then
59815    pkg_cv_LUA_LIBS="$LUA_LIBS"
59816 elif test -n "$PKG_CONFIG"; then
59817    if test -n "$PKG_CONFIG" && \
59818    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
59819  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
59820  ac_status=$?
59821  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59822  test $ac_status = 0; }; then
59823  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
59824		      test "x$?" != "x0" && pkg_failed=yes
59825else
59826  pkg_failed=yes
59827fi
59828 else
59829    pkg_failed=untried
59830fi
59831
59832
59833
59834if test $pkg_failed = yes; then
59835   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59836$as_echo "no" >&6; }
59837
59838if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59839        _pkg_short_errors_supported=yes
59840else
59841        _pkg_short_errors_supported=no
59842fi
59843        if test $_pkg_short_errors_supported = yes; then
59844	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
59845        else
59846	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
59847        fi
59848	# Put the nasty error message in config.log where it belongs
59849	echo "$LUA_PKG_ERRORS" >&5
59850
59851	with_liblua="no (pkg-config cannot find liblua)"
59852
59853elif test $pkg_failed = untried; then
59854     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59855$as_echo "no" >&6; }
59856	with_liblua="no (pkg-config cannot find liblua)"
59857
59858else
59859	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
59860	LUA_LIBS=$pkg_cv_LUA_LIBS
59861        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59862$as_echo "yes" >&6; }
59863	with_liblua="yes"
59864fi
59865
59866
59867else
59868	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
59869	LUA_LIBS=$pkg_cv_LUA_LIBS
59870        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59871$as_echo "yes" >&6; }
59872	with_liblua="yes"
59873fi
59874
59875
59876else
59877	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
59878	LUA_LIBS=$pkg_cv_LUA_LIBS
59879        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59880$as_echo "yes" >&6; }
59881	with_liblua="yes"
59882fi
59883
59884
59885elif test $pkg_failed = untried; then
59886     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59887$as_echo "no" >&6; }
59888
59889
59890pkg_failed=no
59891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
59892$as_echo_n "checking for LUA... " >&6; }
59893
59894if test -n "$LUA_CFLAGS"; then
59895    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
59896 elif test -n "$PKG_CONFIG"; then
59897    if test -n "$PKG_CONFIG" && \
59898    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
59899  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
59900  ac_status=$?
59901  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59902  test $ac_status = 0; }; then
59903  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
59904		      test "x$?" != "x0" && pkg_failed=yes
59905else
59906  pkg_failed=yes
59907fi
59908 else
59909    pkg_failed=untried
59910fi
59911if test -n "$LUA_LIBS"; then
59912    pkg_cv_LUA_LIBS="$LUA_LIBS"
59913 elif test -n "$PKG_CONFIG"; then
59914    if test -n "$PKG_CONFIG" && \
59915    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
59916  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
59917  ac_status=$?
59918  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59919  test $ac_status = 0; }; then
59920  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
59921		      test "x$?" != "x0" && pkg_failed=yes
59922else
59923  pkg_failed=yes
59924fi
59925 else
59926    pkg_failed=untried
59927fi
59928
59929
59930
59931if test $pkg_failed = yes; then
59932   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59933$as_echo "no" >&6; }
59934
59935if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59936        _pkg_short_errors_supported=yes
59937else
59938        _pkg_short_errors_supported=no
59939fi
59940        if test $_pkg_short_errors_supported = yes; then
59941	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
59942        else
59943	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
59944        fi
59945	# Put the nasty error message in config.log where it belongs
59946	echo "$LUA_PKG_ERRORS" >&5
59947
59948
59949
59950pkg_failed=no
59951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
59952$as_echo_n "checking for LUA... " >&6; }
59953
59954if test -n "$LUA_CFLAGS"; then
59955    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
59956 elif test -n "$PKG_CONFIG"; then
59957    if test -n "$PKG_CONFIG" && \
59958    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
59959  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
59960  ac_status=$?
59961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59962  test $ac_status = 0; }; then
59963  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
59964		      test "x$?" != "x0" && pkg_failed=yes
59965else
59966  pkg_failed=yes
59967fi
59968 else
59969    pkg_failed=untried
59970fi
59971if test -n "$LUA_LIBS"; then
59972    pkg_cv_LUA_LIBS="$LUA_LIBS"
59973 elif test -n "$PKG_CONFIG"; then
59974    if test -n "$PKG_CONFIG" && \
59975    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
59976  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
59977  ac_status=$?
59978  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59979  test $ac_status = 0; }; then
59980  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
59981		      test "x$?" != "x0" && pkg_failed=yes
59982else
59983  pkg_failed=yes
59984fi
59985 else
59986    pkg_failed=untried
59987fi
59988
59989
59990
59991if test $pkg_failed = yes; then
59992   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59993$as_echo "no" >&6; }
59994
59995if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59996        _pkg_short_errors_supported=yes
59997else
59998        _pkg_short_errors_supported=no
59999fi
60000        if test $_pkg_short_errors_supported = yes; then
60001	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
60002        else
60003	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
60004        fi
60005	# Put the nasty error message in config.log where it belongs
60006	echo "$LUA_PKG_ERRORS" >&5
60007
60008
60009
60010pkg_failed=no
60011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
60012$as_echo_n "checking for LUA... " >&6; }
60013
60014if test -n "$LUA_CFLAGS"; then
60015    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
60016 elif test -n "$PKG_CONFIG"; then
60017    if test -n "$PKG_CONFIG" && \
60018    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
60019  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
60020  ac_status=$?
60021  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60022  test $ac_status = 0; }; then
60023  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
60024		      test "x$?" != "x0" && pkg_failed=yes
60025else
60026  pkg_failed=yes
60027fi
60028 else
60029    pkg_failed=untried
60030fi
60031if test -n "$LUA_LIBS"; then
60032    pkg_cv_LUA_LIBS="$LUA_LIBS"
60033 elif test -n "$PKG_CONFIG"; then
60034    if test -n "$PKG_CONFIG" && \
60035    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
60036  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
60037  ac_status=$?
60038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60039  test $ac_status = 0; }; then
60040  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
60041		      test "x$?" != "x0" && pkg_failed=yes
60042else
60043  pkg_failed=yes
60044fi
60045 else
60046    pkg_failed=untried
60047fi
60048
60049
60050
60051if test $pkg_failed = yes; then
60052   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60053$as_echo "no" >&6; }
60054
60055if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60056        _pkg_short_errors_supported=yes
60057else
60058        _pkg_short_errors_supported=no
60059fi
60060        if test $_pkg_short_errors_supported = yes; then
60061	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
60062        else
60063	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
60064        fi
60065	# Put the nasty error message in config.log where it belongs
60066	echo "$LUA_PKG_ERRORS" >&5
60067
60068	with_liblua="no (pkg-config cannot find liblua)"
60069
60070elif test $pkg_failed = untried; then
60071     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60072$as_echo "no" >&6; }
60073	with_liblua="no (pkg-config cannot find liblua)"
60074
60075else
60076	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
60077	LUA_LIBS=$pkg_cv_LUA_LIBS
60078        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60079$as_echo "yes" >&6; }
60080	with_liblua="yes"
60081fi
60082
60083
60084elif test $pkg_failed = untried; then
60085     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60086$as_echo "no" >&6; }
60087
60088
60089pkg_failed=no
60090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
60091$as_echo_n "checking for LUA... " >&6; }
60092
60093if test -n "$LUA_CFLAGS"; then
60094    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
60095 elif test -n "$PKG_CONFIG"; then
60096    if test -n "$PKG_CONFIG" && \
60097    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
60098  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
60099  ac_status=$?
60100  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60101  test $ac_status = 0; }; then
60102  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
60103		      test "x$?" != "x0" && pkg_failed=yes
60104else
60105  pkg_failed=yes
60106fi
60107 else
60108    pkg_failed=untried
60109fi
60110if test -n "$LUA_LIBS"; then
60111    pkg_cv_LUA_LIBS="$LUA_LIBS"
60112 elif test -n "$PKG_CONFIG"; then
60113    if test -n "$PKG_CONFIG" && \
60114    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
60115  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
60116  ac_status=$?
60117  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60118  test $ac_status = 0; }; then
60119  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
60120		      test "x$?" != "x0" && pkg_failed=yes
60121else
60122  pkg_failed=yes
60123fi
60124 else
60125    pkg_failed=untried
60126fi
60127
60128
60129
60130if test $pkg_failed = yes; then
60131   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60132$as_echo "no" >&6; }
60133
60134if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60135        _pkg_short_errors_supported=yes
60136else
60137        _pkg_short_errors_supported=no
60138fi
60139        if test $_pkg_short_errors_supported = yes; then
60140	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
60141        else
60142	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
60143        fi
60144	# Put the nasty error message in config.log where it belongs
60145	echo "$LUA_PKG_ERRORS" >&5
60146
60147	with_liblua="no (pkg-config cannot find liblua)"
60148
60149elif test $pkg_failed = untried; then
60150     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60151$as_echo "no" >&6; }
60152	with_liblua="no (pkg-config cannot find liblua)"
60153
60154else
60155	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
60156	LUA_LIBS=$pkg_cv_LUA_LIBS
60157        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60158$as_echo "yes" >&6; }
60159	with_liblua="yes"
60160fi
60161
60162
60163else
60164	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
60165	LUA_LIBS=$pkg_cv_LUA_LIBS
60166        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60167$as_echo "yes" >&6; }
60168	with_liblua="yes"
60169fi
60170
60171
60172elif test $pkg_failed = untried; then
60173     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60174$as_echo "no" >&6; }
60175
60176
60177pkg_failed=no
60178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
60179$as_echo_n "checking for LUA... " >&6; }
60180
60181if test -n "$LUA_CFLAGS"; then
60182    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
60183 elif test -n "$PKG_CONFIG"; then
60184    if test -n "$PKG_CONFIG" && \
60185    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
60186  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
60187  ac_status=$?
60188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60189  test $ac_status = 0; }; then
60190  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
60191		      test "x$?" != "x0" && pkg_failed=yes
60192else
60193  pkg_failed=yes
60194fi
60195 else
60196    pkg_failed=untried
60197fi
60198if test -n "$LUA_LIBS"; then
60199    pkg_cv_LUA_LIBS="$LUA_LIBS"
60200 elif test -n "$PKG_CONFIG"; then
60201    if test -n "$PKG_CONFIG" && \
60202    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
60203  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
60204  ac_status=$?
60205  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60206  test $ac_status = 0; }; then
60207  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
60208		      test "x$?" != "x0" && pkg_failed=yes
60209else
60210  pkg_failed=yes
60211fi
60212 else
60213    pkg_failed=untried
60214fi
60215
60216
60217
60218if test $pkg_failed = yes; then
60219   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60220$as_echo "no" >&6; }
60221
60222if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60223        _pkg_short_errors_supported=yes
60224else
60225        _pkg_short_errors_supported=no
60226fi
60227        if test $_pkg_short_errors_supported = yes; then
60228	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
60229        else
60230	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
60231        fi
60232	# Put the nasty error message in config.log where it belongs
60233	echo "$LUA_PKG_ERRORS" >&5
60234
60235
60236
60237pkg_failed=no
60238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
60239$as_echo_n "checking for LUA... " >&6; }
60240
60241if test -n "$LUA_CFLAGS"; then
60242    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
60243 elif test -n "$PKG_CONFIG"; then
60244    if test -n "$PKG_CONFIG" && \
60245    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
60246  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
60247  ac_status=$?
60248  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60249  test $ac_status = 0; }; then
60250  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
60251		      test "x$?" != "x0" && pkg_failed=yes
60252else
60253  pkg_failed=yes
60254fi
60255 else
60256    pkg_failed=untried
60257fi
60258if test -n "$LUA_LIBS"; then
60259    pkg_cv_LUA_LIBS="$LUA_LIBS"
60260 elif test -n "$PKG_CONFIG"; then
60261    if test -n "$PKG_CONFIG" && \
60262    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
60263  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
60264  ac_status=$?
60265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60266  test $ac_status = 0; }; then
60267  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
60268		      test "x$?" != "x0" && pkg_failed=yes
60269else
60270  pkg_failed=yes
60271fi
60272 else
60273    pkg_failed=untried
60274fi
60275
60276
60277
60278if test $pkg_failed = yes; then
60279   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60280$as_echo "no" >&6; }
60281
60282if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60283        _pkg_short_errors_supported=yes
60284else
60285        _pkg_short_errors_supported=no
60286fi
60287        if test $_pkg_short_errors_supported = yes; then
60288	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
60289        else
60290	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
60291        fi
60292	# Put the nasty error message in config.log where it belongs
60293	echo "$LUA_PKG_ERRORS" >&5
60294
60295	with_liblua="no (pkg-config cannot find liblua)"
60296
60297elif test $pkg_failed = untried; then
60298     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60299$as_echo "no" >&6; }
60300	with_liblua="no (pkg-config cannot find liblua)"
60301
60302else
60303	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
60304	LUA_LIBS=$pkg_cv_LUA_LIBS
60305        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60306$as_echo "yes" >&6; }
60307	with_liblua="yes"
60308fi
60309
60310
60311elif test $pkg_failed = untried; then
60312     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60313$as_echo "no" >&6; }
60314
60315
60316pkg_failed=no
60317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
60318$as_echo_n "checking for LUA... " >&6; }
60319
60320if test -n "$LUA_CFLAGS"; then
60321    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
60322 elif test -n "$PKG_CONFIG"; then
60323    if test -n "$PKG_CONFIG" && \
60324    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
60325  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
60326  ac_status=$?
60327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60328  test $ac_status = 0; }; then
60329  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
60330		      test "x$?" != "x0" && pkg_failed=yes
60331else
60332  pkg_failed=yes
60333fi
60334 else
60335    pkg_failed=untried
60336fi
60337if test -n "$LUA_LIBS"; then
60338    pkg_cv_LUA_LIBS="$LUA_LIBS"
60339 elif test -n "$PKG_CONFIG"; then
60340    if test -n "$PKG_CONFIG" && \
60341    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
60342  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
60343  ac_status=$?
60344  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60345  test $ac_status = 0; }; then
60346  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
60347		      test "x$?" != "x0" && pkg_failed=yes
60348else
60349  pkg_failed=yes
60350fi
60351 else
60352    pkg_failed=untried
60353fi
60354
60355
60356
60357if test $pkg_failed = yes; then
60358   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60359$as_echo "no" >&6; }
60360
60361if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60362        _pkg_short_errors_supported=yes
60363else
60364        _pkg_short_errors_supported=no
60365fi
60366        if test $_pkg_short_errors_supported = yes; then
60367	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
60368        else
60369	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
60370        fi
60371	# Put the nasty error message in config.log where it belongs
60372	echo "$LUA_PKG_ERRORS" >&5
60373
60374	with_liblua="no (pkg-config cannot find liblua)"
60375
60376elif test $pkg_failed = untried; then
60377     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60378$as_echo "no" >&6; }
60379	with_liblua="no (pkg-config cannot find liblua)"
60380
60381else
60382	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
60383	LUA_LIBS=$pkg_cv_LUA_LIBS
60384        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60385$as_echo "yes" >&6; }
60386	with_liblua="yes"
60387fi
60388
60389
60390else
60391	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
60392	LUA_LIBS=$pkg_cv_LUA_LIBS
60393        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60394$as_echo "yes" >&6; }
60395	with_liblua="yes"
60396fi
60397
60398
60399else
60400	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
60401	LUA_LIBS=$pkg_cv_LUA_LIBS
60402        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60403$as_echo "yes" >&6; }
60404	with_liblua="yes"
60405fi
60406
60407
60408else
60409	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
60410	LUA_LIBS=$pkg_cv_LUA_LIBS
60411        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60412$as_echo "yes" >&6; }
60413	with_liblua="yes"
60414fi
60415
60416
60417elif test $pkg_failed = untried; then
60418     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60419$as_echo "no" >&6; }
60420
60421
60422pkg_failed=no
60423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
60424$as_echo_n "checking for LUA... " >&6; }
60425
60426if test -n "$LUA_CFLAGS"; then
60427    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
60428 elif test -n "$PKG_CONFIG"; then
60429    if test -n "$PKG_CONFIG" && \
60430    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
60431  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
60432  ac_status=$?
60433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60434  test $ac_status = 0; }; then
60435  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
60436		      test "x$?" != "x0" && pkg_failed=yes
60437else
60438  pkg_failed=yes
60439fi
60440 else
60441    pkg_failed=untried
60442fi
60443if test -n "$LUA_LIBS"; then
60444    pkg_cv_LUA_LIBS="$LUA_LIBS"
60445 elif test -n "$PKG_CONFIG"; then
60446    if test -n "$PKG_CONFIG" && \
60447    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
60448  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
60449  ac_status=$?
60450  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60451  test $ac_status = 0; }; then
60452  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
60453		      test "x$?" != "x0" && pkg_failed=yes
60454else
60455  pkg_failed=yes
60456fi
60457 else
60458    pkg_failed=untried
60459fi
60460
60461
60462
60463if test $pkg_failed = yes; then
60464   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60465$as_echo "no" >&6; }
60466
60467if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60468        _pkg_short_errors_supported=yes
60469else
60470        _pkg_short_errors_supported=no
60471fi
60472        if test $_pkg_short_errors_supported = yes; then
60473	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
60474        else
60475	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
60476        fi
60477	# Put the nasty error message in config.log where it belongs
60478	echo "$LUA_PKG_ERRORS" >&5
60479
60480
60481
60482pkg_failed=no
60483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
60484$as_echo_n "checking for LUA... " >&6; }
60485
60486if test -n "$LUA_CFLAGS"; then
60487    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
60488 elif test -n "$PKG_CONFIG"; then
60489    if test -n "$PKG_CONFIG" && \
60490    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
60491  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
60492  ac_status=$?
60493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60494  test $ac_status = 0; }; then
60495  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
60496		      test "x$?" != "x0" && pkg_failed=yes
60497else
60498  pkg_failed=yes
60499fi
60500 else
60501    pkg_failed=untried
60502fi
60503if test -n "$LUA_LIBS"; then
60504    pkg_cv_LUA_LIBS="$LUA_LIBS"
60505 elif test -n "$PKG_CONFIG"; then
60506    if test -n "$PKG_CONFIG" && \
60507    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
60508  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
60509  ac_status=$?
60510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60511  test $ac_status = 0; }; then
60512  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
60513		      test "x$?" != "x0" && pkg_failed=yes
60514else
60515  pkg_failed=yes
60516fi
60517 else
60518    pkg_failed=untried
60519fi
60520
60521
60522
60523if test $pkg_failed = yes; then
60524   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60525$as_echo "no" >&6; }
60526
60527if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60528        _pkg_short_errors_supported=yes
60529else
60530        _pkg_short_errors_supported=no
60531fi
60532        if test $_pkg_short_errors_supported = yes; then
60533	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
60534        else
60535	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
60536        fi
60537	# Put the nasty error message in config.log where it belongs
60538	echo "$LUA_PKG_ERRORS" >&5
60539
60540
60541
60542pkg_failed=no
60543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
60544$as_echo_n "checking for LUA... " >&6; }
60545
60546if test -n "$LUA_CFLAGS"; then
60547    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
60548 elif test -n "$PKG_CONFIG"; then
60549    if test -n "$PKG_CONFIG" && \
60550    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
60551  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
60552  ac_status=$?
60553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60554  test $ac_status = 0; }; then
60555  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
60556		      test "x$?" != "x0" && pkg_failed=yes
60557else
60558  pkg_failed=yes
60559fi
60560 else
60561    pkg_failed=untried
60562fi
60563if test -n "$LUA_LIBS"; then
60564    pkg_cv_LUA_LIBS="$LUA_LIBS"
60565 elif test -n "$PKG_CONFIG"; then
60566    if test -n "$PKG_CONFIG" && \
60567    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
60568  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
60569  ac_status=$?
60570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60571  test $ac_status = 0; }; then
60572  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
60573		      test "x$?" != "x0" && pkg_failed=yes
60574else
60575  pkg_failed=yes
60576fi
60577 else
60578    pkg_failed=untried
60579fi
60580
60581
60582
60583if test $pkg_failed = yes; then
60584   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60585$as_echo "no" >&6; }
60586
60587if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60588        _pkg_short_errors_supported=yes
60589else
60590        _pkg_short_errors_supported=no
60591fi
60592        if test $_pkg_short_errors_supported = yes; then
60593	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
60594        else
60595	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
60596        fi
60597	# Put the nasty error message in config.log where it belongs
60598	echo "$LUA_PKG_ERRORS" >&5
60599
60600
60601
60602pkg_failed=no
60603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
60604$as_echo_n "checking for LUA... " >&6; }
60605
60606if test -n "$LUA_CFLAGS"; then
60607    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
60608 elif test -n "$PKG_CONFIG"; then
60609    if test -n "$PKG_CONFIG" && \
60610    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
60611  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
60612  ac_status=$?
60613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60614  test $ac_status = 0; }; then
60615  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
60616		      test "x$?" != "x0" && pkg_failed=yes
60617else
60618  pkg_failed=yes
60619fi
60620 else
60621    pkg_failed=untried
60622fi
60623if test -n "$LUA_LIBS"; then
60624    pkg_cv_LUA_LIBS="$LUA_LIBS"
60625 elif test -n "$PKG_CONFIG"; then
60626    if test -n "$PKG_CONFIG" && \
60627    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
60628  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
60629  ac_status=$?
60630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60631  test $ac_status = 0; }; then
60632  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
60633		      test "x$?" != "x0" && pkg_failed=yes
60634else
60635  pkg_failed=yes
60636fi
60637 else
60638    pkg_failed=untried
60639fi
60640
60641
60642
60643if test $pkg_failed = yes; then
60644   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60645$as_echo "no" >&6; }
60646
60647if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60648        _pkg_short_errors_supported=yes
60649else
60650        _pkg_short_errors_supported=no
60651fi
60652        if test $_pkg_short_errors_supported = yes; then
60653	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
60654        else
60655	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
60656        fi
60657	# Put the nasty error message in config.log where it belongs
60658	echo "$LUA_PKG_ERRORS" >&5
60659
60660	with_liblua="no (pkg-config cannot find liblua)"
60661
60662elif test $pkg_failed = untried; then
60663     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60664$as_echo "no" >&6; }
60665	with_liblua="no (pkg-config cannot find liblua)"
60666
60667else
60668	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
60669	LUA_LIBS=$pkg_cv_LUA_LIBS
60670        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60671$as_echo "yes" >&6; }
60672	with_liblua="yes"
60673fi
60674
60675
60676elif test $pkg_failed = untried; then
60677     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60678$as_echo "no" >&6; }
60679
60680
60681pkg_failed=no
60682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
60683$as_echo_n "checking for LUA... " >&6; }
60684
60685if test -n "$LUA_CFLAGS"; then
60686    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
60687 elif test -n "$PKG_CONFIG"; then
60688    if test -n "$PKG_CONFIG" && \
60689    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
60690  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
60691  ac_status=$?
60692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60693  test $ac_status = 0; }; then
60694  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
60695		      test "x$?" != "x0" && pkg_failed=yes
60696else
60697  pkg_failed=yes
60698fi
60699 else
60700    pkg_failed=untried
60701fi
60702if test -n "$LUA_LIBS"; then
60703    pkg_cv_LUA_LIBS="$LUA_LIBS"
60704 elif test -n "$PKG_CONFIG"; then
60705    if test -n "$PKG_CONFIG" && \
60706    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
60707  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
60708  ac_status=$?
60709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60710  test $ac_status = 0; }; then
60711  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
60712		      test "x$?" != "x0" && pkg_failed=yes
60713else
60714  pkg_failed=yes
60715fi
60716 else
60717    pkg_failed=untried
60718fi
60719
60720
60721
60722if test $pkg_failed = yes; then
60723   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60724$as_echo "no" >&6; }
60725
60726if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60727        _pkg_short_errors_supported=yes
60728else
60729        _pkg_short_errors_supported=no
60730fi
60731        if test $_pkg_short_errors_supported = yes; then
60732	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
60733        else
60734	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
60735        fi
60736	# Put the nasty error message in config.log where it belongs
60737	echo "$LUA_PKG_ERRORS" >&5
60738
60739	with_liblua="no (pkg-config cannot find liblua)"
60740
60741elif test $pkg_failed = untried; then
60742     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60743$as_echo "no" >&6; }
60744	with_liblua="no (pkg-config cannot find liblua)"
60745
60746else
60747	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
60748	LUA_LIBS=$pkg_cv_LUA_LIBS
60749        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60750$as_echo "yes" >&6; }
60751	with_liblua="yes"
60752fi
60753
60754
60755else
60756	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
60757	LUA_LIBS=$pkg_cv_LUA_LIBS
60758        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60759$as_echo "yes" >&6; }
60760	with_liblua="yes"
60761fi
60762
60763
60764elif test $pkg_failed = untried; then
60765     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60766$as_echo "no" >&6; }
60767
60768
60769pkg_failed=no
60770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
60771$as_echo_n "checking for LUA... " >&6; }
60772
60773if test -n "$LUA_CFLAGS"; then
60774    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
60775 elif test -n "$PKG_CONFIG"; then
60776    if test -n "$PKG_CONFIG" && \
60777    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
60778  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
60779  ac_status=$?
60780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60781  test $ac_status = 0; }; then
60782  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
60783		      test "x$?" != "x0" && pkg_failed=yes
60784else
60785  pkg_failed=yes
60786fi
60787 else
60788    pkg_failed=untried
60789fi
60790if test -n "$LUA_LIBS"; then
60791    pkg_cv_LUA_LIBS="$LUA_LIBS"
60792 elif test -n "$PKG_CONFIG"; then
60793    if test -n "$PKG_CONFIG" && \
60794    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
60795  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
60796  ac_status=$?
60797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60798  test $ac_status = 0; }; then
60799  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
60800		      test "x$?" != "x0" && pkg_failed=yes
60801else
60802  pkg_failed=yes
60803fi
60804 else
60805    pkg_failed=untried
60806fi
60807
60808
60809
60810if test $pkg_failed = yes; then
60811   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60812$as_echo "no" >&6; }
60813
60814if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60815        _pkg_short_errors_supported=yes
60816else
60817        _pkg_short_errors_supported=no
60818fi
60819        if test $_pkg_short_errors_supported = yes; then
60820	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
60821        else
60822	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
60823        fi
60824	# Put the nasty error message in config.log where it belongs
60825	echo "$LUA_PKG_ERRORS" >&5
60826
60827
60828
60829pkg_failed=no
60830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
60831$as_echo_n "checking for LUA... " >&6; }
60832
60833if test -n "$LUA_CFLAGS"; then
60834    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
60835 elif test -n "$PKG_CONFIG"; then
60836    if test -n "$PKG_CONFIG" && \
60837    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
60838  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
60839  ac_status=$?
60840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60841  test $ac_status = 0; }; then
60842  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
60843		      test "x$?" != "x0" && pkg_failed=yes
60844else
60845  pkg_failed=yes
60846fi
60847 else
60848    pkg_failed=untried
60849fi
60850if test -n "$LUA_LIBS"; then
60851    pkg_cv_LUA_LIBS="$LUA_LIBS"
60852 elif test -n "$PKG_CONFIG"; then
60853    if test -n "$PKG_CONFIG" && \
60854    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
60855  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
60856  ac_status=$?
60857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60858  test $ac_status = 0; }; then
60859  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
60860		      test "x$?" != "x0" && pkg_failed=yes
60861else
60862  pkg_failed=yes
60863fi
60864 else
60865    pkg_failed=untried
60866fi
60867
60868
60869
60870if test $pkg_failed = yes; then
60871   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60872$as_echo "no" >&6; }
60873
60874if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60875        _pkg_short_errors_supported=yes
60876else
60877        _pkg_short_errors_supported=no
60878fi
60879        if test $_pkg_short_errors_supported = yes; then
60880	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
60881        else
60882	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
60883        fi
60884	# Put the nasty error message in config.log where it belongs
60885	echo "$LUA_PKG_ERRORS" >&5
60886
60887	with_liblua="no (pkg-config cannot find liblua)"
60888
60889elif test $pkg_failed = untried; then
60890     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60891$as_echo "no" >&6; }
60892	with_liblua="no (pkg-config cannot find liblua)"
60893
60894else
60895	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
60896	LUA_LIBS=$pkg_cv_LUA_LIBS
60897        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60898$as_echo "yes" >&6; }
60899	with_liblua="yes"
60900fi
60901
60902
60903elif test $pkg_failed = untried; then
60904     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60905$as_echo "no" >&6; }
60906
60907
60908pkg_failed=no
60909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
60910$as_echo_n "checking for LUA... " >&6; }
60911
60912if test -n "$LUA_CFLAGS"; then
60913    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
60914 elif test -n "$PKG_CONFIG"; then
60915    if test -n "$PKG_CONFIG" && \
60916    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
60917  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
60918  ac_status=$?
60919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60920  test $ac_status = 0; }; then
60921  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
60922		      test "x$?" != "x0" && pkg_failed=yes
60923else
60924  pkg_failed=yes
60925fi
60926 else
60927    pkg_failed=untried
60928fi
60929if test -n "$LUA_LIBS"; then
60930    pkg_cv_LUA_LIBS="$LUA_LIBS"
60931 elif test -n "$PKG_CONFIG"; then
60932    if test -n "$PKG_CONFIG" && \
60933    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
60934  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
60935  ac_status=$?
60936  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60937  test $ac_status = 0; }; then
60938  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
60939		      test "x$?" != "x0" && pkg_failed=yes
60940else
60941  pkg_failed=yes
60942fi
60943 else
60944    pkg_failed=untried
60945fi
60946
60947
60948
60949if test $pkg_failed = yes; then
60950   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60951$as_echo "no" >&6; }
60952
60953if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60954        _pkg_short_errors_supported=yes
60955else
60956        _pkg_short_errors_supported=no
60957fi
60958        if test $_pkg_short_errors_supported = yes; then
60959	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
60960        else
60961	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
60962        fi
60963	# Put the nasty error message in config.log where it belongs
60964	echo "$LUA_PKG_ERRORS" >&5
60965
60966	with_liblua="no (pkg-config cannot find liblua)"
60967
60968elif test $pkg_failed = untried; then
60969     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60970$as_echo "no" >&6; }
60971	with_liblua="no (pkg-config cannot find liblua)"
60972
60973else
60974	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
60975	LUA_LIBS=$pkg_cv_LUA_LIBS
60976        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60977$as_echo "yes" >&6; }
60978	with_liblua="yes"
60979fi
60980
60981
60982else
60983	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
60984	LUA_LIBS=$pkg_cv_LUA_LIBS
60985        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60986$as_echo "yes" >&6; }
60987	with_liblua="yes"
60988fi
60989
60990
60991else
60992	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
60993	LUA_LIBS=$pkg_cv_LUA_LIBS
60994        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60995$as_echo "yes" >&6; }
60996	with_liblua="yes"
60997fi
60998
60999
61000elif test $pkg_failed = untried; then
61001     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61002$as_echo "no" >&6; }
61003
61004
61005pkg_failed=no
61006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
61007$as_echo_n "checking for LUA... " >&6; }
61008
61009if test -n "$LUA_CFLAGS"; then
61010    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
61011 elif test -n "$PKG_CONFIG"; then
61012    if test -n "$PKG_CONFIG" && \
61013    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
61014  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
61015  ac_status=$?
61016  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61017  test $ac_status = 0; }; then
61018  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
61019		      test "x$?" != "x0" && pkg_failed=yes
61020else
61021  pkg_failed=yes
61022fi
61023 else
61024    pkg_failed=untried
61025fi
61026if test -n "$LUA_LIBS"; then
61027    pkg_cv_LUA_LIBS="$LUA_LIBS"
61028 elif test -n "$PKG_CONFIG"; then
61029    if test -n "$PKG_CONFIG" && \
61030    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
61031  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
61032  ac_status=$?
61033  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61034  test $ac_status = 0; }; then
61035  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
61036		      test "x$?" != "x0" && pkg_failed=yes
61037else
61038  pkg_failed=yes
61039fi
61040 else
61041    pkg_failed=untried
61042fi
61043
61044
61045
61046if test $pkg_failed = yes; then
61047   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61048$as_echo "no" >&6; }
61049
61050if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61051        _pkg_short_errors_supported=yes
61052else
61053        _pkg_short_errors_supported=no
61054fi
61055        if test $_pkg_short_errors_supported = yes; then
61056	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
61057        else
61058	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
61059        fi
61060	# Put the nasty error message in config.log where it belongs
61061	echo "$LUA_PKG_ERRORS" >&5
61062
61063
61064
61065pkg_failed=no
61066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
61067$as_echo_n "checking for LUA... " >&6; }
61068
61069if test -n "$LUA_CFLAGS"; then
61070    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
61071 elif test -n "$PKG_CONFIG"; then
61072    if test -n "$PKG_CONFIG" && \
61073    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
61074  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
61075  ac_status=$?
61076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61077  test $ac_status = 0; }; then
61078  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
61079		      test "x$?" != "x0" && pkg_failed=yes
61080else
61081  pkg_failed=yes
61082fi
61083 else
61084    pkg_failed=untried
61085fi
61086if test -n "$LUA_LIBS"; then
61087    pkg_cv_LUA_LIBS="$LUA_LIBS"
61088 elif test -n "$PKG_CONFIG"; then
61089    if test -n "$PKG_CONFIG" && \
61090    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
61091  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
61092  ac_status=$?
61093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61094  test $ac_status = 0; }; then
61095  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
61096		      test "x$?" != "x0" && pkg_failed=yes
61097else
61098  pkg_failed=yes
61099fi
61100 else
61101    pkg_failed=untried
61102fi
61103
61104
61105
61106if test $pkg_failed = yes; then
61107   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61108$as_echo "no" >&6; }
61109
61110if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61111        _pkg_short_errors_supported=yes
61112else
61113        _pkg_short_errors_supported=no
61114fi
61115        if test $_pkg_short_errors_supported = yes; then
61116	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
61117        else
61118	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
61119        fi
61120	# Put the nasty error message in config.log where it belongs
61121	echo "$LUA_PKG_ERRORS" >&5
61122
61123
61124
61125pkg_failed=no
61126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
61127$as_echo_n "checking for LUA... " >&6; }
61128
61129if test -n "$LUA_CFLAGS"; then
61130    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
61131 elif test -n "$PKG_CONFIG"; then
61132    if test -n "$PKG_CONFIG" && \
61133    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
61134  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
61135  ac_status=$?
61136  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61137  test $ac_status = 0; }; then
61138  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
61139		      test "x$?" != "x0" && pkg_failed=yes
61140else
61141  pkg_failed=yes
61142fi
61143 else
61144    pkg_failed=untried
61145fi
61146if test -n "$LUA_LIBS"; then
61147    pkg_cv_LUA_LIBS="$LUA_LIBS"
61148 elif test -n "$PKG_CONFIG"; then
61149    if test -n "$PKG_CONFIG" && \
61150    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
61151  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
61152  ac_status=$?
61153  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61154  test $ac_status = 0; }; then
61155  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
61156		      test "x$?" != "x0" && pkg_failed=yes
61157else
61158  pkg_failed=yes
61159fi
61160 else
61161    pkg_failed=untried
61162fi
61163
61164
61165
61166if test $pkg_failed = yes; then
61167   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61168$as_echo "no" >&6; }
61169
61170if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61171        _pkg_short_errors_supported=yes
61172else
61173        _pkg_short_errors_supported=no
61174fi
61175        if test $_pkg_short_errors_supported = yes; then
61176	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
61177        else
61178	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
61179        fi
61180	# Put the nasty error message in config.log where it belongs
61181	echo "$LUA_PKG_ERRORS" >&5
61182
61183	with_liblua="no (pkg-config cannot find liblua)"
61184
61185elif test $pkg_failed = untried; then
61186     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61187$as_echo "no" >&6; }
61188	with_liblua="no (pkg-config cannot find liblua)"
61189
61190else
61191	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
61192	LUA_LIBS=$pkg_cv_LUA_LIBS
61193        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61194$as_echo "yes" >&6; }
61195	with_liblua="yes"
61196fi
61197
61198
61199elif test $pkg_failed = untried; then
61200     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61201$as_echo "no" >&6; }
61202
61203
61204pkg_failed=no
61205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
61206$as_echo_n "checking for LUA... " >&6; }
61207
61208if test -n "$LUA_CFLAGS"; then
61209    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
61210 elif test -n "$PKG_CONFIG"; then
61211    if test -n "$PKG_CONFIG" && \
61212    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
61213  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
61214  ac_status=$?
61215  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61216  test $ac_status = 0; }; then
61217  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
61218		      test "x$?" != "x0" && pkg_failed=yes
61219else
61220  pkg_failed=yes
61221fi
61222 else
61223    pkg_failed=untried
61224fi
61225if test -n "$LUA_LIBS"; then
61226    pkg_cv_LUA_LIBS="$LUA_LIBS"
61227 elif test -n "$PKG_CONFIG"; then
61228    if test -n "$PKG_CONFIG" && \
61229    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
61230  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
61231  ac_status=$?
61232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61233  test $ac_status = 0; }; then
61234  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
61235		      test "x$?" != "x0" && pkg_failed=yes
61236else
61237  pkg_failed=yes
61238fi
61239 else
61240    pkg_failed=untried
61241fi
61242
61243
61244
61245if test $pkg_failed = yes; then
61246   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61247$as_echo "no" >&6; }
61248
61249if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61250        _pkg_short_errors_supported=yes
61251else
61252        _pkg_short_errors_supported=no
61253fi
61254        if test $_pkg_short_errors_supported = yes; then
61255	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
61256        else
61257	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
61258        fi
61259	# Put the nasty error message in config.log where it belongs
61260	echo "$LUA_PKG_ERRORS" >&5
61261
61262	with_liblua="no (pkg-config cannot find liblua)"
61263
61264elif test $pkg_failed = untried; then
61265     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61266$as_echo "no" >&6; }
61267	with_liblua="no (pkg-config cannot find liblua)"
61268
61269else
61270	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
61271	LUA_LIBS=$pkg_cv_LUA_LIBS
61272        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61273$as_echo "yes" >&6; }
61274	with_liblua="yes"
61275fi
61276
61277
61278else
61279	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
61280	LUA_LIBS=$pkg_cv_LUA_LIBS
61281        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61282$as_echo "yes" >&6; }
61283	with_liblua="yes"
61284fi
61285
61286
61287elif test $pkg_failed = untried; then
61288     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61289$as_echo "no" >&6; }
61290
61291
61292pkg_failed=no
61293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
61294$as_echo_n "checking for LUA... " >&6; }
61295
61296if test -n "$LUA_CFLAGS"; then
61297    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
61298 elif test -n "$PKG_CONFIG"; then
61299    if test -n "$PKG_CONFIG" && \
61300    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
61301  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
61302  ac_status=$?
61303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61304  test $ac_status = 0; }; then
61305  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
61306		      test "x$?" != "x0" && pkg_failed=yes
61307else
61308  pkg_failed=yes
61309fi
61310 else
61311    pkg_failed=untried
61312fi
61313if test -n "$LUA_LIBS"; then
61314    pkg_cv_LUA_LIBS="$LUA_LIBS"
61315 elif test -n "$PKG_CONFIG"; then
61316    if test -n "$PKG_CONFIG" && \
61317    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
61318  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
61319  ac_status=$?
61320  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61321  test $ac_status = 0; }; then
61322  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
61323		      test "x$?" != "x0" && pkg_failed=yes
61324else
61325  pkg_failed=yes
61326fi
61327 else
61328    pkg_failed=untried
61329fi
61330
61331
61332
61333if test $pkg_failed = yes; then
61334   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61335$as_echo "no" >&6; }
61336
61337if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61338        _pkg_short_errors_supported=yes
61339else
61340        _pkg_short_errors_supported=no
61341fi
61342        if test $_pkg_short_errors_supported = yes; then
61343	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
61344        else
61345	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
61346        fi
61347	# Put the nasty error message in config.log where it belongs
61348	echo "$LUA_PKG_ERRORS" >&5
61349
61350
61351
61352pkg_failed=no
61353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
61354$as_echo_n "checking for LUA... " >&6; }
61355
61356if test -n "$LUA_CFLAGS"; then
61357    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
61358 elif test -n "$PKG_CONFIG"; then
61359    if test -n "$PKG_CONFIG" && \
61360    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
61361  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
61362  ac_status=$?
61363  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61364  test $ac_status = 0; }; then
61365  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
61366		      test "x$?" != "x0" && pkg_failed=yes
61367else
61368  pkg_failed=yes
61369fi
61370 else
61371    pkg_failed=untried
61372fi
61373if test -n "$LUA_LIBS"; then
61374    pkg_cv_LUA_LIBS="$LUA_LIBS"
61375 elif test -n "$PKG_CONFIG"; then
61376    if test -n "$PKG_CONFIG" && \
61377    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
61378  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
61379  ac_status=$?
61380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61381  test $ac_status = 0; }; then
61382  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
61383		      test "x$?" != "x0" && pkg_failed=yes
61384else
61385  pkg_failed=yes
61386fi
61387 else
61388    pkg_failed=untried
61389fi
61390
61391
61392
61393if test $pkg_failed = yes; then
61394   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61395$as_echo "no" >&6; }
61396
61397if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61398        _pkg_short_errors_supported=yes
61399else
61400        _pkg_short_errors_supported=no
61401fi
61402        if test $_pkg_short_errors_supported = yes; then
61403	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
61404        else
61405	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
61406        fi
61407	# Put the nasty error message in config.log where it belongs
61408	echo "$LUA_PKG_ERRORS" >&5
61409
61410	with_liblua="no (pkg-config cannot find liblua)"
61411
61412elif test $pkg_failed = untried; then
61413     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61414$as_echo "no" >&6; }
61415	with_liblua="no (pkg-config cannot find liblua)"
61416
61417else
61418	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
61419	LUA_LIBS=$pkg_cv_LUA_LIBS
61420        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61421$as_echo "yes" >&6; }
61422	with_liblua="yes"
61423fi
61424
61425
61426elif test $pkg_failed = untried; then
61427     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61428$as_echo "no" >&6; }
61429
61430
61431pkg_failed=no
61432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
61433$as_echo_n "checking for LUA... " >&6; }
61434
61435if test -n "$LUA_CFLAGS"; then
61436    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
61437 elif test -n "$PKG_CONFIG"; then
61438    if test -n "$PKG_CONFIG" && \
61439    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
61440  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
61441  ac_status=$?
61442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61443  test $ac_status = 0; }; then
61444  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
61445		      test "x$?" != "x0" && pkg_failed=yes
61446else
61447  pkg_failed=yes
61448fi
61449 else
61450    pkg_failed=untried
61451fi
61452if test -n "$LUA_LIBS"; then
61453    pkg_cv_LUA_LIBS="$LUA_LIBS"
61454 elif test -n "$PKG_CONFIG"; then
61455    if test -n "$PKG_CONFIG" && \
61456    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
61457  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
61458  ac_status=$?
61459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61460  test $ac_status = 0; }; then
61461  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
61462		      test "x$?" != "x0" && pkg_failed=yes
61463else
61464  pkg_failed=yes
61465fi
61466 else
61467    pkg_failed=untried
61468fi
61469
61470
61471
61472if test $pkg_failed = yes; then
61473   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61474$as_echo "no" >&6; }
61475
61476if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61477        _pkg_short_errors_supported=yes
61478else
61479        _pkg_short_errors_supported=no
61480fi
61481        if test $_pkg_short_errors_supported = yes; then
61482	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
61483        else
61484	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
61485        fi
61486	# Put the nasty error message in config.log where it belongs
61487	echo "$LUA_PKG_ERRORS" >&5
61488
61489	with_liblua="no (pkg-config cannot find liblua)"
61490
61491elif test $pkg_failed = untried; then
61492     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61493$as_echo "no" >&6; }
61494	with_liblua="no (pkg-config cannot find liblua)"
61495
61496else
61497	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
61498	LUA_LIBS=$pkg_cv_LUA_LIBS
61499        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61500$as_echo "yes" >&6; }
61501	with_liblua="yes"
61502fi
61503
61504
61505else
61506	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
61507	LUA_LIBS=$pkg_cv_LUA_LIBS
61508        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61509$as_echo "yes" >&6; }
61510	with_liblua="yes"
61511fi
61512
61513
61514else
61515	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
61516	LUA_LIBS=$pkg_cv_LUA_LIBS
61517        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61518$as_echo "yes" >&6; }
61519	with_liblua="yes"
61520fi
61521
61522
61523else
61524	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
61525	LUA_LIBS=$pkg_cv_LUA_LIBS
61526        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61527$as_echo "yes" >&6; }
61528	with_liblua="yes"
61529fi
61530
61531
61532else
61533	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
61534	LUA_LIBS=$pkg_cv_LUA_LIBS
61535        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61536$as_echo "yes" >&6; }
61537	with_liblua="yes"
61538fi
61539
61540
61541elif test $pkg_failed = untried; then
61542     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61543$as_echo "no" >&6; }
61544
61545
61546pkg_failed=no
61547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
61548$as_echo_n "checking for LUA... " >&6; }
61549
61550if test -n "$LUA_CFLAGS"; then
61551    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
61552 elif test -n "$PKG_CONFIG"; then
61553    if test -n "$PKG_CONFIG" && \
61554    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
61555  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
61556  ac_status=$?
61557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61558  test $ac_status = 0; }; then
61559  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
61560		      test "x$?" != "x0" && pkg_failed=yes
61561else
61562  pkg_failed=yes
61563fi
61564 else
61565    pkg_failed=untried
61566fi
61567if test -n "$LUA_LIBS"; then
61568    pkg_cv_LUA_LIBS="$LUA_LIBS"
61569 elif test -n "$PKG_CONFIG"; then
61570    if test -n "$PKG_CONFIG" && \
61571    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
61572  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
61573  ac_status=$?
61574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61575  test $ac_status = 0; }; then
61576  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
61577		      test "x$?" != "x0" && pkg_failed=yes
61578else
61579  pkg_failed=yes
61580fi
61581 else
61582    pkg_failed=untried
61583fi
61584
61585
61586
61587if test $pkg_failed = yes; then
61588   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61589$as_echo "no" >&6; }
61590
61591if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61592        _pkg_short_errors_supported=yes
61593else
61594        _pkg_short_errors_supported=no
61595fi
61596        if test $_pkg_short_errors_supported = yes; then
61597	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
61598        else
61599	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
61600        fi
61601	# Put the nasty error message in config.log where it belongs
61602	echo "$LUA_PKG_ERRORS" >&5
61603
61604
61605
61606pkg_failed=no
61607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
61608$as_echo_n "checking for LUA... " >&6; }
61609
61610if test -n "$LUA_CFLAGS"; then
61611    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
61612 elif test -n "$PKG_CONFIG"; then
61613    if test -n "$PKG_CONFIG" && \
61614    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
61615  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
61616  ac_status=$?
61617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61618  test $ac_status = 0; }; then
61619  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
61620		      test "x$?" != "x0" && pkg_failed=yes
61621else
61622  pkg_failed=yes
61623fi
61624 else
61625    pkg_failed=untried
61626fi
61627if test -n "$LUA_LIBS"; then
61628    pkg_cv_LUA_LIBS="$LUA_LIBS"
61629 elif test -n "$PKG_CONFIG"; then
61630    if test -n "$PKG_CONFIG" && \
61631    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
61632  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
61633  ac_status=$?
61634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61635  test $ac_status = 0; }; then
61636  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
61637		      test "x$?" != "x0" && pkg_failed=yes
61638else
61639  pkg_failed=yes
61640fi
61641 else
61642    pkg_failed=untried
61643fi
61644
61645
61646
61647if test $pkg_failed = yes; then
61648   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61649$as_echo "no" >&6; }
61650
61651if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61652        _pkg_short_errors_supported=yes
61653else
61654        _pkg_short_errors_supported=no
61655fi
61656        if test $_pkg_short_errors_supported = yes; then
61657	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
61658        else
61659	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
61660        fi
61661	# Put the nasty error message in config.log where it belongs
61662	echo "$LUA_PKG_ERRORS" >&5
61663
61664
61665
61666pkg_failed=no
61667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
61668$as_echo_n "checking for LUA... " >&6; }
61669
61670if test -n "$LUA_CFLAGS"; then
61671    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
61672 elif test -n "$PKG_CONFIG"; then
61673    if test -n "$PKG_CONFIG" && \
61674    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
61675  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
61676  ac_status=$?
61677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61678  test $ac_status = 0; }; then
61679  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
61680		      test "x$?" != "x0" && pkg_failed=yes
61681else
61682  pkg_failed=yes
61683fi
61684 else
61685    pkg_failed=untried
61686fi
61687if test -n "$LUA_LIBS"; then
61688    pkg_cv_LUA_LIBS="$LUA_LIBS"
61689 elif test -n "$PKG_CONFIG"; then
61690    if test -n "$PKG_CONFIG" && \
61691    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
61692  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
61693  ac_status=$?
61694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61695  test $ac_status = 0; }; then
61696  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
61697		      test "x$?" != "x0" && pkg_failed=yes
61698else
61699  pkg_failed=yes
61700fi
61701 else
61702    pkg_failed=untried
61703fi
61704
61705
61706
61707if test $pkg_failed = yes; then
61708   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61709$as_echo "no" >&6; }
61710
61711if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61712        _pkg_short_errors_supported=yes
61713else
61714        _pkg_short_errors_supported=no
61715fi
61716        if test $_pkg_short_errors_supported = yes; then
61717	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
61718        else
61719	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
61720        fi
61721	# Put the nasty error message in config.log where it belongs
61722	echo "$LUA_PKG_ERRORS" >&5
61723
61724
61725
61726pkg_failed=no
61727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
61728$as_echo_n "checking for LUA... " >&6; }
61729
61730if test -n "$LUA_CFLAGS"; then
61731    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
61732 elif test -n "$PKG_CONFIG"; then
61733    if test -n "$PKG_CONFIG" && \
61734    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
61735  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
61736  ac_status=$?
61737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61738  test $ac_status = 0; }; then
61739  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
61740		      test "x$?" != "x0" && pkg_failed=yes
61741else
61742  pkg_failed=yes
61743fi
61744 else
61745    pkg_failed=untried
61746fi
61747if test -n "$LUA_LIBS"; then
61748    pkg_cv_LUA_LIBS="$LUA_LIBS"
61749 elif test -n "$PKG_CONFIG"; then
61750    if test -n "$PKG_CONFIG" && \
61751    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
61752  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
61753  ac_status=$?
61754  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61755  test $ac_status = 0; }; then
61756  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
61757		      test "x$?" != "x0" && pkg_failed=yes
61758else
61759  pkg_failed=yes
61760fi
61761 else
61762    pkg_failed=untried
61763fi
61764
61765
61766
61767if test $pkg_failed = yes; then
61768   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61769$as_echo "no" >&6; }
61770
61771if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61772        _pkg_short_errors_supported=yes
61773else
61774        _pkg_short_errors_supported=no
61775fi
61776        if test $_pkg_short_errors_supported = yes; then
61777	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
61778        else
61779	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
61780        fi
61781	# Put the nasty error message in config.log where it belongs
61782	echo "$LUA_PKG_ERRORS" >&5
61783
61784
61785
61786pkg_failed=no
61787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
61788$as_echo_n "checking for LUA... " >&6; }
61789
61790if test -n "$LUA_CFLAGS"; then
61791    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
61792 elif test -n "$PKG_CONFIG"; then
61793    if test -n "$PKG_CONFIG" && \
61794    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
61795  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
61796  ac_status=$?
61797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61798  test $ac_status = 0; }; then
61799  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
61800		      test "x$?" != "x0" && pkg_failed=yes
61801else
61802  pkg_failed=yes
61803fi
61804 else
61805    pkg_failed=untried
61806fi
61807if test -n "$LUA_LIBS"; then
61808    pkg_cv_LUA_LIBS="$LUA_LIBS"
61809 elif test -n "$PKG_CONFIG"; then
61810    if test -n "$PKG_CONFIG" && \
61811    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
61812  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
61813  ac_status=$?
61814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61815  test $ac_status = 0; }; then
61816  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
61817		      test "x$?" != "x0" && pkg_failed=yes
61818else
61819  pkg_failed=yes
61820fi
61821 else
61822    pkg_failed=untried
61823fi
61824
61825
61826
61827if test $pkg_failed = yes; then
61828   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61829$as_echo "no" >&6; }
61830
61831if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61832        _pkg_short_errors_supported=yes
61833else
61834        _pkg_short_errors_supported=no
61835fi
61836        if test $_pkg_short_errors_supported = yes; then
61837	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
61838        else
61839	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
61840        fi
61841	# Put the nasty error message in config.log where it belongs
61842	echo "$LUA_PKG_ERRORS" >&5
61843
61844	with_liblua="no (pkg-config cannot find liblua)"
61845
61846elif test $pkg_failed = untried; then
61847     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61848$as_echo "no" >&6; }
61849	with_liblua="no (pkg-config cannot find liblua)"
61850
61851else
61852	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
61853	LUA_LIBS=$pkg_cv_LUA_LIBS
61854        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61855$as_echo "yes" >&6; }
61856	with_liblua="yes"
61857fi
61858
61859
61860elif test $pkg_failed = untried; then
61861     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61862$as_echo "no" >&6; }
61863
61864
61865pkg_failed=no
61866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
61867$as_echo_n "checking for LUA... " >&6; }
61868
61869if test -n "$LUA_CFLAGS"; then
61870    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
61871 elif test -n "$PKG_CONFIG"; then
61872    if test -n "$PKG_CONFIG" && \
61873    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
61874  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
61875  ac_status=$?
61876  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61877  test $ac_status = 0; }; then
61878  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
61879		      test "x$?" != "x0" && pkg_failed=yes
61880else
61881  pkg_failed=yes
61882fi
61883 else
61884    pkg_failed=untried
61885fi
61886if test -n "$LUA_LIBS"; then
61887    pkg_cv_LUA_LIBS="$LUA_LIBS"
61888 elif test -n "$PKG_CONFIG"; then
61889    if test -n "$PKG_CONFIG" && \
61890    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
61891  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
61892  ac_status=$?
61893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61894  test $ac_status = 0; }; then
61895  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
61896		      test "x$?" != "x0" && pkg_failed=yes
61897else
61898  pkg_failed=yes
61899fi
61900 else
61901    pkg_failed=untried
61902fi
61903
61904
61905
61906if test $pkg_failed = yes; then
61907   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61908$as_echo "no" >&6; }
61909
61910if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61911        _pkg_short_errors_supported=yes
61912else
61913        _pkg_short_errors_supported=no
61914fi
61915        if test $_pkg_short_errors_supported = yes; then
61916	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
61917        else
61918	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
61919        fi
61920	# Put the nasty error message in config.log where it belongs
61921	echo "$LUA_PKG_ERRORS" >&5
61922
61923	with_liblua="no (pkg-config cannot find liblua)"
61924
61925elif test $pkg_failed = untried; then
61926     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61927$as_echo "no" >&6; }
61928	with_liblua="no (pkg-config cannot find liblua)"
61929
61930else
61931	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
61932	LUA_LIBS=$pkg_cv_LUA_LIBS
61933        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61934$as_echo "yes" >&6; }
61935	with_liblua="yes"
61936fi
61937
61938
61939else
61940	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
61941	LUA_LIBS=$pkg_cv_LUA_LIBS
61942        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61943$as_echo "yes" >&6; }
61944	with_liblua="yes"
61945fi
61946
61947
61948elif test $pkg_failed = untried; then
61949     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61950$as_echo "no" >&6; }
61951
61952
61953pkg_failed=no
61954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
61955$as_echo_n "checking for LUA... " >&6; }
61956
61957if test -n "$LUA_CFLAGS"; then
61958    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
61959 elif test -n "$PKG_CONFIG"; then
61960    if test -n "$PKG_CONFIG" && \
61961    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
61962  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
61963  ac_status=$?
61964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61965  test $ac_status = 0; }; then
61966  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
61967		      test "x$?" != "x0" && pkg_failed=yes
61968else
61969  pkg_failed=yes
61970fi
61971 else
61972    pkg_failed=untried
61973fi
61974if test -n "$LUA_LIBS"; then
61975    pkg_cv_LUA_LIBS="$LUA_LIBS"
61976 elif test -n "$PKG_CONFIG"; then
61977    if test -n "$PKG_CONFIG" && \
61978    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
61979  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
61980  ac_status=$?
61981  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61982  test $ac_status = 0; }; then
61983  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
61984		      test "x$?" != "x0" && pkg_failed=yes
61985else
61986  pkg_failed=yes
61987fi
61988 else
61989    pkg_failed=untried
61990fi
61991
61992
61993
61994if test $pkg_failed = yes; then
61995   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61996$as_echo "no" >&6; }
61997
61998if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61999        _pkg_short_errors_supported=yes
62000else
62001        _pkg_short_errors_supported=no
62002fi
62003        if test $_pkg_short_errors_supported = yes; then
62004	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
62005        else
62006	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
62007        fi
62008	# Put the nasty error message in config.log where it belongs
62009	echo "$LUA_PKG_ERRORS" >&5
62010
62011
62012
62013pkg_failed=no
62014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
62015$as_echo_n "checking for LUA... " >&6; }
62016
62017if test -n "$LUA_CFLAGS"; then
62018    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
62019 elif test -n "$PKG_CONFIG"; then
62020    if test -n "$PKG_CONFIG" && \
62021    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
62022  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
62023  ac_status=$?
62024  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62025  test $ac_status = 0; }; then
62026  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
62027		      test "x$?" != "x0" && pkg_failed=yes
62028else
62029  pkg_failed=yes
62030fi
62031 else
62032    pkg_failed=untried
62033fi
62034if test -n "$LUA_LIBS"; then
62035    pkg_cv_LUA_LIBS="$LUA_LIBS"
62036 elif test -n "$PKG_CONFIG"; then
62037    if test -n "$PKG_CONFIG" && \
62038    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
62039  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
62040  ac_status=$?
62041  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62042  test $ac_status = 0; }; then
62043  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
62044		      test "x$?" != "x0" && pkg_failed=yes
62045else
62046  pkg_failed=yes
62047fi
62048 else
62049    pkg_failed=untried
62050fi
62051
62052
62053
62054if test $pkg_failed = yes; then
62055   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62056$as_echo "no" >&6; }
62057
62058if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62059        _pkg_short_errors_supported=yes
62060else
62061        _pkg_short_errors_supported=no
62062fi
62063        if test $_pkg_short_errors_supported = yes; then
62064	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
62065        else
62066	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
62067        fi
62068	# Put the nasty error message in config.log where it belongs
62069	echo "$LUA_PKG_ERRORS" >&5
62070
62071	with_liblua="no (pkg-config cannot find liblua)"
62072
62073elif test $pkg_failed = untried; then
62074     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62075$as_echo "no" >&6; }
62076	with_liblua="no (pkg-config cannot find liblua)"
62077
62078else
62079	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
62080	LUA_LIBS=$pkg_cv_LUA_LIBS
62081        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62082$as_echo "yes" >&6; }
62083	with_liblua="yes"
62084fi
62085
62086
62087elif test $pkg_failed = untried; then
62088     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62089$as_echo "no" >&6; }
62090
62091
62092pkg_failed=no
62093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
62094$as_echo_n "checking for LUA... " >&6; }
62095
62096if test -n "$LUA_CFLAGS"; then
62097    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
62098 elif test -n "$PKG_CONFIG"; then
62099    if test -n "$PKG_CONFIG" && \
62100    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
62101  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
62102  ac_status=$?
62103  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62104  test $ac_status = 0; }; then
62105  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
62106		      test "x$?" != "x0" && pkg_failed=yes
62107else
62108  pkg_failed=yes
62109fi
62110 else
62111    pkg_failed=untried
62112fi
62113if test -n "$LUA_LIBS"; then
62114    pkg_cv_LUA_LIBS="$LUA_LIBS"
62115 elif test -n "$PKG_CONFIG"; then
62116    if test -n "$PKG_CONFIG" && \
62117    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
62118  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
62119  ac_status=$?
62120  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62121  test $ac_status = 0; }; then
62122  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
62123		      test "x$?" != "x0" && pkg_failed=yes
62124else
62125  pkg_failed=yes
62126fi
62127 else
62128    pkg_failed=untried
62129fi
62130
62131
62132
62133if test $pkg_failed = yes; then
62134   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62135$as_echo "no" >&6; }
62136
62137if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62138        _pkg_short_errors_supported=yes
62139else
62140        _pkg_short_errors_supported=no
62141fi
62142        if test $_pkg_short_errors_supported = yes; then
62143	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
62144        else
62145	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
62146        fi
62147	# Put the nasty error message in config.log where it belongs
62148	echo "$LUA_PKG_ERRORS" >&5
62149
62150	with_liblua="no (pkg-config cannot find liblua)"
62151
62152elif test $pkg_failed = untried; then
62153     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62154$as_echo "no" >&6; }
62155	with_liblua="no (pkg-config cannot find liblua)"
62156
62157else
62158	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
62159	LUA_LIBS=$pkg_cv_LUA_LIBS
62160        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62161$as_echo "yes" >&6; }
62162	with_liblua="yes"
62163fi
62164
62165
62166else
62167	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
62168	LUA_LIBS=$pkg_cv_LUA_LIBS
62169        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62170$as_echo "yes" >&6; }
62171	with_liblua="yes"
62172fi
62173
62174
62175else
62176	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
62177	LUA_LIBS=$pkg_cv_LUA_LIBS
62178        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62179$as_echo "yes" >&6; }
62180	with_liblua="yes"
62181fi
62182
62183
62184elif test $pkg_failed = untried; then
62185     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62186$as_echo "no" >&6; }
62187
62188
62189pkg_failed=no
62190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
62191$as_echo_n "checking for LUA... " >&6; }
62192
62193if test -n "$LUA_CFLAGS"; then
62194    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
62195 elif test -n "$PKG_CONFIG"; then
62196    if test -n "$PKG_CONFIG" && \
62197    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
62198  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
62199  ac_status=$?
62200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62201  test $ac_status = 0; }; then
62202  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
62203		      test "x$?" != "x0" && pkg_failed=yes
62204else
62205  pkg_failed=yes
62206fi
62207 else
62208    pkg_failed=untried
62209fi
62210if test -n "$LUA_LIBS"; then
62211    pkg_cv_LUA_LIBS="$LUA_LIBS"
62212 elif test -n "$PKG_CONFIG"; then
62213    if test -n "$PKG_CONFIG" && \
62214    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
62215  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
62216  ac_status=$?
62217  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62218  test $ac_status = 0; }; then
62219  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
62220		      test "x$?" != "x0" && pkg_failed=yes
62221else
62222  pkg_failed=yes
62223fi
62224 else
62225    pkg_failed=untried
62226fi
62227
62228
62229
62230if test $pkg_failed = yes; then
62231   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62232$as_echo "no" >&6; }
62233
62234if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62235        _pkg_short_errors_supported=yes
62236else
62237        _pkg_short_errors_supported=no
62238fi
62239        if test $_pkg_short_errors_supported = yes; then
62240	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
62241        else
62242	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
62243        fi
62244	# Put the nasty error message in config.log where it belongs
62245	echo "$LUA_PKG_ERRORS" >&5
62246
62247
62248
62249pkg_failed=no
62250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
62251$as_echo_n "checking for LUA... " >&6; }
62252
62253if test -n "$LUA_CFLAGS"; then
62254    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
62255 elif test -n "$PKG_CONFIG"; then
62256    if test -n "$PKG_CONFIG" && \
62257    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
62258  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
62259  ac_status=$?
62260  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62261  test $ac_status = 0; }; then
62262  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
62263		      test "x$?" != "x0" && pkg_failed=yes
62264else
62265  pkg_failed=yes
62266fi
62267 else
62268    pkg_failed=untried
62269fi
62270if test -n "$LUA_LIBS"; then
62271    pkg_cv_LUA_LIBS="$LUA_LIBS"
62272 elif test -n "$PKG_CONFIG"; then
62273    if test -n "$PKG_CONFIG" && \
62274    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
62275  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
62276  ac_status=$?
62277  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62278  test $ac_status = 0; }; then
62279  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
62280		      test "x$?" != "x0" && pkg_failed=yes
62281else
62282  pkg_failed=yes
62283fi
62284 else
62285    pkg_failed=untried
62286fi
62287
62288
62289
62290if test $pkg_failed = yes; then
62291   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62292$as_echo "no" >&6; }
62293
62294if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62295        _pkg_short_errors_supported=yes
62296else
62297        _pkg_short_errors_supported=no
62298fi
62299        if test $_pkg_short_errors_supported = yes; then
62300	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
62301        else
62302	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
62303        fi
62304	# Put the nasty error message in config.log where it belongs
62305	echo "$LUA_PKG_ERRORS" >&5
62306
62307
62308
62309pkg_failed=no
62310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
62311$as_echo_n "checking for LUA... " >&6; }
62312
62313if test -n "$LUA_CFLAGS"; then
62314    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
62315 elif test -n "$PKG_CONFIG"; then
62316    if test -n "$PKG_CONFIG" && \
62317    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
62318  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
62319  ac_status=$?
62320  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62321  test $ac_status = 0; }; then
62322  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
62323		      test "x$?" != "x0" && pkg_failed=yes
62324else
62325  pkg_failed=yes
62326fi
62327 else
62328    pkg_failed=untried
62329fi
62330if test -n "$LUA_LIBS"; then
62331    pkg_cv_LUA_LIBS="$LUA_LIBS"
62332 elif test -n "$PKG_CONFIG"; then
62333    if test -n "$PKG_CONFIG" && \
62334    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
62335  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
62336  ac_status=$?
62337  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62338  test $ac_status = 0; }; then
62339  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
62340		      test "x$?" != "x0" && pkg_failed=yes
62341else
62342  pkg_failed=yes
62343fi
62344 else
62345    pkg_failed=untried
62346fi
62347
62348
62349
62350if test $pkg_failed = yes; then
62351   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62352$as_echo "no" >&6; }
62353
62354if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62355        _pkg_short_errors_supported=yes
62356else
62357        _pkg_short_errors_supported=no
62358fi
62359        if test $_pkg_short_errors_supported = yes; then
62360	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
62361        else
62362	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
62363        fi
62364	# Put the nasty error message in config.log where it belongs
62365	echo "$LUA_PKG_ERRORS" >&5
62366
62367	with_liblua="no (pkg-config cannot find liblua)"
62368
62369elif test $pkg_failed = untried; then
62370     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62371$as_echo "no" >&6; }
62372	with_liblua="no (pkg-config cannot find liblua)"
62373
62374else
62375	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
62376	LUA_LIBS=$pkg_cv_LUA_LIBS
62377        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62378$as_echo "yes" >&6; }
62379	with_liblua="yes"
62380fi
62381
62382
62383elif test $pkg_failed = untried; then
62384     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62385$as_echo "no" >&6; }
62386
62387
62388pkg_failed=no
62389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
62390$as_echo_n "checking for LUA... " >&6; }
62391
62392if test -n "$LUA_CFLAGS"; then
62393    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
62394 elif test -n "$PKG_CONFIG"; then
62395    if test -n "$PKG_CONFIG" && \
62396    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
62397  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
62398  ac_status=$?
62399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62400  test $ac_status = 0; }; then
62401  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
62402		      test "x$?" != "x0" && pkg_failed=yes
62403else
62404  pkg_failed=yes
62405fi
62406 else
62407    pkg_failed=untried
62408fi
62409if test -n "$LUA_LIBS"; then
62410    pkg_cv_LUA_LIBS="$LUA_LIBS"
62411 elif test -n "$PKG_CONFIG"; then
62412    if test -n "$PKG_CONFIG" && \
62413    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
62414  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
62415  ac_status=$?
62416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62417  test $ac_status = 0; }; then
62418  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
62419		      test "x$?" != "x0" && pkg_failed=yes
62420else
62421  pkg_failed=yes
62422fi
62423 else
62424    pkg_failed=untried
62425fi
62426
62427
62428
62429if test $pkg_failed = yes; then
62430   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62431$as_echo "no" >&6; }
62432
62433if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62434        _pkg_short_errors_supported=yes
62435else
62436        _pkg_short_errors_supported=no
62437fi
62438        if test $_pkg_short_errors_supported = yes; then
62439	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
62440        else
62441	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
62442        fi
62443	# Put the nasty error message in config.log where it belongs
62444	echo "$LUA_PKG_ERRORS" >&5
62445
62446	with_liblua="no (pkg-config cannot find liblua)"
62447
62448elif test $pkg_failed = untried; then
62449     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62450$as_echo "no" >&6; }
62451	with_liblua="no (pkg-config cannot find liblua)"
62452
62453else
62454	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
62455	LUA_LIBS=$pkg_cv_LUA_LIBS
62456        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62457$as_echo "yes" >&6; }
62458	with_liblua="yes"
62459fi
62460
62461
62462else
62463	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
62464	LUA_LIBS=$pkg_cv_LUA_LIBS
62465        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62466$as_echo "yes" >&6; }
62467	with_liblua="yes"
62468fi
62469
62470
62471elif test $pkg_failed = untried; then
62472     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62473$as_echo "no" >&6; }
62474
62475
62476pkg_failed=no
62477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
62478$as_echo_n "checking for LUA... " >&6; }
62479
62480if test -n "$LUA_CFLAGS"; then
62481    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
62482 elif test -n "$PKG_CONFIG"; then
62483    if test -n "$PKG_CONFIG" && \
62484    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
62485  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
62486  ac_status=$?
62487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62488  test $ac_status = 0; }; then
62489  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
62490		      test "x$?" != "x0" && pkg_failed=yes
62491else
62492  pkg_failed=yes
62493fi
62494 else
62495    pkg_failed=untried
62496fi
62497if test -n "$LUA_LIBS"; then
62498    pkg_cv_LUA_LIBS="$LUA_LIBS"
62499 elif test -n "$PKG_CONFIG"; then
62500    if test -n "$PKG_CONFIG" && \
62501    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
62502  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
62503  ac_status=$?
62504  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62505  test $ac_status = 0; }; then
62506  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
62507		      test "x$?" != "x0" && pkg_failed=yes
62508else
62509  pkg_failed=yes
62510fi
62511 else
62512    pkg_failed=untried
62513fi
62514
62515
62516
62517if test $pkg_failed = yes; then
62518   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62519$as_echo "no" >&6; }
62520
62521if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62522        _pkg_short_errors_supported=yes
62523else
62524        _pkg_short_errors_supported=no
62525fi
62526        if test $_pkg_short_errors_supported = yes; then
62527	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
62528        else
62529	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
62530        fi
62531	# Put the nasty error message in config.log where it belongs
62532	echo "$LUA_PKG_ERRORS" >&5
62533
62534
62535
62536pkg_failed=no
62537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
62538$as_echo_n "checking for LUA... " >&6; }
62539
62540if test -n "$LUA_CFLAGS"; then
62541    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
62542 elif test -n "$PKG_CONFIG"; then
62543    if test -n "$PKG_CONFIG" && \
62544    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
62545  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
62546  ac_status=$?
62547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62548  test $ac_status = 0; }; then
62549  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
62550		      test "x$?" != "x0" && pkg_failed=yes
62551else
62552  pkg_failed=yes
62553fi
62554 else
62555    pkg_failed=untried
62556fi
62557if test -n "$LUA_LIBS"; then
62558    pkg_cv_LUA_LIBS="$LUA_LIBS"
62559 elif test -n "$PKG_CONFIG"; then
62560    if test -n "$PKG_CONFIG" && \
62561    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
62562  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
62563  ac_status=$?
62564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62565  test $ac_status = 0; }; then
62566  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
62567		      test "x$?" != "x0" && pkg_failed=yes
62568else
62569  pkg_failed=yes
62570fi
62571 else
62572    pkg_failed=untried
62573fi
62574
62575
62576
62577if test $pkg_failed = yes; then
62578   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62579$as_echo "no" >&6; }
62580
62581if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62582        _pkg_short_errors_supported=yes
62583else
62584        _pkg_short_errors_supported=no
62585fi
62586        if test $_pkg_short_errors_supported = yes; then
62587	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
62588        else
62589	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
62590        fi
62591	# Put the nasty error message in config.log where it belongs
62592	echo "$LUA_PKG_ERRORS" >&5
62593
62594	with_liblua="no (pkg-config cannot find liblua)"
62595
62596elif test $pkg_failed = untried; then
62597     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62598$as_echo "no" >&6; }
62599	with_liblua="no (pkg-config cannot find liblua)"
62600
62601else
62602	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
62603	LUA_LIBS=$pkg_cv_LUA_LIBS
62604        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62605$as_echo "yes" >&6; }
62606	with_liblua="yes"
62607fi
62608
62609
62610elif test $pkg_failed = untried; then
62611     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62612$as_echo "no" >&6; }
62613
62614
62615pkg_failed=no
62616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
62617$as_echo_n "checking for LUA... " >&6; }
62618
62619if test -n "$LUA_CFLAGS"; then
62620    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
62621 elif test -n "$PKG_CONFIG"; then
62622    if test -n "$PKG_CONFIG" && \
62623    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
62624  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
62625  ac_status=$?
62626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62627  test $ac_status = 0; }; then
62628  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
62629		      test "x$?" != "x0" && pkg_failed=yes
62630else
62631  pkg_failed=yes
62632fi
62633 else
62634    pkg_failed=untried
62635fi
62636if test -n "$LUA_LIBS"; then
62637    pkg_cv_LUA_LIBS="$LUA_LIBS"
62638 elif test -n "$PKG_CONFIG"; then
62639    if test -n "$PKG_CONFIG" && \
62640    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
62641  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
62642  ac_status=$?
62643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62644  test $ac_status = 0; }; then
62645  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
62646		      test "x$?" != "x0" && pkg_failed=yes
62647else
62648  pkg_failed=yes
62649fi
62650 else
62651    pkg_failed=untried
62652fi
62653
62654
62655
62656if test $pkg_failed = yes; then
62657   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62658$as_echo "no" >&6; }
62659
62660if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62661        _pkg_short_errors_supported=yes
62662else
62663        _pkg_short_errors_supported=no
62664fi
62665        if test $_pkg_short_errors_supported = yes; then
62666	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
62667        else
62668	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
62669        fi
62670	# Put the nasty error message in config.log where it belongs
62671	echo "$LUA_PKG_ERRORS" >&5
62672
62673	with_liblua="no (pkg-config cannot find liblua)"
62674
62675elif test $pkg_failed = untried; then
62676     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62677$as_echo "no" >&6; }
62678	with_liblua="no (pkg-config cannot find liblua)"
62679
62680else
62681	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
62682	LUA_LIBS=$pkg_cv_LUA_LIBS
62683        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62684$as_echo "yes" >&6; }
62685	with_liblua="yes"
62686fi
62687
62688
62689else
62690	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
62691	LUA_LIBS=$pkg_cv_LUA_LIBS
62692        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62693$as_echo "yes" >&6; }
62694	with_liblua="yes"
62695fi
62696
62697
62698else
62699	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
62700	LUA_LIBS=$pkg_cv_LUA_LIBS
62701        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62702$as_echo "yes" >&6; }
62703	with_liblua="yes"
62704fi
62705
62706
62707else
62708	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
62709	LUA_LIBS=$pkg_cv_LUA_LIBS
62710        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62711$as_echo "yes" >&6; }
62712	with_liblua="yes"
62713fi
62714
62715
62716elif test $pkg_failed = untried; then
62717     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62718$as_echo "no" >&6; }
62719
62720
62721pkg_failed=no
62722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
62723$as_echo_n "checking for LUA... " >&6; }
62724
62725if test -n "$LUA_CFLAGS"; then
62726    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
62727 elif test -n "$PKG_CONFIG"; then
62728    if test -n "$PKG_CONFIG" && \
62729    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
62730  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
62731  ac_status=$?
62732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62733  test $ac_status = 0; }; then
62734  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
62735		      test "x$?" != "x0" && pkg_failed=yes
62736else
62737  pkg_failed=yes
62738fi
62739 else
62740    pkg_failed=untried
62741fi
62742if test -n "$LUA_LIBS"; then
62743    pkg_cv_LUA_LIBS="$LUA_LIBS"
62744 elif test -n "$PKG_CONFIG"; then
62745    if test -n "$PKG_CONFIG" && \
62746    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
62747  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
62748  ac_status=$?
62749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62750  test $ac_status = 0; }; then
62751  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
62752		      test "x$?" != "x0" && pkg_failed=yes
62753else
62754  pkg_failed=yes
62755fi
62756 else
62757    pkg_failed=untried
62758fi
62759
62760
62761
62762if test $pkg_failed = yes; then
62763   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62764$as_echo "no" >&6; }
62765
62766if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62767        _pkg_short_errors_supported=yes
62768else
62769        _pkg_short_errors_supported=no
62770fi
62771        if test $_pkg_short_errors_supported = yes; then
62772	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
62773        else
62774	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
62775        fi
62776	# Put the nasty error message in config.log where it belongs
62777	echo "$LUA_PKG_ERRORS" >&5
62778
62779
62780
62781pkg_failed=no
62782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
62783$as_echo_n "checking for LUA... " >&6; }
62784
62785if test -n "$LUA_CFLAGS"; then
62786    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
62787 elif test -n "$PKG_CONFIG"; then
62788    if test -n "$PKG_CONFIG" && \
62789    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
62790  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
62791  ac_status=$?
62792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62793  test $ac_status = 0; }; then
62794  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
62795		      test "x$?" != "x0" && pkg_failed=yes
62796else
62797  pkg_failed=yes
62798fi
62799 else
62800    pkg_failed=untried
62801fi
62802if test -n "$LUA_LIBS"; then
62803    pkg_cv_LUA_LIBS="$LUA_LIBS"
62804 elif test -n "$PKG_CONFIG"; then
62805    if test -n "$PKG_CONFIG" && \
62806    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
62807  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
62808  ac_status=$?
62809  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62810  test $ac_status = 0; }; then
62811  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
62812		      test "x$?" != "x0" && pkg_failed=yes
62813else
62814  pkg_failed=yes
62815fi
62816 else
62817    pkg_failed=untried
62818fi
62819
62820
62821
62822if test $pkg_failed = yes; then
62823   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62824$as_echo "no" >&6; }
62825
62826if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62827        _pkg_short_errors_supported=yes
62828else
62829        _pkg_short_errors_supported=no
62830fi
62831        if test $_pkg_short_errors_supported = yes; then
62832	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
62833        else
62834	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
62835        fi
62836	# Put the nasty error message in config.log where it belongs
62837	echo "$LUA_PKG_ERRORS" >&5
62838
62839
62840
62841pkg_failed=no
62842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
62843$as_echo_n "checking for LUA... " >&6; }
62844
62845if test -n "$LUA_CFLAGS"; then
62846    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
62847 elif test -n "$PKG_CONFIG"; then
62848    if test -n "$PKG_CONFIG" && \
62849    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
62850  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
62851  ac_status=$?
62852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62853  test $ac_status = 0; }; then
62854  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
62855		      test "x$?" != "x0" && pkg_failed=yes
62856else
62857  pkg_failed=yes
62858fi
62859 else
62860    pkg_failed=untried
62861fi
62862if test -n "$LUA_LIBS"; then
62863    pkg_cv_LUA_LIBS="$LUA_LIBS"
62864 elif test -n "$PKG_CONFIG"; then
62865    if test -n "$PKG_CONFIG" && \
62866    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
62867  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
62868  ac_status=$?
62869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62870  test $ac_status = 0; }; then
62871  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
62872		      test "x$?" != "x0" && pkg_failed=yes
62873else
62874  pkg_failed=yes
62875fi
62876 else
62877    pkg_failed=untried
62878fi
62879
62880
62881
62882if test $pkg_failed = yes; then
62883   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62884$as_echo "no" >&6; }
62885
62886if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62887        _pkg_short_errors_supported=yes
62888else
62889        _pkg_short_errors_supported=no
62890fi
62891        if test $_pkg_short_errors_supported = yes; then
62892	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
62893        else
62894	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
62895        fi
62896	# Put the nasty error message in config.log where it belongs
62897	echo "$LUA_PKG_ERRORS" >&5
62898
62899
62900
62901pkg_failed=no
62902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
62903$as_echo_n "checking for LUA... " >&6; }
62904
62905if test -n "$LUA_CFLAGS"; then
62906    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
62907 elif test -n "$PKG_CONFIG"; then
62908    if test -n "$PKG_CONFIG" && \
62909    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
62910  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
62911  ac_status=$?
62912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62913  test $ac_status = 0; }; then
62914  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
62915		      test "x$?" != "x0" && pkg_failed=yes
62916else
62917  pkg_failed=yes
62918fi
62919 else
62920    pkg_failed=untried
62921fi
62922if test -n "$LUA_LIBS"; then
62923    pkg_cv_LUA_LIBS="$LUA_LIBS"
62924 elif test -n "$PKG_CONFIG"; then
62925    if test -n "$PKG_CONFIG" && \
62926    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
62927  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
62928  ac_status=$?
62929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62930  test $ac_status = 0; }; then
62931  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
62932		      test "x$?" != "x0" && pkg_failed=yes
62933else
62934  pkg_failed=yes
62935fi
62936 else
62937    pkg_failed=untried
62938fi
62939
62940
62941
62942if test $pkg_failed = yes; then
62943   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62944$as_echo "no" >&6; }
62945
62946if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62947        _pkg_short_errors_supported=yes
62948else
62949        _pkg_short_errors_supported=no
62950fi
62951        if test $_pkg_short_errors_supported = yes; then
62952	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
62953        else
62954	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
62955        fi
62956	# Put the nasty error message in config.log where it belongs
62957	echo "$LUA_PKG_ERRORS" >&5
62958
62959	with_liblua="no (pkg-config cannot find liblua)"
62960
62961elif test $pkg_failed = untried; then
62962     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62963$as_echo "no" >&6; }
62964	with_liblua="no (pkg-config cannot find liblua)"
62965
62966else
62967	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
62968	LUA_LIBS=$pkg_cv_LUA_LIBS
62969        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62970$as_echo "yes" >&6; }
62971	with_liblua="yes"
62972fi
62973
62974
62975elif test $pkg_failed = untried; then
62976     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62977$as_echo "no" >&6; }
62978
62979
62980pkg_failed=no
62981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
62982$as_echo_n "checking for LUA... " >&6; }
62983
62984if test -n "$LUA_CFLAGS"; then
62985    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
62986 elif test -n "$PKG_CONFIG"; then
62987    if test -n "$PKG_CONFIG" && \
62988    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
62989  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
62990  ac_status=$?
62991  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62992  test $ac_status = 0; }; then
62993  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
62994		      test "x$?" != "x0" && pkg_failed=yes
62995else
62996  pkg_failed=yes
62997fi
62998 else
62999    pkg_failed=untried
63000fi
63001if test -n "$LUA_LIBS"; then
63002    pkg_cv_LUA_LIBS="$LUA_LIBS"
63003 elif test -n "$PKG_CONFIG"; then
63004    if test -n "$PKG_CONFIG" && \
63005    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
63006  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
63007  ac_status=$?
63008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63009  test $ac_status = 0; }; then
63010  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
63011		      test "x$?" != "x0" && pkg_failed=yes
63012else
63013  pkg_failed=yes
63014fi
63015 else
63016    pkg_failed=untried
63017fi
63018
63019
63020
63021if test $pkg_failed = yes; then
63022   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63023$as_echo "no" >&6; }
63024
63025if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63026        _pkg_short_errors_supported=yes
63027else
63028        _pkg_short_errors_supported=no
63029fi
63030        if test $_pkg_short_errors_supported = yes; then
63031	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
63032        else
63033	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
63034        fi
63035	# Put the nasty error message in config.log where it belongs
63036	echo "$LUA_PKG_ERRORS" >&5
63037
63038	with_liblua="no (pkg-config cannot find liblua)"
63039
63040elif test $pkg_failed = untried; then
63041     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63042$as_echo "no" >&6; }
63043	with_liblua="no (pkg-config cannot find liblua)"
63044
63045else
63046	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
63047	LUA_LIBS=$pkg_cv_LUA_LIBS
63048        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63049$as_echo "yes" >&6; }
63050	with_liblua="yes"
63051fi
63052
63053
63054else
63055	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
63056	LUA_LIBS=$pkg_cv_LUA_LIBS
63057        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63058$as_echo "yes" >&6; }
63059	with_liblua="yes"
63060fi
63061
63062
63063elif test $pkg_failed = untried; then
63064     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63065$as_echo "no" >&6; }
63066
63067
63068pkg_failed=no
63069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
63070$as_echo_n "checking for LUA... " >&6; }
63071
63072if test -n "$LUA_CFLAGS"; then
63073    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
63074 elif test -n "$PKG_CONFIG"; then
63075    if test -n "$PKG_CONFIG" && \
63076    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
63077  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
63078  ac_status=$?
63079  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63080  test $ac_status = 0; }; then
63081  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
63082		      test "x$?" != "x0" && pkg_failed=yes
63083else
63084  pkg_failed=yes
63085fi
63086 else
63087    pkg_failed=untried
63088fi
63089if test -n "$LUA_LIBS"; then
63090    pkg_cv_LUA_LIBS="$LUA_LIBS"
63091 elif test -n "$PKG_CONFIG"; then
63092    if test -n "$PKG_CONFIG" && \
63093    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
63094  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
63095  ac_status=$?
63096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63097  test $ac_status = 0; }; then
63098  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
63099		      test "x$?" != "x0" && pkg_failed=yes
63100else
63101  pkg_failed=yes
63102fi
63103 else
63104    pkg_failed=untried
63105fi
63106
63107
63108
63109if test $pkg_failed = yes; then
63110   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63111$as_echo "no" >&6; }
63112
63113if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63114        _pkg_short_errors_supported=yes
63115else
63116        _pkg_short_errors_supported=no
63117fi
63118        if test $_pkg_short_errors_supported = yes; then
63119	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
63120        else
63121	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
63122        fi
63123	# Put the nasty error message in config.log where it belongs
63124	echo "$LUA_PKG_ERRORS" >&5
63125
63126
63127
63128pkg_failed=no
63129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
63130$as_echo_n "checking for LUA... " >&6; }
63131
63132if test -n "$LUA_CFLAGS"; then
63133    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
63134 elif test -n "$PKG_CONFIG"; then
63135    if test -n "$PKG_CONFIG" && \
63136    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
63137  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
63138  ac_status=$?
63139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63140  test $ac_status = 0; }; then
63141  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
63142		      test "x$?" != "x0" && pkg_failed=yes
63143else
63144  pkg_failed=yes
63145fi
63146 else
63147    pkg_failed=untried
63148fi
63149if test -n "$LUA_LIBS"; then
63150    pkg_cv_LUA_LIBS="$LUA_LIBS"
63151 elif test -n "$PKG_CONFIG"; then
63152    if test -n "$PKG_CONFIG" && \
63153    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
63154  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
63155  ac_status=$?
63156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63157  test $ac_status = 0; }; then
63158  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
63159		      test "x$?" != "x0" && pkg_failed=yes
63160else
63161  pkg_failed=yes
63162fi
63163 else
63164    pkg_failed=untried
63165fi
63166
63167
63168
63169if test $pkg_failed = yes; then
63170   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63171$as_echo "no" >&6; }
63172
63173if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63174        _pkg_short_errors_supported=yes
63175else
63176        _pkg_short_errors_supported=no
63177fi
63178        if test $_pkg_short_errors_supported = yes; then
63179	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
63180        else
63181	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
63182        fi
63183	# Put the nasty error message in config.log where it belongs
63184	echo "$LUA_PKG_ERRORS" >&5
63185
63186	with_liblua="no (pkg-config cannot find liblua)"
63187
63188elif test $pkg_failed = untried; then
63189     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63190$as_echo "no" >&6; }
63191	with_liblua="no (pkg-config cannot find liblua)"
63192
63193else
63194	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
63195	LUA_LIBS=$pkg_cv_LUA_LIBS
63196        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63197$as_echo "yes" >&6; }
63198	with_liblua="yes"
63199fi
63200
63201
63202elif test $pkg_failed = untried; then
63203     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63204$as_echo "no" >&6; }
63205
63206
63207pkg_failed=no
63208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
63209$as_echo_n "checking for LUA... " >&6; }
63210
63211if test -n "$LUA_CFLAGS"; then
63212    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
63213 elif test -n "$PKG_CONFIG"; then
63214    if test -n "$PKG_CONFIG" && \
63215    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
63216  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
63217  ac_status=$?
63218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63219  test $ac_status = 0; }; then
63220  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
63221		      test "x$?" != "x0" && pkg_failed=yes
63222else
63223  pkg_failed=yes
63224fi
63225 else
63226    pkg_failed=untried
63227fi
63228if test -n "$LUA_LIBS"; then
63229    pkg_cv_LUA_LIBS="$LUA_LIBS"
63230 elif test -n "$PKG_CONFIG"; then
63231    if test -n "$PKG_CONFIG" && \
63232    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
63233  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
63234  ac_status=$?
63235  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63236  test $ac_status = 0; }; then
63237  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
63238		      test "x$?" != "x0" && pkg_failed=yes
63239else
63240  pkg_failed=yes
63241fi
63242 else
63243    pkg_failed=untried
63244fi
63245
63246
63247
63248if test $pkg_failed = yes; then
63249   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63250$as_echo "no" >&6; }
63251
63252if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63253        _pkg_short_errors_supported=yes
63254else
63255        _pkg_short_errors_supported=no
63256fi
63257        if test $_pkg_short_errors_supported = yes; then
63258	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
63259        else
63260	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
63261        fi
63262	# Put the nasty error message in config.log where it belongs
63263	echo "$LUA_PKG_ERRORS" >&5
63264
63265	with_liblua="no (pkg-config cannot find liblua)"
63266
63267elif test $pkg_failed = untried; then
63268     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63269$as_echo "no" >&6; }
63270	with_liblua="no (pkg-config cannot find liblua)"
63271
63272else
63273	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
63274	LUA_LIBS=$pkg_cv_LUA_LIBS
63275        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63276$as_echo "yes" >&6; }
63277	with_liblua="yes"
63278fi
63279
63280
63281else
63282	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
63283	LUA_LIBS=$pkg_cv_LUA_LIBS
63284        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63285$as_echo "yes" >&6; }
63286	with_liblua="yes"
63287fi
63288
63289
63290else
63291	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
63292	LUA_LIBS=$pkg_cv_LUA_LIBS
63293        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63294$as_echo "yes" >&6; }
63295	with_liblua="yes"
63296fi
63297
63298
63299elif test $pkg_failed = untried; then
63300     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63301$as_echo "no" >&6; }
63302
63303
63304pkg_failed=no
63305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
63306$as_echo_n "checking for LUA... " >&6; }
63307
63308if test -n "$LUA_CFLAGS"; then
63309    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
63310 elif test -n "$PKG_CONFIG"; then
63311    if test -n "$PKG_CONFIG" && \
63312    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
63313  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
63314  ac_status=$?
63315  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63316  test $ac_status = 0; }; then
63317  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
63318		      test "x$?" != "x0" && pkg_failed=yes
63319else
63320  pkg_failed=yes
63321fi
63322 else
63323    pkg_failed=untried
63324fi
63325if test -n "$LUA_LIBS"; then
63326    pkg_cv_LUA_LIBS="$LUA_LIBS"
63327 elif test -n "$PKG_CONFIG"; then
63328    if test -n "$PKG_CONFIG" && \
63329    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
63330  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
63331  ac_status=$?
63332  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63333  test $ac_status = 0; }; then
63334  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
63335		      test "x$?" != "x0" && pkg_failed=yes
63336else
63337  pkg_failed=yes
63338fi
63339 else
63340    pkg_failed=untried
63341fi
63342
63343
63344
63345if test $pkg_failed = yes; then
63346   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63347$as_echo "no" >&6; }
63348
63349if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63350        _pkg_short_errors_supported=yes
63351else
63352        _pkg_short_errors_supported=no
63353fi
63354        if test $_pkg_short_errors_supported = yes; then
63355	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
63356        else
63357	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
63358        fi
63359	# Put the nasty error message in config.log where it belongs
63360	echo "$LUA_PKG_ERRORS" >&5
63361
63362
63363
63364pkg_failed=no
63365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
63366$as_echo_n "checking for LUA... " >&6; }
63367
63368if test -n "$LUA_CFLAGS"; then
63369    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
63370 elif test -n "$PKG_CONFIG"; then
63371    if test -n "$PKG_CONFIG" && \
63372    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
63373  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
63374  ac_status=$?
63375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63376  test $ac_status = 0; }; then
63377  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
63378		      test "x$?" != "x0" && pkg_failed=yes
63379else
63380  pkg_failed=yes
63381fi
63382 else
63383    pkg_failed=untried
63384fi
63385if test -n "$LUA_LIBS"; then
63386    pkg_cv_LUA_LIBS="$LUA_LIBS"
63387 elif test -n "$PKG_CONFIG"; then
63388    if test -n "$PKG_CONFIG" && \
63389    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
63390  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
63391  ac_status=$?
63392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63393  test $ac_status = 0; }; then
63394  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
63395		      test "x$?" != "x0" && pkg_failed=yes
63396else
63397  pkg_failed=yes
63398fi
63399 else
63400    pkg_failed=untried
63401fi
63402
63403
63404
63405if test $pkg_failed = yes; then
63406   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63407$as_echo "no" >&6; }
63408
63409if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63410        _pkg_short_errors_supported=yes
63411else
63412        _pkg_short_errors_supported=no
63413fi
63414        if test $_pkg_short_errors_supported = yes; then
63415	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
63416        else
63417	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
63418        fi
63419	# Put the nasty error message in config.log where it belongs
63420	echo "$LUA_PKG_ERRORS" >&5
63421
63422
63423
63424pkg_failed=no
63425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
63426$as_echo_n "checking for LUA... " >&6; }
63427
63428if test -n "$LUA_CFLAGS"; then
63429    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
63430 elif test -n "$PKG_CONFIG"; then
63431    if test -n "$PKG_CONFIG" && \
63432    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
63433  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
63434  ac_status=$?
63435  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63436  test $ac_status = 0; }; then
63437  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
63438		      test "x$?" != "x0" && pkg_failed=yes
63439else
63440  pkg_failed=yes
63441fi
63442 else
63443    pkg_failed=untried
63444fi
63445if test -n "$LUA_LIBS"; then
63446    pkg_cv_LUA_LIBS="$LUA_LIBS"
63447 elif test -n "$PKG_CONFIG"; then
63448    if test -n "$PKG_CONFIG" && \
63449    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
63450  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
63451  ac_status=$?
63452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63453  test $ac_status = 0; }; then
63454  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
63455		      test "x$?" != "x0" && pkg_failed=yes
63456else
63457  pkg_failed=yes
63458fi
63459 else
63460    pkg_failed=untried
63461fi
63462
63463
63464
63465if test $pkg_failed = yes; then
63466   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63467$as_echo "no" >&6; }
63468
63469if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63470        _pkg_short_errors_supported=yes
63471else
63472        _pkg_short_errors_supported=no
63473fi
63474        if test $_pkg_short_errors_supported = yes; then
63475	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
63476        else
63477	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
63478        fi
63479	# Put the nasty error message in config.log where it belongs
63480	echo "$LUA_PKG_ERRORS" >&5
63481
63482	with_liblua="no (pkg-config cannot find liblua)"
63483
63484elif test $pkg_failed = untried; then
63485     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63486$as_echo "no" >&6; }
63487	with_liblua="no (pkg-config cannot find liblua)"
63488
63489else
63490	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
63491	LUA_LIBS=$pkg_cv_LUA_LIBS
63492        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63493$as_echo "yes" >&6; }
63494	with_liblua="yes"
63495fi
63496
63497
63498elif test $pkg_failed = untried; then
63499     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63500$as_echo "no" >&6; }
63501
63502
63503pkg_failed=no
63504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
63505$as_echo_n "checking for LUA... " >&6; }
63506
63507if test -n "$LUA_CFLAGS"; then
63508    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
63509 elif test -n "$PKG_CONFIG"; then
63510    if test -n "$PKG_CONFIG" && \
63511    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
63512  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
63513  ac_status=$?
63514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63515  test $ac_status = 0; }; then
63516  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
63517		      test "x$?" != "x0" && pkg_failed=yes
63518else
63519  pkg_failed=yes
63520fi
63521 else
63522    pkg_failed=untried
63523fi
63524if test -n "$LUA_LIBS"; then
63525    pkg_cv_LUA_LIBS="$LUA_LIBS"
63526 elif test -n "$PKG_CONFIG"; then
63527    if test -n "$PKG_CONFIG" && \
63528    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
63529  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
63530  ac_status=$?
63531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63532  test $ac_status = 0; }; then
63533  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
63534		      test "x$?" != "x0" && pkg_failed=yes
63535else
63536  pkg_failed=yes
63537fi
63538 else
63539    pkg_failed=untried
63540fi
63541
63542
63543
63544if test $pkg_failed = yes; then
63545   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63546$as_echo "no" >&6; }
63547
63548if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63549        _pkg_short_errors_supported=yes
63550else
63551        _pkg_short_errors_supported=no
63552fi
63553        if test $_pkg_short_errors_supported = yes; then
63554	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
63555        else
63556	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
63557        fi
63558	# Put the nasty error message in config.log where it belongs
63559	echo "$LUA_PKG_ERRORS" >&5
63560
63561	with_liblua="no (pkg-config cannot find liblua)"
63562
63563elif test $pkg_failed = untried; then
63564     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63565$as_echo "no" >&6; }
63566	with_liblua="no (pkg-config cannot find liblua)"
63567
63568else
63569	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
63570	LUA_LIBS=$pkg_cv_LUA_LIBS
63571        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63572$as_echo "yes" >&6; }
63573	with_liblua="yes"
63574fi
63575
63576
63577else
63578	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
63579	LUA_LIBS=$pkg_cv_LUA_LIBS
63580        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63581$as_echo "yes" >&6; }
63582	with_liblua="yes"
63583fi
63584
63585
63586elif test $pkg_failed = untried; then
63587     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63588$as_echo "no" >&6; }
63589
63590
63591pkg_failed=no
63592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
63593$as_echo_n "checking for LUA... " >&6; }
63594
63595if test -n "$LUA_CFLAGS"; then
63596    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
63597 elif test -n "$PKG_CONFIG"; then
63598    if test -n "$PKG_CONFIG" && \
63599    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
63600  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
63601  ac_status=$?
63602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63603  test $ac_status = 0; }; then
63604  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
63605		      test "x$?" != "x0" && pkg_failed=yes
63606else
63607  pkg_failed=yes
63608fi
63609 else
63610    pkg_failed=untried
63611fi
63612if test -n "$LUA_LIBS"; then
63613    pkg_cv_LUA_LIBS="$LUA_LIBS"
63614 elif test -n "$PKG_CONFIG"; then
63615    if test -n "$PKG_CONFIG" && \
63616    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
63617  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
63618  ac_status=$?
63619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63620  test $ac_status = 0; }; then
63621  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
63622		      test "x$?" != "x0" && pkg_failed=yes
63623else
63624  pkg_failed=yes
63625fi
63626 else
63627    pkg_failed=untried
63628fi
63629
63630
63631
63632if test $pkg_failed = yes; then
63633   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63634$as_echo "no" >&6; }
63635
63636if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63637        _pkg_short_errors_supported=yes
63638else
63639        _pkg_short_errors_supported=no
63640fi
63641        if test $_pkg_short_errors_supported = yes; then
63642	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
63643        else
63644	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
63645        fi
63646	# Put the nasty error message in config.log where it belongs
63647	echo "$LUA_PKG_ERRORS" >&5
63648
63649
63650
63651pkg_failed=no
63652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
63653$as_echo_n "checking for LUA... " >&6; }
63654
63655if test -n "$LUA_CFLAGS"; then
63656    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
63657 elif test -n "$PKG_CONFIG"; then
63658    if test -n "$PKG_CONFIG" && \
63659    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
63660  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
63661  ac_status=$?
63662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63663  test $ac_status = 0; }; then
63664  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
63665		      test "x$?" != "x0" && pkg_failed=yes
63666else
63667  pkg_failed=yes
63668fi
63669 else
63670    pkg_failed=untried
63671fi
63672if test -n "$LUA_LIBS"; then
63673    pkg_cv_LUA_LIBS="$LUA_LIBS"
63674 elif test -n "$PKG_CONFIG"; then
63675    if test -n "$PKG_CONFIG" && \
63676    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
63677  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
63678  ac_status=$?
63679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63680  test $ac_status = 0; }; then
63681  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
63682		      test "x$?" != "x0" && pkg_failed=yes
63683else
63684  pkg_failed=yes
63685fi
63686 else
63687    pkg_failed=untried
63688fi
63689
63690
63691
63692if test $pkg_failed = yes; then
63693   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63694$as_echo "no" >&6; }
63695
63696if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63697        _pkg_short_errors_supported=yes
63698else
63699        _pkg_short_errors_supported=no
63700fi
63701        if test $_pkg_short_errors_supported = yes; then
63702	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
63703        else
63704	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
63705        fi
63706	# Put the nasty error message in config.log where it belongs
63707	echo "$LUA_PKG_ERRORS" >&5
63708
63709	with_liblua="no (pkg-config cannot find liblua)"
63710
63711elif test $pkg_failed = untried; then
63712     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63713$as_echo "no" >&6; }
63714	with_liblua="no (pkg-config cannot find liblua)"
63715
63716else
63717	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
63718	LUA_LIBS=$pkg_cv_LUA_LIBS
63719        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63720$as_echo "yes" >&6; }
63721	with_liblua="yes"
63722fi
63723
63724
63725elif test $pkg_failed = untried; then
63726     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63727$as_echo "no" >&6; }
63728
63729
63730pkg_failed=no
63731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
63732$as_echo_n "checking for LUA... " >&6; }
63733
63734if test -n "$LUA_CFLAGS"; then
63735    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
63736 elif test -n "$PKG_CONFIG"; then
63737    if test -n "$PKG_CONFIG" && \
63738    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
63739  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
63740  ac_status=$?
63741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63742  test $ac_status = 0; }; then
63743  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
63744		      test "x$?" != "x0" && pkg_failed=yes
63745else
63746  pkg_failed=yes
63747fi
63748 else
63749    pkg_failed=untried
63750fi
63751if test -n "$LUA_LIBS"; then
63752    pkg_cv_LUA_LIBS="$LUA_LIBS"
63753 elif test -n "$PKG_CONFIG"; then
63754    if test -n "$PKG_CONFIG" && \
63755    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
63756  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
63757  ac_status=$?
63758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63759  test $ac_status = 0; }; then
63760  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
63761		      test "x$?" != "x0" && pkg_failed=yes
63762else
63763  pkg_failed=yes
63764fi
63765 else
63766    pkg_failed=untried
63767fi
63768
63769
63770
63771if test $pkg_failed = yes; then
63772   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63773$as_echo "no" >&6; }
63774
63775if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63776        _pkg_short_errors_supported=yes
63777else
63778        _pkg_short_errors_supported=no
63779fi
63780        if test $_pkg_short_errors_supported = yes; then
63781	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
63782        else
63783	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
63784        fi
63785	# Put the nasty error message in config.log where it belongs
63786	echo "$LUA_PKG_ERRORS" >&5
63787
63788	with_liblua="no (pkg-config cannot find liblua)"
63789
63790elif test $pkg_failed = untried; then
63791     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63792$as_echo "no" >&6; }
63793	with_liblua="no (pkg-config cannot find liblua)"
63794
63795else
63796	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
63797	LUA_LIBS=$pkg_cv_LUA_LIBS
63798        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63799$as_echo "yes" >&6; }
63800	with_liblua="yes"
63801fi
63802
63803
63804else
63805	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
63806	LUA_LIBS=$pkg_cv_LUA_LIBS
63807        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63808$as_echo "yes" >&6; }
63809	with_liblua="yes"
63810fi
63811
63812
63813else
63814	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
63815	LUA_LIBS=$pkg_cv_LUA_LIBS
63816        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63817$as_echo "yes" >&6; }
63818	with_liblua="yes"
63819fi
63820
63821
63822else
63823	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
63824	LUA_LIBS=$pkg_cv_LUA_LIBS
63825        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63826$as_echo "yes" >&6; }
63827	with_liblua="yes"
63828fi
63829
63830
63831else
63832	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
63833	LUA_LIBS=$pkg_cv_LUA_LIBS
63834        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63835$as_echo "yes" >&6; }
63836	with_liblua="yes"
63837fi
63838
63839
63840else
63841	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
63842	LUA_LIBS=$pkg_cv_LUA_LIBS
63843        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63844$as_echo "yes" >&6; }
63845	with_liblua="yes"
63846fi
63847
63848
63849else
63850	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
63851	LUA_LIBS=$pkg_cv_LUA_LIBS
63852        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63853$as_echo "yes" >&6; }
63854	with_liblua="yes"
63855fi
63856
63857
63858else
63859	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
63860	LUA_LIBS=$pkg_cv_LUA_LIBS
63861        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63862$as_echo "yes" >&6; }
63863	with_liblua="yes"
63864fi
63865
63866
63867else
63868	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
63869	LUA_LIBS=$pkg_cv_LUA_LIBS
63870        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63871$as_echo "yes" >&6; }
63872	with_liblua="yes"
63873fi
63874
63875
63876elif test $pkg_failed = untried; then
63877     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63878$as_echo "no" >&6; }
63879
63880
63881pkg_failed=no
63882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
63883$as_echo_n "checking for LUA... " >&6; }
63884
63885if test -n "$LUA_CFLAGS"; then
63886    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
63887 elif test -n "$PKG_CONFIG"; then
63888    if test -n "$PKG_CONFIG" && \
63889    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.3\""; } >&5
63890  ($PKG_CONFIG --exists --print-errors "lua-5.3") 2>&5
63891  ac_status=$?
63892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63893  test $ac_status = 0; }; then
63894  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.3" 2>/dev/null`
63895		      test "x$?" != "x0" && pkg_failed=yes
63896else
63897  pkg_failed=yes
63898fi
63899 else
63900    pkg_failed=untried
63901fi
63902if test -n "$LUA_LIBS"; then
63903    pkg_cv_LUA_LIBS="$LUA_LIBS"
63904 elif test -n "$PKG_CONFIG"; then
63905    if test -n "$PKG_CONFIG" && \
63906    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.3\""; } >&5
63907  ($PKG_CONFIG --exists --print-errors "lua-5.3") 2>&5
63908  ac_status=$?
63909  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63910  test $ac_status = 0; }; then
63911  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.3" 2>/dev/null`
63912		      test "x$?" != "x0" && pkg_failed=yes
63913else
63914  pkg_failed=yes
63915fi
63916 else
63917    pkg_failed=untried
63918fi
63919
63920
63921
63922if test $pkg_failed = yes; then
63923   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63924$as_echo "no" >&6; }
63925
63926if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63927        _pkg_short_errors_supported=yes
63928else
63929        _pkg_short_errors_supported=no
63930fi
63931        if test $_pkg_short_errors_supported = yes; then
63932	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.3" 2>&1`
63933        else
63934	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.3" 2>&1`
63935        fi
63936	# Put the nasty error message in config.log where it belongs
63937	echo "$LUA_PKG_ERRORS" >&5
63938
63939
63940
63941pkg_failed=no
63942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
63943$as_echo_n "checking for LUA... " >&6; }
63944
63945if test -n "$LUA_CFLAGS"; then
63946    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
63947 elif test -n "$PKG_CONFIG"; then
63948    if test -n "$PKG_CONFIG" && \
63949    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.3\""; } >&5
63950  ($PKG_CONFIG --exists --print-errors "lua5.3") 2>&5
63951  ac_status=$?
63952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63953  test $ac_status = 0; }; then
63954  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.3" 2>/dev/null`
63955		      test "x$?" != "x0" && pkg_failed=yes
63956else
63957  pkg_failed=yes
63958fi
63959 else
63960    pkg_failed=untried
63961fi
63962if test -n "$LUA_LIBS"; then
63963    pkg_cv_LUA_LIBS="$LUA_LIBS"
63964 elif test -n "$PKG_CONFIG"; then
63965    if test -n "$PKG_CONFIG" && \
63966    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.3\""; } >&5
63967  ($PKG_CONFIG --exists --print-errors "lua5.3") 2>&5
63968  ac_status=$?
63969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63970  test $ac_status = 0; }; then
63971  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.3" 2>/dev/null`
63972		      test "x$?" != "x0" && pkg_failed=yes
63973else
63974  pkg_failed=yes
63975fi
63976 else
63977    pkg_failed=untried
63978fi
63979
63980
63981
63982if test $pkg_failed = yes; then
63983   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63984$as_echo "no" >&6; }
63985
63986if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63987        _pkg_short_errors_supported=yes
63988else
63989        _pkg_short_errors_supported=no
63990fi
63991        if test $_pkg_short_errors_supported = yes; then
63992	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.3" 2>&1`
63993        else
63994	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.3" 2>&1`
63995        fi
63996	# Put the nasty error message in config.log where it belongs
63997	echo "$LUA_PKG_ERRORS" >&5
63998
63999
64000
64001pkg_failed=no
64002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
64003$as_echo_n "checking for LUA... " >&6; }
64004
64005if test -n "$LUA_CFLAGS"; then
64006    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
64007 elif test -n "$PKG_CONFIG"; then
64008    if test -n "$PKG_CONFIG" && \
64009    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua53\""; } >&5
64010  ($PKG_CONFIG --exists --print-errors "lua53") 2>&5
64011  ac_status=$?
64012  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64013  test $ac_status = 0; }; then
64014  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua53" 2>/dev/null`
64015		      test "x$?" != "x0" && pkg_failed=yes
64016else
64017  pkg_failed=yes
64018fi
64019 else
64020    pkg_failed=untried
64021fi
64022if test -n "$LUA_LIBS"; then
64023    pkg_cv_LUA_LIBS="$LUA_LIBS"
64024 elif test -n "$PKG_CONFIG"; then
64025    if test -n "$PKG_CONFIG" && \
64026    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua53\""; } >&5
64027  ($PKG_CONFIG --exists --print-errors "lua53") 2>&5
64028  ac_status=$?
64029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64030  test $ac_status = 0; }; then
64031  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua53" 2>/dev/null`
64032		      test "x$?" != "x0" && pkg_failed=yes
64033else
64034  pkg_failed=yes
64035fi
64036 else
64037    pkg_failed=untried
64038fi
64039
64040
64041
64042if test $pkg_failed = yes; then
64043   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64044$as_echo "no" >&6; }
64045
64046if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64047        _pkg_short_errors_supported=yes
64048else
64049        _pkg_short_errors_supported=no
64050fi
64051        if test $_pkg_short_errors_supported = yes; then
64052	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua53" 2>&1`
64053        else
64054	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua53" 2>&1`
64055        fi
64056	# Put the nasty error message in config.log where it belongs
64057	echo "$LUA_PKG_ERRORS" >&5
64058
64059
64060
64061pkg_failed=no
64062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
64063$as_echo_n "checking for LUA... " >&6; }
64064
64065if test -n "$LUA_CFLAGS"; then
64066    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
64067 elif test -n "$PKG_CONFIG"; then
64068    if test -n "$PKG_CONFIG" && \
64069    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
64070  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
64071  ac_status=$?
64072  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64073  test $ac_status = 0; }; then
64074  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.2" 2>/dev/null`
64075		      test "x$?" != "x0" && pkg_failed=yes
64076else
64077  pkg_failed=yes
64078fi
64079 else
64080    pkg_failed=untried
64081fi
64082if test -n "$LUA_LIBS"; then
64083    pkg_cv_LUA_LIBS="$LUA_LIBS"
64084 elif test -n "$PKG_CONFIG"; then
64085    if test -n "$PKG_CONFIG" && \
64086    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
64087  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
64088  ac_status=$?
64089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64090  test $ac_status = 0; }; then
64091  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.2" 2>/dev/null`
64092		      test "x$?" != "x0" && pkg_failed=yes
64093else
64094  pkg_failed=yes
64095fi
64096 else
64097    pkg_failed=untried
64098fi
64099
64100
64101
64102if test $pkg_failed = yes; then
64103   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64104$as_echo "no" >&6; }
64105
64106if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64107        _pkg_short_errors_supported=yes
64108else
64109        _pkg_short_errors_supported=no
64110fi
64111        if test $_pkg_short_errors_supported = yes; then
64112	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.2" 2>&1`
64113        else
64114	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.2" 2>&1`
64115        fi
64116	# Put the nasty error message in config.log where it belongs
64117	echo "$LUA_PKG_ERRORS" >&5
64118
64119
64120
64121pkg_failed=no
64122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
64123$as_echo_n "checking for LUA... " >&6; }
64124
64125if test -n "$LUA_CFLAGS"; then
64126    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
64127 elif test -n "$PKG_CONFIG"; then
64128    if test -n "$PKG_CONFIG" && \
64129    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
64130  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
64131  ac_status=$?
64132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64133  test $ac_status = 0; }; then
64134  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
64135		      test "x$?" != "x0" && pkg_failed=yes
64136else
64137  pkg_failed=yes
64138fi
64139 else
64140    pkg_failed=untried
64141fi
64142if test -n "$LUA_LIBS"; then
64143    pkg_cv_LUA_LIBS="$LUA_LIBS"
64144 elif test -n "$PKG_CONFIG"; then
64145    if test -n "$PKG_CONFIG" && \
64146    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
64147  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
64148  ac_status=$?
64149  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64150  test $ac_status = 0; }; then
64151  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
64152		      test "x$?" != "x0" && pkg_failed=yes
64153else
64154  pkg_failed=yes
64155fi
64156 else
64157    pkg_failed=untried
64158fi
64159
64160
64161
64162if test $pkg_failed = yes; then
64163   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64164$as_echo "no" >&6; }
64165
64166if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64167        _pkg_short_errors_supported=yes
64168else
64169        _pkg_short_errors_supported=no
64170fi
64171        if test $_pkg_short_errors_supported = yes; then
64172	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
64173        else
64174	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
64175        fi
64176	# Put the nasty error message in config.log where it belongs
64177	echo "$LUA_PKG_ERRORS" >&5
64178
64179
64180
64181pkg_failed=no
64182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
64183$as_echo_n "checking for LUA... " >&6; }
64184
64185if test -n "$LUA_CFLAGS"; then
64186    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
64187 elif test -n "$PKG_CONFIG"; then
64188    if test -n "$PKG_CONFIG" && \
64189    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
64190  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
64191  ac_status=$?
64192  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64193  test $ac_status = 0; }; then
64194  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
64195		      test "x$?" != "x0" && pkg_failed=yes
64196else
64197  pkg_failed=yes
64198fi
64199 else
64200    pkg_failed=untried
64201fi
64202if test -n "$LUA_LIBS"; then
64203    pkg_cv_LUA_LIBS="$LUA_LIBS"
64204 elif test -n "$PKG_CONFIG"; then
64205    if test -n "$PKG_CONFIG" && \
64206    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
64207  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
64208  ac_status=$?
64209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64210  test $ac_status = 0; }; then
64211  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
64212		      test "x$?" != "x0" && pkg_failed=yes
64213else
64214  pkg_failed=yes
64215fi
64216 else
64217    pkg_failed=untried
64218fi
64219
64220
64221
64222if test $pkg_failed = yes; then
64223   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64224$as_echo "no" >&6; }
64225
64226if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64227        _pkg_short_errors_supported=yes
64228else
64229        _pkg_short_errors_supported=no
64230fi
64231        if test $_pkg_short_errors_supported = yes; then
64232	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
64233        else
64234	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
64235        fi
64236	# Put the nasty error message in config.log where it belongs
64237	echo "$LUA_PKG_ERRORS" >&5
64238
64239
64240
64241pkg_failed=no
64242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
64243$as_echo_n "checking for LUA... " >&6; }
64244
64245if test -n "$LUA_CFLAGS"; then
64246    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
64247 elif test -n "$PKG_CONFIG"; then
64248    if test -n "$PKG_CONFIG" && \
64249    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
64250  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
64251  ac_status=$?
64252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64253  test $ac_status = 0; }; then
64254  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
64255		      test "x$?" != "x0" && pkg_failed=yes
64256else
64257  pkg_failed=yes
64258fi
64259 else
64260    pkg_failed=untried
64261fi
64262if test -n "$LUA_LIBS"; then
64263    pkg_cv_LUA_LIBS="$LUA_LIBS"
64264 elif test -n "$PKG_CONFIG"; then
64265    if test -n "$PKG_CONFIG" && \
64266    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
64267  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
64268  ac_status=$?
64269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64270  test $ac_status = 0; }; then
64271  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
64272		      test "x$?" != "x0" && pkg_failed=yes
64273else
64274  pkg_failed=yes
64275fi
64276 else
64277    pkg_failed=untried
64278fi
64279
64280
64281
64282if test $pkg_failed = yes; then
64283   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64284$as_echo "no" >&6; }
64285
64286if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64287        _pkg_short_errors_supported=yes
64288else
64289        _pkg_short_errors_supported=no
64290fi
64291        if test $_pkg_short_errors_supported = yes; then
64292	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
64293        else
64294	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
64295        fi
64296	# Put the nasty error message in config.log where it belongs
64297	echo "$LUA_PKG_ERRORS" >&5
64298
64299
64300
64301pkg_failed=no
64302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
64303$as_echo_n "checking for LUA... " >&6; }
64304
64305if test -n "$LUA_CFLAGS"; then
64306    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
64307 elif test -n "$PKG_CONFIG"; then
64308    if test -n "$PKG_CONFIG" && \
64309    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
64310  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
64311  ac_status=$?
64312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64313  test $ac_status = 0; }; then
64314  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
64315		      test "x$?" != "x0" && pkg_failed=yes
64316else
64317  pkg_failed=yes
64318fi
64319 else
64320    pkg_failed=untried
64321fi
64322if test -n "$LUA_LIBS"; then
64323    pkg_cv_LUA_LIBS="$LUA_LIBS"
64324 elif test -n "$PKG_CONFIG"; then
64325    if test -n "$PKG_CONFIG" && \
64326    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
64327  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
64328  ac_status=$?
64329  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64330  test $ac_status = 0; }; then
64331  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
64332		      test "x$?" != "x0" && pkg_failed=yes
64333else
64334  pkg_failed=yes
64335fi
64336 else
64337    pkg_failed=untried
64338fi
64339
64340
64341
64342if test $pkg_failed = yes; then
64343   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64344$as_echo "no" >&6; }
64345
64346if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64347        _pkg_short_errors_supported=yes
64348else
64349        _pkg_short_errors_supported=no
64350fi
64351        if test $_pkg_short_errors_supported = yes; then
64352	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
64353        else
64354	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
64355        fi
64356	# Put the nasty error message in config.log where it belongs
64357	echo "$LUA_PKG_ERRORS" >&5
64358
64359
64360
64361pkg_failed=no
64362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
64363$as_echo_n "checking for LUA... " >&6; }
64364
64365if test -n "$LUA_CFLAGS"; then
64366    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
64367 elif test -n "$PKG_CONFIG"; then
64368    if test -n "$PKG_CONFIG" && \
64369    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
64370  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
64371  ac_status=$?
64372  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64373  test $ac_status = 0; }; then
64374  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
64375		      test "x$?" != "x0" && pkg_failed=yes
64376else
64377  pkg_failed=yes
64378fi
64379 else
64380    pkg_failed=untried
64381fi
64382if test -n "$LUA_LIBS"; then
64383    pkg_cv_LUA_LIBS="$LUA_LIBS"
64384 elif test -n "$PKG_CONFIG"; then
64385    if test -n "$PKG_CONFIG" && \
64386    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
64387  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
64388  ac_status=$?
64389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64390  test $ac_status = 0; }; then
64391  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
64392		      test "x$?" != "x0" && pkg_failed=yes
64393else
64394  pkg_failed=yes
64395fi
64396 else
64397    pkg_failed=untried
64398fi
64399
64400
64401
64402if test $pkg_failed = yes; then
64403   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64404$as_echo "no" >&6; }
64405
64406if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64407        _pkg_short_errors_supported=yes
64408else
64409        _pkg_short_errors_supported=no
64410fi
64411        if test $_pkg_short_errors_supported = yes; then
64412	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
64413        else
64414	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
64415        fi
64416	# Put the nasty error message in config.log where it belongs
64417	echo "$LUA_PKG_ERRORS" >&5
64418
64419	with_liblua="no (pkg-config cannot find liblua)"
64420
64421elif test $pkg_failed = untried; then
64422     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64423$as_echo "no" >&6; }
64424	with_liblua="no (pkg-config cannot find liblua)"
64425
64426else
64427	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
64428	LUA_LIBS=$pkg_cv_LUA_LIBS
64429        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64430$as_echo "yes" >&6; }
64431	with_liblua="yes"
64432fi
64433
64434
64435elif test $pkg_failed = untried; then
64436     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64437$as_echo "no" >&6; }
64438
64439
64440pkg_failed=no
64441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
64442$as_echo_n "checking for LUA... " >&6; }
64443
64444if test -n "$LUA_CFLAGS"; then
64445    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
64446 elif test -n "$PKG_CONFIG"; then
64447    if test -n "$PKG_CONFIG" && \
64448    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
64449  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
64450  ac_status=$?
64451  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64452  test $ac_status = 0; }; then
64453  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
64454		      test "x$?" != "x0" && pkg_failed=yes
64455else
64456  pkg_failed=yes
64457fi
64458 else
64459    pkg_failed=untried
64460fi
64461if test -n "$LUA_LIBS"; then
64462    pkg_cv_LUA_LIBS="$LUA_LIBS"
64463 elif test -n "$PKG_CONFIG"; then
64464    if test -n "$PKG_CONFIG" && \
64465    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
64466  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
64467  ac_status=$?
64468  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64469  test $ac_status = 0; }; then
64470  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
64471		      test "x$?" != "x0" && pkg_failed=yes
64472else
64473  pkg_failed=yes
64474fi
64475 else
64476    pkg_failed=untried
64477fi
64478
64479
64480
64481if test $pkg_failed = yes; then
64482   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64483$as_echo "no" >&6; }
64484
64485if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64486        _pkg_short_errors_supported=yes
64487else
64488        _pkg_short_errors_supported=no
64489fi
64490        if test $_pkg_short_errors_supported = yes; then
64491	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
64492        else
64493	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
64494        fi
64495	# Put the nasty error message in config.log where it belongs
64496	echo "$LUA_PKG_ERRORS" >&5
64497
64498	with_liblua="no (pkg-config cannot find liblua)"
64499
64500elif test $pkg_failed = untried; then
64501     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64502$as_echo "no" >&6; }
64503	with_liblua="no (pkg-config cannot find liblua)"
64504
64505else
64506	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
64507	LUA_LIBS=$pkg_cv_LUA_LIBS
64508        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64509$as_echo "yes" >&6; }
64510	with_liblua="yes"
64511fi
64512
64513
64514else
64515	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
64516	LUA_LIBS=$pkg_cv_LUA_LIBS
64517        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64518$as_echo "yes" >&6; }
64519	with_liblua="yes"
64520fi
64521
64522
64523elif test $pkg_failed = untried; then
64524     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64525$as_echo "no" >&6; }
64526
64527
64528pkg_failed=no
64529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
64530$as_echo_n "checking for LUA... " >&6; }
64531
64532if test -n "$LUA_CFLAGS"; then
64533    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
64534 elif test -n "$PKG_CONFIG"; then
64535    if test -n "$PKG_CONFIG" && \
64536    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
64537  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
64538  ac_status=$?
64539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64540  test $ac_status = 0; }; then
64541  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
64542		      test "x$?" != "x0" && pkg_failed=yes
64543else
64544  pkg_failed=yes
64545fi
64546 else
64547    pkg_failed=untried
64548fi
64549if test -n "$LUA_LIBS"; then
64550    pkg_cv_LUA_LIBS="$LUA_LIBS"
64551 elif test -n "$PKG_CONFIG"; then
64552    if test -n "$PKG_CONFIG" && \
64553    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
64554  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
64555  ac_status=$?
64556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64557  test $ac_status = 0; }; then
64558  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
64559		      test "x$?" != "x0" && pkg_failed=yes
64560else
64561  pkg_failed=yes
64562fi
64563 else
64564    pkg_failed=untried
64565fi
64566
64567
64568
64569if test $pkg_failed = yes; then
64570   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64571$as_echo "no" >&6; }
64572
64573if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64574        _pkg_short_errors_supported=yes
64575else
64576        _pkg_short_errors_supported=no
64577fi
64578        if test $_pkg_short_errors_supported = yes; then
64579	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
64580        else
64581	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
64582        fi
64583	# Put the nasty error message in config.log where it belongs
64584	echo "$LUA_PKG_ERRORS" >&5
64585
64586
64587
64588pkg_failed=no
64589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
64590$as_echo_n "checking for LUA... " >&6; }
64591
64592if test -n "$LUA_CFLAGS"; then
64593    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
64594 elif test -n "$PKG_CONFIG"; then
64595    if test -n "$PKG_CONFIG" && \
64596    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
64597  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
64598  ac_status=$?
64599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64600  test $ac_status = 0; }; then
64601  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
64602		      test "x$?" != "x0" && pkg_failed=yes
64603else
64604  pkg_failed=yes
64605fi
64606 else
64607    pkg_failed=untried
64608fi
64609if test -n "$LUA_LIBS"; then
64610    pkg_cv_LUA_LIBS="$LUA_LIBS"
64611 elif test -n "$PKG_CONFIG"; then
64612    if test -n "$PKG_CONFIG" && \
64613    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
64614  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
64615  ac_status=$?
64616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64617  test $ac_status = 0; }; then
64618  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
64619		      test "x$?" != "x0" && pkg_failed=yes
64620else
64621  pkg_failed=yes
64622fi
64623 else
64624    pkg_failed=untried
64625fi
64626
64627
64628
64629if test $pkg_failed = yes; then
64630   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64631$as_echo "no" >&6; }
64632
64633if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64634        _pkg_short_errors_supported=yes
64635else
64636        _pkg_short_errors_supported=no
64637fi
64638        if test $_pkg_short_errors_supported = yes; then
64639	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
64640        else
64641	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
64642        fi
64643	# Put the nasty error message in config.log where it belongs
64644	echo "$LUA_PKG_ERRORS" >&5
64645
64646	with_liblua="no (pkg-config cannot find liblua)"
64647
64648elif test $pkg_failed = untried; then
64649     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64650$as_echo "no" >&6; }
64651	with_liblua="no (pkg-config cannot find liblua)"
64652
64653else
64654	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
64655	LUA_LIBS=$pkg_cv_LUA_LIBS
64656        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64657$as_echo "yes" >&6; }
64658	with_liblua="yes"
64659fi
64660
64661
64662elif test $pkg_failed = untried; then
64663     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64664$as_echo "no" >&6; }
64665
64666
64667pkg_failed=no
64668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
64669$as_echo_n "checking for LUA... " >&6; }
64670
64671if test -n "$LUA_CFLAGS"; then
64672    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
64673 elif test -n "$PKG_CONFIG"; then
64674    if test -n "$PKG_CONFIG" && \
64675    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
64676  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
64677  ac_status=$?
64678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64679  test $ac_status = 0; }; then
64680  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
64681		      test "x$?" != "x0" && pkg_failed=yes
64682else
64683  pkg_failed=yes
64684fi
64685 else
64686    pkg_failed=untried
64687fi
64688if test -n "$LUA_LIBS"; then
64689    pkg_cv_LUA_LIBS="$LUA_LIBS"
64690 elif test -n "$PKG_CONFIG"; then
64691    if test -n "$PKG_CONFIG" && \
64692    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
64693  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
64694  ac_status=$?
64695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64696  test $ac_status = 0; }; then
64697  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
64698		      test "x$?" != "x0" && pkg_failed=yes
64699else
64700  pkg_failed=yes
64701fi
64702 else
64703    pkg_failed=untried
64704fi
64705
64706
64707
64708if test $pkg_failed = yes; then
64709   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64710$as_echo "no" >&6; }
64711
64712if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64713        _pkg_short_errors_supported=yes
64714else
64715        _pkg_short_errors_supported=no
64716fi
64717        if test $_pkg_short_errors_supported = yes; then
64718	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
64719        else
64720	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
64721        fi
64722	# Put the nasty error message in config.log where it belongs
64723	echo "$LUA_PKG_ERRORS" >&5
64724
64725	with_liblua="no (pkg-config cannot find liblua)"
64726
64727elif test $pkg_failed = untried; then
64728     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64729$as_echo "no" >&6; }
64730	with_liblua="no (pkg-config cannot find liblua)"
64731
64732else
64733	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
64734	LUA_LIBS=$pkg_cv_LUA_LIBS
64735        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64736$as_echo "yes" >&6; }
64737	with_liblua="yes"
64738fi
64739
64740
64741else
64742	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
64743	LUA_LIBS=$pkg_cv_LUA_LIBS
64744        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64745$as_echo "yes" >&6; }
64746	with_liblua="yes"
64747fi
64748
64749
64750else
64751	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
64752	LUA_LIBS=$pkg_cv_LUA_LIBS
64753        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64754$as_echo "yes" >&6; }
64755	with_liblua="yes"
64756fi
64757
64758
64759elif test $pkg_failed = untried; then
64760     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64761$as_echo "no" >&6; }
64762
64763
64764pkg_failed=no
64765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
64766$as_echo_n "checking for LUA... " >&6; }
64767
64768if test -n "$LUA_CFLAGS"; then
64769    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
64770 elif test -n "$PKG_CONFIG"; then
64771    if test -n "$PKG_CONFIG" && \
64772    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
64773  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
64774  ac_status=$?
64775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64776  test $ac_status = 0; }; then
64777  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
64778		      test "x$?" != "x0" && pkg_failed=yes
64779else
64780  pkg_failed=yes
64781fi
64782 else
64783    pkg_failed=untried
64784fi
64785if test -n "$LUA_LIBS"; then
64786    pkg_cv_LUA_LIBS="$LUA_LIBS"
64787 elif test -n "$PKG_CONFIG"; then
64788    if test -n "$PKG_CONFIG" && \
64789    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
64790  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
64791  ac_status=$?
64792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64793  test $ac_status = 0; }; then
64794  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
64795		      test "x$?" != "x0" && pkg_failed=yes
64796else
64797  pkg_failed=yes
64798fi
64799 else
64800    pkg_failed=untried
64801fi
64802
64803
64804
64805if test $pkg_failed = yes; then
64806   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64807$as_echo "no" >&6; }
64808
64809if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64810        _pkg_short_errors_supported=yes
64811else
64812        _pkg_short_errors_supported=no
64813fi
64814        if test $_pkg_short_errors_supported = yes; then
64815	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
64816        else
64817	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
64818        fi
64819	# Put the nasty error message in config.log where it belongs
64820	echo "$LUA_PKG_ERRORS" >&5
64821
64822
64823
64824pkg_failed=no
64825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
64826$as_echo_n "checking for LUA... " >&6; }
64827
64828if test -n "$LUA_CFLAGS"; then
64829    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
64830 elif test -n "$PKG_CONFIG"; then
64831    if test -n "$PKG_CONFIG" && \
64832    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
64833  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
64834  ac_status=$?
64835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64836  test $ac_status = 0; }; then
64837  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
64838		      test "x$?" != "x0" && pkg_failed=yes
64839else
64840  pkg_failed=yes
64841fi
64842 else
64843    pkg_failed=untried
64844fi
64845if test -n "$LUA_LIBS"; then
64846    pkg_cv_LUA_LIBS="$LUA_LIBS"
64847 elif test -n "$PKG_CONFIG"; then
64848    if test -n "$PKG_CONFIG" && \
64849    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
64850  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
64851  ac_status=$?
64852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64853  test $ac_status = 0; }; then
64854  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
64855		      test "x$?" != "x0" && pkg_failed=yes
64856else
64857  pkg_failed=yes
64858fi
64859 else
64860    pkg_failed=untried
64861fi
64862
64863
64864
64865if test $pkg_failed = yes; then
64866   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64867$as_echo "no" >&6; }
64868
64869if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64870        _pkg_short_errors_supported=yes
64871else
64872        _pkg_short_errors_supported=no
64873fi
64874        if test $_pkg_short_errors_supported = yes; then
64875	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
64876        else
64877	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
64878        fi
64879	# Put the nasty error message in config.log where it belongs
64880	echo "$LUA_PKG_ERRORS" >&5
64881
64882
64883
64884pkg_failed=no
64885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
64886$as_echo_n "checking for LUA... " >&6; }
64887
64888if test -n "$LUA_CFLAGS"; then
64889    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
64890 elif test -n "$PKG_CONFIG"; then
64891    if test -n "$PKG_CONFIG" && \
64892    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
64893  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
64894  ac_status=$?
64895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64896  test $ac_status = 0; }; then
64897  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
64898		      test "x$?" != "x0" && pkg_failed=yes
64899else
64900  pkg_failed=yes
64901fi
64902 else
64903    pkg_failed=untried
64904fi
64905if test -n "$LUA_LIBS"; then
64906    pkg_cv_LUA_LIBS="$LUA_LIBS"
64907 elif test -n "$PKG_CONFIG"; then
64908    if test -n "$PKG_CONFIG" && \
64909    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
64910  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
64911  ac_status=$?
64912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64913  test $ac_status = 0; }; then
64914  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
64915		      test "x$?" != "x0" && pkg_failed=yes
64916else
64917  pkg_failed=yes
64918fi
64919 else
64920    pkg_failed=untried
64921fi
64922
64923
64924
64925if test $pkg_failed = yes; then
64926   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64927$as_echo "no" >&6; }
64928
64929if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64930        _pkg_short_errors_supported=yes
64931else
64932        _pkg_short_errors_supported=no
64933fi
64934        if test $_pkg_short_errors_supported = yes; then
64935	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
64936        else
64937	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
64938        fi
64939	# Put the nasty error message in config.log where it belongs
64940	echo "$LUA_PKG_ERRORS" >&5
64941
64942	with_liblua="no (pkg-config cannot find liblua)"
64943
64944elif test $pkg_failed = untried; then
64945     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64946$as_echo "no" >&6; }
64947	with_liblua="no (pkg-config cannot find liblua)"
64948
64949else
64950	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
64951	LUA_LIBS=$pkg_cv_LUA_LIBS
64952        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64953$as_echo "yes" >&6; }
64954	with_liblua="yes"
64955fi
64956
64957
64958elif test $pkg_failed = untried; then
64959     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64960$as_echo "no" >&6; }
64961
64962
64963pkg_failed=no
64964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
64965$as_echo_n "checking for LUA... " >&6; }
64966
64967if test -n "$LUA_CFLAGS"; then
64968    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
64969 elif test -n "$PKG_CONFIG"; then
64970    if test -n "$PKG_CONFIG" && \
64971    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
64972  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
64973  ac_status=$?
64974  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64975  test $ac_status = 0; }; then
64976  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
64977		      test "x$?" != "x0" && pkg_failed=yes
64978else
64979  pkg_failed=yes
64980fi
64981 else
64982    pkg_failed=untried
64983fi
64984if test -n "$LUA_LIBS"; then
64985    pkg_cv_LUA_LIBS="$LUA_LIBS"
64986 elif test -n "$PKG_CONFIG"; then
64987    if test -n "$PKG_CONFIG" && \
64988    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
64989  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
64990  ac_status=$?
64991  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64992  test $ac_status = 0; }; then
64993  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
64994		      test "x$?" != "x0" && pkg_failed=yes
64995else
64996  pkg_failed=yes
64997fi
64998 else
64999    pkg_failed=untried
65000fi
65001
65002
65003
65004if test $pkg_failed = yes; then
65005   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65006$as_echo "no" >&6; }
65007
65008if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65009        _pkg_short_errors_supported=yes
65010else
65011        _pkg_short_errors_supported=no
65012fi
65013        if test $_pkg_short_errors_supported = yes; then
65014	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
65015        else
65016	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
65017        fi
65018	# Put the nasty error message in config.log where it belongs
65019	echo "$LUA_PKG_ERRORS" >&5
65020
65021	with_liblua="no (pkg-config cannot find liblua)"
65022
65023elif test $pkg_failed = untried; then
65024     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65025$as_echo "no" >&6; }
65026	with_liblua="no (pkg-config cannot find liblua)"
65027
65028else
65029	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
65030	LUA_LIBS=$pkg_cv_LUA_LIBS
65031        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65032$as_echo "yes" >&6; }
65033	with_liblua="yes"
65034fi
65035
65036
65037else
65038	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
65039	LUA_LIBS=$pkg_cv_LUA_LIBS
65040        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65041$as_echo "yes" >&6; }
65042	with_liblua="yes"
65043fi
65044
65045
65046elif test $pkg_failed = untried; then
65047     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65048$as_echo "no" >&6; }
65049
65050
65051pkg_failed=no
65052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
65053$as_echo_n "checking for LUA... " >&6; }
65054
65055if test -n "$LUA_CFLAGS"; then
65056    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
65057 elif test -n "$PKG_CONFIG"; then
65058    if test -n "$PKG_CONFIG" && \
65059    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
65060  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
65061  ac_status=$?
65062  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65063  test $ac_status = 0; }; then
65064  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
65065		      test "x$?" != "x0" && pkg_failed=yes
65066else
65067  pkg_failed=yes
65068fi
65069 else
65070    pkg_failed=untried
65071fi
65072if test -n "$LUA_LIBS"; then
65073    pkg_cv_LUA_LIBS="$LUA_LIBS"
65074 elif test -n "$PKG_CONFIG"; then
65075    if test -n "$PKG_CONFIG" && \
65076    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
65077  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
65078  ac_status=$?
65079  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65080  test $ac_status = 0; }; then
65081  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
65082		      test "x$?" != "x0" && pkg_failed=yes
65083else
65084  pkg_failed=yes
65085fi
65086 else
65087    pkg_failed=untried
65088fi
65089
65090
65091
65092if test $pkg_failed = yes; then
65093   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65094$as_echo "no" >&6; }
65095
65096if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65097        _pkg_short_errors_supported=yes
65098else
65099        _pkg_short_errors_supported=no
65100fi
65101        if test $_pkg_short_errors_supported = yes; then
65102	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
65103        else
65104	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
65105        fi
65106	# Put the nasty error message in config.log where it belongs
65107	echo "$LUA_PKG_ERRORS" >&5
65108
65109
65110
65111pkg_failed=no
65112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
65113$as_echo_n "checking for LUA... " >&6; }
65114
65115if test -n "$LUA_CFLAGS"; then
65116    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
65117 elif test -n "$PKG_CONFIG"; then
65118    if test -n "$PKG_CONFIG" && \
65119    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
65120  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
65121  ac_status=$?
65122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65123  test $ac_status = 0; }; then
65124  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
65125		      test "x$?" != "x0" && pkg_failed=yes
65126else
65127  pkg_failed=yes
65128fi
65129 else
65130    pkg_failed=untried
65131fi
65132if test -n "$LUA_LIBS"; then
65133    pkg_cv_LUA_LIBS="$LUA_LIBS"
65134 elif test -n "$PKG_CONFIG"; then
65135    if test -n "$PKG_CONFIG" && \
65136    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
65137  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
65138  ac_status=$?
65139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65140  test $ac_status = 0; }; then
65141  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
65142		      test "x$?" != "x0" && pkg_failed=yes
65143else
65144  pkg_failed=yes
65145fi
65146 else
65147    pkg_failed=untried
65148fi
65149
65150
65151
65152if test $pkg_failed = yes; then
65153   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65154$as_echo "no" >&6; }
65155
65156if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65157        _pkg_short_errors_supported=yes
65158else
65159        _pkg_short_errors_supported=no
65160fi
65161        if test $_pkg_short_errors_supported = yes; then
65162	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
65163        else
65164	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
65165        fi
65166	# Put the nasty error message in config.log where it belongs
65167	echo "$LUA_PKG_ERRORS" >&5
65168
65169	with_liblua="no (pkg-config cannot find liblua)"
65170
65171elif test $pkg_failed = untried; then
65172     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65173$as_echo "no" >&6; }
65174	with_liblua="no (pkg-config cannot find liblua)"
65175
65176else
65177	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
65178	LUA_LIBS=$pkg_cv_LUA_LIBS
65179        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65180$as_echo "yes" >&6; }
65181	with_liblua="yes"
65182fi
65183
65184
65185elif test $pkg_failed = untried; then
65186     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65187$as_echo "no" >&6; }
65188
65189
65190pkg_failed=no
65191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
65192$as_echo_n "checking for LUA... " >&6; }
65193
65194if test -n "$LUA_CFLAGS"; then
65195    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
65196 elif test -n "$PKG_CONFIG"; then
65197    if test -n "$PKG_CONFIG" && \
65198    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
65199  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
65200  ac_status=$?
65201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65202  test $ac_status = 0; }; then
65203  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
65204		      test "x$?" != "x0" && pkg_failed=yes
65205else
65206  pkg_failed=yes
65207fi
65208 else
65209    pkg_failed=untried
65210fi
65211if test -n "$LUA_LIBS"; then
65212    pkg_cv_LUA_LIBS="$LUA_LIBS"
65213 elif test -n "$PKG_CONFIG"; then
65214    if test -n "$PKG_CONFIG" && \
65215    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
65216  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
65217  ac_status=$?
65218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65219  test $ac_status = 0; }; then
65220  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
65221		      test "x$?" != "x0" && pkg_failed=yes
65222else
65223  pkg_failed=yes
65224fi
65225 else
65226    pkg_failed=untried
65227fi
65228
65229
65230
65231if test $pkg_failed = yes; then
65232   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65233$as_echo "no" >&6; }
65234
65235if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65236        _pkg_short_errors_supported=yes
65237else
65238        _pkg_short_errors_supported=no
65239fi
65240        if test $_pkg_short_errors_supported = yes; then
65241	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
65242        else
65243	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
65244        fi
65245	# Put the nasty error message in config.log where it belongs
65246	echo "$LUA_PKG_ERRORS" >&5
65247
65248	with_liblua="no (pkg-config cannot find liblua)"
65249
65250elif test $pkg_failed = untried; then
65251     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65252$as_echo "no" >&6; }
65253	with_liblua="no (pkg-config cannot find liblua)"
65254
65255else
65256	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
65257	LUA_LIBS=$pkg_cv_LUA_LIBS
65258        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65259$as_echo "yes" >&6; }
65260	with_liblua="yes"
65261fi
65262
65263
65264else
65265	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
65266	LUA_LIBS=$pkg_cv_LUA_LIBS
65267        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65268$as_echo "yes" >&6; }
65269	with_liblua="yes"
65270fi
65271
65272
65273else
65274	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
65275	LUA_LIBS=$pkg_cv_LUA_LIBS
65276        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65277$as_echo "yes" >&6; }
65278	with_liblua="yes"
65279fi
65280
65281
65282else
65283	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
65284	LUA_LIBS=$pkg_cv_LUA_LIBS
65285        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65286$as_echo "yes" >&6; }
65287	with_liblua="yes"
65288fi
65289
65290
65291elif test $pkg_failed = untried; then
65292     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65293$as_echo "no" >&6; }
65294
65295
65296pkg_failed=no
65297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
65298$as_echo_n "checking for LUA... " >&6; }
65299
65300if test -n "$LUA_CFLAGS"; then
65301    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
65302 elif test -n "$PKG_CONFIG"; then
65303    if test -n "$PKG_CONFIG" && \
65304    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
65305  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
65306  ac_status=$?
65307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65308  test $ac_status = 0; }; then
65309  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
65310		      test "x$?" != "x0" && pkg_failed=yes
65311else
65312  pkg_failed=yes
65313fi
65314 else
65315    pkg_failed=untried
65316fi
65317if test -n "$LUA_LIBS"; then
65318    pkg_cv_LUA_LIBS="$LUA_LIBS"
65319 elif test -n "$PKG_CONFIG"; then
65320    if test -n "$PKG_CONFIG" && \
65321    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
65322  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
65323  ac_status=$?
65324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65325  test $ac_status = 0; }; then
65326  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
65327		      test "x$?" != "x0" && pkg_failed=yes
65328else
65329  pkg_failed=yes
65330fi
65331 else
65332    pkg_failed=untried
65333fi
65334
65335
65336
65337if test $pkg_failed = yes; then
65338   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65339$as_echo "no" >&6; }
65340
65341if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65342        _pkg_short_errors_supported=yes
65343else
65344        _pkg_short_errors_supported=no
65345fi
65346        if test $_pkg_short_errors_supported = yes; then
65347	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
65348        else
65349	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
65350        fi
65351	# Put the nasty error message in config.log where it belongs
65352	echo "$LUA_PKG_ERRORS" >&5
65353
65354
65355
65356pkg_failed=no
65357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
65358$as_echo_n "checking for LUA... " >&6; }
65359
65360if test -n "$LUA_CFLAGS"; then
65361    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
65362 elif test -n "$PKG_CONFIG"; then
65363    if test -n "$PKG_CONFIG" && \
65364    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
65365  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
65366  ac_status=$?
65367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65368  test $ac_status = 0; }; then
65369  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
65370		      test "x$?" != "x0" && pkg_failed=yes
65371else
65372  pkg_failed=yes
65373fi
65374 else
65375    pkg_failed=untried
65376fi
65377if test -n "$LUA_LIBS"; then
65378    pkg_cv_LUA_LIBS="$LUA_LIBS"
65379 elif test -n "$PKG_CONFIG"; then
65380    if test -n "$PKG_CONFIG" && \
65381    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
65382  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
65383  ac_status=$?
65384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65385  test $ac_status = 0; }; then
65386  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
65387		      test "x$?" != "x0" && pkg_failed=yes
65388else
65389  pkg_failed=yes
65390fi
65391 else
65392    pkg_failed=untried
65393fi
65394
65395
65396
65397if test $pkg_failed = yes; then
65398   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65399$as_echo "no" >&6; }
65400
65401if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65402        _pkg_short_errors_supported=yes
65403else
65404        _pkg_short_errors_supported=no
65405fi
65406        if test $_pkg_short_errors_supported = yes; then
65407	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
65408        else
65409	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
65410        fi
65411	# Put the nasty error message in config.log where it belongs
65412	echo "$LUA_PKG_ERRORS" >&5
65413
65414
65415
65416pkg_failed=no
65417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
65418$as_echo_n "checking for LUA... " >&6; }
65419
65420if test -n "$LUA_CFLAGS"; then
65421    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
65422 elif test -n "$PKG_CONFIG"; then
65423    if test -n "$PKG_CONFIG" && \
65424    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
65425  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
65426  ac_status=$?
65427  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65428  test $ac_status = 0; }; then
65429  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
65430		      test "x$?" != "x0" && pkg_failed=yes
65431else
65432  pkg_failed=yes
65433fi
65434 else
65435    pkg_failed=untried
65436fi
65437if test -n "$LUA_LIBS"; then
65438    pkg_cv_LUA_LIBS="$LUA_LIBS"
65439 elif test -n "$PKG_CONFIG"; then
65440    if test -n "$PKG_CONFIG" && \
65441    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
65442  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
65443  ac_status=$?
65444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65445  test $ac_status = 0; }; then
65446  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
65447		      test "x$?" != "x0" && pkg_failed=yes
65448else
65449  pkg_failed=yes
65450fi
65451 else
65452    pkg_failed=untried
65453fi
65454
65455
65456
65457if test $pkg_failed = yes; then
65458   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65459$as_echo "no" >&6; }
65460
65461if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65462        _pkg_short_errors_supported=yes
65463else
65464        _pkg_short_errors_supported=no
65465fi
65466        if test $_pkg_short_errors_supported = yes; then
65467	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
65468        else
65469	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
65470        fi
65471	# Put the nasty error message in config.log where it belongs
65472	echo "$LUA_PKG_ERRORS" >&5
65473
65474
65475
65476pkg_failed=no
65477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
65478$as_echo_n "checking for LUA... " >&6; }
65479
65480if test -n "$LUA_CFLAGS"; then
65481    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
65482 elif test -n "$PKG_CONFIG"; then
65483    if test -n "$PKG_CONFIG" && \
65484    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
65485  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
65486  ac_status=$?
65487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65488  test $ac_status = 0; }; then
65489  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
65490		      test "x$?" != "x0" && pkg_failed=yes
65491else
65492  pkg_failed=yes
65493fi
65494 else
65495    pkg_failed=untried
65496fi
65497if test -n "$LUA_LIBS"; then
65498    pkg_cv_LUA_LIBS="$LUA_LIBS"
65499 elif test -n "$PKG_CONFIG"; then
65500    if test -n "$PKG_CONFIG" && \
65501    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
65502  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
65503  ac_status=$?
65504  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65505  test $ac_status = 0; }; then
65506  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
65507		      test "x$?" != "x0" && pkg_failed=yes
65508else
65509  pkg_failed=yes
65510fi
65511 else
65512    pkg_failed=untried
65513fi
65514
65515
65516
65517if test $pkg_failed = yes; then
65518   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65519$as_echo "no" >&6; }
65520
65521if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65522        _pkg_short_errors_supported=yes
65523else
65524        _pkg_short_errors_supported=no
65525fi
65526        if test $_pkg_short_errors_supported = yes; then
65527	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
65528        else
65529	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
65530        fi
65531	# Put the nasty error message in config.log where it belongs
65532	echo "$LUA_PKG_ERRORS" >&5
65533
65534	with_liblua="no (pkg-config cannot find liblua)"
65535
65536elif test $pkg_failed = untried; then
65537     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65538$as_echo "no" >&6; }
65539	with_liblua="no (pkg-config cannot find liblua)"
65540
65541else
65542	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
65543	LUA_LIBS=$pkg_cv_LUA_LIBS
65544        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65545$as_echo "yes" >&6; }
65546	with_liblua="yes"
65547fi
65548
65549
65550elif test $pkg_failed = untried; then
65551     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65552$as_echo "no" >&6; }
65553
65554
65555pkg_failed=no
65556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
65557$as_echo_n "checking for LUA... " >&6; }
65558
65559if test -n "$LUA_CFLAGS"; then
65560    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
65561 elif test -n "$PKG_CONFIG"; then
65562    if test -n "$PKG_CONFIG" && \
65563    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
65564  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
65565  ac_status=$?
65566  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65567  test $ac_status = 0; }; then
65568  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
65569		      test "x$?" != "x0" && pkg_failed=yes
65570else
65571  pkg_failed=yes
65572fi
65573 else
65574    pkg_failed=untried
65575fi
65576if test -n "$LUA_LIBS"; then
65577    pkg_cv_LUA_LIBS="$LUA_LIBS"
65578 elif test -n "$PKG_CONFIG"; then
65579    if test -n "$PKG_CONFIG" && \
65580    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
65581  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
65582  ac_status=$?
65583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65584  test $ac_status = 0; }; then
65585  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
65586		      test "x$?" != "x0" && pkg_failed=yes
65587else
65588  pkg_failed=yes
65589fi
65590 else
65591    pkg_failed=untried
65592fi
65593
65594
65595
65596if test $pkg_failed = yes; then
65597   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65598$as_echo "no" >&6; }
65599
65600if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65601        _pkg_short_errors_supported=yes
65602else
65603        _pkg_short_errors_supported=no
65604fi
65605        if test $_pkg_short_errors_supported = yes; then
65606	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
65607        else
65608	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
65609        fi
65610	# Put the nasty error message in config.log where it belongs
65611	echo "$LUA_PKG_ERRORS" >&5
65612
65613	with_liblua="no (pkg-config cannot find liblua)"
65614
65615elif test $pkg_failed = untried; then
65616     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65617$as_echo "no" >&6; }
65618	with_liblua="no (pkg-config cannot find liblua)"
65619
65620else
65621	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
65622	LUA_LIBS=$pkg_cv_LUA_LIBS
65623        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65624$as_echo "yes" >&6; }
65625	with_liblua="yes"
65626fi
65627
65628
65629else
65630	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
65631	LUA_LIBS=$pkg_cv_LUA_LIBS
65632        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65633$as_echo "yes" >&6; }
65634	with_liblua="yes"
65635fi
65636
65637
65638elif test $pkg_failed = untried; then
65639     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65640$as_echo "no" >&6; }
65641
65642
65643pkg_failed=no
65644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
65645$as_echo_n "checking for LUA... " >&6; }
65646
65647if test -n "$LUA_CFLAGS"; then
65648    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
65649 elif test -n "$PKG_CONFIG"; then
65650    if test -n "$PKG_CONFIG" && \
65651    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
65652  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
65653  ac_status=$?
65654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65655  test $ac_status = 0; }; then
65656  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
65657		      test "x$?" != "x0" && pkg_failed=yes
65658else
65659  pkg_failed=yes
65660fi
65661 else
65662    pkg_failed=untried
65663fi
65664if test -n "$LUA_LIBS"; then
65665    pkg_cv_LUA_LIBS="$LUA_LIBS"
65666 elif test -n "$PKG_CONFIG"; then
65667    if test -n "$PKG_CONFIG" && \
65668    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
65669  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
65670  ac_status=$?
65671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65672  test $ac_status = 0; }; then
65673  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
65674		      test "x$?" != "x0" && pkg_failed=yes
65675else
65676  pkg_failed=yes
65677fi
65678 else
65679    pkg_failed=untried
65680fi
65681
65682
65683
65684if test $pkg_failed = yes; then
65685   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65686$as_echo "no" >&6; }
65687
65688if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65689        _pkg_short_errors_supported=yes
65690else
65691        _pkg_short_errors_supported=no
65692fi
65693        if test $_pkg_short_errors_supported = yes; then
65694	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
65695        else
65696	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
65697        fi
65698	# Put the nasty error message in config.log where it belongs
65699	echo "$LUA_PKG_ERRORS" >&5
65700
65701
65702
65703pkg_failed=no
65704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
65705$as_echo_n "checking for LUA... " >&6; }
65706
65707if test -n "$LUA_CFLAGS"; then
65708    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
65709 elif test -n "$PKG_CONFIG"; then
65710    if test -n "$PKG_CONFIG" && \
65711    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
65712  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
65713  ac_status=$?
65714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65715  test $ac_status = 0; }; then
65716  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
65717		      test "x$?" != "x0" && pkg_failed=yes
65718else
65719  pkg_failed=yes
65720fi
65721 else
65722    pkg_failed=untried
65723fi
65724if test -n "$LUA_LIBS"; then
65725    pkg_cv_LUA_LIBS="$LUA_LIBS"
65726 elif test -n "$PKG_CONFIG"; then
65727    if test -n "$PKG_CONFIG" && \
65728    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
65729  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
65730  ac_status=$?
65731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65732  test $ac_status = 0; }; then
65733  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
65734		      test "x$?" != "x0" && pkg_failed=yes
65735else
65736  pkg_failed=yes
65737fi
65738 else
65739    pkg_failed=untried
65740fi
65741
65742
65743
65744if test $pkg_failed = yes; then
65745   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65746$as_echo "no" >&6; }
65747
65748if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65749        _pkg_short_errors_supported=yes
65750else
65751        _pkg_short_errors_supported=no
65752fi
65753        if test $_pkg_short_errors_supported = yes; then
65754	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
65755        else
65756	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
65757        fi
65758	# Put the nasty error message in config.log where it belongs
65759	echo "$LUA_PKG_ERRORS" >&5
65760
65761	with_liblua="no (pkg-config cannot find liblua)"
65762
65763elif test $pkg_failed = untried; then
65764     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65765$as_echo "no" >&6; }
65766	with_liblua="no (pkg-config cannot find liblua)"
65767
65768else
65769	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
65770	LUA_LIBS=$pkg_cv_LUA_LIBS
65771        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65772$as_echo "yes" >&6; }
65773	with_liblua="yes"
65774fi
65775
65776
65777elif test $pkg_failed = untried; then
65778     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65779$as_echo "no" >&6; }
65780
65781
65782pkg_failed=no
65783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
65784$as_echo_n "checking for LUA... " >&6; }
65785
65786if test -n "$LUA_CFLAGS"; then
65787    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
65788 elif test -n "$PKG_CONFIG"; then
65789    if test -n "$PKG_CONFIG" && \
65790    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
65791  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
65792  ac_status=$?
65793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65794  test $ac_status = 0; }; then
65795  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
65796		      test "x$?" != "x0" && pkg_failed=yes
65797else
65798  pkg_failed=yes
65799fi
65800 else
65801    pkg_failed=untried
65802fi
65803if test -n "$LUA_LIBS"; then
65804    pkg_cv_LUA_LIBS="$LUA_LIBS"
65805 elif test -n "$PKG_CONFIG"; then
65806    if test -n "$PKG_CONFIG" && \
65807    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
65808  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
65809  ac_status=$?
65810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65811  test $ac_status = 0; }; then
65812  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
65813		      test "x$?" != "x0" && pkg_failed=yes
65814else
65815  pkg_failed=yes
65816fi
65817 else
65818    pkg_failed=untried
65819fi
65820
65821
65822
65823if test $pkg_failed = yes; then
65824   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65825$as_echo "no" >&6; }
65826
65827if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65828        _pkg_short_errors_supported=yes
65829else
65830        _pkg_short_errors_supported=no
65831fi
65832        if test $_pkg_short_errors_supported = yes; then
65833	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
65834        else
65835	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
65836        fi
65837	# Put the nasty error message in config.log where it belongs
65838	echo "$LUA_PKG_ERRORS" >&5
65839
65840	with_liblua="no (pkg-config cannot find liblua)"
65841
65842elif test $pkg_failed = untried; then
65843     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65844$as_echo "no" >&6; }
65845	with_liblua="no (pkg-config cannot find liblua)"
65846
65847else
65848	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
65849	LUA_LIBS=$pkg_cv_LUA_LIBS
65850        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65851$as_echo "yes" >&6; }
65852	with_liblua="yes"
65853fi
65854
65855
65856else
65857	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
65858	LUA_LIBS=$pkg_cv_LUA_LIBS
65859        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65860$as_echo "yes" >&6; }
65861	with_liblua="yes"
65862fi
65863
65864
65865else
65866	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
65867	LUA_LIBS=$pkg_cv_LUA_LIBS
65868        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65869$as_echo "yes" >&6; }
65870	with_liblua="yes"
65871fi
65872
65873
65874elif test $pkg_failed = untried; then
65875     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65876$as_echo "no" >&6; }
65877
65878
65879pkg_failed=no
65880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
65881$as_echo_n "checking for LUA... " >&6; }
65882
65883if test -n "$LUA_CFLAGS"; then
65884    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
65885 elif test -n "$PKG_CONFIG"; then
65886    if test -n "$PKG_CONFIG" && \
65887    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
65888  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
65889  ac_status=$?
65890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65891  test $ac_status = 0; }; then
65892  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
65893		      test "x$?" != "x0" && pkg_failed=yes
65894else
65895  pkg_failed=yes
65896fi
65897 else
65898    pkg_failed=untried
65899fi
65900if test -n "$LUA_LIBS"; then
65901    pkg_cv_LUA_LIBS="$LUA_LIBS"
65902 elif test -n "$PKG_CONFIG"; then
65903    if test -n "$PKG_CONFIG" && \
65904    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
65905  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
65906  ac_status=$?
65907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65908  test $ac_status = 0; }; then
65909  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
65910		      test "x$?" != "x0" && pkg_failed=yes
65911else
65912  pkg_failed=yes
65913fi
65914 else
65915    pkg_failed=untried
65916fi
65917
65918
65919
65920if test $pkg_failed = yes; then
65921   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65922$as_echo "no" >&6; }
65923
65924if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65925        _pkg_short_errors_supported=yes
65926else
65927        _pkg_short_errors_supported=no
65928fi
65929        if test $_pkg_short_errors_supported = yes; then
65930	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
65931        else
65932	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
65933        fi
65934	# Put the nasty error message in config.log where it belongs
65935	echo "$LUA_PKG_ERRORS" >&5
65936
65937
65938
65939pkg_failed=no
65940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
65941$as_echo_n "checking for LUA... " >&6; }
65942
65943if test -n "$LUA_CFLAGS"; then
65944    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
65945 elif test -n "$PKG_CONFIG"; then
65946    if test -n "$PKG_CONFIG" && \
65947    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
65948  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
65949  ac_status=$?
65950  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65951  test $ac_status = 0; }; then
65952  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
65953		      test "x$?" != "x0" && pkg_failed=yes
65954else
65955  pkg_failed=yes
65956fi
65957 else
65958    pkg_failed=untried
65959fi
65960if test -n "$LUA_LIBS"; then
65961    pkg_cv_LUA_LIBS="$LUA_LIBS"
65962 elif test -n "$PKG_CONFIG"; then
65963    if test -n "$PKG_CONFIG" && \
65964    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
65965  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
65966  ac_status=$?
65967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65968  test $ac_status = 0; }; then
65969  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
65970		      test "x$?" != "x0" && pkg_failed=yes
65971else
65972  pkg_failed=yes
65973fi
65974 else
65975    pkg_failed=untried
65976fi
65977
65978
65979
65980if test $pkg_failed = yes; then
65981   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65982$as_echo "no" >&6; }
65983
65984if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65985        _pkg_short_errors_supported=yes
65986else
65987        _pkg_short_errors_supported=no
65988fi
65989        if test $_pkg_short_errors_supported = yes; then
65990	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
65991        else
65992	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
65993        fi
65994	# Put the nasty error message in config.log where it belongs
65995	echo "$LUA_PKG_ERRORS" >&5
65996
65997
65998
65999pkg_failed=no
66000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
66001$as_echo_n "checking for LUA... " >&6; }
66002
66003if test -n "$LUA_CFLAGS"; then
66004    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
66005 elif test -n "$PKG_CONFIG"; then
66006    if test -n "$PKG_CONFIG" && \
66007    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
66008  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
66009  ac_status=$?
66010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66011  test $ac_status = 0; }; then
66012  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
66013		      test "x$?" != "x0" && pkg_failed=yes
66014else
66015  pkg_failed=yes
66016fi
66017 else
66018    pkg_failed=untried
66019fi
66020if test -n "$LUA_LIBS"; then
66021    pkg_cv_LUA_LIBS="$LUA_LIBS"
66022 elif test -n "$PKG_CONFIG"; then
66023    if test -n "$PKG_CONFIG" && \
66024    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
66025  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
66026  ac_status=$?
66027  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66028  test $ac_status = 0; }; then
66029  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
66030		      test "x$?" != "x0" && pkg_failed=yes
66031else
66032  pkg_failed=yes
66033fi
66034 else
66035    pkg_failed=untried
66036fi
66037
66038
66039
66040if test $pkg_failed = yes; then
66041   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66042$as_echo "no" >&6; }
66043
66044if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66045        _pkg_short_errors_supported=yes
66046else
66047        _pkg_short_errors_supported=no
66048fi
66049        if test $_pkg_short_errors_supported = yes; then
66050	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
66051        else
66052	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
66053        fi
66054	# Put the nasty error message in config.log where it belongs
66055	echo "$LUA_PKG_ERRORS" >&5
66056
66057	with_liblua="no (pkg-config cannot find liblua)"
66058
66059elif test $pkg_failed = untried; then
66060     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66061$as_echo "no" >&6; }
66062	with_liblua="no (pkg-config cannot find liblua)"
66063
66064else
66065	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
66066	LUA_LIBS=$pkg_cv_LUA_LIBS
66067        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66068$as_echo "yes" >&6; }
66069	with_liblua="yes"
66070fi
66071
66072
66073elif test $pkg_failed = untried; then
66074     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66075$as_echo "no" >&6; }
66076
66077
66078pkg_failed=no
66079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
66080$as_echo_n "checking for LUA... " >&6; }
66081
66082if test -n "$LUA_CFLAGS"; then
66083    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
66084 elif test -n "$PKG_CONFIG"; then
66085    if test -n "$PKG_CONFIG" && \
66086    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
66087  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
66088  ac_status=$?
66089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66090  test $ac_status = 0; }; then
66091  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
66092		      test "x$?" != "x0" && pkg_failed=yes
66093else
66094  pkg_failed=yes
66095fi
66096 else
66097    pkg_failed=untried
66098fi
66099if test -n "$LUA_LIBS"; then
66100    pkg_cv_LUA_LIBS="$LUA_LIBS"
66101 elif test -n "$PKG_CONFIG"; then
66102    if test -n "$PKG_CONFIG" && \
66103    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
66104  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
66105  ac_status=$?
66106  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66107  test $ac_status = 0; }; then
66108  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
66109		      test "x$?" != "x0" && pkg_failed=yes
66110else
66111  pkg_failed=yes
66112fi
66113 else
66114    pkg_failed=untried
66115fi
66116
66117
66118
66119if test $pkg_failed = yes; then
66120   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66121$as_echo "no" >&6; }
66122
66123if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66124        _pkg_short_errors_supported=yes
66125else
66126        _pkg_short_errors_supported=no
66127fi
66128        if test $_pkg_short_errors_supported = yes; then
66129	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
66130        else
66131	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
66132        fi
66133	# Put the nasty error message in config.log where it belongs
66134	echo "$LUA_PKG_ERRORS" >&5
66135
66136	with_liblua="no (pkg-config cannot find liblua)"
66137
66138elif test $pkg_failed = untried; then
66139     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66140$as_echo "no" >&6; }
66141	with_liblua="no (pkg-config cannot find liblua)"
66142
66143else
66144	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
66145	LUA_LIBS=$pkg_cv_LUA_LIBS
66146        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66147$as_echo "yes" >&6; }
66148	with_liblua="yes"
66149fi
66150
66151
66152else
66153	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
66154	LUA_LIBS=$pkg_cv_LUA_LIBS
66155        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66156$as_echo "yes" >&6; }
66157	with_liblua="yes"
66158fi
66159
66160
66161elif test $pkg_failed = untried; then
66162     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66163$as_echo "no" >&6; }
66164
66165
66166pkg_failed=no
66167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
66168$as_echo_n "checking for LUA... " >&6; }
66169
66170if test -n "$LUA_CFLAGS"; then
66171    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
66172 elif test -n "$PKG_CONFIG"; then
66173    if test -n "$PKG_CONFIG" && \
66174    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
66175  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
66176  ac_status=$?
66177  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66178  test $ac_status = 0; }; then
66179  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
66180		      test "x$?" != "x0" && pkg_failed=yes
66181else
66182  pkg_failed=yes
66183fi
66184 else
66185    pkg_failed=untried
66186fi
66187if test -n "$LUA_LIBS"; then
66188    pkg_cv_LUA_LIBS="$LUA_LIBS"
66189 elif test -n "$PKG_CONFIG"; then
66190    if test -n "$PKG_CONFIG" && \
66191    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
66192  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
66193  ac_status=$?
66194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66195  test $ac_status = 0; }; then
66196  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
66197		      test "x$?" != "x0" && pkg_failed=yes
66198else
66199  pkg_failed=yes
66200fi
66201 else
66202    pkg_failed=untried
66203fi
66204
66205
66206
66207if test $pkg_failed = yes; then
66208   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66209$as_echo "no" >&6; }
66210
66211if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66212        _pkg_short_errors_supported=yes
66213else
66214        _pkg_short_errors_supported=no
66215fi
66216        if test $_pkg_short_errors_supported = yes; then
66217	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
66218        else
66219	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
66220        fi
66221	# Put the nasty error message in config.log where it belongs
66222	echo "$LUA_PKG_ERRORS" >&5
66223
66224
66225
66226pkg_failed=no
66227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
66228$as_echo_n "checking for LUA... " >&6; }
66229
66230if test -n "$LUA_CFLAGS"; then
66231    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
66232 elif test -n "$PKG_CONFIG"; then
66233    if test -n "$PKG_CONFIG" && \
66234    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
66235  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
66236  ac_status=$?
66237  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66238  test $ac_status = 0; }; then
66239  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
66240		      test "x$?" != "x0" && pkg_failed=yes
66241else
66242  pkg_failed=yes
66243fi
66244 else
66245    pkg_failed=untried
66246fi
66247if test -n "$LUA_LIBS"; then
66248    pkg_cv_LUA_LIBS="$LUA_LIBS"
66249 elif test -n "$PKG_CONFIG"; then
66250    if test -n "$PKG_CONFIG" && \
66251    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
66252  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
66253  ac_status=$?
66254  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66255  test $ac_status = 0; }; then
66256  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
66257		      test "x$?" != "x0" && pkg_failed=yes
66258else
66259  pkg_failed=yes
66260fi
66261 else
66262    pkg_failed=untried
66263fi
66264
66265
66266
66267if test $pkg_failed = yes; then
66268   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66269$as_echo "no" >&6; }
66270
66271if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66272        _pkg_short_errors_supported=yes
66273else
66274        _pkg_short_errors_supported=no
66275fi
66276        if test $_pkg_short_errors_supported = yes; then
66277	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
66278        else
66279	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
66280        fi
66281	# Put the nasty error message in config.log where it belongs
66282	echo "$LUA_PKG_ERRORS" >&5
66283
66284	with_liblua="no (pkg-config cannot find liblua)"
66285
66286elif test $pkg_failed = untried; then
66287     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66288$as_echo "no" >&6; }
66289	with_liblua="no (pkg-config cannot find liblua)"
66290
66291else
66292	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
66293	LUA_LIBS=$pkg_cv_LUA_LIBS
66294        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66295$as_echo "yes" >&6; }
66296	with_liblua="yes"
66297fi
66298
66299
66300elif test $pkg_failed = untried; then
66301     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66302$as_echo "no" >&6; }
66303
66304
66305pkg_failed=no
66306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
66307$as_echo_n "checking for LUA... " >&6; }
66308
66309if test -n "$LUA_CFLAGS"; then
66310    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
66311 elif test -n "$PKG_CONFIG"; then
66312    if test -n "$PKG_CONFIG" && \
66313    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
66314  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
66315  ac_status=$?
66316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66317  test $ac_status = 0; }; then
66318  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
66319		      test "x$?" != "x0" && pkg_failed=yes
66320else
66321  pkg_failed=yes
66322fi
66323 else
66324    pkg_failed=untried
66325fi
66326if test -n "$LUA_LIBS"; then
66327    pkg_cv_LUA_LIBS="$LUA_LIBS"
66328 elif test -n "$PKG_CONFIG"; then
66329    if test -n "$PKG_CONFIG" && \
66330    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
66331  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
66332  ac_status=$?
66333  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66334  test $ac_status = 0; }; then
66335  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
66336		      test "x$?" != "x0" && pkg_failed=yes
66337else
66338  pkg_failed=yes
66339fi
66340 else
66341    pkg_failed=untried
66342fi
66343
66344
66345
66346if test $pkg_failed = yes; then
66347   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66348$as_echo "no" >&6; }
66349
66350if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66351        _pkg_short_errors_supported=yes
66352else
66353        _pkg_short_errors_supported=no
66354fi
66355        if test $_pkg_short_errors_supported = yes; then
66356	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
66357        else
66358	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
66359        fi
66360	# Put the nasty error message in config.log where it belongs
66361	echo "$LUA_PKG_ERRORS" >&5
66362
66363	with_liblua="no (pkg-config cannot find liblua)"
66364
66365elif test $pkg_failed = untried; then
66366     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66367$as_echo "no" >&6; }
66368	with_liblua="no (pkg-config cannot find liblua)"
66369
66370else
66371	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
66372	LUA_LIBS=$pkg_cv_LUA_LIBS
66373        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66374$as_echo "yes" >&6; }
66375	with_liblua="yes"
66376fi
66377
66378
66379else
66380	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
66381	LUA_LIBS=$pkg_cv_LUA_LIBS
66382        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66383$as_echo "yes" >&6; }
66384	with_liblua="yes"
66385fi
66386
66387
66388else
66389	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
66390	LUA_LIBS=$pkg_cv_LUA_LIBS
66391        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66392$as_echo "yes" >&6; }
66393	with_liblua="yes"
66394fi
66395
66396
66397else
66398	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
66399	LUA_LIBS=$pkg_cv_LUA_LIBS
66400        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66401$as_echo "yes" >&6; }
66402	with_liblua="yes"
66403fi
66404
66405
66406else
66407	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
66408	LUA_LIBS=$pkg_cv_LUA_LIBS
66409        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66410$as_echo "yes" >&6; }
66411	with_liblua="yes"
66412fi
66413
66414
66415elif test $pkg_failed = untried; then
66416     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66417$as_echo "no" >&6; }
66418
66419
66420pkg_failed=no
66421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
66422$as_echo_n "checking for LUA... " >&6; }
66423
66424if test -n "$LUA_CFLAGS"; then
66425    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
66426 elif test -n "$PKG_CONFIG"; then
66427    if test -n "$PKG_CONFIG" && \
66428    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
66429  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
66430  ac_status=$?
66431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66432  test $ac_status = 0; }; then
66433  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
66434		      test "x$?" != "x0" && pkg_failed=yes
66435else
66436  pkg_failed=yes
66437fi
66438 else
66439    pkg_failed=untried
66440fi
66441if test -n "$LUA_LIBS"; then
66442    pkg_cv_LUA_LIBS="$LUA_LIBS"
66443 elif test -n "$PKG_CONFIG"; then
66444    if test -n "$PKG_CONFIG" && \
66445    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
66446  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
66447  ac_status=$?
66448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66449  test $ac_status = 0; }; then
66450  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
66451		      test "x$?" != "x0" && pkg_failed=yes
66452else
66453  pkg_failed=yes
66454fi
66455 else
66456    pkg_failed=untried
66457fi
66458
66459
66460
66461if test $pkg_failed = yes; then
66462   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66463$as_echo "no" >&6; }
66464
66465if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66466        _pkg_short_errors_supported=yes
66467else
66468        _pkg_short_errors_supported=no
66469fi
66470        if test $_pkg_short_errors_supported = yes; then
66471	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
66472        else
66473	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
66474        fi
66475	# Put the nasty error message in config.log where it belongs
66476	echo "$LUA_PKG_ERRORS" >&5
66477
66478
66479
66480pkg_failed=no
66481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
66482$as_echo_n "checking for LUA... " >&6; }
66483
66484if test -n "$LUA_CFLAGS"; then
66485    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
66486 elif test -n "$PKG_CONFIG"; then
66487    if test -n "$PKG_CONFIG" && \
66488    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
66489  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
66490  ac_status=$?
66491  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66492  test $ac_status = 0; }; then
66493  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
66494		      test "x$?" != "x0" && pkg_failed=yes
66495else
66496  pkg_failed=yes
66497fi
66498 else
66499    pkg_failed=untried
66500fi
66501if test -n "$LUA_LIBS"; then
66502    pkg_cv_LUA_LIBS="$LUA_LIBS"
66503 elif test -n "$PKG_CONFIG"; then
66504    if test -n "$PKG_CONFIG" && \
66505    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
66506  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
66507  ac_status=$?
66508  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66509  test $ac_status = 0; }; then
66510  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
66511		      test "x$?" != "x0" && pkg_failed=yes
66512else
66513  pkg_failed=yes
66514fi
66515 else
66516    pkg_failed=untried
66517fi
66518
66519
66520
66521if test $pkg_failed = yes; then
66522   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66523$as_echo "no" >&6; }
66524
66525if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66526        _pkg_short_errors_supported=yes
66527else
66528        _pkg_short_errors_supported=no
66529fi
66530        if test $_pkg_short_errors_supported = yes; then
66531	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
66532        else
66533	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
66534        fi
66535	# Put the nasty error message in config.log where it belongs
66536	echo "$LUA_PKG_ERRORS" >&5
66537
66538
66539
66540pkg_failed=no
66541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
66542$as_echo_n "checking for LUA... " >&6; }
66543
66544if test -n "$LUA_CFLAGS"; then
66545    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
66546 elif test -n "$PKG_CONFIG"; then
66547    if test -n "$PKG_CONFIG" && \
66548    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
66549  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
66550  ac_status=$?
66551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66552  test $ac_status = 0; }; then
66553  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
66554		      test "x$?" != "x0" && pkg_failed=yes
66555else
66556  pkg_failed=yes
66557fi
66558 else
66559    pkg_failed=untried
66560fi
66561if test -n "$LUA_LIBS"; then
66562    pkg_cv_LUA_LIBS="$LUA_LIBS"
66563 elif test -n "$PKG_CONFIG"; then
66564    if test -n "$PKG_CONFIG" && \
66565    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
66566  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
66567  ac_status=$?
66568  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66569  test $ac_status = 0; }; then
66570  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
66571		      test "x$?" != "x0" && pkg_failed=yes
66572else
66573  pkg_failed=yes
66574fi
66575 else
66576    pkg_failed=untried
66577fi
66578
66579
66580
66581if test $pkg_failed = yes; then
66582   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66583$as_echo "no" >&6; }
66584
66585if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66586        _pkg_short_errors_supported=yes
66587else
66588        _pkg_short_errors_supported=no
66589fi
66590        if test $_pkg_short_errors_supported = yes; then
66591	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
66592        else
66593	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
66594        fi
66595	# Put the nasty error message in config.log where it belongs
66596	echo "$LUA_PKG_ERRORS" >&5
66597
66598
66599
66600pkg_failed=no
66601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
66602$as_echo_n "checking for LUA... " >&6; }
66603
66604if test -n "$LUA_CFLAGS"; then
66605    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
66606 elif test -n "$PKG_CONFIG"; then
66607    if test -n "$PKG_CONFIG" && \
66608    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
66609  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
66610  ac_status=$?
66611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66612  test $ac_status = 0; }; then
66613  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
66614		      test "x$?" != "x0" && pkg_failed=yes
66615else
66616  pkg_failed=yes
66617fi
66618 else
66619    pkg_failed=untried
66620fi
66621if test -n "$LUA_LIBS"; then
66622    pkg_cv_LUA_LIBS="$LUA_LIBS"
66623 elif test -n "$PKG_CONFIG"; then
66624    if test -n "$PKG_CONFIG" && \
66625    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
66626  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
66627  ac_status=$?
66628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66629  test $ac_status = 0; }; then
66630  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
66631		      test "x$?" != "x0" && pkg_failed=yes
66632else
66633  pkg_failed=yes
66634fi
66635 else
66636    pkg_failed=untried
66637fi
66638
66639
66640
66641if test $pkg_failed = yes; then
66642   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66643$as_echo "no" >&6; }
66644
66645if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66646        _pkg_short_errors_supported=yes
66647else
66648        _pkg_short_errors_supported=no
66649fi
66650        if test $_pkg_short_errors_supported = yes; then
66651	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
66652        else
66653	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
66654        fi
66655	# Put the nasty error message in config.log where it belongs
66656	echo "$LUA_PKG_ERRORS" >&5
66657
66658
66659
66660pkg_failed=no
66661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
66662$as_echo_n "checking for LUA... " >&6; }
66663
66664if test -n "$LUA_CFLAGS"; then
66665    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
66666 elif test -n "$PKG_CONFIG"; then
66667    if test -n "$PKG_CONFIG" && \
66668    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
66669  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
66670  ac_status=$?
66671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66672  test $ac_status = 0; }; then
66673  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
66674		      test "x$?" != "x0" && pkg_failed=yes
66675else
66676  pkg_failed=yes
66677fi
66678 else
66679    pkg_failed=untried
66680fi
66681if test -n "$LUA_LIBS"; then
66682    pkg_cv_LUA_LIBS="$LUA_LIBS"
66683 elif test -n "$PKG_CONFIG"; then
66684    if test -n "$PKG_CONFIG" && \
66685    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
66686  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
66687  ac_status=$?
66688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66689  test $ac_status = 0; }; then
66690  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
66691		      test "x$?" != "x0" && pkg_failed=yes
66692else
66693  pkg_failed=yes
66694fi
66695 else
66696    pkg_failed=untried
66697fi
66698
66699
66700
66701if test $pkg_failed = yes; then
66702   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66703$as_echo "no" >&6; }
66704
66705if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66706        _pkg_short_errors_supported=yes
66707else
66708        _pkg_short_errors_supported=no
66709fi
66710        if test $_pkg_short_errors_supported = yes; then
66711	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
66712        else
66713	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
66714        fi
66715	# Put the nasty error message in config.log where it belongs
66716	echo "$LUA_PKG_ERRORS" >&5
66717
66718	with_liblua="no (pkg-config cannot find liblua)"
66719
66720elif test $pkg_failed = untried; then
66721     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66722$as_echo "no" >&6; }
66723	with_liblua="no (pkg-config cannot find liblua)"
66724
66725else
66726	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
66727	LUA_LIBS=$pkg_cv_LUA_LIBS
66728        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66729$as_echo "yes" >&6; }
66730	with_liblua="yes"
66731fi
66732
66733
66734elif test $pkg_failed = untried; then
66735     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66736$as_echo "no" >&6; }
66737
66738
66739pkg_failed=no
66740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
66741$as_echo_n "checking for LUA... " >&6; }
66742
66743if test -n "$LUA_CFLAGS"; then
66744    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
66745 elif test -n "$PKG_CONFIG"; then
66746    if test -n "$PKG_CONFIG" && \
66747    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
66748  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
66749  ac_status=$?
66750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66751  test $ac_status = 0; }; then
66752  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
66753		      test "x$?" != "x0" && pkg_failed=yes
66754else
66755  pkg_failed=yes
66756fi
66757 else
66758    pkg_failed=untried
66759fi
66760if test -n "$LUA_LIBS"; then
66761    pkg_cv_LUA_LIBS="$LUA_LIBS"
66762 elif test -n "$PKG_CONFIG"; then
66763    if test -n "$PKG_CONFIG" && \
66764    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
66765  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
66766  ac_status=$?
66767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66768  test $ac_status = 0; }; then
66769  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
66770		      test "x$?" != "x0" && pkg_failed=yes
66771else
66772  pkg_failed=yes
66773fi
66774 else
66775    pkg_failed=untried
66776fi
66777
66778
66779
66780if test $pkg_failed = yes; then
66781   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66782$as_echo "no" >&6; }
66783
66784if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66785        _pkg_short_errors_supported=yes
66786else
66787        _pkg_short_errors_supported=no
66788fi
66789        if test $_pkg_short_errors_supported = yes; then
66790	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
66791        else
66792	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
66793        fi
66794	# Put the nasty error message in config.log where it belongs
66795	echo "$LUA_PKG_ERRORS" >&5
66796
66797	with_liblua="no (pkg-config cannot find liblua)"
66798
66799elif test $pkg_failed = untried; then
66800     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66801$as_echo "no" >&6; }
66802	with_liblua="no (pkg-config cannot find liblua)"
66803
66804else
66805	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
66806	LUA_LIBS=$pkg_cv_LUA_LIBS
66807        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66808$as_echo "yes" >&6; }
66809	with_liblua="yes"
66810fi
66811
66812
66813else
66814	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
66815	LUA_LIBS=$pkg_cv_LUA_LIBS
66816        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66817$as_echo "yes" >&6; }
66818	with_liblua="yes"
66819fi
66820
66821
66822elif test $pkg_failed = untried; then
66823     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66824$as_echo "no" >&6; }
66825
66826
66827pkg_failed=no
66828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
66829$as_echo_n "checking for LUA... " >&6; }
66830
66831if test -n "$LUA_CFLAGS"; then
66832    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
66833 elif test -n "$PKG_CONFIG"; then
66834    if test -n "$PKG_CONFIG" && \
66835    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
66836  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
66837  ac_status=$?
66838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66839  test $ac_status = 0; }; then
66840  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
66841		      test "x$?" != "x0" && pkg_failed=yes
66842else
66843  pkg_failed=yes
66844fi
66845 else
66846    pkg_failed=untried
66847fi
66848if test -n "$LUA_LIBS"; then
66849    pkg_cv_LUA_LIBS="$LUA_LIBS"
66850 elif test -n "$PKG_CONFIG"; then
66851    if test -n "$PKG_CONFIG" && \
66852    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
66853  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
66854  ac_status=$?
66855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66856  test $ac_status = 0; }; then
66857  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
66858		      test "x$?" != "x0" && pkg_failed=yes
66859else
66860  pkg_failed=yes
66861fi
66862 else
66863    pkg_failed=untried
66864fi
66865
66866
66867
66868if test $pkg_failed = yes; then
66869   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66870$as_echo "no" >&6; }
66871
66872if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66873        _pkg_short_errors_supported=yes
66874else
66875        _pkg_short_errors_supported=no
66876fi
66877        if test $_pkg_short_errors_supported = yes; then
66878	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
66879        else
66880	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
66881        fi
66882	# Put the nasty error message in config.log where it belongs
66883	echo "$LUA_PKG_ERRORS" >&5
66884
66885
66886
66887pkg_failed=no
66888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
66889$as_echo_n "checking for LUA... " >&6; }
66890
66891if test -n "$LUA_CFLAGS"; then
66892    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
66893 elif test -n "$PKG_CONFIG"; then
66894    if test -n "$PKG_CONFIG" && \
66895    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
66896  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
66897  ac_status=$?
66898  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66899  test $ac_status = 0; }; then
66900  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
66901		      test "x$?" != "x0" && pkg_failed=yes
66902else
66903  pkg_failed=yes
66904fi
66905 else
66906    pkg_failed=untried
66907fi
66908if test -n "$LUA_LIBS"; then
66909    pkg_cv_LUA_LIBS="$LUA_LIBS"
66910 elif test -n "$PKG_CONFIG"; then
66911    if test -n "$PKG_CONFIG" && \
66912    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
66913  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
66914  ac_status=$?
66915  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66916  test $ac_status = 0; }; then
66917  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
66918		      test "x$?" != "x0" && pkg_failed=yes
66919else
66920  pkg_failed=yes
66921fi
66922 else
66923    pkg_failed=untried
66924fi
66925
66926
66927
66928if test $pkg_failed = yes; then
66929   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66930$as_echo "no" >&6; }
66931
66932if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66933        _pkg_short_errors_supported=yes
66934else
66935        _pkg_short_errors_supported=no
66936fi
66937        if test $_pkg_short_errors_supported = yes; then
66938	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
66939        else
66940	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
66941        fi
66942	# Put the nasty error message in config.log where it belongs
66943	echo "$LUA_PKG_ERRORS" >&5
66944
66945	with_liblua="no (pkg-config cannot find liblua)"
66946
66947elif test $pkg_failed = untried; then
66948     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66949$as_echo "no" >&6; }
66950	with_liblua="no (pkg-config cannot find liblua)"
66951
66952else
66953	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
66954	LUA_LIBS=$pkg_cv_LUA_LIBS
66955        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66956$as_echo "yes" >&6; }
66957	with_liblua="yes"
66958fi
66959
66960
66961elif test $pkg_failed = untried; then
66962     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66963$as_echo "no" >&6; }
66964
66965
66966pkg_failed=no
66967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
66968$as_echo_n "checking for LUA... " >&6; }
66969
66970if test -n "$LUA_CFLAGS"; then
66971    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
66972 elif test -n "$PKG_CONFIG"; then
66973    if test -n "$PKG_CONFIG" && \
66974    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
66975  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
66976  ac_status=$?
66977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66978  test $ac_status = 0; }; then
66979  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
66980		      test "x$?" != "x0" && pkg_failed=yes
66981else
66982  pkg_failed=yes
66983fi
66984 else
66985    pkg_failed=untried
66986fi
66987if test -n "$LUA_LIBS"; then
66988    pkg_cv_LUA_LIBS="$LUA_LIBS"
66989 elif test -n "$PKG_CONFIG"; then
66990    if test -n "$PKG_CONFIG" && \
66991    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
66992  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
66993  ac_status=$?
66994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66995  test $ac_status = 0; }; then
66996  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
66997		      test "x$?" != "x0" && pkg_failed=yes
66998else
66999  pkg_failed=yes
67000fi
67001 else
67002    pkg_failed=untried
67003fi
67004
67005
67006
67007if test $pkg_failed = yes; then
67008   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67009$as_echo "no" >&6; }
67010
67011if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67012        _pkg_short_errors_supported=yes
67013else
67014        _pkg_short_errors_supported=no
67015fi
67016        if test $_pkg_short_errors_supported = yes; then
67017	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
67018        else
67019	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
67020        fi
67021	# Put the nasty error message in config.log where it belongs
67022	echo "$LUA_PKG_ERRORS" >&5
67023
67024	with_liblua="no (pkg-config cannot find liblua)"
67025
67026elif test $pkg_failed = untried; then
67027     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67028$as_echo "no" >&6; }
67029	with_liblua="no (pkg-config cannot find liblua)"
67030
67031else
67032	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
67033	LUA_LIBS=$pkg_cv_LUA_LIBS
67034        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67035$as_echo "yes" >&6; }
67036	with_liblua="yes"
67037fi
67038
67039
67040else
67041	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
67042	LUA_LIBS=$pkg_cv_LUA_LIBS
67043        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67044$as_echo "yes" >&6; }
67045	with_liblua="yes"
67046fi
67047
67048
67049else
67050	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
67051	LUA_LIBS=$pkg_cv_LUA_LIBS
67052        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67053$as_echo "yes" >&6; }
67054	with_liblua="yes"
67055fi
67056
67057
67058elif test $pkg_failed = untried; then
67059     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67060$as_echo "no" >&6; }
67061
67062
67063pkg_failed=no
67064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
67065$as_echo_n "checking for LUA... " >&6; }
67066
67067if test -n "$LUA_CFLAGS"; then
67068    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
67069 elif test -n "$PKG_CONFIG"; then
67070    if test -n "$PKG_CONFIG" && \
67071    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
67072  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
67073  ac_status=$?
67074  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67075  test $ac_status = 0; }; then
67076  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
67077		      test "x$?" != "x0" && pkg_failed=yes
67078else
67079  pkg_failed=yes
67080fi
67081 else
67082    pkg_failed=untried
67083fi
67084if test -n "$LUA_LIBS"; then
67085    pkg_cv_LUA_LIBS="$LUA_LIBS"
67086 elif test -n "$PKG_CONFIG"; then
67087    if test -n "$PKG_CONFIG" && \
67088    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
67089  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
67090  ac_status=$?
67091  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67092  test $ac_status = 0; }; then
67093  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
67094		      test "x$?" != "x0" && pkg_failed=yes
67095else
67096  pkg_failed=yes
67097fi
67098 else
67099    pkg_failed=untried
67100fi
67101
67102
67103
67104if test $pkg_failed = yes; then
67105   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67106$as_echo "no" >&6; }
67107
67108if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67109        _pkg_short_errors_supported=yes
67110else
67111        _pkg_short_errors_supported=no
67112fi
67113        if test $_pkg_short_errors_supported = yes; then
67114	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
67115        else
67116	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
67117        fi
67118	# Put the nasty error message in config.log where it belongs
67119	echo "$LUA_PKG_ERRORS" >&5
67120
67121
67122
67123pkg_failed=no
67124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
67125$as_echo_n "checking for LUA... " >&6; }
67126
67127if test -n "$LUA_CFLAGS"; then
67128    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
67129 elif test -n "$PKG_CONFIG"; then
67130    if test -n "$PKG_CONFIG" && \
67131    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
67132  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
67133  ac_status=$?
67134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67135  test $ac_status = 0; }; then
67136  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
67137		      test "x$?" != "x0" && pkg_failed=yes
67138else
67139  pkg_failed=yes
67140fi
67141 else
67142    pkg_failed=untried
67143fi
67144if test -n "$LUA_LIBS"; then
67145    pkg_cv_LUA_LIBS="$LUA_LIBS"
67146 elif test -n "$PKG_CONFIG"; then
67147    if test -n "$PKG_CONFIG" && \
67148    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
67149  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
67150  ac_status=$?
67151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67152  test $ac_status = 0; }; then
67153  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
67154		      test "x$?" != "x0" && pkg_failed=yes
67155else
67156  pkg_failed=yes
67157fi
67158 else
67159    pkg_failed=untried
67160fi
67161
67162
67163
67164if test $pkg_failed = yes; then
67165   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67166$as_echo "no" >&6; }
67167
67168if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67169        _pkg_short_errors_supported=yes
67170else
67171        _pkg_short_errors_supported=no
67172fi
67173        if test $_pkg_short_errors_supported = yes; then
67174	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
67175        else
67176	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
67177        fi
67178	# Put the nasty error message in config.log where it belongs
67179	echo "$LUA_PKG_ERRORS" >&5
67180
67181
67182
67183pkg_failed=no
67184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
67185$as_echo_n "checking for LUA... " >&6; }
67186
67187if test -n "$LUA_CFLAGS"; then
67188    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
67189 elif test -n "$PKG_CONFIG"; then
67190    if test -n "$PKG_CONFIG" && \
67191    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
67192  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
67193  ac_status=$?
67194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67195  test $ac_status = 0; }; then
67196  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
67197		      test "x$?" != "x0" && pkg_failed=yes
67198else
67199  pkg_failed=yes
67200fi
67201 else
67202    pkg_failed=untried
67203fi
67204if test -n "$LUA_LIBS"; then
67205    pkg_cv_LUA_LIBS="$LUA_LIBS"
67206 elif test -n "$PKG_CONFIG"; then
67207    if test -n "$PKG_CONFIG" && \
67208    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
67209  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
67210  ac_status=$?
67211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67212  test $ac_status = 0; }; then
67213  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
67214		      test "x$?" != "x0" && pkg_failed=yes
67215else
67216  pkg_failed=yes
67217fi
67218 else
67219    pkg_failed=untried
67220fi
67221
67222
67223
67224if test $pkg_failed = yes; then
67225   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67226$as_echo "no" >&6; }
67227
67228if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67229        _pkg_short_errors_supported=yes
67230else
67231        _pkg_short_errors_supported=no
67232fi
67233        if test $_pkg_short_errors_supported = yes; then
67234	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
67235        else
67236	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
67237        fi
67238	# Put the nasty error message in config.log where it belongs
67239	echo "$LUA_PKG_ERRORS" >&5
67240
67241	with_liblua="no (pkg-config cannot find liblua)"
67242
67243elif test $pkg_failed = untried; then
67244     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67245$as_echo "no" >&6; }
67246	with_liblua="no (pkg-config cannot find liblua)"
67247
67248else
67249	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
67250	LUA_LIBS=$pkg_cv_LUA_LIBS
67251        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67252$as_echo "yes" >&6; }
67253	with_liblua="yes"
67254fi
67255
67256
67257elif test $pkg_failed = untried; then
67258     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67259$as_echo "no" >&6; }
67260
67261
67262pkg_failed=no
67263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
67264$as_echo_n "checking for LUA... " >&6; }
67265
67266if test -n "$LUA_CFLAGS"; then
67267    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
67268 elif test -n "$PKG_CONFIG"; then
67269    if test -n "$PKG_CONFIG" && \
67270    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
67271  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
67272  ac_status=$?
67273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67274  test $ac_status = 0; }; then
67275  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
67276		      test "x$?" != "x0" && pkg_failed=yes
67277else
67278  pkg_failed=yes
67279fi
67280 else
67281    pkg_failed=untried
67282fi
67283if test -n "$LUA_LIBS"; then
67284    pkg_cv_LUA_LIBS="$LUA_LIBS"
67285 elif test -n "$PKG_CONFIG"; then
67286    if test -n "$PKG_CONFIG" && \
67287    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
67288  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
67289  ac_status=$?
67290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67291  test $ac_status = 0; }; then
67292  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
67293		      test "x$?" != "x0" && pkg_failed=yes
67294else
67295  pkg_failed=yes
67296fi
67297 else
67298    pkg_failed=untried
67299fi
67300
67301
67302
67303if test $pkg_failed = yes; then
67304   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67305$as_echo "no" >&6; }
67306
67307if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67308        _pkg_short_errors_supported=yes
67309else
67310        _pkg_short_errors_supported=no
67311fi
67312        if test $_pkg_short_errors_supported = yes; then
67313	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
67314        else
67315	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
67316        fi
67317	# Put the nasty error message in config.log where it belongs
67318	echo "$LUA_PKG_ERRORS" >&5
67319
67320	with_liblua="no (pkg-config cannot find liblua)"
67321
67322elif test $pkg_failed = untried; then
67323     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67324$as_echo "no" >&6; }
67325	with_liblua="no (pkg-config cannot find liblua)"
67326
67327else
67328	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
67329	LUA_LIBS=$pkg_cv_LUA_LIBS
67330        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67331$as_echo "yes" >&6; }
67332	with_liblua="yes"
67333fi
67334
67335
67336else
67337	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
67338	LUA_LIBS=$pkg_cv_LUA_LIBS
67339        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67340$as_echo "yes" >&6; }
67341	with_liblua="yes"
67342fi
67343
67344
67345elif test $pkg_failed = untried; then
67346     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67347$as_echo "no" >&6; }
67348
67349
67350pkg_failed=no
67351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
67352$as_echo_n "checking for LUA... " >&6; }
67353
67354if test -n "$LUA_CFLAGS"; then
67355    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
67356 elif test -n "$PKG_CONFIG"; then
67357    if test -n "$PKG_CONFIG" && \
67358    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
67359  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
67360  ac_status=$?
67361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67362  test $ac_status = 0; }; then
67363  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
67364		      test "x$?" != "x0" && pkg_failed=yes
67365else
67366  pkg_failed=yes
67367fi
67368 else
67369    pkg_failed=untried
67370fi
67371if test -n "$LUA_LIBS"; then
67372    pkg_cv_LUA_LIBS="$LUA_LIBS"
67373 elif test -n "$PKG_CONFIG"; then
67374    if test -n "$PKG_CONFIG" && \
67375    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
67376  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
67377  ac_status=$?
67378  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67379  test $ac_status = 0; }; then
67380  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
67381		      test "x$?" != "x0" && pkg_failed=yes
67382else
67383  pkg_failed=yes
67384fi
67385 else
67386    pkg_failed=untried
67387fi
67388
67389
67390
67391if test $pkg_failed = yes; then
67392   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67393$as_echo "no" >&6; }
67394
67395if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67396        _pkg_short_errors_supported=yes
67397else
67398        _pkg_short_errors_supported=no
67399fi
67400        if test $_pkg_short_errors_supported = yes; then
67401	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
67402        else
67403	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
67404        fi
67405	# Put the nasty error message in config.log where it belongs
67406	echo "$LUA_PKG_ERRORS" >&5
67407
67408
67409
67410pkg_failed=no
67411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
67412$as_echo_n "checking for LUA... " >&6; }
67413
67414if test -n "$LUA_CFLAGS"; then
67415    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
67416 elif test -n "$PKG_CONFIG"; then
67417    if test -n "$PKG_CONFIG" && \
67418    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
67419  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
67420  ac_status=$?
67421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67422  test $ac_status = 0; }; then
67423  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
67424		      test "x$?" != "x0" && pkg_failed=yes
67425else
67426  pkg_failed=yes
67427fi
67428 else
67429    pkg_failed=untried
67430fi
67431if test -n "$LUA_LIBS"; then
67432    pkg_cv_LUA_LIBS="$LUA_LIBS"
67433 elif test -n "$PKG_CONFIG"; then
67434    if test -n "$PKG_CONFIG" && \
67435    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
67436  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
67437  ac_status=$?
67438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67439  test $ac_status = 0; }; then
67440  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
67441		      test "x$?" != "x0" && pkg_failed=yes
67442else
67443  pkg_failed=yes
67444fi
67445 else
67446    pkg_failed=untried
67447fi
67448
67449
67450
67451if test $pkg_failed = yes; then
67452   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67453$as_echo "no" >&6; }
67454
67455if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67456        _pkg_short_errors_supported=yes
67457else
67458        _pkg_short_errors_supported=no
67459fi
67460        if test $_pkg_short_errors_supported = yes; then
67461	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
67462        else
67463	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
67464        fi
67465	# Put the nasty error message in config.log where it belongs
67466	echo "$LUA_PKG_ERRORS" >&5
67467
67468	with_liblua="no (pkg-config cannot find liblua)"
67469
67470elif test $pkg_failed = untried; then
67471     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67472$as_echo "no" >&6; }
67473	with_liblua="no (pkg-config cannot find liblua)"
67474
67475else
67476	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
67477	LUA_LIBS=$pkg_cv_LUA_LIBS
67478        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67479$as_echo "yes" >&6; }
67480	with_liblua="yes"
67481fi
67482
67483
67484elif test $pkg_failed = untried; then
67485     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67486$as_echo "no" >&6; }
67487
67488
67489pkg_failed=no
67490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
67491$as_echo_n "checking for LUA... " >&6; }
67492
67493if test -n "$LUA_CFLAGS"; then
67494    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
67495 elif test -n "$PKG_CONFIG"; then
67496    if test -n "$PKG_CONFIG" && \
67497    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
67498  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
67499  ac_status=$?
67500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67501  test $ac_status = 0; }; then
67502  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
67503		      test "x$?" != "x0" && pkg_failed=yes
67504else
67505  pkg_failed=yes
67506fi
67507 else
67508    pkg_failed=untried
67509fi
67510if test -n "$LUA_LIBS"; then
67511    pkg_cv_LUA_LIBS="$LUA_LIBS"
67512 elif test -n "$PKG_CONFIG"; then
67513    if test -n "$PKG_CONFIG" && \
67514    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
67515  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
67516  ac_status=$?
67517  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67518  test $ac_status = 0; }; then
67519  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
67520		      test "x$?" != "x0" && pkg_failed=yes
67521else
67522  pkg_failed=yes
67523fi
67524 else
67525    pkg_failed=untried
67526fi
67527
67528
67529
67530if test $pkg_failed = yes; then
67531   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67532$as_echo "no" >&6; }
67533
67534if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67535        _pkg_short_errors_supported=yes
67536else
67537        _pkg_short_errors_supported=no
67538fi
67539        if test $_pkg_short_errors_supported = yes; then
67540	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
67541        else
67542	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
67543        fi
67544	# Put the nasty error message in config.log where it belongs
67545	echo "$LUA_PKG_ERRORS" >&5
67546
67547	with_liblua="no (pkg-config cannot find liblua)"
67548
67549elif test $pkg_failed = untried; then
67550     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67551$as_echo "no" >&6; }
67552	with_liblua="no (pkg-config cannot find liblua)"
67553
67554else
67555	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
67556	LUA_LIBS=$pkg_cv_LUA_LIBS
67557        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67558$as_echo "yes" >&6; }
67559	with_liblua="yes"
67560fi
67561
67562
67563else
67564	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
67565	LUA_LIBS=$pkg_cv_LUA_LIBS
67566        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67567$as_echo "yes" >&6; }
67568	with_liblua="yes"
67569fi
67570
67571
67572else
67573	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
67574	LUA_LIBS=$pkg_cv_LUA_LIBS
67575        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67576$as_echo "yes" >&6; }
67577	with_liblua="yes"
67578fi
67579
67580
67581else
67582	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
67583	LUA_LIBS=$pkg_cv_LUA_LIBS
67584        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67585$as_echo "yes" >&6; }
67586	with_liblua="yes"
67587fi
67588
67589
67590elif test $pkg_failed = untried; then
67591     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67592$as_echo "no" >&6; }
67593
67594
67595pkg_failed=no
67596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
67597$as_echo_n "checking for LUA... " >&6; }
67598
67599if test -n "$LUA_CFLAGS"; then
67600    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
67601 elif test -n "$PKG_CONFIG"; then
67602    if test -n "$PKG_CONFIG" && \
67603    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
67604  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
67605  ac_status=$?
67606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67607  test $ac_status = 0; }; then
67608  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
67609		      test "x$?" != "x0" && pkg_failed=yes
67610else
67611  pkg_failed=yes
67612fi
67613 else
67614    pkg_failed=untried
67615fi
67616if test -n "$LUA_LIBS"; then
67617    pkg_cv_LUA_LIBS="$LUA_LIBS"
67618 elif test -n "$PKG_CONFIG"; then
67619    if test -n "$PKG_CONFIG" && \
67620    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
67621  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
67622  ac_status=$?
67623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67624  test $ac_status = 0; }; then
67625  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
67626		      test "x$?" != "x0" && pkg_failed=yes
67627else
67628  pkg_failed=yes
67629fi
67630 else
67631    pkg_failed=untried
67632fi
67633
67634
67635
67636if test $pkg_failed = yes; then
67637   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67638$as_echo "no" >&6; }
67639
67640if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67641        _pkg_short_errors_supported=yes
67642else
67643        _pkg_short_errors_supported=no
67644fi
67645        if test $_pkg_short_errors_supported = yes; then
67646	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
67647        else
67648	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
67649        fi
67650	# Put the nasty error message in config.log where it belongs
67651	echo "$LUA_PKG_ERRORS" >&5
67652
67653
67654
67655pkg_failed=no
67656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
67657$as_echo_n "checking for LUA... " >&6; }
67658
67659if test -n "$LUA_CFLAGS"; then
67660    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
67661 elif test -n "$PKG_CONFIG"; then
67662    if test -n "$PKG_CONFIG" && \
67663    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
67664  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
67665  ac_status=$?
67666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67667  test $ac_status = 0; }; then
67668  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
67669		      test "x$?" != "x0" && pkg_failed=yes
67670else
67671  pkg_failed=yes
67672fi
67673 else
67674    pkg_failed=untried
67675fi
67676if test -n "$LUA_LIBS"; then
67677    pkg_cv_LUA_LIBS="$LUA_LIBS"
67678 elif test -n "$PKG_CONFIG"; then
67679    if test -n "$PKG_CONFIG" && \
67680    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
67681  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
67682  ac_status=$?
67683  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67684  test $ac_status = 0; }; then
67685  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
67686		      test "x$?" != "x0" && pkg_failed=yes
67687else
67688  pkg_failed=yes
67689fi
67690 else
67691    pkg_failed=untried
67692fi
67693
67694
67695
67696if test $pkg_failed = yes; then
67697   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67698$as_echo "no" >&6; }
67699
67700if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67701        _pkg_short_errors_supported=yes
67702else
67703        _pkg_short_errors_supported=no
67704fi
67705        if test $_pkg_short_errors_supported = yes; then
67706	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
67707        else
67708	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
67709        fi
67710	# Put the nasty error message in config.log where it belongs
67711	echo "$LUA_PKG_ERRORS" >&5
67712
67713
67714
67715pkg_failed=no
67716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
67717$as_echo_n "checking for LUA... " >&6; }
67718
67719if test -n "$LUA_CFLAGS"; then
67720    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
67721 elif test -n "$PKG_CONFIG"; then
67722    if test -n "$PKG_CONFIG" && \
67723    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
67724  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
67725  ac_status=$?
67726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67727  test $ac_status = 0; }; then
67728  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
67729		      test "x$?" != "x0" && pkg_failed=yes
67730else
67731  pkg_failed=yes
67732fi
67733 else
67734    pkg_failed=untried
67735fi
67736if test -n "$LUA_LIBS"; then
67737    pkg_cv_LUA_LIBS="$LUA_LIBS"
67738 elif test -n "$PKG_CONFIG"; then
67739    if test -n "$PKG_CONFIG" && \
67740    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
67741  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
67742  ac_status=$?
67743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67744  test $ac_status = 0; }; then
67745  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
67746		      test "x$?" != "x0" && pkg_failed=yes
67747else
67748  pkg_failed=yes
67749fi
67750 else
67751    pkg_failed=untried
67752fi
67753
67754
67755
67756if test $pkg_failed = yes; then
67757   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67758$as_echo "no" >&6; }
67759
67760if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67761        _pkg_short_errors_supported=yes
67762else
67763        _pkg_short_errors_supported=no
67764fi
67765        if test $_pkg_short_errors_supported = yes; then
67766	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
67767        else
67768	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
67769        fi
67770	# Put the nasty error message in config.log where it belongs
67771	echo "$LUA_PKG_ERRORS" >&5
67772
67773
67774
67775pkg_failed=no
67776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
67777$as_echo_n "checking for LUA... " >&6; }
67778
67779if test -n "$LUA_CFLAGS"; then
67780    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
67781 elif test -n "$PKG_CONFIG"; then
67782    if test -n "$PKG_CONFIG" && \
67783    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
67784  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
67785  ac_status=$?
67786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67787  test $ac_status = 0; }; then
67788  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
67789		      test "x$?" != "x0" && pkg_failed=yes
67790else
67791  pkg_failed=yes
67792fi
67793 else
67794    pkg_failed=untried
67795fi
67796if test -n "$LUA_LIBS"; then
67797    pkg_cv_LUA_LIBS="$LUA_LIBS"
67798 elif test -n "$PKG_CONFIG"; then
67799    if test -n "$PKG_CONFIG" && \
67800    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
67801  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
67802  ac_status=$?
67803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67804  test $ac_status = 0; }; then
67805  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
67806		      test "x$?" != "x0" && pkg_failed=yes
67807else
67808  pkg_failed=yes
67809fi
67810 else
67811    pkg_failed=untried
67812fi
67813
67814
67815
67816if test $pkg_failed = yes; then
67817   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67818$as_echo "no" >&6; }
67819
67820if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67821        _pkg_short_errors_supported=yes
67822else
67823        _pkg_short_errors_supported=no
67824fi
67825        if test $_pkg_short_errors_supported = yes; then
67826	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
67827        else
67828	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
67829        fi
67830	# Put the nasty error message in config.log where it belongs
67831	echo "$LUA_PKG_ERRORS" >&5
67832
67833	with_liblua="no (pkg-config cannot find liblua)"
67834
67835elif test $pkg_failed = untried; then
67836     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67837$as_echo "no" >&6; }
67838	with_liblua="no (pkg-config cannot find liblua)"
67839
67840else
67841	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
67842	LUA_LIBS=$pkg_cv_LUA_LIBS
67843        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67844$as_echo "yes" >&6; }
67845	with_liblua="yes"
67846fi
67847
67848
67849elif test $pkg_failed = untried; then
67850     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67851$as_echo "no" >&6; }
67852
67853
67854pkg_failed=no
67855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
67856$as_echo_n "checking for LUA... " >&6; }
67857
67858if test -n "$LUA_CFLAGS"; then
67859    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
67860 elif test -n "$PKG_CONFIG"; then
67861    if test -n "$PKG_CONFIG" && \
67862    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
67863  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
67864  ac_status=$?
67865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67866  test $ac_status = 0; }; then
67867  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
67868		      test "x$?" != "x0" && pkg_failed=yes
67869else
67870  pkg_failed=yes
67871fi
67872 else
67873    pkg_failed=untried
67874fi
67875if test -n "$LUA_LIBS"; then
67876    pkg_cv_LUA_LIBS="$LUA_LIBS"
67877 elif test -n "$PKG_CONFIG"; then
67878    if test -n "$PKG_CONFIG" && \
67879    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
67880  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
67881  ac_status=$?
67882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67883  test $ac_status = 0; }; then
67884  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
67885		      test "x$?" != "x0" && pkg_failed=yes
67886else
67887  pkg_failed=yes
67888fi
67889 else
67890    pkg_failed=untried
67891fi
67892
67893
67894
67895if test $pkg_failed = yes; then
67896   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67897$as_echo "no" >&6; }
67898
67899if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67900        _pkg_short_errors_supported=yes
67901else
67902        _pkg_short_errors_supported=no
67903fi
67904        if test $_pkg_short_errors_supported = yes; then
67905	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
67906        else
67907	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
67908        fi
67909	# Put the nasty error message in config.log where it belongs
67910	echo "$LUA_PKG_ERRORS" >&5
67911
67912	with_liblua="no (pkg-config cannot find liblua)"
67913
67914elif test $pkg_failed = untried; then
67915     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67916$as_echo "no" >&6; }
67917	with_liblua="no (pkg-config cannot find liblua)"
67918
67919else
67920	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
67921	LUA_LIBS=$pkg_cv_LUA_LIBS
67922        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67923$as_echo "yes" >&6; }
67924	with_liblua="yes"
67925fi
67926
67927
67928else
67929	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
67930	LUA_LIBS=$pkg_cv_LUA_LIBS
67931        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67932$as_echo "yes" >&6; }
67933	with_liblua="yes"
67934fi
67935
67936
67937elif test $pkg_failed = untried; then
67938     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67939$as_echo "no" >&6; }
67940
67941
67942pkg_failed=no
67943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
67944$as_echo_n "checking for LUA... " >&6; }
67945
67946if test -n "$LUA_CFLAGS"; then
67947    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
67948 elif test -n "$PKG_CONFIG"; then
67949    if test -n "$PKG_CONFIG" && \
67950    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
67951  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
67952  ac_status=$?
67953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67954  test $ac_status = 0; }; then
67955  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
67956		      test "x$?" != "x0" && pkg_failed=yes
67957else
67958  pkg_failed=yes
67959fi
67960 else
67961    pkg_failed=untried
67962fi
67963if test -n "$LUA_LIBS"; then
67964    pkg_cv_LUA_LIBS="$LUA_LIBS"
67965 elif test -n "$PKG_CONFIG"; then
67966    if test -n "$PKG_CONFIG" && \
67967    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
67968  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
67969  ac_status=$?
67970  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67971  test $ac_status = 0; }; then
67972  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
67973		      test "x$?" != "x0" && pkg_failed=yes
67974else
67975  pkg_failed=yes
67976fi
67977 else
67978    pkg_failed=untried
67979fi
67980
67981
67982
67983if test $pkg_failed = yes; then
67984   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67985$as_echo "no" >&6; }
67986
67987if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67988        _pkg_short_errors_supported=yes
67989else
67990        _pkg_short_errors_supported=no
67991fi
67992        if test $_pkg_short_errors_supported = yes; then
67993	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
67994        else
67995	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
67996        fi
67997	# Put the nasty error message in config.log where it belongs
67998	echo "$LUA_PKG_ERRORS" >&5
67999
68000
68001
68002pkg_failed=no
68003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
68004$as_echo_n "checking for LUA... " >&6; }
68005
68006if test -n "$LUA_CFLAGS"; then
68007    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
68008 elif test -n "$PKG_CONFIG"; then
68009    if test -n "$PKG_CONFIG" && \
68010    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
68011  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
68012  ac_status=$?
68013  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68014  test $ac_status = 0; }; then
68015  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
68016		      test "x$?" != "x0" && pkg_failed=yes
68017else
68018  pkg_failed=yes
68019fi
68020 else
68021    pkg_failed=untried
68022fi
68023if test -n "$LUA_LIBS"; then
68024    pkg_cv_LUA_LIBS="$LUA_LIBS"
68025 elif test -n "$PKG_CONFIG"; then
68026    if test -n "$PKG_CONFIG" && \
68027    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
68028  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
68029  ac_status=$?
68030  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68031  test $ac_status = 0; }; then
68032  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
68033		      test "x$?" != "x0" && pkg_failed=yes
68034else
68035  pkg_failed=yes
68036fi
68037 else
68038    pkg_failed=untried
68039fi
68040
68041
68042
68043if test $pkg_failed = yes; then
68044   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68045$as_echo "no" >&6; }
68046
68047if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68048        _pkg_short_errors_supported=yes
68049else
68050        _pkg_short_errors_supported=no
68051fi
68052        if test $_pkg_short_errors_supported = yes; then
68053	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
68054        else
68055	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
68056        fi
68057	# Put the nasty error message in config.log where it belongs
68058	echo "$LUA_PKG_ERRORS" >&5
68059
68060	with_liblua="no (pkg-config cannot find liblua)"
68061
68062elif test $pkg_failed = untried; then
68063     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68064$as_echo "no" >&6; }
68065	with_liblua="no (pkg-config cannot find liblua)"
68066
68067else
68068	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
68069	LUA_LIBS=$pkg_cv_LUA_LIBS
68070        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68071$as_echo "yes" >&6; }
68072	with_liblua="yes"
68073fi
68074
68075
68076elif test $pkg_failed = untried; then
68077     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68078$as_echo "no" >&6; }
68079
68080
68081pkg_failed=no
68082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
68083$as_echo_n "checking for LUA... " >&6; }
68084
68085if test -n "$LUA_CFLAGS"; then
68086    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
68087 elif test -n "$PKG_CONFIG"; then
68088    if test -n "$PKG_CONFIG" && \
68089    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
68090  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
68091  ac_status=$?
68092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68093  test $ac_status = 0; }; then
68094  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
68095		      test "x$?" != "x0" && pkg_failed=yes
68096else
68097  pkg_failed=yes
68098fi
68099 else
68100    pkg_failed=untried
68101fi
68102if test -n "$LUA_LIBS"; then
68103    pkg_cv_LUA_LIBS="$LUA_LIBS"
68104 elif test -n "$PKG_CONFIG"; then
68105    if test -n "$PKG_CONFIG" && \
68106    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
68107  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
68108  ac_status=$?
68109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68110  test $ac_status = 0; }; then
68111  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
68112		      test "x$?" != "x0" && pkg_failed=yes
68113else
68114  pkg_failed=yes
68115fi
68116 else
68117    pkg_failed=untried
68118fi
68119
68120
68121
68122if test $pkg_failed = yes; then
68123   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68124$as_echo "no" >&6; }
68125
68126if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68127        _pkg_short_errors_supported=yes
68128else
68129        _pkg_short_errors_supported=no
68130fi
68131        if test $_pkg_short_errors_supported = yes; then
68132	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
68133        else
68134	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
68135        fi
68136	# Put the nasty error message in config.log where it belongs
68137	echo "$LUA_PKG_ERRORS" >&5
68138
68139	with_liblua="no (pkg-config cannot find liblua)"
68140
68141elif test $pkg_failed = untried; then
68142     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68143$as_echo "no" >&6; }
68144	with_liblua="no (pkg-config cannot find liblua)"
68145
68146else
68147	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
68148	LUA_LIBS=$pkg_cv_LUA_LIBS
68149        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68150$as_echo "yes" >&6; }
68151	with_liblua="yes"
68152fi
68153
68154
68155else
68156	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
68157	LUA_LIBS=$pkg_cv_LUA_LIBS
68158        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68159$as_echo "yes" >&6; }
68160	with_liblua="yes"
68161fi
68162
68163
68164else
68165	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
68166	LUA_LIBS=$pkg_cv_LUA_LIBS
68167        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68168$as_echo "yes" >&6; }
68169	with_liblua="yes"
68170fi
68171
68172
68173elif test $pkg_failed = untried; then
68174     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68175$as_echo "no" >&6; }
68176
68177
68178pkg_failed=no
68179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
68180$as_echo_n "checking for LUA... " >&6; }
68181
68182if test -n "$LUA_CFLAGS"; then
68183    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
68184 elif test -n "$PKG_CONFIG"; then
68185    if test -n "$PKG_CONFIG" && \
68186    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
68187  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
68188  ac_status=$?
68189  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68190  test $ac_status = 0; }; then
68191  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
68192		      test "x$?" != "x0" && pkg_failed=yes
68193else
68194  pkg_failed=yes
68195fi
68196 else
68197    pkg_failed=untried
68198fi
68199if test -n "$LUA_LIBS"; then
68200    pkg_cv_LUA_LIBS="$LUA_LIBS"
68201 elif test -n "$PKG_CONFIG"; then
68202    if test -n "$PKG_CONFIG" && \
68203    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
68204  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
68205  ac_status=$?
68206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68207  test $ac_status = 0; }; then
68208  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
68209		      test "x$?" != "x0" && pkg_failed=yes
68210else
68211  pkg_failed=yes
68212fi
68213 else
68214    pkg_failed=untried
68215fi
68216
68217
68218
68219if test $pkg_failed = yes; then
68220   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68221$as_echo "no" >&6; }
68222
68223if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68224        _pkg_short_errors_supported=yes
68225else
68226        _pkg_short_errors_supported=no
68227fi
68228        if test $_pkg_short_errors_supported = yes; then
68229	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
68230        else
68231	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
68232        fi
68233	# Put the nasty error message in config.log where it belongs
68234	echo "$LUA_PKG_ERRORS" >&5
68235
68236
68237
68238pkg_failed=no
68239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
68240$as_echo_n "checking for LUA... " >&6; }
68241
68242if test -n "$LUA_CFLAGS"; then
68243    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
68244 elif test -n "$PKG_CONFIG"; then
68245    if test -n "$PKG_CONFIG" && \
68246    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
68247  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
68248  ac_status=$?
68249  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68250  test $ac_status = 0; }; then
68251  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
68252		      test "x$?" != "x0" && pkg_failed=yes
68253else
68254  pkg_failed=yes
68255fi
68256 else
68257    pkg_failed=untried
68258fi
68259if test -n "$LUA_LIBS"; then
68260    pkg_cv_LUA_LIBS="$LUA_LIBS"
68261 elif test -n "$PKG_CONFIG"; then
68262    if test -n "$PKG_CONFIG" && \
68263    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
68264  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
68265  ac_status=$?
68266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68267  test $ac_status = 0; }; then
68268  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
68269		      test "x$?" != "x0" && pkg_failed=yes
68270else
68271  pkg_failed=yes
68272fi
68273 else
68274    pkg_failed=untried
68275fi
68276
68277
68278
68279if test $pkg_failed = yes; then
68280   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68281$as_echo "no" >&6; }
68282
68283if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68284        _pkg_short_errors_supported=yes
68285else
68286        _pkg_short_errors_supported=no
68287fi
68288        if test $_pkg_short_errors_supported = yes; then
68289	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
68290        else
68291	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
68292        fi
68293	# Put the nasty error message in config.log where it belongs
68294	echo "$LUA_PKG_ERRORS" >&5
68295
68296
68297
68298pkg_failed=no
68299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
68300$as_echo_n "checking for LUA... " >&6; }
68301
68302if test -n "$LUA_CFLAGS"; then
68303    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
68304 elif test -n "$PKG_CONFIG"; then
68305    if test -n "$PKG_CONFIG" && \
68306    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
68307  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
68308  ac_status=$?
68309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68310  test $ac_status = 0; }; then
68311  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
68312		      test "x$?" != "x0" && pkg_failed=yes
68313else
68314  pkg_failed=yes
68315fi
68316 else
68317    pkg_failed=untried
68318fi
68319if test -n "$LUA_LIBS"; then
68320    pkg_cv_LUA_LIBS="$LUA_LIBS"
68321 elif test -n "$PKG_CONFIG"; then
68322    if test -n "$PKG_CONFIG" && \
68323    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
68324  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
68325  ac_status=$?
68326  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68327  test $ac_status = 0; }; then
68328  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
68329		      test "x$?" != "x0" && pkg_failed=yes
68330else
68331  pkg_failed=yes
68332fi
68333 else
68334    pkg_failed=untried
68335fi
68336
68337
68338
68339if test $pkg_failed = yes; then
68340   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68341$as_echo "no" >&6; }
68342
68343if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68344        _pkg_short_errors_supported=yes
68345else
68346        _pkg_short_errors_supported=no
68347fi
68348        if test $_pkg_short_errors_supported = yes; then
68349	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
68350        else
68351	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
68352        fi
68353	# Put the nasty error message in config.log where it belongs
68354	echo "$LUA_PKG_ERRORS" >&5
68355
68356	with_liblua="no (pkg-config cannot find liblua)"
68357
68358elif test $pkg_failed = untried; then
68359     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68360$as_echo "no" >&6; }
68361	with_liblua="no (pkg-config cannot find liblua)"
68362
68363else
68364	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
68365	LUA_LIBS=$pkg_cv_LUA_LIBS
68366        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68367$as_echo "yes" >&6; }
68368	with_liblua="yes"
68369fi
68370
68371
68372elif test $pkg_failed = untried; then
68373     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68374$as_echo "no" >&6; }
68375
68376
68377pkg_failed=no
68378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
68379$as_echo_n "checking for LUA... " >&6; }
68380
68381if test -n "$LUA_CFLAGS"; then
68382    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
68383 elif test -n "$PKG_CONFIG"; then
68384    if test -n "$PKG_CONFIG" && \
68385    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
68386  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
68387  ac_status=$?
68388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68389  test $ac_status = 0; }; then
68390  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
68391		      test "x$?" != "x0" && pkg_failed=yes
68392else
68393  pkg_failed=yes
68394fi
68395 else
68396    pkg_failed=untried
68397fi
68398if test -n "$LUA_LIBS"; then
68399    pkg_cv_LUA_LIBS="$LUA_LIBS"
68400 elif test -n "$PKG_CONFIG"; then
68401    if test -n "$PKG_CONFIG" && \
68402    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
68403  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
68404  ac_status=$?
68405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68406  test $ac_status = 0; }; then
68407  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
68408		      test "x$?" != "x0" && pkg_failed=yes
68409else
68410  pkg_failed=yes
68411fi
68412 else
68413    pkg_failed=untried
68414fi
68415
68416
68417
68418if test $pkg_failed = yes; then
68419   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68420$as_echo "no" >&6; }
68421
68422if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68423        _pkg_short_errors_supported=yes
68424else
68425        _pkg_short_errors_supported=no
68426fi
68427        if test $_pkg_short_errors_supported = yes; then
68428	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
68429        else
68430	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
68431        fi
68432	# Put the nasty error message in config.log where it belongs
68433	echo "$LUA_PKG_ERRORS" >&5
68434
68435	with_liblua="no (pkg-config cannot find liblua)"
68436
68437elif test $pkg_failed = untried; then
68438     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68439$as_echo "no" >&6; }
68440	with_liblua="no (pkg-config cannot find liblua)"
68441
68442else
68443	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
68444	LUA_LIBS=$pkg_cv_LUA_LIBS
68445        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68446$as_echo "yes" >&6; }
68447	with_liblua="yes"
68448fi
68449
68450
68451else
68452	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
68453	LUA_LIBS=$pkg_cv_LUA_LIBS
68454        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68455$as_echo "yes" >&6; }
68456	with_liblua="yes"
68457fi
68458
68459
68460elif test $pkg_failed = untried; then
68461     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68462$as_echo "no" >&6; }
68463
68464
68465pkg_failed=no
68466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
68467$as_echo_n "checking for LUA... " >&6; }
68468
68469if test -n "$LUA_CFLAGS"; then
68470    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
68471 elif test -n "$PKG_CONFIG"; then
68472    if test -n "$PKG_CONFIG" && \
68473    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
68474  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
68475  ac_status=$?
68476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68477  test $ac_status = 0; }; then
68478  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
68479		      test "x$?" != "x0" && pkg_failed=yes
68480else
68481  pkg_failed=yes
68482fi
68483 else
68484    pkg_failed=untried
68485fi
68486if test -n "$LUA_LIBS"; then
68487    pkg_cv_LUA_LIBS="$LUA_LIBS"
68488 elif test -n "$PKG_CONFIG"; then
68489    if test -n "$PKG_CONFIG" && \
68490    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
68491  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
68492  ac_status=$?
68493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68494  test $ac_status = 0; }; then
68495  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
68496		      test "x$?" != "x0" && pkg_failed=yes
68497else
68498  pkg_failed=yes
68499fi
68500 else
68501    pkg_failed=untried
68502fi
68503
68504
68505
68506if test $pkg_failed = yes; then
68507   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68508$as_echo "no" >&6; }
68509
68510if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68511        _pkg_short_errors_supported=yes
68512else
68513        _pkg_short_errors_supported=no
68514fi
68515        if test $_pkg_short_errors_supported = yes; then
68516	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
68517        else
68518	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
68519        fi
68520	# Put the nasty error message in config.log where it belongs
68521	echo "$LUA_PKG_ERRORS" >&5
68522
68523
68524
68525pkg_failed=no
68526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
68527$as_echo_n "checking for LUA... " >&6; }
68528
68529if test -n "$LUA_CFLAGS"; then
68530    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
68531 elif test -n "$PKG_CONFIG"; then
68532    if test -n "$PKG_CONFIG" && \
68533    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
68534  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
68535  ac_status=$?
68536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68537  test $ac_status = 0; }; then
68538  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
68539		      test "x$?" != "x0" && pkg_failed=yes
68540else
68541  pkg_failed=yes
68542fi
68543 else
68544    pkg_failed=untried
68545fi
68546if test -n "$LUA_LIBS"; then
68547    pkg_cv_LUA_LIBS="$LUA_LIBS"
68548 elif test -n "$PKG_CONFIG"; then
68549    if test -n "$PKG_CONFIG" && \
68550    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
68551  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
68552  ac_status=$?
68553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68554  test $ac_status = 0; }; then
68555  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
68556		      test "x$?" != "x0" && pkg_failed=yes
68557else
68558  pkg_failed=yes
68559fi
68560 else
68561    pkg_failed=untried
68562fi
68563
68564
68565
68566if test $pkg_failed = yes; then
68567   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68568$as_echo "no" >&6; }
68569
68570if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68571        _pkg_short_errors_supported=yes
68572else
68573        _pkg_short_errors_supported=no
68574fi
68575        if test $_pkg_short_errors_supported = yes; then
68576	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
68577        else
68578	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
68579        fi
68580	# Put the nasty error message in config.log where it belongs
68581	echo "$LUA_PKG_ERRORS" >&5
68582
68583	with_liblua="no (pkg-config cannot find liblua)"
68584
68585elif test $pkg_failed = untried; then
68586     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68587$as_echo "no" >&6; }
68588	with_liblua="no (pkg-config cannot find liblua)"
68589
68590else
68591	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
68592	LUA_LIBS=$pkg_cv_LUA_LIBS
68593        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68594$as_echo "yes" >&6; }
68595	with_liblua="yes"
68596fi
68597
68598
68599elif test $pkg_failed = untried; then
68600     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68601$as_echo "no" >&6; }
68602
68603
68604pkg_failed=no
68605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
68606$as_echo_n "checking for LUA... " >&6; }
68607
68608if test -n "$LUA_CFLAGS"; then
68609    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
68610 elif test -n "$PKG_CONFIG"; then
68611    if test -n "$PKG_CONFIG" && \
68612    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
68613  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
68614  ac_status=$?
68615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68616  test $ac_status = 0; }; then
68617  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
68618		      test "x$?" != "x0" && pkg_failed=yes
68619else
68620  pkg_failed=yes
68621fi
68622 else
68623    pkg_failed=untried
68624fi
68625if test -n "$LUA_LIBS"; then
68626    pkg_cv_LUA_LIBS="$LUA_LIBS"
68627 elif test -n "$PKG_CONFIG"; then
68628    if test -n "$PKG_CONFIG" && \
68629    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
68630  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
68631  ac_status=$?
68632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68633  test $ac_status = 0; }; then
68634  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
68635		      test "x$?" != "x0" && pkg_failed=yes
68636else
68637  pkg_failed=yes
68638fi
68639 else
68640    pkg_failed=untried
68641fi
68642
68643
68644
68645if test $pkg_failed = yes; then
68646   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68647$as_echo "no" >&6; }
68648
68649if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68650        _pkg_short_errors_supported=yes
68651else
68652        _pkg_short_errors_supported=no
68653fi
68654        if test $_pkg_short_errors_supported = yes; then
68655	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
68656        else
68657	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
68658        fi
68659	# Put the nasty error message in config.log where it belongs
68660	echo "$LUA_PKG_ERRORS" >&5
68661
68662	with_liblua="no (pkg-config cannot find liblua)"
68663
68664elif test $pkg_failed = untried; then
68665     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68666$as_echo "no" >&6; }
68667	with_liblua="no (pkg-config cannot find liblua)"
68668
68669else
68670	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
68671	LUA_LIBS=$pkg_cv_LUA_LIBS
68672        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68673$as_echo "yes" >&6; }
68674	with_liblua="yes"
68675fi
68676
68677
68678else
68679	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
68680	LUA_LIBS=$pkg_cv_LUA_LIBS
68681        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68682$as_echo "yes" >&6; }
68683	with_liblua="yes"
68684fi
68685
68686
68687else
68688	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
68689	LUA_LIBS=$pkg_cv_LUA_LIBS
68690        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68691$as_echo "yes" >&6; }
68692	with_liblua="yes"
68693fi
68694
68695
68696else
68697	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
68698	LUA_LIBS=$pkg_cv_LUA_LIBS
68699        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68700$as_echo "yes" >&6; }
68701	with_liblua="yes"
68702fi
68703
68704
68705else
68706	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
68707	LUA_LIBS=$pkg_cv_LUA_LIBS
68708        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68709$as_echo "yes" >&6; }
68710	with_liblua="yes"
68711fi
68712
68713
68714else
68715	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
68716	LUA_LIBS=$pkg_cv_LUA_LIBS
68717        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68718$as_echo "yes" >&6; }
68719	with_liblua="yes"
68720fi
68721
68722
68723elif test $pkg_failed = untried; then
68724     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68725$as_echo "no" >&6; }
68726
68727
68728pkg_failed=no
68729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
68730$as_echo_n "checking for LUA... " >&6; }
68731
68732if test -n "$LUA_CFLAGS"; then
68733    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
68734 elif test -n "$PKG_CONFIG"; then
68735    if test -n "$PKG_CONFIG" && \
68736    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
68737  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
68738  ac_status=$?
68739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68740  test $ac_status = 0; }; then
68741  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.2" 2>/dev/null`
68742		      test "x$?" != "x0" && pkg_failed=yes
68743else
68744  pkg_failed=yes
68745fi
68746 else
68747    pkg_failed=untried
68748fi
68749if test -n "$LUA_LIBS"; then
68750    pkg_cv_LUA_LIBS="$LUA_LIBS"
68751 elif test -n "$PKG_CONFIG"; then
68752    if test -n "$PKG_CONFIG" && \
68753    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
68754  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
68755  ac_status=$?
68756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68757  test $ac_status = 0; }; then
68758  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.2" 2>/dev/null`
68759		      test "x$?" != "x0" && pkg_failed=yes
68760else
68761  pkg_failed=yes
68762fi
68763 else
68764    pkg_failed=untried
68765fi
68766
68767
68768
68769if test $pkg_failed = yes; then
68770   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68771$as_echo "no" >&6; }
68772
68773if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68774        _pkg_short_errors_supported=yes
68775else
68776        _pkg_short_errors_supported=no
68777fi
68778        if test $_pkg_short_errors_supported = yes; then
68779	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.2" 2>&1`
68780        else
68781	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.2" 2>&1`
68782        fi
68783	# Put the nasty error message in config.log where it belongs
68784	echo "$LUA_PKG_ERRORS" >&5
68785
68786
68787
68788pkg_failed=no
68789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
68790$as_echo_n "checking for LUA... " >&6; }
68791
68792if test -n "$LUA_CFLAGS"; then
68793    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
68794 elif test -n "$PKG_CONFIG"; then
68795    if test -n "$PKG_CONFIG" && \
68796    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
68797  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
68798  ac_status=$?
68799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68800  test $ac_status = 0; }; then
68801  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
68802		      test "x$?" != "x0" && pkg_failed=yes
68803else
68804  pkg_failed=yes
68805fi
68806 else
68807    pkg_failed=untried
68808fi
68809if test -n "$LUA_LIBS"; then
68810    pkg_cv_LUA_LIBS="$LUA_LIBS"
68811 elif test -n "$PKG_CONFIG"; then
68812    if test -n "$PKG_CONFIG" && \
68813    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
68814  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
68815  ac_status=$?
68816  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68817  test $ac_status = 0; }; then
68818  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
68819		      test "x$?" != "x0" && pkg_failed=yes
68820else
68821  pkg_failed=yes
68822fi
68823 else
68824    pkg_failed=untried
68825fi
68826
68827
68828
68829if test $pkg_failed = yes; then
68830   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68831$as_echo "no" >&6; }
68832
68833if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68834        _pkg_short_errors_supported=yes
68835else
68836        _pkg_short_errors_supported=no
68837fi
68838        if test $_pkg_short_errors_supported = yes; then
68839	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
68840        else
68841	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
68842        fi
68843	# Put the nasty error message in config.log where it belongs
68844	echo "$LUA_PKG_ERRORS" >&5
68845
68846
68847
68848pkg_failed=no
68849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
68850$as_echo_n "checking for LUA... " >&6; }
68851
68852if test -n "$LUA_CFLAGS"; then
68853    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
68854 elif test -n "$PKG_CONFIG"; then
68855    if test -n "$PKG_CONFIG" && \
68856    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
68857  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
68858  ac_status=$?
68859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68860  test $ac_status = 0; }; then
68861  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
68862		      test "x$?" != "x0" && pkg_failed=yes
68863else
68864  pkg_failed=yes
68865fi
68866 else
68867    pkg_failed=untried
68868fi
68869if test -n "$LUA_LIBS"; then
68870    pkg_cv_LUA_LIBS="$LUA_LIBS"
68871 elif test -n "$PKG_CONFIG"; then
68872    if test -n "$PKG_CONFIG" && \
68873    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
68874  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
68875  ac_status=$?
68876  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68877  test $ac_status = 0; }; then
68878  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
68879		      test "x$?" != "x0" && pkg_failed=yes
68880else
68881  pkg_failed=yes
68882fi
68883 else
68884    pkg_failed=untried
68885fi
68886
68887
68888
68889if test $pkg_failed = yes; then
68890   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68891$as_echo "no" >&6; }
68892
68893if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68894        _pkg_short_errors_supported=yes
68895else
68896        _pkg_short_errors_supported=no
68897fi
68898        if test $_pkg_short_errors_supported = yes; then
68899	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
68900        else
68901	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
68902        fi
68903	# Put the nasty error message in config.log where it belongs
68904	echo "$LUA_PKG_ERRORS" >&5
68905
68906
68907
68908pkg_failed=no
68909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
68910$as_echo_n "checking for LUA... " >&6; }
68911
68912if test -n "$LUA_CFLAGS"; then
68913    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
68914 elif test -n "$PKG_CONFIG"; then
68915    if test -n "$PKG_CONFIG" && \
68916    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
68917  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
68918  ac_status=$?
68919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68920  test $ac_status = 0; }; then
68921  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
68922		      test "x$?" != "x0" && pkg_failed=yes
68923else
68924  pkg_failed=yes
68925fi
68926 else
68927    pkg_failed=untried
68928fi
68929if test -n "$LUA_LIBS"; then
68930    pkg_cv_LUA_LIBS="$LUA_LIBS"
68931 elif test -n "$PKG_CONFIG"; then
68932    if test -n "$PKG_CONFIG" && \
68933    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
68934  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
68935  ac_status=$?
68936  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68937  test $ac_status = 0; }; then
68938  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
68939		      test "x$?" != "x0" && pkg_failed=yes
68940else
68941  pkg_failed=yes
68942fi
68943 else
68944    pkg_failed=untried
68945fi
68946
68947
68948
68949if test $pkg_failed = yes; then
68950   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68951$as_echo "no" >&6; }
68952
68953if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68954        _pkg_short_errors_supported=yes
68955else
68956        _pkg_short_errors_supported=no
68957fi
68958        if test $_pkg_short_errors_supported = yes; then
68959	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
68960        else
68961	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
68962        fi
68963	# Put the nasty error message in config.log where it belongs
68964	echo "$LUA_PKG_ERRORS" >&5
68965
68966
68967
68968pkg_failed=no
68969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
68970$as_echo_n "checking for LUA... " >&6; }
68971
68972if test -n "$LUA_CFLAGS"; then
68973    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
68974 elif test -n "$PKG_CONFIG"; then
68975    if test -n "$PKG_CONFIG" && \
68976    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
68977  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
68978  ac_status=$?
68979  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68980  test $ac_status = 0; }; then
68981  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
68982		      test "x$?" != "x0" && pkg_failed=yes
68983else
68984  pkg_failed=yes
68985fi
68986 else
68987    pkg_failed=untried
68988fi
68989if test -n "$LUA_LIBS"; then
68990    pkg_cv_LUA_LIBS="$LUA_LIBS"
68991 elif test -n "$PKG_CONFIG"; then
68992    if test -n "$PKG_CONFIG" && \
68993    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
68994  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
68995  ac_status=$?
68996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68997  test $ac_status = 0; }; then
68998  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
68999		      test "x$?" != "x0" && pkg_failed=yes
69000else
69001  pkg_failed=yes
69002fi
69003 else
69004    pkg_failed=untried
69005fi
69006
69007
69008
69009if test $pkg_failed = yes; then
69010   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69011$as_echo "no" >&6; }
69012
69013if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69014        _pkg_short_errors_supported=yes
69015else
69016        _pkg_short_errors_supported=no
69017fi
69018        if test $_pkg_short_errors_supported = yes; then
69019	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
69020        else
69021	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
69022        fi
69023	# Put the nasty error message in config.log where it belongs
69024	echo "$LUA_PKG_ERRORS" >&5
69025
69026
69027
69028pkg_failed=no
69029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
69030$as_echo_n "checking for LUA... " >&6; }
69031
69032if test -n "$LUA_CFLAGS"; then
69033    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
69034 elif test -n "$PKG_CONFIG"; then
69035    if test -n "$PKG_CONFIG" && \
69036    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
69037  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
69038  ac_status=$?
69039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69040  test $ac_status = 0; }; then
69041  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
69042		      test "x$?" != "x0" && pkg_failed=yes
69043else
69044  pkg_failed=yes
69045fi
69046 else
69047    pkg_failed=untried
69048fi
69049if test -n "$LUA_LIBS"; then
69050    pkg_cv_LUA_LIBS="$LUA_LIBS"
69051 elif test -n "$PKG_CONFIG"; then
69052    if test -n "$PKG_CONFIG" && \
69053    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
69054  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
69055  ac_status=$?
69056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69057  test $ac_status = 0; }; then
69058  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
69059		      test "x$?" != "x0" && pkg_failed=yes
69060else
69061  pkg_failed=yes
69062fi
69063 else
69064    pkg_failed=untried
69065fi
69066
69067
69068
69069if test $pkg_failed = yes; then
69070   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69071$as_echo "no" >&6; }
69072
69073if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69074        _pkg_short_errors_supported=yes
69075else
69076        _pkg_short_errors_supported=no
69077fi
69078        if test $_pkg_short_errors_supported = yes; then
69079	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
69080        else
69081	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
69082        fi
69083	# Put the nasty error message in config.log where it belongs
69084	echo "$LUA_PKG_ERRORS" >&5
69085
69086	with_liblua="no (pkg-config cannot find liblua)"
69087
69088elif test $pkg_failed = untried; then
69089     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69090$as_echo "no" >&6; }
69091	with_liblua="no (pkg-config cannot find liblua)"
69092
69093else
69094	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
69095	LUA_LIBS=$pkg_cv_LUA_LIBS
69096        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69097$as_echo "yes" >&6; }
69098	with_liblua="yes"
69099fi
69100
69101
69102elif test $pkg_failed = untried; then
69103     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69104$as_echo "no" >&6; }
69105
69106
69107pkg_failed=no
69108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
69109$as_echo_n "checking for LUA... " >&6; }
69110
69111if test -n "$LUA_CFLAGS"; then
69112    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
69113 elif test -n "$PKG_CONFIG"; then
69114    if test -n "$PKG_CONFIG" && \
69115    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
69116  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
69117  ac_status=$?
69118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69119  test $ac_status = 0; }; then
69120  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
69121		      test "x$?" != "x0" && pkg_failed=yes
69122else
69123  pkg_failed=yes
69124fi
69125 else
69126    pkg_failed=untried
69127fi
69128if test -n "$LUA_LIBS"; then
69129    pkg_cv_LUA_LIBS="$LUA_LIBS"
69130 elif test -n "$PKG_CONFIG"; then
69131    if test -n "$PKG_CONFIG" && \
69132    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
69133  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
69134  ac_status=$?
69135  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69136  test $ac_status = 0; }; then
69137  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
69138		      test "x$?" != "x0" && pkg_failed=yes
69139else
69140  pkg_failed=yes
69141fi
69142 else
69143    pkg_failed=untried
69144fi
69145
69146
69147
69148if test $pkg_failed = yes; then
69149   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69150$as_echo "no" >&6; }
69151
69152if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69153        _pkg_short_errors_supported=yes
69154else
69155        _pkg_short_errors_supported=no
69156fi
69157        if test $_pkg_short_errors_supported = yes; then
69158	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
69159        else
69160	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
69161        fi
69162	# Put the nasty error message in config.log where it belongs
69163	echo "$LUA_PKG_ERRORS" >&5
69164
69165	with_liblua="no (pkg-config cannot find liblua)"
69166
69167elif test $pkg_failed = untried; then
69168     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69169$as_echo "no" >&6; }
69170	with_liblua="no (pkg-config cannot find liblua)"
69171
69172else
69173	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
69174	LUA_LIBS=$pkg_cv_LUA_LIBS
69175        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69176$as_echo "yes" >&6; }
69177	with_liblua="yes"
69178fi
69179
69180
69181else
69182	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
69183	LUA_LIBS=$pkg_cv_LUA_LIBS
69184        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69185$as_echo "yes" >&6; }
69186	with_liblua="yes"
69187fi
69188
69189
69190elif test $pkg_failed = untried; then
69191     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69192$as_echo "no" >&6; }
69193
69194
69195pkg_failed=no
69196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
69197$as_echo_n "checking for LUA... " >&6; }
69198
69199if test -n "$LUA_CFLAGS"; then
69200    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
69201 elif test -n "$PKG_CONFIG"; then
69202    if test -n "$PKG_CONFIG" && \
69203    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
69204  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
69205  ac_status=$?
69206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69207  test $ac_status = 0; }; then
69208  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
69209		      test "x$?" != "x0" && pkg_failed=yes
69210else
69211  pkg_failed=yes
69212fi
69213 else
69214    pkg_failed=untried
69215fi
69216if test -n "$LUA_LIBS"; then
69217    pkg_cv_LUA_LIBS="$LUA_LIBS"
69218 elif test -n "$PKG_CONFIG"; then
69219    if test -n "$PKG_CONFIG" && \
69220    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
69221  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
69222  ac_status=$?
69223  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69224  test $ac_status = 0; }; then
69225  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
69226		      test "x$?" != "x0" && pkg_failed=yes
69227else
69228  pkg_failed=yes
69229fi
69230 else
69231    pkg_failed=untried
69232fi
69233
69234
69235
69236if test $pkg_failed = yes; then
69237   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69238$as_echo "no" >&6; }
69239
69240if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69241        _pkg_short_errors_supported=yes
69242else
69243        _pkg_short_errors_supported=no
69244fi
69245        if test $_pkg_short_errors_supported = yes; then
69246	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
69247        else
69248	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
69249        fi
69250	# Put the nasty error message in config.log where it belongs
69251	echo "$LUA_PKG_ERRORS" >&5
69252
69253
69254
69255pkg_failed=no
69256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
69257$as_echo_n "checking for LUA... " >&6; }
69258
69259if test -n "$LUA_CFLAGS"; then
69260    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
69261 elif test -n "$PKG_CONFIG"; then
69262    if test -n "$PKG_CONFIG" && \
69263    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
69264  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
69265  ac_status=$?
69266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69267  test $ac_status = 0; }; then
69268  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
69269		      test "x$?" != "x0" && pkg_failed=yes
69270else
69271  pkg_failed=yes
69272fi
69273 else
69274    pkg_failed=untried
69275fi
69276if test -n "$LUA_LIBS"; then
69277    pkg_cv_LUA_LIBS="$LUA_LIBS"
69278 elif test -n "$PKG_CONFIG"; then
69279    if test -n "$PKG_CONFIG" && \
69280    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
69281  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
69282  ac_status=$?
69283  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69284  test $ac_status = 0; }; then
69285  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
69286		      test "x$?" != "x0" && pkg_failed=yes
69287else
69288  pkg_failed=yes
69289fi
69290 else
69291    pkg_failed=untried
69292fi
69293
69294
69295
69296if test $pkg_failed = yes; then
69297   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69298$as_echo "no" >&6; }
69299
69300if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69301        _pkg_short_errors_supported=yes
69302else
69303        _pkg_short_errors_supported=no
69304fi
69305        if test $_pkg_short_errors_supported = yes; then
69306	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
69307        else
69308	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
69309        fi
69310	# Put the nasty error message in config.log where it belongs
69311	echo "$LUA_PKG_ERRORS" >&5
69312
69313	with_liblua="no (pkg-config cannot find liblua)"
69314
69315elif test $pkg_failed = untried; then
69316     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69317$as_echo "no" >&6; }
69318	with_liblua="no (pkg-config cannot find liblua)"
69319
69320else
69321	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
69322	LUA_LIBS=$pkg_cv_LUA_LIBS
69323        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69324$as_echo "yes" >&6; }
69325	with_liblua="yes"
69326fi
69327
69328
69329elif test $pkg_failed = untried; then
69330     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69331$as_echo "no" >&6; }
69332
69333
69334pkg_failed=no
69335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
69336$as_echo_n "checking for LUA... " >&6; }
69337
69338if test -n "$LUA_CFLAGS"; then
69339    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
69340 elif test -n "$PKG_CONFIG"; then
69341    if test -n "$PKG_CONFIG" && \
69342    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
69343  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
69344  ac_status=$?
69345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69346  test $ac_status = 0; }; then
69347  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
69348		      test "x$?" != "x0" && pkg_failed=yes
69349else
69350  pkg_failed=yes
69351fi
69352 else
69353    pkg_failed=untried
69354fi
69355if test -n "$LUA_LIBS"; then
69356    pkg_cv_LUA_LIBS="$LUA_LIBS"
69357 elif test -n "$PKG_CONFIG"; then
69358    if test -n "$PKG_CONFIG" && \
69359    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
69360  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
69361  ac_status=$?
69362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69363  test $ac_status = 0; }; then
69364  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
69365		      test "x$?" != "x0" && pkg_failed=yes
69366else
69367  pkg_failed=yes
69368fi
69369 else
69370    pkg_failed=untried
69371fi
69372
69373
69374
69375if test $pkg_failed = yes; then
69376   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69377$as_echo "no" >&6; }
69378
69379if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69380        _pkg_short_errors_supported=yes
69381else
69382        _pkg_short_errors_supported=no
69383fi
69384        if test $_pkg_short_errors_supported = yes; then
69385	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
69386        else
69387	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
69388        fi
69389	# Put the nasty error message in config.log where it belongs
69390	echo "$LUA_PKG_ERRORS" >&5
69391
69392	with_liblua="no (pkg-config cannot find liblua)"
69393
69394elif test $pkg_failed = untried; then
69395     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69396$as_echo "no" >&6; }
69397	with_liblua="no (pkg-config cannot find liblua)"
69398
69399else
69400	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
69401	LUA_LIBS=$pkg_cv_LUA_LIBS
69402        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69403$as_echo "yes" >&6; }
69404	with_liblua="yes"
69405fi
69406
69407
69408else
69409	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
69410	LUA_LIBS=$pkg_cv_LUA_LIBS
69411        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69412$as_echo "yes" >&6; }
69413	with_liblua="yes"
69414fi
69415
69416
69417else
69418	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
69419	LUA_LIBS=$pkg_cv_LUA_LIBS
69420        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69421$as_echo "yes" >&6; }
69422	with_liblua="yes"
69423fi
69424
69425
69426elif test $pkg_failed = untried; then
69427     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69428$as_echo "no" >&6; }
69429
69430
69431pkg_failed=no
69432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
69433$as_echo_n "checking for LUA... " >&6; }
69434
69435if test -n "$LUA_CFLAGS"; then
69436    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
69437 elif test -n "$PKG_CONFIG"; then
69438    if test -n "$PKG_CONFIG" && \
69439    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
69440  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
69441  ac_status=$?
69442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69443  test $ac_status = 0; }; then
69444  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
69445		      test "x$?" != "x0" && pkg_failed=yes
69446else
69447  pkg_failed=yes
69448fi
69449 else
69450    pkg_failed=untried
69451fi
69452if test -n "$LUA_LIBS"; then
69453    pkg_cv_LUA_LIBS="$LUA_LIBS"
69454 elif test -n "$PKG_CONFIG"; then
69455    if test -n "$PKG_CONFIG" && \
69456    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
69457  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
69458  ac_status=$?
69459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69460  test $ac_status = 0; }; then
69461  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
69462		      test "x$?" != "x0" && pkg_failed=yes
69463else
69464  pkg_failed=yes
69465fi
69466 else
69467    pkg_failed=untried
69468fi
69469
69470
69471
69472if test $pkg_failed = yes; then
69473   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69474$as_echo "no" >&6; }
69475
69476if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69477        _pkg_short_errors_supported=yes
69478else
69479        _pkg_short_errors_supported=no
69480fi
69481        if test $_pkg_short_errors_supported = yes; then
69482	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
69483        else
69484	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
69485        fi
69486	# Put the nasty error message in config.log where it belongs
69487	echo "$LUA_PKG_ERRORS" >&5
69488
69489
69490
69491pkg_failed=no
69492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
69493$as_echo_n "checking for LUA... " >&6; }
69494
69495if test -n "$LUA_CFLAGS"; then
69496    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
69497 elif test -n "$PKG_CONFIG"; then
69498    if test -n "$PKG_CONFIG" && \
69499    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
69500  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
69501  ac_status=$?
69502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69503  test $ac_status = 0; }; then
69504  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
69505		      test "x$?" != "x0" && pkg_failed=yes
69506else
69507  pkg_failed=yes
69508fi
69509 else
69510    pkg_failed=untried
69511fi
69512if test -n "$LUA_LIBS"; then
69513    pkg_cv_LUA_LIBS="$LUA_LIBS"
69514 elif test -n "$PKG_CONFIG"; then
69515    if test -n "$PKG_CONFIG" && \
69516    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
69517  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
69518  ac_status=$?
69519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69520  test $ac_status = 0; }; then
69521  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
69522		      test "x$?" != "x0" && pkg_failed=yes
69523else
69524  pkg_failed=yes
69525fi
69526 else
69527    pkg_failed=untried
69528fi
69529
69530
69531
69532if test $pkg_failed = yes; then
69533   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69534$as_echo "no" >&6; }
69535
69536if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69537        _pkg_short_errors_supported=yes
69538else
69539        _pkg_short_errors_supported=no
69540fi
69541        if test $_pkg_short_errors_supported = yes; then
69542	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
69543        else
69544	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
69545        fi
69546	# Put the nasty error message in config.log where it belongs
69547	echo "$LUA_PKG_ERRORS" >&5
69548
69549
69550
69551pkg_failed=no
69552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
69553$as_echo_n "checking for LUA... " >&6; }
69554
69555if test -n "$LUA_CFLAGS"; then
69556    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
69557 elif test -n "$PKG_CONFIG"; then
69558    if test -n "$PKG_CONFIG" && \
69559    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
69560  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
69561  ac_status=$?
69562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69563  test $ac_status = 0; }; then
69564  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
69565		      test "x$?" != "x0" && pkg_failed=yes
69566else
69567  pkg_failed=yes
69568fi
69569 else
69570    pkg_failed=untried
69571fi
69572if test -n "$LUA_LIBS"; then
69573    pkg_cv_LUA_LIBS="$LUA_LIBS"
69574 elif test -n "$PKG_CONFIG"; then
69575    if test -n "$PKG_CONFIG" && \
69576    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
69577  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
69578  ac_status=$?
69579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69580  test $ac_status = 0; }; then
69581  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
69582		      test "x$?" != "x0" && pkg_failed=yes
69583else
69584  pkg_failed=yes
69585fi
69586 else
69587    pkg_failed=untried
69588fi
69589
69590
69591
69592if test $pkg_failed = yes; then
69593   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69594$as_echo "no" >&6; }
69595
69596if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69597        _pkg_short_errors_supported=yes
69598else
69599        _pkg_short_errors_supported=no
69600fi
69601        if test $_pkg_short_errors_supported = yes; then
69602	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
69603        else
69604	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
69605        fi
69606	# Put the nasty error message in config.log where it belongs
69607	echo "$LUA_PKG_ERRORS" >&5
69608
69609	with_liblua="no (pkg-config cannot find liblua)"
69610
69611elif test $pkg_failed = untried; then
69612     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69613$as_echo "no" >&6; }
69614	with_liblua="no (pkg-config cannot find liblua)"
69615
69616else
69617	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
69618	LUA_LIBS=$pkg_cv_LUA_LIBS
69619        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69620$as_echo "yes" >&6; }
69621	with_liblua="yes"
69622fi
69623
69624
69625elif test $pkg_failed = untried; then
69626     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69627$as_echo "no" >&6; }
69628
69629
69630pkg_failed=no
69631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
69632$as_echo_n "checking for LUA... " >&6; }
69633
69634if test -n "$LUA_CFLAGS"; then
69635    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
69636 elif test -n "$PKG_CONFIG"; then
69637    if test -n "$PKG_CONFIG" && \
69638    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
69639  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
69640  ac_status=$?
69641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69642  test $ac_status = 0; }; then
69643  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
69644		      test "x$?" != "x0" && pkg_failed=yes
69645else
69646  pkg_failed=yes
69647fi
69648 else
69649    pkg_failed=untried
69650fi
69651if test -n "$LUA_LIBS"; then
69652    pkg_cv_LUA_LIBS="$LUA_LIBS"
69653 elif test -n "$PKG_CONFIG"; then
69654    if test -n "$PKG_CONFIG" && \
69655    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
69656  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
69657  ac_status=$?
69658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69659  test $ac_status = 0; }; then
69660  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
69661		      test "x$?" != "x0" && pkg_failed=yes
69662else
69663  pkg_failed=yes
69664fi
69665 else
69666    pkg_failed=untried
69667fi
69668
69669
69670
69671if test $pkg_failed = yes; then
69672   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69673$as_echo "no" >&6; }
69674
69675if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69676        _pkg_short_errors_supported=yes
69677else
69678        _pkg_short_errors_supported=no
69679fi
69680        if test $_pkg_short_errors_supported = yes; then
69681	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
69682        else
69683	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
69684        fi
69685	# Put the nasty error message in config.log where it belongs
69686	echo "$LUA_PKG_ERRORS" >&5
69687
69688	with_liblua="no (pkg-config cannot find liblua)"
69689
69690elif test $pkg_failed = untried; then
69691     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69692$as_echo "no" >&6; }
69693	with_liblua="no (pkg-config cannot find liblua)"
69694
69695else
69696	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
69697	LUA_LIBS=$pkg_cv_LUA_LIBS
69698        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69699$as_echo "yes" >&6; }
69700	with_liblua="yes"
69701fi
69702
69703
69704else
69705	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
69706	LUA_LIBS=$pkg_cv_LUA_LIBS
69707        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69708$as_echo "yes" >&6; }
69709	with_liblua="yes"
69710fi
69711
69712
69713elif test $pkg_failed = untried; then
69714     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69715$as_echo "no" >&6; }
69716
69717
69718pkg_failed=no
69719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
69720$as_echo_n "checking for LUA... " >&6; }
69721
69722if test -n "$LUA_CFLAGS"; then
69723    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
69724 elif test -n "$PKG_CONFIG"; then
69725    if test -n "$PKG_CONFIG" && \
69726    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
69727  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
69728  ac_status=$?
69729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69730  test $ac_status = 0; }; then
69731  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
69732		      test "x$?" != "x0" && pkg_failed=yes
69733else
69734  pkg_failed=yes
69735fi
69736 else
69737    pkg_failed=untried
69738fi
69739if test -n "$LUA_LIBS"; then
69740    pkg_cv_LUA_LIBS="$LUA_LIBS"
69741 elif test -n "$PKG_CONFIG"; then
69742    if test -n "$PKG_CONFIG" && \
69743    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
69744  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
69745  ac_status=$?
69746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69747  test $ac_status = 0; }; then
69748  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
69749		      test "x$?" != "x0" && pkg_failed=yes
69750else
69751  pkg_failed=yes
69752fi
69753 else
69754    pkg_failed=untried
69755fi
69756
69757
69758
69759if test $pkg_failed = yes; then
69760   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69761$as_echo "no" >&6; }
69762
69763if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69764        _pkg_short_errors_supported=yes
69765else
69766        _pkg_short_errors_supported=no
69767fi
69768        if test $_pkg_short_errors_supported = yes; then
69769	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
69770        else
69771	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
69772        fi
69773	# Put the nasty error message in config.log where it belongs
69774	echo "$LUA_PKG_ERRORS" >&5
69775
69776
69777
69778pkg_failed=no
69779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
69780$as_echo_n "checking for LUA... " >&6; }
69781
69782if test -n "$LUA_CFLAGS"; then
69783    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
69784 elif test -n "$PKG_CONFIG"; then
69785    if test -n "$PKG_CONFIG" && \
69786    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
69787  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
69788  ac_status=$?
69789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69790  test $ac_status = 0; }; then
69791  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
69792		      test "x$?" != "x0" && pkg_failed=yes
69793else
69794  pkg_failed=yes
69795fi
69796 else
69797    pkg_failed=untried
69798fi
69799if test -n "$LUA_LIBS"; then
69800    pkg_cv_LUA_LIBS="$LUA_LIBS"
69801 elif test -n "$PKG_CONFIG"; then
69802    if test -n "$PKG_CONFIG" && \
69803    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
69804  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
69805  ac_status=$?
69806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69807  test $ac_status = 0; }; then
69808  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
69809		      test "x$?" != "x0" && pkg_failed=yes
69810else
69811  pkg_failed=yes
69812fi
69813 else
69814    pkg_failed=untried
69815fi
69816
69817
69818
69819if test $pkg_failed = yes; then
69820   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69821$as_echo "no" >&6; }
69822
69823if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69824        _pkg_short_errors_supported=yes
69825else
69826        _pkg_short_errors_supported=no
69827fi
69828        if test $_pkg_short_errors_supported = yes; then
69829	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
69830        else
69831	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
69832        fi
69833	# Put the nasty error message in config.log where it belongs
69834	echo "$LUA_PKG_ERRORS" >&5
69835
69836	with_liblua="no (pkg-config cannot find liblua)"
69837
69838elif test $pkg_failed = untried; then
69839     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69840$as_echo "no" >&6; }
69841	with_liblua="no (pkg-config cannot find liblua)"
69842
69843else
69844	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
69845	LUA_LIBS=$pkg_cv_LUA_LIBS
69846        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69847$as_echo "yes" >&6; }
69848	with_liblua="yes"
69849fi
69850
69851
69852elif test $pkg_failed = untried; then
69853     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69854$as_echo "no" >&6; }
69855
69856
69857pkg_failed=no
69858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
69859$as_echo_n "checking for LUA... " >&6; }
69860
69861if test -n "$LUA_CFLAGS"; then
69862    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
69863 elif test -n "$PKG_CONFIG"; then
69864    if test -n "$PKG_CONFIG" && \
69865    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
69866  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
69867  ac_status=$?
69868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69869  test $ac_status = 0; }; then
69870  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
69871		      test "x$?" != "x0" && pkg_failed=yes
69872else
69873  pkg_failed=yes
69874fi
69875 else
69876    pkg_failed=untried
69877fi
69878if test -n "$LUA_LIBS"; then
69879    pkg_cv_LUA_LIBS="$LUA_LIBS"
69880 elif test -n "$PKG_CONFIG"; then
69881    if test -n "$PKG_CONFIG" && \
69882    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
69883  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
69884  ac_status=$?
69885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69886  test $ac_status = 0; }; then
69887  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
69888		      test "x$?" != "x0" && pkg_failed=yes
69889else
69890  pkg_failed=yes
69891fi
69892 else
69893    pkg_failed=untried
69894fi
69895
69896
69897
69898if test $pkg_failed = yes; then
69899   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69900$as_echo "no" >&6; }
69901
69902if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69903        _pkg_short_errors_supported=yes
69904else
69905        _pkg_short_errors_supported=no
69906fi
69907        if test $_pkg_short_errors_supported = yes; then
69908	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
69909        else
69910	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
69911        fi
69912	# Put the nasty error message in config.log where it belongs
69913	echo "$LUA_PKG_ERRORS" >&5
69914
69915	with_liblua="no (pkg-config cannot find liblua)"
69916
69917elif test $pkg_failed = untried; then
69918     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69919$as_echo "no" >&6; }
69920	with_liblua="no (pkg-config cannot find liblua)"
69921
69922else
69923	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
69924	LUA_LIBS=$pkg_cv_LUA_LIBS
69925        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69926$as_echo "yes" >&6; }
69927	with_liblua="yes"
69928fi
69929
69930
69931else
69932	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
69933	LUA_LIBS=$pkg_cv_LUA_LIBS
69934        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69935$as_echo "yes" >&6; }
69936	with_liblua="yes"
69937fi
69938
69939
69940else
69941	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
69942	LUA_LIBS=$pkg_cv_LUA_LIBS
69943        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69944$as_echo "yes" >&6; }
69945	with_liblua="yes"
69946fi
69947
69948
69949else
69950	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
69951	LUA_LIBS=$pkg_cv_LUA_LIBS
69952        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69953$as_echo "yes" >&6; }
69954	with_liblua="yes"
69955fi
69956
69957
69958elif test $pkg_failed = untried; then
69959     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69960$as_echo "no" >&6; }
69961
69962
69963pkg_failed=no
69964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
69965$as_echo_n "checking for LUA... " >&6; }
69966
69967if test -n "$LUA_CFLAGS"; then
69968    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
69969 elif test -n "$PKG_CONFIG"; then
69970    if test -n "$PKG_CONFIG" && \
69971    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
69972  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
69973  ac_status=$?
69974  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69975  test $ac_status = 0; }; then
69976  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
69977		      test "x$?" != "x0" && pkg_failed=yes
69978else
69979  pkg_failed=yes
69980fi
69981 else
69982    pkg_failed=untried
69983fi
69984if test -n "$LUA_LIBS"; then
69985    pkg_cv_LUA_LIBS="$LUA_LIBS"
69986 elif test -n "$PKG_CONFIG"; then
69987    if test -n "$PKG_CONFIG" && \
69988    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
69989  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
69990  ac_status=$?
69991  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69992  test $ac_status = 0; }; then
69993  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
69994		      test "x$?" != "x0" && pkg_failed=yes
69995else
69996  pkg_failed=yes
69997fi
69998 else
69999    pkg_failed=untried
70000fi
70001
70002
70003
70004if test $pkg_failed = yes; then
70005   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70006$as_echo "no" >&6; }
70007
70008if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70009        _pkg_short_errors_supported=yes
70010else
70011        _pkg_short_errors_supported=no
70012fi
70013        if test $_pkg_short_errors_supported = yes; then
70014	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
70015        else
70016	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
70017        fi
70018	# Put the nasty error message in config.log where it belongs
70019	echo "$LUA_PKG_ERRORS" >&5
70020
70021
70022
70023pkg_failed=no
70024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
70025$as_echo_n "checking for LUA... " >&6; }
70026
70027if test -n "$LUA_CFLAGS"; then
70028    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
70029 elif test -n "$PKG_CONFIG"; then
70030    if test -n "$PKG_CONFIG" && \
70031    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
70032  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
70033  ac_status=$?
70034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70035  test $ac_status = 0; }; then
70036  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
70037		      test "x$?" != "x0" && pkg_failed=yes
70038else
70039  pkg_failed=yes
70040fi
70041 else
70042    pkg_failed=untried
70043fi
70044if test -n "$LUA_LIBS"; then
70045    pkg_cv_LUA_LIBS="$LUA_LIBS"
70046 elif test -n "$PKG_CONFIG"; then
70047    if test -n "$PKG_CONFIG" && \
70048    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
70049  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
70050  ac_status=$?
70051  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70052  test $ac_status = 0; }; then
70053  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
70054		      test "x$?" != "x0" && pkg_failed=yes
70055else
70056  pkg_failed=yes
70057fi
70058 else
70059    pkg_failed=untried
70060fi
70061
70062
70063
70064if test $pkg_failed = yes; then
70065   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70066$as_echo "no" >&6; }
70067
70068if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70069        _pkg_short_errors_supported=yes
70070else
70071        _pkg_short_errors_supported=no
70072fi
70073        if test $_pkg_short_errors_supported = yes; then
70074	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
70075        else
70076	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
70077        fi
70078	# Put the nasty error message in config.log where it belongs
70079	echo "$LUA_PKG_ERRORS" >&5
70080
70081
70082
70083pkg_failed=no
70084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
70085$as_echo_n "checking for LUA... " >&6; }
70086
70087if test -n "$LUA_CFLAGS"; then
70088    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
70089 elif test -n "$PKG_CONFIG"; then
70090    if test -n "$PKG_CONFIG" && \
70091    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
70092  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
70093  ac_status=$?
70094  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70095  test $ac_status = 0; }; then
70096  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
70097		      test "x$?" != "x0" && pkg_failed=yes
70098else
70099  pkg_failed=yes
70100fi
70101 else
70102    pkg_failed=untried
70103fi
70104if test -n "$LUA_LIBS"; then
70105    pkg_cv_LUA_LIBS="$LUA_LIBS"
70106 elif test -n "$PKG_CONFIG"; then
70107    if test -n "$PKG_CONFIG" && \
70108    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
70109  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
70110  ac_status=$?
70111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70112  test $ac_status = 0; }; then
70113  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
70114		      test "x$?" != "x0" && pkg_failed=yes
70115else
70116  pkg_failed=yes
70117fi
70118 else
70119    pkg_failed=untried
70120fi
70121
70122
70123
70124if test $pkg_failed = yes; then
70125   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70126$as_echo "no" >&6; }
70127
70128if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70129        _pkg_short_errors_supported=yes
70130else
70131        _pkg_short_errors_supported=no
70132fi
70133        if test $_pkg_short_errors_supported = yes; then
70134	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
70135        else
70136	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
70137        fi
70138	# Put the nasty error message in config.log where it belongs
70139	echo "$LUA_PKG_ERRORS" >&5
70140
70141
70142
70143pkg_failed=no
70144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
70145$as_echo_n "checking for LUA... " >&6; }
70146
70147if test -n "$LUA_CFLAGS"; then
70148    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
70149 elif test -n "$PKG_CONFIG"; then
70150    if test -n "$PKG_CONFIG" && \
70151    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
70152  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
70153  ac_status=$?
70154  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70155  test $ac_status = 0; }; then
70156  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
70157		      test "x$?" != "x0" && pkg_failed=yes
70158else
70159  pkg_failed=yes
70160fi
70161 else
70162    pkg_failed=untried
70163fi
70164if test -n "$LUA_LIBS"; then
70165    pkg_cv_LUA_LIBS="$LUA_LIBS"
70166 elif test -n "$PKG_CONFIG"; then
70167    if test -n "$PKG_CONFIG" && \
70168    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
70169  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
70170  ac_status=$?
70171  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70172  test $ac_status = 0; }; then
70173  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
70174		      test "x$?" != "x0" && pkg_failed=yes
70175else
70176  pkg_failed=yes
70177fi
70178 else
70179    pkg_failed=untried
70180fi
70181
70182
70183
70184if test $pkg_failed = yes; then
70185   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70186$as_echo "no" >&6; }
70187
70188if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70189        _pkg_short_errors_supported=yes
70190else
70191        _pkg_short_errors_supported=no
70192fi
70193        if test $_pkg_short_errors_supported = yes; then
70194	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
70195        else
70196	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
70197        fi
70198	# Put the nasty error message in config.log where it belongs
70199	echo "$LUA_PKG_ERRORS" >&5
70200
70201	with_liblua="no (pkg-config cannot find liblua)"
70202
70203elif test $pkg_failed = untried; then
70204     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70205$as_echo "no" >&6; }
70206	with_liblua="no (pkg-config cannot find liblua)"
70207
70208else
70209	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
70210	LUA_LIBS=$pkg_cv_LUA_LIBS
70211        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70212$as_echo "yes" >&6; }
70213	with_liblua="yes"
70214fi
70215
70216
70217elif test $pkg_failed = untried; then
70218     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70219$as_echo "no" >&6; }
70220
70221
70222pkg_failed=no
70223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
70224$as_echo_n "checking for LUA... " >&6; }
70225
70226if test -n "$LUA_CFLAGS"; then
70227    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
70228 elif test -n "$PKG_CONFIG"; then
70229    if test -n "$PKG_CONFIG" && \
70230    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
70231  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
70232  ac_status=$?
70233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70234  test $ac_status = 0; }; then
70235  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
70236		      test "x$?" != "x0" && pkg_failed=yes
70237else
70238  pkg_failed=yes
70239fi
70240 else
70241    pkg_failed=untried
70242fi
70243if test -n "$LUA_LIBS"; then
70244    pkg_cv_LUA_LIBS="$LUA_LIBS"
70245 elif test -n "$PKG_CONFIG"; then
70246    if test -n "$PKG_CONFIG" && \
70247    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
70248  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
70249  ac_status=$?
70250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70251  test $ac_status = 0; }; then
70252  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
70253		      test "x$?" != "x0" && pkg_failed=yes
70254else
70255  pkg_failed=yes
70256fi
70257 else
70258    pkg_failed=untried
70259fi
70260
70261
70262
70263if test $pkg_failed = yes; then
70264   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70265$as_echo "no" >&6; }
70266
70267if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70268        _pkg_short_errors_supported=yes
70269else
70270        _pkg_short_errors_supported=no
70271fi
70272        if test $_pkg_short_errors_supported = yes; then
70273	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
70274        else
70275	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
70276        fi
70277	# Put the nasty error message in config.log where it belongs
70278	echo "$LUA_PKG_ERRORS" >&5
70279
70280	with_liblua="no (pkg-config cannot find liblua)"
70281
70282elif test $pkg_failed = untried; then
70283     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70284$as_echo "no" >&6; }
70285	with_liblua="no (pkg-config cannot find liblua)"
70286
70287else
70288	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
70289	LUA_LIBS=$pkg_cv_LUA_LIBS
70290        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70291$as_echo "yes" >&6; }
70292	with_liblua="yes"
70293fi
70294
70295
70296else
70297	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
70298	LUA_LIBS=$pkg_cv_LUA_LIBS
70299        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70300$as_echo "yes" >&6; }
70301	with_liblua="yes"
70302fi
70303
70304
70305elif test $pkg_failed = untried; then
70306     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70307$as_echo "no" >&6; }
70308
70309
70310pkg_failed=no
70311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
70312$as_echo_n "checking for LUA... " >&6; }
70313
70314if test -n "$LUA_CFLAGS"; then
70315    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
70316 elif test -n "$PKG_CONFIG"; then
70317    if test -n "$PKG_CONFIG" && \
70318    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
70319  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
70320  ac_status=$?
70321  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70322  test $ac_status = 0; }; then
70323  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
70324		      test "x$?" != "x0" && pkg_failed=yes
70325else
70326  pkg_failed=yes
70327fi
70328 else
70329    pkg_failed=untried
70330fi
70331if test -n "$LUA_LIBS"; then
70332    pkg_cv_LUA_LIBS="$LUA_LIBS"
70333 elif test -n "$PKG_CONFIG"; then
70334    if test -n "$PKG_CONFIG" && \
70335    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
70336  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
70337  ac_status=$?
70338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70339  test $ac_status = 0; }; then
70340  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
70341		      test "x$?" != "x0" && pkg_failed=yes
70342else
70343  pkg_failed=yes
70344fi
70345 else
70346    pkg_failed=untried
70347fi
70348
70349
70350
70351if test $pkg_failed = yes; then
70352   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70353$as_echo "no" >&6; }
70354
70355if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70356        _pkg_short_errors_supported=yes
70357else
70358        _pkg_short_errors_supported=no
70359fi
70360        if test $_pkg_short_errors_supported = yes; then
70361	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
70362        else
70363	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
70364        fi
70365	# Put the nasty error message in config.log where it belongs
70366	echo "$LUA_PKG_ERRORS" >&5
70367
70368
70369
70370pkg_failed=no
70371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
70372$as_echo_n "checking for LUA... " >&6; }
70373
70374if test -n "$LUA_CFLAGS"; then
70375    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
70376 elif test -n "$PKG_CONFIG"; then
70377    if test -n "$PKG_CONFIG" && \
70378    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
70379  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
70380  ac_status=$?
70381  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70382  test $ac_status = 0; }; then
70383  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
70384		      test "x$?" != "x0" && pkg_failed=yes
70385else
70386  pkg_failed=yes
70387fi
70388 else
70389    pkg_failed=untried
70390fi
70391if test -n "$LUA_LIBS"; then
70392    pkg_cv_LUA_LIBS="$LUA_LIBS"
70393 elif test -n "$PKG_CONFIG"; then
70394    if test -n "$PKG_CONFIG" && \
70395    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
70396  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
70397  ac_status=$?
70398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70399  test $ac_status = 0; }; then
70400  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
70401		      test "x$?" != "x0" && pkg_failed=yes
70402else
70403  pkg_failed=yes
70404fi
70405 else
70406    pkg_failed=untried
70407fi
70408
70409
70410
70411if test $pkg_failed = yes; then
70412   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70413$as_echo "no" >&6; }
70414
70415if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70416        _pkg_short_errors_supported=yes
70417else
70418        _pkg_short_errors_supported=no
70419fi
70420        if test $_pkg_short_errors_supported = yes; then
70421	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
70422        else
70423	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
70424        fi
70425	# Put the nasty error message in config.log where it belongs
70426	echo "$LUA_PKG_ERRORS" >&5
70427
70428	with_liblua="no (pkg-config cannot find liblua)"
70429
70430elif test $pkg_failed = untried; then
70431     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70432$as_echo "no" >&6; }
70433	with_liblua="no (pkg-config cannot find liblua)"
70434
70435else
70436	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
70437	LUA_LIBS=$pkg_cv_LUA_LIBS
70438        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70439$as_echo "yes" >&6; }
70440	with_liblua="yes"
70441fi
70442
70443
70444elif test $pkg_failed = untried; then
70445     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70446$as_echo "no" >&6; }
70447
70448
70449pkg_failed=no
70450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
70451$as_echo_n "checking for LUA... " >&6; }
70452
70453if test -n "$LUA_CFLAGS"; then
70454    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
70455 elif test -n "$PKG_CONFIG"; then
70456    if test -n "$PKG_CONFIG" && \
70457    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
70458  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
70459  ac_status=$?
70460  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70461  test $ac_status = 0; }; then
70462  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
70463		      test "x$?" != "x0" && pkg_failed=yes
70464else
70465  pkg_failed=yes
70466fi
70467 else
70468    pkg_failed=untried
70469fi
70470if test -n "$LUA_LIBS"; then
70471    pkg_cv_LUA_LIBS="$LUA_LIBS"
70472 elif test -n "$PKG_CONFIG"; then
70473    if test -n "$PKG_CONFIG" && \
70474    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
70475  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
70476  ac_status=$?
70477  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70478  test $ac_status = 0; }; then
70479  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
70480		      test "x$?" != "x0" && pkg_failed=yes
70481else
70482  pkg_failed=yes
70483fi
70484 else
70485    pkg_failed=untried
70486fi
70487
70488
70489
70490if test $pkg_failed = yes; then
70491   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70492$as_echo "no" >&6; }
70493
70494if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70495        _pkg_short_errors_supported=yes
70496else
70497        _pkg_short_errors_supported=no
70498fi
70499        if test $_pkg_short_errors_supported = yes; then
70500	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
70501        else
70502	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
70503        fi
70504	# Put the nasty error message in config.log where it belongs
70505	echo "$LUA_PKG_ERRORS" >&5
70506
70507	with_liblua="no (pkg-config cannot find liblua)"
70508
70509elif test $pkg_failed = untried; then
70510     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70511$as_echo "no" >&6; }
70512	with_liblua="no (pkg-config cannot find liblua)"
70513
70514else
70515	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
70516	LUA_LIBS=$pkg_cv_LUA_LIBS
70517        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70518$as_echo "yes" >&6; }
70519	with_liblua="yes"
70520fi
70521
70522
70523else
70524	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
70525	LUA_LIBS=$pkg_cv_LUA_LIBS
70526        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70527$as_echo "yes" >&6; }
70528	with_liblua="yes"
70529fi
70530
70531
70532else
70533	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
70534	LUA_LIBS=$pkg_cv_LUA_LIBS
70535        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70536$as_echo "yes" >&6; }
70537	with_liblua="yes"
70538fi
70539
70540
70541elif test $pkg_failed = untried; then
70542     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70543$as_echo "no" >&6; }
70544
70545
70546pkg_failed=no
70547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
70548$as_echo_n "checking for LUA... " >&6; }
70549
70550if test -n "$LUA_CFLAGS"; then
70551    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
70552 elif test -n "$PKG_CONFIG"; then
70553    if test -n "$PKG_CONFIG" && \
70554    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
70555  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
70556  ac_status=$?
70557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70558  test $ac_status = 0; }; then
70559  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
70560		      test "x$?" != "x0" && pkg_failed=yes
70561else
70562  pkg_failed=yes
70563fi
70564 else
70565    pkg_failed=untried
70566fi
70567if test -n "$LUA_LIBS"; then
70568    pkg_cv_LUA_LIBS="$LUA_LIBS"
70569 elif test -n "$PKG_CONFIG"; then
70570    if test -n "$PKG_CONFIG" && \
70571    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
70572  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
70573  ac_status=$?
70574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70575  test $ac_status = 0; }; then
70576  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
70577		      test "x$?" != "x0" && pkg_failed=yes
70578else
70579  pkg_failed=yes
70580fi
70581 else
70582    pkg_failed=untried
70583fi
70584
70585
70586
70587if test $pkg_failed = yes; then
70588   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70589$as_echo "no" >&6; }
70590
70591if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70592        _pkg_short_errors_supported=yes
70593else
70594        _pkg_short_errors_supported=no
70595fi
70596        if test $_pkg_short_errors_supported = yes; then
70597	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
70598        else
70599	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
70600        fi
70601	# Put the nasty error message in config.log where it belongs
70602	echo "$LUA_PKG_ERRORS" >&5
70603
70604
70605
70606pkg_failed=no
70607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
70608$as_echo_n "checking for LUA... " >&6; }
70609
70610if test -n "$LUA_CFLAGS"; then
70611    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
70612 elif test -n "$PKG_CONFIG"; then
70613    if test -n "$PKG_CONFIG" && \
70614    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
70615  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
70616  ac_status=$?
70617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70618  test $ac_status = 0; }; then
70619  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
70620		      test "x$?" != "x0" && pkg_failed=yes
70621else
70622  pkg_failed=yes
70623fi
70624 else
70625    pkg_failed=untried
70626fi
70627if test -n "$LUA_LIBS"; then
70628    pkg_cv_LUA_LIBS="$LUA_LIBS"
70629 elif test -n "$PKG_CONFIG"; then
70630    if test -n "$PKG_CONFIG" && \
70631    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
70632  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
70633  ac_status=$?
70634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70635  test $ac_status = 0; }; then
70636  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
70637		      test "x$?" != "x0" && pkg_failed=yes
70638else
70639  pkg_failed=yes
70640fi
70641 else
70642    pkg_failed=untried
70643fi
70644
70645
70646
70647if test $pkg_failed = yes; then
70648   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70649$as_echo "no" >&6; }
70650
70651if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70652        _pkg_short_errors_supported=yes
70653else
70654        _pkg_short_errors_supported=no
70655fi
70656        if test $_pkg_short_errors_supported = yes; then
70657	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
70658        else
70659	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
70660        fi
70661	# Put the nasty error message in config.log where it belongs
70662	echo "$LUA_PKG_ERRORS" >&5
70663
70664
70665
70666pkg_failed=no
70667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
70668$as_echo_n "checking for LUA... " >&6; }
70669
70670if test -n "$LUA_CFLAGS"; then
70671    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
70672 elif test -n "$PKG_CONFIG"; then
70673    if test -n "$PKG_CONFIG" && \
70674    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
70675  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
70676  ac_status=$?
70677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70678  test $ac_status = 0; }; then
70679  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
70680		      test "x$?" != "x0" && pkg_failed=yes
70681else
70682  pkg_failed=yes
70683fi
70684 else
70685    pkg_failed=untried
70686fi
70687if test -n "$LUA_LIBS"; then
70688    pkg_cv_LUA_LIBS="$LUA_LIBS"
70689 elif test -n "$PKG_CONFIG"; then
70690    if test -n "$PKG_CONFIG" && \
70691    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
70692  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
70693  ac_status=$?
70694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70695  test $ac_status = 0; }; then
70696  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
70697		      test "x$?" != "x0" && pkg_failed=yes
70698else
70699  pkg_failed=yes
70700fi
70701 else
70702    pkg_failed=untried
70703fi
70704
70705
70706
70707if test $pkg_failed = yes; then
70708   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70709$as_echo "no" >&6; }
70710
70711if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70712        _pkg_short_errors_supported=yes
70713else
70714        _pkg_short_errors_supported=no
70715fi
70716        if test $_pkg_short_errors_supported = yes; then
70717	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
70718        else
70719	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
70720        fi
70721	# Put the nasty error message in config.log where it belongs
70722	echo "$LUA_PKG_ERRORS" >&5
70723
70724	with_liblua="no (pkg-config cannot find liblua)"
70725
70726elif test $pkg_failed = untried; then
70727     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70728$as_echo "no" >&6; }
70729	with_liblua="no (pkg-config cannot find liblua)"
70730
70731else
70732	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
70733	LUA_LIBS=$pkg_cv_LUA_LIBS
70734        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70735$as_echo "yes" >&6; }
70736	with_liblua="yes"
70737fi
70738
70739
70740elif test $pkg_failed = untried; then
70741     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70742$as_echo "no" >&6; }
70743
70744
70745pkg_failed=no
70746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
70747$as_echo_n "checking for LUA... " >&6; }
70748
70749if test -n "$LUA_CFLAGS"; then
70750    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
70751 elif test -n "$PKG_CONFIG"; then
70752    if test -n "$PKG_CONFIG" && \
70753    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
70754  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
70755  ac_status=$?
70756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70757  test $ac_status = 0; }; then
70758  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
70759		      test "x$?" != "x0" && pkg_failed=yes
70760else
70761  pkg_failed=yes
70762fi
70763 else
70764    pkg_failed=untried
70765fi
70766if test -n "$LUA_LIBS"; then
70767    pkg_cv_LUA_LIBS="$LUA_LIBS"
70768 elif test -n "$PKG_CONFIG"; then
70769    if test -n "$PKG_CONFIG" && \
70770    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
70771  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
70772  ac_status=$?
70773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70774  test $ac_status = 0; }; then
70775  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
70776		      test "x$?" != "x0" && pkg_failed=yes
70777else
70778  pkg_failed=yes
70779fi
70780 else
70781    pkg_failed=untried
70782fi
70783
70784
70785
70786if test $pkg_failed = yes; then
70787   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70788$as_echo "no" >&6; }
70789
70790if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70791        _pkg_short_errors_supported=yes
70792else
70793        _pkg_short_errors_supported=no
70794fi
70795        if test $_pkg_short_errors_supported = yes; then
70796	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
70797        else
70798	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
70799        fi
70800	# Put the nasty error message in config.log where it belongs
70801	echo "$LUA_PKG_ERRORS" >&5
70802
70803	with_liblua="no (pkg-config cannot find liblua)"
70804
70805elif test $pkg_failed = untried; then
70806     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70807$as_echo "no" >&6; }
70808	with_liblua="no (pkg-config cannot find liblua)"
70809
70810else
70811	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
70812	LUA_LIBS=$pkg_cv_LUA_LIBS
70813        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70814$as_echo "yes" >&6; }
70815	with_liblua="yes"
70816fi
70817
70818
70819else
70820	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
70821	LUA_LIBS=$pkg_cv_LUA_LIBS
70822        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70823$as_echo "yes" >&6; }
70824	with_liblua="yes"
70825fi
70826
70827
70828elif test $pkg_failed = untried; then
70829     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70830$as_echo "no" >&6; }
70831
70832
70833pkg_failed=no
70834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
70835$as_echo_n "checking for LUA... " >&6; }
70836
70837if test -n "$LUA_CFLAGS"; then
70838    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
70839 elif test -n "$PKG_CONFIG"; then
70840    if test -n "$PKG_CONFIG" && \
70841    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
70842  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
70843  ac_status=$?
70844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70845  test $ac_status = 0; }; then
70846  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
70847		      test "x$?" != "x0" && pkg_failed=yes
70848else
70849  pkg_failed=yes
70850fi
70851 else
70852    pkg_failed=untried
70853fi
70854if test -n "$LUA_LIBS"; then
70855    pkg_cv_LUA_LIBS="$LUA_LIBS"
70856 elif test -n "$PKG_CONFIG"; then
70857    if test -n "$PKG_CONFIG" && \
70858    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
70859  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
70860  ac_status=$?
70861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70862  test $ac_status = 0; }; then
70863  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
70864		      test "x$?" != "x0" && pkg_failed=yes
70865else
70866  pkg_failed=yes
70867fi
70868 else
70869    pkg_failed=untried
70870fi
70871
70872
70873
70874if test $pkg_failed = yes; then
70875   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70876$as_echo "no" >&6; }
70877
70878if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70879        _pkg_short_errors_supported=yes
70880else
70881        _pkg_short_errors_supported=no
70882fi
70883        if test $_pkg_short_errors_supported = yes; then
70884	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
70885        else
70886	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
70887        fi
70888	# Put the nasty error message in config.log where it belongs
70889	echo "$LUA_PKG_ERRORS" >&5
70890
70891
70892
70893pkg_failed=no
70894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
70895$as_echo_n "checking for LUA... " >&6; }
70896
70897if test -n "$LUA_CFLAGS"; then
70898    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
70899 elif test -n "$PKG_CONFIG"; then
70900    if test -n "$PKG_CONFIG" && \
70901    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
70902  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
70903  ac_status=$?
70904  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70905  test $ac_status = 0; }; then
70906  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
70907		      test "x$?" != "x0" && pkg_failed=yes
70908else
70909  pkg_failed=yes
70910fi
70911 else
70912    pkg_failed=untried
70913fi
70914if test -n "$LUA_LIBS"; then
70915    pkg_cv_LUA_LIBS="$LUA_LIBS"
70916 elif test -n "$PKG_CONFIG"; then
70917    if test -n "$PKG_CONFIG" && \
70918    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
70919  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
70920  ac_status=$?
70921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70922  test $ac_status = 0; }; then
70923  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
70924		      test "x$?" != "x0" && pkg_failed=yes
70925else
70926  pkg_failed=yes
70927fi
70928 else
70929    pkg_failed=untried
70930fi
70931
70932
70933
70934if test $pkg_failed = yes; then
70935   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70936$as_echo "no" >&6; }
70937
70938if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70939        _pkg_short_errors_supported=yes
70940else
70941        _pkg_short_errors_supported=no
70942fi
70943        if test $_pkg_short_errors_supported = yes; then
70944	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
70945        else
70946	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
70947        fi
70948	# Put the nasty error message in config.log where it belongs
70949	echo "$LUA_PKG_ERRORS" >&5
70950
70951	with_liblua="no (pkg-config cannot find liblua)"
70952
70953elif test $pkg_failed = untried; then
70954     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70955$as_echo "no" >&6; }
70956	with_liblua="no (pkg-config cannot find liblua)"
70957
70958else
70959	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
70960	LUA_LIBS=$pkg_cv_LUA_LIBS
70961        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70962$as_echo "yes" >&6; }
70963	with_liblua="yes"
70964fi
70965
70966
70967elif test $pkg_failed = untried; then
70968     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70969$as_echo "no" >&6; }
70970
70971
70972pkg_failed=no
70973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
70974$as_echo_n "checking for LUA... " >&6; }
70975
70976if test -n "$LUA_CFLAGS"; then
70977    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
70978 elif test -n "$PKG_CONFIG"; then
70979    if test -n "$PKG_CONFIG" && \
70980    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
70981  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
70982  ac_status=$?
70983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70984  test $ac_status = 0; }; then
70985  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
70986		      test "x$?" != "x0" && pkg_failed=yes
70987else
70988  pkg_failed=yes
70989fi
70990 else
70991    pkg_failed=untried
70992fi
70993if test -n "$LUA_LIBS"; then
70994    pkg_cv_LUA_LIBS="$LUA_LIBS"
70995 elif test -n "$PKG_CONFIG"; then
70996    if test -n "$PKG_CONFIG" && \
70997    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
70998  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
70999  ac_status=$?
71000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71001  test $ac_status = 0; }; then
71002  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
71003		      test "x$?" != "x0" && pkg_failed=yes
71004else
71005  pkg_failed=yes
71006fi
71007 else
71008    pkg_failed=untried
71009fi
71010
71011
71012
71013if test $pkg_failed = yes; then
71014   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71015$as_echo "no" >&6; }
71016
71017if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71018        _pkg_short_errors_supported=yes
71019else
71020        _pkg_short_errors_supported=no
71021fi
71022        if test $_pkg_short_errors_supported = yes; then
71023	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
71024        else
71025	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
71026        fi
71027	# Put the nasty error message in config.log where it belongs
71028	echo "$LUA_PKG_ERRORS" >&5
71029
71030	with_liblua="no (pkg-config cannot find liblua)"
71031
71032elif test $pkg_failed = untried; then
71033     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71034$as_echo "no" >&6; }
71035	with_liblua="no (pkg-config cannot find liblua)"
71036
71037else
71038	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
71039	LUA_LIBS=$pkg_cv_LUA_LIBS
71040        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71041$as_echo "yes" >&6; }
71042	with_liblua="yes"
71043fi
71044
71045
71046else
71047	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
71048	LUA_LIBS=$pkg_cv_LUA_LIBS
71049        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71050$as_echo "yes" >&6; }
71051	with_liblua="yes"
71052fi
71053
71054
71055else
71056	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
71057	LUA_LIBS=$pkg_cv_LUA_LIBS
71058        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71059$as_echo "yes" >&6; }
71060	with_liblua="yes"
71061fi
71062
71063
71064else
71065	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
71066	LUA_LIBS=$pkg_cv_LUA_LIBS
71067        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71068$as_echo "yes" >&6; }
71069	with_liblua="yes"
71070fi
71071
71072
71073else
71074	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
71075	LUA_LIBS=$pkg_cv_LUA_LIBS
71076        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71077$as_echo "yes" >&6; }
71078	with_liblua="yes"
71079fi
71080
71081
71082elif test $pkg_failed = untried; then
71083     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71084$as_echo "no" >&6; }
71085
71086
71087pkg_failed=no
71088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
71089$as_echo_n "checking for LUA... " >&6; }
71090
71091if test -n "$LUA_CFLAGS"; then
71092    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
71093 elif test -n "$PKG_CONFIG"; then
71094    if test -n "$PKG_CONFIG" && \
71095    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
71096  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
71097  ac_status=$?
71098  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71099  test $ac_status = 0; }; then
71100  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
71101		      test "x$?" != "x0" && pkg_failed=yes
71102else
71103  pkg_failed=yes
71104fi
71105 else
71106    pkg_failed=untried
71107fi
71108if test -n "$LUA_LIBS"; then
71109    pkg_cv_LUA_LIBS="$LUA_LIBS"
71110 elif test -n "$PKG_CONFIG"; then
71111    if test -n "$PKG_CONFIG" && \
71112    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
71113  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
71114  ac_status=$?
71115  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71116  test $ac_status = 0; }; then
71117  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
71118		      test "x$?" != "x0" && pkg_failed=yes
71119else
71120  pkg_failed=yes
71121fi
71122 else
71123    pkg_failed=untried
71124fi
71125
71126
71127
71128if test $pkg_failed = yes; then
71129   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71130$as_echo "no" >&6; }
71131
71132if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71133        _pkg_short_errors_supported=yes
71134else
71135        _pkg_short_errors_supported=no
71136fi
71137        if test $_pkg_short_errors_supported = yes; then
71138	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
71139        else
71140	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
71141        fi
71142	# Put the nasty error message in config.log where it belongs
71143	echo "$LUA_PKG_ERRORS" >&5
71144
71145
71146
71147pkg_failed=no
71148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
71149$as_echo_n "checking for LUA... " >&6; }
71150
71151if test -n "$LUA_CFLAGS"; then
71152    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
71153 elif test -n "$PKG_CONFIG"; then
71154    if test -n "$PKG_CONFIG" && \
71155    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
71156  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
71157  ac_status=$?
71158  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71159  test $ac_status = 0; }; then
71160  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
71161		      test "x$?" != "x0" && pkg_failed=yes
71162else
71163  pkg_failed=yes
71164fi
71165 else
71166    pkg_failed=untried
71167fi
71168if test -n "$LUA_LIBS"; then
71169    pkg_cv_LUA_LIBS="$LUA_LIBS"
71170 elif test -n "$PKG_CONFIG"; then
71171    if test -n "$PKG_CONFIG" && \
71172    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
71173  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
71174  ac_status=$?
71175  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71176  test $ac_status = 0; }; then
71177  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
71178		      test "x$?" != "x0" && pkg_failed=yes
71179else
71180  pkg_failed=yes
71181fi
71182 else
71183    pkg_failed=untried
71184fi
71185
71186
71187
71188if test $pkg_failed = yes; then
71189   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71190$as_echo "no" >&6; }
71191
71192if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71193        _pkg_short_errors_supported=yes
71194else
71195        _pkg_short_errors_supported=no
71196fi
71197        if test $_pkg_short_errors_supported = yes; then
71198	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
71199        else
71200	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
71201        fi
71202	# Put the nasty error message in config.log where it belongs
71203	echo "$LUA_PKG_ERRORS" >&5
71204
71205
71206
71207pkg_failed=no
71208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
71209$as_echo_n "checking for LUA... " >&6; }
71210
71211if test -n "$LUA_CFLAGS"; then
71212    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
71213 elif test -n "$PKG_CONFIG"; then
71214    if test -n "$PKG_CONFIG" && \
71215    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
71216  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
71217  ac_status=$?
71218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71219  test $ac_status = 0; }; then
71220  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
71221		      test "x$?" != "x0" && pkg_failed=yes
71222else
71223  pkg_failed=yes
71224fi
71225 else
71226    pkg_failed=untried
71227fi
71228if test -n "$LUA_LIBS"; then
71229    pkg_cv_LUA_LIBS="$LUA_LIBS"
71230 elif test -n "$PKG_CONFIG"; then
71231    if test -n "$PKG_CONFIG" && \
71232    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
71233  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
71234  ac_status=$?
71235  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71236  test $ac_status = 0; }; then
71237  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
71238		      test "x$?" != "x0" && pkg_failed=yes
71239else
71240  pkg_failed=yes
71241fi
71242 else
71243    pkg_failed=untried
71244fi
71245
71246
71247
71248if test $pkg_failed = yes; then
71249   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71250$as_echo "no" >&6; }
71251
71252if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71253        _pkg_short_errors_supported=yes
71254else
71255        _pkg_short_errors_supported=no
71256fi
71257        if test $_pkg_short_errors_supported = yes; then
71258	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
71259        else
71260	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
71261        fi
71262	# Put the nasty error message in config.log where it belongs
71263	echo "$LUA_PKG_ERRORS" >&5
71264
71265
71266
71267pkg_failed=no
71268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
71269$as_echo_n "checking for LUA... " >&6; }
71270
71271if test -n "$LUA_CFLAGS"; then
71272    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
71273 elif test -n "$PKG_CONFIG"; then
71274    if test -n "$PKG_CONFIG" && \
71275    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
71276  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
71277  ac_status=$?
71278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71279  test $ac_status = 0; }; then
71280  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
71281		      test "x$?" != "x0" && pkg_failed=yes
71282else
71283  pkg_failed=yes
71284fi
71285 else
71286    pkg_failed=untried
71287fi
71288if test -n "$LUA_LIBS"; then
71289    pkg_cv_LUA_LIBS="$LUA_LIBS"
71290 elif test -n "$PKG_CONFIG"; then
71291    if test -n "$PKG_CONFIG" && \
71292    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
71293  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
71294  ac_status=$?
71295  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71296  test $ac_status = 0; }; then
71297  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
71298		      test "x$?" != "x0" && pkg_failed=yes
71299else
71300  pkg_failed=yes
71301fi
71302 else
71303    pkg_failed=untried
71304fi
71305
71306
71307
71308if test $pkg_failed = yes; then
71309   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71310$as_echo "no" >&6; }
71311
71312if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71313        _pkg_short_errors_supported=yes
71314else
71315        _pkg_short_errors_supported=no
71316fi
71317        if test $_pkg_short_errors_supported = yes; then
71318	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
71319        else
71320	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
71321        fi
71322	# Put the nasty error message in config.log where it belongs
71323	echo "$LUA_PKG_ERRORS" >&5
71324
71325
71326
71327pkg_failed=no
71328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
71329$as_echo_n "checking for LUA... " >&6; }
71330
71331if test -n "$LUA_CFLAGS"; then
71332    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
71333 elif test -n "$PKG_CONFIG"; then
71334    if test -n "$PKG_CONFIG" && \
71335    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
71336  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
71337  ac_status=$?
71338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71339  test $ac_status = 0; }; then
71340  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
71341		      test "x$?" != "x0" && pkg_failed=yes
71342else
71343  pkg_failed=yes
71344fi
71345 else
71346    pkg_failed=untried
71347fi
71348if test -n "$LUA_LIBS"; then
71349    pkg_cv_LUA_LIBS="$LUA_LIBS"
71350 elif test -n "$PKG_CONFIG"; then
71351    if test -n "$PKG_CONFIG" && \
71352    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
71353  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
71354  ac_status=$?
71355  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71356  test $ac_status = 0; }; then
71357  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
71358		      test "x$?" != "x0" && pkg_failed=yes
71359else
71360  pkg_failed=yes
71361fi
71362 else
71363    pkg_failed=untried
71364fi
71365
71366
71367
71368if test $pkg_failed = yes; then
71369   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71370$as_echo "no" >&6; }
71371
71372if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71373        _pkg_short_errors_supported=yes
71374else
71375        _pkg_short_errors_supported=no
71376fi
71377        if test $_pkg_short_errors_supported = yes; then
71378	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
71379        else
71380	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
71381        fi
71382	# Put the nasty error message in config.log where it belongs
71383	echo "$LUA_PKG_ERRORS" >&5
71384
71385	with_liblua="no (pkg-config cannot find liblua)"
71386
71387elif test $pkg_failed = untried; then
71388     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71389$as_echo "no" >&6; }
71390	with_liblua="no (pkg-config cannot find liblua)"
71391
71392else
71393	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
71394	LUA_LIBS=$pkg_cv_LUA_LIBS
71395        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71396$as_echo "yes" >&6; }
71397	with_liblua="yes"
71398fi
71399
71400
71401elif test $pkg_failed = untried; then
71402     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71403$as_echo "no" >&6; }
71404
71405
71406pkg_failed=no
71407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
71408$as_echo_n "checking for LUA... " >&6; }
71409
71410if test -n "$LUA_CFLAGS"; then
71411    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
71412 elif test -n "$PKG_CONFIG"; then
71413    if test -n "$PKG_CONFIG" && \
71414    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
71415  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
71416  ac_status=$?
71417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71418  test $ac_status = 0; }; then
71419  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
71420		      test "x$?" != "x0" && pkg_failed=yes
71421else
71422  pkg_failed=yes
71423fi
71424 else
71425    pkg_failed=untried
71426fi
71427if test -n "$LUA_LIBS"; then
71428    pkg_cv_LUA_LIBS="$LUA_LIBS"
71429 elif test -n "$PKG_CONFIG"; then
71430    if test -n "$PKG_CONFIG" && \
71431    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
71432  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
71433  ac_status=$?
71434  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71435  test $ac_status = 0; }; then
71436  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
71437		      test "x$?" != "x0" && pkg_failed=yes
71438else
71439  pkg_failed=yes
71440fi
71441 else
71442    pkg_failed=untried
71443fi
71444
71445
71446
71447if test $pkg_failed = yes; then
71448   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71449$as_echo "no" >&6; }
71450
71451if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71452        _pkg_short_errors_supported=yes
71453else
71454        _pkg_short_errors_supported=no
71455fi
71456        if test $_pkg_short_errors_supported = yes; then
71457	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
71458        else
71459	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
71460        fi
71461	# Put the nasty error message in config.log where it belongs
71462	echo "$LUA_PKG_ERRORS" >&5
71463
71464	with_liblua="no (pkg-config cannot find liblua)"
71465
71466elif test $pkg_failed = untried; then
71467     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71468$as_echo "no" >&6; }
71469	with_liblua="no (pkg-config cannot find liblua)"
71470
71471else
71472	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
71473	LUA_LIBS=$pkg_cv_LUA_LIBS
71474        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71475$as_echo "yes" >&6; }
71476	with_liblua="yes"
71477fi
71478
71479
71480else
71481	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
71482	LUA_LIBS=$pkg_cv_LUA_LIBS
71483        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71484$as_echo "yes" >&6; }
71485	with_liblua="yes"
71486fi
71487
71488
71489elif test $pkg_failed = untried; then
71490     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71491$as_echo "no" >&6; }
71492
71493
71494pkg_failed=no
71495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
71496$as_echo_n "checking for LUA... " >&6; }
71497
71498if test -n "$LUA_CFLAGS"; then
71499    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
71500 elif test -n "$PKG_CONFIG"; then
71501    if test -n "$PKG_CONFIG" && \
71502    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
71503  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
71504  ac_status=$?
71505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71506  test $ac_status = 0; }; then
71507  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
71508		      test "x$?" != "x0" && pkg_failed=yes
71509else
71510  pkg_failed=yes
71511fi
71512 else
71513    pkg_failed=untried
71514fi
71515if test -n "$LUA_LIBS"; then
71516    pkg_cv_LUA_LIBS="$LUA_LIBS"
71517 elif test -n "$PKG_CONFIG"; then
71518    if test -n "$PKG_CONFIG" && \
71519    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
71520  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
71521  ac_status=$?
71522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71523  test $ac_status = 0; }; then
71524  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
71525		      test "x$?" != "x0" && pkg_failed=yes
71526else
71527  pkg_failed=yes
71528fi
71529 else
71530    pkg_failed=untried
71531fi
71532
71533
71534
71535if test $pkg_failed = yes; then
71536   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71537$as_echo "no" >&6; }
71538
71539if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71540        _pkg_short_errors_supported=yes
71541else
71542        _pkg_short_errors_supported=no
71543fi
71544        if test $_pkg_short_errors_supported = yes; then
71545	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
71546        else
71547	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
71548        fi
71549	# Put the nasty error message in config.log where it belongs
71550	echo "$LUA_PKG_ERRORS" >&5
71551
71552
71553
71554pkg_failed=no
71555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
71556$as_echo_n "checking for LUA... " >&6; }
71557
71558if test -n "$LUA_CFLAGS"; then
71559    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
71560 elif test -n "$PKG_CONFIG"; then
71561    if test -n "$PKG_CONFIG" && \
71562    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
71563  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
71564  ac_status=$?
71565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71566  test $ac_status = 0; }; then
71567  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
71568		      test "x$?" != "x0" && pkg_failed=yes
71569else
71570  pkg_failed=yes
71571fi
71572 else
71573    pkg_failed=untried
71574fi
71575if test -n "$LUA_LIBS"; then
71576    pkg_cv_LUA_LIBS="$LUA_LIBS"
71577 elif test -n "$PKG_CONFIG"; then
71578    if test -n "$PKG_CONFIG" && \
71579    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
71580  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
71581  ac_status=$?
71582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71583  test $ac_status = 0; }; then
71584  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
71585		      test "x$?" != "x0" && pkg_failed=yes
71586else
71587  pkg_failed=yes
71588fi
71589 else
71590    pkg_failed=untried
71591fi
71592
71593
71594
71595if test $pkg_failed = yes; then
71596   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71597$as_echo "no" >&6; }
71598
71599if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71600        _pkg_short_errors_supported=yes
71601else
71602        _pkg_short_errors_supported=no
71603fi
71604        if test $_pkg_short_errors_supported = yes; then
71605	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
71606        else
71607	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
71608        fi
71609	# Put the nasty error message in config.log where it belongs
71610	echo "$LUA_PKG_ERRORS" >&5
71611
71612	with_liblua="no (pkg-config cannot find liblua)"
71613
71614elif test $pkg_failed = untried; then
71615     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71616$as_echo "no" >&6; }
71617	with_liblua="no (pkg-config cannot find liblua)"
71618
71619else
71620	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
71621	LUA_LIBS=$pkg_cv_LUA_LIBS
71622        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71623$as_echo "yes" >&6; }
71624	with_liblua="yes"
71625fi
71626
71627
71628elif test $pkg_failed = untried; then
71629     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71630$as_echo "no" >&6; }
71631
71632
71633pkg_failed=no
71634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
71635$as_echo_n "checking for LUA... " >&6; }
71636
71637if test -n "$LUA_CFLAGS"; then
71638    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
71639 elif test -n "$PKG_CONFIG"; then
71640    if test -n "$PKG_CONFIG" && \
71641    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
71642  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
71643  ac_status=$?
71644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71645  test $ac_status = 0; }; then
71646  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
71647		      test "x$?" != "x0" && pkg_failed=yes
71648else
71649  pkg_failed=yes
71650fi
71651 else
71652    pkg_failed=untried
71653fi
71654if test -n "$LUA_LIBS"; then
71655    pkg_cv_LUA_LIBS="$LUA_LIBS"
71656 elif test -n "$PKG_CONFIG"; then
71657    if test -n "$PKG_CONFIG" && \
71658    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
71659  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
71660  ac_status=$?
71661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71662  test $ac_status = 0; }; then
71663  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
71664		      test "x$?" != "x0" && pkg_failed=yes
71665else
71666  pkg_failed=yes
71667fi
71668 else
71669    pkg_failed=untried
71670fi
71671
71672
71673
71674if test $pkg_failed = yes; then
71675   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71676$as_echo "no" >&6; }
71677
71678if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71679        _pkg_short_errors_supported=yes
71680else
71681        _pkg_short_errors_supported=no
71682fi
71683        if test $_pkg_short_errors_supported = yes; then
71684	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
71685        else
71686	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
71687        fi
71688	# Put the nasty error message in config.log where it belongs
71689	echo "$LUA_PKG_ERRORS" >&5
71690
71691	with_liblua="no (pkg-config cannot find liblua)"
71692
71693elif test $pkg_failed = untried; then
71694     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71695$as_echo "no" >&6; }
71696	with_liblua="no (pkg-config cannot find liblua)"
71697
71698else
71699	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
71700	LUA_LIBS=$pkg_cv_LUA_LIBS
71701        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71702$as_echo "yes" >&6; }
71703	with_liblua="yes"
71704fi
71705
71706
71707else
71708	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
71709	LUA_LIBS=$pkg_cv_LUA_LIBS
71710        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71711$as_echo "yes" >&6; }
71712	with_liblua="yes"
71713fi
71714
71715
71716else
71717	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
71718	LUA_LIBS=$pkg_cv_LUA_LIBS
71719        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71720$as_echo "yes" >&6; }
71721	with_liblua="yes"
71722fi
71723
71724
71725elif test $pkg_failed = untried; then
71726     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71727$as_echo "no" >&6; }
71728
71729
71730pkg_failed=no
71731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
71732$as_echo_n "checking for LUA... " >&6; }
71733
71734if test -n "$LUA_CFLAGS"; then
71735    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
71736 elif test -n "$PKG_CONFIG"; then
71737    if test -n "$PKG_CONFIG" && \
71738    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
71739  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
71740  ac_status=$?
71741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71742  test $ac_status = 0; }; then
71743  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
71744		      test "x$?" != "x0" && pkg_failed=yes
71745else
71746  pkg_failed=yes
71747fi
71748 else
71749    pkg_failed=untried
71750fi
71751if test -n "$LUA_LIBS"; then
71752    pkg_cv_LUA_LIBS="$LUA_LIBS"
71753 elif test -n "$PKG_CONFIG"; then
71754    if test -n "$PKG_CONFIG" && \
71755    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
71756  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
71757  ac_status=$?
71758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71759  test $ac_status = 0; }; then
71760  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
71761		      test "x$?" != "x0" && pkg_failed=yes
71762else
71763  pkg_failed=yes
71764fi
71765 else
71766    pkg_failed=untried
71767fi
71768
71769
71770
71771if test $pkg_failed = yes; then
71772   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71773$as_echo "no" >&6; }
71774
71775if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71776        _pkg_short_errors_supported=yes
71777else
71778        _pkg_short_errors_supported=no
71779fi
71780        if test $_pkg_short_errors_supported = yes; then
71781	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
71782        else
71783	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
71784        fi
71785	# Put the nasty error message in config.log where it belongs
71786	echo "$LUA_PKG_ERRORS" >&5
71787
71788
71789
71790pkg_failed=no
71791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
71792$as_echo_n "checking for LUA... " >&6; }
71793
71794if test -n "$LUA_CFLAGS"; then
71795    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
71796 elif test -n "$PKG_CONFIG"; then
71797    if test -n "$PKG_CONFIG" && \
71798    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
71799  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
71800  ac_status=$?
71801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71802  test $ac_status = 0; }; then
71803  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
71804		      test "x$?" != "x0" && pkg_failed=yes
71805else
71806  pkg_failed=yes
71807fi
71808 else
71809    pkg_failed=untried
71810fi
71811if test -n "$LUA_LIBS"; then
71812    pkg_cv_LUA_LIBS="$LUA_LIBS"
71813 elif test -n "$PKG_CONFIG"; then
71814    if test -n "$PKG_CONFIG" && \
71815    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
71816  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
71817  ac_status=$?
71818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71819  test $ac_status = 0; }; then
71820  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
71821		      test "x$?" != "x0" && pkg_failed=yes
71822else
71823  pkg_failed=yes
71824fi
71825 else
71826    pkg_failed=untried
71827fi
71828
71829
71830
71831if test $pkg_failed = yes; then
71832   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71833$as_echo "no" >&6; }
71834
71835if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71836        _pkg_short_errors_supported=yes
71837else
71838        _pkg_short_errors_supported=no
71839fi
71840        if test $_pkg_short_errors_supported = yes; then
71841	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
71842        else
71843	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
71844        fi
71845	# Put the nasty error message in config.log where it belongs
71846	echo "$LUA_PKG_ERRORS" >&5
71847
71848
71849
71850pkg_failed=no
71851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
71852$as_echo_n "checking for LUA... " >&6; }
71853
71854if test -n "$LUA_CFLAGS"; then
71855    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
71856 elif test -n "$PKG_CONFIG"; then
71857    if test -n "$PKG_CONFIG" && \
71858    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
71859  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
71860  ac_status=$?
71861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71862  test $ac_status = 0; }; then
71863  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
71864		      test "x$?" != "x0" && pkg_failed=yes
71865else
71866  pkg_failed=yes
71867fi
71868 else
71869    pkg_failed=untried
71870fi
71871if test -n "$LUA_LIBS"; then
71872    pkg_cv_LUA_LIBS="$LUA_LIBS"
71873 elif test -n "$PKG_CONFIG"; then
71874    if test -n "$PKG_CONFIG" && \
71875    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
71876  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
71877  ac_status=$?
71878  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71879  test $ac_status = 0; }; then
71880  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
71881		      test "x$?" != "x0" && pkg_failed=yes
71882else
71883  pkg_failed=yes
71884fi
71885 else
71886    pkg_failed=untried
71887fi
71888
71889
71890
71891if test $pkg_failed = yes; then
71892   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71893$as_echo "no" >&6; }
71894
71895if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71896        _pkg_short_errors_supported=yes
71897else
71898        _pkg_short_errors_supported=no
71899fi
71900        if test $_pkg_short_errors_supported = yes; then
71901	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
71902        else
71903	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
71904        fi
71905	# Put the nasty error message in config.log where it belongs
71906	echo "$LUA_PKG_ERRORS" >&5
71907
71908	with_liblua="no (pkg-config cannot find liblua)"
71909
71910elif test $pkg_failed = untried; then
71911     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71912$as_echo "no" >&6; }
71913	with_liblua="no (pkg-config cannot find liblua)"
71914
71915else
71916	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
71917	LUA_LIBS=$pkg_cv_LUA_LIBS
71918        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71919$as_echo "yes" >&6; }
71920	with_liblua="yes"
71921fi
71922
71923
71924elif test $pkg_failed = untried; then
71925     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71926$as_echo "no" >&6; }
71927
71928
71929pkg_failed=no
71930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
71931$as_echo_n "checking for LUA... " >&6; }
71932
71933if test -n "$LUA_CFLAGS"; then
71934    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
71935 elif test -n "$PKG_CONFIG"; then
71936    if test -n "$PKG_CONFIG" && \
71937    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
71938  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
71939  ac_status=$?
71940  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71941  test $ac_status = 0; }; then
71942  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
71943		      test "x$?" != "x0" && pkg_failed=yes
71944else
71945  pkg_failed=yes
71946fi
71947 else
71948    pkg_failed=untried
71949fi
71950if test -n "$LUA_LIBS"; then
71951    pkg_cv_LUA_LIBS="$LUA_LIBS"
71952 elif test -n "$PKG_CONFIG"; then
71953    if test -n "$PKG_CONFIG" && \
71954    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
71955  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
71956  ac_status=$?
71957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71958  test $ac_status = 0; }; then
71959  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
71960		      test "x$?" != "x0" && pkg_failed=yes
71961else
71962  pkg_failed=yes
71963fi
71964 else
71965    pkg_failed=untried
71966fi
71967
71968
71969
71970if test $pkg_failed = yes; then
71971   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71972$as_echo "no" >&6; }
71973
71974if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71975        _pkg_short_errors_supported=yes
71976else
71977        _pkg_short_errors_supported=no
71978fi
71979        if test $_pkg_short_errors_supported = yes; then
71980	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
71981        else
71982	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
71983        fi
71984	# Put the nasty error message in config.log where it belongs
71985	echo "$LUA_PKG_ERRORS" >&5
71986
71987	with_liblua="no (pkg-config cannot find liblua)"
71988
71989elif test $pkg_failed = untried; then
71990     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71991$as_echo "no" >&6; }
71992	with_liblua="no (pkg-config cannot find liblua)"
71993
71994else
71995	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
71996	LUA_LIBS=$pkg_cv_LUA_LIBS
71997        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71998$as_echo "yes" >&6; }
71999	with_liblua="yes"
72000fi
72001
72002
72003else
72004	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
72005	LUA_LIBS=$pkg_cv_LUA_LIBS
72006        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72007$as_echo "yes" >&6; }
72008	with_liblua="yes"
72009fi
72010
72011
72012elif test $pkg_failed = untried; then
72013     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72014$as_echo "no" >&6; }
72015
72016
72017pkg_failed=no
72018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
72019$as_echo_n "checking for LUA... " >&6; }
72020
72021if test -n "$LUA_CFLAGS"; then
72022    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
72023 elif test -n "$PKG_CONFIG"; then
72024    if test -n "$PKG_CONFIG" && \
72025    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
72026  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
72027  ac_status=$?
72028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72029  test $ac_status = 0; }; then
72030  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
72031		      test "x$?" != "x0" && pkg_failed=yes
72032else
72033  pkg_failed=yes
72034fi
72035 else
72036    pkg_failed=untried
72037fi
72038if test -n "$LUA_LIBS"; then
72039    pkg_cv_LUA_LIBS="$LUA_LIBS"
72040 elif test -n "$PKG_CONFIG"; then
72041    if test -n "$PKG_CONFIG" && \
72042    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
72043  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
72044  ac_status=$?
72045  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72046  test $ac_status = 0; }; then
72047  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
72048		      test "x$?" != "x0" && pkg_failed=yes
72049else
72050  pkg_failed=yes
72051fi
72052 else
72053    pkg_failed=untried
72054fi
72055
72056
72057
72058if test $pkg_failed = yes; then
72059   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72060$as_echo "no" >&6; }
72061
72062if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
72063        _pkg_short_errors_supported=yes
72064else
72065        _pkg_short_errors_supported=no
72066fi
72067        if test $_pkg_short_errors_supported = yes; then
72068	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
72069        else
72070	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
72071        fi
72072	# Put the nasty error message in config.log where it belongs
72073	echo "$LUA_PKG_ERRORS" >&5
72074
72075
72076
72077pkg_failed=no
72078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
72079$as_echo_n "checking for LUA... " >&6; }
72080
72081if test -n "$LUA_CFLAGS"; then
72082    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
72083 elif test -n "$PKG_CONFIG"; then
72084    if test -n "$PKG_CONFIG" && \
72085    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
72086  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
72087  ac_status=$?
72088  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72089  test $ac_status = 0; }; then
72090  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
72091		      test "x$?" != "x0" && pkg_failed=yes
72092else
72093  pkg_failed=yes
72094fi
72095 else
72096    pkg_failed=untried
72097fi
72098if test -n "$LUA_LIBS"; then
72099    pkg_cv_LUA_LIBS="$LUA_LIBS"
72100 elif test -n "$PKG_CONFIG"; then
72101    if test -n "$PKG_CONFIG" && \
72102    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
72103  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
72104  ac_status=$?
72105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72106  test $ac_status = 0; }; then
72107  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
72108		      test "x$?" != "x0" && pkg_failed=yes
72109else
72110  pkg_failed=yes
72111fi
72112 else
72113    pkg_failed=untried
72114fi
72115
72116
72117
72118if test $pkg_failed = yes; then
72119   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72120$as_echo "no" >&6; }
72121
72122if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
72123        _pkg_short_errors_supported=yes
72124else
72125        _pkg_short_errors_supported=no
72126fi
72127        if test $_pkg_short_errors_supported = yes; then
72128	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
72129        else
72130	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
72131        fi
72132	# Put the nasty error message in config.log where it belongs
72133	echo "$LUA_PKG_ERRORS" >&5
72134
72135	with_liblua="no (pkg-config cannot find liblua)"
72136
72137elif test $pkg_failed = untried; then
72138     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72139$as_echo "no" >&6; }
72140	with_liblua="no (pkg-config cannot find liblua)"
72141
72142else
72143	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
72144	LUA_LIBS=$pkg_cv_LUA_LIBS
72145        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72146$as_echo "yes" >&6; }
72147	with_liblua="yes"
72148fi
72149
72150
72151elif test $pkg_failed = untried; then
72152     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72153$as_echo "no" >&6; }
72154
72155
72156pkg_failed=no
72157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
72158$as_echo_n "checking for LUA... " >&6; }
72159
72160if test -n "$LUA_CFLAGS"; then
72161    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
72162 elif test -n "$PKG_CONFIG"; then
72163    if test -n "$PKG_CONFIG" && \
72164    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
72165  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
72166  ac_status=$?
72167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72168  test $ac_status = 0; }; then
72169  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
72170		      test "x$?" != "x0" && pkg_failed=yes
72171else
72172  pkg_failed=yes
72173fi
72174 else
72175    pkg_failed=untried
72176fi
72177if test -n "$LUA_LIBS"; then
72178    pkg_cv_LUA_LIBS="$LUA_LIBS"
72179 elif test -n "$PKG_CONFIG"; then
72180    if test -n "$PKG_CONFIG" && \
72181    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
72182  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
72183  ac_status=$?
72184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72185  test $ac_status = 0; }; then
72186  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
72187		      test "x$?" != "x0" && pkg_failed=yes
72188else
72189  pkg_failed=yes
72190fi
72191 else
72192    pkg_failed=untried
72193fi
72194
72195
72196
72197if test $pkg_failed = yes; then
72198   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72199$as_echo "no" >&6; }
72200
72201if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
72202        _pkg_short_errors_supported=yes
72203else
72204        _pkg_short_errors_supported=no
72205fi
72206        if test $_pkg_short_errors_supported = yes; then
72207	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
72208        else
72209	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
72210        fi
72211	# Put the nasty error message in config.log where it belongs
72212	echo "$LUA_PKG_ERRORS" >&5
72213
72214	with_liblua="no (pkg-config cannot find liblua)"
72215
72216elif test $pkg_failed = untried; then
72217     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72218$as_echo "no" >&6; }
72219	with_liblua="no (pkg-config cannot find liblua)"
72220
72221else
72222	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
72223	LUA_LIBS=$pkg_cv_LUA_LIBS
72224        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72225$as_echo "yes" >&6; }
72226	with_liblua="yes"
72227fi
72228
72229
72230else
72231	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
72232	LUA_LIBS=$pkg_cv_LUA_LIBS
72233        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72234$as_echo "yes" >&6; }
72235	with_liblua="yes"
72236fi
72237
72238
72239else
72240	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
72241	LUA_LIBS=$pkg_cv_LUA_LIBS
72242        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72243$as_echo "yes" >&6; }
72244	with_liblua="yes"
72245fi
72246
72247
72248else
72249	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
72250	LUA_LIBS=$pkg_cv_LUA_LIBS
72251        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72252$as_echo "yes" >&6; }
72253	with_liblua="yes"
72254fi
72255
72256
72257elif test $pkg_failed = untried; then
72258     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72259$as_echo "no" >&6; }
72260
72261
72262pkg_failed=no
72263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
72264$as_echo_n "checking for LUA... " >&6; }
72265
72266if test -n "$LUA_CFLAGS"; then
72267    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
72268 elif test -n "$PKG_CONFIG"; then
72269    if test -n "$PKG_CONFIG" && \
72270    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
72271  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
72272  ac_status=$?
72273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72274  test $ac_status = 0; }; then
72275  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
72276		      test "x$?" != "x0" && pkg_failed=yes
72277else
72278  pkg_failed=yes
72279fi
72280 else
72281    pkg_failed=untried
72282fi
72283if test -n "$LUA_LIBS"; then
72284    pkg_cv_LUA_LIBS="$LUA_LIBS"
72285 elif test -n "$PKG_CONFIG"; then
72286    if test -n "$PKG_CONFIG" && \
72287    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
72288  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
72289  ac_status=$?
72290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72291  test $ac_status = 0; }; then
72292  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
72293		      test "x$?" != "x0" && pkg_failed=yes
72294else
72295  pkg_failed=yes
72296fi
72297 else
72298    pkg_failed=untried
72299fi
72300
72301
72302
72303if test $pkg_failed = yes; then
72304   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72305$as_echo "no" >&6; }
72306
72307if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
72308        _pkg_short_errors_supported=yes
72309else
72310        _pkg_short_errors_supported=no
72311fi
72312        if test $_pkg_short_errors_supported = yes; then
72313	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
72314        else
72315	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
72316        fi
72317	# Put the nasty error message in config.log where it belongs
72318	echo "$LUA_PKG_ERRORS" >&5
72319
72320
72321
72322pkg_failed=no
72323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
72324$as_echo_n "checking for LUA... " >&6; }
72325
72326if test -n "$LUA_CFLAGS"; then
72327    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
72328 elif test -n "$PKG_CONFIG"; then
72329    if test -n "$PKG_CONFIG" && \
72330    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
72331  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
72332  ac_status=$?
72333  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72334  test $ac_status = 0; }; then
72335  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
72336		      test "x$?" != "x0" && pkg_failed=yes
72337else
72338  pkg_failed=yes
72339fi
72340 else
72341    pkg_failed=untried
72342fi
72343if test -n "$LUA_LIBS"; then
72344    pkg_cv_LUA_LIBS="$LUA_LIBS"
72345 elif test -n "$PKG_CONFIG"; then
72346    if test -n "$PKG_CONFIG" && \
72347    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
72348  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
72349  ac_status=$?
72350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72351  test $ac_status = 0; }; then
72352  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
72353		      test "x$?" != "x0" && pkg_failed=yes
72354else
72355  pkg_failed=yes
72356fi
72357 else
72358    pkg_failed=untried
72359fi
72360
72361
72362
72363if test $pkg_failed = yes; then
72364   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72365$as_echo "no" >&6; }
72366
72367if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
72368        _pkg_short_errors_supported=yes
72369else
72370        _pkg_short_errors_supported=no
72371fi
72372        if test $_pkg_short_errors_supported = yes; then
72373	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
72374        else
72375	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
72376        fi
72377	# Put the nasty error message in config.log where it belongs
72378	echo "$LUA_PKG_ERRORS" >&5
72379
72380
72381
72382pkg_failed=no
72383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
72384$as_echo_n "checking for LUA... " >&6; }
72385
72386if test -n "$LUA_CFLAGS"; then
72387    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
72388 elif test -n "$PKG_CONFIG"; then
72389    if test -n "$PKG_CONFIG" && \
72390    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
72391  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
72392  ac_status=$?
72393  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72394  test $ac_status = 0; }; then
72395  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
72396		      test "x$?" != "x0" && pkg_failed=yes
72397else
72398  pkg_failed=yes
72399fi
72400 else
72401    pkg_failed=untried
72402fi
72403if test -n "$LUA_LIBS"; then
72404    pkg_cv_LUA_LIBS="$LUA_LIBS"
72405 elif test -n "$PKG_CONFIG"; then
72406    if test -n "$PKG_CONFIG" && \
72407    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
72408  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
72409  ac_status=$?
72410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72411  test $ac_status = 0; }; then
72412  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
72413		      test "x$?" != "x0" && pkg_failed=yes
72414else
72415  pkg_failed=yes
72416fi
72417 else
72418    pkg_failed=untried
72419fi
72420
72421
72422
72423if test $pkg_failed = yes; then
72424   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72425$as_echo "no" >&6; }
72426
72427if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
72428        _pkg_short_errors_supported=yes
72429else
72430        _pkg_short_errors_supported=no
72431fi
72432        if test $_pkg_short_errors_supported = yes; then
72433	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
72434        else
72435	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
72436        fi
72437	# Put the nasty error message in config.log where it belongs
72438	echo "$LUA_PKG_ERRORS" >&5
72439
72440
72441
72442pkg_failed=no
72443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
72444$as_echo_n "checking for LUA... " >&6; }
72445
72446if test -n "$LUA_CFLAGS"; then
72447    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
72448 elif test -n "$PKG_CONFIG"; then
72449    if test -n "$PKG_CONFIG" && \
72450    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
72451  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
72452  ac_status=$?
72453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72454  test $ac_status = 0; }; then
72455  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
72456		      test "x$?" != "x0" && pkg_failed=yes
72457else
72458  pkg_failed=yes
72459fi
72460 else
72461    pkg_failed=untried
72462fi
72463if test -n "$LUA_LIBS"; then
72464    pkg_cv_LUA_LIBS="$LUA_LIBS"
72465 elif test -n "$PKG_CONFIG"; then
72466    if test -n "$PKG_CONFIG" && \
72467    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
72468  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
72469  ac_status=$?
72470  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72471  test $ac_status = 0; }; then
72472  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
72473		      test "x$?" != "x0" && pkg_failed=yes
72474else
72475  pkg_failed=yes
72476fi
72477 else
72478    pkg_failed=untried
72479fi
72480
72481
72482
72483if test $pkg_failed = yes; then
72484   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72485$as_echo "no" >&6; }
72486
72487if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
72488        _pkg_short_errors_supported=yes
72489else
72490        _pkg_short_errors_supported=no
72491fi
72492        if test $_pkg_short_errors_supported = yes; then
72493	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
72494        else
72495	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
72496        fi
72497	# Put the nasty error message in config.log where it belongs
72498	echo "$LUA_PKG_ERRORS" >&5
72499
72500	with_liblua="no (pkg-config cannot find liblua)"
72501
72502elif test $pkg_failed = untried; then
72503     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72504$as_echo "no" >&6; }
72505	with_liblua="no (pkg-config cannot find liblua)"
72506
72507else
72508	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
72509	LUA_LIBS=$pkg_cv_LUA_LIBS
72510        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72511$as_echo "yes" >&6; }
72512	with_liblua="yes"
72513fi
72514
72515
72516elif test $pkg_failed = untried; then
72517     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72518$as_echo "no" >&6; }
72519
72520
72521pkg_failed=no
72522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
72523$as_echo_n "checking for LUA... " >&6; }
72524
72525if test -n "$LUA_CFLAGS"; then
72526    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
72527 elif test -n "$PKG_CONFIG"; then
72528    if test -n "$PKG_CONFIG" && \
72529    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
72530  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
72531  ac_status=$?
72532  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72533  test $ac_status = 0; }; then
72534  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
72535		      test "x$?" != "x0" && pkg_failed=yes
72536else
72537  pkg_failed=yes
72538fi
72539 else
72540    pkg_failed=untried
72541fi
72542if test -n "$LUA_LIBS"; then
72543    pkg_cv_LUA_LIBS="$LUA_LIBS"
72544 elif test -n "$PKG_CONFIG"; then
72545    if test -n "$PKG_CONFIG" && \
72546    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
72547  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
72548  ac_status=$?
72549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72550  test $ac_status = 0; }; then
72551  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
72552		      test "x$?" != "x0" && pkg_failed=yes
72553else
72554  pkg_failed=yes
72555fi
72556 else
72557    pkg_failed=untried
72558fi
72559
72560
72561
72562if test $pkg_failed = yes; then
72563   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72564$as_echo "no" >&6; }
72565
72566if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
72567        _pkg_short_errors_supported=yes
72568else
72569        _pkg_short_errors_supported=no
72570fi
72571        if test $_pkg_short_errors_supported = yes; then
72572	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
72573        else
72574	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
72575        fi
72576	# Put the nasty error message in config.log where it belongs
72577	echo "$LUA_PKG_ERRORS" >&5
72578
72579	with_liblua="no (pkg-config cannot find liblua)"
72580
72581elif test $pkg_failed = untried; then
72582     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72583$as_echo "no" >&6; }
72584	with_liblua="no (pkg-config cannot find liblua)"
72585
72586else
72587	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
72588	LUA_LIBS=$pkg_cv_LUA_LIBS
72589        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72590$as_echo "yes" >&6; }
72591	with_liblua="yes"
72592fi
72593
72594
72595else
72596	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
72597	LUA_LIBS=$pkg_cv_LUA_LIBS
72598        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72599$as_echo "yes" >&6; }
72600	with_liblua="yes"
72601fi
72602
72603
72604elif test $pkg_failed = untried; then
72605     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72606$as_echo "no" >&6; }
72607
72608
72609pkg_failed=no
72610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
72611$as_echo_n "checking for LUA... " >&6; }
72612
72613if test -n "$LUA_CFLAGS"; then
72614    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
72615 elif test -n "$PKG_CONFIG"; then
72616    if test -n "$PKG_CONFIG" && \
72617    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
72618  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
72619  ac_status=$?
72620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72621  test $ac_status = 0; }; then
72622  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
72623		      test "x$?" != "x0" && pkg_failed=yes
72624else
72625  pkg_failed=yes
72626fi
72627 else
72628    pkg_failed=untried
72629fi
72630if test -n "$LUA_LIBS"; then
72631    pkg_cv_LUA_LIBS="$LUA_LIBS"
72632 elif test -n "$PKG_CONFIG"; then
72633    if test -n "$PKG_CONFIG" && \
72634    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
72635  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
72636  ac_status=$?
72637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72638  test $ac_status = 0; }; then
72639  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
72640		      test "x$?" != "x0" && pkg_failed=yes
72641else
72642  pkg_failed=yes
72643fi
72644 else
72645    pkg_failed=untried
72646fi
72647
72648
72649
72650if test $pkg_failed = yes; then
72651   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72652$as_echo "no" >&6; }
72653
72654if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
72655        _pkg_short_errors_supported=yes
72656else
72657        _pkg_short_errors_supported=no
72658fi
72659        if test $_pkg_short_errors_supported = yes; then
72660	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
72661        else
72662	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
72663        fi
72664	# Put the nasty error message in config.log where it belongs
72665	echo "$LUA_PKG_ERRORS" >&5
72666
72667
72668
72669pkg_failed=no
72670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
72671$as_echo_n "checking for LUA... " >&6; }
72672
72673if test -n "$LUA_CFLAGS"; then
72674    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
72675 elif test -n "$PKG_CONFIG"; then
72676    if test -n "$PKG_CONFIG" && \
72677    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
72678  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
72679  ac_status=$?
72680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72681  test $ac_status = 0; }; then
72682  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
72683		      test "x$?" != "x0" && pkg_failed=yes
72684else
72685  pkg_failed=yes
72686fi
72687 else
72688    pkg_failed=untried
72689fi
72690if test -n "$LUA_LIBS"; then
72691    pkg_cv_LUA_LIBS="$LUA_LIBS"
72692 elif test -n "$PKG_CONFIG"; then
72693    if test -n "$PKG_CONFIG" && \
72694    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
72695  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
72696  ac_status=$?
72697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72698  test $ac_status = 0; }; then
72699  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
72700		      test "x$?" != "x0" && pkg_failed=yes
72701else
72702  pkg_failed=yes
72703fi
72704 else
72705    pkg_failed=untried
72706fi
72707
72708
72709
72710if test $pkg_failed = yes; then
72711   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72712$as_echo "no" >&6; }
72713
72714if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
72715        _pkg_short_errors_supported=yes
72716else
72717        _pkg_short_errors_supported=no
72718fi
72719        if test $_pkg_short_errors_supported = yes; then
72720	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
72721        else
72722	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
72723        fi
72724	# Put the nasty error message in config.log where it belongs
72725	echo "$LUA_PKG_ERRORS" >&5
72726
72727	with_liblua="no (pkg-config cannot find liblua)"
72728
72729elif test $pkg_failed = untried; then
72730     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72731$as_echo "no" >&6; }
72732	with_liblua="no (pkg-config cannot find liblua)"
72733
72734else
72735	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
72736	LUA_LIBS=$pkg_cv_LUA_LIBS
72737        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72738$as_echo "yes" >&6; }
72739	with_liblua="yes"
72740fi
72741
72742
72743elif test $pkg_failed = untried; then
72744     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72745$as_echo "no" >&6; }
72746
72747
72748pkg_failed=no
72749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
72750$as_echo_n "checking for LUA... " >&6; }
72751
72752if test -n "$LUA_CFLAGS"; then
72753    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
72754 elif test -n "$PKG_CONFIG"; then
72755    if test -n "$PKG_CONFIG" && \
72756    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
72757  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
72758  ac_status=$?
72759  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72760  test $ac_status = 0; }; then
72761  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
72762		      test "x$?" != "x0" && pkg_failed=yes
72763else
72764  pkg_failed=yes
72765fi
72766 else
72767    pkg_failed=untried
72768fi
72769if test -n "$LUA_LIBS"; then
72770    pkg_cv_LUA_LIBS="$LUA_LIBS"
72771 elif test -n "$PKG_CONFIG"; then
72772    if test -n "$PKG_CONFIG" && \
72773    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
72774  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
72775  ac_status=$?
72776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72777  test $ac_status = 0; }; then
72778  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
72779		      test "x$?" != "x0" && pkg_failed=yes
72780else
72781  pkg_failed=yes
72782fi
72783 else
72784    pkg_failed=untried
72785fi
72786
72787
72788
72789if test $pkg_failed = yes; then
72790   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72791$as_echo "no" >&6; }
72792
72793if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
72794        _pkg_short_errors_supported=yes
72795else
72796        _pkg_short_errors_supported=no
72797fi
72798        if test $_pkg_short_errors_supported = yes; then
72799	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
72800        else
72801	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
72802        fi
72803	# Put the nasty error message in config.log where it belongs
72804	echo "$LUA_PKG_ERRORS" >&5
72805
72806	with_liblua="no (pkg-config cannot find liblua)"
72807
72808elif test $pkg_failed = untried; then
72809     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72810$as_echo "no" >&6; }
72811	with_liblua="no (pkg-config cannot find liblua)"
72812
72813else
72814	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
72815	LUA_LIBS=$pkg_cv_LUA_LIBS
72816        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72817$as_echo "yes" >&6; }
72818	with_liblua="yes"
72819fi
72820
72821
72822else
72823	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
72824	LUA_LIBS=$pkg_cv_LUA_LIBS
72825        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72826$as_echo "yes" >&6; }
72827	with_liblua="yes"
72828fi
72829
72830
72831else
72832	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
72833	LUA_LIBS=$pkg_cv_LUA_LIBS
72834        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72835$as_echo "yes" >&6; }
72836	with_liblua="yes"
72837fi
72838
72839
72840elif test $pkg_failed = untried; then
72841     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72842$as_echo "no" >&6; }
72843
72844
72845pkg_failed=no
72846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
72847$as_echo_n "checking for LUA... " >&6; }
72848
72849if test -n "$LUA_CFLAGS"; then
72850    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
72851 elif test -n "$PKG_CONFIG"; then
72852    if test -n "$PKG_CONFIG" && \
72853    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
72854  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
72855  ac_status=$?
72856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72857  test $ac_status = 0; }; then
72858  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
72859		      test "x$?" != "x0" && pkg_failed=yes
72860else
72861  pkg_failed=yes
72862fi
72863 else
72864    pkg_failed=untried
72865fi
72866if test -n "$LUA_LIBS"; then
72867    pkg_cv_LUA_LIBS="$LUA_LIBS"
72868 elif test -n "$PKG_CONFIG"; then
72869    if test -n "$PKG_CONFIG" && \
72870    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
72871  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
72872  ac_status=$?
72873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72874  test $ac_status = 0; }; then
72875  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
72876		      test "x$?" != "x0" && pkg_failed=yes
72877else
72878  pkg_failed=yes
72879fi
72880 else
72881    pkg_failed=untried
72882fi
72883
72884
72885
72886if test $pkg_failed = yes; then
72887   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72888$as_echo "no" >&6; }
72889
72890if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
72891        _pkg_short_errors_supported=yes
72892else
72893        _pkg_short_errors_supported=no
72894fi
72895        if test $_pkg_short_errors_supported = yes; then
72896	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
72897        else
72898	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
72899        fi
72900	# Put the nasty error message in config.log where it belongs
72901	echo "$LUA_PKG_ERRORS" >&5
72902
72903
72904
72905pkg_failed=no
72906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
72907$as_echo_n "checking for LUA... " >&6; }
72908
72909if test -n "$LUA_CFLAGS"; then
72910    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
72911 elif test -n "$PKG_CONFIG"; then
72912    if test -n "$PKG_CONFIG" && \
72913    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
72914  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
72915  ac_status=$?
72916  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72917  test $ac_status = 0; }; then
72918  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
72919		      test "x$?" != "x0" && pkg_failed=yes
72920else
72921  pkg_failed=yes
72922fi
72923 else
72924    pkg_failed=untried
72925fi
72926if test -n "$LUA_LIBS"; then
72927    pkg_cv_LUA_LIBS="$LUA_LIBS"
72928 elif test -n "$PKG_CONFIG"; then
72929    if test -n "$PKG_CONFIG" && \
72930    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
72931  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
72932  ac_status=$?
72933  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72934  test $ac_status = 0; }; then
72935  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
72936		      test "x$?" != "x0" && pkg_failed=yes
72937else
72938  pkg_failed=yes
72939fi
72940 else
72941    pkg_failed=untried
72942fi
72943
72944
72945
72946if test $pkg_failed = yes; then
72947   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72948$as_echo "no" >&6; }
72949
72950if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
72951        _pkg_short_errors_supported=yes
72952else
72953        _pkg_short_errors_supported=no
72954fi
72955        if test $_pkg_short_errors_supported = yes; then
72956	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
72957        else
72958	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
72959        fi
72960	# Put the nasty error message in config.log where it belongs
72961	echo "$LUA_PKG_ERRORS" >&5
72962
72963
72964
72965pkg_failed=no
72966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
72967$as_echo_n "checking for LUA... " >&6; }
72968
72969if test -n "$LUA_CFLAGS"; then
72970    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
72971 elif test -n "$PKG_CONFIG"; then
72972    if test -n "$PKG_CONFIG" && \
72973    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
72974  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
72975  ac_status=$?
72976  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72977  test $ac_status = 0; }; then
72978  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
72979		      test "x$?" != "x0" && pkg_failed=yes
72980else
72981  pkg_failed=yes
72982fi
72983 else
72984    pkg_failed=untried
72985fi
72986if test -n "$LUA_LIBS"; then
72987    pkg_cv_LUA_LIBS="$LUA_LIBS"
72988 elif test -n "$PKG_CONFIG"; then
72989    if test -n "$PKG_CONFIG" && \
72990    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
72991  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
72992  ac_status=$?
72993  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72994  test $ac_status = 0; }; then
72995  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
72996		      test "x$?" != "x0" && pkg_failed=yes
72997else
72998  pkg_failed=yes
72999fi
73000 else
73001    pkg_failed=untried
73002fi
73003
73004
73005
73006if test $pkg_failed = yes; then
73007   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73008$as_echo "no" >&6; }
73009
73010if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
73011        _pkg_short_errors_supported=yes
73012else
73013        _pkg_short_errors_supported=no
73014fi
73015        if test $_pkg_short_errors_supported = yes; then
73016	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
73017        else
73018	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
73019        fi
73020	# Put the nasty error message in config.log where it belongs
73021	echo "$LUA_PKG_ERRORS" >&5
73022
73023	with_liblua="no (pkg-config cannot find liblua)"
73024
73025elif test $pkg_failed = untried; then
73026     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73027$as_echo "no" >&6; }
73028	with_liblua="no (pkg-config cannot find liblua)"
73029
73030else
73031	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
73032	LUA_LIBS=$pkg_cv_LUA_LIBS
73033        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73034$as_echo "yes" >&6; }
73035	with_liblua="yes"
73036fi
73037
73038
73039elif test $pkg_failed = untried; then
73040     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73041$as_echo "no" >&6; }
73042
73043
73044pkg_failed=no
73045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
73046$as_echo_n "checking for LUA... " >&6; }
73047
73048if test -n "$LUA_CFLAGS"; then
73049    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
73050 elif test -n "$PKG_CONFIG"; then
73051    if test -n "$PKG_CONFIG" && \
73052    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
73053  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
73054  ac_status=$?
73055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73056  test $ac_status = 0; }; then
73057  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
73058		      test "x$?" != "x0" && pkg_failed=yes
73059else
73060  pkg_failed=yes
73061fi
73062 else
73063    pkg_failed=untried
73064fi
73065if test -n "$LUA_LIBS"; then
73066    pkg_cv_LUA_LIBS="$LUA_LIBS"
73067 elif test -n "$PKG_CONFIG"; then
73068    if test -n "$PKG_CONFIG" && \
73069    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
73070  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
73071  ac_status=$?
73072  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73073  test $ac_status = 0; }; then
73074  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
73075		      test "x$?" != "x0" && pkg_failed=yes
73076else
73077  pkg_failed=yes
73078fi
73079 else
73080    pkg_failed=untried
73081fi
73082
73083
73084
73085if test $pkg_failed = yes; then
73086   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73087$as_echo "no" >&6; }
73088
73089if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
73090        _pkg_short_errors_supported=yes
73091else
73092        _pkg_short_errors_supported=no
73093fi
73094        if test $_pkg_short_errors_supported = yes; then
73095	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
73096        else
73097	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
73098        fi
73099	# Put the nasty error message in config.log where it belongs
73100	echo "$LUA_PKG_ERRORS" >&5
73101
73102	with_liblua="no (pkg-config cannot find liblua)"
73103
73104elif test $pkg_failed = untried; then
73105     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73106$as_echo "no" >&6; }
73107	with_liblua="no (pkg-config cannot find liblua)"
73108
73109else
73110	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
73111	LUA_LIBS=$pkg_cv_LUA_LIBS
73112        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73113$as_echo "yes" >&6; }
73114	with_liblua="yes"
73115fi
73116
73117
73118else
73119	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
73120	LUA_LIBS=$pkg_cv_LUA_LIBS
73121        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73122$as_echo "yes" >&6; }
73123	with_liblua="yes"
73124fi
73125
73126
73127elif test $pkg_failed = untried; then
73128     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73129$as_echo "no" >&6; }
73130
73131
73132pkg_failed=no
73133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
73134$as_echo_n "checking for LUA... " >&6; }
73135
73136if test -n "$LUA_CFLAGS"; then
73137    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
73138 elif test -n "$PKG_CONFIG"; then
73139    if test -n "$PKG_CONFIG" && \
73140    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
73141  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
73142  ac_status=$?
73143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73144  test $ac_status = 0; }; then
73145  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
73146		      test "x$?" != "x0" && pkg_failed=yes
73147else
73148  pkg_failed=yes
73149fi
73150 else
73151    pkg_failed=untried
73152fi
73153if test -n "$LUA_LIBS"; then
73154    pkg_cv_LUA_LIBS="$LUA_LIBS"
73155 elif test -n "$PKG_CONFIG"; then
73156    if test -n "$PKG_CONFIG" && \
73157    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
73158  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
73159  ac_status=$?
73160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73161  test $ac_status = 0; }; then
73162  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
73163		      test "x$?" != "x0" && pkg_failed=yes
73164else
73165  pkg_failed=yes
73166fi
73167 else
73168    pkg_failed=untried
73169fi
73170
73171
73172
73173if test $pkg_failed = yes; then
73174   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73175$as_echo "no" >&6; }
73176
73177if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
73178        _pkg_short_errors_supported=yes
73179else
73180        _pkg_short_errors_supported=no
73181fi
73182        if test $_pkg_short_errors_supported = yes; then
73183	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
73184        else
73185	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
73186        fi
73187	# Put the nasty error message in config.log where it belongs
73188	echo "$LUA_PKG_ERRORS" >&5
73189
73190
73191
73192pkg_failed=no
73193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
73194$as_echo_n "checking for LUA... " >&6; }
73195
73196if test -n "$LUA_CFLAGS"; then
73197    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
73198 elif test -n "$PKG_CONFIG"; then
73199    if test -n "$PKG_CONFIG" && \
73200    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
73201  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
73202  ac_status=$?
73203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73204  test $ac_status = 0; }; then
73205  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
73206		      test "x$?" != "x0" && pkg_failed=yes
73207else
73208  pkg_failed=yes
73209fi
73210 else
73211    pkg_failed=untried
73212fi
73213if test -n "$LUA_LIBS"; then
73214    pkg_cv_LUA_LIBS="$LUA_LIBS"
73215 elif test -n "$PKG_CONFIG"; then
73216    if test -n "$PKG_CONFIG" && \
73217    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
73218  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
73219  ac_status=$?
73220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73221  test $ac_status = 0; }; then
73222  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
73223		      test "x$?" != "x0" && pkg_failed=yes
73224else
73225  pkg_failed=yes
73226fi
73227 else
73228    pkg_failed=untried
73229fi
73230
73231
73232
73233if test $pkg_failed = yes; then
73234   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73235$as_echo "no" >&6; }
73236
73237if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
73238        _pkg_short_errors_supported=yes
73239else
73240        _pkg_short_errors_supported=no
73241fi
73242        if test $_pkg_short_errors_supported = yes; then
73243	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
73244        else
73245	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
73246        fi
73247	# Put the nasty error message in config.log where it belongs
73248	echo "$LUA_PKG_ERRORS" >&5
73249
73250	with_liblua="no (pkg-config cannot find liblua)"
73251
73252elif test $pkg_failed = untried; then
73253     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73254$as_echo "no" >&6; }
73255	with_liblua="no (pkg-config cannot find liblua)"
73256
73257else
73258	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
73259	LUA_LIBS=$pkg_cv_LUA_LIBS
73260        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73261$as_echo "yes" >&6; }
73262	with_liblua="yes"
73263fi
73264
73265
73266elif test $pkg_failed = untried; then
73267     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73268$as_echo "no" >&6; }
73269
73270
73271pkg_failed=no
73272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
73273$as_echo_n "checking for LUA... " >&6; }
73274
73275if test -n "$LUA_CFLAGS"; then
73276    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
73277 elif test -n "$PKG_CONFIG"; then
73278    if test -n "$PKG_CONFIG" && \
73279    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
73280  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
73281  ac_status=$?
73282  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73283  test $ac_status = 0; }; then
73284  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
73285		      test "x$?" != "x0" && pkg_failed=yes
73286else
73287  pkg_failed=yes
73288fi
73289 else
73290    pkg_failed=untried
73291fi
73292if test -n "$LUA_LIBS"; then
73293    pkg_cv_LUA_LIBS="$LUA_LIBS"
73294 elif test -n "$PKG_CONFIG"; then
73295    if test -n "$PKG_CONFIG" && \
73296    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
73297  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
73298  ac_status=$?
73299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73300  test $ac_status = 0; }; then
73301  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
73302		      test "x$?" != "x0" && pkg_failed=yes
73303else
73304  pkg_failed=yes
73305fi
73306 else
73307    pkg_failed=untried
73308fi
73309
73310
73311
73312if test $pkg_failed = yes; then
73313   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73314$as_echo "no" >&6; }
73315
73316if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
73317        _pkg_short_errors_supported=yes
73318else
73319        _pkg_short_errors_supported=no
73320fi
73321        if test $_pkg_short_errors_supported = yes; then
73322	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
73323        else
73324	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
73325        fi
73326	# Put the nasty error message in config.log where it belongs
73327	echo "$LUA_PKG_ERRORS" >&5
73328
73329	with_liblua="no (pkg-config cannot find liblua)"
73330
73331elif test $pkg_failed = untried; then
73332     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73333$as_echo "no" >&6; }
73334	with_liblua="no (pkg-config cannot find liblua)"
73335
73336else
73337	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
73338	LUA_LIBS=$pkg_cv_LUA_LIBS
73339        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73340$as_echo "yes" >&6; }
73341	with_liblua="yes"
73342fi
73343
73344
73345else
73346	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
73347	LUA_LIBS=$pkg_cv_LUA_LIBS
73348        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73349$as_echo "yes" >&6; }
73350	with_liblua="yes"
73351fi
73352
73353
73354else
73355	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
73356	LUA_LIBS=$pkg_cv_LUA_LIBS
73357        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73358$as_echo "yes" >&6; }
73359	with_liblua="yes"
73360fi
73361
73362
73363else
73364	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
73365	LUA_LIBS=$pkg_cv_LUA_LIBS
73366        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73367$as_echo "yes" >&6; }
73368	with_liblua="yes"
73369fi
73370
73371
73372else
73373	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
73374	LUA_LIBS=$pkg_cv_LUA_LIBS
73375        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73376$as_echo "yes" >&6; }
73377	with_liblua="yes"
73378fi
73379
73380
73381else
73382	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
73383	LUA_LIBS=$pkg_cv_LUA_LIBS
73384        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73385$as_echo "yes" >&6; }
73386	with_liblua="yes"
73387fi
73388
73389
73390else
73391	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
73392	LUA_LIBS=$pkg_cv_LUA_LIBS
73393        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73394$as_echo "yes" >&6; }
73395	with_liblua="yes"
73396fi
73397
73398
73399elif test $pkg_failed = untried; then
73400     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73401$as_echo "no" >&6; }
73402
73403
73404pkg_failed=no
73405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
73406$as_echo_n "checking for LUA... " >&6; }
73407
73408if test -n "$LUA_CFLAGS"; then
73409    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
73410 elif test -n "$PKG_CONFIG"; then
73411    if test -n "$PKG_CONFIG" && \
73412    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua53\""; } >&5
73413  ($PKG_CONFIG --exists --print-errors "lua53") 2>&5
73414  ac_status=$?
73415  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73416  test $ac_status = 0; }; then
73417  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua53" 2>/dev/null`
73418		      test "x$?" != "x0" && pkg_failed=yes
73419else
73420  pkg_failed=yes
73421fi
73422 else
73423    pkg_failed=untried
73424fi
73425if test -n "$LUA_LIBS"; then
73426    pkg_cv_LUA_LIBS="$LUA_LIBS"
73427 elif test -n "$PKG_CONFIG"; then
73428    if test -n "$PKG_CONFIG" && \
73429    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua53\""; } >&5
73430  ($PKG_CONFIG --exists --print-errors "lua53") 2>&5
73431  ac_status=$?
73432  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73433  test $ac_status = 0; }; then
73434  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua53" 2>/dev/null`
73435		      test "x$?" != "x0" && pkg_failed=yes
73436else
73437  pkg_failed=yes
73438fi
73439 else
73440    pkg_failed=untried
73441fi
73442
73443
73444
73445if test $pkg_failed = yes; then
73446   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73447$as_echo "no" >&6; }
73448
73449if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
73450        _pkg_short_errors_supported=yes
73451else
73452        _pkg_short_errors_supported=no
73453fi
73454        if test $_pkg_short_errors_supported = yes; then
73455	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua53" 2>&1`
73456        else
73457	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua53" 2>&1`
73458        fi
73459	# Put the nasty error message in config.log where it belongs
73460	echo "$LUA_PKG_ERRORS" >&5
73461
73462
73463
73464pkg_failed=no
73465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
73466$as_echo_n "checking for LUA... " >&6; }
73467
73468if test -n "$LUA_CFLAGS"; then
73469    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
73470 elif test -n "$PKG_CONFIG"; then
73471    if test -n "$PKG_CONFIG" && \
73472    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
73473  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
73474  ac_status=$?
73475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73476  test $ac_status = 0; }; then
73477  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.2" 2>/dev/null`
73478		      test "x$?" != "x0" && pkg_failed=yes
73479else
73480  pkg_failed=yes
73481fi
73482 else
73483    pkg_failed=untried
73484fi
73485if test -n "$LUA_LIBS"; then
73486    pkg_cv_LUA_LIBS="$LUA_LIBS"
73487 elif test -n "$PKG_CONFIG"; then
73488    if test -n "$PKG_CONFIG" && \
73489    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
73490  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
73491  ac_status=$?
73492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73493  test $ac_status = 0; }; then
73494  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.2" 2>/dev/null`
73495		      test "x$?" != "x0" && pkg_failed=yes
73496else
73497  pkg_failed=yes
73498fi
73499 else
73500    pkg_failed=untried
73501fi
73502
73503
73504
73505if test $pkg_failed = yes; then
73506   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73507$as_echo "no" >&6; }
73508
73509if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
73510        _pkg_short_errors_supported=yes
73511else
73512        _pkg_short_errors_supported=no
73513fi
73514        if test $_pkg_short_errors_supported = yes; then
73515	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.2" 2>&1`
73516        else
73517	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.2" 2>&1`
73518        fi
73519	# Put the nasty error message in config.log where it belongs
73520	echo "$LUA_PKG_ERRORS" >&5
73521
73522
73523
73524pkg_failed=no
73525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
73526$as_echo_n "checking for LUA... " >&6; }
73527
73528if test -n "$LUA_CFLAGS"; then
73529    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
73530 elif test -n "$PKG_CONFIG"; then
73531    if test -n "$PKG_CONFIG" && \
73532    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
73533  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
73534  ac_status=$?
73535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73536  test $ac_status = 0; }; then
73537  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
73538		      test "x$?" != "x0" && pkg_failed=yes
73539else
73540  pkg_failed=yes
73541fi
73542 else
73543    pkg_failed=untried
73544fi
73545if test -n "$LUA_LIBS"; then
73546    pkg_cv_LUA_LIBS="$LUA_LIBS"
73547 elif test -n "$PKG_CONFIG"; then
73548    if test -n "$PKG_CONFIG" && \
73549    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
73550  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
73551  ac_status=$?
73552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73553  test $ac_status = 0; }; then
73554  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
73555		      test "x$?" != "x0" && pkg_failed=yes
73556else
73557  pkg_failed=yes
73558fi
73559 else
73560    pkg_failed=untried
73561fi
73562
73563
73564
73565if test $pkg_failed = yes; then
73566   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73567$as_echo "no" >&6; }
73568
73569if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
73570        _pkg_short_errors_supported=yes
73571else
73572        _pkg_short_errors_supported=no
73573fi
73574        if test $_pkg_short_errors_supported = yes; then
73575	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
73576        else
73577	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
73578        fi
73579	# Put the nasty error message in config.log where it belongs
73580	echo "$LUA_PKG_ERRORS" >&5
73581
73582
73583
73584pkg_failed=no
73585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
73586$as_echo_n "checking for LUA... " >&6; }
73587
73588if test -n "$LUA_CFLAGS"; then
73589    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
73590 elif test -n "$PKG_CONFIG"; then
73591    if test -n "$PKG_CONFIG" && \
73592    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
73593  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
73594  ac_status=$?
73595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73596  test $ac_status = 0; }; then
73597  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
73598		      test "x$?" != "x0" && pkg_failed=yes
73599else
73600  pkg_failed=yes
73601fi
73602 else
73603    pkg_failed=untried
73604fi
73605if test -n "$LUA_LIBS"; then
73606    pkg_cv_LUA_LIBS="$LUA_LIBS"
73607 elif test -n "$PKG_CONFIG"; then
73608    if test -n "$PKG_CONFIG" && \
73609    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
73610  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
73611  ac_status=$?
73612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73613  test $ac_status = 0; }; then
73614  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
73615		      test "x$?" != "x0" && pkg_failed=yes
73616else
73617  pkg_failed=yes
73618fi
73619 else
73620    pkg_failed=untried
73621fi
73622
73623
73624
73625if test $pkg_failed = yes; then
73626   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73627$as_echo "no" >&6; }
73628
73629if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
73630        _pkg_short_errors_supported=yes
73631else
73632        _pkg_short_errors_supported=no
73633fi
73634        if test $_pkg_short_errors_supported = yes; then
73635	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
73636        else
73637	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
73638        fi
73639	# Put the nasty error message in config.log where it belongs
73640	echo "$LUA_PKG_ERRORS" >&5
73641
73642
73643
73644pkg_failed=no
73645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
73646$as_echo_n "checking for LUA... " >&6; }
73647
73648if test -n "$LUA_CFLAGS"; then
73649    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
73650 elif test -n "$PKG_CONFIG"; then
73651    if test -n "$PKG_CONFIG" && \
73652    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
73653  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
73654  ac_status=$?
73655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73656  test $ac_status = 0; }; then
73657  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
73658		      test "x$?" != "x0" && pkg_failed=yes
73659else
73660  pkg_failed=yes
73661fi
73662 else
73663    pkg_failed=untried
73664fi
73665if test -n "$LUA_LIBS"; then
73666    pkg_cv_LUA_LIBS="$LUA_LIBS"
73667 elif test -n "$PKG_CONFIG"; then
73668    if test -n "$PKG_CONFIG" && \
73669    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
73670  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
73671  ac_status=$?
73672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73673  test $ac_status = 0; }; then
73674  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
73675		      test "x$?" != "x0" && pkg_failed=yes
73676else
73677  pkg_failed=yes
73678fi
73679 else
73680    pkg_failed=untried
73681fi
73682
73683
73684
73685if test $pkg_failed = yes; then
73686   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73687$as_echo "no" >&6; }
73688
73689if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
73690        _pkg_short_errors_supported=yes
73691else
73692        _pkg_short_errors_supported=no
73693fi
73694        if test $_pkg_short_errors_supported = yes; then
73695	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
73696        else
73697	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
73698        fi
73699	# Put the nasty error message in config.log where it belongs
73700	echo "$LUA_PKG_ERRORS" >&5
73701
73702
73703
73704pkg_failed=no
73705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
73706$as_echo_n "checking for LUA... " >&6; }
73707
73708if test -n "$LUA_CFLAGS"; then
73709    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
73710 elif test -n "$PKG_CONFIG"; then
73711    if test -n "$PKG_CONFIG" && \
73712    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
73713  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
73714  ac_status=$?
73715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73716  test $ac_status = 0; }; then
73717  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
73718		      test "x$?" != "x0" && pkg_failed=yes
73719else
73720  pkg_failed=yes
73721fi
73722 else
73723    pkg_failed=untried
73724fi
73725if test -n "$LUA_LIBS"; then
73726    pkg_cv_LUA_LIBS="$LUA_LIBS"
73727 elif test -n "$PKG_CONFIG"; then
73728    if test -n "$PKG_CONFIG" && \
73729    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
73730  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
73731  ac_status=$?
73732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73733  test $ac_status = 0; }; then
73734  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
73735		      test "x$?" != "x0" && pkg_failed=yes
73736else
73737  pkg_failed=yes
73738fi
73739 else
73740    pkg_failed=untried
73741fi
73742
73743
73744
73745if test $pkg_failed = yes; then
73746   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73747$as_echo "no" >&6; }
73748
73749if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
73750        _pkg_short_errors_supported=yes
73751else
73752        _pkg_short_errors_supported=no
73753fi
73754        if test $_pkg_short_errors_supported = yes; then
73755	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
73756        else
73757	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
73758        fi
73759	# Put the nasty error message in config.log where it belongs
73760	echo "$LUA_PKG_ERRORS" >&5
73761
73762
73763
73764pkg_failed=no
73765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
73766$as_echo_n "checking for LUA... " >&6; }
73767
73768if test -n "$LUA_CFLAGS"; then
73769    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
73770 elif test -n "$PKG_CONFIG"; then
73771    if test -n "$PKG_CONFIG" && \
73772    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
73773  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
73774  ac_status=$?
73775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73776  test $ac_status = 0; }; then
73777  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
73778		      test "x$?" != "x0" && pkg_failed=yes
73779else
73780  pkg_failed=yes
73781fi
73782 else
73783    pkg_failed=untried
73784fi
73785if test -n "$LUA_LIBS"; then
73786    pkg_cv_LUA_LIBS="$LUA_LIBS"
73787 elif test -n "$PKG_CONFIG"; then
73788    if test -n "$PKG_CONFIG" && \
73789    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
73790  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
73791  ac_status=$?
73792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73793  test $ac_status = 0; }; then
73794  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
73795		      test "x$?" != "x0" && pkg_failed=yes
73796else
73797  pkg_failed=yes
73798fi
73799 else
73800    pkg_failed=untried
73801fi
73802
73803
73804
73805if test $pkg_failed = yes; then
73806   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73807$as_echo "no" >&6; }
73808
73809if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
73810        _pkg_short_errors_supported=yes
73811else
73812        _pkg_short_errors_supported=no
73813fi
73814        if test $_pkg_short_errors_supported = yes; then
73815	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
73816        else
73817	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
73818        fi
73819	# Put the nasty error message in config.log where it belongs
73820	echo "$LUA_PKG_ERRORS" >&5
73821
73822	with_liblua="no (pkg-config cannot find liblua)"
73823
73824elif test $pkg_failed = untried; then
73825     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73826$as_echo "no" >&6; }
73827	with_liblua="no (pkg-config cannot find liblua)"
73828
73829else
73830	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
73831	LUA_LIBS=$pkg_cv_LUA_LIBS
73832        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73833$as_echo "yes" >&6; }
73834	with_liblua="yes"
73835fi
73836
73837
73838elif test $pkg_failed = untried; then
73839     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73840$as_echo "no" >&6; }
73841
73842
73843pkg_failed=no
73844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
73845$as_echo_n "checking for LUA... " >&6; }
73846
73847if test -n "$LUA_CFLAGS"; then
73848    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
73849 elif test -n "$PKG_CONFIG"; then
73850    if test -n "$PKG_CONFIG" && \
73851    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
73852  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
73853  ac_status=$?
73854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73855  test $ac_status = 0; }; then
73856  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
73857		      test "x$?" != "x0" && pkg_failed=yes
73858else
73859  pkg_failed=yes
73860fi
73861 else
73862    pkg_failed=untried
73863fi
73864if test -n "$LUA_LIBS"; then
73865    pkg_cv_LUA_LIBS="$LUA_LIBS"
73866 elif test -n "$PKG_CONFIG"; then
73867    if test -n "$PKG_CONFIG" && \
73868    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
73869  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
73870  ac_status=$?
73871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73872  test $ac_status = 0; }; then
73873  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
73874		      test "x$?" != "x0" && pkg_failed=yes
73875else
73876  pkg_failed=yes
73877fi
73878 else
73879    pkg_failed=untried
73880fi
73881
73882
73883
73884if test $pkg_failed = yes; then
73885   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73886$as_echo "no" >&6; }
73887
73888if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
73889        _pkg_short_errors_supported=yes
73890else
73891        _pkg_short_errors_supported=no
73892fi
73893        if test $_pkg_short_errors_supported = yes; then
73894	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
73895        else
73896	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
73897        fi
73898	# Put the nasty error message in config.log where it belongs
73899	echo "$LUA_PKG_ERRORS" >&5
73900
73901	with_liblua="no (pkg-config cannot find liblua)"
73902
73903elif test $pkg_failed = untried; then
73904     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73905$as_echo "no" >&6; }
73906	with_liblua="no (pkg-config cannot find liblua)"
73907
73908else
73909	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
73910	LUA_LIBS=$pkg_cv_LUA_LIBS
73911        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73912$as_echo "yes" >&6; }
73913	with_liblua="yes"
73914fi
73915
73916
73917else
73918	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
73919	LUA_LIBS=$pkg_cv_LUA_LIBS
73920        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73921$as_echo "yes" >&6; }
73922	with_liblua="yes"
73923fi
73924
73925
73926elif test $pkg_failed = untried; then
73927     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73928$as_echo "no" >&6; }
73929
73930
73931pkg_failed=no
73932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
73933$as_echo_n "checking for LUA... " >&6; }
73934
73935if test -n "$LUA_CFLAGS"; then
73936    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
73937 elif test -n "$PKG_CONFIG"; then
73938    if test -n "$PKG_CONFIG" && \
73939    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
73940  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
73941  ac_status=$?
73942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73943  test $ac_status = 0; }; then
73944  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
73945		      test "x$?" != "x0" && pkg_failed=yes
73946else
73947  pkg_failed=yes
73948fi
73949 else
73950    pkg_failed=untried
73951fi
73952if test -n "$LUA_LIBS"; then
73953    pkg_cv_LUA_LIBS="$LUA_LIBS"
73954 elif test -n "$PKG_CONFIG"; then
73955    if test -n "$PKG_CONFIG" && \
73956    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
73957  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
73958  ac_status=$?
73959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73960  test $ac_status = 0; }; then
73961  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
73962		      test "x$?" != "x0" && pkg_failed=yes
73963else
73964  pkg_failed=yes
73965fi
73966 else
73967    pkg_failed=untried
73968fi
73969
73970
73971
73972if test $pkg_failed = yes; then
73973   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73974$as_echo "no" >&6; }
73975
73976if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
73977        _pkg_short_errors_supported=yes
73978else
73979        _pkg_short_errors_supported=no
73980fi
73981        if test $_pkg_short_errors_supported = yes; then
73982	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
73983        else
73984	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
73985        fi
73986	# Put the nasty error message in config.log where it belongs
73987	echo "$LUA_PKG_ERRORS" >&5
73988
73989
73990
73991pkg_failed=no
73992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
73993$as_echo_n "checking for LUA... " >&6; }
73994
73995if test -n "$LUA_CFLAGS"; then
73996    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
73997 elif test -n "$PKG_CONFIG"; then
73998    if test -n "$PKG_CONFIG" && \
73999    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
74000  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
74001  ac_status=$?
74002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74003  test $ac_status = 0; }; then
74004  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
74005		      test "x$?" != "x0" && pkg_failed=yes
74006else
74007  pkg_failed=yes
74008fi
74009 else
74010    pkg_failed=untried
74011fi
74012if test -n "$LUA_LIBS"; then
74013    pkg_cv_LUA_LIBS="$LUA_LIBS"
74014 elif test -n "$PKG_CONFIG"; then
74015    if test -n "$PKG_CONFIG" && \
74016    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
74017  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
74018  ac_status=$?
74019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74020  test $ac_status = 0; }; then
74021  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
74022		      test "x$?" != "x0" && pkg_failed=yes
74023else
74024  pkg_failed=yes
74025fi
74026 else
74027    pkg_failed=untried
74028fi
74029
74030
74031
74032if test $pkg_failed = yes; then
74033   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74034$as_echo "no" >&6; }
74035
74036if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
74037        _pkg_short_errors_supported=yes
74038else
74039        _pkg_short_errors_supported=no
74040fi
74041        if test $_pkg_short_errors_supported = yes; then
74042	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
74043        else
74044	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
74045        fi
74046	# Put the nasty error message in config.log where it belongs
74047	echo "$LUA_PKG_ERRORS" >&5
74048
74049	with_liblua="no (pkg-config cannot find liblua)"
74050
74051elif test $pkg_failed = untried; then
74052     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74053$as_echo "no" >&6; }
74054	with_liblua="no (pkg-config cannot find liblua)"
74055
74056else
74057	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
74058	LUA_LIBS=$pkg_cv_LUA_LIBS
74059        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
74060$as_echo "yes" >&6; }
74061	with_liblua="yes"
74062fi
74063
74064
74065elif test $pkg_failed = untried; then
74066     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74067$as_echo "no" >&6; }
74068
74069
74070pkg_failed=no
74071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
74072$as_echo_n "checking for LUA... " >&6; }
74073
74074if test -n "$LUA_CFLAGS"; then
74075    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
74076 elif test -n "$PKG_CONFIG"; then
74077    if test -n "$PKG_CONFIG" && \
74078    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
74079  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
74080  ac_status=$?
74081  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74082  test $ac_status = 0; }; then
74083  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
74084		      test "x$?" != "x0" && pkg_failed=yes
74085else
74086  pkg_failed=yes
74087fi
74088 else
74089    pkg_failed=untried
74090fi
74091if test -n "$LUA_LIBS"; then
74092    pkg_cv_LUA_LIBS="$LUA_LIBS"
74093 elif test -n "$PKG_CONFIG"; then
74094    if test -n "$PKG_CONFIG" && \
74095    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
74096  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
74097  ac_status=$?
74098  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74099  test $ac_status = 0; }; then
74100  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
74101		      test "x$?" != "x0" && pkg_failed=yes
74102else
74103  pkg_failed=yes
74104fi
74105 else
74106    pkg_failed=untried
74107fi
74108
74109
74110
74111if test $pkg_failed = yes; then
74112   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74113$as_echo "no" >&6; }
74114
74115if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
74116        _pkg_short_errors_supported=yes
74117else
74118        _pkg_short_errors_supported=no
74119fi
74120        if test $_pkg_short_errors_supported = yes; then
74121	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
74122        else
74123	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
74124        fi
74125	# Put the nasty error message in config.log where it belongs
74126	echo "$LUA_PKG_ERRORS" >&5
74127
74128	with_liblua="no (pkg-config cannot find liblua)"
74129
74130elif test $pkg_failed = untried; then
74131     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74132$as_echo "no" >&6; }
74133	with_liblua="no (pkg-config cannot find liblua)"
74134
74135else
74136	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
74137	LUA_LIBS=$pkg_cv_LUA_LIBS
74138        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
74139$as_echo "yes" >&6; }
74140	with_liblua="yes"
74141fi
74142
74143
74144else
74145	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
74146	LUA_LIBS=$pkg_cv_LUA_LIBS
74147        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
74148$as_echo "yes" >&6; }
74149	with_liblua="yes"
74150fi
74151
74152
74153else
74154	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
74155	LUA_LIBS=$pkg_cv_LUA_LIBS
74156        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
74157$as_echo "yes" >&6; }
74158	with_liblua="yes"
74159fi
74160
74161
74162elif test $pkg_failed = untried; then
74163     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74164$as_echo "no" >&6; }
74165
74166
74167pkg_failed=no
74168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
74169$as_echo_n "checking for LUA... " >&6; }
74170
74171if test -n "$LUA_CFLAGS"; then
74172    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
74173 elif test -n "$PKG_CONFIG"; then
74174    if test -n "$PKG_CONFIG" && \
74175    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
74176  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
74177  ac_status=$?
74178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74179  test $ac_status = 0; }; then
74180  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
74181		      test "x$?" != "x0" && pkg_failed=yes
74182else
74183  pkg_failed=yes
74184fi
74185 else
74186    pkg_failed=untried
74187fi
74188if test -n "$LUA_LIBS"; then
74189    pkg_cv_LUA_LIBS="$LUA_LIBS"
74190 elif test -n "$PKG_CONFIG"; then
74191    if test -n "$PKG_CONFIG" && \
74192    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
74193  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
74194  ac_status=$?
74195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74196  test $ac_status = 0; }; then
74197  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
74198		      test "x$?" != "x0" && pkg_failed=yes
74199else
74200  pkg_failed=yes
74201fi
74202 else
74203    pkg_failed=untried
74204fi
74205
74206
74207
74208if test $pkg_failed = yes; then
74209   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74210$as_echo "no" >&6; }
74211
74212if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
74213        _pkg_short_errors_supported=yes
74214else
74215        _pkg_short_errors_supported=no
74216fi
74217        if test $_pkg_short_errors_supported = yes; then
74218	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
74219        else
74220	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
74221        fi
74222	# Put the nasty error message in config.log where it belongs
74223	echo "$LUA_PKG_ERRORS" >&5
74224
74225
74226
74227pkg_failed=no
74228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
74229$as_echo_n "checking for LUA... " >&6; }
74230
74231if test -n "$LUA_CFLAGS"; then
74232    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
74233 elif test -n "$PKG_CONFIG"; then
74234    if test -n "$PKG_CONFIG" && \
74235    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
74236  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
74237  ac_status=$?
74238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74239  test $ac_status = 0; }; then
74240  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
74241		      test "x$?" != "x0" && pkg_failed=yes
74242else
74243  pkg_failed=yes
74244fi
74245 else
74246    pkg_failed=untried
74247fi
74248if test -n "$LUA_LIBS"; then
74249    pkg_cv_LUA_LIBS="$LUA_LIBS"
74250 elif test -n "$PKG_CONFIG"; then
74251    if test -n "$PKG_CONFIG" && \
74252    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
74253  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
74254  ac_status=$?
74255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74256  test $ac_status = 0; }; then
74257  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
74258		      test "x$?" != "x0" && pkg_failed=yes
74259else
74260  pkg_failed=yes
74261fi
74262 else
74263    pkg_failed=untried
74264fi
74265
74266
74267
74268if test $pkg_failed = yes; then
74269   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74270$as_echo "no" >&6; }
74271
74272if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
74273        _pkg_short_errors_supported=yes
74274else
74275        _pkg_short_errors_supported=no
74276fi
74277        if test $_pkg_short_errors_supported = yes; then
74278	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
74279        else
74280	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
74281        fi
74282	# Put the nasty error message in config.log where it belongs
74283	echo "$LUA_PKG_ERRORS" >&5
74284
74285
74286
74287pkg_failed=no
74288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
74289$as_echo_n "checking for LUA... " >&6; }
74290
74291if test -n "$LUA_CFLAGS"; then
74292    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
74293 elif test -n "$PKG_CONFIG"; then
74294    if test -n "$PKG_CONFIG" && \
74295    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
74296  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
74297  ac_status=$?
74298  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74299  test $ac_status = 0; }; then
74300  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
74301		      test "x$?" != "x0" && pkg_failed=yes
74302else
74303  pkg_failed=yes
74304fi
74305 else
74306    pkg_failed=untried
74307fi
74308if test -n "$LUA_LIBS"; then
74309    pkg_cv_LUA_LIBS="$LUA_LIBS"
74310 elif test -n "$PKG_CONFIG"; then
74311    if test -n "$PKG_CONFIG" && \
74312    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
74313  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
74314  ac_status=$?
74315  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74316  test $ac_status = 0; }; then
74317  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
74318		      test "x$?" != "x0" && pkg_failed=yes
74319else
74320  pkg_failed=yes
74321fi
74322 else
74323    pkg_failed=untried
74324fi
74325
74326
74327
74328if test $pkg_failed = yes; then
74329   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74330$as_echo "no" >&6; }
74331
74332if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
74333        _pkg_short_errors_supported=yes
74334else
74335        _pkg_short_errors_supported=no
74336fi
74337        if test $_pkg_short_errors_supported = yes; then
74338	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
74339        else
74340	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
74341        fi
74342	# Put the nasty error message in config.log where it belongs
74343	echo "$LUA_PKG_ERRORS" >&5
74344
74345	with_liblua="no (pkg-config cannot find liblua)"
74346
74347elif test $pkg_failed = untried; then
74348     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74349$as_echo "no" >&6; }
74350	with_liblua="no (pkg-config cannot find liblua)"
74351
74352else
74353	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
74354	LUA_LIBS=$pkg_cv_LUA_LIBS
74355        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
74356$as_echo "yes" >&6; }
74357	with_liblua="yes"
74358fi
74359
74360
74361elif test $pkg_failed = untried; then
74362     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74363$as_echo "no" >&6; }
74364
74365
74366pkg_failed=no
74367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
74368$as_echo_n "checking for LUA... " >&6; }
74369
74370if test -n "$LUA_CFLAGS"; then
74371    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
74372 elif test -n "$PKG_CONFIG"; then
74373    if test -n "$PKG_CONFIG" && \
74374    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
74375  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
74376  ac_status=$?
74377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74378  test $ac_status = 0; }; then
74379  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
74380		      test "x$?" != "x0" && pkg_failed=yes
74381else
74382  pkg_failed=yes
74383fi
74384 else
74385    pkg_failed=untried
74386fi
74387if test -n "$LUA_LIBS"; then
74388    pkg_cv_LUA_LIBS="$LUA_LIBS"
74389 elif test -n "$PKG_CONFIG"; then
74390    if test -n "$PKG_CONFIG" && \
74391    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
74392  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
74393  ac_status=$?
74394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74395  test $ac_status = 0; }; then
74396  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
74397		      test "x$?" != "x0" && pkg_failed=yes
74398else
74399  pkg_failed=yes
74400fi
74401 else
74402    pkg_failed=untried
74403fi
74404
74405
74406
74407if test $pkg_failed = yes; then
74408   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74409$as_echo "no" >&6; }
74410
74411if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
74412        _pkg_short_errors_supported=yes
74413else
74414        _pkg_short_errors_supported=no
74415fi
74416        if test $_pkg_short_errors_supported = yes; then
74417	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
74418        else
74419	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
74420        fi
74421	# Put the nasty error message in config.log where it belongs
74422	echo "$LUA_PKG_ERRORS" >&5
74423
74424	with_liblua="no (pkg-config cannot find liblua)"
74425
74426elif test $pkg_failed = untried; then
74427     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74428$as_echo "no" >&6; }
74429	with_liblua="no (pkg-config cannot find liblua)"
74430
74431else
74432	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
74433	LUA_LIBS=$pkg_cv_LUA_LIBS
74434        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
74435$as_echo "yes" >&6; }
74436	with_liblua="yes"
74437fi
74438
74439
74440else
74441	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
74442	LUA_LIBS=$pkg_cv_LUA_LIBS
74443        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
74444$as_echo "yes" >&6; }
74445	with_liblua="yes"
74446fi
74447
74448
74449elif test $pkg_failed = untried; then
74450     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74451$as_echo "no" >&6; }
74452
74453
74454pkg_failed=no
74455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
74456$as_echo_n "checking for LUA... " >&6; }
74457
74458if test -n "$LUA_CFLAGS"; then
74459    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
74460 elif test -n "$PKG_CONFIG"; then
74461    if test -n "$PKG_CONFIG" && \
74462    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
74463  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
74464  ac_status=$?
74465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74466  test $ac_status = 0; }; then
74467  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
74468		      test "x$?" != "x0" && pkg_failed=yes
74469else
74470  pkg_failed=yes
74471fi
74472 else
74473    pkg_failed=untried
74474fi
74475if test -n "$LUA_LIBS"; then
74476    pkg_cv_LUA_LIBS="$LUA_LIBS"
74477 elif test -n "$PKG_CONFIG"; then
74478    if test -n "$PKG_CONFIG" && \
74479    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
74480  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
74481  ac_status=$?
74482  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74483  test $ac_status = 0; }; then
74484  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
74485		      test "x$?" != "x0" && pkg_failed=yes
74486else
74487  pkg_failed=yes
74488fi
74489 else
74490    pkg_failed=untried
74491fi
74492
74493
74494
74495if test $pkg_failed = yes; then
74496   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74497$as_echo "no" >&6; }
74498
74499if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
74500        _pkg_short_errors_supported=yes
74501else
74502        _pkg_short_errors_supported=no
74503fi
74504        if test $_pkg_short_errors_supported = yes; then
74505	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
74506        else
74507	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
74508        fi
74509	# Put the nasty error message in config.log where it belongs
74510	echo "$LUA_PKG_ERRORS" >&5
74511
74512
74513
74514pkg_failed=no
74515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
74516$as_echo_n "checking for LUA... " >&6; }
74517
74518if test -n "$LUA_CFLAGS"; then
74519    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
74520 elif test -n "$PKG_CONFIG"; then
74521    if test -n "$PKG_CONFIG" && \
74522    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
74523  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
74524  ac_status=$?
74525  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74526  test $ac_status = 0; }; then
74527  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
74528		      test "x$?" != "x0" && pkg_failed=yes
74529else
74530  pkg_failed=yes
74531fi
74532 else
74533    pkg_failed=untried
74534fi
74535if test -n "$LUA_LIBS"; then
74536    pkg_cv_LUA_LIBS="$LUA_LIBS"
74537 elif test -n "$PKG_CONFIG"; then
74538    if test -n "$PKG_CONFIG" && \
74539    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
74540  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
74541  ac_status=$?
74542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74543  test $ac_status = 0; }; then
74544  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
74545		      test "x$?" != "x0" && pkg_failed=yes
74546else
74547  pkg_failed=yes
74548fi
74549 else
74550    pkg_failed=untried
74551fi
74552
74553
74554
74555if test $pkg_failed = yes; then
74556   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74557$as_echo "no" >&6; }
74558
74559if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
74560        _pkg_short_errors_supported=yes
74561else
74562        _pkg_short_errors_supported=no
74563fi
74564        if test $_pkg_short_errors_supported = yes; then
74565	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
74566        else
74567	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
74568        fi
74569	# Put the nasty error message in config.log where it belongs
74570	echo "$LUA_PKG_ERRORS" >&5
74571
74572	with_liblua="no (pkg-config cannot find liblua)"
74573
74574elif test $pkg_failed = untried; then
74575     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74576$as_echo "no" >&6; }
74577	with_liblua="no (pkg-config cannot find liblua)"
74578
74579else
74580	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
74581	LUA_LIBS=$pkg_cv_LUA_LIBS
74582        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
74583$as_echo "yes" >&6; }
74584	with_liblua="yes"
74585fi
74586
74587
74588elif test $pkg_failed = untried; then
74589     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74590$as_echo "no" >&6; }
74591
74592
74593pkg_failed=no
74594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
74595$as_echo_n "checking for LUA... " >&6; }
74596
74597if test -n "$LUA_CFLAGS"; then
74598    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
74599 elif test -n "$PKG_CONFIG"; then
74600    if test -n "$PKG_CONFIG" && \
74601    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
74602  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
74603  ac_status=$?
74604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74605  test $ac_status = 0; }; then
74606  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
74607		      test "x$?" != "x0" && pkg_failed=yes
74608else
74609  pkg_failed=yes
74610fi
74611 else
74612    pkg_failed=untried
74613fi
74614if test -n "$LUA_LIBS"; then
74615    pkg_cv_LUA_LIBS="$LUA_LIBS"
74616 elif test -n "$PKG_CONFIG"; then
74617    if test -n "$PKG_CONFIG" && \
74618    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
74619  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
74620  ac_status=$?
74621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74622  test $ac_status = 0; }; then
74623  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
74624		      test "x$?" != "x0" && pkg_failed=yes
74625else
74626  pkg_failed=yes
74627fi
74628 else
74629    pkg_failed=untried
74630fi
74631
74632
74633
74634if test $pkg_failed = yes; then
74635   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74636$as_echo "no" >&6; }
74637
74638if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
74639        _pkg_short_errors_supported=yes
74640else
74641        _pkg_short_errors_supported=no
74642fi
74643        if test $_pkg_short_errors_supported = yes; then
74644	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
74645        else
74646	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
74647        fi
74648	# Put the nasty error message in config.log where it belongs
74649	echo "$LUA_PKG_ERRORS" >&5
74650
74651	with_liblua="no (pkg-config cannot find liblua)"
74652
74653elif test $pkg_failed = untried; then
74654     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74655$as_echo "no" >&6; }
74656	with_liblua="no (pkg-config cannot find liblua)"
74657
74658else
74659	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
74660	LUA_LIBS=$pkg_cv_LUA_LIBS
74661        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
74662$as_echo "yes" >&6; }
74663	with_liblua="yes"
74664fi
74665
74666
74667else
74668	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
74669	LUA_LIBS=$pkg_cv_LUA_LIBS
74670        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
74671$as_echo "yes" >&6; }
74672	with_liblua="yes"
74673fi
74674
74675
74676else
74677	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
74678	LUA_LIBS=$pkg_cv_LUA_LIBS
74679        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
74680$as_echo "yes" >&6; }
74681	with_liblua="yes"
74682fi
74683
74684
74685else
74686	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
74687	LUA_LIBS=$pkg_cv_LUA_LIBS
74688        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
74689$as_echo "yes" >&6; }
74690	with_liblua="yes"
74691fi
74692
74693
74694elif test $pkg_failed = untried; then
74695     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74696$as_echo "no" >&6; }
74697
74698
74699pkg_failed=no
74700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
74701$as_echo_n "checking for LUA... " >&6; }
74702
74703if test -n "$LUA_CFLAGS"; then
74704    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
74705 elif test -n "$PKG_CONFIG"; then
74706    if test -n "$PKG_CONFIG" && \
74707    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
74708  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
74709  ac_status=$?
74710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74711  test $ac_status = 0; }; then
74712  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
74713		      test "x$?" != "x0" && pkg_failed=yes
74714else
74715  pkg_failed=yes
74716fi
74717 else
74718    pkg_failed=untried
74719fi
74720if test -n "$LUA_LIBS"; then
74721    pkg_cv_LUA_LIBS="$LUA_LIBS"
74722 elif test -n "$PKG_CONFIG"; then
74723    if test -n "$PKG_CONFIG" && \
74724    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
74725  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
74726  ac_status=$?
74727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74728  test $ac_status = 0; }; then
74729  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
74730		      test "x$?" != "x0" && pkg_failed=yes
74731else
74732  pkg_failed=yes
74733fi
74734 else
74735    pkg_failed=untried
74736fi
74737
74738
74739
74740if test $pkg_failed = yes; then
74741   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74742$as_echo "no" >&6; }
74743
74744if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
74745        _pkg_short_errors_supported=yes
74746else
74747        _pkg_short_errors_supported=no
74748fi
74749        if test $_pkg_short_errors_supported = yes; then
74750	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
74751        else
74752	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
74753        fi
74754	# Put the nasty error message in config.log where it belongs
74755	echo "$LUA_PKG_ERRORS" >&5
74756
74757
74758
74759pkg_failed=no
74760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
74761$as_echo_n "checking for LUA... " >&6; }
74762
74763if test -n "$LUA_CFLAGS"; then
74764    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
74765 elif test -n "$PKG_CONFIG"; then
74766    if test -n "$PKG_CONFIG" && \
74767    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
74768  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
74769  ac_status=$?
74770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74771  test $ac_status = 0; }; then
74772  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
74773		      test "x$?" != "x0" && pkg_failed=yes
74774else
74775  pkg_failed=yes
74776fi
74777 else
74778    pkg_failed=untried
74779fi
74780if test -n "$LUA_LIBS"; then
74781    pkg_cv_LUA_LIBS="$LUA_LIBS"
74782 elif test -n "$PKG_CONFIG"; then
74783    if test -n "$PKG_CONFIG" && \
74784    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
74785  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
74786  ac_status=$?
74787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74788  test $ac_status = 0; }; then
74789  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
74790		      test "x$?" != "x0" && pkg_failed=yes
74791else
74792  pkg_failed=yes
74793fi
74794 else
74795    pkg_failed=untried
74796fi
74797
74798
74799
74800if test $pkg_failed = yes; then
74801   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74802$as_echo "no" >&6; }
74803
74804if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
74805        _pkg_short_errors_supported=yes
74806else
74807        _pkg_short_errors_supported=no
74808fi
74809        if test $_pkg_short_errors_supported = yes; then
74810	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
74811        else
74812	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
74813        fi
74814	# Put the nasty error message in config.log where it belongs
74815	echo "$LUA_PKG_ERRORS" >&5
74816
74817
74818
74819pkg_failed=no
74820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
74821$as_echo_n "checking for LUA... " >&6; }
74822
74823if test -n "$LUA_CFLAGS"; then
74824    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
74825 elif test -n "$PKG_CONFIG"; then
74826    if test -n "$PKG_CONFIG" && \
74827    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
74828  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
74829  ac_status=$?
74830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74831  test $ac_status = 0; }; then
74832  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
74833		      test "x$?" != "x0" && pkg_failed=yes
74834else
74835  pkg_failed=yes
74836fi
74837 else
74838    pkg_failed=untried
74839fi
74840if test -n "$LUA_LIBS"; then
74841    pkg_cv_LUA_LIBS="$LUA_LIBS"
74842 elif test -n "$PKG_CONFIG"; then
74843    if test -n "$PKG_CONFIG" && \
74844    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
74845  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
74846  ac_status=$?
74847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74848  test $ac_status = 0; }; then
74849  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
74850		      test "x$?" != "x0" && pkg_failed=yes
74851else
74852  pkg_failed=yes
74853fi
74854 else
74855    pkg_failed=untried
74856fi
74857
74858
74859
74860if test $pkg_failed = yes; then
74861   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74862$as_echo "no" >&6; }
74863
74864if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
74865        _pkg_short_errors_supported=yes
74866else
74867        _pkg_short_errors_supported=no
74868fi
74869        if test $_pkg_short_errors_supported = yes; then
74870	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
74871        else
74872	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
74873        fi
74874	# Put the nasty error message in config.log where it belongs
74875	echo "$LUA_PKG_ERRORS" >&5
74876
74877
74878
74879pkg_failed=no
74880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
74881$as_echo_n "checking for LUA... " >&6; }
74882
74883if test -n "$LUA_CFLAGS"; then
74884    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
74885 elif test -n "$PKG_CONFIG"; then
74886    if test -n "$PKG_CONFIG" && \
74887    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
74888  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
74889  ac_status=$?
74890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74891  test $ac_status = 0; }; then
74892  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
74893		      test "x$?" != "x0" && pkg_failed=yes
74894else
74895  pkg_failed=yes
74896fi
74897 else
74898    pkg_failed=untried
74899fi
74900if test -n "$LUA_LIBS"; then
74901    pkg_cv_LUA_LIBS="$LUA_LIBS"
74902 elif test -n "$PKG_CONFIG"; then
74903    if test -n "$PKG_CONFIG" && \
74904    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
74905  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
74906  ac_status=$?
74907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74908  test $ac_status = 0; }; then
74909  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
74910		      test "x$?" != "x0" && pkg_failed=yes
74911else
74912  pkg_failed=yes
74913fi
74914 else
74915    pkg_failed=untried
74916fi
74917
74918
74919
74920if test $pkg_failed = yes; then
74921   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74922$as_echo "no" >&6; }
74923
74924if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
74925        _pkg_short_errors_supported=yes
74926else
74927        _pkg_short_errors_supported=no
74928fi
74929        if test $_pkg_short_errors_supported = yes; then
74930	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
74931        else
74932	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
74933        fi
74934	# Put the nasty error message in config.log where it belongs
74935	echo "$LUA_PKG_ERRORS" >&5
74936
74937	with_liblua="no (pkg-config cannot find liblua)"
74938
74939elif test $pkg_failed = untried; then
74940     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74941$as_echo "no" >&6; }
74942	with_liblua="no (pkg-config cannot find liblua)"
74943
74944else
74945	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
74946	LUA_LIBS=$pkg_cv_LUA_LIBS
74947        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
74948$as_echo "yes" >&6; }
74949	with_liblua="yes"
74950fi
74951
74952
74953elif test $pkg_failed = untried; then
74954     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74955$as_echo "no" >&6; }
74956
74957
74958pkg_failed=no
74959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
74960$as_echo_n "checking for LUA... " >&6; }
74961
74962if test -n "$LUA_CFLAGS"; then
74963    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
74964 elif test -n "$PKG_CONFIG"; then
74965    if test -n "$PKG_CONFIG" && \
74966    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
74967  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
74968  ac_status=$?
74969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74970  test $ac_status = 0; }; then
74971  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
74972		      test "x$?" != "x0" && pkg_failed=yes
74973else
74974  pkg_failed=yes
74975fi
74976 else
74977    pkg_failed=untried
74978fi
74979if test -n "$LUA_LIBS"; then
74980    pkg_cv_LUA_LIBS="$LUA_LIBS"
74981 elif test -n "$PKG_CONFIG"; then
74982    if test -n "$PKG_CONFIG" && \
74983    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
74984  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
74985  ac_status=$?
74986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74987  test $ac_status = 0; }; then
74988  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
74989		      test "x$?" != "x0" && pkg_failed=yes
74990else
74991  pkg_failed=yes
74992fi
74993 else
74994    pkg_failed=untried
74995fi
74996
74997
74998
74999if test $pkg_failed = yes; then
75000   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75001$as_echo "no" >&6; }
75002
75003if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
75004        _pkg_short_errors_supported=yes
75005else
75006        _pkg_short_errors_supported=no
75007fi
75008        if test $_pkg_short_errors_supported = yes; then
75009	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
75010        else
75011	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
75012        fi
75013	# Put the nasty error message in config.log where it belongs
75014	echo "$LUA_PKG_ERRORS" >&5
75015
75016	with_liblua="no (pkg-config cannot find liblua)"
75017
75018elif test $pkg_failed = untried; then
75019     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75020$as_echo "no" >&6; }
75021	with_liblua="no (pkg-config cannot find liblua)"
75022
75023else
75024	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
75025	LUA_LIBS=$pkg_cv_LUA_LIBS
75026        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75027$as_echo "yes" >&6; }
75028	with_liblua="yes"
75029fi
75030
75031
75032else
75033	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
75034	LUA_LIBS=$pkg_cv_LUA_LIBS
75035        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75036$as_echo "yes" >&6; }
75037	with_liblua="yes"
75038fi
75039
75040
75041elif test $pkg_failed = untried; then
75042     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75043$as_echo "no" >&6; }
75044
75045
75046pkg_failed=no
75047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
75048$as_echo_n "checking for LUA... " >&6; }
75049
75050if test -n "$LUA_CFLAGS"; then
75051    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
75052 elif test -n "$PKG_CONFIG"; then
75053    if test -n "$PKG_CONFIG" && \
75054    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
75055  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
75056  ac_status=$?
75057  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75058  test $ac_status = 0; }; then
75059  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
75060		      test "x$?" != "x0" && pkg_failed=yes
75061else
75062  pkg_failed=yes
75063fi
75064 else
75065    pkg_failed=untried
75066fi
75067if test -n "$LUA_LIBS"; then
75068    pkg_cv_LUA_LIBS="$LUA_LIBS"
75069 elif test -n "$PKG_CONFIG"; then
75070    if test -n "$PKG_CONFIG" && \
75071    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
75072  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
75073  ac_status=$?
75074  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75075  test $ac_status = 0; }; then
75076  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
75077		      test "x$?" != "x0" && pkg_failed=yes
75078else
75079  pkg_failed=yes
75080fi
75081 else
75082    pkg_failed=untried
75083fi
75084
75085
75086
75087if test $pkg_failed = yes; then
75088   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75089$as_echo "no" >&6; }
75090
75091if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
75092        _pkg_short_errors_supported=yes
75093else
75094        _pkg_short_errors_supported=no
75095fi
75096        if test $_pkg_short_errors_supported = yes; then
75097	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
75098        else
75099	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
75100        fi
75101	# Put the nasty error message in config.log where it belongs
75102	echo "$LUA_PKG_ERRORS" >&5
75103
75104
75105
75106pkg_failed=no
75107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
75108$as_echo_n "checking for LUA... " >&6; }
75109
75110if test -n "$LUA_CFLAGS"; then
75111    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
75112 elif test -n "$PKG_CONFIG"; then
75113    if test -n "$PKG_CONFIG" && \
75114    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
75115  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
75116  ac_status=$?
75117  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75118  test $ac_status = 0; }; then
75119  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
75120		      test "x$?" != "x0" && pkg_failed=yes
75121else
75122  pkg_failed=yes
75123fi
75124 else
75125    pkg_failed=untried
75126fi
75127if test -n "$LUA_LIBS"; then
75128    pkg_cv_LUA_LIBS="$LUA_LIBS"
75129 elif test -n "$PKG_CONFIG"; then
75130    if test -n "$PKG_CONFIG" && \
75131    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
75132  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
75133  ac_status=$?
75134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75135  test $ac_status = 0; }; then
75136  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
75137		      test "x$?" != "x0" && pkg_failed=yes
75138else
75139  pkg_failed=yes
75140fi
75141 else
75142    pkg_failed=untried
75143fi
75144
75145
75146
75147if test $pkg_failed = yes; then
75148   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75149$as_echo "no" >&6; }
75150
75151if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
75152        _pkg_short_errors_supported=yes
75153else
75154        _pkg_short_errors_supported=no
75155fi
75156        if test $_pkg_short_errors_supported = yes; then
75157	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
75158        else
75159	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
75160        fi
75161	# Put the nasty error message in config.log where it belongs
75162	echo "$LUA_PKG_ERRORS" >&5
75163
75164	with_liblua="no (pkg-config cannot find liblua)"
75165
75166elif test $pkg_failed = untried; then
75167     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75168$as_echo "no" >&6; }
75169	with_liblua="no (pkg-config cannot find liblua)"
75170
75171else
75172	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
75173	LUA_LIBS=$pkg_cv_LUA_LIBS
75174        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75175$as_echo "yes" >&6; }
75176	with_liblua="yes"
75177fi
75178
75179
75180elif test $pkg_failed = untried; then
75181     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75182$as_echo "no" >&6; }
75183
75184
75185pkg_failed=no
75186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
75187$as_echo_n "checking for LUA... " >&6; }
75188
75189if test -n "$LUA_CFLAGS"; then
75190    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
75191 elif test -n "$PKG_CONFIG"; then
75192    if test -n "$PKG_CONFIG" && \
75193    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
75194  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
75195  ac_status=$?
75196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75197  test $ac_status = 0; }; then
75198  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
75199		      test "x$?" != "x0" && pkg_failed=yes
75200else
75201  pkg_failed=yes
75202fi
75203 else
75204    pkg_failed=untried
75205fi
75206if test -n "$LUA_LIBS"; then
75207    pkg_cv_LUA_LIBS="$LUA_LIBS"
75208 elif test -n "$PKG_CONFIG"; then
75209    if test -n "$PKG_CONFIG" && \
75210    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
75211  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
75212  ac_status=$?
75213  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75214  test $ac_status = 0; }; then
75215  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
75216		      test "x$?" != "x0" && pkg_failed=yes
75217else
75218  pkg_failed=yes
75219fi
75220 else
75221    pkg_failed=untried
75222fi
75223
75224
75225
75226if test $pkg_failed = yes; then
75227   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75228$as_echo "no" >&6; }
75229
75230if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
75231        _pkg_short_errors_supported=yes
75232else
75233        _pkg_short_errors_supported=no
75234fi
75235        if test $_pkg_short_errors_supported = yes; then
75236	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
75237        else
75238	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
75239        fi
75240	# Put the nasty error message in config.log where it belongs
75241	echo "$LUA_PKG_ERRORS" >&5
75242
75243	with_liblua="no (pkg-config cannot find liblua)"
75244
75245elif test $pkg_failed = untried; then
75246     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75247$as_echo "no" >&6; }
75248	with_liblua="no (pkg-config cannot find liblua)"
75249
75250else
75251	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
75252	LUA_LIBS=$pkg_cv_LUA_LIBS
75253        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75254$as_echo "yes" >&6; }
75255	with_liblua="yes"
75256fi
75257
75258
75259else
75260	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
75261	LUA_LIBS=$pkg_cv_LUA_LIBS
75262        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75263$as_echo "yes" >&6; }
75264	with_liblua="yes"
75265fi
75266
75267
75268else
75269	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
75270	LUA_LIBS=$pkg_cv_LUA_LIBS
75271        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75272$as_echo "yes" >&6; }
75273	with_liblua="yes"
75274fi
75275
75276
75277elif test $pkg_failed = untried; then
75278     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75279$as_echo "no" >&6; }
75280
75281
75282pkg_failed=no
75283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
75284$as_echo_n "checking for LUA... " >&6; }
75285
75286if test -n "$LUA_CFLAGS"; then
75287    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
75288 elif test -n "$PKG_CONFIG"; then
75289    if test -n "$PKG_CONFIG" && \
75290    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
75291  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
75292  ac_status=$?
75293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75294  test $ac_status = 0; }; then
75295  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
75296		      test "x$?" != "x0" && pkg_failed=yes
75297else
75298  pkg_failed=yes
75299fi
75300 else
75301    pkg_failed=untried
75302fi
75303if test -n "$LUA_LIBS"; then
75304    pkg_cv_LUA_LIBS="$LUA_LIBS"
75305 elif test -n "$PKG_CONFIG"; then
75306    if test -n "$PKG_CONFIG" && \
75307    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
75308  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
75309  ac_status=$?
75310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75311  test $ac_status = 0; }; then
75312  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
75313		      test "x$?" != "x0" && pkg_failed=yes
75314else
75315  pkg_failed=yes
75316fi
75317 else
75318    pkg_failed=untried
75319fi
75320
75321
75322
75323if test $pkg_failed = yes; then
75324   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75325$as_echo "no" >&6; }
75326
75327if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
75328        _pkg_short_errors_supported=yes
75329else
75330        _pkg_short_errors_supported=no
75331fi
75332        if test $_pkg_short_errors_supported = yes; then
75333	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
75334        else
75335	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
75336        fi
75337	# Put the nasty error message in config.log where it belongs
75338	echo "$LUA_PKG_ERRORS" >&5
75339
75340
75341
75342pkg_failed=no
75343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
75344$as_echo_n "checking for LUA... " >&6; }
75345
75346if test -n "$LUA_CFLAGS"; then
75347    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
75348 elif test -n "$PKG_CONFIG"; then
75349    if test -n "$PKG_CONFIG" && \
75350    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
75351  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
75352  ac_status=$?
75353  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75354  test $ac_status = 0; }; then
75355  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
75356		      test "x$?" != "x0" && pkg_failed=yes
75357else
75358  pkg_failed=yes
75359fi
75360 else
75361    pkg_failed=untried
75362fi
75363if test -n "$LUA_LIBS"; then
75364    pkg_cv_LUA_LIBS="$LUA_LIBS"
75365 elif test -n "$PKG_CONFIG"; then
75366    if test -n "$PKG_CONFIG" && \
75367    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
75368  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
75369  ac_status=$?
75370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75371  test $ac_status = 0; }; then
75372  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
75373		      test "x$?" != "x0" && pkg_failed=yes
75374else
75375  pkg_failed=yes
75376fi
75377 else
75378    pkg_failed=untried
75379fi
75380
75381
75382
75383if test $pkg_failed = yes; then
75384   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75385$as_echo "no" >&6; }
75386
75387if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
75388        _pkg_short_errors_supported=yes
75389else
75390        _pkg_short_errors_supported=no
75391fi
75392        if test $_pkg_short_errors_supported = yes; then
75393	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
75394        else
75395	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
75396        fi
75397	# Put the nasty error message in config.log where it belongs
75398	echo "$LUA_PKG_ERRORS" >&5
75399
75400
75401
75402pkg_failed=no
75403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
75404$as_echo_n "checking for LUA... " >&6; }
75405
75406if test -n "$LUA_CFLAGS"; then
75407    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
75408 elif test -n "$PKG_CONFIG"; then
75409    if test -n "$PKG_CONFIG" && \
75410    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
75411  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
75412  ac_status=$?
75413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75414  test $ac_status = 0; }; then
75415  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
75416		      test "x$?" != "x0" && pkg_failed=yes
75417else
75418  pkg_failed=yes
75419fi
75420 else
75421    pkg_failed=untried
75422fi
75423if test -n "$LUA_LIBS"; then
75424    pkg_cv_LUA_LIBS="$LUA_LIBS"
75425 elif test -n "$PKG_CONFIG"; then
75426    if test -n "$PKG_CONFIG" && \
75427    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
75428  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
75429  ac_status=$?
75430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75431  test $ac_status = 0; }; then
75432  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
75433		      test "x$?" != "x0" && pkg_failed=yes
75434else
75435  pkg_failed=yes
75436fi
75437 else
75438    pkg_failed=untried
75439fi
75440
75441
75442
75443if test $pkg_failed = yes; then
75444   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75445$as_echo "no" >&6; }
75446
75447if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
75448        _pkg_short_errors_supported=yes
75449else
75450        _pkg_short_errors_supported=no
75451fi
75452        if test $_pkg_short_errors_supported = yes; then
75453	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
75454        else
75455	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
75456        fi
75457	# Put the nasty error message in config.log where it belongs
75458	echo "$LUA_PKG_ERRORS" >&5
75459
75460	with_liblua="no (pkg-config cannot find liblua)"
75461
75462elif test $pkg_failed = untried; then
75463     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75464$as_echo "no" >&6; }
75465	with_liblua="no (pkg-config cannot find liblua)"
75466
75467else
75468	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
75469	LUA_LIBS=$pkg_cv_LUA_LIBS
75470        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75471$as_echo "yes" >&6; }
75472	with_liblua="yes"
75473fi
75474
75475
75476elif test $pkg_failed = untried; then
75477     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75478$as_echo "no" >&6; }
75479
75480
75481pkg_failed=no
75482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
75483$as_echo_n "checking for LUA... " >&6; }
75484
75485if test -n "$LUA_CFLAGS"; then
75486    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
75487 elif test -n "$PKG_CONFIG"; then
75488    if test -n "$PKG_CONFIG" && \
75489    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
75490  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
75491  ac_status=$?
75492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75493  test $ac_status = 0; }; then
75494  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
75495		      test "x$?" != "x0" && pkg_failed=yes
75496else
75497  pkg_failed=yes
75498fi
75499 else
75500    pkg_failed=untried
75501fi
75502if test -n "$LUA_LIBS"; then
75503    pkg_cv_LUA_LIBS="$LUA_LIBS"
75504 elif test -n "$PKG_CONFIG"; then
75505    if test -n "$PKG_CONFIG" && \
75506    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
75507  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
75508  ac_status=$?
75509  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75510  test $ac_status = 0; }; then
75511  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
75512		      test "x$?" != "x0" && pkg_failed=yes
75513else
75514  pkg_failed=yes
75515fi
75516 else
75517    pkg_failed=untried
75518fi
75519
75520
75521
75522if test $pkg_failed = yes; then
75523   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75524$as_echo "no" >&6; }
75525
75526if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
75527        _pkg_short_errors_supported=yes
75528else
75529        _pkg_short_errors_supported=no
75530fi
75531        if test $_pkg_short_errors_supported = yes; then
75532	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
75533        else
75534	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
75535        fi
75536	# Put the nasty error message in config.log where it belongs
75537	echo "$LUA_PKG_ERRORS" >&5
75538
75539	with_liblua="no (pkg-config cannot find liblua)"
75540
75541elif test $pkg_failed = untried; then
75542     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75543$as_echo "no" >&6; }
75544	with_liblua="no (pkg-config cannot find liblua)"
75545
75546else
75547	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
75548	LUA_LIBS=$pkg_cv_LUA_LIBS
75549        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75550$as_echo "yes" >&6; }
75551	with_liblua="yes"
75552fi
75553
75554
75555else
75556	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
75557	LUA_LIBS=$pkg_cv_LUA_LIBS
75558        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75559$as_echo "yes" >&6; }
75560	with_liblua="yes"
75561fi
75562
75563
75564elif test $pkg_failed = untried; then
75565     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75566$as_echo "no" >&6; }
75567
75568
75569pkg_failed=no
75570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
75571$as_echo_n "checking for LUA... " >&6; }
75572
75573if test -n "$LUA_CFLAGS"; then
75574    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
75575 elif test -n "$PKG_CONFIG"; then
75576    if test -n "$PKG_CONFIG" && \
75577    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
75578  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
75579  ac_status=$?
75580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75581  test $ac_status = 0; }; then
75582  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
75583		      test "x$?" != "x0" && pkg_failed=yes
75584else
75585  pkg_failed=yes
75586fi
75587 else
75588    pkg_failed=untried
75589fi
75590if test -n "$LUA_LIBS"; then
75591    pkg_cv_LUA_LIBS="$LUA_LIBS"
75592 elif test -n "$PKG_CONFIG"; then
75593    if test -n "$PKG_CONFIG" && \
75594    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
75595  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
75596  ac_status=$?
75597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75598  test $ac_status = 0; }; then
75599  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
75600		      test "x$?" != "x0" && pkg_failed=yes
75601else
75602  pkg_failed=yes
75603fi
75604 else
75605    pkg_failed=untried
75606fi
75607
75608
75609
75610if test $pkg_failed = yes; then
75611   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75612$as_echo "no" >&6; }
75613
75614if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
75615        _pkg_short_errors_supported=yes
75616else
75617        _pkg_short_errors_supported=no
75618fi
75619        if test $_pkg_short_errors_supported = yes; then
75620	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
75621        else
75622	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
75623        fi
75624	# Put the nasty error message in config.log where it belongs
75625	echo "$LUA_PKG_ERRORS" >&5
75626
75627
75628
75629pkg_failed=no
75630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
75631$as_echo_n "checking for LUA... " >&6; }
75632
75633if test -n "$LUA_CFLAGS"; then
75634    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
75635 elif test -n "$PKG_CONFIG"; then
75636    if test -n "$PKG_CONFIG" && \
75637    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
75638  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
75639  ac_status=$?
75640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75641  test $ac_status = 0; }; then
75642  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
75643		      test "x$?" != "x0" && pkg_failed=yes
75644else
75645  pkg_failed=yes
75646fi
75647 else
75648    pkg_failed=untried
75649fi
75650if test -n "$LUA_LIBS"; then
75651    pkg_cv_LUA_LIBS="$LUA_LIBS"
75652 elif test -n "$PKG_CONFIG"; then
75653    if test -n "$PKG_CONFIG" && \
75654    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
75655  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
75656  ac_status=$?
75657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75658  test $ac_status = 0; }; then
75659  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
75660		      test "x$?" != "x0" && pkg_failed=yes
75661else
75662  pkg_failed=yes
75663fi
75664 else
75665    pkg_failed=untried
75666fi
75667
75668
75669
75670if test $pkg_failed = yes; then
75671   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75672$as_echo "no" >&6; }
75673
75674if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
75675        _pkg_short_errors_supported=yes
75676else
75677        _pkg_short_errors_supported=no
75678fi
75679        if test $_pkg_short_errors_supported = yes; then
75680	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
75681        else
75682	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
75683        fi
75684	# Put the nasty error message in config.log where it belongs
75685	echo "$LUA_PKG_ERRORS" >&5
75686
75687	with_liblua="no (pkg-config cannot find liblua)"
75688
75689elif test $pkg_failed = untried; then
75690     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75691$as_echo "no" >&6; }
75692	with_liblua="no (pkg-config cannot find liblua)"
75693
75694else
75695	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
75696	LUA_LIBS=$pkg_cv_LUA_LIBS
75697        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75698$as_echo "yes" >&6; }
75699	with_liblua="yes"
75700fi
75701
75702
75703elif test $pkg_failed = untried; then
75704     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75705$as_echo "no" >&6; }
75706
75707
75708pkg_failed=no
75709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
75710$as_echo_n "checking for LUA... " >&6; }
75711
75712if test -n "$LUA_CFLAGS"; then
75713    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
75714 elif test -n "$PKG_CONFIG"; then
75715    if test -n "$PKG_CONFIG" && \
75716    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
75717  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
75718  ac_status=$?
75719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75720  test $ac_status = 0; }; then
75721  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
75722		      test "x$?" != "x0" && pkg_failed=yes
75723else
75724  pkg_failed=yes
75725fi
75726 else
75727    pkg_failed=untried
75728fi
75729if test -n "$LUA_LIBS"; then
75730    pkg_cv_LUA_LIBS="$LUA_LIBS"
75731 elif test -n "$PKG_CONFIG"; then
75732    if test -n "$PKG_CONFIG" && \
75733    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
75734  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
75735  ac_status=$?
75736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75737  test $ac_status = 0; }; then
75738  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
75739		      test "x$?" != "x0" && pkg_failed=yes
75740else
75741  pkg_failed=yes
75742fi
75743 else
75744    pkg_failed=untried
75745fi
75746
75747
75748
75749if test $pkg_failed = yes; then
75750   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75751$as_echo "no" >&6; }
75752
75753if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
75754        _pkg_short_errors_supported=yes
75755else
75756        _pkg_short_errors_supported=no
75757fi
75758        if test $_pkg_short_errors_supported = yes; then
75759	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
75760        else
75761	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
75762        fi
75763	# Put the nasty error message in config.log where it belongs
75764	echo "$LUA_PKG_ERRORS" >&5
75765
75766	with_liblua="no (pkg-config cannot find liblua)"
75767
75768elif test $pkg_failed = untried; then
75769     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75770$as_echo "no" >&6; }
75771	with_liblua="no (pkg-config cannot find liblua)"
75772
75773else
75774	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
75775	LUA_LIBS=$pkg_cv_LUA_LIBS
75776        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75777$as_echo "yes" >&6; }
75778	with_liblua="yes"
75779fi
75780
75781
75782else
75783	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
75784	LUA_LIBS=$pkg_cv_LUA_LIBS
75785        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75786$as_echo "yes" >&6; }
75787	with_liblua="yes"
75788fi
75789
75790
75791else
75792	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
75793	LUA_LIBS=$pkg_cv_LUA_LIBS
75794        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75795$as_echo "yes" >&6; }
75796	with_liblua="yes"
75797fi
75798
75799
75800else
75801	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
75802	LUA_LIBS=$pkg_cv_LUA_LIBS
75803        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75804$as_echo "yes" >&6; }
75805	with_liblua="yes"
75806fi
75807
75808
75809else
75810	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
75811	LUA_LIBS=$pkg_cv_LUA_LIBS
75812        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75813$as_echo "yes" >&6; }
75814	with_liblua="yes"
75815fi
75816
75817
75818elif test $pkg_failed = untried; then
75819     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75820$as_echo "no" >&6; }
75821
75822
75823pkg_failed=no
75824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
75825$as_echo_n "checking for LUA... " >&6; }
75826
75827if test -n "$LUA_CFLAGS"; then
75828    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
75829 elif test -n "$PKG_CONFIG"; then
75830    if test -n "$PKG_CONFIG" && \
75831    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
75832  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
75833  ac_status=$?
75834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75835  test $ac_status = 0; }; then
75836  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
75837		      test "x$?" != "x0" && pkg_failed=yes
75838else
75839  pkg_failed=yes
75840fi
75841 else
75842    pkg_failed=untried
75843fi
75844if test -n "$LUA_LIBS"; then
75845    pkg_cv_LUA_LIBS="$LUA_LIBS"
75846 elif test -n "$PKG_CONFIG"; then
75847    if test -n "$PKG_CONFIG" && \
75848    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
75849  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
75850  ac_status=$?
75851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75852  test $ac_status = 0; }; then
75853  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
75854		      test "x$?" != "x0" && pkg_failed=yes
75855else
75856  pkg_failed=yes
75857fi
75858 else
75859    pkg_failed=untried
75860fi
75861
75862
75863
75864if test $pkg_failed = yes; then
75865   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75866$as_echo "no" >&6; }
75867
75868if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
75869        _pkg_short_errors_supported=yes
75870else
75871        _pkg_short_errors_supported=no
75872fi
75873        if test $_pkg_short_errors_supported = yes; then
75874	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
75875        else
75876	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
75877        fi
75878	# Put the nasty error message in config.log where it belongs
75879	echo "$LUA_PKG_ERRORS" >&5
75880
75881
75882
75883pkg_failed=no
75884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
75885$as_echo_n "checking for LUA... " >&6; }
75886
75887if test -n "$LUA_CFLAGS"; then
75888    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
75889 elif test -n "$PKG_CONFIG"; then
75890    if test -n "$PKG_CONFIG" && \
75891    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
75892  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
75893  ac_status=$?
75894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75895  test $ac_status = 0; }; then
75896  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
75897		      test "x$?" != "x0" && pkg_failed=yes
75898else
75899  pkg_failed=yes
75900fi
75901 else
75902    pkg_failed=untried
75903fi
75904if test -n "$LUA_LIBS"; then
75905    pkg_cv_LUA_LIBS="$LUA_LIBS"
75906 elif test -n "$PKG_CONFIG"; then
75907    if test -n "$PKG_CONFIG" && \
75908    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
75909  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
75910  ac_status=$?
75911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75912  test $ac_status = 0; }; then
75913  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
75914		      test "x$?" != "x0" && pkg_failed=yes
75915else
75916  pkg_failed=yes
75917fi
75918 else
75919    pkg_failed=untried
75920fi
75921
75922
75923
75924if test $pkg_failed = yes; then
75925   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75926$as_echo "no" >&6; }
75927
75928if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
75929        _pkg_short_errors_supported=yes
75930else
75931        _pkg_short_errors_supported=no
75932fi
75933        if test $_pkg_short_errors_supported = yes; then
75934	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
75935        else
75936	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
75937        fi
75938	# Put the nasty error message in config.log where it belongs
75939	echo "$LUA_PKG_ERRORS" >&5
75940
75941
75942
75943pkg_failed=no
75944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
75945$as_echo_n "checking for LUA... " >&6; }
75946
75947if test -n "$LUA_CFLAGS"; then
75948    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
75949 elif test -n "$PKG_CONFIG"; then
75950    if test -n "$PKG_CONFIG" && \
75951    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
75952  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
75953  ac_status=$?
75954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75955  test $ac_status = 0; }; then
75956  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
75957		      test "x$?" != "x0" && pkg_failed=yes
75958else
75959  pkg_failed=yes
75960fi
75961 else
75962    pkg_failed=untried
75963fi
75964if test -n "$LUA_LIBS"; then
75965    pkg_cv_LUA_LIBS="$LUA_LIBS"
75966 elif test -n "$PKG_CONFIG"; then
75967    if test -n "$PKG_CONFIG" && \
75968    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
75969  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
75970  ac_status=$?
75971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75972  test $ac_status = 0; }; then
75973  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
75974		      test "x$?" != "x0" && pkg_failed=yes
75975else
75976  pkg_failed=yes
75977fi
75978 else
75979    pkg_failed=untried
75980fi
75981
75982
75983
75984if test $pkg_failed = yes; then
75985   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75986$as_echo "no" >&6; }
75987
75988if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
75989        _pkg_short_errors_supported=yes
75990else
75991        _pkg_short_errors_supported=no
75992fi
75993        if test $_pkg_short_errors_supported = yes; then
75994	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
75995        else
75996	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
75997        fi
75998	# Put the nasty error message in config.log where it belongs
75999	echo "$LUA_PKG_ERRORS" >&5
76000
76001
76002
76003pkg_failed=no
76004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
76005$as_echo_n "checking for LUA... " >&6; }
76006
76007if test -n "$LUA_CFLAGS"; then
76008    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
76009 elif test -n "$PKG_CONFIG"; then
76010    if test -n "$PKG_CONFIG" && \
76011    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
76012  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
76013  ac_status=$?
76014  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76015  test $ac_status = 0; }; then
76016  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
76017		      test "x$?" != "x0" && pkg_failed=yes
76018else
76019  pkg_failed=yes
76020fi
76021 else
76022    pkg_failed=untried
76023fi
76024if test -n "$LUA_LIBS"; then
76025    pkg_cv_LUA_LIBS="$LUA_LIBS"
76026 elif test -n "$PKG_CONFIG"; then
76027    if test -n "$PKG_CONFIG" && \
76028    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
76029  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
76030  ac_status=$?
76031  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76032  test $ac_status = 0; }; then
76033  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
76034		      test "x$?" != "x0" && pkg_failed=yes
76035else
76036  pkg_failed=yes
76037fi
76038 else
76039    pkg_failed=untried
76040fi
76041
76042
76043
76044if test $pkg_failed = yes; then
76045   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76046$as_echo "no" >&6; }
76047
76048if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
76049        _pkg_short_errors_supported=yes
76050else
76051        _pkg_short_errors_supported=no
76052fi
76053        if test $_pkg_short_errors_supported = yes; then
76054	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
76055        else
76056	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
76057        fi
76058	# Put the nasty error message in config.log where it belongs
76059	echo "$LUA_PKG_ERRORS" >&5
76060
76061
76062
76063pkg_failed=no
76064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
76065$as_echo_n "checking for LUA... " >&6; }
76066
76067if test -n "$LUA_CFLAGS"; then
76068    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
76069 elif test -n "$PKG_CONFIG"; then
76070    if test -n "$PKG_CONFIG" && \
76071    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
76072  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
76073  ac_status=$?
76074  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76075  test $ac_status = 0; }; then
76076  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
76077		      test "x$?" != "x0" && pkg_failed=yes
76078else
76079  pkg_failed=yes
76080fi
76081 else
76082    pkg_failed=untried
76083fi
76084if test -n "$LUA_LIBS"; then
76085    pkg_cv_LUA_LIBS="$LUA_LIBS"
76086 elif test -n "$PKG_CONFIG"; then
76087    if test -n "$PKG_CONFIG" && \
76088    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
76089  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
76090  ac_status=$?
76091  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76092  test $ac_status = 0; }; then
76093  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
76094		      test "x$?" != "x0" && pkg_failed=yes
76095else
76096  pkg_failed=yes
76097fi
76098 else
76099    pkg_failed=untried
76100fi
76101
76102
76103
76104if test $pkg_failed = yes; then
76105   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76106$as_echo "no" >&6; }
76107
76108if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
76109        _pkg_short_errors_supported=yes
76110else
76111        _pkg_short_errors_supported=no
76112fi
76113        if test $_pkg_short_errors_supported = yes; then
76114	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
76115        else
76116	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
76117        fi
76118	# Put the nasty error message in config.log where it belongs
76119	echo "$LUA_PKG_ERRORS" >&5
76120
76121	with_liblua="no (pkg-config cannot find liblua)"
76122
76123elif test $pkg_failed = untried; then
76124     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76125$as_echo "no" >&6; }
76126	with_liblua="no (pkg-config cannot find liblua)"
76127
76128else
76129	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
76130	LUA_LIBS=$pkg_cv_LUA_LIBS
76131        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
76132$as_echo "yes" >&6; }
76133	with_liblua="yes"
76134fi
76135
76136
76137elif test $pkg_failed = untried; then
76138     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76139$as_echo "no" >&6; }
76140
76141
76142pkg_failed=no
76143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
76144$as_echo_n "checking for LUA... " >&6; }
76145
76146if test -n "$LUA_CFLAGS"; then
76147    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
76148 elif test -n "$PKG_CONFIG"; then
76149    if test -n "$PKG_CONFIG" && \
76150    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
76151  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
76152  ac_status=$?
76153  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76154  test $ac_status = 0; }; then
76155  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
76156		      test "x$?" != "x0" && pkg_failed=yes
76157else
76158  pkg_failed=yes
76159fi
76160 else
76161    pkg_failed=untried
76162fi
76163if test -n "$LUA_LIBS"; then
76164    pkg_cv_LUA_LIBS="$LUA_LIBS"
76165 elif test -n "$PKG_CONFIG"; then
76166    if test -n "$PKG_CONFIG" && \
76167    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
76168  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
76169  ac_status=$?
76170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76171  test $ac_status = 0; }; then
76172  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
76173		      test "x$?" != "x0" && pkg_failed=yes
76174else
76175  pkg_failed=yes
76176fi
76177 else
76178    pkg_failed=untried
76179fi
76180
76181
76182
76183if test $pkg_failed = yes; then
76184   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76185$as_echo "no" >&6; }
76186
76187if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
76188        _pkg_short_errors_supported=yes
76189else
76190        _pkg_short_errors_supported=no
76191fi
76192        if test $_pkg_short_errors_supported = yes; then
76193	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
76194        else
76195	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
76196        fi
76197	# Put the nasty error message in config.log where it belongs
76198	echo "$LUA_PKG_ERRORS" >&5
76199
76200	with_liblua="no (pkg-config cannot find liblua)"
76201
76202elif test $pkg_failed = untried; then
76203     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76204$as_echo "no" >&6; }
76205	with_liblua="no (pkg-config cannot find liblua)"
76206
76207else
76208	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
76209	LUA_LIBS=$pkg_cv_LUA_LIBS
76210        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
76211$as_echo "yes" >&6; }
76212	with_liblua="yes"
76213fi
76214
76215
76216else
76217	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
76218	LUA_LIBS=$pkg_cv_LUA_LIBS
76219        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
76220$as_echo "yes" >&6; }
76221	with_liblua="yes"
76222fi
76223
76224
76225elif test $pkg_failed = untried; then
76226     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76227$as_echo "no" >&6; }
76228
76229
76230pkg_failed=no
76231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
76232$as_echo_n "checking for LUA... " >&6; }
76233
76234if test -n "$LUA_CFLAGS"; then
76235    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
76236 elif test -n "$PKG_CONFIG"; then
76237    if test -n "$PKG_CONFIG" && \
76238    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
76239  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
76240  ac_status=$?
76241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76242  test $ac_status = 0; }; then
76243  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
76244		      test "x$?" != "x0" && pkg_failed=yes
76245else
76246  pkg_failed=yes
76247fi
76248 else
76249    pkg_failed=untried
76250fi
76251if test -n "$LUA_LIBS"; then
76252    pkg_cv_LUA_LIBS="$LUA_LIBS"
76253 elif test -n "$PKG_CONFIG"; then
76254    if test -n "$PKG_CONFIG" && \
76255    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
76256  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
76257  ac_status=$?
76258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76259  test $ac_status = 0; }; then
76260  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
76261		      test "x$?" != "x0" && pkg_failed=yes
76262else
76263  pkg_failed=yes
76264fi
76265 else
76266    pkg_failed=untried
76267fi
76268
76269
76270
76271if test $pkg_failed = yes; then
76272   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76273$as_echo "no" >&6; }
76274
76275if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
76276        _pkg_short_errors_supported=yes
76277else
76278        _pkg_short_errors_supported=no
76279fi
76280        if test $_pkg_short_errors_supported = yes; then
76281	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
76282        else
76283	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
76284        fi
76285	# Put the nasty error message in config.log where it belongs
76286	echo "$LUA_PKG_ERRORS" >&5
76287
76288
76289
76290pkg_failed=no
76291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
76292$as_echo_n "checking for LUA... " >&6; }
76293
76294if test -n "$LUA_CFLAGS"; then
76295    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
76296 elif test -n "$PKG_CONFIG"; then
76297    if test -n "$PKG_CONFIG" && \
76298    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
76299  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
76300  ac_status=$?
76301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76302  test $ac_status = 0; }; then
76303  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
76304		      test "x$?" != "x0" && pkg_failed=yes
76305else
76306  pkg_failed=yes
76307fi
76308 else
76309    pkg_failed=untried
76310fi
76311if test -n "$LUA_LIBS"; then
76312    pkg_cv_LUA_LIBS="$LUA_LIBS"
76313 elif test -n "$PKG_CONFIG"; then
76314    if test -n "$PKG_CONFIG" && \
76315    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
76316  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
76317  ac_status=$?
76318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76319  test $ac_status = 0; }; then
76320  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
76321		      test "x$?" != "x0" && pkg_failed=yes
76322else
76323  pkg_failed=yes
76324fi
76325 else
76326    pkg_failed=untried
76327fi
76328
76329
76330
76331if test $pkg_failed = yes; then
76332   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76333$as_echo "no" >&6; }
76334
76335if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
76336        _pkg_short_errors_supported=yes
76337else
76338        _pkg_short_errors_supported=no
76339fi
76340        if test $_pkg_short_errors_supported = yes; then
76341	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
76342        else
76343	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
76344        fi
76345	# Put the nasty error message in config.log where it belongs
76346	echo "$LUA_PKG_ERRORS" >&5
76347
76348	with_liblua="no (pkg-config cannot find liblua)"
76349
76350elif test $pkg_failed = untried; then
76351     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76352$as_echo "no" >&6; }
76353	with_liblua="no (pkg-config cannot find liblua)"
76354
76355else
76356	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
76357	LUA_LIBS=$pkg_cv_LUA_LIBS
76358        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
76359$as_echo "yes" >&6; }
76360	with_liblua="yes"
76361fi
76362
76363
76364elif test $pkg_failed = untried; then
76365     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76366$as_echo "no" >&6; }
76367
76368
76369pkg_failed=no
76370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
76371$as_echo_n "checking for LUA... " >&6; }
76372
76373if test -n "$LUA_CFLAGS"; then
76374    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
76375 elif test -n "$PKG_CONFIG"; then
76376    if test -n "$PKG_CONFIG" && \
76377    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
76378  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
76379  ac_status=$?
76380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76381  test $ac_status = 0; }; then
76382  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
76383		      test "x$?" != "x0" && pkg_failed=yes
76384else
76385  pkg_failed=yes
76386fi
76387 else
76388    pkg_failed=untried
76389fi
76390if test -n "$LUA_LIBS"; then
76391    pkg_cv_LUA_LIBS="$LUA_LIBS"
76392 elif test -n "$PKG_CONFIG"; then
76393    if test -n "$PKG_CONFIG" && \
76394    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
76395  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
76396  ac_status=$?
76397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76398  test $ac_status = 0; }; then
76399  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
76400		      test "x$?" != "x0" && pkg_failed=yes
76401else
76402  pkg_failed=yes
76403fi
76404 else
76405    pkg_failed=untried
76406fi
76407
76408
76409
76410if test $pkg_failed = yes; then
76411   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76412$as_echo "no" >&6; }
76413
76414if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
76415        _pkg_short_errors_supported=yes
76416else
76417        _pkg_short_errors_supported=no
76418fi
76419        if test $_pkg_short_errors_supported = yes; then
76420	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
76421        else
76422	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
76423        fi
76424	# Put the nasty error message in config.log where it belongs
76425	echo "$LUA_PKG_ERRORS" >&5
76426
76427	with_liblua="no (pkg-config cannot find liblua)"
76428
76429elif test $pkg_failed = untried; then
76430     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76431$as_echo "no" >&6; }
76432	with_liblua="no (pkg-config cannot find liblua)"
76433
76434else
76435	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
76436	LUA_LIBS=$pkg_cv_LUA_LIBS
76437        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
76438$as_echo "yes" >&6; }
76439	with_liblua="yes"
76440fi
76441
76442
76443else
76444	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
76445	LUA_LIBS=$pkg_cv_LUA_LIBS
76446        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
76447$as_echo "yes" >&6; }
76448	with_liblua="yes"
76449fi
76450
76451
76452else
76453	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
76454	LUA_LIBS=$pkg_cv_LUA_LIBS
76455        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
76456$as_echo "yes" >&6; }
76457	with_liblua="yes"
76458fi
76459
76460
76461elif test $pkg_failed = untried; then
76462     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76463$as_echo "no" >&6; }
76464
76465
76466pkg_failed=no
76467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
76468$as_echo_n "checking for LUA... " >&6; }
76469
76470if test -n "$LUA_CFLAGS"; then
76471    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
76472 elif test -n "$PKG_CONFIG"; then
76473    if test -n "$PKG_CONFIG" && \
76474    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
76475  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
76476  ac_status=$?
76477  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76478  test $ac_status = 0; }; then
76479  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
76480		      test "x$?" != "x0" && pkg_failed=yes
76481else
76482  pkg_failed=yes
76483fi
76484 else
76485    pkg_failed=untried
76486fi
76487if test -n "$LUA_LIBS"; then
76488    pkg_cv_LUA_LIBS="$LUA_LIBS"
76489 elif test -n "$PKG_CONFIG"; then
76490    if test -n "$PKG_CONFIG" && \
76491    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
76492  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
76493  ac_status=$?
76494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76495  test $ac_status = 0; }; then
76496  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
76497		      test "x$?" != "x0" && pkg_failed=yes
76498else
76499  pkg_failed=yes
76500fi
76501 else
76502    pkg_failed=untried
76503fi
76504
76505
76506
76507if test $pkg_failed = yes; then
76508   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76509$as_echo "no" >&6; }
76510
76511if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
76512        _pkg_short_errors_supported=yes
76513else
76514        _pkg_short_errors_supported=no
76515fi
76516        if test $_pkg_short_errors_supported = yes; then
76517	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
76518        else
76519	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
76520        fi
76521	# Put the nasty error message in config.log where it belongs
76522	echo "$LUA_PKG_ERRORS" >&5
76523
76524
76525
76526pkg_failed=no
76527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
76528$as_echo_n "checking for LUA... " >&6; }
76529
76530if test -n "$LUA_CFLAGS"; then
76531    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
76532 elif test -n "$PKG_CONFIG"; then
76533    if test -n "$PKG_CONFIG" && \
76534    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
76535  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
76536  ac_status=$?
76537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76538  test $ac_status = 0; }; then
76539  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
76540		      test "x$?" != "x0" && pkg_failed=yes
76541else
76542  pkg_failed=yes
76543fi
76544 else
76545    pkg_failed=untried
76546fi
76547if test -n "$LUA_LIBS"; then
76548    pkg_cv_LUA_LIBS="$LUA_LIBS"
76549 elif test -n "$PKG_CONFIG"; then
76550    if test -n "$PKG_CONFIG" && \
76551    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
76552  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
76553  ac_status=$?
76554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76555  test $ac_status = 0; }; then
76556  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
76557		      test "x$?" != "x0" && pkg_failed=yes
76558else
76559  pkg_failed=yes
76560fi
76561 else
76562    pkg_failed=untried
76563fi
76564
76565
76566
76567if test $pkg_failed = yes; then
76568   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76569$as_echo "no" >&6; }
76570
76571if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
76572        _pkg_short_errors_supported=yes
76573else
76574        _pkg_short_errors_supported=no
76575fi
76576        if test $_pkg_short_errors_supported = yes; then
76577	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
76578        else
76579	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
76580        fi
76581	# Put the nasty error message in config.log where it belongs
76582	echo "$LUA_PKG_ERRORS" >&5
76583
76584
76585
76586pkg_failed=no
76587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
76588$as_echo_n "checking for LUA... " >&6; }
76589
76590if test -n "$LUA_CFLAGS"; then
76591    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
76592 elif test -n "$PKG_CONFIG"; then
76593    if test -n "$PKG_CONFIG" && \
76594    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
76595  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
76596  ac_status=$?
76597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76598  test $ac_status = 0; }; then
76599  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
76600		      test "x$?" != "x0" && pkg_failed=yes
76601else
76602  pkg_failed=yes
76603fi
76604 else
76605    pkg_failed=untried
76606fi
76607if test -n "$LUA_LIBS"; then
76608    pkg_cv_LUA_LIBS="$LUA_LIBS"
76609 elif test -n "$PKG_CONFIG"; then
76610    if test -n "$PKG_CONFIG" && \
76611    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
76612  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
76613  ac_status=$?
76614  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76615  test $ac_status = 0; }; then
76616  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
76617		      test "x$?" != "x0" && pkg_failed=yes
76618else
76619  pkg_failed=yes
76620fi
76621 else
76622    pkg_failed=untried
76623fi
76624
76625
76626
76627if test $pkg_failed = yes; then
76628   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76629$as_echo "no" >&6; }
76630
76631if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
76632        _pkg_short_errors_supported=yes
76633else
76634        _pkg_short_errors_supported=no
76635fi
76636        if test $_pkg_short_errors_supported = yes; then
76637	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
76638        else
76639	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
76640        fi
76641	# Put the nasty error message in config.log where it belongs
76642	echo "$LUA_PKG_ERRORS" >&5
76643
76644	with_liblua="no (pkg-config cannot find liblua)"
76645
76646elif test $pkg_failed = untried; then
76647     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76648$as_echo "no" >&6; }
76649	with_liblua="no (pkg-config cannot find liblua)"
76650
76651else
76652	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
76653	LUA_LIBS=$pkg_cv_LUA_LIBS
76654        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
76655$as_echo "yes" >&6; }
76656	with_liblua="yes"
76657fi
76658
76659
76660elif test $pkg_failed = untried; then
76661     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76662$as_echo "no" >&6; }
76663
76664
76665pkg_failed=no
76666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
76667$as_echo_n "checking for LUA... " >&6; }
76668
76669if test -n "$LUA_CFLAGS"; then
76670    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
76671 elif test -n "$PKG_CONFIG"; then
76672    if test -n "$PKG_CONFIG" && \
76673    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
76674  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
76675  ac_status=$?
76676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76677  test $ac_status = 0; }; then
76678  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
76679		      test "x$?" != "x0" && pkg_failed=yes
76680else
76681  pkg_failed=yes
76682fi
76683 else
76684    pkg_failed=untried
76685fi
76686if test -n "$LUA_LIBS"; then
76687    pkg_cv_LUA_LIBS="$LUA_LIBS"
76688 elif test -n "$PKG_CONFIG"; then
76689    if test -n "$PKG_CONFIG" && \
76690    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
76691  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
76692  ac_status=$?
76693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76694  test $ac_status = 0; }; then
76695  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
76696		      test "x$?" != "x0" && pkg_failed=yes
76697else
76698  pkg_failed=yes
76699fi
76700 else
76701    pkg_failed=untried
76702fi
76703
76704
76705
76706if test $pkg_failed = yes; then
76707   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76708$as_echo "no" >&6; }
76709
76710if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
76711        _pkg_short_errors_supported=yes
76712else
76713        _pkg_short_errors_supported=no
76714fi
76715        if test $_pkg_short_errors_supported = yes; then
76716	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
76717        else
76718	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
76719        fi
76720	# Put the nasty error message in config.log where it belongs
76721	echo "$LUA_PKG_ERRORS" >&5
76722
76723	with_liblua="no (pkg-config cannot find liblua)"
76724
76725elif test $pkg_failed = untried; then
76726     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76727$as_echo "no" >&6; }
76728	with_liblua="no (pkg-config cannot find liblua)"
76729
76730else
76731	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
76732	LUA_LIBS=$pkg_cv_LUA_LIBS
76733        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
76734$as_echo "yes" >&6; }
76735	with_liblua="yes"
76736fi
76737
76738
76739else
76740	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
76741	LUA_LIBS=$pkg_cv_LUA_LIBS
76742        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
76743$as_echo "yes" >&6; }
76744	with_liblua="yes"
76745fi
76746
76747
76748elif test $pkg_failed = untried; then
76749     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76750$as_echo "no" >&6; }
76751
76752
76753pkg_failed=no
76754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
76755$as_echo_n "checking for LUA... " >&6; }
76756
76757if test -n "$LUA_CFLAGS"; then
76758    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
76759 elif test -n "$PKG_CONFIG"; then
76760    if test -n "$PKG_CONFIG" && \
76761    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
76762  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
76763  ac_status=$?
76764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76765  test $ac_status = 0; }; then
76766  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
76767		      test "x$?" != "x0" && pkg_failed=yes
76768else
76769  pkg_failed=yes
76770fi
76771 else
76772    pkg_failed=untried
76773fi
76774if test -n "$LUA_LIBS"; then
76775    pkg_cv_LUA_LIBS="$LUA_LIBS"
76776 elif test -n "$PKG_CONFIG"; then
76777    if test -n "$PKG_CONFIG" && \
76778    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
76779  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
76780  ac_status=$?
76781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76782  test $ac_status = 0; }; then
76783  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
76784		      test "x$?" != "x0" && pkg_failed=yes
76785else
76786  pkg_failed=yes
76787fi
76788 else
76789    pkg_failed=untried
76790fi
76791
76792
76793
76794if test $pkg_failed = yes; then
76795   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76796$as_echo "no" >&6; }
76797
76798if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
76799        _pkg_short_errors_supported=yes
76800else
76801        _pkg_short_errors_supported=no
76802fi
76803        if test $_pkg_short_errors_supported = yes; then
76804	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
76805        else
76806	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
76807        fi
76808	# Put the nasty error message in config.log where it belongs
76809	echo "$LUA_PKG_ERRORS" >&5
76810
76811
76812
76813pkg_failed=no
76814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
76815$as_echo_n "checking for LUA... " >&6; }
76816
76817if test -n "$LUA_CFLAGS"; then
76818    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
76819 elif test -n "$PKG_CONFIG"; then
76820    if test -n "$PKG_CONFIG" && \
76821    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
76822  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
76823  ac_status=$?
76824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76825  test $ac_status = 0; }; then
76826  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
76827		      test "x$?" != "x0" && pkg_failed=yes
76828else
76829  pkg_failed=yes
76830fi
76831 else
76832    pkg_failed=untried
76833fi
76834if test -n "$LUA_LIBS"; then
76835    pkg_cv_LUA_LIBS="$LUA_LIBS"
76836 elif test -n "$PKG_CONFIG"; then
76837    if test -n "$PKG_CONFIG" && \
76838    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
76839  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
76840  ac_status=$?
76841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76842  test $ac_status = 0; }; then
76843  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
76844		      test "x$?" != "x0" && pkg_failed=yes
76845else
76846  pkg_failed=yes
76847fi
76848 else
76849    pkg_failed=untried
76850fi
76851
76852
76853
76854if test $pkg_failed = yes; then
76855   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76856$as_echo "no" >&6; }
76857
76858if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
76859        _pkg_short_errors_supported=yes
76860else
76861        _pkg_short_errors_supported=no
76862fi
76863        if test $_pkg_short_errors_supported = yes; then
76864	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
76865        else
76866	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
76867        fi
76868	# Put the nasty error message in config.log where it belongs
76869	echo "$LUA_PKG_ERRORS" >&5
76870
76871	with_liblua="no (pkg-config cannot find liblua)"
76872
76873elif test $pkg_failed = untried; then
76874     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76875$as_echo "no" >&6; }
76876	with_liblua="no (pkg-config cannot find liblua)"
76877
76878else
76879	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
76880	LUA_LIBS=$pkg_cv_LUA_LIBS
76881        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
76882$as_echo "yes" >&6; }
76883	with_liblua="yes"
76884fi
76885
76886
76887elif test $pkg_failed = untried; then
76888     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76889$as_echo "no" >&6; }
76890
76891
76892pkg_failed=no
76893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
76894$as_echo_n "checking for LUA... " >&6; }
76895
76896if test -n "$LUA_CFLAGS"; then
76897    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
76898 elif test -n "$PKG_CONFIG"; then
76899    if test -n "$PKG_CONFIG" && \
76900    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
76901  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
76902  ac_status=$?
76903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76904  test $ac_status = 0; }; then
76905  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
76906		      test "x$?" != "x0" && pkg_failed=yes
76907else
76908  pkg_failed=yes
76909fi
76910 else
76911    pkg_failed=untried
76912fi
76913if test -n "$LUA_LIBS"; then
76914    pkg_cv_LUA_LIBS="$LUA_LIBS"
76915 elif test -n "$PKG_CONFIG"; then
76916    if test -n "$PKG_CONFIG" && \
76917    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
76918  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
76919  ac_status=$?
76920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76921  test $ac_status = 0; }; then
76922  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
76923		      test "x$?" != "x0" && pkg_failed=yes
76924else
76925  pkg_failed=yes
76926fi
76927 else
76928    pkg_failed=untried
76929fi
76930
76931
76932
76933if test $pkg_failed = yes; then
76934   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76935$as_echo "no" >&6; }
76936
76937if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
76938        _pkg_short_errors_supported=yes
76939else
76940        _pkg_short_errors_supported=no
76941fi
76942        if test $_pkg_short_errors_supported = yes; then
76943	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
76944        else
76945	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
76946        fi
76947	# Put the nasty error message in config.log where it belongs
76948	echo "$LUA_PKG_ERRORS" >&5
76949
76950	with_liblua="no (pkg-config cannot find liblua)"
76951
76952elif test $pkg_failed = untried; then
76953     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76954$as_echo "no" >&6; }
76955	with_liblua="no (pkg-config cannot find liblua)"
76956
76957else
76958	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
76959	LUA_LIBS=$pkg_cv_LUA_LIBS
76960        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
76961$as_echo "yes" >&6; }
76962	with_liblua="yes"
76963fi
76964
76965
76966else
76967	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
76968	LUA_LIBS=$pkg_cv_LUA_LIBS
76969        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
76970$as_echo "yes" >&6; }
76971	with_liblua="yes"
76972fi
76973
76974
76975else
76976	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
76977	LUA_LIBS=$pkg_cv_LUA_LIBS
76978        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
76979$as_echo "yes" >&6; }
76980	with_liblua="yes"
76981fi
76982
76983
76984else
76985	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
76986	LUA_LIBS=$pkg_cv_LUA_LIBS
76987        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
76988$as_echo "yes" >&6; }
76989	with_liblua="yes"
76990fi
76991
76992
76993elif test $pkg_failed = untried; then
76994     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76995$as_echo "no" >&6; }
76996
76997
76998pkg_failed=no
76999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
77000$as_echo_n "checking for LUA... " >&6; }
77001
77002if test -n "$LUA_CFLAGS"; then
77003    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
77004 elif test -n "$PKG_CONFIG"; then
77005    if test -n "$PKG_CONFIG" && \
77006    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
77007  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
77008  ac_status=$?
77009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77010  test $ac_status = 0; }; then
77011  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
77012		      test "x$?" != "x0" && pkg_failed=yes
77013else
77014  pkg_failed=yes
77015fi
77016 else
77017    pkg_failed=untried
77018fi
77019if test -n "$LUA_LIBS"; then
77020    pkg_cv_LUA_LIBS="$LUA_LIBS"
77021 elif test -n "$PKG_CONFIG"; then
77022    if test -n "$PKG_CONFIG" && \
77023    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
77024  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
77025  ac_status=$?
77026  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77027  test $ac_status = 0; }; then
77028  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
77029		      test "x$?" != "x0" && pkg_failed=yes
77030else
77031  pkg_failed=yes
77032fi
77033 else
77034    pkg_failed=untried
77035fi
77036
77037
77038
77039if test $pkg_failed = yes; then
77040   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77041$as_echo "no" >&6; }
77042
77043if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
77044        _pkg_short_errors_supported=yes
77045else
77046        _pkg_short_errors_supported=no
77047fi
77048        if test $_pkg_short_errors_supported = yes; then
77049	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
77050        else
77051	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
77052        fi
77053	# Put the nasty error message in config.log where it belongs
77054	echo "$LUA_PKG_ERRORS" >&5
77055
77056
77057
77058pkg_failed=no
77059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
77060$as_echo_n "checking for LUA... " >&6; }
77061
77062if test -n "$LUA_CFLAGS"; then
77063    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
77064 elif test -n "$PKG_CONFIG"; then
77065    if test -n "$PKG_CONFIG" && \
77066    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
77067  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
77068  ac_status=$?
77069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77070  test $ac_status = 0; }; then
77071  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
77072		      test "x$?" != "x0" && pkg_failed=yes
77073else
77074  pkg_failed=yes
77075fi
77076 else
77077    pkg_failed=untried
77078fi
77079if test -n "$LUA_LIBS"; then
77080    pkg_cv_LUA_LIBS="$LUA_LIBS"
77081 elif test -n "$PKG_CONFIG"; then
77082    if test -n "$PKG_CONFIG" && \
77083    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
77084  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
77085  ac_status=$?
77086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77087  test $ac_status = 0; }; then
77088  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
77089		      test "x$?" != "x0" && pkg_failed=yes
77090else
77091  pkg_failed=yes
77092fi
77093 else
77094    pkg_failed=untried
77095fi
77096
77097
77098
77099if test $pkg_failed = yes; then
77100   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77101$as_echo "no" >&6; }
77102
77103if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
77104        _pkg_short_errors_supported=yes
77105else
77106        _pkg_short_errors_supported=no
77107fi
77108        if test $_pkg_short_errors_supported = yes; then
77109	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
77110        else
77111	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
77112        fi
77113	# Put the nasty error message in config.log where it belongs
77114	echo "$LUA_PKG_ERRORS" >&5
77115
77116
77117
77118pkg_failed=no
77119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
77120$as_echo_n "checking for LUA... " >&6; }
77121
77122if test -n "$LUA_CFLAGS"; then
77123    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
77124 elif test -n "$PKG_CONFIG"; then
77125    if test -n "$PKG_CONFIG" && \
77126    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
77127  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
77128  ac_status=$?
77129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77130  test $ac_status = 0; }; then
77131  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
77132		      test "x$?" != "x0" && pkg_failed=yes
77133else
77134  pkg_failed=yes
77135fi
77136 else
77137    pkg_failed=untried
77138fi
77139if test -n "$LUA_LIBS"; then
77140    pkg_cv_LUA_LIBS="$LUA_LIBS"
77141 elif test -n "$PKG_CONFIG"; then
77142    if test -n "$PKG_CONFIG" && \
77143    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
77144  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
77145  ac_status=$?
77146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77147  test $ac_status = 0; }; then
77148  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
77149		      test "x$?" != "x0" && pkg_failed=yes
77150else
77151  pkg_failed=yes
77152fi
77153 else
77154    pkg_failed=untried
77155fi
77156
77157
77158
77159if test $pkg_failed = yes; then
77160   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77161$as_echo "no" >&6; }
77162
77163if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
77164        _pkg_short_errors_supported=yes
77165else
77166        _pkg_short_errors_supported=no
77167fi
77168        if test $_pkg_short_errors_supported = yes; then
77169	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
77170        else
77171	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
77172        fi
77173	# Put the nasty error message in config.log where it belongs
77174	echo "$LUA_PKG_ERRORS" >&5
77175
77176
77177
77178pkg_failed=no
77179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
77180$as_echo_n "checking for LUA... " >&6; }
77181
77182if test -n "$LUA_CFLAGS"; then
77183    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
77184 elif test -n "$PKG_CONFIG"; then
77185    if test -n "$PKG_CONFIG" && \
77186    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
77187  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
77188  ac_status=$?
77189  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77190  test $ac_status = 0; }; then
77191  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
77192		      test "x$?" != "x0" && pkg_failed=yes
77193else
77194  pkg_failed=yes
77195fi
77196 else
77197    pkg_failed=untried
77198fi
77199if test -n "$LUA_LIBS"; then
77200    pkg_cv_LUA_LIBS="$LUA_LIBS"
77201 elif test -n "$PKG_CONFIG"; then
77202    if test -n "$PKG_CONFIG" && \
77203    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
77204  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
77205  ac_status=$?
77206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77207  test $ac_status = 0; }; then
77208  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
77209		      test "x$?" != "x0" && pkg_failed=yes
77210else
77211  pkg_failed=yes
77212fi
77213 else
77214    pkg_failed=untried
77215fi
77216
77217
77218
77219if test $pkg_failed = yes; then
77220   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77221$as_echo "no" >&6; }
77222
77223if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
77224        _pkg_short_errors_supported=yes
77225else
77226        _pkg_short_errors_supported=no
77227fi
77228        if test $_pkg_short_errors_supported = yes; then
77229	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
77230        else
77231	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
77232        fi
77233	# Put the nasty error message in config.log where it belongs
77234	echo "$LUA_PKG_ERRORS" >&5
77235
77236	with_liblua="no (pkg-config cannot find liblua)"
77237
77238elif test $pkg_failed = untried; then
77239     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77240$as_echo "no" >&6; }
77241	with_liblua="no (pkg-config cannot find liblua)"
77242
77243else
77244	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
77245	LUA_LIBS=$pkg_cv_LUA_LIBS
77246        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
77247$as_echo "yes" >&6; }
77248	with_liblua="yes"
77249fi
77250
77251
77252elif test $pkg_failed = untried; then
77253     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77254$as_echo "no" >&6; }
77255
77256
77257pkg_failed=no
77258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
77259$as_echo_n "checking for LUA... " >&6; }
77260
77261if test -n "$LUA_CFLAGS"; then
77262    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
77263 elif test -n "$PKG_CONFIG"; then
77264    if test -n "$PKG_CONFIG" && \
77265    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
77266  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
77267  ac_status=$?
77268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77269  test $ac_status = 0; }; then
77270  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
77271		      test "x$?" != "x0" && pkg_failed=yes
77272else
77273  pkg_failed=yes
77274fi
77275 else
77276    pkg_failed=untried
77277fi
77278if test -n "$LUA_LIBS"; then
77279    pkg_cv_LUA_LIBS="$LUA_LIBS"
77280 elif test -n "$PKG_CONFIG"; then
77281    if test -n "$PKG_CONFIG" && \
77282    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
77283  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
77284  ac_status=$?
77285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77286  test $ac_status = 0; }; then
77287  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
77288		      test "x$?" != "x0" && pkg_failed=yes
77289else
77290  pkg_failed=yes
77291fi
77292 else
77293    pkg_failed=untried
77294fi
77295
77296
77297
77298if test $pkg_failed = yes; then
77299   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77300$as_echo "no" >&6; }
77301
77302if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
77303        _pkg_short_errors_supported=yes
77304else
77305        _pkg_short_errors_supported=no
77306fi
77307        if test $_pkg_short_errors_supported = yes; then
77308	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
77309        else
77310	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
77311        fi
77312	# Put the nasty error message in config.log where it belongs
77313	echo "$LUA_PKG_ERRORS" >&5
77314
77315	with_liblua="no (pkg-config cannot find liblua)"
77316
77317elif test $pkg_failed = untried; then
77318     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77319$as_echo "no" >&6; }
77320	with_liblua="no (pkg-config cannot find liblua)"
77321
77322else
77323	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
77324	LUA_LIBS=$pkg_cv_LUA_LIBS
77325        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
77326$as_echo "yes" >&6; }
77327	with_liblua="yes"
77328fi
77329
77330
77331else
77332	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
77333	LUA_LIBS=$pkg_cv_LUA_LIBS
77334        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
77335$as_echo "yes" >&6; }
77336	with_liblua="yes"
77337fi
77338
77339
77340elif test $pkg_failed = untried; then
77341     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77342$as_echo "no" >&6; }
77343
77344
77345pkg_failed=no
77346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
77347$as_echo_n "checking for LUA... " >&6; }
77348
77349if test -n "$LUA_CFLAGS"; then
77350    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
77351 elif test -n "$PKG_CONFIG"; then
77352    if test -n "$PKG_CONFIG" && \
77353    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
77354  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
77355  ac_status=$?
77356  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77357  test $ac_status = 0; }; then
77358  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
77359		      test "x$?" != "x0" && pkg_failed=yes
77360else
77361  pkg_failed=yes
77362fi
77363 else
77364    pkg_failed=untried
77365fi
77366if test -n "$LUA_LIBS"; then
77367    pkg_cv_LUA_LIBS="$LUA_LIBS"
77368 elif test -n "$PKG_CONFIG"; then
77369    if test -n "$PKG_CONFIG" && \
77370    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
77371  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
77372  ac_status=$?
77373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77374  test $ac_status = 0; }; then
77375  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
77376		      test "x$?" != "x0" && pkg_failed=yes
77377else
77378  pkg_failed=yes
77379fi
77380 else
77381    pkg_failed=untried
77382fi
77383
77384
77385
77386if test $pkg_failed = yes; then
77387   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77388$as_echo "no" >&6; }
77389
77390if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
77391        _pkg_short_errors_supported=yes
77392else
77393        _pkg_short_errors_supported=no
77394fi
77395        if test $_pkg_short_errors_supported = yes; then
77396	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
77397        else
77398	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
77399        fi
77400	# Put the nasty error message in config.log where it belongs
77401	echo "$LUA_PKG_ERRORS" >&5
77402
77403
77404
77405pkg_failed=no
77406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
77407$as_echo_n "checking for LUA... " >&6; }
77408
77409if test -n "$LUA_CFLAGS"; then
77410    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
77411 elif test -n "$PKG_CONFIG"; then
77412    if test -n "$PKG_CONFIG" && \
77413    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
77414  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
77415  ac_status=$?
77416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77417  test $ac_status = 0; }; then
77418  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
77419		      test "x$?" != "x0" && pkg_failed=yes
77420else
77421  pkg_failed=yes
77422fi
77423 else
77424    pkg_failed=untried
77425fi
77426if test -n "$LUA_LIBS"; then
77427    pkg_cv_LUA_LIBS="$LUA_LIBS"
77428 elif test -n "$PKG_CONFIG"; then
77429    if test -n "$PKG_CONFIG" && \
77430    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
77431  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
77432  ac_status=$?
77433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77434  test $ac_status = 0; }; then
77435  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
77436		      test "x$?" != "x0" && pkg_failed=yes
77437else
77438  pkg_failed=yes
77439fi
77440 else
77441    pkg_failed=untried
77442fi
77443
77444
77445
77446if test $pkg_failed = yes; then
77447   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77448$as_echo "no" >&6; }
77449
77450if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
77451        _pkg_short_errors_supported=yes
77452else
77453        _pkg_short_errors_supported=no
77454fi
77455        if test $_pkg_short_errors_supported = yes; then
77456	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
77457        else
77458	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
77459        fi
77460	# Put the nasty error message in config.log where it belongs
77461	echo "$LUA_PKG_ERRORS" >&5
77462
77463	with_liblua="no (pkg-config cannot find liblua)"
77464
77465elif test $pkg_failed = untried; then
77466     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77467$as_echo "no" >&6; }
77468	with_liblua="no (pkg-config cannot find liblua)"
77469
77470else
77471	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
77472	LUA_LIBS=$pkg_cv_LUA_LIBS
77473        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
77474$as_echo "yes" >&6; }
77475	with_liblua="yes"
77476fi
77477
77478
77479elif test $pkg_failed = untried; then
77480     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77481$as_echo "no" >&6; }
77482
77483
77484pkg_failed=no
77485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
77486$as_echo_n "checking for LUA... " >&6; }
77487
77488if test -n "$LUA_CFLAGS"; then
77489    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
77490 elif test -n "$PKG_CONFIG"; then
77491    if test -n "$PKG_CONFIG" && \
77492    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
77493  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
77494  ac_status=$?
77495  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77496  test $ac_status = 0; }; then
77497  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
77498		      test "x$?" != "x0" && pkg_failed=yes
77499else
77500  pkg_failed=yes
77501fi
77502 else
77503    pkg_failed=untried
77504fi
77505if test -n "$LUA_LIBS"; then
77506    pkg_cv_LUA_LIBS="$LUA_LIBS"
77507 elif test -n "$PKG_CONFIG"; then
77508    if test -n "$PKG_CONFIG" && \
77509    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
77510  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
77511  ac_status=$?
77512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77513  test $ac_status = 0; }; then
77514  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
77515		      test "x$?" != "x0" && pkg_failed=yes
77516else
77517  pkg_failed=yes
77518fi
77519 else
77520    pkg_failed=untried
77521fi
77522
77523
77524
77525if test $pkg_failed = yes; then
77526   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77527$as_echo "no" >&6; }
77528
77529if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
77530        _pkg_short_errors_supported=yes
77531else
77532        _pkg_short_errors_supported=no
77533fi
77534        if test $_pkg_short_errors_supported = yes; then
77535	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
77536        else
77537	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
77538        fi
77539	# Put the nasty error message in config.log where it belongs
77540	echo "$LUA_PKG_ERRORS" >&5
77541
77542	with_liblua="no (pkg-config cannot find liblua)"
77543
77544elif test $pkg_failed = untried; then
77545     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77546$as_echo "no" >&6; }
77547	with_liblua="no (pkg-config cannot find liblua)"
77548
77549else
77550	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
77551	LUA_LIBS=$pkg_cv_LUA_LIBS
77552        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
77553$as_echo "yes" >&6; }
77554	with_liblua="yes"
77555fi
77556
77557
77558else
77559	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
77560	LUA_LIBS=$pkg_cv_LUA_LIBS
77561        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
77562$as_echo "yes" >&6; }
77563	with_liblua="yes"
77564fi
77565
77566
77567else
77568	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
77569	LUA_LIBS=$pkg_cv_LUA_LIBS
77570        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
77571$as_echo "yes" >&6; }
77572	with_liblua="yes"
77573fi
77574
77575
77576elif test $pkg_failed = untried; then
77577     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77578$as_echo "no" >&6; }
77579
77580
77581pkg_failed=no
77582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
77583$as_echo_n "checking for LUA... " >&6; }
77584
77585if test -n "$LUA_CFLAGS"; then
77586    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
77587 elif test -n "$PKG_CONFIG"; then
77588    if test -n "$PKG_CONFIG" && \
77589    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
77590  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
77591  ac_status=$?
77592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77593  test $ac_status = 0; }; then
77594  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
77595		      test "x$?" != "x0" && pkg_failed=yes
77596else
77597  pkg_failed=yes
77598fi
77599 else
77600    pkg_failed=untried
77601fi
77602if test -n "$LUA_LIBS"; then
77603    pkg_cv_LUA_LIBS="$LUA_LIBS"
77604 elif test -n "$PKG_CONFIG"; then
77605    if test -n "$PKG_CONFIG" && \
77606    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
77607  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
77608  ac_status=$?
77609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77610  test $ac_status = 0; }; then
77611  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
77612		      test "x$?" != "x0" && pkg_failed=yes
77613else
77614  pkg_failed=yes
77615fi
77616 else
77617    pkg_failed=untried
77618fi
77619
77620
77621
77622if test $pkg_failed = yes; then
77623   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77624$as_echo "no" >&6; }
77625
77626if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
77627        _pkg_short_errors_supported=yes
77628else
77629        _pkg_short_errors_supported=no
77630fi
77631        if test $_pkg_short_errors_supported = yes; then
77632	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
77633        else
77634	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
77635        fi
77636	# Put the nasty error message in config.log where it belongs
77637	echo "$LUA_PKG_ERRORS" >&5
77638
77639
77640
77641pkg_failed=no
77642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
77643$as_echo_n "checking for LUA... " >&6; }
77644
77645if test -n "$LUA_CFLAGS"; then
77646    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
77647 elif test -n "$PKG_CONFIG"; then
77648    if test -n "$PKG_CONFIG" && \
77649    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
77650  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
77651  ac_status=$?
77652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77653  test $ac_status = 0; }; then
77654  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
77655		      test "x$?" != "x0" && pkg_failed=yes
77656else
77657  pkg_failed=yes
77658fi
77659 else
77660    pkg_failed=untried
77661fi
77662if test -n "$LUA_LIBS"; then
77663    pkg_cv_LUA_LIBS="$LUA_LIBS"
77664 elif test -n "$PKG_CONFIG"; then
77665    if test -n "$PKG_CONFIG" && \
77666    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
77667  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
77668  ac_status=$?
77669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77670  test $ac_status = 0; }; then
77671  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
77672		      test "x$?" != "x0" && pkg_failed=yes
77673else
77674  pkg_failed=yes
77675fi
77676 else
77677    pkg_failed=untried
77678fi
77679
77680
77681
77682if test $pkg_failed = yes; then
77683   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77684$as_echo "no" >&6; }
77685
77686if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
77687        _pkg_short_errors_supported=yes
77688else
77689        _pkg_short_errors_supported=no
77690fi
77691        if test $_pkg_short_errors_supported = yes; then
77692	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
77693        else
77694	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
77695        fi
77696	# Put the nasty error message in config.log where it belongs
77697	echo "$LUA_PKG_ERRORS" >&5
77698
77699
77700
77701pkg_failed=no
77702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
77703$as_echo_n "checking for LUA... " >&6; }
77704
77705if test -n "$LUA_CFLAGS"; then
77706    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
77707 elif test -n "$PKG_CONFIG"; then
77708    if test -n "$PKG_CONFIG" && \
77709    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
77710  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
77711  ac_status=$?
77712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77713  test $ac_status = 0; }; then
77714  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
77715		      test "x$?" != "x0" && pkg_failed=yes
77716else
77717  pkg_failed=yes
77718fi
77719 else
77720    pkg_failed=untried
77721fi
77722if test -n "$LUA_LIBS"; then
77723    pkg_cv_LUA_LIBS="$LUA_LIBS"
77724 elif test -n "$PKG_CONFIG"; then
77725    if test -n "$PKG_CONFIG" && \
77726    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
77727  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
77728  ac_status=$?
77729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77730  test $ac_status = 0; }; then
77731  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
77732		      test "x$?" != "x0" && pkg_failed=yes
77733else
77734  pkg_failed=yes
77735fi
77736 else
77737    pkg_failed=untried
77738fi
77739
77740
77741
77742if test $pkg_failed = yes; then
77743   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77744$as_echo "no" >&6; }
77745
77746if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
77747        _pkg_short_errors_supported=yes
77748else
77749        _pkg_short_errors_supported=no
77750fi
77751        if test $_pkg_short_errors_supported = yes; then
77752	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
77753        else
77754	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
77755        fi
77756	# Put the nasty error message in config.log where it belongs
77757	echo "$LUA_PKG_ERRORS" >&5
77758
77759	with_liblua="no (pkg-config cannot find liblua)"
77760
77761elif test $pkg_failed = untried; then
77762     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77763$as_echo "no" >&6; }
77764	with_liblua="no (pkg-config cannot find liblua)"
77765
77766else
77767	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
77768	LUA_LIBS=$pkg_cv_LUA_LIBS
77769        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
77770$as_echo "yes" >&6; }
77771	with_liblua="yes"
77772fi
77773
77774
77775elif test $pkg_failed = untried; then
77776     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77777$as_echo "no" >&6; }
77778
77779
77780pkg_failed=no
77781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
77782$as_echo_n "checking for LUA... " >&6; }
77783
77784if test -n "$LUA_CFLAGS"; then
77785    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
77786 elif test -n "$PKG_CONFIG"; then
77787    if test -n "$PKG_CONFIG" && \
77788    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
77789  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
77790  ac_status=$?
77791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77792  test $ac_status = 0; }; then
77793  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
77794		      test "x$?" != "x0" && pkg_failed=yes
77795else
77796  pkg_failed=yes
77797fi
77798 else
77799    pkg_failed=untried
77800fi
77801if test -n "$LUA_LIBS"; then
77802    pkg_cv_LUA_LIBS="$LUA_LIBS"
77803 elif test -n "$PKG_CONFIG"; then
77804    if test -n "$PKG_CONFIG" && \
77805    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
77806  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
77807  ac_status=$?
77808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77809  test $ac_status = 0; }; then
77810  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
77811		      test "x$?" != "x0" && pkg_failed=yes
77812else
77813  pkg_failed=yes
77814fi
77815 else
77816    pkg_failed=untried
77817fi
77818
77819
77820
77821if test $pkg_failed = yes; then
77822   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77823$as_echo "no" >&6; }
77824
77825if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
77826        _pkg_short_errors_supported=yes
77827else
77828        _pkg_short_errors_supported=no
77829fi
77830        if test $_pkg_short_errors_supported = yes; then
77831	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
77832        else
77833	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
77834        fi
77835	# Put the nasty error message in config.log where it belongs
77836	echo "$LUA_PKG_ERRORS" >&5
77837
77838	with_liblua="no (pkg-config cannot find liblua)"
77839
77840elif test $pkg_failed = untried; then
77841     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77842$as_echo "no" >&6; }
77843	with_liblua="no (pkg-config cannot find liblua)"
77844
77845else
77846	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
77847	LUA_LIBS=$pkg_cv_LUA_LIBS
77848        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
77849$as_echo "yes" >&6; }
77850	with_liblua="yes"
77851fi
77852
77853
77854else
77855	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
77856	LUA_LIBS=$pkg_cv_LUA_LIBS
77857        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
77858$as_echo "yes" >&6; }
77859	with_liblua="yes"
77860fi
77861
77862
77863elif test $pkg_failed = untried; then
77864     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77865$as_echo "no" >&6; }
77866
77867
77868pkg_failed=no
77869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
77870$as_echo_n "checking for LUA... " >&6; }
77871
77872if test -n "$LUA_CFLAGS"; then
77873    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
77874 elif test -n "$PKG_CONFIG"; then
77875    if test -n "$PKG_CONFIG" && \
77876    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
77877  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
77878  ac_status=$?
77879  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77880  test $ac_status = 0; }; then
77881  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
77882		      test "x$?" != "x0" && pkg_failed=yes
77883else
77884  pkg_failed=yes
77885fi
77886 else
77887    pkg_failed=untried
77888fi
77889if test -n "$LUA_LIBS"; then
77890    pkg_cv_LUA_LIBS="$LUA_LIBS"
77891 elif test -n "$PKG_CONFIG"; then
77892    if test -n "$PKG_CONFIG" && \
77893    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
77894  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
77895  ac_status=$?
77896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77897  test $ac_status = 0; }; then
77898  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
77899		      test "x$?" != "x0" && pkg_failed=yes
77900else
77901  pkg_failed=yes
77902fi
77903 else
77904    pkg_failed=untried
77905fi
77906
77907
77908
77909if test $pkg_failed = yes; then
77910   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77911$as_echo "no" >&6; }
77912
77913if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
77914        _pkg_short_errors_supported=yes
77915else
77916        _pkg_short_errors_supported=no
77917fi
77918        if test $_pkg_short_errors_supported = yes; then
77919	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
77920        else
77921	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
77922        fi
77923	# Put the nasty error message in config.log where it belongs
77924	echo "$LUA_PKG_ERRORS" >&5
77925
77926
77927
77928pkg_failed=no
77929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
77930$as_echo_n "checking for LUA... " >&6; }
77931
77932if test -n "$LUA_CFLAGS"; then
77933    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
77934 elif test -n "$PKG_CONFIG"; then
77935    if test -n "$PKG_CONFIG" && \
77936    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
77937  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
77938  ac_status=$?
77939  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77940  test $ac_status = 0; }; then
77941  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
77942		      test "x$?" != "x0" && pkg_failed=yes
77943else
77944  pkg_failed=yes
77945fi
77946 else
77947    pkg_failed=untried
77948fi
77949if test -n "$LUA_LIBS"; then
77950    pkg_cv_LUA_LIBS="$LUA_LIBS"
77951 elif test -n "$PKG_CONFIG"; then
77952    if test -n "$PKG_CONFIG" && \
77953    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
77954  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
77955  ac_status=$?
77956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77957  test $ac_status = 0; }; then
77958  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
77959		      test "x$?" != "x0" && pkg_failed=yes
77960else
77961  pkg_failed=yes
77962fi
77963 else
77964    pkg_failed=untried
77965fi
77966
77967
77968
77969if test $pkg_failed = yes; then
77970   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77971$as_echo "no" >&6; }
77972
77973if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
77974        _pkg_short_errors_supported=yes
77975else
77976        _pkg_short_errors_supported=no
77977fi
77978        if test $_pkg_short_errors_supported = yes; then
77979	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
77980        else
77981	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
77982        fi
77983	# Put the nasty error message in config.log where it belongs
77984	echo "$LUA_PKG_ERRORS" >&5
77985
77986	with_liblua="no (pkg-config cannot find liblua)"
77987
77988elif test $pkg_failed = untried; then
77989     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77990$as_echo "no" >&6; }
77991	with_liblua="no (pkg-config cannot find liblua)"
77992
77993else
77994	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
77995	LUA_LIBS=$pkg_cv_LUA_LIBS
77996        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
77997$as_echo "yes" >&6; }
77998	with_liblua="yes"
77999fi
78000
78001
78002elif test $pkg_failed = untried; then
78003     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78004$as_echo "no" >&6; }
78005
78006
78007pkg_failed=no
78008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
78009$as_echo_n "checking for LUA... " >&6; }
78010
78011if test -n "$LUA_CFLAGS"; then
78012    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
78013 elif test -n "$PKG_CONFIG"; then
78014    if test -n "$PKG_CONFIG" && \
78015    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
78016  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
78017  ac_status=$?
78018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78019  test $ac_status = 0; }; then
78020  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
78021		      test "x$?" != "x0" && pkg_failed=yes
78022else
78023  pkg_failed=yes
78024fi
78025 else
78026    pkg_failed=untried
78027fi
78028if test -n "$LUA_LIBS"; then
78029    pkg_cv_LUA_LIBS="$LUA_LIBS"
78030 elif test -n "$PKG_CONFIG"; then
78031    if test -n "$PKG_CONFIG" && \
78032    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
78033  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
78034  ac_status=$?
78035  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78036  test $ac_status = 0; }; then
78037  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
78038		      test "x$?" != "x0" && pkg_failed=yes
78039else
78040  pkg_failed=yes
78041fi
78042 else
78043    pkg_failed=untried
78044fi
78045
78046
78047
78048if test $pkg_failed = yes; then
78049   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78050$as_echo "no" >&6; }
78051
78052if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
78053        _pkg_short_errors_supported=yes
78054else
78055        _pkg_short_errors_supported=no
78056fi
78057        if test $_pkg_short_errors_supported = yes; then
78058	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
78059        else
78060	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
78061        fi
78062	# Put the nasty error message in config.log where it belongs
78063	echo "$LUA_PKG_ERRORS" >&5
78064
78065	with_liblua="no (pkg-config cannot find liblua)"
78066
78067elif test $pkg_failed = untried; then
78068     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78069$as_echo "no" >&6; }
78070	with_liblua="no (pkg-config cannot find liblua)"
78071
78072else
78073	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
78074	LUA_LIBS=$pkg_cv_LUA_LIBS
78075        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
78076$as_echo "yes" >&6; }
78077	with_liblua="yes"
78078fi
78079
78080
78081else
78082	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
78083	LUA_LIBS=$pkg_cv_LUA_LIBS
78084        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
78085$as_echo "yes" >&6; }
78086	with_liblua="yes"
78087fi
78088
78089
78090else
78091	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
78092	LUA_LIBS=$pkg_cv_LUA_LIBS
78093        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
78094$as_echo "yes" >&6; }
78095	with_liblua="yes"
78096fi
78097
78098
78099else
78100	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
78101	LUA_LIBS=$pkg_cv_LUA_LIBS
78102        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
78103$as_echo "yes" >&6; }
78104	with_liblua="yes"
78105fi
78106
78107
78108else
78109	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
78110	LUA_LIBS=$pkg_cv_LUA_LIBS
78111        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
78112$as_echo "yes" >&6; }
78113	with_liblua="yes"
78114fi
78115
78116
78117else
78118	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
78119	LUA_LIBS=$pkg_cv_LUA_LIBS
78120        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
78121$as_echo "yes" >&6; }
78122	with_liblua="yes"
78123fi
78124
78125
78126elif test $pkg_failed = untried; then
78127     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78128$as_echo "no" >&6; }
78129
78130
78131pkg_failed=no
78132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
78133$as_echo_n "checking for LUA... " >&6; }
78134
78135if test -n "$LUA_CFLAGS"; then
78136    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
78137 elif test -n "$PKG_CONFIG"; then
78138    if test -n "$PKG_CONFIG" && \
78139    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
78140  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
78141  ac_status=$?
78142  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78143  test $ac_status = 0; }; then
78144  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.2" 2>/dev/null`
78145		      test "x$?" != "x0" && pkg_failed=yes
78146else
78147  pkg_failed=yes
78148fi
78149 else
78150    pkg_failed=untried
78151fi
78152if test -n "$LUA_LIBS"; then
78153    pkg_cv_LUA_LIBS="$LUA_LIBS"
78154 elif test -n "$PKG_CONFIG"; then
78155    if test -n "$PKG_CONFIG" && \
78156    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
78157  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
78158  ac_status=$?
78159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78160  test $ac_status = 0; }; then
78161  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.2" 2>/dev/null`
78162		      test "x$?" != "x0" && pkg_failed=yes
78163else
78164  pkg_failed=yes
78165fi
78166 else
78167    pkg_failed=untried
78168fi
78169
78170
78171
78172if test $pkg_failed = yes; then
78173   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78174$as_echo "no" >&6; }
78175
78176if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
78177        _pkg_short_errors_supported=yes
78178else
78179        _pkg_short_errors_supported=no
78180fi
78181        if test $_pkg_short_errors_supported = yes; then
78182	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.2" 2>&1`
78183        else
78184	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.2" 2>&1`
78185        fi
78186	# Put the nasty error message in config.log where it belongs
78187	echo "$LUA_PKG_ERRORS" >&5
78188
78189
78190
78191pkg_failed=no
78192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
78193$as_echo_n "checking for LUA... " >&6; }
78194
78195if test -n "$LUA_CFLAGS"; then
78196    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
78197 elif test -n "$PKG_CONFIG"; then
78198    if test -n "$PKG_CONFIG" && \
78199    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
78200  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
78201  ac_status=$?
78202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78203  test $ac_status = 0; }; then
78204  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
78205		      test "x$?" != "x0" && pkg_failed=yes
78206else
78207  pkg_failed=yes
78208fi
78209 else
78210    pkg_failed=untried
78211fi
78212if test -n "$LUA_LIBS"; then
78213    pkg_cv_LUA_LIBS="$LUA_LIBS"
78214 elif test -n "$PKG_CONFIG"; then
78215    if test -n "$PKG_CONFIG" && \
78216    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
78217  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
78218  ac_status=$?
78219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78220  test $ac_status = 0; }; then
78221  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
78222		      test "x$?" != "x0" && pkg_failed=yes
78223else
78224  pkg_failed=yes
78225fi
78226 else
78227    pkg_failed=untried
78228fi
78229
78230
78231
78232if test $pkg_failed = yes; then
78233   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78234$as_echo "no" >&6; }
78235
78236if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
78237        _pkg_short_errors_supported=yes
78238else
78239        _pkg_short_errors_supported=no
78240fi
78241        if test $_pkg_short_errors_supported = yes; then
78242	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
78243        else
78244	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
78245        fi
78246	# Put the nasty error message in config.log where it belongs
78247	echo "$LUA_PKG_ERRORS" >&5
78248
78249
78250
78251pkg_failed=no
78252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
78253$as_echo_n "checking for LUA... " >&6; }
78254
78255if test -n "$LUA_CFLAGS"; then
78256    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
78257 elif test -n "$PKG_CONFIG"; then
78258    if test -n "$PKG_CONFIG" && \
78259    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
78260  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
78261  ac_status=$?
78262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78263  test $ac_status = 0; }; then
78264  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
78265		      test "x$?" != "x0" && pkg_failed=yes
78266else
78267  pkg_failed=yes
78268fi
78269 else
78270    pkg_failed=untried
78271fi
78272if test -n "$LUA_LIBS"; then
78273    pkg_cv_LUA_LIBS="$LUA_LIBS"
78274 elif test -n "$PKG_CONFIG"; then
78275    if test -n "$PKG_CONFIG" && \
78276    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
78277  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
78278  ac_status=$?
78279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78280  test $ac_status = 0; }; then
78281  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
78282		      test "x$?" != "x0" && pkg_failed=yes
78283else
78284  pkg_failed=yes
78285fi
78286 else
78287    pkg_failed=untried
78288fi
78289
78290
78291
78292if test $pkg_failed = yes; then
78293   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78294$as_echo "no" >&6; }
78295
78296if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
78297        _pkg_short_errors_supported=yes
78298else
78299        _pkg_short_errors_supported=no
78300fi
78301        if test $_pkg_short_errors_supported = yes; then
78302	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
78303        else
78304	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
78305        fi
78306	# Put the nasty error message in config.log where it belongs
78307	echo "$LUA_PKG_ERRORS" >&5
78308
78309
78310
78311pkg_failed=no
78312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
78313$as_echo_n "checking for LUA... " >&6; }
78314
78315if test -n "$LUA_CFLAGS"; then
78316    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
78317 elif test -n "$PKG_CONFIG"; then
78318    if test -n "$PKG_CONFIG" && \
78319    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
78320  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
78321  ac_status=$?
78322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78323  test $ac_status = 0; }; then
78324  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
78325		      test "x$?" != "x0" && pkg_failed=yes
78326else
78327  pkg_failed=yes
78328fi
78329 else
78330    pkg_failed=untried
78331fi
78332if test -n "$LUA_LIBS"; then
78333    pkg_cv_LUA_LIBS="$LUA_LIBS"
78334 elif test -n "$PKG_CONFIG"; then
78335    if test -n "$PKG_CONFIG" && \
78336    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
78337  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
78338  ac_status=$?
78339  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78340  test $ac_status = 0; }; then
78341  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
78342		      test "x$?" != "x0" && pkg_failed=yes
78343else
78344  pkg_failed=yes
78345fi
78346 else
78347    pkg_failed=untried
78348fi
78349
78350
78351
78352if test $pkg_failed = yes; then
78353   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78354$as_echo "no" >&6; }
78355
78356if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
78357        _pkg_short_errors_supported=yes
78358else
78359        _pkg_short_errors_supported=no
78360fi
78361        if test $_pkg_short_errors_supported = yes; then
78362	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
78363        else
78364	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
78365        fi
78366	# Put the nasty error message in config.log where it belongs
78367	echo "$LUA_PKG_ERRORS" >&5
78368
78369
78370
78371pkg_failed=no
78372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
78373$as_echo_n "checking for LUA... " >&6; }
78374
78375if test -n "$LUA_CFLAGS"; then
78376    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
78377 elif test -n "$PKG_CONFIG"; then
78378    if test -n "$PKG_CONFIG" && \
78379    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
78380  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
78381  ac_status=$?
78382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78383  test $ac_status = 0; }; then
78384  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
78385		      test "x$?" != "x0" && pkg_failed=yes
78386else
78387  pkg_failed=yes
78388fi
78389 else
78390    pkg_failed=untried
78391fi
78392if test -n "$LUA_LIBS"; then
78393    pkg_cv_LUA_LIBS="$LUA_LIBS"
78394 elif test -n "$PKG_CONFIG"; then
78395    if test -n "$PKG_CONFIG" && \
78396    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
78397  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
78398  ac_status=$?
78399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78400  test $ac_status = 0; }; then
78401  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
78402		      test "x$?" != "x0" && pkg_failed=yes
78403else
78404  pkg_failed=yes
78405fi
78406 else
78407    pkg_failed=untried
78408fi
78409
78410
78411
78412if test $pkg_failed = yes; then
78413   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78414$as_echo "no" >&6; }
78415
78416if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
78417        _pkg_short_errors_supported=yes
78418else
78419        _pkg_short_errors_supported=no
78420fi
78421        if test $_pkg_short_errors_supported = yes; then
78422	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
78423        else
78424	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
78425        fi
78426	# Put the nasty error message in config.log where it belongs
78427	echo "$LUA_PKG_ERRORS" >&5
78428
78429
78430
78431pkg_failed=no
78432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
78433$as_echo_n "checking for LUA... " >&6; }
78434
78435if test -n "$LUA_CFLAGS"; then
78436    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
78437 elif test -n "$PKG_CONFIG"; then
78438    if test -n "$PKG_CONFIG" && \
78439    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
78440  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
78441  ac_status=$?
78442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78443  test $ac_status = 0; }; then
78444  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
78445		      test "x$?" != "x0" && pkg_failed=yes
78446else
78447  pkg_failed=yes
78448fi
78449 else
78450    pkg_failed=untried
78451fi
78452if test -n "$LUA_LIBS"; then
78453    pkg_cv_LUA_LIBS="$LUA_LIBS"
78454 elif test -n "$PKG_CONFIG"; then
78455    if test -n "$PKG_CONFIG" && \
78456    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
78457  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
78458  ac_status=$?
78459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78460  test $ac_status = 0; }; then
78461  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
78462		      test "x$?" != "x0" && pkg_failed=yes
78463else
78464  pkg_failed=yes
78465fi
78466 else
78467    pkg_failed=untried
78468fi
78469
78470
78471
78472if test $pkg_failed = yes; then
78473   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78474$as_echo "no" >&6; }
78475
78476if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
78477        _pkg_short_errors_supported=yes
78478else
78479        _pkg_short_errors_supported=no
78480fi
78481        if test $_pkg_short_errors_supported = yes; then
78482	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
78483        else
78484	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
78485        fi
78486	# Put the nasty error message in config.log where it belongs
78487	echo "$LUA_PKG_ERRORS" >&5
78488
78489	with_liblua="no (pkg-config cannot find liblua)"
78490
78491elif test $pkg_failed = untried; then
78492     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78493$as_echo "no" >&6; }
78494	with_liblua="no (pkg-config cannot find liblua)"
78495
78496else
78497	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
78498	LUA_LIBS=$pkg_cv_LUA_LIBS
78499        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
78500$as_echo "yes" >&6; }
78501	with_liblua="yes"
78502fi
78503
78504
78505elif test $pkg_failed = untried; then
78506     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78507$as_echo "no" >&6; }
78508
78509
78510pkg_failed=no
78511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
78512$as_echo_n "checking for LUA... " >&6; }
78513
78514if test -n "$LUA_CFLAGS"; then
78515    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
78516 elif test -n "$PKG_CONFIG"; then
78517    if test -n "$PKG_CONFIG" && \
78518    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
78519  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
78520  ac_status=$?
78521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78522  test $ac_status = 0; }; then
78523  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
78524		      test "x$?" != "x0" && pkg_failed=yes
78525else
78526  pkg_failed=yes
78527fi
78528 else
78529    pkg_failed=untried
78530fi
78531if test -n "$LUA_LIBS"; then
78532    pkg_cv_LUA_LIBS="$LUA_LIBS"
78533 elif test -n "$PKG_CONFIG"; then
78534    if test -n "$PKG_CONFIG" && \
78535    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
78536  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
78537  ac_status=$?
78538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78539  test $ac_status = 0; }; then
78540  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
78541		      test "x$?" != "x0" && pkg_failed=yes
78542else
78543  pkg_failed=yes
78544fi
78545 else
78546    pkg_failed=untried
78547fi
78548
78549
78550
78551if test $pkg_failed = yes; then
78552   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78553$as_echo "no" >&6; }
78554
78555if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
78556        _pkg_short_errors_supported=yes
78557else
78558        _pkg_short_errors_supported=no
78559fi
78560        if test $_pkg_short_errors_supported = yes; then
78561	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
78562        else
78563	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
78564        fi
78565	# Put the nasty error message in config.log where it belongs
78566	echo "$LUA_PKG_ERRORS" >&5
78567
78568	with_liblua="no (pkg-config cannot find liblua)"
78569
78570elif test $pkg_failed = untried; then
78571     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78572$as_echo "no" >&6; }
78573	with_liblua="no (pkg-config cannot find liblua)"
78574
78575else
78576	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
78577	LUA_LIBS=$pkg_cv_LUA_LIBS
78578        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
78579$as_echo "yes" >&6; }
78580	with_liblua="yes"
78581fi
78582
78583
78584else
78585	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
78586	LUA_LIBS=$pkg_cv_LUA_LIBS
78587        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
78588$as_echo "yes" >&6; }
78589	with_liblua="yes"
78590fi
78591
78592
78593elif test $pkg_failed = untried; then
78594     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78595$as_echo "no" >&6; }
78596
78597
78598pkg_failed=no
78599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
78600$as_echo_n "checking for LUA... " >&6; }
78601
78602if test -n "$LUA_CFLAGS"; then
78603    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
78604 elif test -n "$PKG_CONFIG"; then
78605    if test -n "$PKG_CONFIG" && \
78606    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
78607  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
78608  ac_status=$?
78609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78610  test $ac_status = 0; }; then
78611  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
78612		      test "x$?" != "x0" && pkg_failed=yes
78613else
78614  pkg_failed=yes
78615fi
78616 else
78617    pkg_failed=untried
78618fi
78619if test -n "$LUA_LIBS"; then
78620    pkg_cv_LUA_LIBS="$LUA_LIBS"
78621 elif test -n "$PKG_CONFIG"; then
78622    if test -n "$PKG_CONFIG" && \
78623    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
78624  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
78625  ac_status=$?
78626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78627  test $ac_status = 0; }; then
78628  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
78629		      test "x$?" != "x0" && pkg_failed=yes
78630else
78631  pkg_failed=yes
78632fi
78633 else
78634    pkg_failed=untried
78635fi
78636
78637
78638
78639if test $pkg_failed = yes; then
78640   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78641$as_echo "no" >&6; }
78642
78643if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
78644        _pkg_short_errors_supported=yes
78645else
78646        _pkg_short_errors_supported=no
78647fi
78648        if test $_pkg_short_errors_supported = yes; then
78649	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
78650        else
78651	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
78652        fi
78653	# Put the nasty error message in config.log where it belongs
78654	echo "$LUA_PKG_ERRORS" >&5
78655
78656
78657
78658pkg_failed=no
78659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
78660$as_echo_n "checking for LUA... " >&6; }
78661
78662if test -n "$LUA_CFLAGS"; then
78663    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
78664 elif test -n "$PKG_CONFIG"; then
78665    if test -n "$PKG_CONFIG" && \
78666    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
78667  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
78668  ac_status=$?
78669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78670  test $ac_status = 0; }; then
78671  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
78672		      test "x$?" != "x0" && pkg_failed=yes
78673else
78674  pkg_failed=yes
78675fi
78676 else
78677    pkg_failed=untried
78678fi
78679if test -n "$LUA_LIBS"; then
78680    pkg_cv_LUA_LIBS="$LUA_LIBS"
78681 elif test -n "$PKG_CONFIG"; then
78682    if test -n "$PKG_CONFIG" && \
78683    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
78684  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
78685  ac_status=$?
78686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78687  test $ac_status = 0; }; then
78688  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
78689		      test "x$?" != "x0" && pkg_failed=yes
78690else
78691  pkg_failed=yes
78692fi
78693 else
78694    pkg_failed=untried
78695fi
78696
78697
78698
78699if test $pkg_failed = yes; then
78700   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78701$as_echo "no" >&6; }
78702
78703if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
78704        _pkg_short_errors_supported=yes
78705else
78706        _pkg_short_errors_supported=no
78707fi
78708        if test $_pkg_short_errors_supported = yes; then
78709	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
78710        else
78711	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
78712        fi
78713	# Put the nasty error message in config.log where it belongs
78714	echo "$LUA_PKG_ERRORS" >&5
78715
78716	with_liblua="no (pkg-config cannot find liblua)"
78717
78718elif test $pkg_failed = untried; then
78719     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78720$as_echo "no" >&6; }
78721	with_liblua="no (pkg-config cannot find liblua)"
78722
78723else
78724	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
78725	LUA_LIBS=$pkg_cv_LUA_LIBS
78726        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
78727$as_echo "yes" >&6; }
78728	with_liblua="yes"
78729fi
78730
78731
78732elif test $pkg_failed = untried; then
78733     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78734$as_echo "no" >&6; }
78735
78736
78737pkg_failed=no
78738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
78739$as_echo_n "checking for LUA... " >&6; }
78740
78741if test -n "$LUA_CFLAGS"; then
78742    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
78743 elif test -n "$PKG_CONFIG"; then
78744    if test -n "$PKG_CONFIG" && \
78745    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
78746  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
78747  ac_status=$?
78748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78749  test $ac_status = 0; }; then
78750  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
78751		      test "x$?" != "x0" && pkg_failed=yes
78752else
78753  pkg_failed=yes
78754fi
78755 else
78756    pkg_failed=untried
78757fi
78758if test -n "$LUA_LIBS"; then
78759    pkg_cv_LUA_LIBS="$LUA_LIBS"
78760 elif test -n "$PKG_CONFIG"; then
78761    if test -n "$PKG_CONFIG" && \
78762    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
78763  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
78764  ac_status=$?
78765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78766  test $ac_status = 0; }; then
78767  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
78768		      test "x$?" != "x0" && pkg_failed=yes
78769else
78770  pkg_failed=yes
78771fi
78772 else
78773    pkg_failed=untried
78774fi
78775
78776
78777
78778if test $pkg_failed = yes; then
78779   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78780$as_echo "no" >&6; }
78781
78782if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
78783        _pkg_short_errors_supported=yes
78784else
78785        _pkg_short_errors_supported=no
78786fi
78787        if test $_pkg_short_errors_supported = yes; then
78788	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
78789        else
78790	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
78791        fi
78792	# Put the nasty error message in config.log where it belongs
78793	echo "$LUA_PKG_ERRORS" >&5
78794
78795	with_liblua="no (pkg-config cannot find liblua)"
78796
78797elif test $pkg_failed = untried; then
78798     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78799$as_echo "no" >&6; }
78800	with_liblua="no (pkg-config cannot find liblua)"
78801
78802else
78803	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
78804	LUA_LIBS=$pkg_cv_LUA_LIBS
78805        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
78806$as_echo "yes" >&6; }
78807	with_liblua="yes"
78808fi
78809
78810
78811else
78812	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
78813	LUA_LIBS=$pkg_cv_LUA_LIBS
78814        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
78815$as_echo "yes" >&6; }
78816	with_liblua="yes"
78817fi
78818
78819
78820else
78821	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
78822	LUA_LIBS=$pkg_cv_LUA_LIBS
78823        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
78824$as_echo "yes" >&6; }
78825	with_liblua="yes"
78826fi
78827
78828
78829elif test $pkg_failed = untried; then
78830     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78831$as_echo "no" >&6; }
78832
78833
78834pkg_failed=no
78835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
78836$as_echo_n "checking for LUA... " >&6; }
78837
78838if test -n "$LUA_CFLAGS"; then
78839    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
78840 elif test -n "$PKG_CONFIG"; then
78841    if test -n "$PKG_CONFIG" && \
78842    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
78843  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
78844  ac_status=$?
78845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78846  test $ac_status = 0; }; then
78847  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
78848		      test "x$?" != "x0" && pkg_failed=yes
78849else
78850  pkg_failed=yes
78851fi
78852 else
78853    pkg_failed=untried
78854fi
78855if test -n "$LUA_LIBS"; then
78856    pkg_cv_LUA_LIBS="$LUA_LIBS"
78857 elif test -n "$PKG_CONFIG"; then
78858    if test -n "$PKG_CONFIG" && \
78859    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
78860  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
78861  ac_status=$?
78862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78863  test $ac_status = 0; }; then
78864  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
78865		      test "x$?" != "x0" && pkg_failed=yes
78866else
78867  pkg_failed=yes
78868fi
78869 else
78870    pkg_failed=untried
78871fi
78872
78873
78874
78875if test $pkg_failed = yes; then
78876   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78877$as_echo "no" >&6; }
78878
78879if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
78880        _pkg_short_errors_supported=yes
78881else
78882        _pkg_short_errors_supported=no
78883fi
78884        if test $_pkg_short_errors_supported = yes; then
78885	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
78886        else
78887	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
78888        fi
78889	# Put the nasty error message in config.log where it belongs
78890	echo "$LUA_PKG_ERRORS" >&5
78891
78892
78893
78894pkg_failed=no
78895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
78896$as_echo_n "checking for LUA... " >&6; }
78897
78898if test -n "$LUA_CFLAGS"; then
78899    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
78900 elif test -n "$PKG_CONFIG"; then
78901    if test -n "$PKG_CONFIG" && \
78902    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
78903  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
78904  ac_status=$?
78905  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78906  test $ac_status = 0; }; then
78907  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
78908		      test "x$?" != "x0" && pkg_failed=yes
78909else
78910  pkg_failed=yes
78911fi
78912 else
78913    pkg_failed=untried
78914fi
78915if test -n "$LUA_LIBS"; then
78916    pkg_cv_LUA_LIBS="$LUA_LIBS"
78917 elif test -n "$PKG_CONFIG"; then
78918    if test -n "$PKG_CONFIG" && \
78919    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
78920  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
78921  ac_status=$?
78922  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78923  test $ac_status = 0; }; then
78924  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
78925		      test "x$?" != "x0" && pkg_failed=yes
78926else
78927  pkg_failed=yes
78928fi
78929 else
78930    pkg_failed=untried
78931fi
78932
78933
78934
78935if test $pkg_failed = yes; then
78936   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78937$as_echo "no" >&6; }
78938
78939if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
78940        _pkg_short_errors_supported=yes
78941else
78942        _pkg_short_errors_supported=no
78943fi
78944        if test $_pkg_short_errors_supported = yes; then
78945	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
78946        else
78947	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
78948        fi
78949	# Put the nasty error message in config.log where it belongs
78950	echo "$LUA_PKG_ERRORS" >&5
78951
78952
78953
78954pkg_failed=no
78955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
78956$as_echo_n "checking for LUA... " >&6; }
78957
78958if test -n "$LUA_CFLAGS"; then
78959    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
78960 elif test -n "$PKG_CONFIG"; then
78961    if test -n "$PKG_CONFIG" && \
78962    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
78963  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
78964  ac_status=$?
78965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78966  test $ac_status = 0; }; then
78967  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
78968		      test "x$?" != "x0" && pkg_failed=yes
78969else
78970  pkg_failed=yes
78971fi
78972 else
78973    pkg_failed=untried
78974fi
78975if test -n "$LUA_LIBS"; then
78976    pkg_cv_LUA_LIBS="$LUA_LIBS"
78977 elif test -n "$PKG_CONFIG"; then
78978    if test -n "$PKG_CONFIG" && \
78979    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
78980  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
78981  ac_status=$?
78982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78983  test $ac_status = 0; }; then
78984  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
78985		      test "x$?" != "x0" && pkg_failed=yes
78986else
78987  pkg_failed=yes
78988fi
78989 else
78990    pkg_failed=untried
78991fi
78992
78993
78994
78995if test $pkg_failed = yes; then
78996   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78997$as_echo "no" >&6; }
78998
78999if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
79000        _pkg_short_errors_supported=yes
79001else
79002        _pkg_short_errors_supported=no
79003fi
79004        if test $_pkg_short_errors_supported = yes; then
79005	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
79006        else
79007	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
79008        fi
79009	# Put the nasty error message in config.log where it belongs
79010	echo "$LUA_PKG_ERRORS" >&5
79011
79012	with_liblua="no (pkg-config cannot find liblua)"
79013
79014elif test $pkg_failed = untried; then
79015     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79016$as_echo "no" >&6; }
79017	with_liblua="no (pkg-config cannot find liblua)"
79018
79019else
79020	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
79021	LUA_LIBS=$pkg_cv_LUA_LIBS
79022        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79023$as_echo "yes" >&6; }
79024	with_liblua="yes"
79025fi
79026
79027
79028elif test $pkg_failed = untried; then
79029     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79030$as_echo "no" >&6; }
79031
79032
79033pkg_failed=no
79034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
79035$as_echo_n "checking for LUA... " >&6; }
79036
79037if test -n "$LUA_CFLAGS"; then
79038    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
79039 elif test -n "$PKG_CONFIG"; then
79040    if test -n "$PKG_CONFIG" && \
79041    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
79042  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
79043  ac_status=$?
79044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79045  test $ac_status = 0; }; then
79046  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
79047		      test "x$?" != "x0" && pkg_failed=yes
79048else
79049  pkg_failed=yes
79050fi
79051 else
79052    pkg_failed=untried
79053fi
79054if test -n "$LUA_LIBS"; then
79055    pkg_cv_LUA_LIBS="$LUA_LIBS"
79056 elif test -n "$PKG_CONFIG"; then
79057    if test -n "$PKG_CONFIG" && \
79058    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
79059  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
79060  ac_status=$?
79061  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79062  test $ac_status = 0; }; then
79063  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
79064		      test "x$?" != "x0" && pkg_failed=yes
79065else
79066  pkg_failed=yes
79067fi
79068 else
79069    pkg_failed=untried
79070fi
79071
79072
79073
79074if test $pkg_failed = yes; then
79075   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79076$as_echo "no" >&6; }
79077
79078if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
79079        _pkg_short_errors_supported=yes
79080else
79081        _pkg_short_errors_supported=no
79082fi
79083        if test $_pkg_short_errors_supported = yes; then
79084	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
79085        else
79086	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
79087        fi
79088	# Put the nasty error message in config.log where it belongs
79089	echo "$LUA_PKG_ERRORS" >&5
79090
79091	with_liblua="no (pkg-config cannot find liblua)"
79092
79093elif test $pkg_failed = untried; then
79094     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79095$as_echo "no" >&6; }
79096	with_liblua="no (pkg-config cannot find liblua)"
79097
79098else
79099	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
79100	LUA_LIBS=$pkg_cv_LUA_LIBS
79101        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79102$as_echo "yes" >&6; }
79103	with_liblua="yes"
79104fi
79105
79106
79107else
79108	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
79109	LUA_LIBS=$pkg_cv_LUA_LIBS
79110        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79111$as_echo "yes" >&6; }
79112	with_liblua="yes"
79113fi
79114
79115
79116elif test $pkg_failed = untried; then
79117     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79118$as_echo "no" >&6; }
79119
79120
79121pkg_failed=no
79122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
79123$as_echo_n "checking for LUA... " >&6; }
79124
79125if test -n "$LUA_CFLAGS"; then
79126    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
79127 elif test -n "$PKG_CONFIG"; then
79128    if test -n "$PKG_CONFIG" && \
79129    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
79130  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
79131  ac_status=$?
79132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79133  test $ac_status = 0; }; then
79134  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
79135		      test "x$?" != "x0" && pkg_failed=yes
79136else
79137  pkg_failed=yes
79138fi
79139 else
79140    pkg_failed=untried
79141fi
79142if test -n "$LUA_LIBS"; then
79143    pkg_cv_LUA_LIBS="$LUA_LIBS"
79144 elif test -n "$PKG_CONFIG"; then
79145    if test -n "$PKG_CONFIG" && \
79146    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
79147  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
79148  ac_status=$?
79149  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79150  test $ac_status = 0; }; then
79151  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
79152		      test "x$?" != "x0" && pkg_failed=yes
79153else
79154  pkg_failed=yes
79155fi
79156 else
79157    pkg_failed=untried
79158fi
79159
79160
79161
79162if test $pkg_failed = yes; then
79163   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79164$as_echo "no" >&6; }
79165
79166if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
79167        _pkg_short_errors_supported=yes
79168else
79169        _pkg_short_errors_supported=no
79170fi
79171        if test $_pkg_short_errors_supported = yes; then
79172	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
79173        else
79174	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
79175        fi
79176	# Put the nasty error message in config.log where it belongs
79177	echo "$LUA_PKG_ERRORS" >&5
79178
79179
79180
79181pkg_failed=no
79182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
79183$as_echo_n "checking for LUA... " >&6; }
79184
79185if test -n "$LUA_CFLAGS"; then
79186    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
79187 elif test -n "$PKG_CONFIG"; then
79188    if test -n "$PKG_CONFIG" && \
79189    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
79190  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
79191  ac_status=$?
79192  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79193  test $ac_status = 0; }; then
79194  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
79195		      test "x$?" != "x0" && pkg_failed=yes
79196else
79197  pkg_failed=yes
79198fi
79199 else
79200    pkg_failed=untried
79201fi
79202if test -n "$LUA_LIBS"; then
79203    pkg_cv_LUA_LIBS="$LUA_LIBS"
79204 elif test -n "$PKG_CONFIG"; then
79205    if test -n "$PKG_CONFIG" && \
79206    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
79207  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
79208  ac_status=$?
79209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79210  test $ac_status = 0; }; then
79211  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
79212		      test "x$?" != "x0" && pkg_failed=yes
79213else
79214  pkg_failed=yes
79215fi
79216 else
79217    pkg_failed=untried
79218fi
79219
79220
79221
79222if test $pkg_failed = yes; then
79223   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79224$as_echo "no" >&6; }
79225
79226if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
79227        _pkg_short_errors_supported=yes
79228else
79229        _pkg_short_errors_supported=no
79230fi
79231        if test $_pkg_short_errors_supported = yes; then
79232	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
79233        else
79234	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
79235        fi
79236	# Put the nasty error message in config.log where it belongs
79237	echo "$LUA_PKG_ERRORS" >&5
79238
79239	with_liblua="no (pkg-config cannot find liblua)"
79240
79241elif test $pkg_failed = untried; then
79242     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79243$as_echo "no" >&6; }
79244	with_liblua="no (pkg-config cannot find liblua)"
79245
79246else
79247	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
79248	LUA_LIBS=$pkg_cv_LUA_LIBS
79249        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79250$as_echo "yes" >&6; }
79251	with_liblua="yes"
79252fi
79253
79254
79255elif test $pkg_failed = untried; then
79256     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79257$as_echo "no" >&6; }
79258
79259
79260pkg_failed=no
79261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
79262$as_echo_n "checking for LUA... " >&6; }
79263
79264if test -n "$LUA_CFLAGS"; then
79265    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
79266 elif test -n "$PKG_CONFIG"; then
79267    if test -n "$PKG_CONFIG" && \
79268    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
79269  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
79270  ac_status=$?
79271  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79272  test $ac_status = 0; }; then
79273  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
79274		      test "x$?" != "x0" && pkg_failed=yes
79275else
79276  pkg_failed=yes
79277fi
79278 else
79279    pkg_failed=untried
79280fi
79281if test -n "$LUA_LIBS"; then
79282    pkg_cv_LUA_LIBS="$LUA_LIBS"
79283 elif test -n "$PKG_CONFIG"; then
79284    if test -n "$PKG_CONFIG" && \
79285    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
79286  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
79287  ac_status=$?
79288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79289  test $ac_status = 0; }; then
79290  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
79291		      test "x$?" != "x0" && pkg_failed=yes
79292else
79293  pkg_failed=yes
79294fi
79295 else
79296    pkg_failed=untried
79297fi
79298
79299
79300
79301if test $pkg_failed = yes; then
79302   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79303$as_echo "no" >&6; }
79304
79305if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
79306        _pkg_short_errors_supported=yes
79307else
79308        _pkg_short_errors_supported=no
79309fi
79310        if test $_pkg_short_errors_supported = yes; then
79311	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
79312        else
79313	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
79314        fi
79315	# Put the nasty error message in config.log where it belongs
79316	echo "$LUA_PKG_ERRORS" >&5
79317
79318	with_liblua="no (pkg-config cannot find liblua)"
79319
79320elif test $pkg_failed = untried; then
79321     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79322$as_echo "no" >&6; }
79323	with_liblua="no (pkg-config cannot find liblua)"
79324
79325else
79326	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
79327	LUA_LIBS=$pkg_cv_LUA_LIBS
79328        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79329$as_echo "yes" >&6; }
79330	with_liblua="yes"
79331fi
79332
79333
79334else
79335	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
79336	LUA_LIBS=$pkg_cv_LUA_LIBS
79337        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79338$as_echo "yes" >&6; }
79339	with_liblua="yes"
79340fi
79341
79342
79343else
79344	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
79345	LUA_LIBS=$pkg_cv_LUA_LIBS
79346        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79347$as_echo "yes" >&6; }
79348	with_liblua="yes"
79349fi
79350
79351
79352else
79353	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
79354	LUA_LIBS=$pkg_cv_LUA_LIBS
79355        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79356$as_echo "yes" >&6; }
79357	with_liblua="yes"
79358fi
79359
79360
79361elif test $pkg_failed = untried; then
79362     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79363$as_echo "no" >&6; }
79364
79365
79366pkg_failed=no
79367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
79368$as_echo_n "checking for LUA... " >&6; }
79369
79370if test -n "$LUA_CFLAGS"; then
79371    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
79372 elif test -n "$PKG_CONFIG"; then
79373    if test -n "$PKG_CONFIG" && \
79374    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
79375  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
79376  ac_status=$?
79377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79378  test $ac_status = 0; }; then
79379  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
79380		      test "x$?" != "x0" && pkg_failed=yes
79381else
79382  pkg_failed=yes
79383fi
79384 else
79385    pkg_failed=untried
79386fi
79387if test -n "$LUA_LIBS"; then
79388    pkg_cv_LUA_LIBS="$LUA_LIBS"
79389 elif test -n "$PKG_CONFIG"; then
79390    if test -n "$PKG_CONFIG" && \
79391    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
79392  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
79393  ac_status=$?
79394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79395  test $ac_status = 0; }; then
79396  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
79397		      test "x$?" != "x0" && pkg_failed=yes
79398else
79399  pkg_failed=yes
79400fi
79401 else
79402    pkg_failed=untried
79403fi
79404
79405
79406
79407if test $pkg_failed = yes; then
79408   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79409$as_echo "no" >&6; }
79410
79411if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
79412        _pkg_short_errors_supported=yes
79413else
79414        _pkg_short_errors_supported=no
79415fi
79416        if test $_pkg_short_errors_supported = yes; then
79417	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
79418        else
79419	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
79420        fi
79421	# Put the nasty error message in config.log where it belongs
79422	echo "$LUA_PKG_ERRORS" >&5
79423
79424
79425
79426pkg_failed=no
79427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
79428$as_echo_n "checking for LUA... " >&6; }
79429
79430if test -n "$LUA_CFLAGS"; then
79431    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
79432 elif test -n "$PKG_CONFIG"; then
79433    if test -n "$PKG_CONFIG" && \
79434    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
79435  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
79436  ac_status=$?
79437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79438  test $ac_status = 0; }; then
79439  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
79440		      test "x$?" != "x0" && pkg_failed=yes
79441else
79442  pkg_failed=yes
79443fi
79444 else
79445    pkg_failed=untried
79446fi
79447if test -n "$LUA_LIBS"; then
79448    pkg_cv_LUA_LIBS="$LUA_LIBS"
79449 elif test -n "$PKG_CONFIG"; then
79450    if test -n "$PKG_CONFIG" && \
79451    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
79452  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
79453  ac_status=$?
79454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79455  test $ac_status = 0; }; then
79456  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
79457		      test "x$?" != "x0" && pkg_failed=yes
79458else
79459  pkg_failed=yes
79460fi
79461 else
79462    pkg_failed=untried
79463fi
79464
79465
79466
79467if test $pkg_failed = yes; then
79468   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79469$as_echo "no" >&6; }
79470
79471if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
79472        _pkg_short_errors_supported=yes
79473else
79474        _pkg_short_errors_supported=no
79475fi
79476        if test $_pkg_short_errors_supported = yes; then
79477	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
79478        else
79479	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
79480        fi
79481	# Put the nasty error message in config.log where it belongs
79482	echo "$LUA_PKG_ERRORS" >&5
79483
79484
79485
79486pkg_failed=no
79487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
79488$as_echo_n "checking for LUA... " >&6; }
79489
79490if test -n "$LUA_CFLAGS"; then
79491    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
79492 elif test -n "$PKG_CONFIG"; then
79493    if test -n "$PKG_CONFIG" && \
79494    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
79495  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
79496  ac_status=$?
79497  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79498  test $ac_status = 0; }; then
79499  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
79500		      test "x$?" != "x0" && pkg_failed=yes
79501else
79502  pkg_failed=yes
79503fi
79504 else
79505    pkg_failed=untried
79506fi
79507if test -n "$LUA_LIBS"; then
79508    pkg_cv_LUA_LIBS="$LUA_LIBS"
79509 elif test -n "$PKG_CONFIG"; then
79510    if test -n "$PKG_CONFIG" && \
79511    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
79512  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
79513  ac_status=$?
79514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79515  test $ac_status = 0; }; then
79516  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
79517		      test "x$?" != "x0" && pkg_failed=yes
79518else
79519  pkg_failed=yes
79520fi
79521 else
79522    pkg_failed=untried
79523fi
79524
79525
79526
79527if test $pkg_failed = yes; then
79528   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79529$as_echo "no" >&6; }
79530
79531if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
79532        _pkg_short_errors_supported=yes
79533else
79534        _pkg_short_errors_supported=no
79535fi
79536        if test $_pkg_short_errors_supported = yes; then
79537	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
79538        else
79539	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
79540        fi
79541	# Put the nasty error message in config.log where it belongs
79542	echo "$LUA_PKG_ERRORS" >&5
79543
79544
79545
79546pkg_failed=no
79547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
79548$as_echo_n "checking for LUA... " >&6; }
79549
79550if test -n "$LUA_CFLAGS"; then
79551    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
79552 elif test -n "$PKG_CONFIG"; then
79553    if test -n "$PKG_CONFIG" && \
79554    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
79555  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
79556  ac_status=$?
79557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79558  test $ac_status = 0; }; then
79559  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
79560		      test "x$?" != "x0" && pkg_failed=yes
79561else
79562  pkg_failed=yes
79563fi
79564 else
79565    pkg_failed=untried
79566fi
79567if test -n "$LUA_LIBS"; then
79568    pkg_cv_LUA_LIBS="$LUA_LIBS"
79569 elif test -n "$PKG_CONFIG"; then
79570    if test -n "$PKG_CONFIG" && \
79571    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
79572  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
79573  ac_status=$?
79574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79575  test $ac_status = 0; }; then
79576  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
79577		      test "x$?" != "x0" && pkg_failed=yes
79578else
79579  pkg_failed=yes
79580fi
79581 else
79582    pkg_failed=untried
79583fi
79584
79585
79586
79587if test $pkg_failed = yes; then
79588   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79589$as_echo "no" >&6; }
79590
79591if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
79592        _pkg_short_errors_supported=yes
79593else
79594        _pkg_short_errors_supported=no
79595fi
79596        if test $_pkg_short_errors_supported = yes; then
79597	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
79598        else
79599	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
79600        fi
79601	# Put the nasty error message in config.log where it belongs
79602	echo "$LUA_PKG_ERRORS" >&5
79603
79604	with_liblua="no (pkg-config cannot find liblua)"
79605
79606elif test $pkg_failed = untried; then
79607     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79608$as_echo "no" >&6; }
79609	with_liblua="no (pkg-config cannot find liblua)"
79610
79611else
79612	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
79613	LUA_LIBS=$pkg_cv_LUA_LIBS
79614        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79615$as_echo "yes" >&6; }
79616	with_liblua="yes"
79617fi
79618
79619
79620elif test $pkg_failed = untried; then
79621     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79622$as_echo "no" >&6; }
79623
79624
79625pkg_failed=no
79626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
79627$as_echo_n "checking for LUA... " >&6; }
79628
79629if test -n "$LUA_CFLAGS"; then
79630    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
79631 elif test -n "$PKG_CONFIG"; then
79632    if test -n "$PKG_CONFIG" && \
79633    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
79634  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
79635  ac_status=$?
79636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79637  test $ac_status = 0; }; then
79638  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
79639		      test "x$?" != "x0" && pkg_failed=yes
79640else
79641  pkg_failed=yes
79642fi
79643 else
79644    pkg_failed=untried
79645fi
79646if test -n "$LUA_LIBS"; then
79647    pkg_cv_LUA_LIBS="$LUA_LIBS"
79648 elif test -n "$PKG_CONFIG"; then
79649    if test -n "$PKG_CONFIG" && \
79650    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
79651  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
79652  ac_status=$?
79653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79654  test $ac_status = 0; }; then
79655  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
79656		      test "x$?" != "x0" && pkg_failed=yes
79657else
79658  pkg_failed=yes
79659fi
79660 else
79661    pkg_failed=untried
79662fi
79663
79664
79665
79666if test $pkg_failed = yes; then
79667   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79668$as_echo "no" >&6; }
79669
79670if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
79671        _pkg_short_errors_supported=yes
79672else
79673        _pkg_short_errors_supported=no
79674fi
79675        if test $_pkg_short_errors_supported = yes; then
79676	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
79677        else
79678	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
79679        fi
79680	# Put the nasty error message in config.log where it belongs
79681	echo "$LUA_PKG_ERRORS" >&5
79682
79683	with_liblua="no (pkg-config cannot find liblua)"
79684
79685elif test $pkg_failed = untried; then
79686     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79687$as_echo "no" >&6; }
79688	with_liblua="no (pkg-config cannot find liblua)"
79689
79690else
79691	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
79692	LUA_LIBS=$pkg_cv_LUA_LIBS
79693        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79694$as_echo "yes" >&6; }
79695	with_liblua="yes"
79696fi
79697
79698
79699else
79700	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
79701	LUA_LIBS=$pkg_cv_LUA_LIBS
79702        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79703$as_echo "yes" >&6; }
79704	with_liblua="yes"
79705fi
79706
79707
79708elif test $pkg_failed = untried; then
79709     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79710$as_echo "no" >&6; }
79711
79712
79713pkg_failed=no
79714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
79715$as_echo_n "checking for LUA... " >&6; }
79716
79717if test -n "$LUA_CFLAGS"; then
79718    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
79719 elif test -n "$PKG_CONFIG"; then
79720    if test -n "$PKG_CONFIG" && \
79721    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
79722  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
79723  ac_status=$?
79724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79725  test $ac_status = 0; }; then
79726  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
79727		      test "x$?" != "x0" && pkg_failed=yes
79728else
79729  pkg_failed=yes
79730fi
79731 else
79732    pkg_failed=untried
79733fi
79734if test -n "$LUA_LIBS"; then
79735    pkg_cv_LUA_LIBS="$LUA_LIBS"
79736 elif test -n "$PKG_CONFIG"; then
79737    if test -n "$PKG_CONFIG" && \
79738    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
79739  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
79740  ac_status=$?
79741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79742  test $ac_status = 0; }; then
79743  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
79744		      test "x$?" != "x0" && pkg_failed=yes
79745else
79746  pkg_failed=yes
79747fi
79748 else
79749    pkg_failed=untried
79750fi
79751
79752
79753
79754if test $pkg_failed = yes; then
79755   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79756$as_echo "no" >&6; }
79757
79758if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
79759        _pkg_short_errors_supported=yes
79760else
79761        _pkg_short_errors_supported=no
79762fi
79763        if test $_pkg_short_errors_supported = yes; then
79764	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
79765        else
79766	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
79767        fi
79768	# Put the nasty error message in config.log where it belongs
79769	echo "$LUA_PKG_ERRORS" >&5
79770
79771
79772
79773pkg_failed=no
79774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
79775$as_echo_n "checking for LUA... " >&6; }
79776
79777if test -n "$LUA_CFLAGS"; then
79778    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
79779 elif test -n "$PKG_CONFIG"; then
79780    if test -n "$PKG_CONFIG" && \
79781    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
79782  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
79783  ac_status=$?
79784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79785  test $ac_status = 0; }; then
79786  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
79787		      test "x$?" != "x0" && pkg_failed=yes
79788else
79789  pkg_failed=yes
79790fi
79791 else
79792    pkg_failed=untried
79793fi
79794if test -n "$LUA_LIBS"; then
79795    pkg_cv_LUA_LIBS="$LUA_LIBS"
79796 elif test -n "$PKG_CONFIG"; then
79797    if test -n "$PKG_CONFIG" && \
79798    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
79799  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
79800  ac_status=$?
79801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79802  test $ac_status = 0; }; then
79803  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
79804		      test "x$?" != "x0" && pkg_failed=yes
79805else
79806  pkg_failed=yes
79807fi
79808 else
79809    pkg_failed=untried
79810fi
79811
79812
79813
79814if test $pkg_failed = yes; then
79815   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79816$as_echo "no" >&6; }
79817
79818if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
79819        _pkg_short_errors_supported=yes
79820else
79821        _pkg_short_errors_supported=no
79822fi
79823        if test $_pkg_short_errors_supported = yes; then
79824	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
79825        else
79826	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
79827        fi
79828	# Put the nasty error message in config.log where it belongs
79829	echo "$LUA_PKG_ERRORS" >&5
79830
79831	with_liblua="no (pkg-config cannot find liblua)"
79832
79833elif test $pkg_failed = untried; then
79834     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79835$as_echo "no" >&6; }
79836	with_liblua="no (pkg-config cannot find liblua)"
79837
79838else
79839	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
79840	LUA_LIBS=$pkg_cv_LUA_LIBS
79841        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79842$as_echo "yes" >&6; }
79843	with_liblua="yes"
79844fi
79845
79846
79847elif test $pkg_failed = untried; then
79848     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79849$as_echo "no" >&6; }
79850
79851
79852pkg_failed=no
79853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
79854$as_echo_n "checking for LUA... " >&6; }
79855
79856if test -n "$LUA_CFLAGS"; then
79857    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
79858 elif test -n "$PKG_CONFIG"; then
79859    if test -n "$PKG_CONFIG" && \
79860    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
79861  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
79862  ac_status=$?
79863  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79864  test $ac_status = 0; }; then
79865  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
79866		      test "x$?" != "x0" && pkg_failed=yes
79867else
79868  pkg_failed=yes
79869fi
79870 else
79871    pkg_failed=untried
79872fi
79873if test -n "$LUA_LIBS"; then
79874    pkg_cv_LUA_LIBS="$LUA_LIBS"
79875 elif test -n "$PKG_CONFIG"; then
79876    if test -n "$PKG_CONFIG" && \
79877    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
79878  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
79879  ac_status=$?
79880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79881  test $ac_status = 0; }; then
79882  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
79883		      test "x$?" != "x0" && pkg_failed=yes
79884else
79885  pkg_failed=yes
79886fi
79887 else
79888    pkg_failed=untried
79889fi
79890
79891
79892
79893if test $pkg_failed = yes; then
79894   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79895$as_echo "no" >&6; }
79896
79897if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
79898        _pkg_short_errors_supported=yes
79899else
79900        _pkg_short_errors_supported=no
79901fi
79902        if test $_pkg_short_errors_supported = yes; then
79903	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
79904        else
79905	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
79906        fi
79907	# Put the nasty error message in config.log where it belongs
79908	echo "$LUA_PKG_ERRORS" >&5
79909
79910	with_liblua="no (pkg-config cannot find liblua)"
79911
79912elif test $pkg_failed = untried; then
79913     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79914$as_echo "no" >&6; }
79915	with_liblua="no (pkg-config cannot find liblua)"
79916
79917else
79918	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
79919	LUA_LIBS=$pkg_cv_LUA_LIBS
79920        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79921$as_echo "yes" >&6; }
79922	with_liblua="yes"
79923fi
79924
79925
79926else
79927	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
79928	LUA_LIBS=$pkg_cv_LUA_LIBS
79929        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79930$as_echo "yes" >&6; }
79931	with_liblua="yes"
79932fi
79933
79934
79935else
79936	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
79937	LUA_LIBS=$pkg_cv_LUA_LIBS
79938        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79939$as_echo "yes" >&6; }
79940	with_liblua="yes"
79941fi
79942
79943
79944elif test $pkg_failed = untried; then
79945     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79946$as_echo "no" >&6; }
79947
79948
79949pkg_failed=no
79950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
79951$as_echo_n "checking for LUA... " >&6; }
79952
79953if test -n "$LUA_CFLAGS"; then
79954    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
79955 elif test -n "$PKG_CONFIG"; then
79956    if test -n "$PKG_CONFIG" && \
79957    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
79958  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
79959  ac_status=$?
79960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79961  test $ac_status = 0; }; then
79962  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
79963		      test "x$?" != "x0" && pkg_failed=yes
79964else
79965  pkg_failed=yes
79966fi
79967 else
79968    pkg_failed=untried
79969fi
79970if test -n "$LUA_LIBS"; then
79971    pkg_cv_LUA_LIBS="$LUA_LIBS"
79972 elif test -n "$PKG_CONFIG"; then
79973    if test -n "$PKG_CONFIG" && \
79974    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
79975  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
79976  ac_status=$?
79977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79978  test $ac_status = 0; }; then
79979  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
79980		      test "x$?" != "x0" && pkg_failed=yes
79981else
79982  pkg_failed=yes
79983fi
79984 else
79985    pkg_failed=untried
79986fi
79987
79988
79989
79990if test $pkg_failed = yes; then
79991   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79992$as_echo "no" >&6; }
79993
79994if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
79995        _pkg_short_errors_supported=yes
79996else
79997        _pkg_short_errors_supported=no
79998fi
79999        if test $_pkg_short_errors_supported = yes; then
80000	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
80001        else
80002	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
80003        fi
80004	# Put the nasty error message in config.log where it belongs
80005	echo "$LUA_PKG_ERRORS" >&5
80006
80007
80008
80009pkg_failed=no
80010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
80011$as_echo_n "checking for LUA... " >&6; }
80012
80013if test -n "$LUA_CFLAGS"; then
80014    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
80015 elif test -n "$PKG_CONFIG"; then
80016    if test -n "$PKG_CONFIG" && \
80017    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
80018  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
80019  ac_status=$?
80020  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80021  test $ac_status = 0; }; then
80022  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
80023		      test "x$?" != "x0" && pkg_failed=yes
80024else
80025  pkg_failed=yes
80026fi
80027 else
80028    pkg_failed=untried
80029fi
80030if test -n "$LUA_LIBS"; then
80031    pkg_cv_LUA_LIBS="$LUA_LIBS"
80032 elif test -n "$PKG_CONFIG"; then
80033    if test -n "$PKG_CONFIG" && \
80034    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
80035  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
80036  ac_status=$?
80037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80038  test $ac_status = 0; }; then
80039  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
80040		      test "x$?" != "x0" && pkg_failed=yes
80041else
80042  pkg_failed=yes
80043fi
80044 else
80045    pkg_failed=untried
80046fi
80047
80048
80049
80050if test $pkg_failed = yes; then
80051   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80052$as_echo "no" >&6; }
80053
80054if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
80055        _pkg_short_errors_supported=yes
80056else
80057        _pkg_short_errors_supported=no
80058fi
80059        if test $_pkg_short_errors_supported = yes; then
80060	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
80061        else
80062	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
80063        fi
80064	# Put the nasty error message in config.log where it belongs
80065	echo "$LUA_PKG_ERRORS" >&5
80066
80067
80068
80069pkg_failed=no
80070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
80071$as_echo_n "checking for LUA... " >&6; }
80072
80073if test -n "$LUA_CFLAGS"; then
80074    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
80075 elif test -n "$PKG_CONFIG"; then
80076    if test -n "$PKG_CONFIG" && \
80077    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
80078  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
80079  ac_status=$?
80080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80081  test $ac_status = 0; }; then
80082  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
80083		      test "x$?" != "x0" && pkg_failed=yes
80084else
80085  pkg_failed=yes
80086fi
80087 else
80088    pkg_failed=untried
80089fi
80090if test -n "$LUA_LIBS"; then
80091    pkg_cv_LUA_LIBS="$LUA_LIBS"
80092 elif test -n "$PKG_CONFIG"; then
80093    if test -n "$PKG_CONFIG" && \
80094    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
80095  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
80096  ac_status=$?
80097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80098  test $ac_status = 0; }; then
80099  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
80100		      test "x$?" != "x0" && pkg_failed=yes
80101else
80102  pkg_failed=yes
80103fi
80104 else
80105    pkg_failed=untried
80106fi
80107
80108
80109
80110if test $pkg_failed = yes; then
80111   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80112$as_echo "no" >&6; }
80113
80114if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
80115        _pkg_short_errors_supported=yes
80116else
80117        _pkg_short_errors_supported=no
80118fi
80119        if test $_pkg_short_errors_supported = yes; then
80120	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
80121        else
80122	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
80123        fi
80124	# Put the nasty error message in config.log where it belongs
80125	echo "$LUA_PKG_ERRORS" >&5
80126
80127	with_liblua="no (pkg-config cannot find liblua)"
80128
80129elif test $pkg_failed = untried; then
80130     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80131$as_echo "no" >&6; }
80132	with_liblua="no (pkg-config cannot find liblua)"
80133
80134else
80135	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
80136	LUA_LIBS=$pkg_cv_LUA_LIBS
80137        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
80138$as_echo "yes" >&6; }
80139	with_liblua="yes"
80140fi
80141
80142
80143elif test $pkg_failed = untried; then
80144     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80145$as_echo "no" >&6; }
80146
80147
80148pkg_failed=no
80149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
80150$as_echo_n "checking for LUA... " >&6; }
80151
80152if test -n "$LUA_CFLAGS"; then
80153    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
80154 elif test -n "$PKG_CONFIG"; then
80155    if test -n "$PKG_CONFIG" && \
80156    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
80157  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
80158  ac_status=$?
80159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80160  test $ac_status = 0; }; then
80161  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
80162		      test "x$?" != "x0" && pkg_failed=yes
80163else
80164  pkg_failed=yes
80165fi
80166 else
80167    pkg_failed=untried
80168fi
80169if test -n "$LUA_LIBS"; then
80170    pkg_cv_LUA_LIBS="$LUA_LIBS"
80171 elif test -n "$PKG_CONFIG"; then
80172    if test -n "$PKG_CONFIG" && \
80173    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
80174  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
80175  ac_status=$?
80176  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80177  test $ac_status = 0; }; then
80178  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
80179		      test "x$?" != "x0" && pkg_failed=yes
80180else
80181  pkg_failed=yes
80182fi
80183 else
80184    pkg_failed=untried
80185fi
80186
80187
80188
80189if test $pkg_failed = yes; then
80190   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80191$as_echo "no" >&6; }
80192
80193if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
80194        _pkg_short_errors_supported=yes
80195else
80196        _pkg_short_errors_supported=no
80197fi
80198        if test $_pkg_short_errors_supported = yes; then
80199	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
80200        else
80201	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
80202        fi
80203	# Put the nasty error message in config.log where it belongs
80204	echo "$LUA_PKG_ERRORS" >&5
80205
80206	with_liblua="no (pkg-config cannot find liblua)"
80207
80208elif test $pkg_failed = untried; then
80209     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80210$as_echo "no" >&6; }
80211	with_liblua="no (pkg-config cannot find liblua)"
80212
80213else
80214	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
80215	LUA_LIBS=$pkg_cv_LUA_LIBS
80216        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
80217$as_echo "yes" >&6; }
80218	with_liblua="yes"
80219fi
80220
80221
80222else
80223	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
80224	LUA_LIBS=$pkg_cv_LUA_LIBS
80225        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
80226$as_echo "yes" >&6; }
80227	with_liblua="yes"
80228fi
80229
80230
80231elif test $pkg_failed = untried; then
80232     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80233$as_echo "no" >&6; }
80234
80235
80236pkg_failed=no
80237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
80238$as_echo_n "checking for LUA... " >&6; }
80239
80240if test -n "$LUA_CFLAGS"; then
80241    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
80242 elif test -n "$PKG_CONFIG"; then
80243    if test -n "$PKG_CONFIG" && \
80244    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
80245  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
80246  ac_status=$?
80247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80248  test $ac_status = 0; }; then
80249  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
80250		      test "x$?" != "x0" && pkg_failed=yes
80251else
80252  pkg_failed=yes
80253fi
80254 else
80255    pkg_failed=untried
80256fi
80257if test -n "$LUA_LIBS"; then
80258    pkg_cv_LUA_LIBS="$LUA_LIBS"
80259 elif test -n "$PKG_CONFIG"; then
80260    if test -n "$PKG_CONFIG" && \
80261    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
80262  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
80263  ac_status=$?
80264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80265  test $ac_status = 0; }; then
80266  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
80267		      test "x$?" != "x0" && pkg_failed=yes
80268else
80269  pkg_failed=yes
80270fi
80271 else
80272    pkg_failed=untried
80273fi
80274
80275
80276
80277if test $pkg_failed = yes; then
80278   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80279$as_echo "no" >&6; }
80280
80281if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
80282        _pkg_short_errors_supported=yes
80283else
80284        _pkg_short_errors_supported=no
80285fi
80286        if test $_pkg_short_errors_supported = yes; then
80287	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
80288        else
80289	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
80290        fi
80291	# Put the nasty error message in config.log where it belongs
80292	echo "$LUA_PKG_ERRORS" >&5
80293
80294
80295
80296pkg_failed=no
80297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
80298$as_echo_n "checking for LUA... " >&6; }
80299
80300if test -n "$LUA_CFLAGS"; then
80301    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
80302 elif test -n "$PKG_CONFIG"; then
80303    if test -n "$PKG_CONFIG" && \
80304    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
80305  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
80306  ac_status=$?
80307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80308  test $ac_status = 0; }; then
80309  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
80310		      test "x$?" != "x0" && pkg_failed=yes
80311else
80312  pkg_failed=yes
80313fi
80314 else
80315    pkg_failed=untried
80316fi
80317if test -n "$LUA_LIBS"; then
80318    pkg_cv_LUA_LIBS="$LUA_LIBS"
80319 elif test -n "$PKG_CONFIG"; then
80320    if test -n "$PKG_CONFIG" && \
80321    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
80322  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
80323  ac_status=$?
80324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80325  test $ac_status = 0; }; then
80326  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
80327		      test "x$?" != "x0" && pkg_failed=yes
80328else
80329  pkg_failed=yes
80330fi
80331 else
80332    pkg_failed=untried
80333fi
80334
80335
80336
80337if test $pkg_failed = yes; then
80338   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80339$as_echo "no" >&6; }
80340
80341if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
80342        _pkg_short_errors_supported=yes
80343else
80344        _pkg_short_errors_supported=no
80345fi
80346        if test $_pkg_short_errors_supported = yes; then
80347	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
80348        else
80349	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
80350        fi
80351	# Put the nasty error message in config.log where it belongs
80352	echo "$LUA_PKG_ERRORS" >&5
80353
80354	with_liblua="no (pkg-config cannot find liblua)"
80355
80356elif test $pkg_failed = untried; then
80357     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80358$as_echo "no" >&6; }
80359	with_liblua="no (pkg-config cannot find liblua)"
80360
80361else
80362	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
80363	LUA_LIBS=$pkg_cv_LUA_LIBS
80364        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
80365$as_echo "yes" >&6; }
80366	with_liblua="yes"
80367fi
80368
80369
80370elif test $pkg_failed = untried; then
80371     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80372$as_echo "no" >&6; }
80373
80374
80375pkg_failed=no
80376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
80377$as_echo_n "checking for LUA... " >&6; }
80378
80379if test -n "$LUA_CFLAGS"; then
80380    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
80381 elif test -n "$PKG_CONFIG"; then
80382    if test -n "$PKG_CONFIG" && \
80383    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
80384  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
80385  ac_status=$?
80386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80387  test $ac_status = 0; }; then
80388  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
80389		      test "x$?" != "x0" && pkg_failed=yes
80390else
80391  pkg_failed=yes
80392fi
80393 else
80394    pkg_failed=untried
80395fi
80396if test -n "$LUA_LIBS"; then
80397    pkg_cv_LUA_LIBS="$LUA_LIBS"
80398 elif test -n "$PKG_CONFIG"; then
80399    if test -n "$PKG_CONFIG" && \
80400    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
80401  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
80402  ac_status=$?
80403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80404  test $ac_status = 0; }; then
80405  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
80406		      test "x$?" != "x0" && pkg_failed=yes
80407else
80408  pkg_failed=yes
80409fi
80410 else
80411    pkg_failed=untried
80412fi
80413
80414
80415
80416if test $pkg_failed = yes; then
80417   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80418$as_echo "no" >&6; }
80419
80420if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
80421        _pkg_short_errors_supported=yes
80422else
80423        _pkg_short_errors_supported=no
80424fi
80425        if test $_pkg_short_errors_supported = yes; then
80426	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
80427        else
80428	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
80429        fi
80430	# Put the nasty error message in config.log where it belongs
80431	echo "$LUA_PKG_ERRORS" >&5
80432
80433	with_liblua="no (pkg-config cannot find liblua)"
80434
80435elif test $pkg_failed = untried; then
80436     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80437$as_echo "no" >&6; }
80438	with_liblua="no (pkg-config cannot find liblua)"
80439
80440else
80441	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
80442	LUA_LIBS=$pkg_cv_LUA_LIBS
80443        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
80444$as_echo "yes" >&6; }
80445	with_liblua="yes"
80446fi
80447
80448
80449else
80450	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
80451	LUA_LIBS=$pkg_cv_LUA_LIBS
80452        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
80453$as_echo "yes" >&6; }
80454	with_liblua="yes"
80455fi
80456
80457
80458else
80459	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
80460	LUA_LIBS=$pkg_cv_LUA_LIBS
80461        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
80462$as_echo "yes" >&6; }
80463	with_liblua="yes"
80464fi
80465
80466
80467else
80468	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
80469	LUA_LIBS=$pkg_cv_LUA_LIBS
80470        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
80471$as_echo "yes" >&6; }
80472	with_liblua="yes"
80473fi
80474
80475
80476else
80477	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
80478	LUA_LIBS=$pkg_cv_LUA_LIBS
80479        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
80480$as_echo "yes" >&6; }
80481	with_liblua="yes"
80482fi
80483
80484
80485elif test $pkg_failed = untried; then
80486     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80487$as_echo "no" >&6; }
80488
80489
80490pkg_failed=no
80491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
80492$as_echo_n "checking for LUA... " >&6; }
80493
80494if test -n "$LUA_CFLAGS"; then
80495    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
80496 elif test -n "$PKG_CONFIG"; then
80497    if test -n "$PKG_CONFIG" && \
80498    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
80499  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
80500  ac_status=$?
80501  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80502  test $ac_status = 0; }; then
80503  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
80504		      test "x$?" != "x0" && pkg_failed=yes
80505else
80506  pkg_failed=yes
80507fi
80508 else
80509    pkg_failed=untried
80510fi
80511if test -n "$LUA_LIBS"; then
80512    pkg_cv_LUA_LIBS="$LUA_LIBS"
80513 elif test -n "$PKG_CONFIG"; then
80514    if test -n "$PKG_CONFIG" && \
80515    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
80516  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
80517  ac_status=$?
80518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80519  test $ac_status = 0; }; then
80520  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
80521		      test "x$?" != "x0" && pkg_failed=yes
80522else
80523  pkg_failed=yes
80524fi
80525 else
80526    pkg_failed=untried
80527fi
80528
80529
80530
80531if test $pkg_failed = yes; then
80532   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80533$as_echo "no" >&6; }
80534
80535if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
80536        _pkg_short_errors_supported=yes
80537else
80538        _pkg_short_errors_supported=no
80539fi
80540        if test $_pkg_short_errors_supported = yes; then
80541	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
80542        else
80543	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
80544        fi
80545	# Put the nasty error message in config.log where it belongs
80546	echo "$LUA_PKG_ERRORS" >&5
80547
80548
80549
80550pkg_failed=no
80551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
80552$as_echo_n "checking for LUA... " >&6; }
80553
80554if test -n "$LUA_CFLAGS"; then
80555    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
80556 elif test -n "$PKG_CONFIG"; then
80557    if test -n "$PKG_CONFIG" && \
80558    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
80559  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
80560  ac_status=$?
80561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80562  test $ac_status = 0; }; then
80563  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
80564		      test "x$?" != "x0" && pkg_failed=yes
80565else
80566  pkg_failed=yes
80567fi
80568 else
80569    pkg_failed=untried
80570fi
80571if test -n "$LUA_LIBS"; then
80572    pkg_cv_LUA_LIBS="$LUA_LIBS"
80573 elif test -n "$PKG_CONFIG"; then
80574    if test -n "$PKG_CONFIG" && \
80575    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
80576  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
80577  ac_status=$?
80578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80579  test $ac_status = 0; }; then
80580  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
80581		      test "x$?" != "x0" && pkg_failed=yes
80582else
80583  pkg_failed=yes
80584fi
80585 else
80586    pkg_failed=untried
80587fi
80588
80589
80590
80591if test $pkg_failed = yes; then
80592   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80593$as_echo "no" >&6; }
80594
80595if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
80596        _pkg_short_errors_supported=yes
80597else
80598        _pkg_short_errors_supported=no
80599fi
80600        if test $_pkg_short_errors_supported = yes; then
80601	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
80602        else
80603	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
80604        fi
80605	# Put the nasty error message in config.log where it belongs
80606	echo "$LUA_PKG_ERRORS" >&5
80607
80608
80609
80610pkg_failed=no
80611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
80612$as_echo_n "checking for LUA... " >&6; }
80613
80614if test -n "$LUA_CFLAGS"; then
80615    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
80616 elif test -n "$PKG_CONFIG"; then
80617    if test -n "$PKG_CONFIG" && \
80618    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
80619  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
80620  ac_status=$?
80621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80622  test $ac_status = 0; }; then
80623  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
80624		      test "x$?" != "x0" && pkg_failed=yes
80625else
80626  pkg_failed=yes
80627fi
80628 else
80629    pkg_failed=untried
80630fi
80631if test -n "$LUA_LIBS"; then
80632    pkg_cv_LUA_LIBS="$LUA_LIBS"
80633 elif test -n "$PKG_CONFIG"; then
80634    if test -n "$PKG_CONFIG" && \
80635    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
80636  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
80637  ac_status=$?
80638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80639  test $ac_status = 0; }; then
80640  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
80641		      test "x$?" != "x0" && pkg_failed=yes
80642else
80643  pkg_failed=yes
80644fi
80645 else
80646    pkg_failed=untried
80647fi
80648
80649
80650
80651if test $pkg_failed = yes; then
80652   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80653$as_echo "no" >&6; }
80654
80655if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
80656        _pkg_short_errors_supported=yes
80657else
80658        _pkg_short_errors_supported=no
80659fi
80660        if test $_pkg_short_errors_supported = yes; then
80661	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
80662        else
80663	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
80664        fi
80665	# Put the nasty error message in config.log where it belongs
80666	echo "$LUA_PKG_ERRORS" >&5
80667
80668
80669
80670pkg_failed=no
80671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
80672$as_echo_n "checking for LUA... " >&6; }
80673
80674if test -n "$LUA_CFLAGS"; then
80675    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
80676 elif test -n "$PKG_CONFIG"; then
80677    if test -n "$PKG_CONFIG" && \
80678    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
80679  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
80680  ac_status=$?
80681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80682  test $ac_status = 0; }; then
80683  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
80684		      test "x$?" != "x0" && pkg_failed=yes
80685else
80686  pkg_failed=yes
80687fi
80688 else
80689    pkg_failed=untried
80690fi
80691if test -n "$LUA_LIBS"; then
80692    pkg_cv_LUA_LIBS="$LUA_LIBS"
80693 elif test -n "$PKG_CONFIG"; then
80694    if test -n "$PKG_CONFIG" && \
80695    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
80696  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
80697  ac_status=$?
80698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80699  test $ac_status = 0; }; then
80700  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
80701		      test "x$?" != "x0" && pkg_failed=yes
80702else
80703  pkg_failed=yes
80704fi
80705 else
80706    pkg_failed=untried
80707fi
80708
80709
80710
80711if test $pkg_failed = yes; then
80712   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80713$as_echo "no" >&6; }
80714
80715if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
80716        _pkg_short_errors_supported=yes
80717else
80718        _pkg_short_errors_supported=no
80719fi
80720        if test $_pkg_short_errors_supported = yes; then
80721	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
80722        else
80723	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
80724        fi
80725	# Put the nasty error message in config.log where it belongs
80726	echo "$LUA_PKG_ERRORS" >&5
80727
80728
80729
80730pkg_failed=no
80731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
80732$as_echo_n "checking for LUA... " >&6; }
80733
80734if test -n "$LUA_CFLAGS"; then
80735    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
80736 elif test -n "$PKG_CONFIG"; then
80737    if test -n "$PKG_CONFIG" && \
80738    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
80739  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
80740  ac_status=$?
80741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80742  test $ac_status = 0; }; then
80743  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
80744		      test "x$?" != "x0" && pkg_failed=yes
80745else
80746  pkg_failed=yes
80747fi
80748 else
80749    pkg_failed=untried
80750fi
80751if test -n "$LUA_LIBS"; then
80752    pkg_cv_LUA_LIBS="$LUA_LIBS"
80753 elif test -n "$PKG_CONFIG"; then
80754    if test -n "$PKG_CONFIG" && \
80755    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
80756  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
80757  ac_status=$?
80758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80759  test $ac_status = 0; }; then
80760  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
80761		      test "x$?" != "x0" && pkg_failed=yes
80762else
80763  pkg_failed=yes
80764fi
80765 else
80766    pkg_failed=untried
80767fi
80768
80769
80770
80771if test $pkg_failed = yes; then
80772   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80773$as_echo "no" >&6; }
80774
80775if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
80776        _pkg_short_errors_supported=yes
80777else
80778        _pkg_short_errors_supported=no
80779fi
80780        if test $_pkg_short_errors_supported = yes; then
80781	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
80782        else
80783	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
80784        fi
80785	# Put the nasty error message in config.log where it belongs
80786	echo "$LUA_PKG_ERRORS" >&5
80787
80788	with_liblua="no (pkg-config cannot find liblua)"
80789
80790elif test $pkg_failed = untried; then
80791     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80792$as_echo "no" >&6; }
80793	with_liblua="no (pkg-config cannot find liblua)"
80794
80795else
80796	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
80797	LUA_LIBS=$pkg_cv_LUA_LIBS
80798        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
80799$as_echo "yes" >&6; }
80800	with_liblua="yes"
80801fi
80802
80803
80804elif test $pkg_failed = untried; then
80805     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80806$as_echo "no" >&6; }
80807
80808
80809pkg_failed=no
80810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
80811$as_echo_n "checking for LUA... " >&6; }
80812
80813if test -n "$LUA_CFLAGS"; then
80814    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
80815 elif test -n "$PKG_CONFIG"; then
80816    if test -n "$PKG_CONFIG" && \
80817    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
80818  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
80819  ac_status=$?
80820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80821  test $ac_status = 0; }; then
80822  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
80823		      test "x$?" != "x0" && pkg_failed=yes
80824else
80825  pkg_failed=yes
80826fi
80827 else
80828    pkg_failed=untried
80829fi
80830if test -n "$LUA_LIBS"; then
80831    pkg_cv_LUA_LIBS="$LUA_LIBS"
80832 elif test -n "$PKG_CONFIG"; then
80833    if test -n "$PKG_CONFIG" && \
80834    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
80835  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
80836  ac_status=$?
80837  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80838  test $ac_status = 0; }; then
80839  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
80840		      test "x$?" != "x0" && pkg_failed=yes
80841else
80842  pkg_failed=yes
80843fi
80844 else
80845    pkg_failed=untried
80846fi
80847
80848
80849
80850if test $pkg_failed = yes; then
80851   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80852$as_echo "no" >&6; }
80853
80854if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
80855        _pkg_short_errors_supported=yes
80856else
80857        _pkg_short_errors_supported=no
80858fi
80859        if test $_pkg_short_errors_supported = yes; then
80860	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
80861        else
80862	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
80863        fi
80864	# Put the nasty error message in config.log where it belongs
80865	echo "$LUA_PKG_ERRORS" >&5
80866
80867	with_liblua="no (pkg-config cannot find liblua)"
80868
80869elif test $pkg_failed = untried; then
80870     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80871$as_echo "no" >&6; }
80872	with_liblua="no (pkg-config cannot find liblua)"
80873
80874else
80875	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
80876	LUA_LIBS=$pkg_cv_LUA_LIBS
80877        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
80878$as_echo "yes" >&6; }
80879	with_liblua="yes"
80880fi
80881
80882
80883else
80884	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
80885	LUA_LIBS=$pkg_cv_LUA_LIBS
80886        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
80887$as_echo "yes" >&6; }
80888	with_liblua="yes"
80889fi
80890
80891
80892elif test $pkg_failed = untried; then
80893     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80894$as_echo "no" >&6; }
80895
80896
80897pkg_failed=no
80898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
80899$as_echo_n "checking for LUA... " >&6; }
80900
80901if test -n "$LUA_CFLAGS"; then
80902    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
80903 elif test -n "$PKG_CONFIG"; then
80904    if test -n "$PKG_CONFIG" && \
80905    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
80906  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
80907  ac_status=$?
80908  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80909  test $ac_status = 0; }; then
80910  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
80911		      test "x$?" != "x0" && pkg_failed=yes
80912else
80913  pkg_failed=yes
80914fi
80915 else
80916    pkg_failed=untried
80917fi
80918if test -n "$LUA_LIBS"; then
80919    pkg_cv_LUA_LIBS="$LUA_LIBS"
80920 elif test -n "$PKG_CONFIG"; then
80921    if test -n "$PKG_CONFIG" && \
80922    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
80923  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
80924  ac_status=$?
80925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80926  test $ac_status = 0; }; then
80927  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
80928		      test "x$?" != "x0" && pkg_failed=yes
80929else
80930  pkg_failed=yes
80931fi
80932 else
80933    pkg_failed=untried
80934fi
80935
80936
80937
80938if test $pkg_failed = yes; then
80939   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80940$as_echo "no" >&6; }
80941
80942if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
80943        _pkg_short_errors_supported=yes
80944else
80945        _pkg_short_errors_supported=no
80946fi
80947        if test $_pkg_short_errors_supported = yes; then
80948	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
80949        else
80950	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
80951        fi
80952	# Put the nasty error message in config.log where it belongs
80953	echo "$LUA_PKG_ERRORS" >&5
80954
80955
80956
80957pkg_failed=no
80958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
80959$as_echo_n "checking for LUA... " >&6; }
80960
80961if test -n "$LUA_CFLAGS"; then
80962    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
80963 elif test -n "$PKG_CONFIG"; then
80964    if test -n "$PKG_CONFIG" && \
80965    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
80966  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
80967  ac_status=$?
80968  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80969  test $ac_status = 0; }; then
80970  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
80971		      test "x$?" != "x0" && pkg_failed=yes
80972else
80973  pkg_failed=yes
80974fi
80975 else
80976    pkg_failed=untried
80977fi
80978if test -n "$LUA_LIBS"; then
80979    pkg_cv_LUA_LIBS="$LUA_LIBS"
80980 elif test -n "$PKG_CONFIG"; then
80981    if test -n "$PKG_CONFIG" && \
80982    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
80983  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
80984  ac_status=$?
80985  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80986  test $ac_status = 0; }; then
80987  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
80988		      test "x$?" != "x0" && pkg_failed=yes
80989else
80990  pkg_failed=yes
80991fi
80992 else
80993    pkg_failed=untried
80994fi
80995
80996
80997
80998if test $pkg_failed = yes; then
80999   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81000$as_echo "no" >&6; }
81001
81002if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
81003        _pkg_short_errors_supported=yes
81004else
81005        _pkg_short_errors_supported=no
81006fi
81007        if test $_pkg_short_errors_supported = yes; then
81008	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
81009        else
81010	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
81011        fi
81012	# Put the nasty error message in config.log where it belongs
81013	echo "$LUA_PKG_ERRORS" >&5
81014
81015	with_liblua="no (pkg-config cannot find liblua)"
81016
81017elif test $pkg_failed = untried; then
81018     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81019$as_echo "no" >&6; }
81020	with_liblua="no (pkg-config cannot find liblua)"
81021
81022else
81023	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
81024	LUA_LIBS=$pkg_cv_LUA_LIBS
81025        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81026$as_echo "yes" >&6; }
81027	with_liblua="yes"
81028fi
81029
81030
81031elif test $pkg_failed = untried; then
81032     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81033$as_echo "no" >&6; }
81034
81035
81036pkg_failed=no
81037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
81038$as_echo_n "checking for LUA... " >&6; }
81039
81040if test -n "$LUA_CFLAGS"; then
81041    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
81042 elif test -n "$PKG_CONFIG"; then
81043    if test -n "$PKG_CONFIG" && \
81044    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
81045  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
81046  ac_status=$?
81047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81048  test $ac_status = 0; }; then
81049  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
81050		      test "x$?" != "x0" && pkg_failed=yes
81051else
81052  pkg_failed=yes
81053fi
81054 else
81055    pkg_failed=untried
81056fi
81057if test -n "$LUA_LIBS"; then
81058    pkg_cv_LUA_LIBS="$LUA_LIBS"
81059 elif test -n "$PKG_CONFIG"; then
81060    if test -n "$PKG_CONFIG" && \
81061    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
81062  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
81063  ac_status=$?
81064  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81065  test $ac_status = 0; }; then
81066  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
81067		      test "x$?" != "x0" && pkg_failed=yes
81068else
81069  pkg_failed=yes
81070fi
81071 else
81072    pkg_failed=untried
81073fi
81074
81075
81076
81077if test $pkg_failed = yes; then
81078   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81079$as_echo "no" >&6; }
81080
81081if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
81082        _pkg_short_errors_supported=yes
81083else
81084        _pkg_short_errors_supported=no
81085fi
81086        if test $_pkg_short_errors_supported = yes; then
81087	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
81088        else
81089	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
81090        fi
81091	# Put the nasty error message in config.log where it belongs
81092	echo "$LUA_PKG_ERRORS" >&5
81093
81094	with_liblua="no (pkg-config cannot find liblua)"
81095
81096elif test $pkg_failed = untried; then
81097     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81098$as_echo "no" >&6; }
81099	with_liblua="no (pkg-config cannot find liblua)"
81100
81101else
81102	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
81103	LUA_LIBS=$pkg_cv_LUA_LIBS
81104        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81105$as_echo "yes" >&6; }
81106	with_liblua="yes"
81107fi
81108
81109
81110else
81111	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
81112	LUA_LIBS=$pkg_cv_LUA_LIBS
81113        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81114$as_echo "yes" >&6; }
81115	with_liblua="yes"
81116fi
81117
81118
81119else
81120	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
81121	LUA_LIBS=$pkg_cv_LUA_LIBS
81122        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81123$as_echo "yes" >&6; }
81124	with_liblua="yes"
81125fi
81126
81127
81128elif test $pkg_failed = untried; then
81129     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81130$as_echo "no" >&6; }
81131
81132
81133pkg_failed=no
81134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
81135$as_echo_n "checking for LUA... " >&6; }
81136
81137if test -n "$LUA_CFLAGS"; then
81138    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
81139 elif test -n "$PKG_CONFIG"; then
81140    if test -n "$PKG_CONFIG" && \
81141    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
81142  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
81143  ac_status=$?
81144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81145  test $ac_status = 0; }; then
81146  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
81147		      test "x$?" != "x0" && pkg_failed=yes
81148else
81149  pkg_failed=yes
81150fi
81151 else
81152    pkg_failed=untried
81153fi
81154if test -n "$LUA_LIBS"; then
81155    pkg_cv_LUA_LIBS="$LUA_LIBS"
81156 elif test -n "$PKG_CONFIG"; then
81157    if test -n "$PKG_CONFIG" && \
81158    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
81159  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
81160  ac_status=$?
81161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81162  test $ac_status = 0; }; then
81163  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
81164		      test "x$?" != "x0" && pkg_failed=yes
81165else
81166  pkg_failed=yes
81167fi
81168 else
81169    pkg_failed=untried
81170fi
81171
81172
81173
81174if test $pkg_failed = yes; then
81175   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81176$as_echo "no" >&6; }
81177
81178if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
81179        _pkg_short_errors_supported=yes
81180else
81181        _pkg_short_errors_supported=no
81182fi
81183        if test $_pkg_short_errors_supported = yes; then
81184	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
81185        else
81186	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
81187        fi
81188	# Put the nasty error message in config.log where it belongs
81189	echo "$LUA_PKG_ERRORS" >&5
81190
81191
81192
81193pkg_failed=no
81194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
81195$as_echo_n "checking for LUA... " >&6; }
81196
81197if test -n "$LUA_CFLAGS"; then
81198    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
81199 elif test -n "$PKG_CONFIG"; then
81200    if test -n "$PKG_CONFIG" && \
81201    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
81202  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
81203  ac_status=$?
81204  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81205  test $ac_status = 0; }; then
81206  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
81207		      test "x$?" != "x0" && pkg_failed=yes
81208else
81209  pkg_failed=yes
81210fi
81211 else
81212    pkg_failed=untried
81213fi
81214if test -n "$LUA_LIBS"; then
81215    pkg_cv_LUA_LIBS="$LUA_LIBS"
81216 elif test -n "$PKG_CONFIG"; then
81217    if test -n "$PKG_CONFIG" && \
81218    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
81219  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
81220  ac_status=$?
81221  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81222  test $ac_status = 0; }; then
81223  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
81224		      test "x$?" != "x0" && pkg_failed=yes
81225else
81226  pkg_failed=yes
81227fi
81228 else
81229    pkg_failed=untried
81230fi
81231
81232
81233
81234if test $pkg_failed = yes; then
81235   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81236$as_echo "no" >&6; }
81237
81238if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
81239        _pkg_short_errors_supported=yes
81240else
81241        _pkg_short_errors_supported=no
81242fi
81243        if test $_pkg_short_errors_supported = yes; then
81244	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
81245        else
81246	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
81247        fi
81248	# Put the nasty error message in config.log where it belongs
81249	echo "$LUA_PKG_ERRORS" >&5
81250
81251
81252
81253pkg_failed=no
81254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
81255$as_echo_n "checking for LUA... " >&6; }
81256
81257if test -n "$LUA_CFLAGS"; then
81258    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
81259 elif test -n "$PKG_CONFIG"; then
81260    if test -n "$PKG_CONFIG" && \
81261    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
81262  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
81263  ac_status=$?
81264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81265  test $ac_status = 0; }; then
81266  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
81267		      test "x$?" != "x0" && pkg_failed=yes
81268else
81269  pkg_failed=yes
81270fi
81271 else
81272    pkg_failed=untried
81273fi
81274if test -n "$LUA_LIBS"; then
81275    pkg_cv_LUA_LIBS="$LUA_LIBS"
81276 elif test -n "$PKG_CONFIG"; then
81277    if test -n "$PKG_CONFIG" && \
81278    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
81279  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
81280  ac_status=$?
81281  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81282  test $ac_status = 0; }; then
81283  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
81284		      test "x$?" != "x0" && pkg_failed=yes
81285else
81286  pkg_failed=yes
81287fi
81288 else
81289    pkg_failed=untried
81290fi
81291
81292
81293
81294if test $pkg_failed = yes; then
81295   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81296$as_echo "no" >&6; }
81297
81298if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
81299        _pkg_short_errors_supported=yes
81300else
81301        _pkg_short_errors_supported=no
81302fi
81303        if test $_pkg_short_errors_supported = yes; then
81304	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
81305        else
81306	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
81307        fi
81308	# Put the nasty error message in config.log where it belongs
81309	echo "$LUA_PKG_ERRORS" >&5
81310
81311	with_liblua="no (pkg-config cannot find liblua)"
81312
81313elif test $pkg_failed = untried; then
81314     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81315$as_echo "no" >&6; }
81316	with_liblua="no (pkg-config cannot find liblua)"
81317
81318else
81319	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
81320	LUA_LIBS=$pkg_cv_LUA_LIBS
81321        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81322$as_echo "yes" >&6; }
81323	with_liblua="yes"
81324fi
81325
81326
81327elif test $pkg_failed = untried; then
81328     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81329$as_echo "no" >&6; }
81330
81331
81332pkg_failed=no
81333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
81334$as_echo_n "checking for LUA... " >&6; }
81335
81336if test -n "$LUA_CFLAGS"; then
81337    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
81338 elif test -n "$PKG_CONFIG"; then
81339    if test -n "$PKG_CONFIG" && \
81340    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
81341  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
81342  ac_status=$?
81343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81344  test $ac_status = 0; }; then
81345  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
81346		      test "x$?" != "x0" && pkg_failed=yes
81347else
81348  pkg_failed=yes
81349fi
81350 else
81351    pkg_failed=untried
81352fi
81353if test -n "$LUA_LIBS"; then
81354    pkg_cv_LUA_LIBS="$LUA_LIBS"
81355 elif test -n "$PKG_CONFIG"; then
81356    if test -n "$PKG_CONFIG" && \
81357    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
81358  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
81359  ac_status=$?
81360  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81361  test $ac_status = 0; }; then
81362  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
81363		      test "x$?" != "x0" && pkg_failed=yes
81364else
81365  pkg_failed=yes
81366fi
81367 else
81368    pkg_failed=untried
81369fi
81370
81371
81372
81373if test $pkg_failed = yes; then
81374   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81375$as_echo "no" >&6; }
81376
81377if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
81378        _pkg_short_errors_supported=yes
81379else
81380        _pkg_short_errors_supported=no
81381fi
81382        if test $_pkg_short_errors_supported = yes; then
81383	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
81384        else
81385	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
81386        fi
81387	# Put the nasty error message in config.log where it belongs
81388	echo "$LUA_PKG_ERRORS" >&5
81389
81390	with_liblua="no (pkg-config cannot find liblua)"
81391
81392elif test $pkg_failed = untried; then
81393     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81394$as_echo "no" >&6; }
81395	with_liblua="no (pkg-config cannot find liblua)"
81396
81397else
81398	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
81399	LUA_LIBS=$pkg_cv_LUA_LIBS
81400        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81401$as_echo "yes" >&6; }
81402	with_liblua="yes"
81403fi
81404
81405
81406else
81407	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
81408	LUA_LIBS=$pkg_cv_LUA_LIBS
81409        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81410$as_echo "yes" >&6; }
81411	with_liblua="yes"
81412fi
81413
81414
81415elif test $pkg_failed = untried; then
81416     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81417$as_echo "no" >&6; }
81418
81419
81420pkg_failed=no
81421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
81422$as_echo_n "checking for LUA... " >&6; }
81423
81424if test -n "$LUA_CFLAGS"; then
81425    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
81426 elif test -n "$PKG_CONFIG"; then
81427    if test -n "$PKG_CONFIG" && \
81428    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
81429  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
81430  ac_status=$?
81431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81432  test $ac_status = 0; }; then
81433  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
81434		      test "x$?" != "x0" && pkg_failed=yes
81435else
81436  pkg_failed=yes
81437fi
81438 else
81439    pkg_failed=untried
81440fi
81441if test -n "$LUA_LIBS"; then
81442    pkg_cv_LUA_LIBS="$LUA_LIBS"
81443 elif test -n "$PKG_CONFIG"; then
81444    if test -n "$PKG_CONFIG" && \
81445    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
81446  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
81447  ac_status=$?
81448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81449  test $ac_status = 0; }; then
81450  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
81451		      test "x$?" != "x0" && pkg_failed=yes
81452else
81453  pkg_failed=yes
81454fi
81455 else
81456    pkg_failed=untried
81457fi
81458
81459
81460
81461if test $pkg_failed = yes; then
81462   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81463$as_echo "no" >&6; }
81464
81465if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
81466        _pkg_short_errors_supported=yes
81467else
81468        _pkg_short_errors_supported=no
81469fi
81470        if test $_pkg_short_errors_supported = yes; then
81471	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
81472        else
81473	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
81474        fi
81475	# Put the nasty error message in config.log where it belongs
81476	echo "$LUA_PKG_ERRORS" >&5
81477
81478
81479
81480pkg_failed=no
81481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
81482$as_echo_n "checking for LUA... " >&6; }
81483
81484if test -n "$LUA_CFLAGS"; then
81485    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
81486 elif test -n "$PKG_CONFIG"; then
81487    if test -n "$PKG_CONFIG" && \
81488    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
81489  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
81490  ac_status=$?
81491  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81492  test $ac_status = 0; }; then
81493  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
81494		      test "x$?" != "x0" && pkg_failed=yes
81495else
81496  pkg_failed=yes
81497fi
81498 else
81499    pkg_failed=untried
81500fi
81501if test -n "$LUA_LIBS"; then
81502    pkg_cv_LUA_LIBS="$LUA_LIBS"
81503 elif test -n "$PKG_CONFIG"; then
81504    if test -n "$PKG_CONFIG" && \
81505    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
81506  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
81507  ac_status=$?
81508  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81509  test $ac_status = 0; }; then
81510  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
81511		      test "x$?" != "x0" && pkg_failed=yes
81512else
81513  pkg_failed=yes
81514fi
81515 else
81516    pkg_failed=untried
81517fi
81518
81519
81520
81521if test $pkg_failed = yes; then
81522   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81523$as_echo "no" >&6; }
81524
81525if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
81526        _pkg_short_errors_supported=yes
81527else
81528        _pkg_short_errors_supported=no
81529fi
81530        if test $_pkg_short_errors_supported = yes; then
81531	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
81532        else
81533	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
81534        fi
81535	# Put the nasty error message in config.log where it belongs
81536	echo "$LUA_PKG_ERRORS" >&5
81537
81538	with_liblua="no (pkg-config cannot find liblua)"
81539
81540elif test $pkg_failed = untried; then
81541     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81542$as_echo "no" >&6; }
81543	with_liblua="no (pkg-config cannot find liblua)"
81544
81545else
81546	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
81547	LUA_LIBS=$pkg_cv_LUA_LIBS
81548        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81549$as_echo "yes" >&6; }
81550	with_liblua="yes"
81551fi
81552
81553
81554elif test $pkg_failed = untried; then
81555     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81556$as_echo "no" >&6; }
81557
81558
81559pkg_failed=no
81560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
81561$as_echo_n "checking for LUA... " >&6; }
81562
81563if test -n "$LUA_CFLAGS"; then
81564    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
81565 elif test -n "$PKG_CONFIG"; then
81566    if test -n "$PKG_CONFIG" && \
81567    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
81568  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
81569  ac_status=$?
81570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81571  test $ac_status = 0; }; then
81572  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
81573		      test "x$?" != "x0" && pkg_failed=yes
81574else
81575  pkg_failed=yes
81576fi
81577 else
81578    pkg_failed=untried
81579fi
81580if test -n "$LUA_LIBS"; then
81581    pkg_cv_LUA_LIBS="$LUA_LIBS"
81582 elif test -n "$PKG_CONFIG"; then
81583    if test -n "$PKG_CONFIG" && \
81584    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
81585  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
81586  ac_status=$?
81587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81588  test $ac_status = 0; }; then
81589  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
81590		      test "x$?" != "x0" && pkg_failed=yes
81591else
81592  pkg_failed=yes
81593fi
81594 else
81595    pkg_failed=untried
81596fi
81597
81598
81599
81600if test $pkg_failed = yes; then
81601   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81602$as_echo "no" >&6; }
81603
81604if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
81605        _pkg_short_errors_supported=yes
81606else
81607        _pkg_short_errors_supported=no
81608fi
81609        if test $_pkg_short_errors_supported = yes; then
81610	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
81611        else
81612	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
81613        fi
81614	# Put the nasty error message in config.log where it belongs
81615	echo "$LUA_PKG_ERRORS" >&5
81616
81617	with_liblua="no (pkg-config cannot find liblua)"
81618
81619elif test $pkg_failed = untried; then
81620     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81621$as_echo "no" >&6; }
81622	with_liblua="no (pkg-config cannot find liblua)"
81623
81624else
81625	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
81626	LUA_LIBS=$pkg_cv_LUA_LIBS
81627        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81628$as_echo "yes" >&6; }
81629	with_liblua="yes"
81630fi
81631
81632
81633else
81634	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
81635	LUA_LIBS=$pkg_cv_LUA_LIBS
81636        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81637$as_echo "yes" >&6; }
81638	with_liblua="yes"
81639fi
81640
81641
81642else
81643	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
81644	LUA_LIBS=$pkg_cv_LUA_LIBS
81645        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81646$as_echo "yes" >&6; }
81647	with_liblua="yes"
81648fi
81649
81650
81651else
81652	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
81653	LUA_LIBS=$pkg_cv_LUA_LIBS
81654        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81655$as_echo "yes" >&6; }
81656	with_liblua="yes"
81657fi
81658
81659
81660elif test $pkg_failed = untried; then
81661     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81662$as_echo "no" >&6; }
81663
81664
81665pkg_failed=no
81666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
81667$as_echo_n "checking for LUA... " >&6; }
81668
81669if test -n "$LUA_CFLAGS"; then
81670    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
81671 elif test -n "$PKG_CONFIG"; then
81672    if test -n "$PKG_CONFIG" && \
81673    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
81674  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
81675  ac_status=$?
81676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81677  test $ac_status = 0; }; then
81678  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
81679		      test "x$?" != "x0" && pkg_failed=yes
81680else
81681  pkg_failed=yes
81682fi
81683 else
81684    pkg_failed=untried
81685fi
81686if test -n "$LUA_LIBS"; then
81687    pkg_cv_LUA_LIBS="$LUA_LIBS"
81688 elif test -n "$PKG_CONFIG"; then
81689    if test -n "$PKG_CONFIG" && \
81690    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
81691  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
81692  ac_status=$?
81693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81694  test $ac_status = 0; }; then
81695  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
81696		      test "x$?" != "x0" && pkg_failed=yes
81697else
81698  pkg_failed=yes
81699fi
81700 else
81701    pkg_failed=untried
81702fi
81703
81704
81705
81706if test $pkg_failed = yes; then
81707   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81708$as_echo "no" >&6; }
81709
81710if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
81711        _pkg_short_errors_supported=yes
81712else
81713        _pkg_short_errors_supported=no
81714fi
81715        if test $_pkg_short_errors_supported = yes; then
81716	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
81717        else
81718	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
81719        fi
81720	# Put the nasty error message in config.log where it belongs
81721	echo "$LUA_PKG_ERRORS" >&5
81722
81723
81724
81725pkg_failed=no
81726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
81727$as_echo_n "checking for LUA... " >&6; }
81728
81729if test -n "$LUA_CFLAGS"; then
81730    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
81731 elif test -n "$PKG_CONFIG"; then
81732    if test -n "$PKG_CONFIG" && \
81733    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
81734  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
81735  ac_status=$?
81736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81737  test $ac_status = 0; }; then
81738  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
81739		      test "x$?" != "x0" && pkg_failed=yes
81740else
81741  pkg_failed=yes
81742fi
81743 else
81744    pkg_failed=untried
81745fi
81746if test -n "$LUA_LIBS"; then
81747    pkg_cv_LUA_LIBS="$LUA_LIBS"
81748 elif test -n "$PKG_CONFIG"; then
81749    if test -n "$PKG_CONFIG" && \
81750    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
81751  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
81752  ac_status=$?
81753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81754  test $ac_status = 0; }; then
81755  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
81756		      test "x$?" != "x0" && pkg_failed=yes
81757else
81758  pkg_failed=yes
81759fi
81760 else
81761    pkg_failed=untried
81762fi
81763
81764
81765
81766if test $pkg_failed = yes; then
81767   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81768$as_echo "no" >&6; }
81769
81770if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
81771        _pkg_short_errors_supported=yes
81772else
81773        _pkg_short_errors_supported=no
81774fi
81775        if test $_pkg_short_errors_supported = yes; then
81776	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
81777        else
81778	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
81779        fi
81780	# Put the nasty error message in config.log where it belongs
81781	echo "$LUA_PKG_ERRORS" >&5
81782
81783
81784
81785pkg_failed=no
81786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
81787$as_echo_n "checking for LUA... " >&6; }
81788
81789if test -n "$LUA_CFLAGS"; then
81790    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
81791 elif test -n "$PKG_CONFIG"; then
81792    if test -n "$PKG_CONFIG" && \
81793    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
81794  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
81795  ac_status=$?
81796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81797  test $ac_status = 0; }; then
81798  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
81799		      test "x$?" != "x0" && pkg_failed=yes
81800else
81801  pkg_failed=yes
81802fi
81803 else
81804    pkg_failed=untried
81805fi
81806if test -n "$LUA_LIBS"; then
81807    pkg_cv_LUA_LIBS="$LUA_LIBS"
81808 elif test -n "$PKG_CONFIG"; then
81809    if test -n "$PKG_CONFIG" && \
81810    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
81811  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
81812  ac_status=$?
81813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81814  test $ac_status = 0; }; then
81815  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
81816		      test "x$?" != "x0" && pkg_failed=yes
81817else
81818  pkg_failed=yes
81819fi
81820 else
81821    pkg_failed=untried
81822fi
81823
81824
81825
81826if test $pkg_failed = yes; then
81827   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81828$as_echo "no" >&6; }
81829
81830if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
81831        _pkg_short_errors_supported=yes
81832else
81833        _pkg_short_errors_supported=no
81834fi
81835        if test $_pkg_short_errors_supported = yes; then
81836	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
81837        else
81838	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
81839        fi
81840	# Put the nasty error message in config.log where it belongs
81841	echo "$LUA_PKG_ERRORS" >&5
81842
81843
81844
81845pkg_failed=no
81846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
81847$as_echo_n "checking for LUA... " >&6; }
81848
81849if test -n "$LUA_CFLAGS"; then
81850    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
81851 elif test -n "$PKG_CONFIG"; then
81852    if test -n "$PKG_CONFIG" && \
81853    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
81854  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
81855  ac_status=$?
81856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81857  test $ac_status = 0; }; then
81858  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
81859		      test "x$?" != "x0" && pkg_failed=yes
81860else
81861  pkg_failed=yes
81862fi
81863 else
81864    pkg_failed=untried
81865fi
81866if test -n "$LUA_LIBS"; then
81867    pkg_cv_LUA_LIBS="$LUA_LIBS"
81868 elif test -n "$PKG_CONFIG"; then
81869    if test -n "$PKG_CONFIG" && \
81870    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
81871  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
81872  ac_status=$?
81873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81874  test $ac_status = 0; }; then
81875  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
81876		      test "x$?" != "x0" && pkg_failed=yes
81877else
81878  pkg_failed=yes
81879fi
81880 else
81881    pkg_failed=untried
81882fi
81883
81884
81885
81886if test $pkg_failed = yes; then
81887   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81888$as_echo "no" >&6; }
81889
81890if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
81891        _pkg_short_errors_supported=yes
81892else
81893        _pkg_short_errors_supported=no
81894fi
81895        if test $_pkg_short_errors_supported = yes; then
81896	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
81897        else
81898	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
81899        fi
81900	# Put the nasty error message in config.log where it belongs
81901	echo "$LUA_PKG_ERRORS" >&5
81902
81903	with_liblua="no (pkg-config cannot find liblua)"
81904
81905elif test $pkg_failed = untried; then
81906     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81907$as_echo "no" >&6; }
81908	with_liblua="no (pkg-config cannot find liblua)"
81909
81910else
81911	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
81912	LUA_LIBS=$pkg_cv_LUA_LIBS
81913        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81914$as_echo "yes" >&6; }
81915	with_liblua="yes"
81916fi
81917
81918
81919elif test $pkg_failed = untried; then
81920     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81921$as_echo "no" >&6; }
81922
81923
81924pkg_failed=no
81925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
81926$as_echo_n "checking for LUA... " >&6; }
81927
81928if test -n "$LUA_CFLAGS"; then
81929    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
81930 elif test -n "$PKG_CONFIG"; then
81931    if test -n "$PKG_CONFIG" && \
81932    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
81933  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
81934  ac_status=$?
81935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81936  test $ac_status = 0; }; then
81937  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
81938		      test "x$?" != "x0" && pkg_failed=yes
81939else
81940  pkg_failed=yes
81941fi
81942 else
81943    pkg_failed=untried
81944fi
81945if test -n "$LUA_LIBS"; then
81946    pkg_cv_LUA_LIBS="$LUA_LIBS"
81947 elif test -n "$PKG_CONFIG"; then
81948    if test -n "$PKG_CONFIG" && \
81949    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
81950  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
81951  ac_status=$?
81952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81953  test $ac_status = 0; }; then
81954  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
81955		      test "x$?" != "x0" && pkg_failed=yes
81956else
81957  pkg_failed=yes
81958fi
81959 else
81960    pkg_failed=untried
81961fi
81962
81963
81964
81965if test $pkg_failed = yes; then
81966   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81967$as_echo "no" >&6; }
81968
81969if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
81970        _pkg_short_errors_supported=yes
81971else
81972        _pkg_short_errors_supported=no
81973fi
81974        if test $_pkg_short_errors_supported = yes; then
81975	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
81976        else
81977	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
81978        fi
81979	# Put the nasty error message in config.log where it belongs
81980	echo "$LUA_PKG_ERRORS" >&5
81981
81982	with_liblua="no (pkg-config cannot find liblua)"
81983
81984elif test $pkg_failed = untried; then
81985     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81986$as_echo "no" >&6; }
81987	with_liblua="no (pkg-config cannot find liblua)"
81988
81989else
81990	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
81991	LUA_LIBS=$pkg_cv_LUA_LIBS
81992        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81993$as_echo "yes" >&6; }
81994	with_liblua="yes"
81995fi
81996
81997
81998else
81999	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
82000	LUA_LIBS=$pkg_cv_LUA_LIBS
82001        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
82002$as_echo "yes" >&6; }
82003	with_liblua="yes"
82004fi
82005
82006
82007elif test $pkg_failed = untried; then
82008     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82009$as_echo "no" >&6; }
82010
82011
82012pkg_failed=no
82013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
82014$as_echo_n "checking for LUA... " >&6; }
82015
82016if test -n "$LUA_CFLAGS"; then
82017    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
82018 elif test -n "$PKG_CONFIG"; then
82019    if test -n "$PKG_CONFIG" && \
82020    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
82021  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
82022  ac_status=$?
82023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82024  test $ac_status = 0; }; then
82025  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
82026		      test "x$?" != "x0" && pkg_failed=yes
82027else
82028  pkg_failed=yes
82029fi
82030 else
82031    pkg_failed=untried
82032fi
82033if test -n "$LUA_LIBS"; then
82034    pkg_cv_LUA_LIBS="$LUA_LIBS"
82035 elif test -n "$PKG_CONFIG"; then
82036    if test -n "$PKG_CONFIG" && \
82037    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
82038  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
82039  ac_status=$?
82040  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82041  test $ac_status = 0; }; then
82042  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
82043		      test "x$?" != "x0" && pkg_failed=yes
82044else
82045  pkg_failed=yes
82046fi
82047 else
82048    pkg_failed=untried
82049fi
82050
82051
82052
82053if test $pkg_failed = yes; then
82054   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82055$as_echo "no" >&6; }
82056
82057if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
82058        _pkg_short_errors_supported=yes
82059else
82060        _pkg_short_errors_supported=no
82061fi
82062        if test $_pkg_short_errors_supported = yes; then
82063	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
82064        else
82065	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
82066        fi
82067	# Put the nasty error message in config.log where it belongs
82068	echo "$LUA_PKG_ERRORS" >&5
82069
82070
82071
82072pkg_failed=no
82073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
82074$as_echo_n "checking for LUA... " >&6; }
82075
82076if test -n "$LUA_CFLAGS"; then
82077    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
82078 elif test -n "$PKG_CONFIG"; then
82079    if test -n "$PKG_CONFIG" && \
82080    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
82081  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
82082  ac_status=$?
82083  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82084  test $ac_status = 0; }; then
82085  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
82086		      test "x$?" != "x0" && pkg_failed=yes
82087else
82088  pkg_failed=yes
82089fi
82090 else
82091    pkg_failed=untried
82092fi
82093if test -n "$LUA_LIBS"; then
82094    pkg_cv_LUA_LIBS="$LUA_LIBS"
82095 elif test -n "$PKG_CONFIG"; then
82096    if test -n "$PKG_CONFIG" && \
82097    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
82098  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
82099  ac_status=$?
82100  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82101  test $ac_status = 0; }; then
82102  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
82103		      test "x$?" != "x0" && pkg_failed=yes
82104else
82105  pkg_failed=yes
82106fi
82107 else
82108    pkg_failed=untried
82109fi
82110
82111
82112
82113if test $pkg_failed = yes; then
82114   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82115$as_echo "no" >&6; }
82116
82117if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
82118        _pkg_short_errors_supported=yes
82119else
82120        _pkg_short_errors_supported=no
82121fi
82122        if test $_pkg_short_errors_supported = yes; then
82123	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
82124        else
82125	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
82126        fi
82127	# Put the nasty error message in config.log where it belongs
82128	echo "$LUA_PKG_ERRORS" >&5
82129
82130	with_liblua="no (pkg-config cannot find liblua)"
82131
82132elif test $pkg_failed = untried; then
82133     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82134$as_echo "no" >&6; }
82135	with_liblua="no (pkg-config cannot find liblua)"
82136
82137else
82138	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
82139	LUA_LIBS=$pkg_cv_LUA_LIBS
82140        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
82141$as_echo "yes" >&6; }
82142	with_liblua="yes"
82143fi
82144
82145
82146elif test $pkg_failed = untried; then
82147     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82148$as_echo "no" >&6; }
82149
82150
82151pkg_failed=no
82152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
82153$as_echo_n "checking for LUA... " >&6; }
82154
82155if test -n "$LUA_CFLAGS"; then
82156    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
82157 elif test -n "$PKG_CONFIG"; then
82158    if test -n "$PKG_CONFIG" && \
82159    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
82160  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
82161  ac_status=$?
82162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82163  test $ac_status = 0; }; then
82164  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
82165		      test "x$?" != "x0" && pkg_failed=yes
82166else
82167  pkg_failed=yes
82168fi
82169 else
82170    pkg_failed=untried
82171fi
82172if test -n "$LUA_LIBS"; then
82173    pkg_cv_LUA_LIBS="$LUA_LIBS"
82174 elif test -n "$PKG_CONFIG"; then
82175    if test -n "$PKG_CONFIG" && \
82176    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
82177  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
82178  ac_status=$?
82179  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82180  test $ac_status = 0; }; then
82181  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
82182		      test "x$?" != "x0" && pkg_failed=yes
82183else
82184  pkg_failed=yes
82185fi
82186 else
82187    pkg_failed=untried
82188fi
82189
82190
82191
82192if test $pkg_failed = yes; then
82193   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82194$as_echo "no" >&6; }
82195
82196if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
82197        _pkg_short_errors_supported=yes
82198else
82199        _pkg_short_errors_supported=no
82200fi
82201        if test $_pkg_short_errors_supported = yes; then
82202	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
82203        else
82204	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
82205        fi
82206	# Put the nasty error message in config.log where it belongs
82207	echo "$LUA_PKG_ERRORS" >&5
82208
82209	with_liblua="no (pkg-config cannot find liblua)"
82210
82211elif test $pkg_failed = untried; then
82212     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82213$as_echo "no" >&6; }
82214	with_liblua="no (pkg-config cannot find liblua)"
82215
82216else
82217	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
82218	LUA_LIBS=$pkg_cv_LUA_LIBS
82219        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
82220$as_echo "yes" >&6; }
82221	with_liblua="yes"
82222fi
82223
82224
82225else
82226	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
82227	LUA_LIBS=$pkg_cv_LUA_LIBS
82228        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
82229$as_echo "yes" >&6; }
82230	with_liblua="yes"
82231fi
82232
82233
82234else
82235	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
82236	LUA_LIBS=$pkg_cv_LUA_LIBS
82237        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
82238$as_echo "yes" >&6; }
82239	with_liblua="yes"
82240fi
82241
82242
82243elif test $pkg_failed = untried; then
82244     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82245$as_echo "no" >&6; }
82246
82247
82248pkg_failed=no
82249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
82250$as_echo_n "checking for LUA... " >&6; }
82251
82252if test -n "$LUA_CFLAGS"; then
82253    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
82254 elif test -n "$PKG_CONFIG"; then
82255    if test -n "$PKG_CONFIG" && \
82256    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
82257  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
82258  ac_status=$?
82259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82260  test $ac_status = 0; }; then
82261  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
82262		      test "x$?" != "x0" && pkg_failed=yes
82263else
82264  pkg_failed=yes
82265fi
82266 else
82267    pkg_failed=untried
82268fi
82269if test -n "$LUA_LIBS"; then
82270    pkg_cv_LUA_LIBS="$LUA_LIBS"
82271 elif test -n "$PKG_CONFIG"; then
82272    if test -n "$PKG_CONFIG" && \
82273    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
82274  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
82275  ac_status=$?
82276  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82277  test $ac_status = 0; }; then
82278  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
82279		      test "x$?" != "x0" && pkg_failed=yes
82280else
82281  pkg_failed=yes
82282fi
82283 else
82284    pkg_failed=untried
82285fi
82286
82287
82288
82289if test $pkg_failed = yes; then
82290   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82291$as_echo "no" >&6; }
82292
82293if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
82294        _pkg_short_errors_supported=yes
82295else
82296        _pkg_short_errors_supported=no
82297fi
82298        if test $_pkg_short_errors_supported = yes; then
82299	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
82300        else
82301	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
82302        fi
82303	# Put the nasty error message in config.log where it belongs
82304	echo "$LUA_PKG_ERRORS" >&5
82305
82306
82307
82308pkg_failed=no
82309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
82310$as_echo_n "checking for LUA... " >&6; }
82311
82312if test -n "$LUA_CFLAGS"; then
82313    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
82314 elif test -n "$PKG_CONFIG"; then
82315    if test -n "$PKG_CONFIG" && \
82316    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
82317  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
82318  ac_status=$?
82319  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82320  test $ac_status = 0; }; then
82321  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
82322		      test "x$?" != "x0" && pkg_failed=yes
82323else
82324  pkg_failed=yes
82325fi
82326 else
82327    pkg_failed=untried
82328fi
82329if test -n "$LUA_LIBS"; then
82330    pkg_cv_LUA_LIBS="$LUA_LIBS"
82331 elif test -n "$PKG_CONFIG"; then
82332    if test -n "$PKG_CONFIG" && \
82333    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
82334  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
82335  ac_status=$?
82336  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82337  test $ac_status = 0; }; then
82338  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
82339		      test "x$?" != "x0" && pkg_failed=yes
82340else
82341  pkg_failed=yes
82342fi
82343 else
82344    pkg_failed=untried
82345fi
82346
82347
82348
82349if test $pkg_failed = yes; then
82350   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82351$as_echo "no" >&6; }
82352
82353if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
82354        _pkg_short_errors_supported=yes
82355else
82356        _pkg_short_errors_supported=no
82357fi
82358        if test $_pkg_short_errors_supported = yes; then
82359	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
82360        else
82361	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
82362        fi
82363	# Put the nasty error message in config.log where it belongs
82364	echo "$LUA_PKG_ERRORS" >&5
82365
82366
82367
82368pkg_failed=no
82369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
82370$as_echo_n "checking for LUA... " >&6; }
82371
82372if test -n "$LUA_CFLAGS"; then
82373    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
82374 elif test -n "$PKG_CONFIG"; then
82375    if test -n "$PKG_CONFIG" && \
82376    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
82377  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
82378  ac_status=$?
82379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82380  test $ac_status = 0; }; then
82381  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
82382		      test "x$?" != "x0" && pkg_failed=yes
82383else
82384  pkg_failed=yes
82385fi
82386 else
82387    pkg_failed=untried
82388fi
82389if test -n "$LUA_LIBS"; then
82390    pkg_cv_LUA_LIBS="$LUA_LIBS"
82391 elif test -n "$PKG_CONFIG"; then
82392    if test -n "$PKG_CONFIG" && \
82393    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
82394  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
82395  ac_status=$?
82396  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82397  test $ac_status = 0; }; then
82398  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
82399		      test "x$?" != "x0" && pkg_failed=yes
82400else
82401  pkg_failed=yes
82402fi
82403 else
82404    pkg_failed=untried
82405fi
82406
82407
82408
82409if test $pkg_failed = yes; then
82410   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82411$as_echo "no" >&6; }
82412
82413if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
82414        _pkg_short_errors_supported=yes
82415else
82416        _pkg_short_errors_supported=no
82417fi
82418        if test $_pkg_short_errors_supported = yes; then
82419	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
82420        else
82421	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
82422        fi
82423	# Put the nasty error message in config.log where it belongs
82424	echo "$LUA_PKG_ERRORS" >&5
82425
82426	with_liblua="no (pkg-config cannot find liblua)"
82427
82428elif test $pkg_failed = untried; then
82429     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82430$as_echo "no" >&6; }
82431	with_liblua="no (pkg-config cannot find liblua)"
82432
82433else
82434	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
82435	LUA_LIBS=$pkg_cv_LUA_LIBS
82436        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
82437$as_echo "yes" >&6; }
82438	with_liblua="yes"
82439fi
82440
82441
82442elif test $pkg_failed = untried; then
82443     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82444$as_echo "no" >&6; }
82445
82446
82447pkg_failed=no
82448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
82449$as_echo_n "checking for LUA... " >&6; }
82450
82451if test -n "$LUA_CFLAGS"; then
82452    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
82453 elif test -n "$PKG_CONFIG"; then
82454    if test -n "$PKG_CONFIG" && \
82455    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
82456  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
82457  ac_status=$?
82458  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82459  test $ac_status = 0; }; then
82460  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
82461		      test "x$?" != "x0" && pkg_failed=yes
82462else
82463  pkg_failed=yes
82464fi
82465 else
82466    pkg_failed=untried
82467fi
82468if test -n "$LUA_LIBS"; then
82469    pkg_cv_LUA_LIBS="$LUA_LIBS"
82470 elif test -n "$PKG_CONFIG"; then
82471    if test -n "$PKG_CONFIG" && \
82472    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
82473  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
82474  ac_status=$?
82475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82476  test $ac_status = 0; }; then
82477  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
82478		      test "x$?" != "x0" && pkg_failed=yes
82479else
82480  pkg_failed=yes
82481fi
82482 else
82483    pkg_failed=untried
82484fi
82485
82486
82487
82488if test $pkg_failed = yes; then
82489   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82490$as_echo "no" >&6; }
82491
82492if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
82493        _pkg_short_errors_supported=yes
82494else
82495        _pkg_short_errors_supported=no
82496fi
82497        if test $_pkg_short_errors_supported = yes; then
82498	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
82499        else
82500	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
82501        fi
82502	# Put the nasty error message in config.log where it belongs
82503	echo "$LUA_PKG_ERRORS" >&5
82504
82505	with_liblua="no (pkg-config cannot find liblua)"
82506
82507elif test $pkg_failed = untried; then
82508     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82509$as_echo "no" >&6; }
82510	with_liblua="no (pkg-config cannot find liblua)"
82511
82512else
82513	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
82514	LUA_LIBS=$pkg_cv_LUA_LIBS
82515        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
82516$as_echo "yes" >&6; }
82517	with_liblua="yes"
82518fi
82519
82520
82521else
82522	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
82523	LUA_LIBS=$pkg_cv_LUA_LIBS
82524        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
82525$as_echo "yes" >&6; }
82526	with_liblua="yes"
82527fi
82528
82529
82530elif test $pkg_failed = untried; then
82531     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82532$as_echo "no" >&6; }
82533
82534
82535pkg_failed=no
82536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
82537$as_echo_n "checking for LUA... " >&6; }
82538
82539if test -n "$LUA_CFLAGS"; then
82540    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
82541 elif test -n "$PKG_CONFIG"; then
82542    if test -n "$PKG_CONFIG" && \
82543    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
82544  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
82545  ac_status=$?
82546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82547  test $ac_status = 0; }; then
82548  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
82549		      test "x$?" != "x0" && pkg_failed=yes
82550else
82551  pkg_failed=yes
82552fi
82553 else
82554    pkg_failed=untried
82555fi
82556if test -n "$LUA_LIBS"; then
82557    pkg_cv_LUA_LIBS="$LUA_LIBS"
82558 elif test -n "$PKG_CONFIG"; then
82559    if test -n "$PKG_CONFIG" && \
82560    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
82561  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
82562  ac_status=$?
82563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82564  test $ac_status = 0; }; then
82565  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
82566		      test "x$?" != "x0" && pkg_failed=yes
82567else
82568  pkg_failed=yes
82569fi
82570 else
82571    pkg_failed=untried
82572fi
82573
82574
82575
82576if test $pkg_failed = yes; then
82577   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82578$as_echo "no" >&6; }
82579
82580if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
82581        _pkg_short_errors_supported=yes
82582else
82583        _pkg_short_errors_supported=no
82584fi
82585        if test $_pkg_short_errors_supported = yes; then
82586	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
82587        else
82588	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
82589        fi
82590	# Put the nasty error message in config.log where it belongs
82591	echo "$LUA_PKG_ERRORS" >&5
82592
82593
82594
82595pkg_failed=no
82596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
82597$as_echo_n "checking for LUA... " >&6; }
82598
82599if test -n "$LUA_CFLAGS"; then
82600    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
82601 elif test -n "$PKG_CONFIG"; then
82602    if test -n "$PKG_CONFIG" && \
82603    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
82604  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
82605  ac_status=$?
82606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82607  test $ac_status = 0; }; then
82608  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
82609		      test "x$?" != "x0" && pkg_failed=yes
82610else
82611  pkg_failed=yes
82612fi
82613 else
82614    pkg_failed=untried
82615fi
82616if test -n "$LUA_LIBS"; then
82617    pkg_cv_LUA_LIBS="$LUA_LIBS"
82618 elif test -n "$PKG_CONFIG"; then
82619    if test -n "$PKG_CONFIG" && \
82620    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
82621  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
82622  ac_status=$?
82623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82624  test $ac_status = 0; }; then
82625  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
82626		      test "x$?" != "x0" && pkg_failed=yes
82627else
82628  pkg_failed=yes
82629fi
82630 else
82631    pkg_failed=untried
82632fi
82633
82634
82635
82636if test $pkg_failed = yes; then
82637   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82638$as_echo "no" >&6; }
82639
82640if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
82641        _pkg_short_errors_supported=yes
82642else
82643        _pkg_short_errors_supported=no
82644fi
82645        if test $_pkg_short_errors_supported = yes; then
82646	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
82647        else
82648	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
82649        fi
82650	# Put the nasty error message in config.log where it belongs
82651	echo "$LUA_PKG_ERRORS" >&5
82652
82653	with_liblua="no (pkg-config cannot find liblua)"
82654
82655elif test $pkg_failed = untried; then
82656     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82657$as_echo "no" >&6; }
82658	with_liblua="no (pkg-config cannot find liblua)"
82659
82660else
82661	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
82662	LUA_LIBS=$pkg_cv_LUA_LIBS
82663        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
82664$as_echo "yes" >&6; }
82665	with_liblua="yes"
82666fi
82667
82668
82669elif test $pkg_failed = untried; then
82670     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82671$as_echo "no" >&6; }
82672
82673
82674pkg_failed=no
82675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
82676$as_echo_n "checking for LUA... " >&6; }
82677
82678if test -n "$LUA_CFLAGS"; then
82679    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
82680 elif test -n "$PKG_CONFIG"; then
82681    if test -n "$PKG_CONFIG" && \
82682    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
82683  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
82684  ac_status=$?
82685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82686  test $ac_status = 0; }; then
82687  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
82688		      test "x$?" != "x0" && pkg_failed=yes
82689else
82690  pkg_failed=yes
82691fi
82692 else
82693    pkg_failed=untried
82694fi
82695if test -n "$LUA_LIBS"; then
82696    pkg_cv_LUA_LIBS="$LUA_LIBS"
82697 elif test -n "$PKG_CONFIG"; then
82698    if test -n "$PKG_CONFIG" && \
82699    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
82700  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
82701  ac_status=$?
82702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82703  test $ac_status = 0; }; then
82704  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
82705		      test "x$?" != "x0" && pkg_failed=yes
82706else
82707  pkg_failed=yes
82708fi
82709 else
82710    pkg_failed=untried
82711fi
82712
82713
82714
82715if test $pkg_failed = yes; then
82716   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82717$as_echo "no" >&6; }
82718
82719if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
82720        _pkg_short_errors_supported=yes
82721else
82722        _pkg_short_errors_supported=no
82723fi
82724        if test $_pkg_short_errors_supported = yes; then
82725	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
82726        else
82727	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
82728        fi
82729	# Put the nasty error message in config.log where it belongs
82730	echo "$LUA_PKG_ERRORS" >&5
82731
82732	with_liblua="no (pkg-config cannot find liblua)"
82733
82734elif test $pkg_failed = untried; then
82735     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82736$as_echo "no" >&6; }
82737	with_liblua="no (pkg-config cannot find liblua)"
82738
82739else
82740	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
82741	LUA_LIBS=$pkg_cv_LUA_LIBS
82742        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
82743$as_echo "yes" >&6; }
82744	with_liblua="yes"
82745fi
82746
82747
82748else
82749	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
82750	LUA_LIBS=$pkg_cv_LUA_LIBS
82751        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
82752$as_echo "yes" >&6; }
82753	with_liblua="yes"
82754fi
82755
82756
82757else
82758	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
82759	LUA_LIBS=$pkg_cv_LUA_LIBS
82760        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
82761$as_echo "yes" >&6; }
82762	with_liblua="yes"
82763fi
82764
82765
82766else
82767	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
82768	LUA_LIBS=$pkg_cv_LUA_LIBS
82769        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
82770$as_echo "yes" >&6; }
82771	with_liblua="yes"
82772fi
82773
82774
82775else
82776	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
82777	LUA_LIBS=$pkg_cv_LUA_LIBS
82778        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
82779$as_echo "yes" >&6; }
82780	with_liblua="yes"
82781fi
82782
82783
82784else
82785	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
82786	LUA_LIBS=$pkg_cv_LUA_LIBS
82787        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
82788$as_echo "yes" >&6; }
82789	with_liblua="yes"
82790fi
82791
82792
82793else
82794	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
82795	LUA_LIBS=$pkg_cv_LUA_LIBS
82796        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
82797$as_echo "yes" >&6; }
82798	with_liblua="yes"
82799fi
82800
82801
82802else
82803	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
82804	LUA_LIBS=$pkg_cv_LUA_LIBS
82805        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
82806$as_echo "yes" >&6; }
82807	with_liblua="yes"
82808fi
82809
82810
82811elif test $pkg_failed = untried; then
82812     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82813$as_echo "no" >&6; }
82814
82815
82816pkg_failed=no
82817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
82818$as_echo_n "checking for LUA... " >&6; }
82819
82820if test -n "$LUA_CFLAGS"; then
82821    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
82822 elif test -n "$PKG_CONFIG"; then
82823    if test -n "$PKG_CONFIG" && \
82824    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.3\""; } >&5
82825  ($PKG_CONFIG --exists --print-errors "lua5.3") 2>&5
82826  ac_status=$?
82827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82828  test $ac_status = 0; }; then
82829  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.3" 2>/dev/null`
82830		      test "x$?" != "x0" && pkg_failed=yes
82831else
82832  pkg_failed=yes
82833fi
82834 else
82835    pkg_failed=untried
82836fi
82837if test -n "$LUA_LIBS"; then
82838    pkg_cv_LUA_LIBS="$LUA_LIBS"
82839 elif test -n "$PKG_CONFIG"; then
82840    if test -n "$PKG_CONFIG" && \
82841    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.3\""; } >&5
82842  ($PKG_CONFIG --exists --print-errors "lua5.3") 2>&5
82843  ac_status=$?
82844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82845  test $ac_status = 0; }; then
82846  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.3" 2>/dev/null`
82847		      test "x$?" != "x0" && pkg_failed=yes
82848else
82849  pkg_failed=yes
82850fi
82851 else
82852    pkg_failed=untried
82853fi
82854
82855
82856
82857if test $pkg_failed = yes; then
82858   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82859$as_echo "no" >&6; }
82860
82861if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
82862        _pkg_short_errors_supported=yes
82863else
82864        _pkg_short_errors_supported=no
82865fi
82866        if test $_pkg_short_errors_supported = yes; then
82867	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.3" 2>&1`
82868        else
82869	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.3" 2>&1`
82870        fi
82871	# Put the nasty error message in config.log where it belongs
82872	echo "$LUA_PKG_ERRORS" >&5
82873
82874
82875
82876pkg_failed=no
82877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
82878$as_echo_n "checking for LUA... " >&6; }
82879
82880if test -n "$LUA_CFLAGS"; then
82881    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
82882 elif test -n "$PKG_CONFIG"; then
82883    if test -n "$PKG_CONFIG" && \
82884    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua53\""; } >&5
82885  ($PKG_CONFIG --exists --print-errors "lua53") 2>&5
82886  ac_status=$?
82887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82888  test $ac_status = 0; }; then
82889  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua53" 2>/dev/null`
82890		      test "x$?" != "x0" && pkg_failed=yes
82891else
82892  pkg_failed=yes
82893fi
82894 else
82895    pkg_failed=untried
82896fi
82897if test -n "$LUA_LIBS"; then
82898    pkg_cv_LUA_LIBS="$LUA_LIBS"
82899 elif test -n "$PKG_CONFIG"; then
82900    if test -n "$PKG_CONFIG" && \
82901    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua53\""; } >&5
82902  ($PKG_CONFIG --exists --print-errors "lua53") 2>&5
82903  ac_status=$?
82904  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82905  test $ac_status = 0; }; then
82906  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua53" 2>/dev/null`
82907		      test "x$?" != "x0" && pkg_failed=yes
82908else
82909  pkg_failed=yes
82910fi
82911 else
82912    pkg_failed=untried
82913fi
82914
82915
82916
82917if test $pkg_failed = yes; then
82918   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82919$as_echo "no" >&6; }
82920
82921if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
82922        _pkg_short_errors_supported=yes
82923else
82924        _pkg_short_errors_supported=no
82925fi
82926        if test $_pkg_short_errors_supported = yes; then
82927	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua53" 2>&1`
82928        else
82929	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua53" 2>&1`
82930        fi
82931	# Put the nasty error message in config.log where it belongs
82932	echo "$LUA_PKG_ERRORS" >&5
82933
82934
82935
82936pkg_failed=no
82937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
82938$as_echo_n "checking for LUA... " >&6; }
82939
82940if test -n "$LUA_CFLAGS"; then
82941    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
82942 elif test -n "$PKG_CONFIG"; then
82943    if test -n "$PKG_CONFIG" && \
82944    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
82945  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
82946  ac_status=$?
82947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82948  test $ac_status = 0; }; then
82949  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.2" 2>/dev/null`
82950		      test "x$?" != "x0" && pkg_failed=yes
82951else
82952  pkg_failed=yes
82953fi
82954 else
82955    pkg_failed=untried
82956fi
82957if test -n "$LUA_LIBS"; then
82958    pkg_cv_LUA_LIBS="$LUA_LIBS"
82959 elif test -n "$PKG_CONFIG"; then
82960    if test -n "$PKG_CONFIG" && \
82961    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
82962  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
82963  ac_status=$?
82964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82965  test $ac_status = 0; }; then
82966  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.2" 2>/dev/null`
82967		      test "x$?" != "x0" && pkg_failed=yes
82968else
82969  pkg_failed=yes
82970fi
82971 else
82972    pkg_failed=untried
82973fi
82974
82975
82976
82977if test $pkg_failed = yes; then
82978   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82979$as_echo "no" >&6; }
82980
82981if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
82982        _pkg_short_errors_supported=yes
82983else
82984        _pkg_short_errors_supported=no
82985fi
82986        if test $_pkg_short_errors_supported = yes; then
82987	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.2" 2>&1`
82988        else
82989	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.2" 2>&1`
82990        fi
82991	# Put the nasty error message in config.log where it belongs
82992	echo "$LUA_PKG_ERRORS" >&5
82993
82994
82995
82996pkg_failed=no
82997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
82998$as_echo_n "checking for LUA... " >&6; }
82999
83000if test -n "$LUA_CFLAGS"; then
83001    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
83002 elif test -n "$PKG_CONFIG"; then
83003    if test -n "$PKG_CONFIG" && \
83004    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
83005  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
83006  ac_status=$?
83007  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83008  test $ac_status = 0; }; then
83009  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
83010		      test "x$?" != "x0" && pkg_failed=yes
83011else
83012  pkg_failed=yes
83013fi
83014 else
83015    pkg_failed=untried
83016fi
83017if test -n "$LUA_LIBS"; then
83018    pkg_cv_LUA_LIBS="$LUA_LIBS"
83019 elif test -n "$PKG_CONFIG"; then
83020    if test -n "$PKG_CONFIG" && \
83021    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
83022  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
83023  ac_status=$?
83024  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83025  test $ac_status = 0; }; then
83026  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
83027		      test "x$?" != "x0" && pkg_failed=yes
83028else
83029  pkg_failed=yes
83030fi
83031 else
83032    pkg_failed=untried
83033fi
83034
83035
83036
83037if test $pkg_failed = yes; then
83038   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83039$as_echo "no" >&6; }
83040
83041if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
83042        _pkg_short_errors_supported=yes
83043else
83044        _pkg_short_errors_supported=no
83045fi
83046        if test $_pkg_short_errors_supported = yes; then
83047	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
83048        else
83049	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
83050        fi
83051	# Put the nasty error message in config.log where it belongs
83052	echo "$LUA_PKG_ERRORS" >&5
83053
83054
83055
83056pkg_failed=no
83057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
83058$as_echo_n "checking for LUA... " >&6; }
83059
83060if test -n "$LUA_CFLAGS"; then
83061    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
83062 elif test -n "$PKG_CONFIG"; then
83063    if test -n "$PKG_CONFIG" && \
83064    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
83065  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
83066  ac_status=$?
83067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83068  test $ac_status = 0; }; then
83069  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
83070		      test "x$?" != "x0" && pkg_failed=yes
83071else
83072  pkg_failed=yes
83073fi
83074 else
83075    pkg_failed=untried
83076fi
83077if test -n "$LUA_LIBS"; then
83078    pkg_cv_LUA_LIBS="$LUA_LIBS"
83079 elif test -n "$PKG_CONFIG"; then
83080    if test -n "$PKG_CONFIG" && \
83081    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
83082  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
83083  ac_status=$?
83084  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83085  test $ac_status = 0; }; then
83086  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
83087		      test "x$?" != "x0" && pkg_failed=yes
83088else
83089  pkg_failed=yes
83090fi
83091 else
83092    pkg_failed=untried
83093fi
83094
83095
83096
83097if test $pkg_failed = yes; then
83098   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83099$as_echo "no" >&6; }
83100
83101if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
83102        _pkg_short_errors_supported=yes
83103else
83104        _pkg_short_errors_supported=no
83105fi
83106        if test $_pkg_short_errors_supported = yes; then
83107	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
83108        else
83109	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
83110        fi
83111	# Put the nasty error message in config.log where it belongs
83112	echo "$LUA_PKG_ERRORS" >&5
83113
83114
83115
83116pkg_failed=no
83117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
83118$as_echo_n "checking for LUA... " >&6; }
83119
83120if test -n "$LUA_CFLAGS"; then
83121    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
83122 elif test -n "$PKG_CONFIG"; then
83123    if test -n "$PKG_CONFIG" && \
83124    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
83125  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
83126  ac_status=$?
83127  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83128  test $ac_status = 0; }; then
83129  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
83130		      test "x$?" != "x0" && pkg_failed=yes
83131else
83132  pkg_failed=yes
83133fi
83134 else
83135    pkg_failed=untried
83136fi
83137if test -n "$LUA_LIBS"; then
83138    pkg_cv_LUA_LIBS="$LUA_LIBS"
83139 elif test -n "$PKG_CONFIG"; then
83140    if test -n "$PKG_CONFIG" && \
83141    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
83142  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
83143  ac_status=$?
83144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83145  test $ac_status = 0; }; then
83146  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
83147		      test "x$?" != "x0" && pkg_failed=yes
83148else
83149  pkg_failed=yes
83150fi
83151 else
83152    pkg_failed=untried
83153fi
83154
83155
83156
83157if test $pkg_failed = yes; then
83158   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83159$as_echo "no" >&6; }
83160
83161if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
83162        _pkg_short_errors_supported=yes
83163else
83164        _pkg_short_errors_supported=no
83165fi
83166        if test $_pkg_short_errors_supported = yes; then
83167	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
83168        else
83169	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
83170        fi
83171	# Put the nasty error message in config.log where it belongs
83172	echo "$LUA_PKG_ERRORS" >&5
83173
83174
83175
83176pkg_failed=no
83177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
83178$as_echo_n "checking for LUA... " >&6; }
83179
83180if test -n "$LUA_CFLAGS"; then
83181    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
83182 elif test -n "$PKG_CONFIG"; then
83183    if test -n "$PKG_CONFIG" && \
83184    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
83185  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
83186  ac_status=$?
83187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83188  test $ac_status = 0; }; then
83189  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
83190		      test "x$?" != "x0" && pkg_failed=yes
83191else
83192  pkg_failed=yes
83193fi
83194 else
83195    pkg_failed=untried
83196fi
83197if test -n "$LUA_LIBS"; then
83198    pkg_cv_LUA_LIBS="$LUA_LIBS"
83199 elif test -n "$PKG_CONFIG"; then
83200    if test -n "$PKG_CONFIG" && \
83201    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
83202  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
83203  ac_status=$?
83204  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83205  test $ac_status = 0; }; then
83206  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
83207		      test "x$?" != "x0" && pkg_failed=yes
83208else
83209  pkg_failed=yes
83210fi
83211 else
83212    pkg_failed=untried
83213fi
83214
83215
83216
83217if test $pkg_failed = yes; then
83218   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83219$as_echo "no" >&6; }
83220
83221if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
83222        _pkg_short_errors_supported=yes
83223else
83224        _pkg_short_errors_supported=no
83225fi
83226        if test $_pkg_short_errors_supported = yes; then
83227	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
83228        else
83229	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
83230        fi
83231	# Put the nasty error message in config.log where it belongs
83232	echo "$LUA_PKG_ERRORS" >&5
83233
83234
83235
83236pkg_failed=no
83237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
83238$as_echo_n "checking for LUA... " >&6; }
83239
83240if test -n "$LUA_CFLAGS"; then
83241    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
83242 elif test -n "$PKG_CONFIG"; then
83243    if test -n "$PKG_CONFIG" && \
83244    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
83245  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
83246  ac_status=$?
83247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83248  test $ac_status = 0; }; then
83249  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
83250		      test "x$?" != "x0" && pkg_failed=yes
83251else
83252  pkg_failed=yes
83253fi
83254 else
83255    pkg_failed=untried
83256fi
83257if test -n "$LUA_LIBS"; then
83258    pkg_cv_LUA_LIBS="$LUA_LIBS"
83259 elif test -n "$PKG_CONFIG"; then
83260    if test -n "$PKG_CONFIG" && \
83261    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
83262  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
83263  ac_status=$?
83264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83265  test $ac_status = 0; }; then
83266  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
83267		      test "x$?" != "x0" && pkg_failed=yes
83268else
83269  pkg_failed=yes
83270fi
83271 else
83272    pkg_failed=untried
83273fi
83274
83275
83276
83277if test $pkg_failed = yes; then
83278   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83279$as_echo "no" >&6; }
83280
83281if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
83282        _pkg_short_errors_supported=yes
83283else
83284        _pkg_short_errors_supported=no
83285fi
83286        if test $_pkg_short_errors_supported = yes; then
83287	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
83288        else
83289	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
83290        fi
83291	# Put the nasty error message in config.log where it belongs
83292	echo "$LUA_PKG_ERRORS" >&5
83293
83294	with_liblua="no (pkg-config cannot find liblua)"
83295
83296elif test $pkg_failed = untried; then
83297     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83298$as_echo "no" >&6; }
83299	with_liblua="no (pkg-config cannot find liblua)"
83300
83301else
83302	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
83303	LUA_LIBS=$pkg_cv_LUA_LIBS
83304        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
83305$as_echo "yes" >&6; }
83306	with_liblua="yes"
83307fi
83308
83309
83310elif test $pkg_failed = untried; then
83311     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83312$as_echo "no" >&6; }
83313
83314
83315pkg_failed=no
83316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
83317$as_echo_n "checking for LUA... " >&6; }
83318
83319if test -n "$LUA_CFLAGS"; then
83320    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
83321 elif test -n "$PKG_CONFIG"; then
83322    if test -n "$PKG_CONFIG" && \
83323    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
83324  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
83325  ac_status=$?
83326  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83327  test $ac_status = 0; }; then
83328  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
83329		      test "x$?" != "x0" && pkg_failed=yes
83330else
83331  pkg_failed=yes
83332fi
83333 else
83334    pkg_failed=untried
83335fi
83336if test -n "$LUA_LIBS"; then
83337    pkg_cv_LUA_LIBS="$LUA_LIBS"
83338 elif test -n "$PKG_CONFIG"; then
83339    if test -n "$PKG_CONFIG" && \
83340    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
83341  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
83342  ac_status=$?
83343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83344  test $ac_status = 0; }; then
83345  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
83346		      test "x$?" != "x0" && pkg_failed=yes
83347else
83348  pkg_failed=yes
83349fi
83350 else
83351    pkg_failed=untried
83352fi
83353
83354
83355
83356if test $pkg_failed = yes; then
83357   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83358$as_echo "no" >&6; }
83359
83360if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
83361        _pkg_short_errors_supported=yes
83362else
83363        _pkg_short_errors_supported=no
83364fi
83365        if test $_pkg_short_errors_supported = yes; then
83366	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
83367        else
83368	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
83369        fi
83370	# Put the nasty error message in config.log where it belongs
83371	echo "$LUA_PKG_ERRORS" >&5
83372
83373	with_liblua="no (pkg-config cannot find liblua)"
83374
83375elif test $pkg_failed = untried; then
83376     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83377$as_echo "no" >&6; }
83378	with_liblua="no (pkg-config cannot find liblua)"
83379
83380else
83381	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
83382	LUA_LIBS=$pkg_cv_LUA_LIBS
83383        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
83384$as_echo "yes" >&6; }
83385	with_liblua="yes"
83386fi
83387
83388
83389else
83390	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
83391	LUA_LIBS=$pkg_cv_LUA_LIBS
83392        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
83393$as_echo "yes" >&6; }
83394	with_liblua="yes"
83395fi
83396
83397
83398elif test $pkg_failed = untried; then
83399     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83400$as_echo "no" >&6; }
83401
83402
83403pkg_failed=no
83404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
83405$as_echo_n "checking for LUA... " >&6; }
83406
83407if test -n "$LUA_CFLAGS"; then
83408    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
83409 elif test -n "$PKG_CONFIG"; then
83410    if test -n "$PKG_CONFIG" && \
83411    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
83412  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
83413  ac_status=$?
83414  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83415  test $ac_status = 0; }; then
83416  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
83417		      test "x$?" != "x0" && pkg_failed=yes
83418else
83419  pkg_failed=yes
83420fi
83421 else
83422    pkg_failed=untried
83423fi
83424if test -n "$LUA_LIBS"; then
83425    pkg_cv_LUA_LIBS="$LUA_LIBS"
83426 elif test -n "$PKG_CONFIG"; then
83427    if test -n "$PKG_CONFIG" && \
83428    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
83429  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
83430  ac_status=$?
83431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83432  test $ac_status = 0; }; then
83433  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
83434		      test "x$?" != "x0" && pkg_failed=yes
83435else
83436  pkg_failed=yes
83437fi
83438 else
83439    pkg_failed=untried
83440fi
83441
83442
83443
83444if test $pkg_failed = yes; then
83445   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83446$as_echo "no" >&6; }
83447
83448if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
83449        _pkg_short_errors_supported=yes
83450else
83451        _pkg_short_errors_supported=no
83452fi
83453        if test $_pkg_short_errors_supported = yes; then
83454	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
83455        else
83456	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
83457        fi
83458	# Put the nasty error message in config.log where it belongs
83459	echo "$LUA_PKG_ERRORS" >&5
83460
83461
83462
83463pkg_failed=no
83464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
83465$as_echo_n "checking for LUA... " >&6; }
83466
83467if test -n "$LUA_CFLAGS"; then
83468    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
83469 elif test -n "$PKG_CONFIG"; then
83470    if test -n "$PKG_CONFIG" && \
83471    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
83472  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
83473  ac_status=$?
83474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83475  test $ac_status = 0; }; then
83476  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
83477		      test "x$?" != "x0" && pkg_failed=yes
83478else
83479  pkg_failed=yes
83480fi
83481 else
83482    pkg_failed=untried
83483fi
83484if test -n "$LUA_LIBS"; then
83485    pkg_cv_LUA_LIBS="$LUA_LIBS"
83486 elif test -n "$PKG_CONFIG"; then
83487    if test -n "$PKG_CONFIG" && \
83488    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
83489  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
83490  ac_status=$?
83491  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83492  test $ac_status = 0; }; then
83493  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
83494		      test "x$?" != "x0" && pkg_failed=yes
83495else
83496  pkg_failed=yes
83497fi
83498 else
83499    pkg_failed=untried
83500fi
83501
83502
83503
83504if test $pkg_failed = yes; then
83505   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83506$as_echo "no" >&6; }
83507
83508if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
83509        _pkg_short_errors_supported=yes
83510else
83511        _pkg_short_errors_supported=no
83512fi
83513        if test $_pkg_short_errors_supported = yes; then
83514	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
83515        else
83516	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
83517        fi
83518	# Put the nasty error message in config.log where it belongs
83519	echo "$LUA_PKG_ERRORS" >&5
83520
83521	with_liblua="no (pkg-config cannot find liblua)"
83522
83523elif test $pkg_failed = untried; then
83524     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83525$as_echo "no" >&6; }
83526	with_liblua="no (pkg-config cannot find liblua)"
83527
83528else
83529	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
83530	LUA_LIBS=$pkg_cv_LUA_LIBS
83531        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
83532$as_echo "yes" >&6; }
83533	with_liblua="yes"
83534fi
83535
83536
83537elif test $pkg_failed = untried; then
83538     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83539$as_echo "no" >&6; }
83540
83541
83542pkg_failed=no
83543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
83544$as_echo_n "checking for LUA... " >&6; }
83545
83546if test -n "$LUA_CFLAGS"; then
83547    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
83548 elif test -n "$PKG_CONFIG"; then
83549    if test -n "$PKG_CONFIG" && \
83550    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
83551  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
83552  ac_status=$?
83553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83554  test $ac_status = 0; }; then
83555  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
83556		      test "x$?" != "x0" && pkg_failed=yes
83557else
83558  pkg_failed=yes
83559fi
83560 else
83561    pkg_failed=untried
83562fi
83563if test -n "$LUA_LIBS"; then
83564    pkg_cv_LUA_LIBS="$LUA_LIBS"
83565 elif test -n "$PKG_CONFIG"; then
83566    if test -n "$PKG_CONFIG" && \
83567    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
83568  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
83569  ac_status=$?
83570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83571  test $ac_status = 0; }; then
83572  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
83573		      test "x$?" != "x0" && pkg_failed=yes
83574else
83575  pkg_failed=yes
83576fi
83577 else
83578    pkg_failed=untried
83579fi
83580
83581
83582
83583if test $pkg_failed = yes; then
83584   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83585$as_echo "no" >&6; }
83586
83587if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
83588        _pkg_short_errors_supported=yes
83589else
83590        _pkg_short_errors_supported=no
83591fi
83592        if test $_pkg_short_errors_supported = yes; then
83593	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
83594        else
83595	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
83596        fi
83597	# Put the nasty error message in config.log where it belongs
83598	echo "$LUA_PKG_ERRORS" >&5
83599
83600	with_liblua="no (pkg-config cannot find liblua)"
83601
83602elif test $pkg_failed = untried; then
83603     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83604$as_echo "no" >&6; }
83605	with_liblua="no (pkg-config cannot find liblua)"
83606
83607else
83608	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
83609	LUA_LIBS=$pkg_cv_LUA_LIBS
83610        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
83611$as_echo "yes" >&6; }
83612	with_liblua="yes"
83613fi
83614
83615
83616else
83617	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
83618	LUA_LIBS=$pkg_cv_LUA_LIBS
83619        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
83620$as_echo "yes" >&6; }
83621	with_liblua="yes"
83622fi
83623
83624
83625else
83626	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
83627	LUA_LIBS=$pkg_cv_LUA_LIBS
83628        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
83629$as_echo "yes" >&6; }
83630	with_liblua="yes"
83631fi
83632
83633
83634elif test $pkg_failed = untried; then
83635     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83636$as_echo "no" >&6; }
83637
83638
83639pkg_failed=no
83640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
83641$as_echo_n "checking for LUA... " >&6; }
83642
83643if test -n "$LUA_CFLAGS"; then
83644    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
83645 elif test -n "$PKG_CONFIG"; then
83646    if test -n "$PKG_CONFIG" && \
83647    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
83648  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
83649  ac_status=$?
83650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83651  test $ac_status = 0; }; then
83652  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
83653		      test "x$?" != "x0" && pkg_failed=yes
83654else
83655  pkg_failed=yes
83656fi
83657 else
83658    pkg_failed=untried
83659fi
83660if test -n "$LUA_LIBS"; then
83661    pkg_cv_LUA_LIBS="$LUA_LIBS"
83662 elif test -n "$PKG_CONFIG"; then
83663    if test -n "$PKG_CONFIG" && \
83664    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
83665  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
83666  ac_status=$?
83667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83668  test $ac_status = 0; }; then
83669  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
83670		      test "x$?" != "x0" && pkg_failed=yes
83671else
83672  pkg_failed=yes
83673fi
83674 else
83675    pkg_failed=untried
83676fi
83677
83678
83679
83680if test $pkg_failed = yes; then
83681   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83682$as_echo "no" >&6; }
83683
83684if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
83685        _pkg_short_errors_supported=yes
83686else
83687        _pkg_short_errors_supported=no
83688fi
83689        if test $_pkg_short_errors_supported = yes; then
83690	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
83691        else
83692	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
83693        fi
83694	# Put the nasty error message in config.log where it belongs
83695	echo "$LUA_PKG_ERRORS" >&5
83696
83697
83698
83699pkg_failed=no
83700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
83701$as_echo_n "checking for LUA... " >&6; }
83702
83703if test -n "$LUA_CFLAGS"; then
83704    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
83705 elif test -n "$PKG_CONFIG"; then
83706    if test -n "$PKG_CONFIG" && \
83707    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
83708  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
83709  ac_status=$?
83710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83711  test $ac_status = 0; }; then
83712  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
83713		      test "x$?" != "x0" && pkg_failed=yes
83714else
83715  pkg_failed=yes
83716fi
83717 else
83718    pkg_failed=untried
83719fi
83720if test -n "$LUA_LIBS"; then
83721    pkg_cv_LUA_LIBS="$LUA_LIBS"
83722 elif test -n "$PKG_CONFIG"; then
83723    if test -n "$PKG_CONFIG" && \
83724    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
83725  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
83726  ac_status=$?
83727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83728  test $ac_status = 0; }; then
83729  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
83730		      test "x$?" != "x0" && pkg_failed=yes
83731else
83732  pkg_failed=yes
83733fi
83734 else
83735    pkg_failed=untried
83736fi
83737
83738
83739
83740if test $pkg_failed = yes; then
83741   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83742$as_echo "no" >&6; }
83743
83744if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
83745        _pkg_short_errors_supported=yes
83746else
83747        _pkg_short_errors_supported=no
83748fi
83749        if test $_pkg_short_errors_supported = yes; then
83750	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
83751        else
83752	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
83753        fi
83754	# Put the nasty error message in config.log where it belongs
83755	echo "$LUA_PKG_ERRORS" >&5
83756
83757
83758
83759pkg_failed=no
83760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
83761$as_echo_n "checking for LUA... " >&6; }
83762
83763if test -n "$LUA_CFLAGS"; then
83764    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
83765 elif test -n "$PKG_CONFIG"; then
83766    if test -n "$PKG_CONFIG" && \
83767    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
83768  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
83769  ac_status=$?
83770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83771  test $ac_status = 0; }; then
83772  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
83773		      test "x$?" != "x0" && pkg_failed=yes
83774else
83775  pkg_failed=yes
83776fi
83777 else
83778    pkg_failed=untried
83779fi
83780if test -n "$LUA_LIBS"; then
83781    pkg_cv_LUA_LIBS="$LUA_LIBS"
83782 elif test -n "$PKG_CONFIG"; then
83783    if test -n "$PKG_CONFIG" && \
83784    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
83785  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
83786  ac_status=$?
83787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83788  test $ac_status = 0; }; then
83789  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
83790		      test "x$?" != "x0" && pkg_failed=yes
83791else
83792  pkg_failed=yes
83793fi
83794 else
83795    pkg_failed=untried
83796fi
83797
83798
83799
83800if test $pkg_failed = yes; then
83801   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83802$as_echo "no" >&6; }
83803
83804if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
83805        _pkg_short_errors_supported=yes
83806else
83807        _pkg_short_errors_supported=no
83808fi
83809        if test $_pkg_short_errors_supported = yes; then
83810	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
83811        else
83812	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
83813        fi
83814	# Put the nasty error message in config.log where it belongs
83815	echo "$LUA_PKG_ERRORS" >&5
83816
83817	with_liblua="no (pkg-config cannot find liblua)"
83818
83819elif test $pkg_failed = untried; then
83820     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83821$as_echo "no" >&6; }
83822	with_liblua="no (pkg-config cannot find liblua)"
83823
83824else
83825	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
83826	LUA_LIBS=$pkg_cv_LUA_LIBS
83827        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
83828$as_echo "yes" >&6; }
83829	with_liblua="yes"
83830fi
83831
83832
83833elif test $pkg_failed = untried; then
83834     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83835$as_echo "no" >&6; }
83836
83837
83838pkg_failed=no
83839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
83840$as_echo_n "checking for LUA... " >&6; }
83841
83842if test -n "$LUA_CFLAGS"; then
83843    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
83844 elif test -n "$PKG_CONFIG"; then
83845    if test -n "$PKG_CONFIG" && \
83846    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
83847  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
83848  ac_status=$?
83849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83850  test $ac_status = 0; }; then
83851  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
83852		      test "x$?" != "x0" && pkg_failed=yes
83853else
83854  pkg_failed=yes
83855fi
83856 else
83857    pkg_failed=untried
83858fi
83859if test -n "$LUA_LIBS"; then
83860    pkg_cv_LUA_LIBS="$LUA_LIBS"
83861 elif test -n "$PKG_CONFIG"; then
83862    if test -n "$PKG_CONFIG" && \
83863    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
83864  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
83865  ac_status=$?
83866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83867  test $ac_status = 0; }; then
83868  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
83869		      test "x$?" != "x0" && pkg_failed=yes
83870else
83871  pkg_failed=yes
83872fi
83873 else
83874    pkg_failed=untried
83875fi
83876
83877
83878
83879if test $pkg_failed = yes; then
83880   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83881$as_echo "no" >&6; }
83882
83883if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
83884        _pkg_short_errors_supported=yes
83885else
83886        _pkg_short_errors_supported=no
83887fi
83888        if test $_pkg_short_errors_supported = yes; then
83889	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
83890        else
83891	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
83892        fi
83893	# Put the nasty error message in config.log where it belongs
83894	echo "$LUA_PKG_ERRORS" >&5
83895
83896	with_liblua="no (pkg-config cannot find liblua)"
83897
83898elif test $pkg_failed = untried; then
83899     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83900$as_echo "no" >&6; }
83901	with_liblua="no (pkg-config cannot find liblua)"
83902
83903else
83904	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
83905	LUA_LIBS=$pkg_cv_LUA_LIBS
83906        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
83907$as_echo "yes" >&6; }
83908	with_liblua="yes"
83909fi
83910
83911
83912else
83913	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
83914	LUA_LIBS=$pkg_cv_LUA_LIBS
83915        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
83916$as_echo "yes" >&6; }
83917	with_liblua="yes"
83918fi
83919
83920
83921elif test $pkg_failed = untried; then
83922     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83923$as_echo "no" >&6; }
83924
83925
83926pkg_failed=no
83927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
83928$as_echo_n "checking for LUA... " >&6; }
83929
83930if test -n "$LUA_CFLAGS"; then
83931    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
83932 elif test -n "$PKG_CONFIG"; then
83933    if test -n "$PKG_CONFIG" && \
83934    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
83935  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
83936  ac_status=$?
83937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83938  test $ac_status = 0; }; then
83939  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
83940		      test "x$?" != "x0" && pkg_failed=yes
83941else
83942  pkg_failed=yes
83943fi
83944 else
83945    pkg_failed=untried
83946fi
83947if test -n "$LUA_LIBS"; then
83948    pkg_cv_LUA_LIBS="$LUA_LIBS"
83949 elif test -n "$PKG_CONFIG"; then
83950    if test -n "$PKG_CONFIG" && \
83951    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
83952  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
83953  ac_status=$?
83954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83955  test $ac_status = 0; }; then
83956  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
83957		      test "x$?" != "x0" && pkg_failed=yes
83958else
83959  pkg_failed=yes
83960fi
83961 else
83962    pkg_failed=untried
83963fi
83964
83965
83966
83967if test $pkg_failed = yes; then
83968   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83969$as_echo "no" >&6; }
83970
83971if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
83972        _pkg_short_errors_supported=yes
83973else
83974        _pkg_short_errors_supported=no
83975fi
83976        if test $_pkg_short_errors_supported = yes; then
83977	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
83978        else
83979	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
83980        fi
83981	# Put the nasty error message in config.log where it belongs
83982	echo "$LUA_PKG_ERRORS" >&5
83983
83984
83985
83986pkg_failed=no
83987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
83988$as_echo_n "checking for LUA... " >&6; }
83989
83990if test -n "$LUA_CFLAGS"; then
83991    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
83992 elif test -n "$PKG_CONFIG"; then
83993    if test -n "$PKG_CONFIG" && \
83994    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
83995  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
83996  ac_status=$?
83997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83998  test $ac_status = 0; }; then
83999  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
84000		      test "x$?" != "x0" && pkg_failed=yes
84001else
84002  pkg_failed=yes
84003fi
84004 else
84005    pkg_failed=untried
84006fi
84007if test -n "$LUA_LIBS"; then
84008    pkg_cv_LUA_LIBS="$LUA_LIBS"
84009 elif test -n "$PKG_CONFIG"; then
84010    if test -n "$PKG_CONFIG" && \
84011    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
84012  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
84013  ac_status=$?
84014  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84015  test $ac_status = 0; }; then
84016  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
84017		      test "x$?" != "x0" && pkg_failed=yes
84018else
84019  pkg_failed=yes
84020fi
84021 else
84022    pkg_failed=untried
84023fi
84024
84025
84026
84027if test $pkg_failed = yes; then
84028   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84029$as_echo "no" >&6; }
84030
84031if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
84032        _pkg_short_errors_supported=yes
84033else
84034        _pkg_short_errors_supported=no
84035fi
84036        if test $_pkg_short_errors_supported = yes; then
84037	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
84038        else
84039	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
84040        fi
84041	# Put the nasty error message in config.log where it belongs
84042	echo "$LUA_PKG_ERRORS" >&5
84043
84044	with_liblua="no (pkg-config cannot find liblua)"
84045
84046elif test $pkg_failed = untried; then
84047     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84048$as_echo "no" >&6; }
84049	with_liblua="no (pkg-config cannot find liblua)"
84050
84051else
84052	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
84053	LUA_LIBS=$pkg_cv_LUA_LIBS
84054        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
84055$as_echo "yes" >&6; }
84056	with_liblua="yes"
84057fi
84058
84059
84060elif test $pkg_failed = untried; then
84061     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84062$as_echo "no" >&6; }
84063
84064
84065pkg_failed=no
84066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
84067$as_echo_n "checking for LUA... " >&6; }
84068
84069if test -n "$LUA_CFLAGS"; then
84070    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
84071 elif test -n "$PKG_CONFIG"; then
84072    if test -n "$PKG_CONFIG" && \
84073    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
84074  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
84075  ac_status=$?
84076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84077  test $ac_status = 0; }; then
84078  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
84079		      test "x$?" != "x0" && pkg_failed=yes
84080else
84081  pkg_failed=yes
84082fi
84083 else
84084    pkg_failed=untried
84085fi
84086if test -n "$LUA_LIBS"; then
84087    pkg_cv_LUA_LIBS="$LUA_LIBS"
84088 elif test -n "$PKG_CONFIG"; then
84089    if test -n "$PKG_CONFIG" && \
84090    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
84091  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
84092  ac_status=$?
84093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84094  test $ac_status = 0; }; then
84095  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
84096		      test "x$?" != "x0" && pkg_failed=yes
84097else
84098  pkg_failed=yes
84099fi
84100 else
84101    pkg_failed=untried
84102fi
84103
84104
84105
84106if test $pkg_failed = yes; then
84107   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84108$as_echo "no" >&6; }
84109
84110if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
84111        _pkg_short_errors_supported=yes
84112else
84113        _pkg_short_errors_supported=no
84114fi
84115        if test $_pkg_short_errors_supported = yes; then
84116	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
84117        else
84118	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
84119        fi
84120	# Put the nasty error message in config.log where it belongs
84121	echo "$LUA_PKG_ERRORS" >&5
84122
84123	with_liblua="no (pkg-config cannot find liblua)"
84124
84125elif test $pkg_failed = untried; then
84126     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84127$as_echo "no" >&6; }
84128	with_liblua="no (pkg-config cannot find liblua)"
84129
84130else
84131	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
84132	LUA_LIBS=$pkg_cv_LUA_LIBS
84133        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
84134$as_echo "yes" >&6; }
84135	with_liblua="yes"
84136fi
84137
84138
84139else
84140	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
84141	LUA_LIBS=$pkg_cv_LUA_LIBS
84142        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
84143$as_echo "yes" >&6; }
84144	with_liblua="yes"
84145fi
84146
84147
84148else
84149	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
84150	LUA_LIBS=$pkg_cv_LUA_LIBS
84151        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
84152$as_echo "yes" >&6; }
84153	with_liblua="yes"
84154fi
84155
84156
84157else
84158	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
84159	LUA_LIBS=$pkg_cv_LUA_LIBS
84160        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
84161$as_echo "yes" >&6; }
84162	with_liblua="yes"
84163fi
84164
84165
84166elif test $pkg_failed = untried; then
84167     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84168$as_echo "no" >&6; }
84169
84170
84171pkg_failed=no
84172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
84173$as_echo_n "checking for LUA... " >&6; }
84174
84175if test -n "$LUA_CFLAGS"; then
84176    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
84177 elif test -n "$PKG_CONFIG"; then
84178    if test -n "$PKG_CONFIG" && \
84179    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
84180  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
84181  ac_status=$?
84182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84183  test $ac_status = 0; }; then
84184  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
84185		      test "x$?" != "x0" && pkg_failed=yes
84186else
84187  pkg_failed=yes
84188fi
84189 else
84190    pkg_failed=untried
84191fi
84192if test -n "$LUA_LIBS"; then
84193    pkg_cv_LUA_LIBS="$LUA_LIBS"
84194 elif test -n "$PKG_CONFIG"; then
84195    if test -n "$PKG_CONFIG" && \
84196    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
84197  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
84198  ac_status=$?
84199  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84200  test $ac_status = 0; }; then
84201  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
84202		      test "x$?" != "x0" && pkg_failed=yes
84203else
84204  pkg_failed=yes
84205fi
84206 else
84207    pkg_failed=untried
84208fi
84209
84210
84211
84212if test $pkg_failed = yes; then
84213   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84214$as_echo "no" >&6; }
84215
84216if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
84217        _pkg_short_errors_supported=yes
84218else
84219        _pkg_short_errors_supported=no
84220fi
84221        if test $_pkg_short_errors_supported = yes; then
84222	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
84223        else
84224	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
84225        fi
84226	# Put the nasty error message in config.log where it belongs
84227	echo "$LUA_PKG_ERRORS" >&5
84228
84229
84230
84231pkg_failed=no
84232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
84233$as_echo_n "checking for LUA... " >&6; }
84234
84235if test -n "$LUA_CFLAGS"; then
84236    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
84237 elif test -n "$PKG_CONFIG"; then
84238    if test -n "$PKG_CONFIG" && \
84239    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
84240  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
84241  ac_status=$?
84242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84243  test $ac_status = 0; }; then
84244  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
84245		      test "x$?" != "x0" && pkg_failed=yes
84246else
84247  pkg_failed=yes
84248fi
84249 else
84250    pkg_failed=untried
84251fi
84252if test -n "$LUA_LIBS"; then
84253    pkg_cv_LUA_LIBS="$LUA_LIBS"
84254 elif test -n "$PKG_CONFIG"; then
84255    if test -n "$PKG_CONFIG" && \
84256    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
84257  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
84258  ac_status=$?
84259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84260  test $ac_status = 0; }; then
84261  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
84262		      test "x$?" != "x0" && pkg_failed=yes
84263else
84264  pkg_failed=yes
84265fi
84266 else
84267    pkg_failed=untried
84268fi
84269
84270
84271
84272if test $pkg_failed = yes; then
84273   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84274$as_echo "no" >&6; }
84275
84276if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
84277        _pkg_short_errors_supported=yes
84278else
84279        _pkg_short_errors_supported=no
84280fi
84281        if test $_pkg_short_errors_supported = yes; then
84282	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
84283        else
84284	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
84285        fi
84286	# Put the nasty error message in config.log where it belongs
84287	echo "$LUA_PKG_ERRORS" >&5
84288
84289
84290
84291pkg_failed=no
84292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
84293$as_echo_n "checking for LUA... " >&6; }
84294
84295if test -n "$LUA_CFLAGS"; then
84296    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
84297 elif test -n "$PKG_CONFIG"; then
84298    if test -n "$PKG_CONFIG" && \
84299    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
84300  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
84301  ac_status=$?
84302  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84303  test $ac_status = 0; }; then
84304  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
84305		      test "x$?" != "x0" && pkg_failed=yes
84306else
84307  pkg_failed=yes
84308fi
84309 else
84310    pkg_failed=untried
84311fi
84312if test -n "$LUA_LIBS"; then
84313    pkg_cv_LUA_LIBS="$LUA_LIBS"
84314 elif test -n "$PKG_CONFIG"; then
84315    if test -n "$PKG_CONFIG" && \
84316    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
84317  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
84318  ac_status=$?
84319  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84320  test $ac_status = 0; }; then
84321  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
84322		      test "x$?" != "x0" && pkg_failed=yes
84323else
84324  pkg_failed=yes
84325fi
84326 else
84327    pkg_failed=untried
84328fi
84329
84330
84331
84332if test $pkg_failed = yes; then
84333   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84334$as_echo "no" >&6; }
84335
84336if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
84337        _pkg_short_errors_supported=yes
84338else
84339        _pkg_short_errors_supported=no
84340fi
84341        if test $_pkg_short_errors_supported = yes; then
84342	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
84343        else
84344	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
84345        fi
84346	# Put the nasty error message in config.log where it belongs
84347	echo "$LUA_PKG_ERRORS" >&5
84348
84349
84350
84351pkg_failed=no
84352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
84353$as_echo_n "checking for LUA... " >&6; }
84354
84355if test -n "$LUA_CFLAGS"; then
84356    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
84357 elif test -n "$PKG_CONFIG"; then
84358    if test -n "$PKG_CONFIG" && \
84359    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
84360  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
84361  ac_status=$?
84362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84363  test $ac_status = 0; }; then
84364  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
84365		      test "x$?" != "x0" && pkg_failed=yes
84366else
84367  pkg_failed=yes
84368fi
84369 else
84370    pkg_failed=untried
84371fi
84372if test -n "$LUA_LIBS"; then
84373    pkg_cv_LUA_LIBS="$LUA_LIBS"
84374 elif test -n "$PKG_CONFIG"; then
84375    if test -n "$PKG_CONFIG" && \
84376    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
84377  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
84378  ac_status=$?
84379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84380  test $ac_status = 0; }; then
84381  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
84382		      test "x$?" != "x0" && pkg_failed=yes
84383else
84384  pkg_failed=yes
84385fi
84386 else
84387    pkg_failed=untried
84388fi
84389
84390
84391
84392if test $pkg_failed = yes; then
84393   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84394$as_echo "no" >&6; }
84395
84396if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
84397        _pkg_short_errors_supported=yes
84398else
84399        _pkg_short_errors_supported=no
84400fi
84401        if test $_pkg_short_errors_supported = yes; then
84402	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
84403        else
84404	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
84405        fi
84406	# Put the nasty error message in config.log where it belongs
84407	echo "$LUA_PKG_ERRORS" >&5
84408
84409	with_liblua="no (pkg-config cannot find liblua)"
84410
84411elif test $pkg_failed = untried; then
84412     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84413$as_echo "no" >&6; }
84414	with_liblua="no (pkg-config cannot find liblua)"
84415
84416else
84417	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
84418	LUA_LIBS=$pkg_cv_LUA_LIBS
84419        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
84420$as_echo "yes" >&6; }
84421	with_liblua="yes"
84422fi
84423
84424
84425elif test $pkg_failed = untried; then
84426     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84427$as_echo "no" >&6; }
84428
84429
84430pkg_failed=no
84431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
84432$as_echo_n "checking for LUA... " >&6; }
84433
84434if test -n "$LUA_CFLAGS"; then
84435    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
84436 elif test -n "$PKG_CONFIG"; then
84437    if test -n "$PKG_CONFIG" && \
84438    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
84439  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
84440  ac_status=$?
84441  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84442  test $ac_status = 0; }; then
84443  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
84444		      test "x$?" != "x0" && pkg_failed=yes
84445else
84446  pkg_failed=yes
84447fi
84448 else
84449    pkg_failed=untried
84450fi
84451if test -n "$LUA_LIBS"; then
84452    pkg_cv_LUA_LIBS="$LUA_LIBS"
84453 elif test -n "$PKG_CONFIG"; then
84454    if test -n "$PKG_CONFIG" && \
84455    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
84456  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
84457  ac_status=$?
84458  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84459  test $ac_status = 0; }; then
84460  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
84461		      test "x$?" != "x0" && pkg_failed=yes
84462else
84463  pkg_failed=yes
84464fi
84465 else
84466    pkg_failed=untried
84467fi
84468
84469
84470
84471if test $pkg_failed = yes; then
84472   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84473$as_echo "no" >&6; }
84474
84475if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
84476        _pkg_short_errors_supported=yes
84477else
84478        _pkg_short_errors_supported=no
84479fi
84480        if test $_pkg_short_errors_supported = yes; then
84481	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
84482        else
84483	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
84484        fi
84485	# Put the nasty error message in config.log where it belongs
84486	echo "$LUA_PKG_ERRORS" >&5
84487
84488	with_liblua="no (pkg-config cannot find liblua)"
84489
84490elif test $pkg_failed = untried; then
84491     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84492$as_echo "no" >&6; }
84493	with_liblua="no (pkg-config cannot find liblua)"
84494
84495else
84496	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
84497	LUA_LIBS=$pkg_cv_LUA_LIBS
84498        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
84499$as_echo "yes" >&6; }
84500	with_liblua="yes"
84501fi
84502
84503
84504else
84505	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
84506	LUA_LIBS=$pkg_cv_LUA_LIBS
84507        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
84508$as_echo "yes" >&6; }
84509	with_liblua="yes"
84510fi
84511
84512
84513elif test $pkg_failed = untried; then
84514     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84515$as_echo "no" >&6; }
84516
84517
84518pkg_failed=no
84519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
84520$as_echo_n "checking for LUA... " >&6; }
84521
84522if test -n "$LUA_CFLAGS"; then
84523    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
84524 elif test -n "$PKG_CONFIG"; then
84525    if test -n "$PKG_CONFIG" && \
84526    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
84527  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
84528  ac_status=$?
84529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84530  test $ac_status = 0; }; then
84531  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
84532		      test "x$?" != "x0" && pkg_failed=yes
84533else
84534  pkg_failed=yes
84535fi
84536 else
84537    pkg_failed=untried
84538fi
84539if test -n "$LUA_LIBS"; then
84540    pkg_cv_LUA_LIBS="$LUA_LIBS"
84541 elif test -n "$PKG_CONFIG"; then
84542    if test -n "$PKG_CONFIG" && \
84543    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
84544  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
84545  ac_status=$?
84546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84547  test $ac_status = 0; }; then
84548  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
84549		      test "x$?" != "x0" && pkg_failed=yes
84550else
84551  pkg_failed=yes
84552fi
84553 else
84554    pkg_failed=untried
84555fi
84556
84557
84558
84559if test $pkg_failed = yes; then
84560   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84561$as_echo "no" >&6; }
84562
84563if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
84564        _pkg_short_errors_supported=yes
84565else
84566        _pkg_short_errors_supported=no
84567fi
84568        if test $_pkg_short_errors_supported = yes; then
84569	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
84570        else
84571	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
84572        fi
84573	# Put the nasty error message in config.log where it belongs
84574	echo "$LUA_PKG_ERRORS" >&5
84575
84576
84577
84578pkg_failed=no
84579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
84580$as_echo_n "checking for LUA... " >&6; }
84581
84582if test -n "$LUA_CFLAGS"; then
84583    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
84584 elif test -n "$PKG_CONFIG"; then
84585    if test -n "$PKG_CONFIG" && \
84586    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
84587  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
84588  ac_status=$?
84589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84590  test $ac_status = 0; }; then
84591  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
84592		      test "x$?" != "x0" && pkg_failed=yes
84593else
84594  pkg_failed=yes
84595fi
84596 else
84597    pkg_failed=untried
84598fi
84599if test -n "$LUA_LIBS"; then
84600    pkg_cv_LUA_LIBS="$LUA_LIBS"
84601 elif test -n "$PKG_CONFIG"; then
84602    if test -n "$PKG_CONFIG" && \
84603    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
84604  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
84605  ac_status=$?
84606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84607  test $ac_status = 0; }; then
84608  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
84609		      test "x$?" != "x0" && pkg_failed=yes
84610else
84611  pkg_failed=yes
84612fi
84613 else
84614    pkg_failed=untried
84615fi
84616
84617
84618
84619if test $pkg_failed = yes; then
84620   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84621$as_echo "no" >&6; }
84622
84623if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
84624        _pkg_short_errors_supported=yes
84625else
84626        _pkg_short_errors_supported=no
84627fi
84628        if test $_pkg_short_errors_supported = yes; then
84629	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
84630        else
84631	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
84632        fi
84633	# Put the nasty error message in config.log where it belongs
84634	echo "$LUA_PKG_ERRORS" >&5
84635
84636	with_liblua="no (pkg-config cannot find liblua)"
84637
84638elif test $pkg_failed = untried; then
84639     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84640$as_echo "no" >&6; }
84641	with_liblua="no (pkg-config cannot find liblua)"
84642
84643else
84644	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
84645	LUA_LIBS=$pkg_cv_LUA_LIBS
84646        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
84647$as_echo "yes" >&6; }
84648	with_liblua="yes"
84649fi
84650
84651
84652elif test $pkg_failed = untried; then
84653     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84654$as_echo "no" >&6; }
84655
84656
84657pkg_failed=no
84658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
84659$as_echo_n "checking for LUA... " >&6; }
84660
84661if test -n "$LUA_CFLAGS"; then
84662    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
84663 elif test -n "$PKG_CONFIG"; then
84664    if test -n "$PKG_CONFIG" && \
84665    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
84666  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
84667  ac_status=$?
84668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84669  test $ac_status = 0; }; then
84670  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
84671		      test "x$?" != "x0" && pkg_failed=yes
84672else
84673  pkg_failed=yes
84674fi
84675 else
84676    pkg_failed=untried
84677fi
84678if test -n "$LUA_LIBS"; then
84679    pkg_cv_LUA_LIBS="$LUA_LIBS"
84680 elif test -n "$PKG_CONFIG"; then
84681    if test -n "$PKG_CONFIG" && \
84682    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
84683  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
84684  ac_status=$?
84685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84686  test $ac_status = 0; }; then
84687  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
84688		      test "x$?" != "x0" && pkg_failed=yes
84689else
84690  pkg_failed=yes
84691fi
84692 else
84693    pkg_failed=untried
84694fi
84695
84696
84697
84698if test $pkg_failed = yes; then
84699   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84700$as_echo "no" >&6; }
84701
84702if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
84703        _pkg_short_errors_supported=yes
84704else
84705        _pkg_short_errors_supported=no
84706fi
84707        if test $_pkg_short_errors_supported = yes; then
84708	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
84709        else
84710	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
84711        fi
84712	# Put the nasty error message in config.log where it belongs
84713	echo "$LUA_PKG_ERRORS" >&5
84714
84715	with_liblua="no (pkg-config cannot find liblua)"
84716
84717elif test $pkg_failed = untried; then
84718     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84719$as_echo "no" >&6; }
84720	with_liblua="no (pkg-config cannot find liblua)"
84721
84722else
84723	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
84724	LUA_LIBS=$pkg_cv_LUA_LIBS
84725        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
84726$as_echo "yes" >&6; }
84727	with_liblua="yes"
84728fi
84729
84730
84731else
84732	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
84733	LUA_LIBS=$pkg_cv_LUA_LIBS
84734        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
84735$as_echo "yes" >&6; }
84736	with_liblua="yes"
84737fi
84738
84739
84740else
84741	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
84742	LUA_LIBS=$pkg_cv_LUA_LIBS
84743        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
84744$as_echo "yes" >&6; }
84745	with_liblua="yes"
84746fi
84747
84748
84749elif test $pkg_failed = untried; then
84750     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84751$as_echo "no" >&6; }
84752
84753
84754pkg_failed=no
84755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
84756$as_echo_n "checking for LUA... " >&6; }
84757
84758if test -n "$LUA_CFLAGS"; then
84759    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
84760 elif test -n "$PKG_CONFIG"; then
84761    if test -n "$PKG_CONFIG" && \
84762    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
84763  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
84764  ac_status=$?
84765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84766  test $ac_status = 0; }; then
84767  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
84768		      test "x$?" != "x0" && pkg_failed=yes
84769else
84770  pkg_failed=yes
84771fi
84772 else
84773    pkg_failed=untried
84774fi
84775if test -n "$LUA_LIBS"; then
84776    pkg_cv_LUA_LIBS="$LUA_LIBS"
84777 elif test -n "$PKG_CONFIG"; then
84778    if test -n "$PKG_CONFIG" && \
84779    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
84780  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
84781  ac_status=$?
84782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84783  test $ac_status = 0; }; then
84784  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
84785		      test "x$?" != "x0" && pkg_failed=yes
84786else
84787  pkg_failed=yes
84788fi
84789 else
84790    pkg_failed=untried
84791fi
84792
84793
84794
84795if test $pkg_failed = yes; then
84796   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84797$as_echo "no" >&6; }
84798
84799if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
84800        _pkg_short_errors_supported=yes
84801else
84802        _pkg_short_errors_supported=no
84803fi
84804        if test $_pkg_short_errors_supported = yes; then
84805	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
84806        else
84807	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
84808        fi
84809	# Put the nasty error message in config.log where it belongs
84810	echo "$LUA_PKG_ERRORS" >&5
84811
84812
84813
84814pkg_failed=no
84815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
84816$as_echo_n "checking for LUA... " >&6; }
84817
84818if test -n "$LUA_CFLAGS"; then
84819    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
84820 elif test -n "$PKG_CONFIG"; then
84821    if test -n "$PKG_CONFIG" && \
84822    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
84823  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
84824  ac_status=$?
84825  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84826  test $ac_status = 0; }; then
84827  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
84828		      test "x$?" != "x0" && pkg_failed=yes
84829else
84830  pkg_failed=yes
84831fi
84832 else
84833    pkg_failed=untried
84834fi
84835if test -n "$LUA_LIBS"; then
84836    pkg_cv_LUA_LIBS="$LUA_LIBS"
84837 elif test -n "$PKG_CONFIG"; then
84838    if test -n "$PKG_CONFIG" && \
84839    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
84840  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
84841  ac_status=$?
84842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84843  test $ac_status = 0; }; then
84844  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
84845		      test "x$?" != "x0" && pkg_failed=yes
84846else
84847  pkg_failed=yes
84848fi
84849 else
84850    pkg_failed=untried
84851fi
84852
84853
84854
84855if test $pkg_failed = yes; then
84856   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84857$as_echo "no" >&6; }
84858
84859if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
84860        _pkg_short_errors_supported=yes
84861else
84862        _pkg_short_errors_supported=no
84863fi
84864        if test $_pkg_short_errors_supported = yes; then
84865	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
84866        else
84867	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
84868        fi
84869	# Put the nasty error message in config.log where it belongs
84870	echo "$LUA_PKG_ERRORS" >&5
84871
84872
84873
84874pkg_failed=no
84875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
84876$as_echo_n "checking for LUA... " >&6; }
84877
84878if test -n "$LUA_CFLAGS"; then
84879    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
84880 elif test -n "$PKG_CONFIG"; then
84881    if test -n "$PKG_CONFIG" && \
84882    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
84883  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
84884  ac_status=$?
84885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84886  test $ac_status = 0; }; then
84887  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
84888		      test "x$?" != "x0" && pkg_failed=yes
84889else
84890  pkg_failed=yes
84891fi
84892 else
84893    pkg_failed=untried
84894fi
84895if test -n "$LUA_LIBS"; then
84896    pkg_cv_LUA_LIBS="$LUA_LIBS"
84897 elif test -n "$PKG_CONFIG"; then
84898    if test -n "$PKG_CONFIG" && \
84899    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
84900  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
84901  ac_status=$?
84902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84903  test $ac_status = 0; }; then
84904  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
84905		      test "x$?" != "x0" && pkg_failed=yes
84906else
84907  pkg_failed=yes
84908fi
84909 else
84910    pkg_failed=untried
84911fi
84912
84913
84914
84915if test $pkg_failed = yes; then
84916   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84917$as_echo "no" >&6; }
84918
84919if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
84920        _pkg_short_errors_supported=yes
84921else
84922        _pkg_short_errors_supported=no
84923fi
84924        if test $_pkg_short_errors_supported = yes; then
84925	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
84926        else
84927	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
84928        fi
84929	# Put the nasty error message in config.log where it belongs
84930	echo "$LUA_PKG_ERRORS" >&5
84931
84932	with_liblua="no (pkg-config cannot find liblua)"
84933
84934elif test $pkg_failed = untried; then
84935     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84936$as_echo "no" >&6; }
84937	with_liblua="no (pkg-config cannot find liblua)"
84938
84939else
84940	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
84941	LUA_LIBS=$pkg_cv_LUA_LIBS
84942        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
84943$as_echo "yes" >&6; }
84944	with_liblua="yes"
84945fi
84946
84947
84948elif test $pkg_failed = untried; then
84949     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84950$as_echo "no" >&6; }
84951
84952
84953pkg_failed=no
84954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
84955$as_echo_n "checking for LUA... " >&6; }
84956
84957if test -n "$LUA_CFLAGS"; then
84958    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
84959 elif test -n "$PKG_CONFIG"; then
84960    if test -n "$PKG_CONFIG" && \
84961    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
84962  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
84963  ac_status=$?
84964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84965  test $ac_status = 0; }; then
84966  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
84967		      test "x$?" != "x0" && pkg_failed=yes
84968else
84969  pkg_failed=yes
84970fi
84971 else
84972    pkg_failed=untried
84973fi
84974if test -n "$LUA_LIBS"; then
84975    pkg_cv_LUA_LIBS="$LUA_LIBS"
84976 elif test -n "$PKG_CONFIG"; then
84977    if test -n "$PKG_CONFIG" && \
84978    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
84979  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
84980  ac_status=$?
84981  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84982  test $ac_status = 0; }; then
84983  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
84984		      test "x$?" != "x0" && pkg_failed=yes
84985else
84986  pkg_failed=yes
84987fi
84988 else
84989    pkg_failed=untried
84990fi
84991
84992
84993
84994if test $pkg_failed = yes; then
84995   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84996$as_echo "no" >&6; }
84997
84998if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
84999        _pkg_short_errors_supported=yes
85000else
85001        _pkg_short_errors_supported=no
85002fi
85003        if test $_pkg_short_errors_supported = yes; then
85004	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
85005        else
85006	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
85007        fi
85008	# Put the nasty error message in config.log where it belongs
85009	echo "$LUA_PKG_ERRORS" >&5
85010
85011	with_liblua="no (pkg-config cannot find liblua)"
85012
85013elif test $pkg_failed = untried; then
85014     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85015$as_echo "no" >&6; }
85016	with_liblua="no (pkg-config cannot find liblua)"
85017
85018else
85019	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
85020	LUA_LIBS=$pkg_cv_LUA_LIBS
85021        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
85022$as_echo "yes" >&6; }
85023	with_liblua="yes"
85024fi
85025
85026
85027else
85028	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
85029	LUA_LIBS=$pkg_cv_LUA_LIBS
85030        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
85031$as_echo "yes" >&6; }
85032	with_liblua="yes"
85033fi
85034
85035
85036elif test $pkg_failed = untried; then
85037     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85038$as_echo "no" >&6; }
85039
85040
85041pkg_failed=no
85042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
85043$as_echo_n "checking for LUA... " >&6; }
85044
85045if test -n "$LUA_CFLAGS"; then
85046    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
85047 elif test -n "$PKG_CONFIG"; then
85048    if test -n "$PKG_CONFIG" && \
85049    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
85050  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
85051  ac_status=$?
85052  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85053  test $ac_status = 0; }; then
85054  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
85055		      test "x$?" != "x0" && pkg_failed=yes
85056else
85057  pkg_failed=yes
85058fi
85059 else
85060    pkg_failed=untried
85061fi
85062if test -n "$LUA_LIBS"; then
85063    pkg_cv_LUA_LIBS="$LUA_LIBS"
85064 elif test -n "$PKG_CONFIG"; then
85065    if test -n "$PKG_CONFIG" && \
85066    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
85067  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
85068  ac_status=$?
85069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85070  test $ac_status = 0; }; then
85071  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
85072		      test "x$?" != "x0" && pkg_failed=yes
85073else
85074  pkg_failed=yes
85075fi
85076 else
85077    pkg_failed=untried
85078fi
85079
85080
85081
85082if test $pkg_failed = yes; then
85083   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85084$as_echo "no" >&6; }
85085
85086if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
85087        _pkg_short_errors_supported=yes
85088else
85089        _pkg_short_errors_supported=no
85090fi
85091        if test $_pkg_short_errors_supported = yes; then
85092	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
85093        else
85094	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
85095        fi
85096	# Put the nasty error message in config.log where it belongs
85097	echo "$LUA_PKG_ERRORS" >&5
85098
85099
85100
85101pkg_failed=no
85102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
85103$as_echo_n "checking for LUA... " >&6; }
85104
85105if test -n "$LUA_CFLAGS"; then
85106    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
85107 elif test -n "$PKG_CONFIG"; then
85108    if test -n "$PKG_CONFIG" && \
85109    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
85110  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
85111  ac_status=$?
85112  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85113  test $ac_status = 0; }; then
85114  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
85115		      test "x$?" != "x0" && pkg_failed=yes
85116else
85117  pkg_failed=yes
85118fi
85119 else
85120    pkg_failed=untried
85121fi
85122if test -n "$LUA_LIBS"; then
85123    pkg_cv_LUA_LIBS="$LUA_LIBS"
85124 elif test -n "$PKG_CONFIG"; then
85125    if test -n "$PKG_CONFIG" && \
85126    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
85127  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
85128  ac_status=$?
85129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85130  test $ac_status = 0; }; then
85131  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
85132		      test "x$?" != "x0" && pkg_failed=yes
85133else
85134  pkg_failed=yes
85135fi
85136 else
85137    pkg_failed=untried
85138fi
85139
85140
85141
85142if test $pkg_failed = yes; then
85143   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85144$as_echo "no" >&6; }
85145
85146if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
85147        _pkg_short_errors_supported=yes
85148else
85149        _pkg_short_errors_supported=no
85150fi
85151        if test $_pkg_short_errors_supported = yes; then
85152	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
85153        else
85154	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
85155        fi
85156	# Put the nasty error message in config.log where it belongs
85157	echo "$LUA_PKG_ERRORS" >&5
85158
85159	with_liblua="no (pkg-config cannot find liblua)"
85160
85161elif test $pkg_failed = untried; then
85162     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85163$as_echo "no" >&6; }
85164	with_liblua="no (pkg-config cannot find liblua)"
85165
85166else
85167	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
85168	LUA_LIBS=$pkg_cv_LUA_LIBS
85169        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
85170$as_echo "yes" >&6; }
85171	with_liblua="yes"
85172fi
85173
85174
85175elif test $pkg_failed = untried; then
85176     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85177$as_echo "no" >&6; }
85178
85179
85180pkg_failed=no
85181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
85182$as_echo_n "checking for LUA... " >&6; }
85183
85184if test -n "$LUA_CFLAGS"; then
85185    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
85186 elif test -n "$PKG_CONFIG"; then
85187    if test -n "$PKG_CONFIG" && \
85188    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
85189  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
85190  ac_status=$?
85191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85192  test $ac_status = 0; }; then
85193  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
85194		      test "x$?" != "x0" && pkg_failed=yes
85195else
85196  pkg_failed=yes
85197fi
85198 else
85199    pkg_failed=untried
85200fi
85201if test -n "$LUA_LIBS"; then
85202    pkg_cv_LUA_LIBS="$LUA_LIBS"
85203 elif test -n "$PKG_CONFIG"; then
85204    if test -n "$PKG_CONFIG" && \
85205    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
85206  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
85207  ac_status=$?
85208  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85209  test $ac_status = 0; }; then
85210  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
85211		      test "x$?" != "x0" && pkg_failed=yes
85212else
85213  pkg_failed=yes
85214fi
85215 else
85216    pkg_failed=untried
85217fi
85218
85219
85220
85221if test $pkg_failed = yes; then
85222   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85223$as_echo "no" >&6; }
85224
85225if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
85226        _pkg_short_errors_supported=yes
85227else
85228        _pkg_short_errors_supported=no
85229fi
85230        if test $_pkg_short_errors_supported = yes; then
85231	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
85232        else
85233	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
85234        fi
85235	# Put the nasty error message in config.log where it belongs
85236	echo "$LUA_PKG_ERRORS" >&5
85237
85238	with_liblua="no (pkg-config cannot find liblua)"
85239
85240elif test $pkg_failed = untried; then
85241     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85242$as_echo "no" >&6; }
85243	with_liblua="no (pkg-config cannot find liblua)"
85244
85245else
85246	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
85247	LUA_LIBS=$pkg_cv_LUA_LIBS
85248        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
85249$as_echo "yes" >&6; }
85250	with_liblua="yes"
85251fi
85252
85253
85254else
85255	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
85256	LUA_LIBS=$pkg_cv_LUA_LIBS
85257        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
85258$as_echo "yes" >&6; }
85259	with_liblua="yes"
85260fi
85261
85262
85263else
85264	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
85265	LUA_LIBS=$pkg_cv_LUA_LIBS
85266        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
85267$as_echo "yes" >&6; }
85268	with_liblua="yes"
85269fi
85270
85271
85272else
85273	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
85274	LUA_LIBS=$pkg_cv_LUA_LIBS
85275        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
85276$as_echo "yes" >&6; }
85277	with_liblua="yes"
85278fi
85279
85280
85281else
85282	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
85283	LUA_LIBS=$pkg_cv_LUA_LIBS
85284        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
85285$as_echo "yes" >&6; }
85286	with_liblua="yes"
85287fi
85288
85289
85290elif test $pkg_failed = untried; then
85291     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85292$as_echo "no" >&6; }
85293
85294
85295pkg_failed=no
85296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
85297$as_echo_n "checking for LUA... " >&6; }
85298
85299if test -n "$LUA_CFLAGS"; then
85300    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
85301 elif test -n "$PKG_CONFIG"; then
85302    if test -n "$PKG_CONFIG" && \
85303    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
85304  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
85305  ac_status=$?
85306  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85307  test $ac_status = 0; }; then
85308  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
85309		      test "x$?" != "x0" && pkg_failed=yes
85310else
85311  pkg_failed=yes
85312fi
85313 else
85314    pkg_failed=untried
85315fi
85316if test -n "$LUA_LIBS"; then
85317    pkg_cv_LUA_LIBS="$LUA_LIBS"
85318 elif test -n "$PKG_CONFIG"; then
85319    if test -n "$PKG_CONFIG" && \
85320    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
85321  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
85322  ac_status=$?
85323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85324  test $ac_status = 0; }; then
85325  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
85326		      test "x$?" != "x0" && pkg_failed=yes
85327else
85328  pkg_failed=yes
85329fi
85330 else
85331    pkg_failed=untried
85332fi
85333
85334
85335
85336if test $pkg_failed = yes; then
85337   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85338$as_echo "no" >&6; }
85339
85340if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
85341        _pkg_short_errors_supported=yes
85342else
85343        _pkg_short_errors_supported=no
85344fi
85345        if test $_pkg_short_errors_supported = yes; then
85346	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
85347        else
85348	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
85349        fi
85350	# Put the nasty error message in config.log where it belongs
85351	echo "$LUA_PKG_ERRORS" >&5
85352
85353
85354
85355pkg_failed=no
85356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
85357$as_echo_n "checking for LUA... " >&6; }
85358
85359if test -n "$LUA_CFLAGS"; then
85360    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
85361 elif test -n "$PKG_CONFIG"; then
85362    if test -n "$PKG_CONFIG" && \
85363    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
85364  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
85365  ac_status=$?
85366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85367  test $ac_status = 0; }; then
85368  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
85369		      test "x$?" != "x0" && pkg_failed=yes
85370else
85371  pkg_failed=yes
85372fi
85373 else
85374    pkg_failed=untried
85375fi
85376if test -n "$LUA_LIBS"; then
85377    pkg_cv_LUA_LIBS="$LUA_LIBS"
85378 elif test -n "$PKG_CONFIG"; then
85379    if test -n "$PKG_CONFIG" && \
85380    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
85381  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
85382  ac_status=$?
85383  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85384  test $ac_status = 0; }; then
85385  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
85386		      test "x$?" != "x0" && pkg_failed=yes
85387else
85388  pkg_failed=yes
85389fi
85390 else
85391    pkg_failed=untried
85392fi
85393
85394
85395
85396if test $pkg_failed = yes; then
85397   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85398$as_echo "no" >&6; }
85399
85400if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
85401        _pkg_short_errors_supported=yes
85402else
85403        _pkg_short_errors_supported=no
85404fi
85405        if test $_pkg_short_errors_supported = yes; then
85406	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
85407        else
85408	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
85409        fi
85410	# Put the nasty error message in config.log where it belongs
85411	echo "$LUA_PKG_ERRORS" >&5
85412
85413
85414
85415pkg_failed=no
85416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
85417$as_echo_n "checking for LUA... " >&6; }
85418
85419if test -n "$LUA_CFLAGS"; then
85420    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
85421 elif test -n "$PKG_CONFIG"; then
85422    if test -n "$PKG_CONFIG" && \
85423    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
85424  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
85425  ac_status=$?
85426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85427  test $ac_status = 0; }; then
85428  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
85429		      test "x$?" != "x0" && pkg_failed=yes
85430else
85431  pkg_failed=yes
85432fi
85433 else
85434    pkg_failed=untried
85435fi
85436if test -n "$LUA_LIBS"; then
85437    pkg_cv_LUA_LIBS="$LUA_LIBS"
85438 elif test -n "$PKG_CONFIG"; then
85439    if test -n "$PKG_CONFIG" && \
85440    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
85441  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
85442  ac_status=$?
85443  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85444  test $ac_status = 0; }; then
85445  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
85446		      test "x$?" != "x0" && pkg_failed=yes
85447else
85448  pkg_failed=yes
85449fi
85450 else
85451    pkg_failed=untried
85452fi
85453
85454
85455
85456if test $pkg_failed = yes; then
85457   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85458$as_echo "no" >&6; }
85459
85460if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
85461        _pkg_short_errors_supported=yes
85462else
85463        _pkg_short_errors_supported=no
85464fi
85465        if test $_pkg_short_errors_supported = yes; then
85466	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
85467        else
85468	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
85469        fi
85470	# Put the nasty error message in config.log where it belongs
85471	echo "$LUA_PKG_ERRORS" >&5
85472
85473
85474
85475pkg_failed=no
85476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
85477$as_echo_n "checking for LUA... " >&6; }
85478
85479if test -n "$LUA_CFLAGS"; then
85480    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
85481 elif test -n "$PKG_CONFIG"; then
85482    if test -n "$PKG_CONFIG" && \
85483    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
85484  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
85485  ac_status=$?
85486  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85487  test $ac_status = 0; }; then
85488  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
85489		      test "x$?" != "x0" && pkg_failed=yes
85490else
85491  pkg_failed=yes
85492fi
85493 else
85494    pkg_failed=untried
85495fi
85496if test -n "$LUA_LIBS"; then
85497    pkg_cv_LUA_LIBS="$LUA_LIBS"
85498 elif test -n "$PKG_CONFIG"; then
85499    if test -n "$PKG_CONFIG" && \
85500    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
85501  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
85502  ac_status=$?
85503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85504  test $ac_status = 0; }; then
85505  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
85506		      test "x$?" != "x0" && pkg_failed=yes
85507else
85508  pkg_failed=yes
85509fi
85510 else
85511    pkg_failed=untried
85512fi
85513
85514
85515
85516if test $pkg_failed = yes; then
85517   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85518$as_echo "no" >&6; }
85519
85520if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
85521        _pkg_short_errors_supported=yes
85522else
85523        _pkg_short_errors_supported=no
85524fi
85525        if test $_pkg_short_errors_supported = yes; then
85526	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
85527        else
85528	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
85529        fi
85530	# Put the nasty error message in config.log where it belongs
85531	echo "$LUA_PKG_ERRORS" >&5
85532
85533
85534
85535pkg_failed=no
85536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
85537$as_echo_n "checking for LUA... " >&6; }
85538
85539if test -n "$LUA_CFLAGS"; then
85540    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
85541 elif test -n "$PKG_CONFIG"; then
85542    if test -n "$PKG_CONFIG" && \
85543    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
85544  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
85545  ac_status=$?
85546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85547  test $ac_status = 0; }; then
85548  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
85549		      test "x$?" != "x0" && pkg_failed=yes
85550else
85551  pkg_failed=yes
85552fi
85553 else
85554    pkg_failed=untried
85555fi
85556if test -n "$LUA_LIBS"; then
85557    pkg_cv_LUA_LIBS="$LUA_LIBS"
85558 elif test -n "$PKG_CONFIG"; then
85559    if test -n "$PKG_CONFIG" && \
85560    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
85561  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
85562  ac_status=$?
85563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85564  test $ac_status = 0; }; then
85565  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
85566		      test "x$?" != "x0" && pkg_failed=yes
85567else
85568  pkg_failed=yes
85569fi
85570 else
85571    pkg_failed=untried
85572fi
85573
85574
85575
85576if test $pkg_failed = yes; then
85577   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85578$as_echo "no" >&6; }
85579
85580if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
85581        _pkg_short_errors_supported=yes
85582else
85583        _pkg_short_errors_supported=no
85584fi
85585        if test $_pkg_short_errors_supported = yes; then
85586	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
85587        else
85588	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
85589        fi
85590	# Put the nasty error message in config.log where it belongs
85591	echo "$LUA_PKG_ERRORS" >&5
85592
85593	with_liblua="no (pkg-config cannot find liblua)"
85594
85595elif test $pkg_failed = untried; then
85596     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85597$as_echo "no" >&6; }
85598	with_liblua="no (pkg-config cannot find liblua)"
85599
85600else
85601	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
85602	LUA_LIBS=$pkg_cv_LUA_LIBS
85603        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
85604$as_echo "yes" >&6; }
85605	with_liblua="yes"
85606fi
85607
85608
85609elif test $pkg_failed = untried; then
85610     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85611$as_echo "no" >&6; }
85612
85613
85614pkg_failed=no
85615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
85616$as_echo_n "checking for LUA... " >&6; }
85617
85618if test -n "$LUA_CFLAGS"; then
85619    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
85620 elif test -n "$PKG_CONFIG"; then
85621    if test -n "$PKG_CONFIG" && \
85622    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
85623  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
85624  ac_status=$?
85625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85626  test $ac_status = 0; }; then
85627  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
85628		      test "x$?" != "x0" && pkg_failed=yes
85629else
85630  pkg_failed=yes
85631fi
85632 else
85633    pkg_failed=untried
85634fi
85635if test -n "$LUA_LIBS"; then
85636    pkg_cv_LUA_LIBS="$LUA_LIBS"
85637 elif test -n "$PKG_CONFIG"; then
85638    if test -n "$PKG_CONFIG" && \
85639    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
85640  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
85641  ac_status=$?
85642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85643  test $ac_status = 0; }; then
85644  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
85645		      test "x$?" != "x0" && pkg_failed=yes
85646else
85647  pkg_failed=yes
85648fi
85649 else
85650    pkg_failed=untried
85651fi
85652
85653
85654
85655if test $pkg_failed = yes; then
85656   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85657$as_echo "no" >&6; }
85658
85659if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
85660        _pkg_short_errors_supported=yes
85661else
85662        _pkg_short_errors_supported=no
85663fi
85664        if test $_pkg_short_errors_supported = yes; then
85665	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
85666        else
85667	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
85668        fi
85669	# Put the nasty error message in config.log where it belongs
85670	echo "$LUA_PKG_ERRORS" >&5
85671
85672	with_liblua="no (pkg-config cannot find liblua)"
85673
85674elif test $pkg_failed = untried; then
85675     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85676$as_echo "no" >&6; }
85677	with_liblua="no (pkg-config cannot find liblua)"
85678
85679else
85680	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
85681	LUA_LIBS=$pkg_cv_LUA_LIBS
85682        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
85683$as_echo "yes" >&6; }
85684	with_liblua="yes"
85685fi
85686
85687
85688else
85689	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
85690	LUA_LIBS=$pkg_cv_LUA_LIBS
85691        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
85692$as_echo "yes" >&6; }
85693	with_liblua="yes"
85694fi
85695
85696
85697elif test $pkg_failed = untried; then
85698     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85699$as_echo "no" >&6; }
85700
85701
85702pkg_failed=no
85703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
85704$as_echo_n "checking for LUA... " >&6; }
85705
85706if test -n "$LUA_CFLAGS"; then
85707    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
85708 elif test -n "$PKG_CONFIG"; then
85709    if test -n "$PKG_CONFIG" && \
85710    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
85711  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
85712  ac_status=$?
85713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85714  test $ac_status = 0; }; then
85715  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
85716		      test "x$?" != "x0" && pkg_failed=yes
85717else
85718  pkg_failed=yes
85719fi
85720 else
85721    pkg_failed=untried
85722fi
85723if test -n "$LUA_LIBS"; then
85724    pkg_cv_LUA_LIBS="$LUA_LIBS"
85725 elif test -n "$PKG_CONFIG"; then
85726    if test -n "$PKG_CONFIG" && \
85727    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
85728  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
85729  ac_status=$?
85730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85731  test $ac_status = 0; }; then
85732  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
85733		      test "x$?" != "x0" && pkg_failed=yes
85734else
85735  pkg_failed=yes
85736fi
85737 else
85738    pkg_failed=untried
85739fi
85740
85741
85742
85743if test $pkg_failed = yes; then
85744   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85745$as_echo "no" >&6; }
85746
85747if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
85748        _pkg_short_errors_supported=yes
85749else
85750        _pkg_short_errors_supported=no
85751fi
85752        if test $_pkg_short_errors_supported = yes; then
85753	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
85754        else
85755	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
85756        fi
85757	# Put the nasty error message in config.log where it belongs
85758	echo "$LUA_PKG_ERRORS" >&5
85759
85760
85761
85762pkg_failed=no
85763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
85764$as_echo_n "checking for LUA... " >&6; }
85765
85766if test -n "$LUA_CFLAGS"; then
85767    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
85768 elif test -n "$PKG_CONFIG"; then
85769    if test -n "$PKG_CONFIG" && \
85770    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
85771  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
85772  ac_status=$?
85773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85774  test $ac_status = 0; }; then
85775  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
85776		      test "x$?" != "x0" && pkg_failed=yes
85777else
85778  pkg_failed=yes
85779fi
85780 else
85781    pkg_failed=untried
85782fi
85783if test -n "$LUA_LIBS"; then
85784    pkg_cv_LUA_LIBS="$LUA_LIBS"
85785 elif test -n "$PKG_CONFIG"; then
85786    if test -n "$PKG_CONFIG" && \
85787    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
85788  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
85789  ac_status=$?
85790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85791  test $ac_status = 0; }; then
85792  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
85793		      test "x$?" != "x0" && pkg_failed=yes
85794else
85795  pkg_failed=yes
85796fi
85797 else
85798    pkg_failed=untried
85799fi
85800
85801
85802
85803if test $pkg_failed = yes; then
85804   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85805$as_echo "no" >&6; }
85806
85807if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
85808        _pkg_short_errors_supported=yes
85809else
85810        _pkg_short_errors_supported=no
85811fi
85812        if test $_pkg_short_errors_supported = yes; then
85813	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
85814        else
85815	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
85816        fi
85817	# Put the nasty error message in config.log where it belongs
85818	echo "$LUA_PKG_ERRORS" >&5
85819
85820	with_liblua="no (pkg-config cannot find liblua)"
85821
85822elif test $pkg_failed = untried; then
85823     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85824$as_echo "no" >&6; }
85825	with_liblua="no (pkg-config cannot find liblua)"
85826
85827else
85828	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
85829	LUA_LIBS=$pkg_cv_LUA_LIBS
85830        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
85831$as_echo "yes" >&6; }
85832	with_liblua="yes"
85833fi
85834
85835
85836elif test $pkg_failed = untried; then
85837     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85838$as_echo "no" >&6; }
85839
85840
85841pkg_failed=no
85842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
85843$as_echo_n "checking for LUA... " >&6; }
85844
85845if test -n "$LUA_CFLAGS"; then
85846    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
85847 elif test -n "$PKG_CONFIG"; then
85848    if test -n "$PKG_CONFIG" && \
85849    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
85850  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
85851  ac_status=$?
85852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85853  test $ac_status = 0; }; then
85854  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
85855		      test "x$?" != "x0" && pkg_failed=yes
85856else
85857  pkg_failed=yes
85858fi
85859 else
85860    pkg_failed=untried
85861fi
85862if test -n "$LUA_LIBS"; then
85863    pkg_cv_LUA_LIBS="$LUA_LIBS"
85864 elif test -n "$PKG_CONFIG"; then
85865    if test -n "$PKG_CONFIG" && \
85866    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
85867  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
85868  ac_status=$?
85869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85870  test $ac_status = 0; }; then
85871  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
85872		      test "x$?" != "x0" && pkg_failed=yes
85873else
85874  pkg_failed=yes
85875fi
85876 else
85877    pkg_failed=untried
85878fi
85879
85880
85881
85882if test $pkg_failed = yes; then
85883   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85884$as_echo "no" >&6; }
85885
85886if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
85887        _pkg_short_errors_supported=yes
85888else
85889        _pkg_short_errors_supported=no
85890fi
85891        if test $_pkg_short_errors_supported = yes; then
85892	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
85893        else
85894	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
85895        fi
85896	# Put the nasty error message in config.log where it belongs
85897	echo "$LUA_PKG_ERRORS" >&5
85898
85899	with_liblua="no (pkg-config cannot find liblua)"
85900
85901elif test $pkg_failed = untried; then
85902     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85903$as_echo "no" >&6; }
85904	with_liblua="no (pkg-config cannot find liblua)"
85905
85906else
85907	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
85908	LUA_LIBS=$pkg_cv_LUA_LIBS
85909        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
85910$as_echo "yes" >&6; }
85911	with_liblua="yes"
85912fi
85913
85914
85915else
85916	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
85917	LUA_LIBS=$pkg_cv_LUA_LIBS
85918        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
85919$as_echo "yes" >&6; }
85920	with_liblua="yes"
85921fi
85922
85923
85924else
85925	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
85926	LUA_LIBS=$pkg_cv_LUA_LIBS
85927        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
85928$as_echo "yes" >&6; }
85929	with_liblua="yes"
85930fi
85931
85932
85933elif test $pkg_failed = untried; then
85934     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85935$as_echo "no" >&6; }
85936
85937
85938pkg_failed=no
85939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
85940$as_echo_n "checking for LUA... " >&6; }
85941
85942if test -n "$LUA_CFLAGS"; then
85943    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
85944 elif test -n "$PKG_CONFIG"; then
85945    if test -n "$PKG_CONFIG" && \
85946    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
85947  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
85948  ac_status=$?
85949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85950  test $ac_status = 0; }; then
85951  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
85952		      test "x$?" != "x0" && pkg_failed=yes
85953else
85954  pkg_failed=yes
85955fi
85956 else
85957    pkg_failed=untried
85958fi
85959if test -n "$LUA_LIBS"; then
85960    pkg_cv_LUA_LIBS="$LUA_LIBS"
85961 elif test -n "$PKG_CONFIG"; then
85962    if test -n "$PKG_CONFIG" && \
85963    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
85964  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
85965  ac_status=$?
85966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85967  test $ac_status = 0; }; then
85968  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
85969		      test "x$?" != "x0" && pkg_failed=yes
85970else
85971  pkg_failed=yes
85972fi
85973 else
85974    pkg_failed=untried
85975fi
85976
85977
85978
85979if test $pkg_failed = yes; then
85980   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85981$as_echo "no" >&6; }
85982
85983if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
85984        _pkg_short_errors_supported=yes
85985else
85986        _pkg_short_errors_supported=no
85987fi
85988        if test $_pkg_short_errors_supported = yes; then
85989	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
85990        else
85991	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
85992        fi
85993	# Put the nasty error message in config.log where it belongs
85994	echo "$LUA_PKG_ERRORS" >&5
85995
85996
85997
85998pkg_failed=no
85999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
86000$as_echo_n "checking for LUA... " >&6; }
86001
86002if test -n "$LUA_CFLAGS"; then
86003    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
86004 elif test -n "$PKG_CONFIG"; then
86005    if test -n "$PKG_CONFIG" && \
86006    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
86007  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
86008  ac_status=$?
86009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86010  test $ac_status = 0; }; then
86011  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
86012		      test "x$?" != "x0" && pkg_failed=yes
86013else
86014  pkg_failed=yes
86015fi
86016 else
86017    pkg_failed=untried
86018fi
86019if test -n "$LUA_LIBS"; then
86020    pkg_cv_LUA_LIBS="$LUA_LIBS"
86021 elif test -n "$PKG_CONFIG"; then
86022    if test -n "$PKG_CONFIG" && \
86023    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
86024  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
86025  ac_status=$?
86026  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86027  test $ac_status = 0; }; then
86028  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
86029		      test "x$?" != "x0" && pkg_failed=yes
86030else
86031  pkg_failed=yes
86032fi
86033 else
86034    pkg_failed=untried
86035fi
86036
86037
86038
86039if test $pkg_failed = yes; then
86040   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86041$as_echo "no" >&6; }
86042
86043if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86044        _pkg_short_errors_supported=yes
86045else
86046        _pkg_short_errors_supported=no
86047fi
86048        if test $_pkg_short_errors_supported = yes; then
86049	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
86050        else
86051	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
86052        fi
86053	# Put the nasty error message in config.log where it belongs
86054	echo "$LUA_PKG_ERRORS" >&5
86055
86056
86057
86058pkg_failed=no
86059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
86060$as_echo_n "checking for LUA... " >&6; }
86061
86062if test -n "$LUA_CFLAGS"; then
86063    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
86064 elif test -n "$PKG_CONFIG"; then
86065    if test -n "$PKG_CONFIG" && \
86066    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
86067  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
86068  ac_status=$?
86069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86070  test $ac_status = 0; }; then
86071  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
86072		      test "x$?" != "x0" && pkg_failed=yes
86073else
86074  pkg_failed=yes
86075fi
86076 else
86077    pkg_failed=untried
86078fi
86079if test -n "$LUA_LIBS"; then
86080    pkg_cv_LUA_LIBS="$LUA_LIBS"
86081 elif test -n "$PKG_CONFIG"; then
86082    if test -n "$PKG_CONFIG" && \
86083    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
86084  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
86085  ac_status=$?
86086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86087  test $ac_status = 0; }; then
86088  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
86089		      test "x$?" != "x0" && pkg_failed=yes
86090else
86091  pkg_failed=yes
86092fi
86093 else
86094    pkg_failed=untried
86095fi
86096
86097
86098
86099if test $pkg_failed = yes; then
86100   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86101$as_echo "no" >&6; }
86102
86103if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86104        _pkg_short_errors_supported=yes
86105else
86106        _pkg_short_errors_supported=no
86107fi
86108        if test $_pkg_short_errors_supported = yes; then
86109	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
86110        else
86111	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
86112        fi
86113	# Put the nasty error message in config.log where it belongs
86114	echo "$LUA_PKG_ERRORS" >&5
86115
86116	with_liblua="no (pkg-config cannot find liblua)"
86117
86118elif test $pkg_failed = untried; then
86119     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86120$as_echo "no" >&6; }
86121	with_liblua="no (pkg-config cannot find liblua)"
86122
86123else
86124	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
86125	LUA_LIBS=$pkg_cv_LUA_LIBS
86126        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86127$as_echo "yes" >&6; }
86128	with_liblua="yes"
86129fi
86130
86131
86132elif test $pkg_failed = untried; then
86133     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86134$as_echo "no" >&6; }
86135
86136
86137pkg_failed=no
86138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
86139$as_echo_n "checking for LUA... " >&6; }
86140
86141if test -n "$LUA_CFLAGS"; then
86142    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
86143 elif test -n "$PKG_CONFIG"; then
86144    if test -n "$PKG_CONFIG" && \
86145    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
86146  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
86147  ac_status=$?
86148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86149  test $ac_status = 0; }; then
86150  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
86151		      test "x$?" != "x0" && pkg_failed=yes
86152else
86153  pkg_failed=yes
86154fi
86155 else
86156    pkg_failed=untried
86157fi
86158if test -n "$LUA_LIBS"; then
86159    pkg_cv_LUA_LIBS="$LUA_LIBS"
86160 elif test -n "$PKG_CONFIG"; then
86161    if test -n "$PKG_CONFIG" && \
86162    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
86163  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
86164  ac_status=$?
86165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86166  test $ac_status = 0; }; then
86167  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
86168		      test "x$?" != "x0" && pkg_failed=yes
86169else
86170  pkg_failed=yes
86171fi
86172 else
86173    pkg_failed=untried
86174fi
86175
86176
86177
86178if test $pkg_failed = yes; then
86179   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86180$as_echo "no" >&6; }
86181
86182if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86183        _pkg_short_errors_supported=yes
86184else
86185        _pkg_short_errors_supported=no
86186fi
86187        if test $_pkg_short_errors_supported = yes; then
86188	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
86189        else
86190	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
86191        fi
86192	# Put the nasty error message in config.log where it belongs
86193	echo "$LUA_PKG_ERRORS" >&5
86194
86195	with_liblua="no (pkg-config cannot find liblua)"
86196
86197elif test $pkg_failed = untried; then
86198     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86199$as_echo "no" >&6; }
86200	with_liblua="no (pkg-config cannot find liblua)"
86201
86202else
86203	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
86204	LUA_LIBS=$pkg_cv_LUA_LIBS
86205        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86206$as_echo "yes" >&6; }
86207	with_liblua="yes"
86208fi
86209
86210
86211else
86212	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
86213	LUA_LIBS=$pkg_cv_LUA_LIBS
86214        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86215$as_echo "yes" >&6; }
86216	with_liblua="yes"
86217fi
86218
86219
86220elif test $pkg_failed = untried; then
86221     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86222$as_echo "no" >&6; }
86223
86224
86225pkg_failed=no
86226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
86227$as_echo_n "checking for LUA... " >&6; }
86228
86229if test -n "$LUA_CFLAGS"; then
86230    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
86231 elif test -n "$PKG_CONFIG"; then
86232    if test -n "$PKG_CONFIG" && \
86233    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
86234  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
86235  ac_status=$?
86236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86237  test $ac_status = 0; }; then
86238  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
86239		      test "x$?" != "x0" && pkg_failed=yes
86240else
86241  pkg_failed=yes
86242fi
86243 else
86244    pkg_failed=untried
86245fi
86246if test -n "$LUA_LIBS"; then
86247    pkg_cv_LUA_LIBS="$LUA_LIBS"
86248 elif test -n "$PKG_CONFIG"; then
86249    if test -n "$PKG_CONFIG" && \
86250    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
86251  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
86252  ac_status=$?
86253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86254  test $ac_status = 0; }; then
86255  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
86256		      test "x$?" != "x0" && pkg_failed=yes
86257else
86258  pkg_failed=yes
86259fi
86260 else
86261    pkg_failed=untried
86262fi
86263
86264
86265
86266if test $pkg_failed = yes; then
86267   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86268$as_echo "no" >&6; }
86269
86270if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86271        _pkg_short_errors_supported=yes
86272else
86273        _pkg_short_errors_supported=no
86274fi
86275        if test $_pkg_short_errors_supported = yes; then
86276	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
86277        else
86278	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
86279        fi
86280	# Put the nasty error message in config.log where it belongs
86281	echo "$LUA_PKG_ERRORS" >&5
86282
86283
86284
86285pkg_failed=no
86286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
86287$as_echo_n "checking for LUA... " >&6; }
86288
86289if test -n "$LUA_CFLAGS"; then
86290    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
86291 elif test -n "$PKG_CONFIG"; then
86292    if test -n "$PKG_CONFIG" && \
86293    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
86294  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
86295  ac_status=$?
86296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86297  test $ac_status = 0; }; then
86298  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
86299		      test "x$?" != "x0" && pkg_failed=yes
86300else
86301  pkg_failed=yes
86302fi
86303 else
86304    pkg_failed=untried
86305fi
86306if test -n "$LUA_LIBS"; then
86307    pkg_cv_LUA_LIBS="$LUA_LIBS"
86308 elif test -n "$PKG_CONFIG"; then
86309    if test -n "$PKG_CONFIG" && \
86310    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
86311  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
86312  ac_status=$?
86313  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86314  test $ac_status = 0; }; then
86315  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
86316		      test "x$?" != "x0" && pkg_failed=yes
86317else
86318  pkg_failed=yes
86319fi
86320 else
86321    pkg_failed=untried
86322fi
86323
86324
86325
86326if test $pkg_failed = yes; then
86327   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86328$as_echo "no" >&6; }
86329
86330if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86331        _pkg_short_errors_supported=yes
86332else
86333        _pkg_short_errors_supported=no
86334fi
86335        if test $_pkg_short_errors_supported = yes; then
86336	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
86337        else
86338	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
86339        fi
86340	# Put the nasty error message in config.log where it belongs
86341	echo "$LUA_PKG_ERRORS" >&5
86342
86343	with_liblua="no (pkg-config cannot find liblua)"
86344
86345elif test $pkg_failed = untried; then
86346     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86347$as_echo "no" >&6; }
86348	with_liblua="no (pkg-config cannot find liblua)"
86349
86350else
86351	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
86352	LUA_LIBS=$pkg_cv_LUA_LIBS
86353        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86354$as_echo "yes" >&6; }
86355	with_liblua="yes"
86356fi
86357
86358
86359elif test $pkg_failed = untried; then
86360     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86361$as_echo "no" >&6; }
86362
86363
86364pkg_failed=no
86365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
86366$as_echo_n "checking for LUA... " >&6; }
86367
86368if test -n "$LUA_CFLAGS"; then
86369    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
86370 elif test -n "$PKG_CONFIG"; then
86371    if test -n "$PKG_CONFIG" && \
86372    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
86373  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
86374  ac_status=$?
86375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86376  test $ac_status = 0; }; then
86377  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
86378		      test "x$?" != "x0" && pkg_failed=yes
86379else
86380  pkg_failed=yes
86381fi
86382 else
86383    pkg_failed=untried
86384fi
86385if test -n "$LUA_LIBS"; then
86386    pkg_cv_LUA_LIBS="$LUA_LIBS"
86387 elif test -n "$PKG_CONFIG"; then
86388    if test -n "$PKG_CONFIG" && \
86389    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
86390  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
86391  ac_status=$?
86392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86393  test $ac_status = 0; }; then
86394  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
86395		      test "x$?" != "x0" && pkg_failed=yes
86396else
86397  pkg_failed=yes
86398fi
86399 else
86400    pkg_failed=untried
86401fi
86402
86403
86404
86405if test $pkg_failed = yes; then
86406   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86407$as_echo "no" >&6; }
86408
86409if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86410        _pkg_short_errors_supported=yes
86411else
86412        _pkg_short_errors_supported=no
86413fi
86414        if test $_pkg_short_errors_supported = yes; then
86415	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
86416        else
86417	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
86418        fi
86419	# Put the nasty error message in config.log where it belongs
86420	echo "$LUA_PKG_ERRORS" >&5
86421
86422	with_liblua="no (pkg-config cannot find liblua)"
86423
86424elif test $pkg_failed = untried; then
86425     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86426$as_echo "no" >&6; }
86427	with_liblua="no (pkg-config cannot find liblua)"
86428
86429else
86430	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
86431	LUA_LIBS=$pkg_cv_LUA_LIBS
86432        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86433$as_echo "yes" >&6; }
86434	with_liblua="yes"
86435fi
86436
86437
86438else
86439	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
86440	LUA_LIBS=$pkg_cv_LUA_LIBS
86441        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86442$as_echo "yes" >&6; }
86443	with_liblua="yes"
86444fi
86445
86446
86447else
86448	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
86449	LUA_LIBS=$pkg_cv_LUA_LIBS
86450        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86451$as_echo "yes" >&6; }
86452	with_liblua="yes"
86453fi
86454
86455
86456else
86457	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
86458	LUA_LIBS=$pkg_cv_LUA_LIBS
86459        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86460$as_echo "yes" >&6; }
86461	with_liblua="yes"
86462fi
86463
86464
86465elif test $pkg_failed = untried; then
86466     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86467$as_echo "no" >&6; }
86468
86469
86470pkg_failed=no
86471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
86472$as_echo_n "checking for LUA... " >&6; }
86473
86474if test -n "$LUA_CFLAGS"; then
86475    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
86476 elif test -n "$PKG_CONFIG"; then
86477    if test -n "$PKG_CONFIG" && \
86478    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
86479  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
86480  ac_status=$?
86481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86482  test $ac_status = 0; }; then
86483  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
86484		      test "x$?" != "x0" && pkg_failed=yes
86485else
86486  pkg_failed=yes
86487fi
86488 else
86489    pkg_failed=untried
86490fi
86491if test -n "$LUA_LIBS"; then
86492    pkg_cv_LUA_LIBS="$LUA_LIBS"
86493 elif test -n "$PKG_CONFIG"; then
86494    if test -n "$PKG_CONFIG" && \
86495    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
86496  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
86497  ac_status=$?
86498  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86499  test $ac_status = 0; }; then
86500  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
86501		      test "x$?" != "x0" && pkg_failed=yes
86502else
86503  pkg_failed=yes
86504fi
86505 else
86506    pkg_failed=untried
86507fi
86508
86509
86510
86511if test $pkg_failed = yes; then
86512   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86513$as_echo "no" >&6; }
86514
86515if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86516        _pkg_short_errors_supported=yes
86517else
86518        _pkg_short_errors_supported=no
86519fi
86520        if test $_pkg_short_errors_supported = yes; then
86521	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
86522        else
86523	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
86524        fi
86525	# Put the nasty error message in config.log where it belongs
86526	echo "$LUA_PKG_ERRORS" >&5
86527
86528
86529
86530pkg_failed=no
86531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
86532$as_echo_n "checking for LUA... " >&6; }
86533
86534if test -n "$LUA_CFLAGS"; then
86535    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
86536 elif test -n "$PKG_CONFIG"; then
86537    if test -n "$PKG_CONFIG" && \
86538    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
86539  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
86540  ac_status=$?
86541  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86542  test $ac_status = 0; }; then
86543  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
86544		      test "x$?" != "x0" && pkg_failed=yes
86545else
86546  pkg_failed=yes
86547fi
86548 else
86549    pkg_failed=untried
86550fi
86551if test -n "$LUA_LIBS"; then
86552    pkg_cv_LUA_LIBS="$LUA_LIBS"
86553 elif test -n "$PKG_CONFIG"; then
86554    if test -n "$PKG_CONFIG" && \
86555    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
86556  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
86557  ac_status=$?
86558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86559  test $ac_status = 0; }; then
86560  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
86561		      test "x$?" != "x0" && pkg_failed=yes
86562else
86563  pkg_failed=yes
86564fi
86565 else
86566    pkg_failed=untried
86567fi
86568
86569
86570
86571if test $pkg_failed = yes; then
86572   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86573$as_echo "no" >&6; }
86574
86575if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86576        _pkg_short_errors_supported=yes
86577else
86578        _pkg_short_errors_supported=no
86579fi
86580        if test $_pkg_short_errors_supported = yes; then
86581	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
86582        else
86583	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
86584        fi
86585	# Put the nasty error message in config.log where it belongs
86586	echo "$LUA_PKG_ERRORS" >&5
86587
86588
86589
86590pkg_failed=no
86591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
86592$as_echo_n "checking for LUA... " >&6; }
86593
86594if test -n "$LUA_CFLAGS"; then
86595    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
86596 elif test -n "$PKG_CONFIG"; then
86597    if test -n "$PKG_CONFIG" && \
86598    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
86599  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
86600  ac_status=$?
86601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86602  test $ac_status = 0; }; then
86603  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
86604		      test "x$?" != "x0" && pkg_failed=yes
86605else
86606  pkg_failed=yes
86607fi
86608 else
86609    pkg_failed=untried
86610fi
86611if test -n "$LUA_LIBS"; then
86612    pkg_cv_LUA_LIBS="$LUA_LIBS"
86613 elif test -n "$PKG_CONFIG"; then
86614    if test -n "$PKG_CONFIG" && \
86615    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
86616  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
86617  ac_status=$?
86618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86619  test $ac_status = 0; }; then
86620  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
86621		      test "x$?" != "x0" && pkg_failed=yes
86622else
86623  pkg_failed=yes
86624fi
86625 else
86626    pkg_failed=untried
86627fi
86628
86629
86630
86631if test $pkg_failed = yes; then
86632   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86633$as_echo "no" >&6; }
86634
86635if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86636        _pkg_short_errors_supported=yes
86637else
86638        _pkg_short_errors_supported=no
86639fi
86640        if test $_pkg_short_errors_supported = yes; then
86641	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
86642        else
86643	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
86644        fi
86645	# Put the nasty error message in config.log where it belongs
86646	echo "$LUA_PKG_ERRORS" >&5
86647
86648
86649
86650pkg_failed=no
86651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
86652$as_echo_n "checking for LUA... " >&6; }
86653
86654if test -n "$LUA_CFLAGS"; then
86655    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
86656 elif test -n "$PKG_CONFIG"; then
86657    if test -n "$PKG_CONFIG" && \
86658    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
86659  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
86660  ac_status=$?
86661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86662  test $ac_status = 0; }; then
86663  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
86664		      test "x$?" != "x0" && pkg_failed=yes
86665else
86666  pkg_failed=yes
86667fi
86668 else
86669    pkg_failed=untried
86670fi
86671if test -n "$LUA_LIBS"; then
86672    pkg_cv_LUA_LIBS="$LUA_LIBS"
86673 elif test -n "$PKG_CONFIG"; then
86674    if test -n "$PKG_CONFIG" && \
86675    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
86676  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
86677  ac_status=$?
86678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86679  test $ac_status = 0; }; then
86680  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
86681		      test "x$?" != "x0" && pkg_failed=yes
86682else
86683  pkg_failed=yes
86684fi
86685 else
86686    pkg_failed=untried
86687fi
86688
86689
86690
86691if test $pkg_failed = yes; then
86692   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86693$as_echo "no" >&6; }
86694
86695if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86696        _pkg_short_errors_supported=yes
86697else
86698        _pkg_short_errors_supported=no
86699fi
86700        if test $_pkg_short_errors_supported = yes; then
86701	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
86702        else
86703	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
86704        fi
86705	# Put the nasty error message in config.log where it belongs
86706	echo "$LUA_PKG_ERRORS" >&5
86707
86708	with_liblua="no (pkg-config cannot find liblua)"
86709
86710elif test $pkg_failed = untried; then
86711     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86712$as_echo "no" >&6; }
86713	with_liblua="no (pkg-config cannot find liblua)"
86714
86715else
86716	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
86717	LUA_LIBS=$pkg_cv_LUA_LIBS
86718        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86719$as_echo "yes" >&6; }
86720	with_liblua="yes"
86721fi
86722
86723
86724elif test $pkg_failed = untried; then
86725     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86726$as_echo "no" >&6; }
86727
86728
86729pkg_failed=no
86730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
86731$as_echo_n "checking for LUA... " >&6; }
86732
86733if test -n "$LUA_CFLAGS"; then
86734    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
86735 elif test -n "$PKG_CONFIG"; then
86736    if test -n "$PKG_CONFIG" && \
86737    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
86738  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
86739  ac_status=$?
86740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86741  test $ac_status = 0; }; then
86742  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
86743		      test "x$?" != "x0" && pkg_failed=yes
86744else
86745  pkg_failed=yes
86746fi
86747 else
86748    pkg_failed=untried
86749fi
86750if test -n "$LUA_LIBS"; then
86751    pkg_cv_LUA_LIBS="$LUA_LIBS"
86752 elif test -n "$PKG_CONFIG"; then
86753    if test -n "$PKG_CONFIG" && \
86754    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
86755  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
86756  ac_status=$?
86757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86758  test $ac_status = 0; }; then
86759  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
86760		      test "x$?" != "x0" && pkg_failed=yes
86761else
86762  pkg_failed=yes
86763fi
86764 else
86765    pkg_failed=untried
86766fi
86767
86768
86769
86770if test $pkg_failed = yes; then
86771   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86772$as_echo "no" >&6; }
86773
86774if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86775        _pkg_short_errors_supported=yes
86776else
86777        _pkg_short_errors_supported=no
86778fi
86779        if test $_pkg_short_errors_supported = yes; then
86780	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
86781        else
86782	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
86783        fi
86784	# Put the nasty error message in config.log where it belongs
86785	echo "$LUA_PKG_ERRORS" >&5
86786
86787	with_liblua="no (pkg-config cannot find liblua)"
86788
86789elif test $pkg_failed = untried; then
86790     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86791$as_echo "no" >&6; }
86792	with_liblua="no (pkg-config cannot find liblua)"
86793
86794else
86795	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
86796	LUA_LIBS=$pkg_cv_LUA_LIBS
86797        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86798$as_echo "yes" >&6; }
86799	with_liblua="yes"
86800fi
86801
86802
86803else
86804	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
86805	LUA_LIBS=$pkg_cv_LUA_LIBS
86806        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86807$as_echo "yes" >&6; }
86808	with_liblua="yes"
86809fi
86810
86811
86812elif test $pkg_failed = untried; then
86813     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86814$as_echo "no" >&6; }
86815
86816
86817pkg_failed=no
86818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
86819$as_echo_n "checking for LUA... " >&6; }
86820
86821if test -n "$LUA_CFLAGS"; then
86822    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
86823 elif test -n "$PKG_CONFIG"; then
86824    if test -n "$PKG_CONFIG" && \
86825    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
86826  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
86827  ac_status=$?
86828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86829  test $ac_status = 0; }; then
86830  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
86831		      test "x$?" != "x0" && pkg_failed=yes
86832else
86833  pkg_failed=yes
86834fi
86835 else
86836    pkg_failed=untried
86837fi
86838if test -n "$LUA_LIBS"; then
86839    pkg_cv_LUA_LIBS="$LUA_LIBS"
86840 elif test -n "$PKG_CONFIG"; then
86841    if test -n "$PKG_CONFIG" && \
86842    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
86843  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
86844  ac_status=$?
86845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86846  test $ac_status = 0; }; then
86847  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
86848		      test "x$?" != "x0" && pkg_failed=yes
86849else
86850  pkg_failed=yes
86851fi
86852 else
86853    pkg_failed=untried
86854fi
86855
86856
86857
86858if test $pkg_failed = yes; then
86859   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86860$as_echo "no" >&6; }
86861
86862if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86863        _pkg_short_errors_supported=yes
86864else
86865        _pkg_short_errors_supported=no
86866fi
86867        if test $_pkg_short_errors_supported = yes; then
86868	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
86869        else
86870	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
86871        fi
86872	# Put the nasty error message in config.log where it belongs
86873	echo "$LUA_PKG_ERRORS" >&5
86874
86875
86876
86877pkg_failed=no
86878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
86879$as_echo_n "checking for LUA... " >&6; }
86880
86881if test -n "$LUA_CFLAGS"; then
86882    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
86883 elif test -n "$PKG_CONFIG"; then
86884    if test -n "$PKG_CONFIG" && \
86885    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
86886  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
86887  ac_status=$?
86888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86889  test $ac_status = 0; }; then
86890  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
86891		      test "x$?" != "x0" && pkg_failed=yes
86892else
86893  pkg_failed=yes
86894fi
86895 else
86896    pkg_failed=untried
86897fi
86898if test -n "$LUA_LIBS"; then
86899    pkg_cv_LUA_LIBS="$LUA_LIBS"
86900 elif test -n "$PKG_CONFIG"; then
86901    if test -n "$PKG_CONFIG" && \
86902    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
86903  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
86904  ac_status=$?
86905  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86906  test $ac_status = 0; }; then
86907  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
86908		      test "x$?" != "x0" && pkg_failed=yes
86909else
86910  pkg_failed=yes
86911fi
86912 else
86913    pkg_failed=untried
86914fi
86915
86916
86917
86918if test $pkg_failed = yes; then
86919   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86920$as_echo "no" >&6; }
86921
86922if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86923        _pkg_short_errors_supported=yes
86924else
86925        _pkg_short_errors_supported=no
86926fi
86927        if test $_pkg_short_errors_supported = yes; then
86928	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
86929        else
86930	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
86931        fi
86932	# Put the nasty error message in config.log where it belongs
86933	echo "$LUA_PKG_ERRORS" >&5
86934
86935	with_liblua="no (pkg-config cannot find liblua)"
86936
86937elif test $pkg_failed = untried; then
86938     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86939$as_echo "no" >&6; }
86940	with_liblua="no (pkg-config cannot find liblua)"
86941
86942else
86943	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
86944	LUA_LIBS=$pkg_cv_LUA_LIBS
86945        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86946$as_echo "yes" >&6; }
86947	with_liblua="yes"
86948fi
86949
86950
86951elif test $pkg_failed = untried; then
86952     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86953$as_echo "no" >&6; }
86954
86955
86956pkg_failed=no
86957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
86958$as_echo_n "checking for LUA... " >&6; }
86959
86960if test -n "$LUA_CFLAGS"; then
86961    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
86962 elif test -n "$PKG_CONFIG"; then
86963    if test -n "$PKG_CONFIG" && \
86964    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
86965  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
86966  ac_status=$?
86967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86968  test $ac_status = 0; }; then
86969  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
86970		      test "x$?" != "x0" && pkg_failed=yes
86971else
86972  pkg_failed=yes
86973fi
86974 else
86975    pkg_failed=untried
86976fi
86977if test -n "$LUA_LIBS"; then
86978    pkg_cv_LUA_LIBS="$LUA_LIBS"
86979 elif test -n "$PKG_CONFIG"; then
86980    if test -n "$PKG_CONFIG" && \
86981    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
86982  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
86983  ac_status=$?
86984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86985  test $ac_status = 0; }; then
86986  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
86987		      test "x$?" != "x0" && pkg_failed=yes
86988else
86989  pkg_failed=yes
86990fi
86991 else
86992    pkg_failed=untried
86993fi
86994
86995
86996
86997if test $pkg_failed = yes; then
86998   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86999$as_echo "no" >&6; }
87000
87001if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87002        _pkg_short_errors_supported=yes
87003else
87004        _pkg_short_errors_supported=no
87005fi
87006        if test $_pkg_short_errors_supported = yes; then
87007	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
87008        else
87009	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
87010        fi
87011	# Put the nasty error message in config.log where it belongs
87012	echo "$LUA_PKG_ERRORS" >&5
87013
87014	with_liblua="no (pkg-config cannot find liblua)"
87015
87016elif test $pkg_failed = untried; then
87017     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87018$as_echo "no" >&6; }
87019	with_liblua="no (pkg-config cannot find liblua)"
87020
87021else
87022	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
87023	LUA_LIBS=$pkg_cv_LUA_LIBS
87024        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87025$as_echo "yes" >&6; }
87026	with_liblua="yes"
87027fi
87028
87029
87030else
87031	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
87032	LUA_LIBS=$pkg_cv_LUA_LIBS
87033        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87034$as_echo "yes" >&6; }
87035	with_liblua="yes"
87036fi
87037
87038
87039else
87040	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
87041	LUA_LIBS=$pkg_cv_LUA_LIBS
87042        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87043$as_echo "yes" >&6; }
87044	with_liblua="yes"
87045fi
87046
87047
87048elif test $pkg_failed = untried; then
87049     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87050$as_echo "no" >&6; }
87051
87052
87053pkg_failed=no
87054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
87055$as_echo_n "checking for LUA... " >&6; }
87056
87057if test -n "$LUA_CFLAGS"; then
87058    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
87059 elif test -n "$PKG_CONFIG"; then
87060    if test -n "$PKG_CONFIG" && \
87061    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
87062  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
87063  ac_status=$?
87064  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87065  test $ac_status = 0; }; then
87066  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
87067		      test "x$?" != "x0" && pkg_failed=yes
87068else
87069  pkg_failed=yes
87070fi
87071 else
87072    pkg_failed=untried
87073fi
87074if test -n "$LUA_LIBS"; then
87075    pkg_cv_LUA_LIBS="$LUA_LIBS"
87076 elif test -n "$PKG_CONFIG"; then
87077    if test -n "$PKG_CONFIG" && \
87078    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
87079  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
87080  ac_status=$?
87081  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87082  test $ac_status = 0; }; then
87083  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
87084		      test "x$?" != "x0" && pkg_failed=yes
87085else
87086  pkg_failed=yes
87087fi
87088 else
87089    pkg_failed=untried
87090fi
87091
87092
87093
87094if test $pkg_failed = yes; then
87095   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87096$as_echo "no" >&6; }
87097
87098if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87099        _pkg_short_errors_supported=yes
87100else
87101        _pkg_short_errors_supported=no
87102fi
87103        if test $_pkg_short_errors_supported = yes; then
87104	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
87105        else
87106	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
87107        fi
87108	# Put the nasty error message in config.log where it belongs
87109	echo "$LUA_PKG_ERRORS" >&5
87110
87111
87112
87113pkg_failed=no
87114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
87115$as_echo_n "checking for LUA... " >&6; }
87116
87117if test -n "$LUA_CFLAGS"; then
87118    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
87119 elif test -n "$PKG_CONFIG"; then
87120    if test -n "$PKG_CONFIG" && \
87121    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
87122  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
87123  ac_status=$?
87124  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87125  test $ac_status = 0; }; then
87126  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
87127		      test "x$?" != "x0" && pkg_failed=yes
87128else
87129  pkg_failed=yes
87130fi
87131 else
87132    pkg_failed=untried
87133fi
87134if test -n "$LUA_LIBS"; then
87135    pkg_cv_LUA_LIBS="$LUA_LIBS"
87136 elif test -n "$PKG_CONFIG"; then
87137    if test -n "$PKG_CONFIG" && \
87138    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
87139  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
87140  ac_status=$?
87141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87142  test $ac_status = 0; }; then
87143  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
87144		      test "x$?" != "x0" && pkg_failed=yes
87145else
87146  pkg_failed=yes
87147fi
87148 else
87149    pkg_failed=untried
87150fi
87151
87152
87153
87154if test $pkg_failed = yes; then
87155   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87156$as_echo "no" >&6; }
87157
87158if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87159        _pkg_short_errors_supported=yes
87160else
87161        _pkg_short_errors_supported=no
87162fi
87163        if test $_pkg_short_errors_supported = yes; then
87164	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
87165        else
87166	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
87167        fi
87168	# Put the nasty error message in config.log where it belongs
87169	echo "$LUA_PKG_ERRORS" >&5
87170
87171
87172
87173pkg_failed=no
87174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
87175$as_echo_n "checking for LUA... " >&6; }
87176
87177if test -n "$LUA_CFLAGS"; then
87178    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
87179 elif test -n "$PKG_CONFIG"; then
87180    if test -n "$PKG_CONFIG" && \
87181    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
87182  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
87183  ac_status=$?
87184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87185  test $ac_status = 0; }; then
87186  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
87187		      test "x$?" != "x0" && pkg_failed=yes
87188else
87189  pkg_failed=yes
87190fi
87191 else
87192    pkg_failed=untried
87193fi
87194if test -n "$LUA_LIBS"; then
87195    pkg_cv_LUA_LIBS="$LUA_LIBS"
87196 elif test -n "$PKG_CONFIG"; then
87197    if test -n "$PKG_CONFIG" && \
87198    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
87199  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
87200  ac_status=$?
87201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87202  test $ac_status = 0; }; then
87203  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
87204		      test "x$?" != "x0" && pkg_failed=yes
87205else
87206  pkg_failed=yes
87207fi
87208 else
87209    pkg_failed=untried
87210fi
87211
87212
87213
87214if test $pkg_failed = yes; then
87215   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87216$as_echo "no" >&6; }
87217
87218if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87219        _pkg_short_errors_supported=yes
87220else
87221        _pkg_short_errors_supported=no
87222fi
87223        if test $_pkg_short_errors_supported = yes; then
87224	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
87225        else
87226	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
87227        fi
87228	# Put the nasty error message in config.log where it belongs
87229	echo "$LUA_PKG_ERRORS" >&5
87230
87231	with_liblua="no (pkg-config cannot find liblua)"
87232
87233elif test $pkg_failed = untried; then
87234     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87235$as_echo "no" >&6; }
87236	with_liblua="no (pkg-config cannot find liblua)"
87237
87238else
87239	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
87240	LUA_LIBS=$pkg_cv_LUA_LIBS
87241        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87242$as_echo "yes" >&6; }
87243	with_liblua="yes"
87244fi
87245
87246
87247elif test $pkg_failed = untried; then
87248     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87249$as_echo "no" >&6; }
87250
87251
87252pkg_failed=no
87253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
87254$as_echo_n "checking for LUA... " >&6; }
87255
87256if test -n "$LUA_CFLAGS"; then
87257    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
87258 elif test -n "$PKG_CONFIG"; then
87259    if test -n "$PKG_CONFIG" && \
87260    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
87261  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
87262  ac_status=$?
87263  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87264  test $ac_status = 0; }; then
87265  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
87266		      test "x$?" != "x0" && pkg_failed=yes
87267else
87268  pkg_failed=yes
87269fi
87270 else
87271    pkg_failed=untried
87272fi
87273if test -n "$LUA_LIBS"; then
87274    pkg_cv_LUA_LIBS="$LUA_LIBS"
87275 elif test -n "$PKG_CONFIG"; then
87276    if test -n "$PKG_CONFIG" && \
87277    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
87278  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
87279  ac_status=$?
87280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87281  test $ac_status = 0; }; then
87282  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
87283		      test "x$?" != "x0" && pkg_failed=yes
87284else
87285  pkg_failed=yes
87286fi
87287 else
87288    pkg_failed=untried
87289fi
87290
87291
87292
87293if test $pkg_failed = yes; then
87294   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87295$as_echo "no" >&6; }
87296
87297if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87298        _pkg_short_errors_supported=yes
87299else
87300        _pkg_short_errors_supported=no
87301fi
87302        if test $_pkg_short_errors_supported = yes; then
87303	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
87304        else
87305	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
87306        fi
87307	# Put the nasty error message in config.log where it belongs
87308	echo "$LUA_PKG_ERRORS" >&5
87309
87310	with_liblua="no (pkg-config cannot find liblua)"
87311
87312elif test $pkg_failed = untried; then
87313     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87314$as_echo "no" >&6; }
87315	with_liblua="no (pkg-config cannot find liblua)"
87316
87317else
87318	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
87319	LUA_LIBS=$pkg_cv_LUA_LIBS
87320        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87321$as_echo "yes" >&6; }
87322	with_liblua="yes"
87323fi
87324
87325
87326else
87327	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
87328	LUA_LIBS=$pkg_cv_LUA_LIBS
87329        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87330$as_echo "yes" >&6; }
87331	with_liblua="yes"
87332fi
87333
87334
87335elif test $pkg_failed = untried; then
87336     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87337$as_echo "no" >&6; }
87338
87339
87340pkg_failed=no
87341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
87342$as_echo_n "checking for LUA... " >&6; }
87343
87344if test -n "$LUA_CFLAGS"; then
87345    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
87346 elif test -n "$PKG_CONFIG"; then
87347    if test -n "$PKG_CONFIG" && \
87348    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
87349  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
87350  ac_status=$?
87351  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87352  test $ac_status = 0; }; then
87353  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
87354		      test "x$?" != "x0" && pkg_failed=yes
87355else
87356  pkg_failed=yes
87357fi
87358 else
87359    pkg_failed=untried
87360fi
87361if test -n "$LUA_LIBS"; then
87362    pkg_cv_LUA_LIBS="$LUA_LIBS"
87363 elif test -n "$PKG_CONFIG"; then
87364    if test -n "$PKG_CONFIG" && \
87365    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
87366  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
87367  ac_status=$?
87368  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87369  test $ac_status = 0; }; then
87370  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
87371		      test "x$?" != "x0" && pkg_failed=yes
87372else
87373  pkg_failed=yes
87374fi
87375 else
87376    pkg_failed=untried
87377fi
87378
87379
87380
87381if test $pkg_failed = yes; then
87382   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87383$as_echo "no" >&6; }
87384
87385if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87386        _pkg_short_errors_supported=yes
87387else
87388        _pkg_short_errors_supported=no
87389fi
87390        if test $_pkg_short_errors_supported = yes; then
87391	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
87392        else
87393	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
87394        fi
87395	# Put the nasty error message in config.log where it belongs
87396	echo "$LUA_PKG_ERRORS" >&5
87397
87398
87399
87400pkg_failed=no
87401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
87402$as_echo_n "checking for LUA... " >&6; }
87403
87404if test -n "$LUA_CFLAGS"; then
87405    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
87406 elif test -n "$PKG_CONFIG"; then
87407    if test -n "$PKG_CONFIG" && \
87408    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
87409  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
87410  ac_status=$?
87411  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87412  test $ac_status = 0; }; then
87413  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
87414		      test "x$?" != "x0" && pkg_failed=yes
87415else
87416  pkg_failed=yes
87417fi
87418 else
87419    pkg_failed=untried
87420fi
87421if test -n "$LUA_LIBS"; then
87422    pkg_cv_LUA_LIBS="$LUA_LIBS"
87423 elif test -n "$PKG_CONFIG"; then
87424    if test -n "$PKG_CONFIG" && \
87425    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
87426  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
87427  ac_status=$?
87428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87429  test $ac_status = 0; }; then
87430  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
87431		      test "x$?" != "x0" && pkg_failed=yes
87432else
87433  pkg_failed=yes
87434fi
87435 else
87436    pkg_failed=untried
87437fi
87438
87439
87440
87441if test $pkg_failed = yes; then
87442   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87443$as_echo "no" >&6; }
87444
87445if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87446        _pkg_short_errors_supported=yes
87447else
87448        _pkg_short_errors_supported=no
87449fi
87450        if test $_pkg_short_errors_supported = yes; then
87451	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
87452        else
87453	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
87454        fi
87455	# Put the nasty error message in config.log where it belongs
87456	echo "$LUA_PKG_ERRORS" >&5
87457
87458	with_liblua="no (pkg-config cannot find liblua)"
87459
87460elif test $pkg_failed = untried; then
87461     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87462$as_echo "no" >&6; }
87463	with_liblua="no (pkg-config cannot find liblua)"
87464
87465else
87466	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
87467	LUA_LIBS=$pkg_cv_LUA_LIBS
87468        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87469$as_echo "yes" >&6; }
87470	with_liblua="yes"
87471fi
87472
87473
87474elif test $pkg_failed = untried; then
87475     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87476$as_echo "no" >&6; }
87477
87478
87479pkg_failed=no
87480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
87481$as_echo_n "checking for LUA... " >&6; }
87482
87483if test -n "$LUA_CFLAGS"; then
87484    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
87485 elif test -n "$PKG_CONFIG"; then
87486    if test -n "$PKG_CONFIG" && \
87487    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
87488  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
87489  ac_status=$?
87490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87491  test $ac_status = 0; }; then
87492  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
87493		      test "x$?" != "x0" && pkg_failed=yes
87494else
87495  pkg_failed=yes
87496fi
87497 else
87498    pkg_failed=untried
87499fi
87500if test -n "$LUA_LIBS"; then
87501    pkg_cv_LUA_LIBS="$LUA_LIBS"
87502 elif test -n "$PKG_CONFIG"; then
87503    if test -n "$PKG_CONFIG" && \
87504    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
87505  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
87506  ac_status=$?
87507  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87508  test $ac_status = 0; }; then
87509  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
87510		      test "x$?" != "x0" && pkg_failed=yes
87511else
87512  pkg_failed=yes
87513fi
87514 else
87515    pkg_failed=untried
87516fi
87517
87518
87519
87520if test $pkg_failed = yes; then
87521   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87522$as_echo "no" >&6; }
87523
87524if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87525        _pkg_short_errors_supported=yes
87526else
87527        _pkg_short_errors_supported=no
87528fi
87529        if test $_pkg_short_errors_supported = yes; then
87530	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
87531        else
87532	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
87533        fi
87534	# Put the nasty error message in config.log where it belongs
87535	echo "$LUA_PKG_ERRORS" >&5
87536
87537	with_liblua="no (pkg-config cannot find liblua)"
87538
87539elif test $pkg_failed = untried; then
87540     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87541$as_echo "no" >&6; }
87542	with_liblua="no (pkg-config cannot find liblua)"
87543
87544else
87545	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
87546	LUA_LIBS=$pkg_cv_LUA_LIBS
87547        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87548$as_echo "yes" >&6; }
87549	with_liblua="yes"
87550fi
87551
87552
87553else
87554	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
87555	LUA_LIBS=$pkg_cv_LUA_LIBS
87556        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87557$as_echo "yes" >&6; }
87558	with_liblua="yes"
87559fi
87560
87561
87562else
87563	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
87564	LUA_LIBS=$pkg_cv_LUA_LIBS
87565        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87566$as_echo "yes" >&6; }
87567	with_liblua="yes"
87568fi
87569
87570
87571else
87572	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
87573	LUA_LIBS=$pkg_cv_LUA_LIBS
87574        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87575$as_echo "yes" >&6; }
87576	with_liblua="yes"
87577fi
87578
87579
87580else
87581	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
87582	LUA_LIBS=$pkg_cv_LUA_LIBS
87583        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87584$as_echo "yes" >&6; }
87585	with_liblua="yes"
87586fi
87587
87588
87589else
87590	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
87591	LUA_LIBS=$pkg_cv_LUA_LIBS
87592        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87593$as_echo "yes" >&6; }
87594	with_liblua="yes"
87595fi
87596
87597
87598elif test $pkg_failed = untried; then
87599     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87600$as_echo "no" >&6; }
87601
87602
87603pkg_failed=no
87604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
87605$as_echo_n "checking for LUA... " >&6; }
87606
87607if test -n "$LUA_CFLAGS"; then
87608    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
87609 elif test -n "$PKG_CONFIG"; then
87610    if test -n "$PKG_CONFIG" && \
87611    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
87612  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
87613  ac_status=$?
87614  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87615  test $ac_status = 0; }; then
87616  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.2" 2>/dev/null`
87617		      test "x$?" != "x0" && pkg_failed=yes
87618else
87619  pkg_failed=yes
87620fi
87621 else
87622    pkg_failed=untried
87623fi
87624if test -n "$LUA_LIBS"; then
87625    pkg_cv_LUA_LIBS="$LUA_LIBS"
87626 elif test -n "$PKG_CONFIG"; then
87627    if test -n "$PKG_CONFIG" && \
87628    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
87629  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
87630  ac_status=$?
87631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87632  test $ac_status = 0; }; then
87633  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.2" 2>/dev/null`
87634		      test "x$?" != "x0" && pkg_failed=yes
87635else
87636  pkg_failed=yes
87637fi
87638 else
87639    pkg_failed=untried
87640fi
87641
87642
87643
87644if test $pkg_failed = yes; then
87645   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87646$as_echo "no" >&6; }
87647
87648if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87649        _pkg_short_errors_supported=yes
87650else
87651        _pkg_short_errors_supported=no
87652fi
87653        if test $_pkg_short_errors_supported = yes; then
87654	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.2" 2>&1`
87655        else
87656	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.2" 2>&1`
87657        fi
87658	# Put the nasty error message in config.log where it belongs
87659	echo "$LUA_PKG_ERRORS" >&5
87660
87661
87662
87663pkg_failed=no
87664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
87665$as_echo_n "checking for LUA... " >&6; }
87666
87667if test -n "$LUA_CFLAGS"; then
87668    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
87669 elif test -n "$PKG_CONFIG"; then
87670    if test -n "$PKG_CONFIG" && \
87671    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
87672  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
87673  ac_status=$?
87674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87675  test $ac_status = 0; }; then
87676  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
87677		      test "x$?" != "x0" && pkg_failed=yes
87678else
87679  pkg_failed=yes
87680fi
87681 else
87682    pkg_failed=untried
87683fi
87684if test -n "$LUA_LIBS"; then
87685    pkg_cv_LUA_LIBS="$LUA_LIBS"
87686 elif test -n "$PKG_CONFIG"; then
87687    if test -n "$PKG_CONFIG" && \
87688    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
87689  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
87690  ac_status=$?
87691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87692  test $ac_status = 0; }; then
87693  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
87694		      test "x$?" != "x0" && pkg_failed=yes
87695else
87696  pkg_failed=yes
87697fi
87698 else
87699    pkg_failed=untried
87700fi
87701
87702
87703
87704if test $pkg_failed = yes; then
87705   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87706$as_echo "no" >&6; }
87707
87708if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87709        _pkg_short_errors_supported=yes
87710else
87711        _pkg_short_errors_supported=no
87712fi
87713        if test $_pkg_short_errors_supported = yes; then
87714	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
87715        else
87716	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
87717        fi
87718	# Put the nasty error message in config.log where it belongs
87719	echo "$LUA_PKG_ERRORS" >&5
87720
87721
87722
87723pkg_failed=no
87724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
87725$as_echo_n "checking for LUA... " >&6; }
87726
87727if test -n "$LUA_CFLAGS"; then
87728    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
87729 elif test -n "$PKG_CONFIG"; then
87730    if test -n "$PKG_CONFIG" && \
87731    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
87732  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
87733  ac_status=$?
87734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87735  test $ac_status = 0; }; then
87736  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
87737		      test "x$?" != "x0" && pkg_failed=yes
87738else
87739  pkg_failed=yes
87740fi
87741 else
87742    pkg_failed=untried
87743fi
87744if test -n "$LUA_LIBS"; then
87745    pkg_cv_LUA_LIBS="$LUA_LIBS"
87746 elif test -n "$PKG_CONFIG"; then
87747    if test -n "$PKG_CONFIG" && \
87748    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
87749  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
87750  ac_status=$?
87751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87752  test $ac_status = 0; }; then
87753  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
87754		      test "x$?" != "x0" && pkg_failed=yes
87755else
87756  pkg_failed=yes
87757fi
87758 else
87759    pkg_failed=untried
87760fi
87761
87762
87763
87764if test $pkg_failed = yes; then
87765   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87766$as_echo "no" >&6; }
87767
87768if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87769        _pkg_short_errors_supported=yes
87770else
87771        _pkg_short_errors_supported=no
87772fi
87773        if test $_pkg_short_errors_supported = yes; then
87774	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
87775        else
87776	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
87777        fi
87778	# Put the nasty error message in config.log where it belongs
87779	echo "$LUA_PKG_ERRORS" >&5
87780
87781
87782
87783pkg_failed=no
87784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
87785$as_echo_n "checking for LUA... " >&6; }
87786
87787if test -n "$LUA_CFLAGS"; then
87788    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
87789 elif test -n "$PKG_CONFIG"; then
87790    if test -n "$PKG_CONFIG" && \
87791    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
87792  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
87793  ac_status=$?
87794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87795  test $ac_status = 0; }; then
87796  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
87797		      test "x$?" != "x0" && pkg_failed=yes
87798else
87799  pkg_failed=yes
87800fi
87801 else
87802    pkg_failed=untried
87803fi
87804if test -n "$LUA_LIBS"; then
87805    pkg_cv_LUA_LIBS="$LUA_LIBS"
87806 elif test -n "$PKG_CONFIG"; then
87807    if test -n "$PKG_CONFIG" && \
87808    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
87809  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
87810  ac_status=$?
87811  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87812  test $ac_status = 0; }; then
87813  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
87814		      test "x$?" != "x0" && pkg_failed=yes
87815else
87816  pkg_failed=yes
87817fi
87818 else
87819    pkg_failed=untried
87820fi
87821
87822
87823
87824if test $pkg_failed = yes; then
87825   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87826$as_echo "no" >&6; }
87827
87828if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87829        _pkg_short_errors_supported=yes
87830else
87831        _pkg_short_errors_supported=no
87832fi
87833        if test $_pkg_short_errors_supported = yes; then
87834	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
87835        else
87836	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
87837        fi
87838	# Put the nasty error message in config.log where it belongs
87839	echo "$LUA_PKG_ERRORS" >&5
87840
87841
87842
87843pkg_failed=no
87844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
87845$as_echo_n "checking for LUA... " >&6; }
87846
87847if test -n "$LUA_CFLAGS"; then
87848    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
87849 elif test -n "$PKG_CONFIG"; then
87850    if test -n "$PKG_CONFIG" && \
87851    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
87852  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
87853  ac_status=$?
87854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87855  test $ac_status = 0; }; then
87856  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
87857		      test "x$?" != "x0" && pkg_failed=yes
87858else
87859  pkg_failed=yes
87860fi
87861 else
87862    pkg_failed=untried
87863fi
87864if test -n "$LUA_LIBS"; then
87865    pkg_cv_LUA_LIBS="$LUA_LIBS"
87866 elif test -n "$PKG_CONFIG"; then
87867    if test -n "$PKG_CONFIG" && \
87868    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
87869  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
87870  ac_status=$?
87871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87872  test $ac_status = 0; }; then
87873  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
87874		      test "x$?" != "x0" && pkg_failed=yes
87875else
87876  pkg_failed=yes
87877fi
87878 else
87879    pkg_failed=untried
87880fi
87881
87882
87883
87884if test $pkg_failed = yes; then
87885   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87886$as_echo "no" >&6; }
87887
87888if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87889        _pkg_short_errors_supported=yes
87890else
87891        _pkg_short_errors_supported=no
87892fi
87893        if test $_pkg_short_errors_supported = yes; then
87894	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
87895        else
87896	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
87897        fi
87898	# Put the nasty error message in config.log where it belongs
87899	echo "$LUA_PKG_ERRORS" >&5
87900
87901
87902
87903pkg_failed=no
87904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
87905$as_echo_n "checking for LUA... " >&6; }
87906
87907if test -n "$LUA_CFLAGS"; then
87908    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
87909 elif test -n "$PKG_CONFIG"; then
87910    if test -n "$PKG_CONFIG" && \
87911    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
87912  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
87913  ac_status=$?
87914  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87915  test $ac_status = 0; }; then
87916  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
87917		      test "x$?" != "x0" && pkg_failed=yes
87918else
87919  pkg_failed=yes
87920fi
87921 else
87922    pkg_failed=untried
87923fi
87924if test -n "$LUA_LIBS"; then
87925    pkg_cv_LUA_LIBS="$LUA_LIBS"
87926 elif test -n "$PKG_CONFIG"; then
87927    if test -n "$PKG_CONFIG" && \
87928    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
87929  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
87930  ac_status=$?
87931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87932  test $ac_status = 0; }; then
87933  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
87934		      test "x$?" != "x0" && pkg_failed=yes
87935else
87936  pkg_failed=yes
87937fi
87938 else
87939    pkg_failed=untried
87940fi
87941
87942
87943
87944if test $pkg_failed = yes; then
87945   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87946$as_echo "no" >&6; }
87947
87948if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87949        _pkg_short_errors_supported=yes
87950else
87951        _pkg_short_errors_supported=no
87952fi
87953        if test $_pkg_short_errors_supported = yes; then
87954	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
87955        else
87956	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
87957        fi
87958	# Put the nasty error message in config.log where it belongs
87959	echo "$LUA_PKG_ERRORS" >&5
87960
87961	with_liblua="no (pkg-config cannot find liblua)"
87962
87963elif test $pkg_failed = untried; then
87964     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87965$as_echo "no" >&6; }
87966	with_liblua="no (pkg-config cannot find liblua)"
87967
87968else
87969	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
87970	LUA_LIBS=$pkg_cv_LUA_LIBS
87971        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87972$as_echo "yes" >&6; }
87973	with_liblua="yes"
87974fi
87975
87976
87977elif test $pkg_failed = untried; then
87978     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87979$as_echo "no" >&6; }
87980
87981
87982pkg_failed=no
87983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
87984$as_echo_n "checking for LUA... " >&6; }
87985
87986if test -n "$LUA_CFLAGS"; then
87987    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
87988 elif test -n "$PKG_CONFIG"; then
87989    if test -n "$PKG_CONFIG" && \
87990    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
87991  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
87992  ac_status=$?
87993  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87994  test $ac_status = 0; }; then
87995  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
87996		      test "x$?" != "x0" && pkg_failed=yes
87997else
87998  pkg_failed=yes
87999fi
88000 else
88001    pkg_failed=untried
88002fi
88003if test -n "$LUA_LIBS"; then
88004    pkg_cv_LUA_LIBS="$LUA_LIBS"
88005 elif test -n "$PKG_CONFIG"; then
88006    if test -n "$PKG_CONFIG" && \
88007    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
88008  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
88009  ac_status=$?
88010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88011  test $ac_status = 0; }; then
88012  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
88013		      test "x$?" != "x0" && pkg_failed=yes
88014else
88015  pkg_failed=yes
88016fi
88017 else
88018    pkg_failed=untried
88019fi
88020
88021
88022
88023if test $pkg_failed = yes; then
88024   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88025$as_echo "no" >&6; }
88026
88027if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
88028        _pkg_short_errors_supported=yes
88029else
88030        _pkg_short_errors_supported=no
88031fi
88032        if test $_pkg_short_errors_supported = yes; then
88033	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
88034        else
88035	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
88036        fi
88037	# Put the nasty error message in config.log where it belongs
88038	echo "$LUA_PKG_ERRORS" >&5
88039
88040	with_liblua="no (pkg-config cannot find liblua)"
88041
88042elif test $pkg_failed = untried; then
88043     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88044$as_echo "no" >&6; }
88045	with_liblua="no (pkg-config cannot find liblua)"
88046
88047else
88048	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
88049	LUA_LIBS=$pkg_cv_LUA_LIBS
88050        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88051$as_echo "yes" >&6; }
88052	with_liblua="yes"
88053fi
88054
88055
88056else
88057	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
88058	LUA_LIBS=$pkg_cv_LUA_LIBS
88059        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88060$as_echo "yes" >&6; }
88061	with_liblua="yes"
88062fi
88063
88064
88065elif test $pkg_failed = untried; then
88066     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88067$as_echo "no" >&6; }
88068
88069
88070pkg_failed=no
88071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
88072$as_echo_n "checking for LUA... " >&6; }
88073
88074if test -n "$LUA_CFLAGS"; then
88075    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
88076 elif test -n "$PKG_CONFIG"; then
88077    if test -n "$PKG_CONFIG" && \
88078    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
88079  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
88080  ac_status=$?
88081  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88082  test $ac_status = 0; }; then
88083  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
88084		      test "x$?" != "x0" && pkg_failed=yes
88085else
88086  pkg_failed=yes
88087fi
88088 else
88089    pkg_failed=untried
88090fi
88091if test -n "$LUA_LIBS"; then
88092    pkg_cv_LUA_LIBS="$LUA_LIBS"
88093 elif test -n "$PKG_CONFIG"; then
88094    if test -n "$PKG_CONFIG" && \
88095    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
88096  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
88097  ac_status=$?
88098  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88099  test $ac_status = 0; }; then
88100  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
88101		      test "x$?" != "x0" && pkg_failed=yes
88102else
88103  pkg_failed=yes
88104fi
88105 else
88106    pkg_failed=untried
88107fi
88108
88109
88110
88111if test $pkg_failed = yes; then
88112   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88113$as_echo "no" >&6; }
88114
88115if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
88116        _pkg_short_errors_supported=yes
88117else
88118        _pkg_short_errors_supported=no
88119fi
88120        if test $_pkg_short_errors_supported = yes; then
88121	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
88122        else
88123	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
88124        fi
88125	# Put the nasty error message in config.log where it belongs
88126	echo "$LUA_PKG_ERRORS" >&5
88127
88128
88129
88130pkg_failed=no
88131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
88132$as_echo_n "checking for LUA... " >&6; }
88133
88134if test -n "$LUA_CFLAGS"; then
88135    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
88136 elif test -n "$PKG_CONFIG"; then
88137    if test -n "$PKG_CONFIG" && \
88138    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
88139  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
88140  ac_status=$?
88141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88142  test $ac_status = 0; }; then
88143  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
88144		      test "x$?" != "x0" && pkg_failed=yes
88145else
88146  pkg_failed=yes
88147fi
88148 else
88149    pkg_failed=untried
88150fi
88151if test -n "$LUA_LIBS"; then
88152    pkg_cv_LUA_LIBS="$LUA_LIBS"
88153 elif test -n "$PKG_CONFIG"; then
88154    if test -n "$PKG_CONFIG" && \
88155    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
88156  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
88157  ac_status=$?
88158  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88159  test $ac_status = 0; }; then
88160  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
88161		      test "x$?" != "x0" && pkg_failed=yes
88162else
88163  pkg_failed=yes
88164fi
88165 else
88166    pkg_failed=untried
88167fi
88168
88169
88170
88171if test $pkg_failed = yes; then
88172   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88173$as_echo "no" >&6; }
88174
88175if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
88176        _pkg_short_errors_supported=yes
88177else
88178        _pkg_short_errors_supported=no
88179fi
88180        if test $_pkg_short_errors_supported = yes; then
88181	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
88182        else
88183	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
88184        fi
88185	# Put the nasty error message in config.log where it belongs
88186	echo "$LUA_PKG_ERRORS" >&5
88187
88188	with_liblua="no (pkg-config cannot find liblua)"
88189
88190elif test $pkg_failed = untried; then
88191     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88192$as_echo "no" >&6; }
88193	with_liblua="no (pkg-config cannot find liblua)"
88194
88195else
88196	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
88197	LUA_LIBS=$pkg_cv_LUA_LIBS
88198        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88199$as_echo "yes" >&6; }
88200	with_liblua="yes"
88201fi
88202
88203
88204elif test $pkg_failed = untried; then
88205     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88206$as_echo "no" >&6; }
88207
88208
88209pkg_failed=no
88210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
88211$as_echo_n "checking for LUA... " >&6; }
88212
88213if test -n "$LUA_CFLAGS"; then
88214    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
88215 elif test -n "$PKG_CONFIG"; then
88216    if test -n "$PKG_CONFIG" && \
88217    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
88218  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
88219  ac_status=$?
88220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88221  test $ac_status = 0; }; then
88222  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
88223		      test "x$?" != "x0" && pkg_failed=yes
88224else
88225  pkg_failed=yes
88226fi
88227 else
88228    pkg_failed=untried
88229fi
88230if test -n "$LUA_LIBS"; then
88231    pkg_cv_LUA_LIBS="$LUA_LIBS"
88232 elif test -n "$PKG_CONFIG"; then
88233    if test -n "$PKG_CONFIG" && \
88234    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
88235  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
88236  ac_status=$?
88237  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88238  test $ac_status = 0; }; then
88239  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
88240		      test "x$?" != "x0" && pkg_failed=yes
88241else
88242  pkg_failed=yes
88243fi
88244 else
88245    pkg_failed=untried
88246fi
88247
88248
88249
88250if test $pkg_failed = yes; then
88251   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88252$as_echo "no" >&6; }
88253
88254if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
88255        _pkg_short_errors_supported=yes
88256else
88257        _pkg_short_errors_supported=no
88258fi
88259        if test $_pkg_short_errors_supported = yes; then
88260	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
88261        else
88262	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
88263        fi
88264	# Put the nasty error message in config.log where it belongs
88265	echo "$LUA_PKG_ERRORS" >&5
88266
88267	with_liblua="no (pkg-config cannot find liblua)"
88268
88269elif test $pkg_failed = untried; then
88270     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88271$as_echo "no" >&6; }
88272	with_liblua="no (pkg-config cannot find liblua)"
88273
88274else
88275	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
88276	LUA_LIBS=$pkg_cv_LUA_LIBS
88277        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88278$as_echo "yes" >&6; }
88279	with_liblua="yes"
88280fi
88281
88282
88283else
88284	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
88285	LUA_LIBS=$pkg_cv_LUA_LIBS
88286        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88287$as_echo "yes" >&6; }
88288	with_liblua="yes"
88289fi
88290
88291
88292else
88293	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
88294	LUA_LIBS=$pkg_cv_LUA_LIBS
88295        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88296$as_echo "yes" >&6; }
88297	with_liblua="yes"
88298fi
88299
88300
88301elif test $pkg_failed = untried; then
88302     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88303$as_echo "no" >&6; }
88304
88305
88306pkg_failed=no
88307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
88308$as_echo_n "checking for LUA... " >&6; }
88309
88310if test -n "$LUA_CFLAGS"; then
88311    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
88312 elif test -n "$PKG_CONFIG"; then
88313    if test -n "$PKG_CONFIG" && \
88314    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
88315  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
88316  ac_status=$?
88317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88318  test $ac_status = 0; }; then
88319  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
88320		      test "x$?" != "x0" && pkg_failed=yes
88321else
88322  pkg_failed=yes
88323fi
88324 else
88325    pkg_failed=untried
88326fi
88327if test -n "$LUA_LIBS"; then
88328    pkg_cv_LUA_LIBS="$LUA_LIBS"
88329 elif test -n "$PKG_CONFIG"; then
88330    if test -n "$PKG_CONFIG" && \
88331    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
88332  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
88333  ac_status=$?
88334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88335  test $ac_status = 0; }; then
88336  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
88337		      test "x$?" != "x0" && pkg_failed=yes
88338else
88339  pkg_failed=yes
88340fi
88341 else
88342    pkg_failed=untried
88343fi
88344
88345
88346
88347if test $pkg_failed = yes; then
88348   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88349$as_echo "no" >&6; }
88350
88351if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
88352        _pkg_short_errors_supported=yes
88353else
88354        _pkg_short_errors_supported=no
88355fi
88356        if test $_pkg_short_errors_supported = yes; then
88357	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
88358        else
88359	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
88360        fi
88361	# Put the nasty error message in config.log where it belongs
88362	echo "$LUA_PKG_ERRORS" >&5
88363
88364
88365
88366pkg_failed=no
88367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
88368$as_echo_n "checking for LUA... " >&6; }
88369
88370if test -n "$LUA_CFLAGS"; then
88371    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
88372 elif test -n "$PKG_CONFIG"; then
88373    if test -n "$PKG_CONFIG" && \
88374    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
88375  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
88376  ac_status=$?
88377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88378  test $ac_status = 0; }; then
88379  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
88380		      test "x$?" != "x0" && pkg_failed=yes
88381else
88382  pkg_failed=yes
88383fi
88384 else
88385    pkg_failed=untried
88386fi
88387if test -n "$LUA_LIBS"; then
88388    pkg_cv_LUA_LIBS="$LUA_LIBS"
88389 elif test -n "$PKG_CONFIG"; then
88390    if test -n "$PKG_CONFIG" && \
88391    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
88392  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
88393  ac_status=$?
88394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88395  test $ac_status = 0; }; then
88396  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
88397		      test "x$?" != "x0" && pkg_failed=yes
88398else
88399  pkg_failed=yes
88400fi
88401 else
88402    pkg_failed=untried
88403fi
88404
88405
88406
88407if test $pkg_failed = yes; then
88408   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88409$as_echo "no" >&6; }
88410
88411if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
88412        _pkg_short_errors_supported=yes
88413else
88414        _pkg_short_errors_supported=no
88415fi
88416        if test $_pkg_short_errors_supported = yes; then
88417	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
88418        else
88419	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
88420        fi
88421	# Put the nasty error message in config.log where it belongs
88422	echo "$LUA_PKG_ERRORS" >&5
88423
88424
88425
88426pkg_failed=no
88427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
88428$as_echo_n "checking for LUA... " >&6; }
88429
88430if test -n "$LUA_CFLAGS"; then
88431    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
88432 elif test -n "$PKG_CONFIG"; then
88433    if test -n "$PKG_CONFIG" && \
88434    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
88435  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
88436  ac_status=$?
88437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88438  test $ac_status = 0; }; then
88439  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
88440		      test "x$?" != "x0" && pkg_failed=yes
88441else
88442  pkg_failed=yes
88443fi
88444 else
88445    pkg_failed=untried
88446fi
88447if test -n "$LUA_LIBS"; then
88448    pkg_cv_LUA_LIBS="$LUA_LIBS"
88449 elif test -n "$PKG_CONFIG"; then
88450    if test -n "$PKG_CONFIG" && \
88451    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
88452  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
88453  ac_status=$?
88454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88455  test $ac_status = 0; }; then
88456  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
88457		      test "x$?" != "x0" && pkg_failed=yes
88458else
88459  pkg_failed=yes
88460fi
88461 else
88462    pkg_failed=untried
88463fi
88464
88465
88466
88467if test $pkg_failed = yes; then
88468   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88469$as_echo "no" >&6; }
88470
88471if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
88472        _pkg_short_errors_supported=yes
88473else
88474        _pkg_short_errors_supported=no
88475fi
88476        if test $_pkg_short_errors_supported = yes; then
88477	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
88478        else
88479	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
88480        fi
88481	# Put the nasty error message in config.log where it belongs
88482	echo "$LUA_PKG_ERRORS" >&5
88483
88484	with_liblua="no (pkg-config cannot find liblua)"
88485
88486elif test $pkg_failed = untried; then
88487     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88488$as_echo "no" >&6; }
88489	with_liblua="no (pkg-config cannot find liblua)"
88490
88491else
88492	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
88493	LUA_LIBS=$pkg_cv_LUA_LIBS
88494        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88495$as_echo "yes" >&6; }
88496	with_liblua="yes"
88497fi
88498
88499
88500elif test $pkg_failed = untried; then
88501     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88502$as_echo "no" >&6; }
88503
88504
88505pkg_failed=no
88506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
88507$as_echo_n "checking for LUA... " >&6; }
88508
88509if test -n "$LUA_CFLAGS"; then
88510    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
88511 elif test -n "$PKG_CONFIG"; then
88512    if test -n "$PKG_CONFIG" && \
88513    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
88514  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
88515  ac_status=$?
88516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88517  test $ac_status = 0; }; then
88518  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
88519		      test "x$?" != "x0" && pkg_failed=yes
88520else
88521  pkg_failed=yes
88522fi
88523 else
88524    pkg_failed=untried
88525fi
88526if test -n "$LUA_LIBS"; then
88527    pkg_cv_LUA_LIBS="$LUA_LIBS"
88528 elif test -n "$PKG_CONFIG"; then
88529    if test -n "$PKG_CONFIG" && \
88530    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
88531  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
88532  ac_status=$?
88533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88534  test $ac_status = 0; }; then
88535  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
88536		      test "x$?" != "x0" && pkg_failed=yes
88537else
88538  pkg_failed=yes
88539fi
88540 else
88541    pkg_failed=untried
88542fi
88543
88544
88545
88546if test $pkg_failed = yes; then
88547   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88548$as_echo "no" >&6; }
88549
88550if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
88551        _pkg_short_errors_supported=yes
88552else
88553        _pkg_short_errors_supported=no
88554fi
88555        if test $_pkg_short_errors_supported = yes; then
88556	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
88557        else
88558	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
88559        fi
88560	# Put the nasty error message in config.log where it belongs
88561	echo "$LUA_PKG_ERRORS" >&5
88562
88563	with_liblua="no (pkg-config cannot find liblua)"
88564
88565elif test $pkg_failed = untried; then
88566     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88567$as_echo "no" >&6; }
88568	with_liblua="no (pkg-config cannot find liblua)"
88569
88570else
88571	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
88572	LUA_LIBS=$pkg_cv_LUA_LIBS
88573        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88574$as_echo "yes" >&6; }
88575	with_liblua="yes"
88576fi
88577
88578
88579else
88580	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
88581	LUA_LIBS=$pkg_cv_LUA_LIBS
88582        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88583$as_echo "yes" >&6; }
88584	with_liblua="yes"
88585fi
88586
88587
88588elif test $pkg_failed = untried; then
88589     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88590$as_echo "no" >&6; }
88591
88592
88593pkg_failed=no
88594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
88595$as_echo_n "checking for LUA... " >&6; }
88596
88597if test -n "$LUA_CFLAGS"; then
88598    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
88599 elif test -n "$PKG_CONFIG"; then
88600    if test -n "$PKG_CONFIG" && \
88601    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
88602  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
88603  ac_status=$?
88604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88605  test $ac_status = 0; }; then
88606  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
88607		      test "x$?" != "x0" && pkg_failed=yes
88608else
88609  pkg_failed=yes
88610fi
88611 else
88612    pkg_failed=untried
88613fi
88614if test -n "$LUA_LIBS"; then
88615    pkg_cv_LUA_LIBS="$LUA_LIBS"
88616 elif test -n "$PKG_CONFIG"; then
88617    if test -n "$PKG_CONFIG" && \
88618    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
88619  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
88620  ac_status=$?
88621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88622  test $ac_status = 0; }; then
88623  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
88624		      test "x$?" != "x0" && pkg_failed=yes
88625else
88626  pkg_failed=yes
88627fi
88628 else
88629    pkg_failed=untried
88630fi
88631
88632
88633
88634if test $pkg_failed = yes; then
88635   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88636$as_echo "no" >&6; }
88637
88638if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
88639        _pkg_short_errors_supported=yes
88640else
88641        _pkg_short_errors_supported=no
88642fi
88643        if test $_pkg_short_errors_supported = yes; then
88644	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
88645        else
88646	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
88647        fi
88648	# Put the nasty error message in config.log where it belongs
88649	echo "$LUA_PKG_ERRORS" >&5
88650
88651
88652
88653pkg_failed=no
88654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
88655$as_echo_n "checking for LUA... " >&6; }
88656
88657if test -n "$LUA_CFLAGS"; then
88658    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
88659 elif test -n "$PKG_CONFIG"; then
88660    if test -n "$PKG_CONFIG" && \
88661    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
88662  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
88663  ac_status=$?
88664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88665  test $ac_status = 0; }; then
88666  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
88667		      test "x$?" != "x0" && pkg_failed=yes
88668else
88669  pkg_failed=yes
88670fi
88671 else
88672    pkg_failed=untried
88673fi
88674if test -n "$LUA_LIBS"; then
88675    pkg_cv_LUA_LIBS="$LUA_LIBS"
88676 elif test -n "$PKG_CONFIG"; then
88677    if test -n "$PKG_CONFIG" && \
88678    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
88679  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
88680  ac_status=$?
88681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88682  test $ac_status = 0; }; then
88683  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
88684		      test "x$?" != "x0" && pkg_failed=yes
88685else
88686  pkg_failed=yes
88687fi
88688 else
88689    pkg_failed=untried
88690fi
88691
88692
88693
88694if test $pkg_failed = yes; then
88695   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88696$as_echo "no" >&6; }
88697
88698if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
88699        _pkg_short_errors_supported=yes
88700else
88701        _pkg_short_errors_supported=no
88702fi
88703        if test $_pkg_short_errors_supported = yes; then
88704	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
88705        else
88706	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
88707        fi
88708	# Put the nasty error message in config.log where it belongs
88709	echo "$LUA_PKG_ERRORS" >&5
88710
88711	with_liblua="no (pkg-config cannot find liblua)"
88712
88713elif test $pkg_failed = untried; then
88714     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88715$as_echo "no" >&6; }
88716	with_liblua="no (pkg-config cannot find liblua)"
88717
88718else
88719	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
88720	LUA_LIBS=$pkg_cv_LUA_LIBS
88721        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88722$as_echo "yes" >&6; }
88723	with_liblua="yes"
88724fi
88725
88726
88727elif test $pkg_failed = untried; then
88728     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88729$as_echo "no" >&6; }
88730
88731
88732pkg_failed=no
88733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
88734$as_echo_n "checking for LUA... " >&6; }
88735
88736if test -n "$LUA_CFLAGS"; then
88737    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
88738 elif test -n "$PKG_CONFIG"; then
88739    if test -n "$PKG_CONFIG" && \
88740    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
88741  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
88742  ac_status=$?
88743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88744  test $ac_status = 0; }; then
88745  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
88746		      test "x$?" != "x0" && pkg_failed=yes
88747else
88748  pkg_failed=yes
88749fi
88750 else
88751    pkg_failed=untried
88752fi
88753if test -n "$LUA_LIBS"; then
88754    pkg_cv_LUA_LIBS="$LUA_LIBS"
88755 elif test -n "$PKG_CONFIG"; then
88756    if test -n "$PKG_CONFIG" && \
88757    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
88758  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
88759  ac_status=$?
88760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88761  test $ac_status = 0; }; then
88762  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
88763		      test "x$?" != "x0" && pkg_failed=yes
88764else
88765  pkg_failed=yes
88766fi
88767 else
88768    pkg_failed=untried
88769fi
88770
88771
88772
88773if test $pkg_failed = yes; then
88774   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88775$as_echo "no" >&6; }
88776
88777if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
88778        _pkg_short_errors_supported=yes
88779else
88780        _pkg_short_errors_supported=no
88781fi
88782        if test $_pkg_short_errors_supported = yes; then
88783	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
88784        else
88785	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
88786        fi
88787	# Put the nasty error message in config.log where it belongs
88788	echo "$LUA_PKG_ERRORS" >&5
88789
88790	with_liblua="no (pkg-config cannot find liblua)"
88791
88792elif test $pkg_failed = untried; then
88793     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88794$as_echo "no" >&6; }
88795	with_liblua="no (pkg-config cannot find liblua)"
88796
88797else
88798	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
88799	LUA_LIBS=$pkg_cv_LUA_LIBS
88800        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88801$as_echo "yes" >&6; }
88802	with_liblua="yes"
88803fi
88804
88805
88806else
88807	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
88808	LUA_LIBS=$pkg_cv_LUA_LIBS
88809        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88810$as_echo "yes" >&6; }
88811	with_liblua="yes"
88812fi
88813
88814
88815else
88816	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
88817	LUA_LIBS=$pkg_cv_LUA_LIBS
88818        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88819$as_echo "yes" >&6; }
88820	with_liblua="yes"
88821fi
88822
88823
88824else
88825	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
88826	LUA_LIBS=$pkg_cv_LUA_LIBS
88827        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88828$as_echo "yes" >&6; }
88829	with_liblua="yes"
88830fi
88831
88832
88833elif test $pkg_failed = untried; then
88834     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88835$as_echo "no" >&6; }
88836
88837
88838pkg_failed=no
88839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
88840$as_echo_n "checking for LUA... " >&6; }
88841
88842if test -n "$LUA_CFLAGS"; then
88843    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
88844 elif test -n "$PKG_CONFIG"; then
88845    if test -n "$PKG_CONFIG" && \
88846    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
88847  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
88848  ac_status=$?
88849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88850  test $ac_status = 0; }; then
88851  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
88852		      test "x$?" != "x0" && pkg_failed=yes
88853else
88854  pkg_failed=yes
88855fi
88856 else
88857    pkg_failed=untried
88858fi
88859if test -n "$LUA_LIBS"; then
88860    pkg_cv_LUA_LIBS="$LUA_LIBS"
88861 elif test -n "$PKG_CONFIG"; then
88862    if test -n "$PKG_CONFIG" && \
88863    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
88864  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
88865  ac_status=$?
88866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88867  test $ac_status = 0; }; then
88868  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
88869		      test "x$?" != "x0" && pkg_failed=yes
88870else
88871  pkg_failed=yes
88872fi
88873 else
88874    pkg_failed=untried
88875fi
88876
88877
88878
88879if test $pkg_failed = yes; then
88880   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88881$as_echo "no" >&6; }
88882
88883if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
88884        _pkg_short_errors_supported=yes
88885else
88886        _pkg_short_errors_supported=no
88887fi
88888        if test $_pkg_short_errors_supported = yes; then
88889	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
88890        else
88891	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
88892        fi
88893	# Put the nasty error message in config.log where it belongs
88894	echo "$LUA_PKG_ERRORS" >&5
88895
88896
88897
88898pkg_failed=no
88899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
88900$as_echo_n "checking for LUA... " >&6; }
88901
88902if test -n "$LUA_CFLAGS"; then
88903    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
88904 elif test -n "$PKG_CONFIG"; then
88905    if test -n "$PKG_CONFIG" && \
88906    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
88907  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
88908  ac_status=$?
88909  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88910  test $ac_status = 0; }; then
88911  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
88912		      test "x$?" != "x0" && pkg_failed=yes
88913else
88914  pkg_failed=yes
88915fi
88916 else
88917    pkg_failed=untried
88918fi
88919if test -n "$LUA_LIBS"; then
88920    pkg_cv_LUA_LIBS="$LUA_LIBS"
88921 elif test -n "$PKG_CONFIG"; then
88922    if test -n "$PKG_CONFIG" && \
88923    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
88924  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
88925  ac_status=$?
88926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88927  test $ac_status = 0; }; then
88928  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
88929		      test "x$?" != "x0" && pkg_failed=yes
88930else
88931  pkg_failed=yes
88932fi
88933 else
88934    pkg_failed=untried
88935fi
88936
88937
88938
88939if test $pkg_failed = yes; then
88940   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88941$as_echo "no" >&6; }
88942
88943if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
88944        _pkg_short_errors_supported=yes
88945else
88946        _pkg_short_errors_supported=no
88947fi
88948        if test $_pkg_short_errors_supported = yes; then
88949	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
88950        else
88951	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
88952        fi
88953	# Put the nasty error message in config.log where it belongs
88954	echo "$LUA_PKG_ERRORS" >&5
88955
88956
88957
88958pkg_failed=no
88959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
88960$as_echo_n "checking for LUA... " >&6; }
88961
88962if test -n "$LUA_CFLAGS"; then
88963    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
88964 elif test -n "$PKG_CONFIG"; then
88965    if test -n "$PKG_CONFIG" && \
88966    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
88967  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
88968  ac_status=$?
88969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88970  test $ac_status = 0; }; then
88971  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
88972		      test "x$?" != "x0" && pkg_failed=yes
88973else
88974  pkg_failed=yes
88975fi
88976 else
88977    pkg_failed=untried
88978fi
88979if test -n "$LUA_LIBS"; then
88980    pkg_cv_LUA_LIBS="$LUA_LIBS"
88981 elif test -n "$PKG_CONFIG"; then
88982    if test -n "$PKG_CONFIG" && \
88983    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
88984  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
88985  ac_status=$?
88986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88987  test $ac_status = 0; }; then
88988  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
88989		      test "x$?" != "x0" && pkg_failed=yes
88990else
88991  pkg_failed=yes
88992fi
88993 else
88994    pkg_failed=untried
88995fi
88996
88997
88998
88999if test $pkg_failed = yes; then
89000   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89001$as_echo "no" >&6; }
89002
89003if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
89004        _pkg_short_errors_supported=yes
89005else
89006        _pkg_short_errors_supported=no
89007fi
89008        if test $_pkg_short_errors_supported = yes; then
89009	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
89010        else
89011	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
89012        fi
89013	# Put the nasty error message in config.log where it belongs
89014	echo "$LUA_PKG_ERRORS" >&5
89015
89016
89017
89018pkg_failed=no
89019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
89020$as_echo_n "checking for LUA... " >&6; }
89021
89022if test -n "$LUA_CFLAGS"; then
89023    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
89024 elif test -n "$PKG_CONFIG"; then
89025    if test -n "$PKG_CONFIG" && \
89026    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
89027  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
89028  ac_status=$?
89029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89030  test $ac_status = 0; }; then
89031  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
89032		      test "x$?" != "x0" && pkg_failed=yes
89033else
89034  pkg_failed=yes
89035fi
89036 else
89037    pkg_failed=untried
89038fi
89039if test -n "$LUA_LIBS"; then
89040    pkg_cv_LUA_LIBS="$LUA_LIBS"
89041 elif test -n "$PKG_CONFIG"; then
89042    if test -n "$PKG_CONFIG" && \
89043    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
89044  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
89045  ac_status=$?
89046  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89047  test $ac_status = 0; }; then
89048  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
89049		      test "x$?" != "x0" && pkg_failed=yes
89050else
89051  pkg_failed=yes
89052fi
89053 else
89054    pkg_failed=untried
89055fi
89056
89057
89058
89059if test $pkg_failed = yes; then
89060   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89061$as_echo "no" >&6; }
89062
89063if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
89064        _pkg_short_errors_supported=yes
89065else
89066        _pkg_short_errors_supported=no
89067fi
89068        if test $_pkg_short_errors_supported = yes; then
89069	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
89070        else
89071	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
89072        fi
89073	# Put the nasty error message in config.log where it belongs
89074	echo "$LUA_PKG_ERRORS" >&5
89075
89076	with_liblua="no (pkg-config cannot find liblua)"
89077
89078elif test $pkg_failed = untried; then
89079     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89080$as_echo "no" >&6; }
89081	with_liblua="no (pkg-config cannot find liblua)"
89082
89083else
89084	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
89085	LUA_LIBS=$pkg_cv_LUA_LIBS
89086        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89087$as_echo "yes" >&6; }
89088	with_liblua="yes"
89089fi
89090
89091
89092elif test $pkg_failed = untried; then
89093     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89094$as_echo "no" >&6; }
89095
89096
89097pkg_failed=no
89098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
89099$as_echo_n "checking for LUA... " >&6; }
89100
89101if test -n "$LUA_CFLAGS"; then
89102    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
89103 elif test -n "$PKG_CONFIG"; then
89104    if test -n "$PKG_CONFIG" && \
89105    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
89106  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
89107  ac_status=$?
89108  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89109  test $ac_status = 0; }; then
89110  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
89111		      test "x$?" != "x0" && pkg_failed=yes
89112else
89113  pkg_failed=yes
89114fi
89115 else
89116    pkg_failed=untried
89117fi
89118if test -n "$LUA_LIBS"; then
89119    pkg_cv_LUA_LIBS="$LUA_LIBS"
89120 elif test -n "$PKG_CONFIG"; then
89121    if test -n "$PKG_CONFIG" && \
89122    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
89123  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
89124  ac_status=$?
89125  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89126  test $ac_status = 0; }; then
89127  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
89128		      test "x$?" != "x0" && pkg_failed=yes
89129else
89130  pkg_failed=yes
89131fi
89132 else
89133    pkg_failed=untried
89134fi
89135
89136
89137
89138if test $pkg_failed = yes; then
89139   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89140$as_echo "no" >&6; }
89141
89142if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
89143        _pkg_short_errors_supported=yes
89144else
89145        _pkg_short_errors_supported=no
89146fi
89147        if test $_pkg_short_errors_supported = yes; then
89148	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
89149        else
89150	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
89151        fi
89152	# Put the nasty error message in config.log where it belongs
89153	echo "$LUA_PKG_ERRORS" >&5
89154
89155	with_liblua="no (pkg-config cannot find liblua)"
89156
89157elif test $pkg_failed = untried; then
89158     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89159$as_echo "no" >&6; }
89160	with_liblua="no (pkg-config cannot find liblua)"
89161
89162else
89163	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
89164	LUA_LIBS=$pkg_cv_LUA_LIBS
89165        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89166$as_echo "yes" >&6; }
89167	with_liblua="yes"
89168fi
89169
89170
89171else
89172	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
89173	LUA_LIBS=$pkg_cv_LUA_LIBS
89174        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89175$as_echo "yes" >&6; }
89176	with_liblua="yes"
89177fi
89178
89179
89180elif test $pkg_failed = untried; then
89181     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89182$as_echo "no" >&6; }
89183
89184
89185pkg_failed=no
89186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
89187$as_echo_n "checking for LUA... " >&6; }
89188
89189if test -n "$LUA_CFLAGS"; then
89190    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
89191 elif test -n "$PKG_CONFIG"; then
89192    if test -n "$PKG_CONFIG" && \
89193    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
89194  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
89195  ac_status=$?
89196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89197  test $ac_status = 0; }; then
89198  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
89199		      test "x$?" != "x0" && pkg_failed=yes
89200else
89201  pkg_failed=yes
89202fi
89203 else
89204    pkg_failed=untried
89205fi
89206if test -n "$LUA_LIBS"; then
89207    pkg_cv_LUA_LIBS="$LUA_LIBS"
89208 elif test -n "$PKG_CONFIG"; then
89209    if test -n "$PKG_CONFIG" && \
89210    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
89211  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
89212  ac_status=$?
89213  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89214  test $ac_status = 0; }; then
89215  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
89216		      test "x$?" != "x0" && pkg_failed=yes
89217else
89218  pkg_failed=yes
89219fi
89220 else
89221    pkg_failed=untried
89222fi
89223
89224
89225
89226if test $pkg_failed = yes; then
89227   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89228$as_echo "no" >&6; }
89229
89230if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
89231        _pkg_short_errors_supported=yes
89232else
89233        _pkg_short_errors_supported=no
89234fi
89235        if test $_pkg_short_errors_supported = yes; then
89236	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
89237        else
89238	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
89239        fi
89240	# Put the nasty error message in config.log where it belongs
89241	echo "$LUA_PKG_ERRORS" >&5
89242
89243
89244
89245pkg_failed=no
89246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
89247$as_echo_n "checking for LUA... " >&6; }
89248
89249if test -n "$LUA_CFLAGS"; then
89250    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
89251 elif test -n "$PKG_CONFIG"; then
89252    if test -n "$PKG_CONFIG" && \
89253    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
89254  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
89255  ac_status=$?
89256  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89257  test $ac_status = 0; }; then
89258  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
89259		      test "x$?" != "x0" && pkg_failed=yes
89260else
89261  pkg_failed=yes
89262fi
89263 else
89264    pkg_failed=untried
89265fi
89266if test -n "$LUA_LIBS"; then
89267    pkg_cv_LUA_LIBS="$LUA_LIBS"
89268 elif test -n "$PKG_CONFIG"; then
89269    if test -n "$PKG_CONFIG" && \
89270    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
89271  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
89272  ac_status=$?
89273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89274  test $ac_status = 0; }; then
89275  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
89276		      test "x$?" != "x0" && pkg_failed=yes
89277else
89278  pkg_failed=yes
89279fi
89280 else
89281    pkg_failed=untried
89282fi
89283
89284
89285
89286if test $pkg_failed = yes; then
89287   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89288$as_echo "no" >&6; }
89289
89290if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
89291        _pkg_short_errors_supported=yes
89292else
89293        _pkg_short_errors_supported=no
89294fi
89295        if test $_pkg_short_errors_supported = yes; then
89296	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
89297        else
89298	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
89299        fi
89300	# Put the nasty error message in config.log where it belongs
89301	echo "$LUA_PKG_ERRORS" >&5
89302
89303	with_liblua="no (pkg-config cannot find liblua)"
89304
89305elif test $pkg_failed = untried; then
89306     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89307$as_echo "no" >&6; }
89308	with_liblua="no (pkg-config cannot find liblua)"
89309
89310else
89311	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
89312	LUA_LIBS=$pkg_cv_LUA_LIBS
89313        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89314$as_echo "yes" >&6; }
89315	with_liblua="yes"
89316fi
89317
89318
89319elif test $pkg_failed = untried; then
89320     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89321$as_echo "no" >&6; }
89322
89323
89324pkg_failed=no
89325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
89326$as_echo_n "checking for LUA... " >&6; }
89327
89328if test -n "$LUA_CFLAGS"; then
89329    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
89330 elif test -n "$PKG_CONFIG"; then
89331    if test -n "$PKG_CONFIG" && \
89332    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
89333  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
89334  ac_status=$?
89335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89336  test $ac_status = 0; }; then
89337  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
89338		      test "x$?" != "x0" && pkg_failed=yes
89339else
89340  pkg_failed=yes
89341fi
89342 else
89343    pkg_failed=untried
89344fi
89345if test -n "$LUA_LIBS"; then
89346    pkg_cv_LUA_LIBS="$LUA_LIBS"
89347 elif test -n "$PKG_CONFIG"; then
89348    if test -n "$PKG_CONFIG" && \
89349    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
89350  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
89351  ac_status=$?
89352  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89353  test $ac_status = 0; }; then
89354  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
89355		      test "x$?" != "x0" && pkg_failed=yes
89356else
89357  pkg_failed=yes
89358fi
89359 else
89360    pkg_failed=untried
89361fi
89362
89363
89364
89365if test $pkg_failed = yes; then
89366   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89367$as_echo "no" >&6; }
89368
89369if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
89370        _pkg_short_errors_supported=yes
89371else
89372        _pkg_short_errors_supported=no
89373fi
89374        if test $_pkg_short_errors_supported = yes; then
89375	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
89376        else
89377	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
89378        fi
89379	# Put the nasty error message in config.log where it belongs
89380	echo "$LUA_PKG_ERRORS" >&5
89381
89382	with_liblua="no (pkg-config cannot find liblua)"
89383
89384elif test $pkg_failed = untried; then
89385     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89386$as_echo "no" >&6; }
89387	with_liblua="no (pkg-config cannot find liblua)"
89388
89389else
89390	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
89391	LUA_LIBS=$pkg_cv_LUA_LIBS
89392        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89393$as_echo "yes" >&6; }
89394	with_liblua="yes"
89395fi
89396
89397
89398else
89399	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
89400	LUA_LIBS=$pkg_cv_LUA_LIBS
89401        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89402$as_echo "yes" >&6; }
89403	with_liblua="yes"
89404fi
89405
89406
89407else
89408	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
89409	LUA_LIBS=$pkg_cv_LUA_LIBS
89410        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89411$as_echo "yes" >&6; }
89412	with_liblua="yes"
89413fi
89414
89415
89416elif test $pkg_failed = untried; then
89417     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89418$as_echo "no" >&6; }
89419
89420
89421pkg_failed=no
89422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
89423$as_echo_n "checking for LUA... " >&6; }
89424
89425if test -n "$LUA_CFLAGS"; then
89426    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
89427 elif test -n "$PKG_CONFIG"; then
89428    if test -n "$PKG_CONFIG" && \
89429    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
89430  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
89431  ac_status=$?
89432  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89433  test $ac_status = 0; }; then
89434  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
89435		      test "x$?" != "x0" && pkg_failed=yes
89436else
89437  pkg_failed=yes
89438fi
89439 else
89440    pkg_failed=untried
89441fi
89442if test -n "$LUA_LIBS"; then
89443    pkg_cv_LUA_LIBS="$LUA_LIBS"
89444 elif test -n "$PKG_CONFIG"; then
89445    if test -n "$PKG_CONFIG" && \
89446    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
89447  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
89448  ac_status=$?
89449  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89450  test $ac_status = 0; }; then
89451  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
89452		      test "x$?" != "x0" && pkg_failed=yes
89453else
89454  pkg_failed=yes
89455fi
89456 else
89457    pkg_failed=untried
89458fi
89459
89460
89461
89462if test $pkg_failed = yes; then
89463   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89464$as_echo "no" >&6; }
89465
89466if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
89467        _pkg_short_errors_supported=yes
89468else
89469        _pkg_short_errors_supported=no
89470fi
89471        if test $_pkg_short_errors_supported = yes; then
89472	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
89473        else
89474	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
89475        fi
89476	# Put the nasty error message in config.log where it belongs
89477	echo "$LUA_PKG_ERRORS" >&5
89478
89479
89480
89481pkg_failed=no
89482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
89483$as_echo_n "checking for LUA... " >&6; }
89484
89485if test -n "$LUA_CFLAGS"; then
89486    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
89487 elif test -n "$PKG_CONFIG"; then
89488    if test -n "$PKG_CONFIG" && \
89489    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
89490  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
89491  ac_status=$?
89492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89493  test $ac_status = 0; }; then
89494  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
89495		      test "x$?" != "x0" && pkg_failed=yes
89496else
89497  pkg_failed=yes
89498fi
89499 else
89500    pkg_failed=untried
89501fi
89502if test -n "$LUA_LIBS"; then
89503    pkg_cv_LUA_LIBS="$LUA_LIBS"
89504 elif test -n "$PKG_CONFIG"; then
89505    if test -n "$PKG_CONFIG" && \
89506    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
89507  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
89508  ac_status=$?
89509  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89510  test $ac_status = 0; }; then
89511  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
89512		      test "x$?" != "x0" && pkg_failed=yes
89513else
89514  pkg_failed=yes
89515fi
89516 else
89517    pkg_failed=untried
89518fi
89519
89520
89521
89522if test $pkg_failed = yes; then
89523   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89524$as_echo "no" >&6; }
89525
89526if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
89527        _pkg_short_errors_supported=yes
89528else
89529        _pkg_short_errors_supported=no
89530fi
89531        if test $_pkg_short_errors_supported = yes; then
89532	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
89533        else
89534	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
89535        fi
89536	# Put the nasty error message in config.log where it belongs
89537	echo "$LUA_PKG_ERRORS" >&5
89538
89539
89540
89541pkg_failed=no
89542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
89543$as_echo_n "checking for LUA... " >&6; }
89544
89545if test -n "$LUA_CFLAGS"; then
89546    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
89547 elif test -n "$PKG_CONFIG"; then
89548    if test -n "$PKG_CONFIG" && \
89549    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
89550  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
89551  ac_status=$?
89552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89553  test $ac_status = 0; }; then
89554  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
89555		      test "x$?" != "x0" && pkg_failed=yes
89556else
89557  pkg_failed=yes
89558fi
89559 else
89560    pkg_failed=untried
89561fi
89562if test -n "$LUA_LIBS"; then
89563    pkg_cv_LUA_LIBS="$LUA_LIBS"
89564 elif test -n "$PKG_CONFIG"; then
89565    if test -n "$PKG_CONFIG" && \
89566    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
89567  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
89568  ac_status=$?
89569  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89570  test $ac_status = 0; }; then
89571  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
89572		      test "x$?" != "x0" && pkg_failed=yes
89573else
89574  pkg_failed=yes
89575fi
89576 else
89577    pkg_failed=untried
89578fi
89579
89580
89581
89582if test $pkg_failed = yes; then
89583   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89584$as_echo "no" >&6; }
89585
89586if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
89587        _pkg_short_errors_supported=yes
89588else
89589        _pkg_short_errors_supported=no
89590fi
89591        if test $_pkg_short_errors_supported = yes; then
89592	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
89593        else
89594	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
89595        fi
89596	# Put the nasty error message in config.log where it belongs
89597	echo "$LUA_PKG_ERRORS" >&5
89598
89599	with_liblua="no (pkg-config cannot find liblua)"
89600
89601elif test $pkg_failed = untried; then
89602     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89603$as_echo "no" >&6; }
89604	with_liblua="no (pkg-config cannot find liblua)"
89605
89606else
89607	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
89608	LUA_LIBS=$pkg_cv_LUA_LIBS
89609        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89610$as_echo "yes" >&6; }
89611	with_liblua="yes"
89612fi
89613
89614
89615elif test $pkg_failed = untried; then
89616     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89617$as_echo "no" >&6; }
89618
89619
89620pkg_failed=no
89621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
89622$as_echo_n "checking for LUA... " >&6; }
89623
89624if test -n "$LUA_CFLAGS"; then
89625    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
89626 elif test -n "$PKG_CONFIG"; then
89627    if test -n "$PKG_CONFIG" && \
89628    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
89629  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
89630  ac_status=$?
89631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89632  test $ac_status = 0; }; then
89633  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
89634		      test "x$?" != "x0" && pkg_failed=yes
89635else
89636  pkg_failed=yes
89637fi
89638 else
89639    pkg_failed=untried
89640fi
89641if test -n "$LUA_LIBS"; then
89642    pkg_cv_LUA_LIBS="$LUA_LIBS"
89643 elif test -n "$PKG_CONFIG"; then
89644    if test -n "$PKG_CONFIG" && \
89645    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
89646  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
89647  ac_status=$?
89648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89649  test $ac_status = 0; }; then
89650  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
89651		      test "x$?" != "x0" && pkg_failed=yes
89652else
89653  pkg_failed=yes
89654fi
89655 else
89656    pkg_failed=untried
89657fi
89658
89659
89660
89661if test $pkg_failed = yes; then
89662   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89663$as_echo "no" >&6; }
89664
89665if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
89666        _pkg_short_errors_supported=yes
89667else
89668        _pkg_short_errors_supported=no
89669fi
89670        if test $_pkg_short_errors_supported = yes; then
89671	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
89672        else
89673	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
89674        fi
89675	# Put the nasty error message in config.log where it belongs
89676	echo "$LUA_PKG_ERRORS" >&5
89677
89678	with_liblua="no (pkg-config cannot find liblua)"
89679
89680elif test $pkg_failed = untried; then
89681     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89682$as_echo "no" >&6; }
89683	with_liblua="no (pkg-config cannot find liblua)"
89684
89685else
89686	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
89687	LUA_LIBS=$pkg_cv_LUA_LIBS
89688        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89689$as_echo "yes" >&6; }
89690	with_liblua="yes"
89691fi
89692
89693
89694else
89695	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
89696	LUA_LIBS=$pkg_cv_LUA_LIBS
89697        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89698$as_echo "yes" >&6; }
89699	with_liblua="yes"
89700fi
89701
89702
89703elif test $pkg_failed = untried; then
89704     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89705$as_echo "no" >&6; }
89706
89707
89708pkg_failed=no
89709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
89710$as_echo_n "checking for LUA... " >&6; }
89711
89712if test -n "$LUA_CFLAGS"; then
89713    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
89714 elif test -n "$PKG_CONFIG"; then
89715    if test -n "$PKG_CONFIG" && \
89716    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
89717  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
89718  ac_status=$?
89719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89720  test $ac_status = 0; }; then
89721  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
89722		      test "x$?" != "x0" && pkg_failed=yes
89723else
89724  pkg_failed=yes
89725fi
89726 else
89727    pkg_failed=untried
89728fi
89729if test -n "$LUA_LIBS"; then
89730    pkg_cv_LUA_LIBS="$LUA_LIBS"
89731 elif test -n "$PKG_CONFIG"; then
89732    if test -n "$PKG_CONFIG" && \
89733    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
89734  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
89735  ac_status=$?
89736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89737  test $ac_status = 0; }; then
89738  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
89739		      test "x$?" != "x0" && pkg_failed=yes
89740else
89741  pkg_failed=yes
89742fi
89743 else
89744    pkg_failed=untried
89745fi
89746
89747
89748
89749if test $pkg_failed = yes; then
89750   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89751$as_echo "no" >&6; }
89752
89753if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
89754        _pkg_short_errors_supported=yes
89755else
89756        _pkg_short_errors_supported=no
89757fi
89758        if test $_pkg_short_errors_supported = yes; then
89759	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
89760        else
89761	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
89762        fi
89763	# Put the nasty error message in config.log where it belongs
89764	echo "$LUA_PKG_ERRORS" >&5
89765
89766
89767
89768pkg_failed=no
89769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
89770$as_echo_n "checking for LUA... " >&6; }
89771
89772if test -n "$LUA_CFLAGS"; then
89773    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
89774 elif test -n "$PKG_CONFIG"; then
89775    if test -n "$PKG_CONFIG" && \
89776    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
89777  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
89778  ac_status=$?
89779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89780  test $ac_status = 0; }; then
89781  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
89782		      test "x$?" != "x0" && pkg_failed=yes
89783else
89784  pkg_failed=yes
89785fi
89786 else
89787    pkg_failed=untried
89788fi
89789if test -n "$LUA_LIBS"; then
89790    pkg_cv_LUA_LIBS="$LUA_LIBS"
89791 elif test -n "$PKG_CONFIG"; then
89792    if test -n "$PKG_CONFIG" && \
89793    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
89794  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
89795  ac_status=$?
89796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89797  test $ac_status = 0; }; then
89798  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
89799		      test "x$?" != "x0" && pkg_failed=yes
89800else
89801  pkg_failed=yes
89802fi
89803 else
89804    pkg_failed=untried
89805fi
89806
89807
89808
89809if test $pkg_failed = yes; then
89810   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89811$as_echo "no" >&6; }
89812
89813if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
89814        _pkg_short_errors_supported=yes
89815else
89816        _pkg_short_errors_supported=no
89817fi
89818        if test $_pkg_short_errors_supported = yes; then
89819	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
89820        else
89821	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
89822        fi
89823	# Put the nasty error message in config.log where it belongs
89824	echo "$LUA_PKG_ERRORS" >&5
89825
89826	with_liblua="no (pkg-config cannot find liblua)"
89827
89828elif test $pkg_failed = untried; then
89829     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89830$as_echo "no" >&6; }
89831	with_liblua="no (pkg-config cannot find liblua)"
89832
89833else
89834	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
89835	LUA_LIBS=$pkg_cv_LUA_LIBS
89836        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89837$as_echo "yes" >&6; }
89838	with_liblua="yes"
89839fi
89840
89841
89842elif test $pkg_failed = untried; then
89843     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89844$as_echo "no" >&6; }
89845
89846
89847pkg_failed=no
89848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
89849$as_echo_n "checking for LUA... " >&6; }
89850
89851if test -n "$LUA_CFLAGS"; then
89852    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
89853 elif test -n "$PKG_CONFIG"; then
89854    if test -n "$PKG_CONFIG" && \
89855    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
89856  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
89857  ac_status=$?
89858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89859  test $ac_status = 0; }; then
89860  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
89861		      test "x$?" != "x0" && pkg_failed=yes
89862else
89863  pkg_failed=yes
89864fi
89865 else
89866    pkg_failed=untried
89867fi
89868if test -n "$LUA_LIBS"; then
89869    pkg_cv_LUA_LIBS="$LUA_LIBS"
89870 elif test -n "$PKG_CONFIG"; then
89871    if test -n "$PKG_CONFIG" && \
89872    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
89873  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
89874  ac_status=$?
89875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89876  test $ac_status = 0; }; then
89877  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
89878		      test "x$?" != "x0" && pkg_failed=yes
89879else
89880  pkg_failed=yes
89881fi
89882 else
89883    pkg_failed=untried
89884fi
89885
89886
89887
89888if test $pkg_failed = yes; then
89889   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89890$as_echo "no" >&6; }
89891
89892if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
89893        _pkg_short_errors_supported=yes
89894else
89895        _pkg_short_errors_supported=no
89896fi
89897        if test $_pkg_short_errors_supported = yes; then
89898	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
89899        else
89900	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
89901        fi
89902	# Put the nasty error message in config.log where it belongs
89903	echo "$LUA_PKG_ERRORS" >&5
89904
89905	with_liblua="no (pkg-config cannot find liblua)"
89906
89907elif test $pkg_failed = untried; then
89908     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89909$as_echo "no" >&6; }
89910	with_liblua="no (pkg-config cannot find liblua)"
89911
89912else
89913	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
89914	LUA_LIBS=$pkg_cv_LUA_LIBS
89915        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89916$as_echo "yes" >&6; }
89917	with_liblua="yes"
89918fi
89919
89920
89921else
89922	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
89923	LUA_LIBS=$pkg_cv_LUA_LIBS
89924        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89925$as_echo "yes" >&6; }
89926	with_liblua="yes"
89927fi
89928
89929
89930else
89931	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
89932	LUA_LIBS=$pkg_cv_LUA_LIBS
89933        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89934$as_echo "yes" >&6; }
89935	with_liblua="yes"
89936fi
89937
89938
89939else
89940	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
89941	LUA_LIBS=$pkg_cv_LUA_LIBS
89942        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89943$as_echo "yes" >&6; }
89944	with_liblua="yes"
89945fi
89946
89947
89948else
89949	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
89950	LUA_LIBS=$pkg_cv_LUA_LIBS
89951        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89952$as_echo "yes" >&6; }
89953	with_liblua="yes"
89954fi
89955
89956
89957elif test $pkg_failed = untried; then
89958     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89959$as_echo "no" >&6; }
89960
89961
89962pkg_failed=no
89963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
89964$as_echo_n "checking for LUA... " >&6; }
89965
89966if test -n "$LUA_CFLAGS"; then
89967    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
89968 elif test -n "$PKG_CONFIG"; then
89969    if test -n "$PKG_CONFIG" && \
89970    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
89971  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
89972  ac_status=$?
89973  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89974  test $ac_status = 0; }; then
89975  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
89976		      test "x$?" != "x0" && pkg_failed=yes
89977else
89978  pkg_failed=yes
89979fi
89980 else
89981    pkg_failed=untried
89982fi
89983if test -n "$LUA_LIBS"; then
89984    pkg_cv_LUA_LIBS="$LUA_LIBS"
89985 elif test -n "$PKG_CONFIG"; then
89986    if test -n "$PKG_CONFIG" && \
89987    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
89988  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
89989  ac_status=$?
89990  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89991  test $ac_status = 0; }; then
89992  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
89993		      test "x$?" != "x0" && pkg_failed=yes
89994else
89995  pkg_failed=yes
89996fi
89997 else
89998    pkg_failed=untried
89999fi
90000
90001
90002
90003if test $pkg_failed = yes; then
90004   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90005$as_echo "no" >&6; }
90006
90007if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
90008        _pkg_short_errors_supported=yes
90009else
90010        _pkg_short_errors_supported=no
90011fi
90012        if test $_pkg_short_errors_supported = yes; then
90013	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
90014        else
90015	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
90016        fi
90017	# Put the nasty error message in config.log where it belongs
90018	echo "$LUA_PKG_ERRORS" >&5
90019
90020
90021
90022pkg_failed=no
90023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
90024$as_echo_n "checking for LUA... " >&6; }
90025
90026if test -n "$LUA_CFLAGS"; then
90027    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
90028 elif test -n "$PKG_CONFIG"; then
90029    if test -n "$PKG_CONFIG" && \
90030    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
90031  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
90032  ac_status=$?
90033  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90034  test $ac_status = 0; }; then
90035  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
90036		      test "x$?" != "x0" && pkg_failed=yes
90037else
90038  pkg_failed=yes
90039fi
90040 else
90041    pkg_failed=untried
90042fi
90043if test -n "$LUA_LIBS"; then
90044    pkg_cv_LUA_LIBS="$LUA_LIBS"
90045 elif test -n "$PKG_CONFIG"; then
90046    if test -n "$PKG_CONFIG" && \
90047    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
90048  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
90049  ac_status=$?
90050  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90051  test $ac_status = 0; }; then
90052  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
90053		      test "x$?" != "x0" && pkg_failed=yes
90054else
90055  pkg_failed=yes
90056fi
90057 else
90058    pkg_failed=untried
90059fi
90060
90061
90062
90063if test $pkg_failed = yes; then
90064   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90065$as_echo "no" >&6; }
90066
90067if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
90068        _pkg_short_errors_supported=yes
90069else
90070        _pkg_short_errors_supported=no
90071fi
90072        if test $_pkg_short_errors_supported = yes; then
90073	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
90074        else
90075	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
90076        fi
90077	# Put the nasty error message in config.log where it belongs
90078	echo "$LUA_PKG_ERRORS" >&5
90079
90080
90081
90082pkg_failed=no
90083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
90084$as_echo_n "checking for LUA... " >&6; }
90085
90086if test -n "$LUA_CFLAGS"; then
90087    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
90088 elif test -n "$PKG_CONFIG"; then
90089    if test -n "$PKG_CONFIG" && \
90090    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
90091  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
90092  ac_status=$?
90093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90094  test $ac_status = 0; }; then
90095  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
90096		      test "x$?" != "x0" && pkg_failed=yes
90097else
90098  pkg_failed=yes
90099fi
90100 else
90101    pkg_failed=untried
90102fi
90103if test -n "$LUA_LIBS"; then
90104    pkg_cv_LUA_LIBS="$LUA_LIBS"
90105 elif test -n "$PKG_CONFIG"; then
90106    if test -n "$PKG_CONFIG" && \
90107    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
90108  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
90109  ac_status=$?
90110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90111  test $ac_status = 0; }; then
90112  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
90113		      test "x$?" != "x0" && pkg_failed=yes
90114else
90115  pkg_failed=yes
90116fi
90117 else
90118    pkg_failed=untried
90119fi
90120
90121
90122
90123if test $pkg_failed = yes; then
90124   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90125$as_echo "no" >&6; }
90126
90127if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
90128        _pkg_short_errors_supported=yes
90129else
90130        _pkg_short_errors_supported=no
90131fi
90132        if test $_pkg_short_errors_supported = yes; then
90133	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
90134        else
90135	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
90136        fi
90137	# Put the nasty error message in config.log where it belongs
90138	echo "$LUA_PKG_ERRORS" >&5
90139
90140
90141
90142pkg_failed=no
90143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
90144$as_echo_n "checking for LUA... " >&6; }
90145
90146if test -n "$LUA_CFLAGS"; then
90147    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
90148 elif test -n "$PKG_CONFIG"; then
90149    if test -n "$PKG_CONFIG" && \
90150    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
90151  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
90152  ac_status=$?
90153  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90154  test $ac_status = 0; }; then
90155  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
90156		      test "x$?" != "x0" && pkg_failed=yes
90157else
90158  pkg_failed=yes
90159fi
90160 else
90161    pkg_failed=untried
90162fi
90163if test -n "$LUA_LIBS"; then
90164    pkg_cv_LUA_LIBS="$LUA_LIBS"
90165 elif test -n "$PKG_CONFIG"; then
90166    if test -n "$PKG_CONFIG" && \
90167    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
90168  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
90169  ac_status=$?
90170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90171  test $ac_status = 0; }; then
90172  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
90173		      test "x$?" != "x0" && pkg_failed=yes
90174else
90175  pkg_failed=yes
90176fi
90177 else
90178    pkg_failed=untried
90179fi
90180
90181
90182
90183if test $pkg_failed = yes; then
90184   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90185$as_echo "no" >&6; }
90186
90187if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
90188        _pkg_short_errors_supported=yes
90189else
90190        _pkg_short_errors_supported=no
90191fi
90192        if test $_pkg_short_errors_supported = yes; then
90193	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
90194        else
90195	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
90196        fi
90197	# Put the nasty error message in config.log where it belongs
90198	echo "$LUA_PKG_ERRORS" >&5
90199
90200
90201
90202pkg_failed=no
90203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
90204$as_echo_n "checking for LUA... " >&6; }
90205
90206if test -n "$LUA_CFLAGS"; then
90207    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
90208 elif test -n "$PKG_CONFIG"; then
90209    if test -n "$PKG_CONFIG" && \
90210    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
90211  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
90212  ac_status=$?
90213  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90214  test $ac_status = 0; }; then
90215  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
90216		      test "x$?" != "x0" && pkg_failed=yes
90217else
90218  pkg_failed=yes
90219fi
90220 else
90221    pkg_failed=untried
90222fi
90223if test -n "$LUA_LIBS"; then
90224    pkg_cv_LUA_LIBS="$LUA_LIBS"
90225 elif test -n "$PKG_CONFIG"; then
90226    if test -n "$PKG_CONFIG" && \
90227    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
90228  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
90229  ac_status=$?
90230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90231  test $ac_status = 0; }; then
90232  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
90233		      test "x$?" != "x0" && pkg_failed=yes
90234else
90235  pkg_failed=yes
90236fi
90237 else
90238    pkg_failed=untried
90239fi
90240
90241
90242
90243if test $pkg_failed = yes; then
90244   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90245$as_echo "no" >&6; }
90246
90247if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
90248        _pkg_short_errors_supported=yes
90249else
90250        _pkg_short_errors_supported=no
90251fi
90252        if test $_pkg_short_errors_supported = yes; then
90253	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
90254        else
90255	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
90256        fi
90257	# Put the nasty error message in config.log where it belongs
90258	echo "$LUA_PKG_ERRORS" >&5
90259
90260	with_liblua="no (pkg-config cannot find liblua)"
90261
90262elif test $pkg_failed = untried; then
90263     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90264$as_echo "no" >&6; }
90265	with_liblua="no (pkg-config cannot find liblua)"
90266
90267else
90268	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
90269	LUA_LIBS=$pkg_cv_LUA_LIBS
90270        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
90271$as_echo "yes" >&6; }
90272	with_liblua="yes"
90273fi
90274
90275
90276elif test $pkg_failed = untried; then
90277     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90278$as_echo "no" >&6; }
90279
90280
90281pkg_failed=no
90282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
90283$as_echo_n "checking for LUA... " >&6; }
90284
90285if test -n "$LUA_CFLAGS"; then
90286    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
90287 elif test -n "$PKG_CONFIG"; then
90288    if test -n "$PKG_CONFIG" && \
90289    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
90290  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
90291  ac_status=$?
90292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90293  test $ac_status = 0; }; then
90294  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
90295		      test "x$?" != "x0" && pkg_failed=yes
90296else
90297  pkg_failed=yes
90298fi
90299 else
90300    pkg_failed=untried
90301fi
90302if test -n "$LUA_LIBS"; then
90303    pkg_cv_LUA_LIBS="$LUA_LIBS"
90304 elif test -n "$PKG_CONFIG"; then
90305    if test -n "$PKG_CONFIG" && \
90306    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
90307  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
90308  ac_status=$?
90309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90310  test $ac_status = 0; }; then
90311  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
90312		      test "x$?" != "x0" && pkg_failed=yes
90313else
90314  pkg_failed=yes
90315fi
90316 else
90317    pkg_failed=untried
90318fi
90319
90320
90321
90322if test $pkg_failed = yes; then
90323   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90324$as_echo "no" >&6; }
90325
90326if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
90327        _pkg_short_errors_supported=yes
90328else
90329        _pkg_short_errors_supported=no
90330fi
90331        if test $_pkg_short_errors_supported = yes; then
90332	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
90333        else
90334	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
90335        fi
90336	# Put the nasty error message in config.log where it belongs
90337	echo "$LUA_PKG_ERRORS" >&5
90338
90339	with_liblua="no (pkg-config cannot find liblua)"
90340
90341elif test $pkg_failed = untried; then
90342     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90343$as_echo "no" >&6; }
90344	with_liblua="no (pkg-config cannot find liblua)"
90345
90346else
90347	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
90348	LUA_LIBS=$pkg_cv_LUA_LIBS
90349        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
90350$as_echo "yes" >&6; }
90351	with_liblua="yes"
90352fi
90353
90354
90355else
90356	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
90357	LUA_LIBS=$pkg_cv_LUA_LIBS
90358        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
90359$as_echo "yes" >&6; }
90360	with_liblua="yes"
90361fi
90362
90363
90364elif test $pkg_failed = untried; then
90365     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90366$as_echo "no" >&6; }
90367
90368
90369pkg_failed=no
90370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
90371$as_echo_n "checking for LUA... " >&6; }
90372
90373if test -n "$LUA_CFLAGS"; then
90374    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
90375 elif test -n "$PKG_CONFIG"; then
90376    if test -n "$PKG_CONFIG" && \
90377    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
90378  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
90379  ac_status=$?
90380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90381  test $ac_status = 0; }; then
90382  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
90383		      test "x$?" != "x0" && pkg_failed=yes
90384else
90385  pkg_failed=yes
90386fi
90387 else
90388    pkg_failed=untried
90389fi
90390if test -n "$LUA_LIBS"; then
90391    pkg_cv_LUA_LIBS="$LUA_LIBS"
90392 elif test -n "$PKG_CONFIG"; then
90393    if test -n "$PKG_CONFIG" && \
90394    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
90395  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
90396  ac_status=$?
90397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90398  test $ac_status = 0; }; then
90399  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
90400		      test "x$?" != "x0" && pkg_failed=yes
90401else
90402  pkg_failed=yes
90403fi
90404 else
90405    pkg_failed=untried
90406fi
90407
90408
90409
90410if test $pkg_failed = yes; then
90411   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90412$as_echo "no" >&6; }
90413
90414if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
90415        _pkg_short_errors_supported=yes
90416else
90417        _pkg_short_errors_supported=no
90418fi
90419        if test $_pkg_short_errors_supported = yes; then
90420	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
90421        else
90422	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
90423        fi
90424	# Put the nasty error message in config.log where it belongs
90425	echo "$LUA_PKG_ERRORS" >&5
90426
90427
90428
90429pkg_failed=no
90430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
90431$as_echo_n "checking for LUA... " >&6; }
90432
90433if test -n "$LUA_CFLAGS"; then
90434    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
90435 elif test -n "$PKG_CONFIG"; then
90436    if test -n "$PKG_CONFIG" && \
90437    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
90438  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
90439  ac_status=$?
90440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90441  test $ac_status = 0; }; then
90442  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
90443		      test "x$?" != "x0" && pkg_failed=yes
90444else
90445  pkg_failed=yes
90446fi
90447 else
90448    pkg_failed=untried
90449fi
90450if test -n "$LUA_LIBS"; then
90451    pkg_cv_LUA_LIBS="$LUA_LIBS"
90452 elif test -n "$PKG_CONFIG"; then
90453    if test -n "$PKG_CONFIG" && \
90454    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
90455  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
90456  ac_status=$?
90457  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90458  test $ac_status = 0; }; then
90459  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
90460		      test "x$?" != "x0" && pkg_failed=yes
90461else
90462  pkg_failed=yes
90463fi
90464 else
90465    pkg_failed=untried
90466fi
90467
90468
90469
90470if test $pkg_failed = yes; then
90471   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90472$as_echo "no" >&6; }
90473
90474if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
90475        _pkg_short_errors_supported=yes
90476else
90477        _pkg_short_errors_supported=no
90478fi
90479        if test $_pkg_short_errors_supported = yes; then
90480	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
90481        else
90482	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
90483        fi
90484	# Put the nasty error message in config.log where it belongs
90485	echo "$LUA_PKG_ERRORS" >&5
90486
90487	with_liblua="no (pkg-config cannot find liblua)"
90488
90489elif test $pkg_failed = untried; then
90490     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90491$as_echo "no" >&6; }
90492	with_liblua="no (pkg-config cannot find liblua)"
90493
90494else
90495	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
90496	LUA_LIBS=$pkg_cv_LUA_LIBS
90497        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
90498$as_echo "yes" >&6; }
90499	with_liblua="yes"
90500fi
90501
90502
90503elif test $pkg_failed = untried; then
90504     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90505$as_echo "no" >&6; }
90506
90507
90508pkg_failed=no
90509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
90510$as_echo_n "checking for LUA... " >&6; }
90511
90512if test -n "$LUA_CFLAGS"; then
90513    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
90514 elif test -n "$PKG_CONFIG"; then
90515    if test -n "$PKG_CONFIG" && \
90516    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
90517  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
90518  ac_status=$?
90519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90520  test $ac_status = 0; }; then
90521  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
90522		      test "x$?" != "x0" && pkg_failed=yes
90523else
90524  pkg_failed=yes
90525fi
90526 else
90527    pkg_failed=untried
90528fi
90529if test -n "$LUA_LIBS"; then
90530    pkg_cv_LUA_LIBS="$LUA_LIBS"
90531 elif test -n "$PKG_CONFIG"; then
90532    if test -n "$PKG_CONFIG" && \
90533    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
90534  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
90535  ac_status=$?
90536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90537  test $ac_status = 0; }; then
90538  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
90539		      test "x$?" != "x0" && pkg_failed=yes
90540else
90541  pkg_failed=yes
90542fi
90543 else
90544    pkg_failed=untried
90545fi
90546
90547
90548
90549if test $pkg_failed = yes; then
90550   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90551$as_echo "no" >&6; }
90552
90553if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
90554        _pkg_short_errors_supported=yes
90555else
90556        _pkg_short_errors_supported=no
90557fi
90558        if test $_pkg_short_errors_supported = yes; then
90559	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
90560        else
90561	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
90562        fi
90563	# Put the nasty error message in config.log where it belongs
90564	echo "$LUA_PKG_ERRORS" >&5
90565
90566	with_liblua="no (pkg-config cannot find liblua)"
90567
90568elif test $pkg_failed = untried; then
90569     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90570$as_echo "no" >&6; }
90571	with_liblua="no (pkg-config cannot find liblua)"
90572
90573else
90574	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
90575	LUA_LIBS=$pkg_cv_LUA_LIBS
90576        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
90577$as_echo "yes" >&6; }
90578	with_liblua="yes"
90579fi
90580
90581
90582else
90583	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
90584	LUA_LIBS=$pkg_cv_LUA_LIBS
90585        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
90586$as_echo "yes" >&6; }
90587	with_liblua="yes"
90588fi
90589
90590
90591else
90592	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
90593	LUA_LIBS=$pkg_cv_LUA_LIBS
90594        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
90595$as_echo "yes" >&6; }
90596	with_liblua="yes"
90597fi
90598
90599
90600elif test $pkg_failed = untried; then
90601     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90602$as_echo "no" >&6; }
90603
90604
90605pkg_failed=no
90606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
90607$as_echo_n "checking for LUA... " >&6; }
90608
90609if test -n "$LUA_CFLAGS"; then
90610    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
90611 elif test -n "$PKG_CONFIG"; then
90612    if test -n "$PKG_CONFIG" && \
90613    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
90614  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
90615  ac_status=$?
90616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90617  test $ac_status = 0; }; then
90618  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
90619		      test "x$?" != "x0" && pkg_failed=yes
90620else
90621  pkg_failed=yes
90622fi
90623 else
90624    pkg_failed=untried
90625fi
90626if test -n "$LUA_LIBS"; then
90627    pkg_cv_LUA_LIBS="$LUA_LIBS"
90628 elif test -n "$PKG_CONFIG"; then
90629    if test -n "$PKG_CONFIG" && \
90630    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
90631  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
90632  ac_status=$?
90633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90634  test $ac_status = 0; }; then
90635  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
90636		      test "x$?" != "x0" && pkg_failed=yes
90637else
90638  pkg_failed=yes
90639fi
90640 else
90641    pkg_failed=untried
90642fi
90643
90644
90645
90646if test $pkg_failed = yes; then
90647   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90648$as_echo "no" >&6; }
90649
90650if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
90651        _pkg_short_errors_supported=yes
90652else
90653        _pkg_short_errors_supported=no
90654fi
90655        if test $_pkg_short_errors_supported = yes; then
90656	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
90657        else
90658	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
90659        fi
90660	# Put the nasty error message in config.log where it belongs
90661	echo "$LUA_PKG_ERRORS" >&5
90662
90663
90664
90665pkg_failed=no
90666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
90667$as_echo_n "checking for LUA... " >&6; }
90668
90669if test -n "$LUA_CFLAGS"; then
90670    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
90671 elif test -n "$PKG_CONFIG"; then
90672    if test -n "$PKG_CONFIG" && \
90673    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
90674  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
90675  ac_status=$?
90676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90677  test $ac_status = 0; }; then
90678  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
90679		      test "x$?" != "x0" && pkg_failed=yes
90680else
90681  pkg_failed=yes
90682fi
90683 else
90684    pkg_failed=untried
90685fi
90686if test -n "$LUA_LIBS"; then
90687    pkg_cv_LUA_LIBS="$LUA_LIBS"
90688 elif test -n "$PKG_CONFIG"; then
90689    if test -n "$PKG_CONFIG" && \
90690    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
90691  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
90692  ac_status=$?
90693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90694  test $ac_status = 0; }; then
90695  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
90696		      test "x$?" != "x0" && pkg_failed=yes
90697else
90698  pkg_failed=yes
90699fi
90700 else
90701    pkg_failed=untried
90702fi
90703
90704
90705
90706if test $pkg_failed = yes; then
90707   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90708$as_echo "no" >&6; }
90709
90710if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
90711        _pkg_short_errors_supported=yes
90712else
90713        _pkg_short_errors_supported=no
90714fi
90715        if test $_pkg_short_errors_supported = yes; then
90716	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
90717        else
90718	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
90719        fi
90720	# Put the nasty error message in config.log where it belongs
90721	echo "$LUA_PKG_ERRORS" >&5
90722
90723
90724
90725pkg_failed=no
90726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
90727$as_echo_n "checking for LUA... " >&6; }
90728
90729if test -n "$LUA_CFLAGS"; then
90730    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
90731 elif test -n "$PKG_CONFIG"; then
90732    if test -n "$PKG_CONFIG" && \
90733    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
90734  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
90735  ac_status=$?
90736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90737  test $ac_status = 0; }; then
90738  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
90739		      test "x$?" != "x0" && pkg_failed=yes
90740else
90741  pkg_failed=yes
90742fi
90743 else
90744    pkg_failed=untried
90745fi
90746if test -n "$LUA_LIBS"; then
90747    pkg_cv_LUA_LIBS="$LUA_LIBS"
90748 elif test -n "$PKG_CONFIG"; then
90749    if test -n "$PKG_CONFIG" && \
90750    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
90751  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
90752  ac_status=$?
90753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90754  test $ac_status = 0; }; then
90755  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
90756		      test "x$?" != "x0" && pkg_failed=yes
90757else
90758  pkg_failed=yes
90759fi
90760 else
90761    pkg_failed=untried
90762fi
90763
90764
90765
90766if test $pkg_failed = yes; then
90767   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90768$as_echo "no" >&6; }
90769
90770if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
90771        _pkg_short_errors_supported=yes
90772else
90773        _pkg_short_errors_supported=no
90774fi
90775        if test $_pkg_short_errors_supported = yes; then
90776	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
90777        else
90778	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
90779        fi
90780	# Put the nasty error message in config.log where it belongs
90781	echo "$LUA_PKG_ERRORS" >&5
90782
90783	with_liblua="no (pkg-config cannot find liblua)"
90784
90785elif test $pkg_failed = untried; then
90786     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90787$as_echo "no" >&6; }
90788	with_liblua="no (pkg-config cannot find liblua)"
90789
90790else
90791	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
90792	LUA_LIBS=$pkg_cv_LUA_LIBS
90793        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
90794$as_echo "yes" >&6; }
90795	with_liblua="yes"
90796fi
90797
90798
90799elif test $pkg_failed = untried; then
90800     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90801$as_echo "no" >&6; }
90802
90803
90804pkg_failed=no
90805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
90806$as_echo_n "checking for LUA... " >&6; }
90807
90808if test -n "$LUA_CFLAGS"; then
90809    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
90810 elif test -n "$PKG_CONFIG"; then
90811    if test -n "$PKG_CONFIG" && \
90812    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
90813  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
90814  ac_status=$?
90815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90816  test $ac_status = 0; }; then
90817  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
90818		      test "x$?" != "x0" && pkg_failed=yes
90819else
90820  pkg_failed=yes
90821fi
90822 else
90823    pkg_failed=untried
90824fi
90825if test -n "$LUA_LIBS"; then
90826    pkg_cv_LUA_LIBS="$LUA_LIBS"
90827 elif test -n "$PKG_CONFIG"; then
90828    if test -n "$PKG_CONFIG" && \
90829    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
90830  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
90831  ac_status=$?
90832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90833  test $ac_status = 0; }; then
90834  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
90835		      test "x$?" != "x0" && pkg_failed=yes
90836else
90837  pkg_failed=yes
90838fi
90839 else
90840    pkg_failed=untried
90841fi
90842
90843
90844
90845if test $pkg_failed = yes; then
90846   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90847$as_echo "no" >&6; }
90848
90849if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
90850        _pkg_short_errors_supported=yes
90851else
90852        _pkg_short_errors_supported=no
90853fi
90854        if test $_pkg_short_errors_supported = yes; then
90855	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
90856        else
90857	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
90858        fi
90859	# Put the nasty error message in config.log where it belongs
90860	echo "$LUA_PKG_ERRORS" >&5
90861
90862	with_liblua="no (pkg-config cannot find liblua)"
90863
90864elif test $pkg_failed = untried; then
90865     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90866$as_echo "no" >&6; }
90867	with_liblua="no (pkg-config cannot find liblua)"
90868
90869else
90870	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
90871	LUA_LIBS=$pkg_cv_LUA_LIBS
90872        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
90873$as_echo "yes" >&6; }
90874	with_liblua="yes"
90875fi
90876
90877
90878else
90879	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
90880	LUA_LIBS=$pkg_cv_LUA_LIBS
90881        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
90882$as_echo "yes" >&6; }
90883	with_liblua="yes"
90884fi
90885
90886
90887elif test $pkg_failed = untried; then
90888     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90889$as_echo "no" >&6; }
90890
90891
90892pkg_failed=no
90893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
90894$as_echo_n "checking for LUA... " >&6; }
90895
90896if test -n "$LUA_CFLAGS"; then
90897    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
90898 elif test -n "$PKG_CONFIG"; then
90899    if test -n "$PKG_CONFIG" && \
90900    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
90901  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
90902  ac_status=$?
90903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90904  test $ac_status = 0; }; then
90905  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
90906		      test "x$?" != "x0" && pkg_failed=yes
90907else
90908  pkg_failed=yes
90909fi
90910 else
90911    pkg_failed=untried
90912fi
90913if test -n "$LUA_LIBS"; then
90914    pkg_cv_LUA_LIBS="$LUA_LIBS"
90915 elif test -n "$PKG_CONFIG"; then
90916    if test -n "$PKG_CONFIG" && \
90917    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
90918  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
90919  ac_status=$?
90920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90921  test $ac_status = 0; }; then
90922  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
90923		      test "x$?" != "x0" && pkg_failed=yes
90924else
90925  pkg_failed=yes
90926fi
90927 else
90928    pkg_failed=untried
90929fi
90930
90931
90932
90933if test $pkg_failed = yes; then
90934   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90935$as_echo "no" >&6; }
90936
90937if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
90938        _pkg_short_errors_supported=yes
90939else
90940        _pkg_short_errors_supported=no
90941fi
90942        if test $_pkg_short_errors_supported = yes; then
90943	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
90944        else
90945	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
90946        fi
90947	# Put the nasty error message in config.log where it belongs
90948	echo "$LUA_PKG_ERRORS" >&5
90949
90950
90951
90952pkg_failed=no
90953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
90954$as_echo_n "checking for LUA... " >&6; }
90955
90956if test -n "$LUA_CFLAGS"; then
90957    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
90958 elif test -n "$PKG_CONFIG"; then
90959    if test -n "$PKG_CONFIG" && \
90960    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
90961  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
90962  ac_status=$?
90963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90964  test $ac_status = 0; }; then
90965  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
90966		      test "x$?" != "x0" && pkg_failed=yes
90967else
90968  pkg_failed=yes
90969fi
90970 else
90971    pkg_failed=untried
90972fi
90973if test -n "$LUA_LIBS"; then
90974    pkg_cv_LUA_LIBS="$LUA_LIBS"
90975 elif test -n "$PKG_CONFIG"; then
90976    if test -n "$PKG_CONFIG" && \
90977    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
90978  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
90979  ac_status=$?
90980  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90981  test $ac_status = 0; }; then
90982  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
90983		      test "x$?" != "x0" && pkg_failed=yes
90984else
90985  pkg_failed=yes
90986fi
90987 else
90988    pkg_failed=untried
90989fi
90990
90991
90992
90993if test $pkg_failed = yes; then
90994   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90995$as_echo "no" >&6; }
90996
90997if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
90998        _pkg_short_errors_supported=yes
90999else
91000        _pkg_short_errors_supported=no
91001fi
91002        if test $_pkg_short_errors_supported = yes; then
91003	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
91004        else
91005	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
91006        fi
91007	# Put the nasty error message in config.log where it belongs
91008	echo "$LUA_PKG_ERRORS" >&5
91009
91010	with_liblua="no (pkg-config cannot find liblua)"
91011
91012elif test $pkg_failed = untried; then
91013     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91014$as_echo "no" >&6; }
91015	with_liblua="no (pkg-config cannot find liblua)"
91016
91017else
91018	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
91019	LUA_LIBS=$pkg_cv_LUA_LIBS
91020        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91021$as_echo "yes" >&6; }
91022	with_liblua="yes"
91023fi
91024
91025
91026elif test $pkg_failed = untried; then
91027     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91028$as_echo "no" >&6; }
91029
91030
91031pkg_failed=no
91032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
91033$as_echo_n "checking for LUA... " >&6; }
91034
91035if test -n "$LUA_CFLAGS"; then
91036    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
91037 elif test -n "$PKG_CONFIG"; then
91038    if test -n "$PKG_CONFIG" && \
91039    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
91040  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
91041  ac_status=$?
91042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91043  test $ac_status = 0; }; then
91044  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
91045		      test "x$?" != "x0" && pkg_failed=yes
91046else
91047  pkg_failed=yes
91048fi
91049 else
91050    pkg_failed=untried
91051fi
91052if test -n "$LUA_LIBS"; then
91053    pkg_cv_LUA_LIBS="$LUA_LIBS"
91054 elif test -n "$PKG_CONFIG"; then
91055    if test -n "$PKG_CONFIG" && \
91056    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
91057  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
91058  ac_status=$?
91059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91060  test $ac_status = 0; }; then
91061  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
91062		      test "x$?" != "x0" && pkg_failed=yes
91063else
91064  pkg_failed=yes
91065fi
91066 else
91067    pkg_failed=untried
91068fi
91069
91070
91071
91072if test $pkg_failed = yes; then
91073   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91074$as_echo "no" >&6; }
91075
91076if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
91077        _pkg_short_errors_supported=yes
91078else
91079        _pkg_short_errors_supported=no
91080fi
91081        if test $_pkg_short_errors_supported = yes; then
91082	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
91083        else
91084	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
91085        fi
91086	# Put the nasty error message in config.log where it belongs
91087	echo "$LUA_PKG_ERRORS" >&5
91088
91089	with_liblua="no (pkg-config cannot find liblua)"
91090
91091elif test $pkg_failed = untried; then
91092     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91093$as_echo "no" >&6; }
91094	with_liblua="no (pkg-config cannot find liblua)"
91095
91096else
91097	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
91098	LUA_LIBS=$pkg_cv_LUA_LIBS
91099        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91100$as_echo "yes" >&6; }
91101	with_liblua="yes"
91102fi
91103
91104
91105else
91106	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
91107	LUA_LIBS=$pkg_cv_LUA_LIBS
91108        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91109$as_echo "yes" >&6; }
91110	with_liblua="yes"
91111fi
91112
91113
91114else
91115	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
91116	LUA_LIBS=$pkg_cv_LUA_LIBS
91117        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91118$as_echo "yes" >&6; }
91119	with_liblua="yes"
91120fi
91121
91122
91123else
91124	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
91125	LUA_LIBS=$pkg_cv_LUA_LIBS
91126        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91127$as_echo "yes" >&6; }
91128	with_liblua="yes"
91129fi
91130
91131
91132elif test $pkg_failed = untried; then
91133     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91134$as_echo "no" >&6; }
91135
91136
91137pkg_failed=no
91138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
91139$as_echo_n "checking for LUA... " >&6; }
91140
91141if test -n "$LUA_CFLAGS"; then
91142    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
91143 elif test -n "$PKG_CONFIG"; then
91144    if test -n "$PKG_CONFIG" && \
91145    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
91146  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
91147  ac_status=$?
91148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91149  test $ac_status = 0; }; then
91150  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
91151		      test "x$?" != "x0" && pkg_failed=yes
91152else
91153  pkg_failed=yes
91154fi
91155 else
91156    pkg_failed=untried
91157fi
91158if test -n "$LUA_LIBS"; then
91159    pkg_cv_LUA_LIBS="$LUA_LIBS"
91160 elif test -n "$PKG_CONFIG"; then
91161    if test -n "$PKG_CONFIG" && \
91162    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
91163  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
91164  ac_status=$?
91165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91166  test $ac_status = 0; }; then
91167  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
91168		      test "x$?" != "x0" && pkg_failed=yes
91169else
91170  pkg_failed=yes
91171fi
91172 else
91173    pkg_failed=untried
91174fi
91175
91176
91177
91178if test $pkg_failed = yes; then
91179   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91180$as_echo "no" >&6; }
91181
91182if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
91183        _pkg_short_errors_supported=yes
91184else
91185        _pkg_short_errors_supported=no
91186fi
91187        if test $_pkg_short_errors_supported = yes; then
91188	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
91189        else
91190	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
91191        fi
91192	# Put the nasty error message in config.log where it belongs
91193	echo "$LUA_PKG_ERRORS" >&5
91194
91195
91196
91197pkg_failed=no
91198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
91199$as_echo_n "checking for LUA... " >&6; }
91200
91201if test -n "$LUA_CFLAGS"; then
91202    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
91203 elif test -n "$PKG_CONFIG"; then
91204    if test -n "$PKG_CONFIG" && \
91205    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
91206  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
91207  ac_status=$?
91208  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91209  test $ac_status = 0; }; then
91210  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
91211		      test "x$?" != "x0" && pkg_failed=yes
91212else
91213  pkg_failed=yes
91214fi
91215 else
91216    pkg_failed=untried
91217fi
91218if test -n "$LUA_LIBS"; then
91219    pkg_cv_LUA_LIBS="$LUA_LIBS"
91220 elif test -n "$PKG_CONFIG"; then
91221    if test -n "$PKG_CONFIG" && \
91222    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
91223  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
91224  ac_status=$?
91225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91226  test $ac_status = 0; }; then
91227  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
91228		      test "x$?" != "x0" && pkg_failed=yes
91229else
91230  pkg_failed=yes
91231fi
91232 else
91233    pkg_failed=untried
91234fi
91235
91236
91237
91238if test $pkg_failed = yes; then
91239   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91240$as_echo "no" >&6; }
91241
91242if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
91243        _pkg_short_errors_supported=yes
91244else
91245        _pkg_short_errors_supported=no
91246fi
91247        if test $_pkg_short_errors_supported = yes; then
91248	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
91249        else
91250	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
91251        fi
91252	# Put the nasty error message in config.log where it belongs
91253	echo "$LUA_PKG_ERRORS" >&5
91254
91255
91256
91257pkg_failed=no
91258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
91259$as_echo_n "checking for LUA... " >&6; }
91260
91261if test -n "$LUA_CFLAGS"; then
91262    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
91263 elif test -n "$PKG_CONFIG"; then
91264    if test -n "$PKG_CONFIG" && \
91265    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
91266  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
91267  ac_status=$?
91268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91269  test $ac_status = 0; }; then
91270  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
91271		      test "x$?" != "x0" && pkg_failed=yes
91272else
91273  pkg_failed=yes
91274fi
91275 else
91276    pkg_failed=untried
91277fi
91278if test -n "$LUA_LIBS"; then
91279    pkg_cv_LUA_LIBS="$LUA_LIBS"
91280 elif test -n "$PKG_CONFIG"; then
91281    if test -n "$PKG_CONFIG" && \
91282    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
91283  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
91284  ac_status=$?
91285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91286  test $ac_status = 0; }; then
91287  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
91288		      test "x$?" != "x0" && pkg_failed=yes
91289else
91290  pkg_failed=yes
91291fi
91292 else
91293    pkg_failed=untried
91294fi
91295
91296
91297
91298if test $pkg_failed = yes; then
91299   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91300$as_echo "no" >&6; }
91301
91302if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
91303        _pkg_short_errors_supported=yes
91304else
91305        _pkg_short_errors_supported=no
91306fi
91307        if test $_pkg_short_errors_supported = yes; then
91308	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
91309        else
91310	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
91311        fi
91312	# Put the nasty error message in config.log where it belongs
91313	echo "$LUA_PKG_ERRORS" >&5
91314
91315
91316
91317pkg_failed=no
91318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
91319$as_echo_n "checking for LUA... " >&6; }
91320
91321if test -n "$LUA_CFLAGS"; then
91322    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
91323 elif test -n "$PKG_CONFIG"; then
91324    if test -n "$PKG_CONFIG" && \
91325    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
91326  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
91327  ac_status=$?
91328  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91329  test $ac_status = 0; }; then
91330  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
91331		      test "x$?" != "x0" && pkg_failed=yes
91332else
91333  pkg_failed=yes
91334fi
91335 else
91336    pkg_failed=untried
91337fi
91338if test -n "$LUA_LIBS"; then
91339    pkg_cv_LUA_LIBS="$LUA_LIBS"
91340 elif test -n "$PKG_CONFIG"; then
91341    if test -n "$PKG_CONFIG" && \
91342    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
91343  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
91344  ac_status=$?
91345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91346  test $ac_status = 0; }; then
91347  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
91348		      test "x$?" != "x0" && pkg_failed=yes
91349else
91350  pkg_failed=yes
91351fi
91352 else
91353    pkg_failed=untried
91354fi
91355
91356
91357
91358if test $pkg_failed = yes; then
91359   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91360$as_echo "no" >&6; }
91361
91362if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
91363        _pkg_short_errors_supported=yes
91364else
91365        _pkg_short_errors_supported=no
91366fi
91367        if test $_pkg_short_errors_supported = yes; then
91368	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
91369        else
91370	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
91371        fi
91372	# Put the nasty error message in config.log where it belongs
91373	echo "$LUA_PKG_ERRORS" >&5
91374
91375	with_liblua="no (pkg-config cannot find liblua)"
91376
91377elif test $pkg_failed = untried; then
91378     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91379$as_echo "no" >&6; }
91380	with_liblua="no (pkg-config cannot find liblua)"
91381
91382else
91383	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
91384	LUA_LIBS=$pkg_cv_LUA_LIBS
91385        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91386$as_echo "yes" >&6; }
91387	with_liblua="yes"
91388fi
91389
91390
91391elif test $pkg_failed = untried; then
91392     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91393$as_echo "no" >&6; }
91394
91395
91396pkg_failed=no
91397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
91398$as_echo_n "checking for LUA... " >&6; }
91399
91400if test -n "$LUA_CFLAGS"; then
91401    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
91402 elif test -n "$PKG_CONFIG"; then
91403    if test -n "$PKG_CONFIG" && \
91404    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
91405  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
91406  ac_status=$?
91407  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91408  test $ac_status = 0; }; then
91409  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
91410		      test "x$?" != "x0" && pkg_failed=yes
91411else
91412  pkg_failed=yes
91413fi
91414 else
91415    pkg_failed=untried
91416fi
91417if test -n "$LUA_LIBS"; then
91418    pkg_cv_LUA_LIBS="$LUA_LIBS"
91419 elif test -n "$PKG_CONFIG"; then
91420    if test -n "$PKG_CONFIG" && \
91421    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
91422  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
91423  ac_status=$?
91424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91425  test $ac_status = 0; }; then
91426  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
91427		      test "x$?" != "x0" && pkg_failed=yes
91428else
91429  pkg_failed=yes
91430fi
91431 else
91432    pkg_failed=untried
91433fi
91434
91435
91436
91437if test $pkg_failed = yes; then
91438   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91439$as_echo "no" >&6; }
91440
91441if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
91442        _pkg_short_errors_supported=yes
91443else
91444        _pkg_short_errors_supported=no
91445fi
91446        if test $_pkg_short_errors_supported = yes; then
91447	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
91448        else
91449	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
91450        fi
91451	# Put the nasty error message in config.log where it belongs
91452	echo "$LUA_PKG_ERRORS" >&5
91453
91454	with_liblua="no (pkg-config cannot find liblua)"
91455
91456elif test $pkg_failed = untried; then
91457     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91458$as_echo "no" >&6; }
91459	with_liblua="no (pkg-config cannot find liblua)"
91460
91461else
91462	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
91463	LUA_LIBS=$pkg_cv_LUA_LIBS
91464        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91465$as_echo "yes" >&6; }
91466	with_liblua="yes"
91467fi
91468
91469
91470else
91471	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
91472	LUA_LIBS=$pkg_cv_LUA_LIBS
91473        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91474$as_echo "yes" >&6; }
91475	with_liblua="yes"
91476fi
91477
91478
91479elif test $pkg_failed = untried; then
91480     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91481$as_echo "no" >&6; }
91482
91483
91484pkg_failed=no
91485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
91486$as_echo_n "checking for LUA... " >&6; }
91487
91488if test -n "$LUA_CFLAGS"; then
91489    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
91490 elif test -n "$PKG_CONFIG"; then
91491    if test -n "$PKG_CONFIG" && \
91492    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
91493  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
91494  ac_status=$?
91495  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91496  test $ac_status = 0; }; then
91497  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
91498		      test "x$?" != "x0" && pkg_failed=yes
91499else
91500  pkg_failed=yes
91501fi
91502 else
91503    pkg_failed=untried
91504fi
91505if test -n "$LUA_LIBS"; then
91506    pkg_cv_LUA_LIBS="$LUA_LIBS"
91507 elif test -n "$PKG_CONFIG"; then
91508    if test -n "$PKG_CONFIG" && \
91509    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
91510  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
91511  ac_status=$?
91512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91513  test $ac_status = 0; }; then
91514  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
91515		      test "x$?" != "x0" && pkg_failed=yes
91516else
91517  pkg_failed=yes
91518fi
91519 else
91520    pkg_failed=untried
91521fi
91522
91523
91524
91525if test $pkg_failed = yes; then
91526   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91527$as_echo "no" >&6; }
91528
91529if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
91530        _pkg_short_errors_supported=yes
91531else
91532        _pkg_short_errors_supported=no
91533fi
91534        if test $_pkg_short_errors_supported = yes; then
91535	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
91536        else
91537	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
91538        fi
91539	# Put the nasty error message in config.log where it belongs
91540	echo "$LUA_PKG_ERRORS" >&5
91541
91542
91543
91544pkg_failed=no
91545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
91546$as_echo_n "checking for LUA... " >&6; }
91547
91548if test -n "$LUA_CFLAGS"; then
91549    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
91550 elif test -n "$PKG_CONFIG"; then
91551    if test -n "$PKG_CONFIG" && \
91552    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
91553  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
91554  ac_status=$?
91555  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91556  test $ac_status = 0; }; then
91557  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
91558		      test "x$?" != "x0" && pkg_failed=yes
91559else
91560  pkg_failed=yes
91561fi
91562 else
91563    pkg_failed=untried
91564fi
91565if test -n "$LUA_LIBS"; then
91566    pkg_cv_LUA_LIBS="$LUA_LIBS"
91567 elif test -n "$PKG_CONFIG"; then
91568    if test -n "$PKG_CONFIG" && \
91569    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
91570  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
91571  ac_status=$?
91572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91573  test $ac_status = 0; }; then
91574  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
91575		      test "x$?" != "x0" && pkg_failed=yes
91576else
91577  pkg_failed=yes
91578fi
91579 else
91580    pkg_failed=untried
91581fi
91582
91583
91584
91585if test $pkg_failed = yes; then
91586   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91587$as_echo "no" >&6; }
91588
91589if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
91590        _pkg_short_errors_supported=yes
91591else
91592        _pkg_short_errors_supported=no
91593fi
91594        if test $_pkg_short_errors_supported = yes; then
91595	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
91596        else
91597	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
91598        fi
91599	# Put the nasty error message in config.log where it belongs
91600	echo "$LUA_PKG_ERRORS" >&5
91601
91602	with_liblua="no (pkg-config cannot find liblua)"
91603
91604elif test $pkg_failed = untried; then
91605     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91606$as_echo "no" >&6; }
91607	with_liblua="no (pkg-config cannot find liblua)"
91608
91609else
91610	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
91611	LUA_LIBS=$pkg_cv_LUA_LIBS
91612        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91613$as_echo "yes" >&6; }
91614	with_liblua="yes"
91615fi
91616
91617
91618elif test $pkg_failed = untried; then
91619     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91620$as_echo "no" >&6; }
91621
91622
91623pkg_failed=no
91624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
91625$as_echo_n "checking for LUA... " >&6; }
91626
91627if test -n "$LUA_CFLAGS"; then
91628    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
91629 elif test -n "$PKG_CONFIG"; then
91630    if test -n "$PKG_CONFIG" && \
91631    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
91632  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
91633  ac_status=$?
91634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91635  test $ac_status = 0; }; then
91636  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
91637		      test "x$?" != "x0" && pkg_failed=yes
91638else
91639  pkg_failed=yes
91640fi
91641 else
91642    pkg_failed=untried
91643fi
91644if test -n "$LUA_LIBS"; then
91645    pkg_cv_LUA_LIBS="$LUA_LIBS"
91646 elif test -n "$PKG_CONFIG"; then
91647    if test -n "$PKG_CONFIG" && \
91648    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
91649  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
91650  ac_status=$?
91651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91652  test $ac_status = 0; }; then
91653  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
91654		      test "x$?" != "x0" && pkg_failed=yes
91655else
91656  pkg_failed=yes
91657fi
91658 else
91659    pkg_failed=untried
91660fi
91661
91662
91663
91664if test $pkg_failed = yes; then
91665   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91666$as_echo "no" >&6; }
91667
91668if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
91669        _pkg_short_errors_supported=yes
91670else
91671        _pkg_short_errors_supported=no
91672fi
91673        if test $_pkg_short_errors_supported = yes; then
91674	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
91675        else
91676	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
91677        fi
91678	# Put the nasty error message in config.log where it belongs
91679	echo "$LUA_PKG_ERRORS" >&5
91680
91681	with_liblua="no (pkg-config cannot find liblua)"
91682
91683elif test $pkg_failed = untried; then
91684     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91685$as_echo "no" >&6; }
91686	with_liblua="no (pkg-config cannot find liblua)"
91687
91688else
91689	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
91690	LUA_LIBS=$pkg_cv_LUA_LIBS
91691        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91692$as_echo "yes" >&6; }
91693	with_liblua="yes"
91694fi
91695
91696
91697else
91698	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
91699	LUA_LIBS=$pkg_cv_LUA_LIBS
91700        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91701$as_echo "yes" >&6; }
91702	with_liblua="yes"
91703fi
91704
91705
91706else
91707	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
91708	LUA_LIBS=$pkg_cv_LUA_LIBS
91709        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91710$as_echo "yes" >&6; }
91711	with_liblua="yes"
91712fi
91713
91714
91715elif test $pkg_failed = untried; then
91716     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91717$as_echo "no" >&6; }
91718
91719
91720pkg_failed=no
91721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
91722$as_echo_n "checking for LUA... " >&6; }
91723
91724if test -n "$LUA_CFLAGS"; then
91725    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
91726 elif test -n "$PKG_CONFIG"; then
91727    if test -n "$PKG_CONFIG" && \
91728    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
91729  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
91730  ac_status=$?
91731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91732  test $ac_status = 0; }; then
91733  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
91734		      test "x$?" != "x0" && pkg_failed=yes
91735else
91736  pkg_failed=yes
91737fi
91738 else
91739    pkg_failed=untried
91740fi
91741if test -n "$LUA_LIBS"; then
91742    pkg_cv_LUA_LIBS="$LUA_LIBS"
91743 elif test -n "$PKG_CONFIG"; then
91744    if test -n "$PKG_CONFIG" && \
91745    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
91746  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
91747  ac_status=$?
91748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91749  test $ac_status = 0; }; then
91750  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
91751		      test "x$?" != "x0" && pkg_failed=yes
91752else
91753  pkg_failed=yes
91754fi
91755 else
91756    pkg_failed=untried
91757fi
91758
91759
91760
91761if test $pkg_failed = yes; then
91762   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91763$as_echo "no" >&6; }
91764
91765if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
91766        _pkg_short_errors_supported=yes
91767else
91768        _pkg_short_errors_supported=no
91769fi
91770        if test $_pkg_short_errors_supported = yes; then
91771	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
91772        else
91773	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
91774        fi
91775	# Put the nasty error message in config.log where it belongs
91776	echo "$LUA_PKG_ERRORS" >&5
91777
91778
91779
91780pkg_failed=no
91781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
91782$as_echo_n "checking for LUA... " >&6; }
91783
91784if test -n "$LUA_CFLAGS"; then
91785    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
91786 elif test -n "$PKG_CONFIG"; then
91787    if test -n "$PKG_CONFIG" && \
91788    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
91789  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
91790  ac_status=$?
91791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91792  test $ac_status = 0; }; then
91793  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
91794		      test "x$?" != "x0" && pkg_failed=yes
91795else
91796  pkg_failed=yes
91797fi
91798 else
91799    pkg_failed=untried
91800fi
91801if test -n "$LUA_LIBS"; then
91802    pkg_cv_LUA_LIBS="$LUA_LIBS"
91803 elif test -n "$PKG_CONFIG"; then
91804    if test -n "$PKG_CONFIG" && \
91805    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
91806  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
91807  ac_status=$?
91808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91809  test $ac_status = 0; }; then
91810  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
91811		      test "x$?" != "x0" && pkg_failed=yes
91812else
91813  pkg_failed=yes
91814fi
91815 else
91816    pkg_failed=untried
91817fi
91818
91819
91820
91821if test $pkg_failed = yes; then
91822   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91823$as_echo "no" >&6; }
91824
91825if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
91826        _pkg_short_errors_supported=yes
91827else
91828        _pkg_short_errors_supported=no
91829fi
91830        if test $_pkg_short_errors_supported = yes; then
91831	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
91832        else
91833	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
91834        fi
91835	# Put the nasty error message in config.log where it belongs
91836	echo "$LUA_PKG_ERRORS" >&5
91837
91838
91839
91840pkg_failed=no
91841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
91842$as_echo_n "checking for LUA... " >&6; }
91843
91844if test -n "$LUA_CFLAGS"; then
91845    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
91846 elif test -n "$PKG_CONFIG"; then
91847    if test -n "$PKG_CONFIG" && \
91848    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
91849  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
91850  ac_status=$?
91851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91852  test $ac_status = 0; }; then
91853  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
91854		      test "x$?" != "x0" && pkg_failed=yes
91855else
91856  pkg_failed=yes
91857fi
91858 else
91859    pkg_failed=untried
91860fi
91861if test -n "$LUA_LIBS"; then
91862    pkg_cv_LUA_LIBS="$LUA_LIBS"
91863 elif test -n "$PKG_CONFIG"; then
91864    if test -n "$PKG_CONFIG" && \
91865    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
91866  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
91867  ac_status=$?
91868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91869  test $ac_status = 0; }; then
91870  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
91871		      test "x$?" != "x0" && pkg_failed=yes
91872else
91873  pkg_failed=yes
91874fi
91875 else
91876    pkg_failed=untried
91877fi
91878
91879
91880
91881if test $pkg_failed = yes; then
91882   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91883$as_echo "no" >&6; }
91884
91885if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
91886        _pkg_short_errors_supported=yes
91887else
91888        _pkg_short_errors_supported=no
91889fi
91890        if test $_pkg_short_errors_supported = yes; then
91891	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
91892        else
91893	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
91894        fi
91895	# Put the nasty error message in config.log where it belongs
91896	echo "$LUA_PKG_ERRORS" >&5
91897
91898	with_liblua="no (pkg-config cannot find liblua)"
91899
91900elif test $pkg_failed = untried; then
91901     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91902$as_echo "no" >&6; }
91903	with_liblua="no (pkg-config cannot find liblua)"
91904
91905else
91906	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
91907	LUA_LIBS=$pkg_cv_LUA_LIBS
91908        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91909$as_echo "yes" >&6; }
91910	with_liblua="yes"
91911fi
91912
91913
91914elif test $pkg_failed = untried; then
91915     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91916$as_echo "no" >&6; }
91917
91918
91919pkg_failed=no
91920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
91921$as_echo_n "checking for LUA... " >&6; }
91922
91923if test -n "$LUA_CFLAGS"; then
91924    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
91925 elif test -n "$PKG_CONFIG"; then
91926    if test -n "$PKG_CONFIG" && \
91927    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
91928  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
91929  ac_status=$?
91930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91931  test $ac_status = 0; }; then
91932  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
91933		      test "x$?" != "x0" && pkg_failed=yes
91934else
91935  pkg_failed=yes
91936fi
91937 else
91938    pkg_failed=untried
91939fi
91940if test -n "$LUA_LIBS"; then
91941    pkg_cv_LUA_LIBS="$LUA_LIBS"
91942 elif test -n "$PKG_CONFIG"; then
91943    if test -n "$PKG_CONFIG" && \
91944    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
91945  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
91946  ac_status=$?
91947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91948  test $ac_status = 0; }; then
91949  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
91950		      test "x$?" != "x0" && pkg_failed=yes
91951else
91952  pkg_failed=yes
91953fi
91954 else
91955    pkg_failed=untried
91956fi
91957
91958
91959
91960if test $pkg_failed = yes; then
91961   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91962$as_echo "no" >&6; }
91963
91964if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
91965        _pkg_short_errors_supported=yes
91966else
91967        _pkg_short_errors_supported=no
91968fi
91969        if test $_pkg_short_errors_supported = yes; then
91970	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
91971        else
91972	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
91973        fi
91974	# Put the nasty error message in config.log where it belongs
91975	echo "$LUA_PKG_ERRORS" >&5
91976
91977	with_liblua="no (pkg-config cannot find liblua)"
91978
91979elif test $pkg_failed = untried; then
91980     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91981$as_echo "no" >&6; }
91982	with_liblua="no (pkg-config cannot find liblua)"
91983
91984else
91985	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
91986	LUA_LIBS=$pkg_cv_LUA_LIBS
91987        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91988$as_echo "yes" >&6; }
91989	with_liblua="yes"
91990fi
91991
91992
91993else
91994	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
91995	LUA_LIBS=$pkg_cv_LUA_LIBS
91996        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91997$as_echo "yes" >&6; }
91998	with_liblua="yes"
91999fi
92000
92001
92002elif test $pkg_failed = untried; then
92003     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92004$as_echo "no" >&6; }
92005
92006
92007pkg_failed=no
92008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
92009$as_echo_n "checking for LUA... " >&6; }
92010
92011if test -n "$LUA_CFLAGS"; then
92012    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
92013 elif test -n "$PKG_CONFIG"; then
92014    if test -n "$PKG_CONFIG" && \
92015    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
92016  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
92017  ac_status=$?
92018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92019  test $ac_status = 0; }; then
92020  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
92021		      test "x$?" != "x0" && pkg_failed=yes
92022else
92023  pkg_failed=yes
92024fi
92025 else
92026    pkg_failed=untried
92027fi
92028if test -n "$LUA_LIBS"; then
92029    pkg_cv_LUA_LIBS="$LUA_LIBS"
92030 elif test -n "$PKG_CONFIG"; then
92031    if test -n "$PKG_CONFIG" && \
92032    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
92033  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
92034  ac_status=$?
92035  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92036  test $ac_status = 0; }; then
92037  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
92038		      test "x$?" != "x0" && pkg_failed=yes
92039else
92040  pkg_failed=yes
92041fi
92042 else
92043    pkg_failed=untried
92044fi
92045
92046
92047
92048if test $pkg_failed = yes; then
92049   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92050$as_echo "no" >&6; }
92051
92052if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
92053        _pkg_short_errors_supported=yes
92054else
92055        _pkg_short_errors_supported=no
92056fi
92057        if test $_pkg_short_errors_supported = yes; then
92058	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
92059        else
92060	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
92061        fi
92062	# Put the nasty error message in config.log where it belongs
92063	echo "$LUA_PKG_ERRORS" >&5
92064
92065
92066
92067pkg_failed=no
92068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
92069$as_echo_n "checking for LUA... " >&6; }
92070
92071if test -n "$LUA_CFLAGS"; then
92072    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
92073 elif test -n "$PKG_CONFIG"; then
92074    if test -n "$PKG_CONFIG" && \
92075    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
92076  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
92077  ac_status=$?
92078  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92079  test $ac_status = 0; }; then
92080  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
92081		      test "x$?" != "x0" && pkg_failed=yes
92082else
92083  pkg_failed=yes
92084fi
92085 else
92086    pkg_failed=untried
92087fi
92088if test -n "$LUA_LIBS"; then
92089    pkg_cv_LUA_LIBS="$LUA_LIBS"
92090 elif test -n "$PKG_CONFIG"; then
92091    if test -n "$PKG_CONFIG" && \
92092    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
92093  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
92094  ac_status=$?
92095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92096  test $ac_status = 0; }; then
92097  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
92098		      test "x$?" != "x0" && pkg_failed=yes
92099else
92100  pkg_failed=yes
92101fi
92102 else
92103    pkg_failed=untried
92104fi
92105
92106
92107
92108if test $pkg_failed = yes; then
92109   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92110$as_echo "no" >&6; }
92111
92112if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
92113        _pkg_short_errors_supported=yes
92114else
92115        _pkg_short_errors_supported=no
92116fi
92117        if test $_pkg_short_errors_supported = yes; then
92118	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
92119        else
92120	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
92121        fi
92122	# Put the nasty error message in config.log where it belongs
92123	echo "$LUA_PKG_ERRORS" >&5
92124
92125	with_liblua="no (pkg-config cannot find liblua)"
92126
92127elif test $pkg_failed = untried; then
92128     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92129$as_echo "no" >&6; }
92130	with_liblua="no (pkg-config cannot find liblua)"
92131
92132else
92133	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
92134	LUA_LIBS=$pkg_cv_LUA_LIBS
92135        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
92136$as_echo "yes" >&6; }
92137	with_liblua="yes"
92138fi
92139
92140
92141elif test $pkg_failed = untried; then
92142     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92143$as_echo "no" >&6; }
92144
92145
92146pkg_failed=no
92147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
92148$as_echo_n "checking for LUA... " >&6; }
92149
92150if test -n "$LUA_CFLAGS"; then
92151    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
92152 elif test -n "$PKG_CONFIG"; then
92153    if test -n "$PKG_CONFIG" && \
92154    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
92155  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
92156  ac_status=$?
92157  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92158  test $ac_status = 0; }; then
92159  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
92160		      test "x$?" != "x0" && pkg_failed=yes
92161else
92162  pkg_failed=yes
92163fi
92164 else
92165    pkg_failed=untried
92166fi
92167if test -n "$LUA_LIBS"; then
92168    pkg_cv_LUA_LIBS="$LUA_LIBS"
92169 elif test -n "$PKG_CONFIG"; then
92170    if test -n "$PKG_CONFIG" && \
92171    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
92172  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
92173  ac_status=$?
92174  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92175  test $ac_status = 0; }; then
92176  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
92177		      test "x$?" != "x0" && pkg_failed=yes
92178else
92179  pkg_failed=yes
92180fi
92181 else
92182    pkg_failed=untried
92183fi
92184
92185
92186
92187if test $pkg_failed = yes; then
92188   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92189$as_echo "no" >&6; }
92190
92191if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
92192        _pkg_short_errors_supported=yes
92193else
92194        _pkg_short_errors_supported=no
92195fi
92196        if test $_pkg_short_errors_supported = yes; then
92197	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
92198        else
92199	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
92200        fi
92201	# Put the nasty error message in config.log where it belongs
92202	echo "$LUA_PKG_ERRORS" >&5
92203
92204	with_liblua="no (pkg-config cannot find liblua)"
92205
92206elif test $pkg_failed = untried; then
92207     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92208$as_echo "no" >&6; }
92209	with_liblua="no (pkg-config cannot find liblua)"
92210
92211else
92212	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
92213	LUA_LIBS=$pkg_cv_LUA_LIBS
92214        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
92215$as_echo "yes" >&6; }
92216	with_liblua="yes"
92217fi
92218
92219
92220else
92221	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
92222	LUA_LIBS=$pkg_cv_LUA_LIBS
92223        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
92224$as_echo "yes" >&6; }
92225	with_liblua="yes"
92226fi
92227
92228
92229else
92230	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
92231	LUA_LIBS=$pkg_cv_LUA_LIBS
92232        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
92233$as_echo "yes" >&6; }
92234	with_liblua="yes"
92235fi
92236
92237
92238else
92239	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
92240	LUA_LIBS=$pkg_cv_LUA_LIBS
92241        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
92242$as_echo "yes" >&6; }
92243	with_liblua="yes"
92244fi
92245
92246
92247else
92248	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
92249	LUA_LIBS=$pkg_cv_LUA_LIBS
92250        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
92251$as_echo "yes" >&6; }
92252	with_liblua="yes"
92253fi
92254
92255
92256else
92257	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
92258	LUA_LIBS=$pkg_cv_LUA_LIBS
92259        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
92260$as_echo "yes" >&6; }
92261	with_liblua="yes"
92262fi
92263
92264
92265else
92266	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
92267	LUA_LIBS=$pkg_cv_LUA_LIBS
92268        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
92269$as_echo "yes" >&6; }
92270	with_liblua="yes"
92271fi
92272
92273
92274elif test $pkg_failed = untried; then
92275     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92276$as_echo "no" >&6; }
92277
92278
92279pkg_failed=no
92280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
92281$as_echo_n "checking for LUA... " >&6; }
92282
92283if test -n "$LUA_CFLAGS"; then
92284    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
92285 elif test -n "$PKG_CONFIG"; then
92286    if test -n "$PKG_CONFIG" && \
92287    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua53\""; } >&5
92288  ($PKG_CONFIG --exists --print-errors "lua53") 2>&5
92289  ac_status=$?
92290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92291  test $ac_status = 0; }; then
92292  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua53" 2>/dev/null`
92293		      test "x$?" != "x0" && pkg_failed=yes
92294else
92295  pkg_failed=yes
92296fi
92297 else
92298    pkg_failed=untried
92299fi
92300if test -n "$LUA_LIBS"; then
92301    pkg_cv_LUA_LIBS="$LUA_LIBS"
92302 elif test -n "$PKG_CONFIG"; then
92303    if test -n "$PKG_CONFIG" && \
92304    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua53\""; } >&5
92305  ($PKG_CONFIG --exists --print-errors "lua53") 2>&5
92306  ac_status=$?
92307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92308  test $ac_status = 0; }; then
92309  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua53" 2>/dev/null`
92310		      test "x$?" != "x0" && pkg_failed=yes
92311else
92312  pkg_failed=yes
92313fi
92314 else
92315    pkg_failed=untried
92316fi
92317
92318
92319
92320if test $pkg_failed = yes; then
92321   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92322$as_echo "no" >&6; }
92323
92324if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
92325        _pkg_short_errors_supported=yes
92326else
92327        _pkg_short_errors_supported=no
92328fi
92329        if test $_pkg_short_errors_supported = yes; then
92330	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua53" 2>&1`
92331        else
92332	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua53" 2>&1`
92333        fi
92334	# Put the nasty error message in config.log where it belongs
92335	echo "$LUA_PKG_ERRORS" >&5
92336
92337
92338
92339pkg_failed=no
92340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
92341$as_echo_n "checking for LUA... " >&6; }
92342
92343if test -n "$LUA_CFLAGS"; then
92344    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
92345 elif test -n "$PKG_CONFIG"; then
92346    if test -n "$PKG_CONFIG" && \
92347    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
92348  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
92349  ac_status=$?
92350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92351  test $ac_status = 0; }; then
92352  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.2" 2>/dev/null`
92353		      test "x$?" != "x0" && pkg_failed=yes
92354else
92355  pkg_failed=yes
92356fi
92357 else
92358    pkg_failed=untried
92359fi
92360if test -n "$LUA_LIBS"; then
92361    pkg_cv_LUA_LIBS="$LUA_LIBS"
92362 elif test -n "$PKG_CONFIG"; then
92363    if test -n "$PKG_CONFIG" && \
92364    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
92365  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
92366  ac_status=$?
92367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92368  test $ac_status = 0; }; then
92369  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.2" 2>/dev/null`
92370		      test "x$?" != "x0" && pkg_failed=yes
92371else
92372  pkg_failed=yes
92373fi
92374 else
92375    pkg_failed=untried
92376fi
92377
92378
92379
92380if test $pkg_failed = yes; then
92381   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92382$as_echo "no" >&6; }
92383
92384if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
92385        _pkg_short_errors_supported=yes
92386else
92387        _pkg_short_errors_supported=no
92388fi
92389        if test $_pkg_short_errors_supported = yes; then
92390	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.2" 2>&1`
92391        else
92392	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.2" 2>&1`
92393        fi
92394	# Put the nasty error message in config.log where it belongs
92395	echo "$LUA_PKG_ERRORS" >&5
92396
92397
92398
92399pkg_failed=no
92400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
92401$as_echo_n "checking for LUA... " >&6; }
92402
92403if test -n "$LUA_CFLAGS"; then
92404    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
92405 elif test -n "$PKG_CONFIG"; then
92406    if test -n "$PKG_CONFIG" && \
92407    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
92408  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
92409  ac_status=$?
92410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92411  test $ac_status = 0; }; then
92412  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
92413		      test "x$?" != "x0" && pkg_failed=yes
92414else
92415  pkg_failed=yes
92416fi
92417 else
92418    pkg_failed=untried
92419fi
92420if test -n "$LUA_LIBS"; then
92421    pkg_cv_LUA_LIBS="$LUA_LIBS"
92422 elif test -n "$PKG_CONFIG"; then
92423    if test -n "$PKG_CONFIG" && \
92424    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
92425  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
92426  ac_status=$?
92427  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92428  test $ac_status = 0; }; then
92429  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
92430		      test "x$?" != "x0" && pkg_failed=yes
92431else
92432  pkg_failed=yes
92433fi
92434 else
92435    pkg_failed=untried
92436fi
92437
92438
92439
92440if test $pkg_failed = yes; then
92441   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92442$as_echo "no" >&6; }
92443
92444if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
92445        _pkg_short_errors_supported=yes
92446else
92447        _pkg_short_errors_supported=no
92448fi
92449        if test $_pkg_short_errors_supported = yes; then
92450	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
92451        else
92452	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
92453        fi
92454	# Put the nasty error message in config.log where it belongs
92455	echo "$LUA_PKG_ERRORS" >&5
92456
92457
92458
92459pkg_failed=no
92460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
92461$as_echo_n "checking for LUA... " >&6; }
92462
92463if test -n "$LUA_CFLAGS"; then
92464    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
92465 elif test -n "$PKG_CONFIG"; then
92466    if test -n "$PKG_CONFIG" && \
92467    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
92468  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
92469  ac_status=$?
92470  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92471  test $ac_status = 0; }; then
92472  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
92473		      test "x$?" != "x0" && pkg_failed=yes
92474else
92475  pkg_failed=yes
92476fi
92477 else
92478    pkg_failed=untried
92479fi
92480if test -n "$LUA_LIBS"; then
92481    pkg_cv_LUA_LIBS="$LUA_LIBS"
92482 elif test -n "$PKG_CONFIG"; then
92483    if test -n "$PKG_CONFIG" && \
92484    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
92485  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
92486  ac_status=$?
92487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92488  test $ac_status = 0; }; then
92489  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
92490		      test "x$?" != "x0" && pkg_failed=yes
92491else
92492  pkg_failed=yes
92493fi
92494 else
92495    pkg_failed=untried
92496fi
92497
92498
92499
92500if test $pkg_failed = yes; then
92501   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92502$as_echo "no" >&6; }
92503
92504if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
92505        _pkg_short_errors_supported=yes
92506else
92507        _pkg_short_errors_supported=no
92508fi
92509        if test $_pkg_short_errors_supported = yes; then
92510	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
92511        else
92512	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
92513        fi
92514	# Put the nasty error message in config.log where it belongs
92515	echo "$LUA_PKG_ERRORS" >&5
92516
92517
92518
92519pkg_failed=no
92520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
92521$as_echo_n "checking for LUA... " >&6; }
92522
92523if test -n "$LUA_CFLAGS"; then
92524    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
92525 elif test -n "$PKG_CONFIG"; then
92526    if test -n "$PKG_CONFIG" && \
92527    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
92528  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
92529  ac_status=$?
92530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92531  test $ac_status = 0; }; then
92532  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
92533		      test "x$?" != "x0" && pkg_failed=yes
92534else
92535  pkg_failed=yes
92536fi
92537 else
92538    pkg_failed=untried
92539fi
92540if test -n "$LUA_LIBS"; then
92541    pkg_cv_LUA_LIBS="$LUA_LIBS"
92542 elif test -n "$PKG_CONFIG"; then
92543    if test -n "$PKG_CONFIG" && \
92544    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
92545  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
92546  ac_status=$?
92547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92548  test $ac_status = 0; }; then
92549  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
92550		      test "x$?" != "x0" && pkg_failed=yes
92551else
92552  pkg_failed=yes
92553fi
92554 else
92555    pkg_failed=untried
92556fi
92557
92558
92559
92560if test $pkg_failed = yes; then
92561   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92562$as_echo "no" >&6; }
92563
92564if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
92565        _pkg_short_errors_supported=yes
92566else
92567        _pkg_short_errors_supported=no
92568fi
92569        if test $_pkg_short_errors_supported = yes; then
92570	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
92571        else
92572	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
92573        fi
92574	# Put the nasty error message in config.log where it belongs
92575	echo "$LUA_PKG_ERRORS" >&5
92576
92577
92578
92579pkg_failed=no
92580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
92581$as_echo_n "checking for LUA... " >&6; }
92582
92583if test -n "$LUA_CFLAGS"; then
92584    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
92585 elif test -n "$PKG_CONFIG"; then
92586    if test -n "$PKG_CONFIG" && \
92587    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
92588  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
92589  ac_status=$?
92590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92591  test $ac_status = 0; }; then
92592  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
92593		      test "x$?" != "x0" && pkg_failed=yes
92594else
92595  pkg_failed=yes
92596fi
92597 else
92598    pkg_failed=untried
92599fi
92600if test -n "$LUA_LIBS"; then
92601    pkg_cv_LUA_LIBS="$LUA_LIBS"
92602 elif test -n "$PKG_CONFIG"; then
92603    if test -n "$PKG_CONFIG" && \
92604    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
92605  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
92606  ac_status=$?
92607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92608  test $ac_status = 0; }; then
92609  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
92610		      test "x$?" != "x0" && pkg_failed=yes
92611else
92612  pkg_failed=yes
92613fi
92614 else
92615    pkg_failed=untried
92616fi
92617
92618
92619
92620if test $pkg_failed = yes; then
92621   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92622$as_echo "no" >&6; }
92623
92624if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
92625        _pkg_short_errors_supported=yes
92626else
92627        _pkg_short_errors_supported=no
92628fi
92629        if test $_pkg_short_errors_supported = yes; then
92630	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
92631        else
92632	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
92633        fi
92634	# Put the nasty error message in config.log where it belongs
92635	echo "$LUA_PKG_ERRORS" >&5
92636
92637
92638
92639pkg_failed=no
92640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
92641$as_echo_n "checking for LUA... " >&6; }
92642
92643if test -n "$LUA_CFLAGS"; then
92644    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
92645 elif test -n "$PKG_CONFIG"; then
92646    if test -n "$PKG_CONFIG" && \
92647    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
92648  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
92649  ac_status=$?
92650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92651  test $ac_status = 0; }; then
92652  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
92653		      test "x$?" != "x0" && pkg_failed=yes
92654else
92655  pkg_failed=yes
92656fi
92657 else
92658    pkg_failed=untried
92659fi
92660if test -n "$LUA_LIBS"; then
92661    pkg_cv_LUA_LIBS="$LUA_LIBS"
92662 elif test -n "$PKG_CONFIG"; then
92663    if test -n "$PKG_CONFIG" && \
92664    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
92665  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
92666  ac_status=$?
92667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92668  test $ac_status = 0; }; then
92669  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
92670		      test "x$?" != "x0" && pkg_failed=yes
92671else
92672  pkg_failed=yes
92673fi
92674 else
92675    pkg_failed=untried
92676fi
92677
92678
92679
92680if test $pkg_failed = yes; then
92681   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92682$as_echo "no" >&6; }
92683
92684if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
92685        _pkg_short_errors_supported=yes
92686else
92687        _pkg_short_errors_supported=no
92688fi
92689        if test $_pkg_short_errors_supported = yes; then
92690	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
92691        else
92692	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
92693        fi
92694	# Put the nasty error message in config.log where it belongs
92695	echo "$LUA_PKG_ERRORS" >&5
92696
92697	with_liblua="no (pkg-config cannot find liblua)"
92698
92699elif test $pkg_failed = untried; then
92700     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92701$as_echo "no" >&6; }
92702	with_liblua="no (pkg-config cannot find liblua)"
92703
92704else
92705	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
92706	LUA_LIBS=$pkg_cv_LUA_LIBS
92707        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
92708$as_echo "yes" >&6; }
92709	with_liblua="yes"
92710fi
92711
92712
92713elif test $pkg_failed = untried; then
92714     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92715$as_echo "no" >&6; }
92716
92717
92718pkg_failed=no
92719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
92720$as_echo_n "checking for LUA... " >&6; }
92721
92722if test -n "$LUA_CFLAGS"; then
92723    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
92724 elif test -n "$PKG_CONFIG"; then
92725    if test -n "$PKG_CONFIG" && \
92726    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
92727  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
92728  ac_status=$?
92729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92730  test $ac_status = 0; }; then
92731  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
92732		      test "x$?" != "x0" && pkg_failed=yes
92733else
92734  pkg_failed=yes
92735fi
92736 else
92737    pkg_failed=untried
92738fi
92739if test -n "$LUA_LIBS"; then
92740    pkg_cv_LUA_LIBS="$LUA_LIBS"
92741 elif test -n "$PKG_CONFIG"; then
92742    if test -n "$PKG_CONFIG" && \
92743    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
92744  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
92745  ac_status=$?
92746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92747  test $ac_status = 0; }; then
92748  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
92749		      test "x$?" != "x0" && pkg_failed=yes
92750else
92751  pkg_failed=yes
92752fi
92753 else
92754    pkg_failed=untried
92755fi
92756
92757
92758
92759if test $pkg_failed = yes; then
92760   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92761$as_echo "no" >&6; }
92762
92763if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
92764        _pkg_short_errors_supported=yes
92765else
92766        _pkg_short_errors_supported=no
92767fi
92768        if test $_pkg_short_errors_supported = yes; then
92769	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
92770        else
92771	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
92772        fi
92773	# Put the nasty error message in config.log where it belongs
92774	echo "$LUA_PKG_ERRORS" >&5
92775
92776	with_liblua="no (pkg-config cannot find liblua)"
92777
92778elif test $pkg_failed = untried; then
92779     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92780$as_echo "no" >&6; }
92781	with_liblua="no (pkg-config cannot find liblua)"
92782
92783else
92784	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
92785	LUA_LIBS=$pkg_cv_LUA_LIBS
92786        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
92787$as_echo "yes" >&6; }
92788	with_liblua="yes"
92789fi
92790
92791
92792else
92793	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
92794	LUA_LIBS=$pkg_cv_LUA_LIBS
92795        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
92796$as_echo "yes" >&6; }
92797	with_liblua="yes"
92798fi
92799
92800
92801elif test $pkg_failed = untried; then
92802     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92803$as_echo "no" >&6; }
92804
92805
92806pkg_failed=no
92807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
92808$as_echo_n "checking for LUA... " >&6; }
92809
92810if test -n "$LUA_CFLAGS"; then
92811    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
92812 elif test -n "$PKG_CONFIG"; then
92813    if test -n "$PKG_CONFIG" && \
92814    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
92815  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
92816  ac_status=$?
92817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92818  test $ac_status = 0; }; then
92819  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
92820		      test "x$?" != "x0" && pkg_failed=yes
92821else
92822  pkg_failed=yes
92823fi
92824 else
92825    pkg_failed=untried
92826fi
92827if test -n "$LUA_LIBS"; then
92828    pkg_cv_LUA_LIBS="$LUA_LIBS"
92829 elif test -n "$PKG_CONFIG"; then
92830    if test -n "$PKG_CONFIG" && \
92831    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
92832  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
92833  ac_status=$?
92834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92835  test $ac_status = 0; }; then
92836  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
92837		      test "x$?" != "x0" && pkg_failed=yes
92838else
92839  pkg_failed=yes
92840fi
92841 else
92842    pkg_failed=untried
92843fi
92844
92845
92846
92847if test $pkg_failed = yes; then
92848   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92849$as_echo "no" >&6; }
92850
92851if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
92852        _pkg_short_errors_supported=yes
92853else
92854        _pkg_short_errors_supported=no
92855fi
92856        if test $_pkg_short_errors_supported = yes; then
92857	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
92858        else
92859	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
92860        fi
92861	# Put the nasty error message in config.log where it belongs
92862	echo "$LUA_PKG_ERRORS" >&5
92863
92864
92865
92866pkg_failed=no
92867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
92868$as_echo_n "checking for LUA... " >&6; }
92869
92870if test -n "$LUA_CFLAGS"; then
92871    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
92872 elif test -n "$PKG_CONFIG"; then
92873    if test -n "$PKG_CONFIG" && \
92874    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
92875  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
92876  ac_status=$?
92877  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92878  test $ac_status = 0; }; then
92879  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
92880		      test "x$?" != "x0" && pkg_failed=yes
92881else
92882  pkg_failed=yes
92883fi
92884 else
92885    pkg_failed=untried
92886fi
92887if test -n "$LUA_LIBS"; then
92888    pkg_cv_LUA_LIBS="$LUA_LIBS"
92889 elif test -n "$PKG_CONFIG"; then
92890    if test -n "$PKG_CONFIG" && \
92891    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
92892  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
92893  ac_status=$?
92894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92895  test $ac_status = 0; }; then
92896  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
92897		      test "x$?" != "x0" && pkg_failed=yes
92898else
92899  pkg_failed=yes
92900fi
92901 else
92902    pkg_failed=untried
92903fi
92904
92905
92906
92907if test $pkg_failed = yes; then
92908   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92909$as_echo "no" >&6; }
92910
92911if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
92912        _pkg_short_errors_supported=yes
92913else
92914        _pkg_short_errors_supported=no
92915fi
92916        if test $_pkg_short_errors_supported = yes; then
92917	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
92918        else
92919	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
92920        fi
92921	# Put the nasty error message in config.log where it belongs
92922	echo "$LUA_PKG_ERRORS" >&5
92923
92924	with_liblua="no (pkg-config cannot find liblua)"
92925
92926elif test $pkg_failed = untried; then
92927     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92928$as_echo "no" >&6; }
92929	with_liblua="no (pkg-config cannot find liblua)"
92930
92931else
92932	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
92933	LUA_LIBS=$pkg_cv_LUA_LIBS
92934        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
92935$as_echo "yes" >&6; }
92936	with_liblua="yes"
92937fi
92938
92939
92940elif test $pkg_failed = untried; then
92941     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92942$as_echo "no" >&6; }
92943
92944
92945pkg_failed=no
92946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
92947$as_echo_n "checking for LUA... " >&6; }
92948
92949if test -n "$LUA_CFLAGS"; then
92950    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
92951 elif test -n "$PKG_CONFIG"; then
92952    if test -n "$PKG_CONFIG" && \
92953    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
92954  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
92955  ac_status=$?
92956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92957  test $ac_status = 0; }; then
92958  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
92959		      test "x$?" != "x0" && pkg_failed=yes
92960else
92961  pkg_failed=yes
92962fi
92963 else
92964    pkg_failed=untried
92965fi
92966if test -n "$LUA_LIBS"; then
92967    pkg_cv_LUA_LIBS="$LUA_LIBS"
92968 elif test -n "$PKG_CONFIG"; then
92969    if test -n "$PKG_CONFIG" && \
92970    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
92971  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
92972  ac_status=$?
92973  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
92974  test $ac_status = 0; }; then
92975  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
92976		      test "x$?" != "x0" && pkg_failed=yes
92977else
92978  pkg_failed=yes
92979fi
92980 else
92981    pkg_failed=untried
92982fi
92983
92984
92985
92986if test $pkg_failed = yes; then
92987   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
92988$as_echo "no" >&6; }
92989
92990if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
92991        _pkg_short_errors_supported=yes
92992else
92993        _pkg_short_errors_supported=no
92994fi
92995        if test $_pkg_short_errors_supported = yes; then
92996	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
92997        else
92998	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
92999        fi
93000	# Put the nasty error message in config.log where it belongs
93001	echo "$LUA_PKG_ERRORS" >&5
93002
93003	with_liblua="no (pkg-config cannot find liblua)"
93004
93005elif test $pkg_failed = untried; then
93006     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93007$as_echo "no" >&6; }
93008	with_liblua="no (pkg-config cannot find liblua)"
93009
93010else
93011	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
93012	LUA_LIBS=$pkg_cv_LUA_LIBS
93013        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
93014$as_echo "yes" >&6; }
93015	with_liblua="yes"
93016fi
93017
93018
93019else
93020	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
93021	LUA_LIBS=$pkg_cv_LUA_LIBS
93022        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
93023$as_echo "yes" >&6; }
93024	with_liblua="yes"
93025fi
93026
93027
93028else
93029	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
93030	LUA_LIBS=$pkg_cv_LUA_LIBS
93031        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
93032$as_echo "yes" >&6; }
93033	with_liblua="yes"
93034fi
93035
93036
93037elif test $pkg_failed = untried; then
93038     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93039$as_echo "no" >&6; }
93040
93041
93042pkg_failed=no
93043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
93044$as_echo_n "checking for LUA... " >&6; }
93045
93046if test -n "$LUA_CFLAGS"; then
93047    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
93048 elif test -n "$PKG_CONFIG"; then
93049    if test -n "$PKG_CONFIG" && \
93050    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
93051  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
93052  ac_status=$?
93053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93054  test $ac_status = 0; }; then
93055  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
93056		      test "x$?" != "x0" && pkg_failed=yes
93057else
93058  pkg_failed=yes
93059fi
93060 else
93061    pkg_failed=untried
93062fi
93063if test -n "$LUA_LIBS"; then
93064    pkg_cv_LUA_LIBS="$LUA_LIBS"
93065 elif test -n "$PKG_CONFIG"; then
93066    if test -n "$PKG_CONFIG" && \
93067    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
93068  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
93069  ac_status=$?
93070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93071  test $ac_status = 0; }; then
93072  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
93073		      test "x$?" != "x0" && pkg_failed=yes
93074else
93075  pkg_failed=yes
93076fi
93077 else
93078    pkg_failed=untried
93079fi
93080
93081
93082
93083if test $pkg_failed = yes; then
93084   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93085$as_echo "no" >&6; }
93086
93087if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
93088        _pkg_short_errors_supported=yes
93089else
93090        _pkg_short_errors_supported=no
93091fi
93092        if test $_pkg_short_errors_supported = yes; then
93093	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
93094        else
93095	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
93096        fi
93097	# Put the nasty error message in config.log where it belongs
93098	echo "$LUA_PKG_ERRORS" >&5
93099
93100
93101
93102pkg_failed=no
93103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
93104$as_echo_n "checking for LUA... " >&6; }
93105
93106if test -n "$LUA_CFLAGS"; then
93107    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
93108 elif test -n "$PKG_CONFIG"; then
93109    if test -n "$PKG_CONFIG" && \
93110    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
93111  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
93112  ac_status=$?
93113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93114  test $ac_status = 0; }; then
93115  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
93116		      test "x$?" != "x0" && pkg_failed=yes
93117else
93118  pkg_failed=yes
93119fi
93120 else
93121    pkg_failed=untried
93122fi
93123if test -n "$LUA_LIBS"; then
93124    pkg_cv_LUA_LIBS="$LUA_LIBS"
93125 elif test -n "$PKG_CONFIG"; then
93126    if test -n "$PKG_CONFIG" && \
93127    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
93128  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
93129  ac_status=$?
93130  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93131  test $ac_status = 0; }; then
93132  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
93133		      test "x$?" != "x0" && pkg_failed=yes
93134else
93135  pkg_failed=yes
93136fi
93137 else
93138    pkg_failed=untried
93139fi
93140
93141
93142
93143if test $pkg_failed = yes; then
93144   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93145$as_echo "no" >&6; }
93146
93147if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
93148        _pkg_short_errors_supported=yes
93149else
93150        _pkg_short_errors_supported=no
93151fi
93152        if test $_pkg_short_errors_supported = yes; then
93153	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
93154        else
93155	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
93156        fi
93157	# Put the nasty error message in config.log where it belongs
93158	echo "$LUA_PKG_ERRORS" >&5
93159
93160
93161
93162pkg_failed=no
93163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
93164$as_echo_n "checking for LUA... " >&6; }
93165
93166if test -n "$LUA_CFLAGS"; then
93167    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
93168 elif test -n "$PKG_CONFIG"; then
93169    if test -n "$PKG_CONFIG" && \
93170    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
93171  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
93172  ac_status=$?
93173  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93174  test $ac_status = 0; }; then
93175  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
93176		      test "x$?" != "x0" && pkg_failed=yes
93177else
93178  pkg_failed=yes
93179fi
93180 else
93181    pkg_failed=untried
93182fi
93183if test -n "$LUA_LIBS"; then
93184    pkg_cv_LUA_LIBS="$LUA_LIBS"
93185 elif test -n "$PKG_CONFIG"; then
93186    if test -n "$PKG_CONFIG" && \
93187    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
93188  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
93189  ac_status=$?
93190  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93191  test $ac_status = 0; }; then
93192  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
93193		      test "x$?" != "x0" && pkg_failed=yes
93194else
93195  pkg_failed=yes
93196fi
93197 else
93198    pkg_failed=untried
93199fi
93200
93201
93202
93203if test $pkg_failed = yes; then
93204   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93205$as_echo "no" >&6; }
93206
93207if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
93208        _pkg_short_errors_supported=yes
93209else
93210        _pkg_short_errors_supported=no
93211fi
93212        if test $_pkg_short_errors_supported = yes; then
93213	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
93214        else
93215	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
93216        fi
93217	# Put the nasty error message in config.log where it belongs
93218	echo "$LUA_PKG_ERRORS" >&5
93219
93220	with_liblua="no (pkg-config cannot find liblua)"
93221
93222elif test $pkg_failed = untried; then
93223     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93224$as_echo "no" >&6; }
93225	with_liblua="no (pkg-config cannot find liblua)"
93226
93227else
93228	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
93229	LUA_LIBS=$pkg_cv_LUA_LIBS
93230        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
93231$as_echo "yes" >&6; }
93232	with_liblua="yes"
93233fi
93234
93235
93236elif test $pkg_failed = untried; then
93237     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93238$as_echo "no" >&6; }
93239
93240
93241pkg_failed=no
93242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
93243$as_echo_n "checking for LUA... " >&6; }
93244
93245if test -n "$LUA_CFLAGS"; then
93246    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
93247 elif test -n "$PKG_CONFIG"; then
93248    if test -n "$PKG_CONFIG" && \
93249    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
93250  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
93251  ac_status=$?
93252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93253  test $ac_status = 0; }; then
93254  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
93255		      test "x$?" != "x0" && pkg_failed=yes
93256else
93257  pkg_failed=yes
93258fi
93259 else
93260    pkg_failed=untried
93261fi
93262if test -n "$LUA_LIBS"; then
93263    pkg_cv_LUA_LIBS="$LUA_LIBS"
93264 elif test -n "$PKG_CONFIG"; then
93265    if test -n "$PKG_CONFIG" && \
93266    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
93267  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
93268  ac_status=$?
93269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93270  test $ac_status = 0; }; then
93271  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
93272		      test "x$?" != "x0" && pkg_failed=yes
93273else
93274  pkg_failed=yes
93275fi
93276 else
93277    pkg_failed=untried
93278fi
93279
93280
93281
93282if test $pkg_failed = yes; then
93283   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93284$as_echo "no" >&6; }
93285
93286if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
93287        _pkg_short_errors_supported=yes
93288else
93289        _pkg_short_errors_supported=no
93290fi
93291        if test $_pkg_short_errors_supported = yes; then
93292	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
93293        else
93294	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
93295        fi
93296	# Put the nasty error message in config.log where it belongs
93297	echo "$LUA_PKG_ERRORS" >&5
93298
93299	with_liblua="no (pkg-config cannot find liblua)"
93300
93301elif test $pkg_failed = untried; then
93302     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93303$as_echo "no" >&6; }
93304	with_liblua="no (pkg-config cannot find liblua)"
93305
93306else
93307	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
93308	LUA_LIBS=$pkg_cv_LUA_LIBS
93309        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
93310$as_echo "yes" >&6; }
93311	with_liblua="yes"
93312fi
93313
93314
93315else
93316	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
93317	LUA_LIBS=$pkg_cv_LUA_LIBS
93318        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
93319$as_echo "yes" >&6; }
93320	with_liblua="yes"
93321fi
93322
93323
93324elif test $pkg_failed = untried; then
93325     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93326$as_echo "no" >&6; }
93327
93328
93329pkg_failed=no
93330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
93331$as_echo_n "checking for LUA... " >&6; }
93332
93333if test -n "$LUA_CFLAGS"; then
93334    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
93335 elif test -n "$PKG_CONFIG"; then
93336    if test -n "$PKG_CONFIG" && \
93337    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
93338  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
93339  ac_status=$?
93340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93341  test $ac_status = 0; }; then
93342  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
93343		      test "x$?" != "x0" && pkg_failed=yes
93344else
93345  pkg_failed=yes
93346fi
93347 else
93348    pkg_failed=untried
93349fi
93350if test -n "$LUA_LIBS"; then
93351    pkg_cv_LUA_LIBS="$LUA_LIBS"
93352 elif test -n "$PKG_CONFIG"; then
93353    if test -n "$PKG_CONFIG" && \
93354    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
93355  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
93356  ac_status=$?
93357  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93358  test $ac_status = 0; }; then
93359  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
93360		      test "x$?" != "x0" && pkg_failed=yes
93361else
93362  pkg_failed=yes
93363fi
93364 else
93365    pkg_failed=untried
93366fi
93367
93368
93369
93370if test $pkg_failed = yes; then
93371   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93372$as_echo "no" >&6; }
93373
93374if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
93375        _pkg_short_errors_supported=yes
93376else
93377        _pkg_short_errors_supported=no
93378fi
93379        if test $_pkg_short_errors_supported = yes; then
93380	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
93381        else
93382	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
93383        fi
93384	# Put the nasty error message in config.log where it belongs
93385	echo "$LUA_PKG_ERRORS" >&5
93386
93387
93388
93389pkg_failed=no
93390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
93391$as_echo_n "checking for LUA... " >&6; }
93392
93393if test -n "$LUA_CFLAGS"; then
93394    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
93395 elif test -n "$PKG_CONFIG"; then
93396    if test -n "$PKG_CONFIG" && \
93397    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
93398  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
93399  ac_status=$?
93400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93401  test $ac_status = 0; }; then
93402  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
93403		      test "x$?" != "x0" && pkg_failed=yes
93404else
93405  pkg_failed=yes
93406fi
93407 else
93408    pkg_failed=untried
93409fi
93410if test -n "$LUA_LIBS"; then
93411    pkg_cv_LUA_LIBS="$LUA_LIBS"
93412 elif test -n "$PKG_CONFIG"; then
93413    if test -n "$PKG_CONFIG" && \
93414    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
93415  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
93416  ac_status=$?
93417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93418  test $ac_status = 0; }; then
93419  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
93420		      test "x$?" != "x0" && pkg_failed=yes
93421else
93422  pkg_failed=yes
93423fi
93424 else
93425    pkg_failed=untried
93426fi
93427
93428
93429
93430if test $pkg_failed = yes; then
93431   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93432$as_echo "no" >&6; }
93433
93434if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
93435        _pkg_short_errors_supported=yes
93436else
93437        _pkg_short_errors_supported=no
93438fi
93439        if test $_pkg_short_errors_supported = yes; then
93440	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
93441        else
93442	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
93443        fi
93444	# Put the nasty error message in config.log where it belongs
93445	echo "$LUA_PKG_ERRORS" >&5
93446
93447	with_liblua="no (pkg-config cannot find liblua)"
93448
93449elif test $pkg_failed = untried; then
93450     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93451$as_echo "no" >&6; }
93452	with_liblua="no (pkg-config cannot find liblua)"
93453
93454else
93455	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
93456	LUA_LIBS=$pkg_cv_LUA_LIBS
93457        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
93458$as_echo "yes" >&6; }
93459	with_liblua="yes"
93460fi
93461
93462
93463elif test $pkg_failed = untried; then
93464     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93465$as_echo "no" >&6; }
93466
93467
93468pkg_failed=no
93469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
93470$as_echo_n "checking for LUA... " >&6; }
93471
93472if test -n "$LUA_CFLAGS"; then
93473    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
93474 elif test -n "$PKG_CONFIG"; then
93475    if test -n "$PKG_CONFIG" && \
93476    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
93477  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
93478  ac_status=$?
93479  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93480  test $ac_status = 0; }; then
93481  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
93482		      test "x$?" != "x0" && pkg_failed=yes
93483else
93484  pkg_failed=yes
93485fi
93486 else
93487    pkg_failed=untried
93488fi
93489if test -n "$LUA_LIBS"; then
93490    pkg_cv_LUA_LIBS="$LUA_LIBS"
93491 elif test -n "$PKG_CONFIG"; then
93492    if test -n "$PKG_CONFIG" && \
93493    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
93494  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
93495  ac_status=$?
93496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93497  test $ac_status = 0; }; then
93498  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
93499		      test "x$?" != "x0" && pkg_failed=yes
93500else
93501  pkg_failed=yes
93502fi
93503 else
93504    pkg_failed=untried
93505fi
93506
93507
93508
93509if test $pkg_failed = yes; then
93510   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93511$as_echo "no" >&6; }
93512
93513if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
93514        _pkg_short_errors_supported=yes
93515else
93516        _pkg_short_errors_supported=no
93517fi
93518        if test $_pkg_short_errors_supported = yes; then
93519	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
93520        else
93521	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
93522        fi
93523	# Put the nasty error message in config.log where it belongs
93524	echo "$LUA_PKG_ERRORS" >&5
93525
93526	with_liblua="no (pkg-config cannot find liblua)"
93527
93528elif test $pkg_failed = untried; then
93529     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93530$as_echo "no" >&6; }
93531	with_liblua="no (pkg-config cannot find liblua)"
93532
93533else
93534	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
93535	LUA_LIBS=$pkg_cv_LUA_LIBS
93536        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
93537$as_echo "yes" >&6; }
93538	with_liblua="yes"
93539fi
93540
93541
93542else
93543	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
93544	LUA_LIBS=$pkg_cv_LUA_LIBS
93545        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
93546$as_echo "yes" >&6; }
93547	with_liblua="yes"
93548fi
93549
93550
93551else
93552	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
93553	LUA_LIBS=$pkg_cv_LUA_LIBS
93554        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
93555$as_echo "yes" >&6; }
93556	with_liblua="yes"
93557fi
93558
93559
93560else
93561	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
93562	LUA_LIBS=$pkg_cv_LUA_LIBS
93563        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
93564$as_echo "yes" >&6; }
93565	with_liblua="yes"
93566fi
93567
93568
93569elif test $pkg_failed = untried; then
93570     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93571$as_echo "no" >&6; }
93572
93573
93574pkg_failed=no
93575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
93576$as_echo_n "checking for LUA... " >&6; }
93577
93578if test -n "$LUA_CFLAGS"; then
93579    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
93580 elif test -n "$PKG_CONFIG"; then
93581    if test -n "$PKG_CONFIG" && \
93582    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
93583  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
93584  ac_status=$?
93585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93586  test $ac_status = 0; }; then
93587  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
93588		      test "x$?" != "x0" && pkg_failed=yes
93589else
93590  pkg_failed=yes
93591fi
93592 else
93593    pkg_failed=untried
93594fi
93595if test -n "$LUA_LIBS"; then
93596    pkg_cv_LUA_LIBS="$LUA_LIBS"
93597 elif test -n "$PKG_CONFIG"; then
93598    if test -n "$PKG_CONFIG" && \
93599    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
93600  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
93601  ac_status=$?
93602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93603  test $ac_status = 0; }; then
93604  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
93605		      test "x$?" != "x0" && pkg_failed=yes
93606else
93607  pkg_failed=yes
93608fi
93609 else
93610    pkg_failed=untried
93611fi
93612
93613
93614
93615if test $pkg_failed = yes; then
93616   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93617$as_echo "no" >&6; }
93618
93619if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
93620        _pkg_short_errors_supported=yes
93621else
93622        _pkg_short_errors_supported=no
93623fi
93624        if test $_pkg_short_errors_supported = yes; then
93625	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
93626        else
93627	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
93628        fi
93629	# Put the nasty error message in config.log where it belongs
93630	echo "$LUA_PKG_ERRORS" >&5
93631
93632
93633
93634pkg_failed=no
93635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
93636$as_echo_n "checking for LUA... " >&6; }
93637
93638if test -n "$LUA_CFLAGS"; then
93639    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
93640 elif test -n "$PKG_CONFIG"; then
93641    if test -n "$PKG_CONFIG" && \
93642    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
93643  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
93644  ac_status=$?
93645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93646  test $ac_status = 0; }; then
93647  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
93648		      test "x$?" != "x0" && pkg_failed=yes
93649else
93650  pkg_failed=yes
93651fi
93652 else
93653    pkg_failed=untried
93654fi
93655if test -n "$LUA_LIBS"; then
93656    pkg_cv_LUA_LIBS="$LUA_LIBS"
93657 elif test -n "$PKG_CONFIG"; then
93658    if test -n "$PKG_CONFIG" && \
93659    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
93660  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
93661  ac_status=$?
93662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93663  test $ac_status = 0; }; then
93664  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
93665		      test "x$?" != "x0" && pkg_failed=yes
93666else
93667  pkg_failed=yes
93668fi
93669 else
93670    pkg_failed=untried
93671fi
93672
93673
93674
93675if test $pkg_failed = yes; then
93676   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93677$as_echo "no" >&6; }
93678
93679if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
93680        _pkg_short_errors_supported=yes
93681else
93682        _pkg_short_errors_supported=no
93683fi
93684        if test $_pkg_short_errors_supported = yes; then
93685	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
93686        else
93687	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
93688        fi
93689	# Put the nasty error message in config.log where it belongs
93690	echo "$LUA_PKG_ERRORS" >&5
93691
93692
93693
93694pkg_failed=no
93695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
93696$as_echo_n "checking for LUA... " >&6; }
93697
93698if test -n "$LUA_CFLAGS"; then
93699    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
93700 elif test -n "$PKG_CONFIG"; then
93701    if test -n "$PKG_CONFIG" && \
93702    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
93703  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
93704  ac_status=$?
93705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93706  test $ac_status = 0; }; then
93707  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
93708		      test "x$?" != "x0" && pkg_failed=yes
93709else
93710  pkg_failed=yes
93711fi
93712 else
93713    pkg_failed=untried
93714fi
93715if test -n "$LUA_LIBS"; then
93716    pkg_cv_LUA_LIBS="$LUA_LIBS"
93717 elif test -n "$PKG_CONFIG"; then
93718    if test -n "$PKG_CONFIG" && \
93719    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
93720  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
93721  ac_status=$?
93722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93723  test $ac_status = 0; }; then
93724  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
93725		      test "x$?" != "x0" && pkg_failed=yes
93726else
93727  pkg_failed=yes
93728fi
93729 else
93730    pkg_failed=untried
93731fi
93732
93733
93734
93735if test $pkg_failed = yes; then
93736   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93737$as_echo "no" >&6; }
93738
93739if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
93740        _pkg_short_errors_supported=yes
93741else
93742        _pkg_short_errors_supported=no
93743fi
93744        if test $_pkg_short_errors_supported = yes; then
93745	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
93746        else
93747	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
93748        fi
93749	# Put the nasty error message in config.log where it belongs
93750	echo "$LUA_PKG_ERRORS" >&5
93751
93752
93753
93754pkg_failed=no
93755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
93756$as_echo_n "checking for LUA... " >&6; }
93757
93758if test -n "$LUA_CFLAGS"; then
93759    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
93760 elif test -n "$PKG_CONFIG"; then
93761    if test -n "$PKG_CONFIG" && \
93762    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
93763  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
93764  ac_status=$?
93765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93766  test $ac_status = 0; }; then
93767  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
93768		      test "x$?" != "x0" && pkg_failed=yes
93769else
93770  pkg_failed=yes
93771fi
93772 else
93773    pkg_failed=untried
93774fi
93775if test -n "$LUA_LIBS"; then
93776    pkg_cv_LUA_LIBS="$LUA_LIBS"
93777 elif test -n "$PKG_CONFIG"; then
93778    if test -n "$PKG_CONFIG" && \
93779    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
93780  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
93781  ac_status=$?
93782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93783  test $ac_status = 0; }; then
93784  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
93785		      test "x$?" != "x0" && pkg_failed=yes
93786else
93787  pkg_failed=yes
93788fi
93789 else
93790    pkg_failed=untried
93791fi
93792
93793
93794
93795if test $pkg_failed = yes; then
93796   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93797$as_echo "no" >&6; }
93798
93799if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
93800        _pkg_short_errors_supported=yes
93801else
93802        _pkg_short_errors_supported=no
93803fi
93804        if test $_pkg_short_errors_supported = yes; then
93805	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
93806        else
93807	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
93808        fi
93809	# Put the nasty error message in config.log where it belongs
93810	echo "$LUA_PKG_ERRORS" >&5
93811
93812	with_liblua="no (pkg-config cannot find liblua)"
93813
93814elif test $pkg_failed = untried; then
93815     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93816$as_echo "no" >&6; }
93817	with_liblua="no (pkg-config cannot find liblua)"
93818
93819else
93820	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
93821	LUA_LIBS=$pkg_cv_LUA_LIBS
93822        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
93823$as_echo "yes" >&6; }
93824	with_liblua="yes"
93825fi
93826
93827
93828elif test $pkg_failed = untried; then
93829     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93830$as_echo "no" >&6; }
93831
93832
93833pkg_failed=no
93834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
93835$as_echo_n "checking for LUA... " >&6; }
93836
93837if test -n "$LUA_CFLAGS"; then
93838    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
93839 elif test -n "$PKG_CONFIG"; then
93840    if test -n "$PKG_CONFIG" && \
93841    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
93842  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
93843  ac_status=$?
93844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93845  test $ac_status = 0; }; then
93846  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
93847		      test "x$?" != "x0" && pkg_failed=yes
93848else
93849  pkg_failed=yes
93850fi
93851 else
93852    pkg_failed=untried
93853fi
93854if test -n "$LUA_LIBS"; then
93855    pkg_cv_LUA_LIBS="$LUA_LIBS"
93856 elif test -n "$PKG_CONFIG"; then
93857    if test -n "$PKG_CONFIG" && \
93858    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
93859  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
93860  ac_status=$?
93861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93862  test $ac_status = 0; }; then
93863  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
93864		      test "x$?" != "x0" && pkg_failed=yes
93865else
93866  pkg_failed=yes
93867fi
93868 else
93869    pkg_failed=untried
93870fi
93871
93872
93873
93874if test $pkg_failed = yes; then
93875   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93876$as_echo "no" >&6; }
93877
93878if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
93879        _pkg_short_errors_supported=yes
93880else
93881        _pkg_short_errors_supported=no
93882fi
93883        if test $_pkg_short_errors_supported = yes; then
93884	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
93885        else
93886	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
93887        fi
93888	# Put the nasty error message in config.log where it belongs
93889	echo "$LUA_PKG_ERRORS" >&5
93890
93891	with_liblua="no (pkg-config cannot find liblua)"
93892
93893elif test $pkg_failed = untried; then
93894     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93895$as_echo "no" >&6; }
93896	with_liblua="no (pkg-config cannot find liblua)"
93897
93898else
93899	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
93900	LUA_LIBS=$pkg_cv_LUA_LIBS
93901        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
93902$as_echo "yes" >&6; }
93903	with_liblua="yes"
93904fi
93905
93906
93907else
93908	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
93909	LUA_LIBS=$pkg_cv_LUA_LIBS
93910        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
93911$as_echo "yes" >&6; }
93912	with_liblua="yes"
93913fi
93914
93915
93916elif test $pkg_failed = untried; then
93917     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93918$as_echo "no" >&6; }
93919
93920
93921pkg_failed=no
93922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
93923$as_echo_n "checking for LUA... " >&6; }
93924
93925if test -n "$LUA_CFLAGS"; then
93926    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
93927 elif test -n "$PKG_CONFIG"; then
93928    if test -n "$PKG_CONFIG" && \
93929    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
93930  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
93931  ac_status=$?
93932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93933  test $ac_status = 0; }; then
93934  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
93935		      test "x$?" != "x0" && pkg_failed=yes
93936else
93937  pkg_failed=yes
93938fi
93939 else
93940    pkg_failed=untried
93941fi
93942if test -n "$LUA_LIBS"; then
93943    pkg_cv_LUA_LIBS="$LUA_LIBS"
93944 elif test -n "$PKG_CONFIG"; then
93945    if test -n "$PKG_CONFIG" && \
93946    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
93947  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
93948  ac_status=$?
93949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93950  test $ac_status = 0; }; then
93951  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
93952		      test "x$?" != "x0" && pkg_failed=yes
93953else
93954  pkg_failed=yes
93955fi
93956 else
93957    pkg_failed=untried
93958fi
93959
93960
93961
93962if test $pkg_failed = yes; then
93963   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93964$as_echo "no" >&6; }
93965
93966if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
93967        _pkg_short_errors_supported=yes
93968else
93969        _pkg_short_errors_supported=no
93970fi
93971        if test $_pkg_short_errors_supported = yes; then
93972	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
93973        else
93974	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
93975        fi
93976	# Put the nasty error message in config.log where it belongs
93977	echo "$LUA_PKG_ERRORS" >&5
93978
93979
93980
93981pkg_failed=no
93982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
93983$as_echo_n "checking for LUA... " >&6; }
93984
93985if test -n "$LUA_CFLAGS"; then
93986    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
93987 elif test -n "$PKG_CONFIG"; then
93988    if test -n "$PKG_CONFIG" && \
93989    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
93990  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
93991  ac_status=$?
93992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
93993  test $ac_status = 0; }; then
93994  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
93995		      test "x$?" != "x0" && pkg_failed=yes
93996else
93997  pkg_failed=yes
93998fi
93999 else
94000    pkg_failed=untried
94001fi
94002if test -n "$LUA_LIBS"; then
94003    pkg_cv_LUA_LIBS="$LUA_LIBS"
94004 elif test -n "$PKG_CONFIG"; then
94005    if test -n "$PKG_CONFIG" && \
94006    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
94007  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
94008  ac_status=$?
94009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94010  test $ac_status = 0; }; then
94011  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
94012		      test "x$?" != "x0" && pkg_failed=yes
94013else
94014  pkg_failed=yes
94015fi
94016 else
94017    pkg_failed=untried
94018fi
94019
94020
94021
94022if test $pkg_failed = yes; then
94023   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94024$as_echo "no" >&6; }
94025
94026if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
94027        _pkg_short_errors_supported=yes
94028else
94029        _pkg_short_errors_supported=no
94030fi
94031        if test $_pkg_short_errors_supported = yes; then
94032	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
94033        else
94034	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
94035        fi
94036	# Put the nasty error message in config.log where it belongs
94037	echo "$LUA_PKG_ERRORS" >&5
94038
94039	with_liblua="no (pkg-config cannot find liblua)"
94040
94041elif test $pkg_failed = untried; then
94042     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94043$as_echo "no" >&6; }
94044	with_liblua="no (pkg-config cannot find liblua)"
94045
94046else
94047	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
94048	LUA_LIBS=$pkg_cv_LUA_LIBS
94049        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
94050$as_echo "yes" >&6; }
94051	with_liblua="yes"
94052fi
94053
94054
94055elif test $pkg_failed = untried; then
94056     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94057$as_echo "no" >&6; }
94058
94059
94060pkg_failed=no
94061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
94062$as_echo_n "checking for LUA... " >&6; }
94063
94064if test -n "$LUA_CFLAGS"; then
94065    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
94066 elif test -n "$PKG_CONFIG"; then
94067    if test -n "$PKG_CONFIG" && \
94068    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
94069  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
94070  ac_status=$?
94071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94072  test $ac_status = 0; }; then
94073  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
94074		      test "x$?" != "x0" && pkg_failed=yes
94075else
94076  pkg_failed=yes
94077fi
94078 else
94079    pkg_failed=untried
94080fi
94081if test -n "$LUA_LIBS"; then
94082    pkg_cv_LUA_LIBS="$LUA_LIBS"
94083 elif test -n "$PKG_CONFIG"; then
94084    if test -n "$PKG_CONFIG" && \
94085    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
94086  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
94087  ac_status=$?
94088  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94089  test $ac_status = 0; }; then
94090  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
94091		      test "x$?" != "x0" && pkg_failed=yes
94092else
94093  pkg_failed=yes
94094fi
94095 else
94096    pkg_failed=untried
94097fi
94098
94099
94100
94101if test $pkg_failed = yes; then
94102   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94103$as_echo "no" >&6; }
94104
94105if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
94106        _pkg_short_errors_supported=yes
94107else
94108        _pkg_short_errors_supported=no
94109fi
94110        if test $_pkg_short_errors_supported = yes; then
94111	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
94112        else
94113	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
94114        fi
94115	# Put the nasty error message in config.log where it belongs
94116	echo "$LUA_PKG_ERRORS" >&5
94117
94118	with_liblua="no (pkg-config cannot find liblua)"
94119
94120elif test $pkg_failed = untried; then
94121     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94122$as_echo "no" >&6; }
94123	with_liblua="no (pkg-config cannot find liblua)"
94124
94125else
94126	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
94127	LUA_LIBS=$pkg_cv_LUA_LIBS
94128        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
94129$as_echo "yes" >&6; }
94130	with_liblua="yes"
94131fi
94132
94133
94134else
94135	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
94136	LUA_LIBS=$pkg_cv_LUA_LIBS
94137        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
94138$as_echo "yes" >&6; }
94139	with_liblua="yes"
94140fi
94141
94142
94143else
94144	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
94145	LUA_LIBS=$pkg_cv_LUA_LIBS
94146        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
94147$as_echo "yes" >&6; }
94148	with_liblua="yes"
94149fi
94150
94151
94152elif test $pkg_failed = untried; then
94153     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94154$as_echo "no" >&6; }
94155
94156
94157pkg_failed=no
94158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
94159$as_echo_n "checking for LUA... " >&6; }
94160
94161if test -n "$LUA_CFLAGS"; then
94162    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
94163 elif test -n "$PKG_CONFIG"; then
94164    if test -n "$PKG_CONFIG" && \
94165    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
94166  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
94167  ac_status=$?
94168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94169  test $ac_status = 0; }; then
94170  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
94171		      test "x$?" != "x0" && pkg_failed=yes
94172else
94173  pkg_failed=yes
94174fi
94175 else
94176    pkg_failed=untried
94177fi
94178if test -n "$LUA_LIBS"; then
94179    pkg_cv_LUA_LIBS="$LUA_LIBS"
94180 elif test -n "$PKG_CONFIG"; then
94181    if test -n "$PKG_CONFIG" && \
94182    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
94183  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
94184  ac_status=$?
94185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94186  test $ac_status = 0; }; then
94187  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
94188		      test "x$?" != "x0" && pkg_failed=yes
94189else
94190  pkg_failed=yes
94191fi
94192 else
94193    pkg_failed=untried
94194fi
94195
94196
94197
94198if test $pkg_failed = yes; then
94199   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94200$as_echo "no" >&6; }
94201
94202if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
94203        _pkg_short_errors_supported=yes
94204else
94205        _pkg_short_errors_supported=no
94206fi
94207        if test $_pkg_short_errors_supported = yes; then
94208	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
94209        else
94210	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
94211        fi
94212	# Put the nasty error message in config.log where it belongs
94213	echo "$LUA_PKG_ERRORS" >&5
94214
94215
94216
94217pkg_failed=no
94218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
94219$as_echo_n "checking for LUA... " >&6; }
94220
94221if test -n "$LUA_CFLAGS"; then
94222    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
94223 elif test -n "$PKG_CONFIG"; then
94224    if test -n "$PKG_CONFIG" && \
94225    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
94226  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
94227  ac_status=$?
94228  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94229  test $ac_status = 0; }; then
94230  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
94231		      test "x$?" != "x0" && pkg_failed=yes
94232else
94233  pkg_failed=yes
94234fi
94235 else
94236    pkg_failed=untried
94237fi
94238if test -n "$LUA_LIBS"; then
94239    pkg_cv_LUA_LIBS="$LUA_LIBS"
94240 elif test -n "$PKG_CONFIG"; then
94241    if test -n "$PKG_CONFIG" && \
94242    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
94243  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
94244  ac_status=$?
94245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94246  test $ac_status = 0; }; then
94247  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
94248		      test "x$?" != "x0" && pkg_failed=yes
94249else
94250  pkg_failed=yes
94251fi
94252 else
94253    pkg_failed=untried
94254fi
94255
94256
94257
94258if test $pkg_failed = yes; then
94259   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94260$as_echo "no" >&6; }
94261
94262if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
94263        _pkg_short_errors_supported=yes
94264else
94265        _pkg_short_errors_supported=no
94266fi
94267        if test $_pkg_short_errors_supported = yes; then
94268	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
94269        else
94270	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
94271        fi
94272	# Put the nasty error message in config.log where it belongs
94273	echo "$LUA_PKG_ERRORS" >&5
94274
94275
94276
94277pkg_failed=no
94278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
94279$as_echo_n "checking for LUA... " >&6; }
94280
94281if test -n "$LUA_CFLAGS"; then
94282    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
94283 elif test -n "$PKG_CONFIG"; then
94284    if test -n "$PKG_CONFIG" && \
94285    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
94286  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
94287  ac_status=$?
94288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94289  test $ac_status = 0; }; then
94290  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
94291		      test "x$?" != "x0" && pkg_failed=yes
94292else
94293  pkg_failed=yes
94294fi
94295 else
94296    pkg_failed=untried
94297fi
94298if test -n "$LUA_LIBS"; then
94299    pkg_cv_LUA_LIBS="$LUA_LIBS"
94300 elif test -n "$PKG_CONFIG"; then
94301    if test -n "$PKG_CONFIG" && \
94302    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
94303  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
94304  ac_status=$?
94305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94306  test $ac_status = 0; }; then
94307  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
94308		      test "x$?" != "x0" && pkg_failed=yes
94309else
94310  pkg_failed=yes
94311fi
94312 else
94313    pkg_failed=untried
94314fi
94315
94316
94317
94318if test $pkg_failed = yes; then
94319   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94320$as_echo "no" >&6; }
94321
94322if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
94323        _pkg_short_errors_supported=yes
94324else
94325        _pkg_short_errors_supported=no
94326fi
94327        if test $_pkg_short_errors_supported = yes; then
94328	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
94329        else
94330	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
94331        fi
94332	# Put the nasty error message in config.log where it belongs
94333	echo "$LUA_PKG_ERRORS" >&5
94334
94335	with_liblua="no (pkg-config cannot find liblua)"
94336
94337elif test $pkg_failed = untried; then
94338     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94339$as_echo "no" >&6; }
94340	with_liblua="no (pkg-config cannot find liblua)"
94341
94342else
94343	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
94344	LUA_LIBS=$pkg_cv_LUA_LIBS
94345        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
94346$as_echo "yes" >&6; }
94347	with_liblua="yes"
94348fi
94349
94350
94351elif test $pkg_failed = untried; then
94352     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94353$as_echo "no" >&6; }
94354
94355
94356pkg_failed=no
94357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
94358$as_echo_n "checking for LUA... " >&6; }
94359
94360if test -n "$LUA_CFLAGS"; then
94361    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
94362 elif test -n "$PKG_CONFIG"; then
94363    if test -n "$PKG_CONFIG" && \
94364    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
94365  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
94366  ac_status=$?
94367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94368  test $ac_status = 0; }; then
94369  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
94370		      test "x$?" != "x0" && pkg_failed=yes
94371else
94372  pkg_failed=yes
94373fi
94374 else
94375    pkg_failed=untried
94376fi
94377if test -n "$LUA_LIBS"; then
94378    pkg_cv_LUA_LIBS="$LUA_LIBS"
94379 elif test -n "$PKG_CONFIG"; then
94380    if test -n "$PKG_CONFIG" && \
94381    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
94382  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
94383  ac_status=$?
94384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94385  test $ac_status = 0; }; then
94386  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
94387		      test "x$?" != "x0" && pkg_failed=yes
94388else
94389  pkg_failed=yes
94390fi
94391 else
94392    pkg_failed=untried
94393fi
94394
94395
94396
94397if test $pkg_failed = yes; then
94398   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94399$as_echo "no" >&6; }
94400
94401if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
94402        _pkg_short_errors_supported=yes
94403else
94404        _pkg_short_errors_supported=no
94405fi
94406        if test $_pkg_short_errors_supported = yes; then
94407	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
94408        else
94409	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
94410        fi
94411	# Put the nasty error message in config.log where it belongs
94412	echo "$LUA_PKG_ERRORS" >&5
94413
94414	with_liblua="no (pkg-config cannot find liblua)"
94415
94416elif test $pkg_failed = untried; then
94417     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94418$as_echo "no" >&6; }
94419	with_liblua="no (pkg-config cannot find liblua)"
94420
94421else
94422	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
94423	LUA_LIBS=$pkg_cv_LUA_LIBS
94424        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
94425$as_echo "yes" >&6; }
94426	with_liblua="yes"
94427fi
94428
94429
94430else
94431	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
94432	LUA_LIBS=$pkg_cv_LUA_LIBS
94433        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
94434$as_echo "yes" >&6; }
94435	with_liblua="yes"
94436fi
94437
94438
94439elif test $pkg_failed = untried; then
94440     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94441$as_echo "no" >&6; }
94442
94443
94444pkg_failed=no
94445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
94446$as_echo_n "checking for LUA... " >&6; }
94447
94448if test -n "$LUA_CFLAGS"; then
94449    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
94450 elif test -n "$PKG_CONFIG"; then
94451    if test -n "$PKG_CONFIG" && \
94452    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
94453  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
94454  ac_status=$?
94455  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94456  test $ac_status = 0; }; then
94457  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
94458		      test "x$?" != "x0" && pkg_failed=yes
94459else
94460  pkg_failed=yes
94461fi
94462 else
94463    pkg_failed=untried
94464fi
94465if test -n "$LUA_LIBS"; then
94466    pkg_cv_LUA_LIBS="$LUA_LIBS"
94467 elif test -n "$PKG_CONFIG"; then
94468    if test -n "$PKG_CONFIG" && \
94469    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
94470  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
94471  ac_status=$?
94472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94473  test $ac_status = 0; }; then
94474  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
94475		      test "x$?" != "x0" && pkg_failed=yes
94476else
94477  pkg_failed=yes
94478fi
94479 else
94480    pkg_failed=untried
94481fi
94482
94483
94484
94485if test $pkg_failed = yes; then
94486   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94487$as_echo "no" >&6; }
94488
94489if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
94490        _pkg_short_errors_supported=yes
94491else
94492        _pkg_short_errors_supported=no
94493fi
94494        if test $_pkg_short_errors_supported = yes; then
94495	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
94496        else
94497	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
94498        fi
94499	# Put the nasty error message in config.log where it belongs
94500	echo "$LUA_PKG_ERRORS" >&5
94501
94502
94503
94504pkg_failed=no
94505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
94506$as_echo_n "checking for LUA... " >&6; }
94507
94508if test -n "$LUA_CFLAGS"; then
94509    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
94510 elif test -n "$PKG_CONFIG"; then
94511    if test -n "$PKG_CONFIG" && \
94512    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
94513  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
94514  ac_status=$?
94515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94516  test $ac_status = 0; }; then
94517  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
94518		      test "x$?" != "x0" && pkg_failed=yes
94519else
94520  pkg_failed=yes
94521fi
94522 else
94523    pkg_failed=untried
94524fi
94525if test -n "$LUA_LIBS"; then
94526    pkg_cv_LUA_LIBS="$LUA_LIBS"
94527 elif test -n "$PKG_CONFIG"; then
94528    if test -n "$PKG_CONFIG" && \
94529    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
94530  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
94531  ac_status=$?
94532  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94533  test $ac_status = 0; }; then
94534  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
94535		      test "x$?" != "x0" && pkg_failed=yes
94536else
94537  pkg_failed=yes
94538fi
94539 else
94540    pkg_failed=untried
94541fi
94542
94543
94544
94545if test $pkg_failed = yes; then
94546   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94547$as_echo "no" >&6; }
94548
94549if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
94550        _pkg_short_errors_supported=yes
94551else
94552        _pkg_short_errors_supported=no
94553fi
94554        if test $_pkg_short_errors_supported = yes; then
94555	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
94556        else
94557	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
94558        fi
94559	# Put the nasty error message in config.log where it belongs
94560	echo "$LUA_PKG_ERRORS" >&5
94561
94562	with_liblua="no (pkg-config cannot find liblua)"
94563
94564elif test $pkg_failed = untried; then
94565     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94566$as_echo "no" >&6; }
94567	with_liblua="no (pkg-config cannot find liblua)"
94568
94569else
94570	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
94571	LUA_LIBS=$pkg_cv_LUA_LIBS
94572        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
94573$as_echo "yes" >&6; }
94574	with_liblua="yes"
94575fi
94576
94577
94578elif test $pkg_failed = untried; then
94579     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94580$as_echo "no" >&6; }
94581
94582
94583pkg_failed=no
94584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
94585$as_echo_n "checking for LUA... " >&6; }
94586
94587if test -n "$LUA_CFLAGS"; then
94588    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
94589 elif test -n "$PKG_CONFIG"; then
94590    if test -n "$PKG_CONFIG" && \
94591    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
94592  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
94593  ac_status=$?
94594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94595  test $ac_status = 0; }; then
94596  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
94597		      test "x$?" != "x0" && pkg_failed=yes
94598else
94599  pkg_failed=yes
94600fi
94601 else
94602    pkg_failed=untried
94603fi
94604if test -n "$LUA_LIBS"; then
94605    pkg_cv_LUA_LIBS="$LUA_LIBS"
94606 elif test -n "$PKG_CONFIG"; then
94607    if test -n "$PKG_CONFIG" && \
94608    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
94609  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
94610  ac_status=$?
94611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94612  test $ac_status = 0; }; then
94613  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
94614		      test "x$?" != "x0" && pkg_failed=yes
94615else
94616  pkg_failed=yes
94617fi
94618 else
94619    pkg_failed=untried
94620fi
94621
94622
94623
94624if test $pkg_failed = yes; then
94625   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94626$as_echo "no" >&6; }
94627
94628if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
94629        _pkg_short_errors_supported=yes
94630else
94631        _pkg_short_errors_supported=no
94632fi
94633        if test $_pkg_short_errors_supported = yes; then
94634	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
94635        else
94636	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
94637        fi
94638	# Put the nasty error message in config.log where it belongs
94639	echo "$LUA_PKG_ERRORS" >&5
94640
94641	with_liblua="no (pkg-config cannot find liblua)"
94642
94643elif test $pkg_failed = untried; then
94644     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94645$as_echo "no" >&6; }
94646	with_liblua="no (pkg-config cannot find liblua)"
94647
94648else
94649	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
94650	LUA_LIBS=$pkg_cv_LUA_LIBS
94651        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
94652$as_echo "yes" >&6; }
94653	with_liblua="yes"
94654fi
94655
94656
94657else
94658	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
94659	LUA_LIBS=$pkg_cv_LUA_LIBS
94660        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
94661$as_echo "yes" >&6; }
94662	with_liblua="yes"
94663fi
94664
94665
94666else
94667	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
94668	LUA_LIBS=$pkg_cv_LUA_LIBS
94669        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
94670$as_echo "yes" >&6; }
94671	with_liblua="yes"
94672fi
94673
94674
94675else
94676	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
94677	LUA_LIBS=$pkg_cv_LUA_LIBS
94678        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
94679$as_echo "yes" >&6; }
94680	with_liblua="yes"
94681fi
94682
94683
94684else
94685	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
94686	LUA_LIBS=$pkg_cv_LUA_LIBS
94687        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
94688$as_echo "yes" >&6; }
94689	with_liblua="yes"
94690fi
94691
94692
94693elif test $pkg_failed = untried; then
94694     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94695$as_echo "no" >&6; }
94696
94697
94698pkg_failed=no
94699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
94700$as_echo_n "checking for LUA... " >&6; }
94701
94702if test -n "$LUA_CFLAGS"; then
94703    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
94704 elif test -n "$PKG_CONFIG"; then
94705    if test -n "$PKG_CONFIG" && \
94706    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
94707  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
94708  ac_status=$?
94709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94710  test $ac_status = 0; }; then
94711  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
94712		      test "x$?" != "x0" && pkg_failed=yes
94713else
94714  pkg_failed=yes
94715fi
94716 else
94717    pkg_failed=untried
94718fi
94719if test -n "$LUA_LIBS"; then
94720    pkg_cv_LUA_LIBS="$LUA_LIBS"
94721 elif test -n "$PKG_CONFIG"; then
94722    if test -n "$PKG_CONFIG" && \
94723    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
94724  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
94725  ac_status=$?
94726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94727  test $ac_status = 0; }; then
94728  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
94729		      test "x$?" != "x0" && pkg_failed=yes
94730else
94731  pkg_failed=yes
94732fi
94733 else
94734    pkg_failed=untried
94735fi
94736
94737
94738
94739if test $pkg_failed = yes; then
94740   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94741$as_echo "no" >&6; }
94742
94743if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
94744        _pkg_short_errors_supported=yes
94745else
94746        _pkg_short_errors_supported=no
94747fi
94748        if test $_pkg_short_errors_supported = yes; then
94749	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
94750        else
94751	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
94752        fi
94753	# Put the nasty error message in config.log where it belongs
94754	echo "$LUA_PKG_ERRORS" >&5
94755
94756
94757
94758pkg_failed=no
94759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
94760$as_echo_n "checking for LUA... " >&6; }
94761
94762if test -n "$LUA_CFLAGS"; then
94763    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
94764 elif test -n "$PKG_CONFIG"; then
94765    if test -n "$PKG_CONFIG" && \
94766    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
94767  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
94768  ac_status=$?
94769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94770  test $ac_status = 0; }; then
94771  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
94772		      test "x$?" != "x0" && pkg_failed=yes
94773else
94774  pkg_failed=yes
94775fi
94776 else
94777    pkg_failed=untried
94778fi
94779if test -n "$LUA_LIBS"; then
94780    pkg_cv_LUA_LIBS="$LUA_LIBS"
94781 elif test -n "$PKG_CONFIG"; then
94782    if test -n "$PKG_CONFIG" && \
94783    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
94784  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
94785  ac_status=$?
94786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94787  test $ac_status = 0; }; then
94788  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
94789		      test "x$?" != "x0" && pkg_failed=yes
94790else
94791  pkg_failed=yes
94792fi
94793 else
94794    pkg_failed=untried
94795fi
94796
94797
94798
94799if test $pkg_failed = yes; then
94800   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94801$as_echo "no" >&6; }
94802
94803if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
94804        _pkg_short_errors_supported=yes
94805else
94806        _pkg_short_errors_supported=no
94807fi
94808        if test $_pkg_short_errors_supported = yes; then
94809	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
94810        else
94811	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
94812        fi
94813	# Put the nasty error message in config.log where it belongs
94814	echo "$LUA_PKG_ERRORS" >&5
94815
94816
94817
94818pkg_failed=no
94819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
94820$as_echo_n "checking for LUA... " >&6; }
94821
94822if test -n "$LUA_CFLAGS"; then
94823    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
94824 elif test -n "$PKG_CONFIG"; then
94825    if test -n "$PKG_CONFIG" && \
94826    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
94827  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
94828  ac_status=$?
94829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94830  test $ac_status = 0; }; then
94831  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
94832		      test "x$?" != "x0" && pkg_failed=yes
94833else
94834  pkg_failed=yes
94835fi
94836 else
94837    pkg_failed=untried
94838fi
94839if test -n "$LUA_LIBS"; then
94840    pkg_cv_LUA_LIBS="$LUA_LIBS"
94841 elif test -n "$PKG_CONFIG"; then
94842    if test -n "$PKG_CONFIG" && \
94843    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
94844  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
94845  ac_status=$?
94846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94847  test $ac_status = 0; }; then
94848  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
94849		      test "x$?" != "x0" && pkg_failed=yes
94850else
94851  pkg_failed=yes
94852fi
94853 else
94854    pkg_failed=untried
94855fi
94856
94857
94858
94859if test $pkg_failed = yes; then
94860   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94861$as_echo "no" >&6; }
94862
94863if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
94864        _pkg_short_errors_supported=yes
94865else
94866        _pkg_short_errors_supported=no
94867fi
94868        if test $_pkg_short_errors_supported = yes; then
94869	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
94870        else
94871	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
94872        fi
94873	# Put the nasty error message in config.log where it belongs
94874	echo "$LUA_PKG_ERRORS" >&5
94875
94876
94877
94878pkg_failed=no
94879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
94880$as_echo_n "checking for LUA... " >&6; }
94881
94882if test -n "$LUA_CFLAGS"; then
94883    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
94884 elif test -n "$PKG_CONFIG"; then
94885    if test -n "$PKG_CONFIG" && \
94886    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
94887  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
94888  ac_status=$?
94889  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94890  test $ac_status = 0; }; then
94891  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
94892		      test "x$?" != "x0" && pkg_failed=yes
94893else
94894  pkg_failed=yes
94895fi
94896 else
94897    pkg_failed=untried
94898fi
94899if test -n "$LUA_LIBS"; then
94900    pkg_cv_LUA_LIBS="$LUA_LIBS"
94901 elif test -n "$PKG_CONFIG"; then
94902    if test -n "$PKG_CONFIG" && \
94903    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
94904  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
94905  ac_status=$?
94906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94907  test $ac_status = 0; }; then
94908  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
94909		      test "x$?" != "x0" && pkg_failed=yes
94910else
94911  pkg_failed=yes
94912fi
94913 else
94914    pkg_failed=untried
94915fi
94916
94917
94918
94919if test $pkg_failed = yes; then
94920   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94921$as_echo "no" >&6; }
94922
94923if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
94924        _pkg_short_errors_supported=yes
94925else
94926        _pkg_short_errors_supported=no
94927fi
94928        if test $_pkg_short_errors_supported = yes; then
94929	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
94930        else
94931	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
94932        fi
94933	# Put the nasty error message in config.log where it belongs
94934	echo "$LUA_PKG_ERRORS" >&5
94935
94936
94937
94938pkg_failed=no
94939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
94940$as_echo_n "checking for LUA... " >&6; }
94941
94942if test -n "$LUA_CFLAGS"; then
94943    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
94944 elif test -n "$PKG_CONFIG"; then
94945    if test -n "$PKG_CONFIG" && \
94946    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
94947  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
94948  ac_status=$?
94949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94950  test $ac_status = 0; }; then
94951  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
94952		      test "x$?" != "x0" && pkg_failed=yes
94953else
94954  pkg_failed=yes
94955fi
94956 else
94957    pkg_failed=untried
94958fi
94959if test -n "$LUA_LIBS"; then
94960    pkg_cv_LUA_LIBS="$LUA_LIBS"
94961 elif test -n "$PKG_CONFIG"; then
94962    if test -n "$PKG_CONFIG" && \
94963    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
94964  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
94965  ac_status=$?
94966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
94967  test $ac_status = 0; }; then
94968  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
94969		      test "x$?" != "x0" && pkg_failed=yes
94970else
94971  pkg_failed=yes
94972fi
94973 else
94974    pkg_failed=untried
94975fi
94976
94977
94978
94979if test $pkg_failed = yes; then
94980   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94981$as_echo "no" >&6; }
94982
94983if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
94984        _pkg_short_errors_supported=yes
94985else
94986        _pkg_short_errors_supported=no
94987fi
94988        if test $_pkg_short_errors_supported = yes; then
94989	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
94990        else
94991	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
94992        fi
94993	# Put the nasty error message in config.log where it belongs
94994	echo "$LUA_PKG_ERRORS" >&5
94995
94996	with_liblua="no (pkg-config cannot find liblua)"
94997
94998elif test $pkg_failed = untried; then
94999     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95000$as_echo "no" >&6; }
95001	with_liblua="no (pkg-config cannot find liblua)"
95002
95003else
95004	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
95005	LUA_LIBS=$pkg_cv_LUA_LIBS
95006        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
95007$as_echo "yes" >&6; }
95008	with_liblua="yes"
95009fi
95010
95011
95012elif test $pkg_failed = untried; then
95013     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95014$as_echo "no" >&6; }
95015
95016
95017pkg_failed=no
95018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
95019$as_echo_n "checking for LUA... " >&6; }
95020
95021if test -n "$LUA_CFLAGS"; then
95022    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
95023 elif test -n "$PKG_CONFIG"; then
95024    if test -n "$PKG_CONFIG" && \
95025    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
95026  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
95027  ac_status=$?
95028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95029  test $ac_status = 0; }; then
95030  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
95031		      test "x$?" != "x0" && pkg_failed=yes
95032else
95033  pkg_failed=yes
95034fi
95035 else
95036    pkg_failed=untried
95037fi
95038if test -n "$LUA_LIBS"; then
95039    pkg_cv_LUA_LIBS="$LUA_LIBS"
95040 elif test -n "$PKG_CONFIG"; then
95041    if test -n "$PKG_CONFIG" && \
95042    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
95043  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
95044  ac_status=$?
95045  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95046  test $ac_status = 0; }; then
95047  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
95048		      test "x$?" != "x0" && pkg_failed=yes
95049else
95050  pkg_failed=yes
95051fi
95052 else
95053    pkg_failed=untried
95054fi
95055
95056
95057
95058if test $pkg_failed = yes; then
95059   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95060$as_echo "no" >&6; }
95061
95062if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
95063        _pkg_short_errors_supported=yes
95064else
95065        _pkg_short_errors_supported=no
95066fi
95067        if test $_pkg_short_errors_supported = yes; then
95068	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
95069        else
95070	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
95071        fi
95072	# Put the nasty error message in config.log where it belongs
95073	echo "$LUA_PKG_ERRORS" >&5
95074
95075	with_liblua="no (pkg-config cannot find liblua)"
95076
95077elif test $pkg_failed = untried; then
95078     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95079$as_echo "no" >&6; }
95080	with_liblua="no (pkg-config cannot find liblua)"
95081
95082else
95083	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
95084	LUA_LIBS=$pkg_cv_LUA_LIBS
95085        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
95086$as_echo "yes" >&6; }
95087	with_liblua="yes"
95088fi
95089
95090
95091else
95092	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
95093	LUA_LIBS=$pkg_cv_LUA_LIBS
95094        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
95095$as_echo "yes" >&6; }
95096	with_liblua="yes"
95097fi
95098
95099
95100elif test $pkg_failed = untried; then
95101     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95102$as_echo "no" >&6; }
95103
95104
95105pkg_failed=no
95106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
95107$as_echo_n "checking for LUA... " >&6; }
95108
95109if test -n "$LUA_CFLAGS"; then
95110    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
95111 elif test -n "$PKG_CONFIG"; then
95112    if test -n "$PKG_CONFIG" && \
95113    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
95114  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
95115  ac_status=$?
95116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95117  test $ac_status = 0; }; then
95118  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
95119		      test "x$?" != "x0" && pkg_failed=yes
95120else
95121  pkg_failed=yes
95122fi
95123 else
95124    pkg_failed=untried
95125fi
95126if test -n "$LUA_LIBS"; then
95127    pkg_cv_LUA_LIBS="$LUA_LIBS"
95128 elif test -n "$PKG_CONFIG"; then
95129    if test -n "$PKG_CONFIG" && \
95130    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
95131  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
95132  ac_status=$?
95133  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95134  test $ac_status = 0; }; then
95135  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
95136		      test "x$?" != "x0" && pkg_failed=yes
95137else
95138  pkg_failed=yes
95139fi
95140 else
95141    pkg_failed=untried
95142fi
95143
95144
95145
95146if test $pkg_failed = yes; then
95147   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95148$as_echo "no" >&6; }
95149
95150if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
95151        _pkg_short_errors_supported=yes
95152else
95153        _pkg_short_errors_supported=no
95154fi
95155        if test $_pkg_short_errors_supported = yes; then
95156	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
95157        else
95158	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
95159        fi
95160	# Put the nasty error message in config.log where it belongs
95161	echo "$LUA_PKG_ERRORS" >&5
95162
95163
95164
95165pkg_failed=no
95166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
95167$as_echo_n "checking for LUA... " >&6; }
95168
95169if test -n "$LUA_CFLAGS"; then
95170    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
95171 elif test -n "$PKG_CONFIG"; then
95172    if test -n "$PKG_CONFIG" && \
95173    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
95174  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
95175  ac_status=$?
95176  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95177  test $ac_status = 0; }; then
95178  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
95179		      test "x$?" != "x0" && pkg_failed=yes
95180else
95181  pkg_failed=yes
95182fi
95183 else
95184    pkg_failed=untried
95185fi
95186if test -n "$LUA_LIBS"; then
95187    pkg_cv_LUA_LIBS="$LUA_LIBS"
95188 elif test -n "$PKG_CONFIG"; then
95189    if test -n "$PKG_CONFIG" && \
95190    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
95191  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
95192  ac_status=$?
95193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95194  test $ac_status = 0; }; then
95195  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
95196		      test "x$?" != "x0" && pkg_failed=yes
95197else
95198  pkg_failed=yes
95199fi
95200 else
95201    pkg_failed=untried
95202fi
95203
95204
95205
95206if test $pkg_failed = yes; then
95207   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95208$as_echo "no" >&6; }
95209
95210if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
95211        _pkg_short_errors_supported=yes
95212else
95213        _pkg_short_errors_supported=no
95214fi
95215        if test $_pkg_short_errors_supported = yes; then
95216	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
95217        else
95218	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
95219        fi
95220	# Put the nasty error message in config.log where it belongs
95221	echo "$LUA_PKG_ERRORS" >&5
95222
95223	with_liblua="no (pkg-config cannot find liblua)"
95224
95225elif test $pkg_failed = untried; then
95226     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95227$as_echo "no" >&6; }
95228	with_liblua="no (pkg-config cannot find liblua)"
95229
95230else
95231	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
95232	LUA_LIBS=$pkg_cv_LUA_LIBS
95233        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
95234$as_echo "yes" >&6; }
95235	with_liblua="yes"
95236fi
95237
95238
95239elif test $pkg_failed = untried; then
95240     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95241$as_echo "no" >&6; }
95242
95243
95244pkg_failed=no
95245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
95246$as_echo_n "checking for LUA... " >&6; }
95247
95248if test -n "$LUA_CFLAGS"; then
95249    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
95250 elif test -n "$PKG_CONFIG"; then
95251    if test -n "$PKG_CONFIG" && \
95252    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
95253  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
95254  ac_status=$?
95255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95256  test $ac_status = 0; }; then
95257  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
95258		      test "x$?" != "x0" && pkg_failed=yes
95259else
95260  pkg_failed=yes
95261fi
95262 else
95263    pkg_failed=untried
95264fi
95265if test -n "$LUA_LIBS"; then
95266    pkg_cv_LUA_LIBS="$LUA_LIBS"
95267 elif test -n "$PKG_CONFIG"; then
95268    if test -n "$PKG_CONFIG" && \
95269    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
95270  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
95271  ac_status=$?
95272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95273  test $ac_status = 0; }; then
95274  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
95275		      test "x$?" != "x0" && pkg_failed=yes
95276else
95277  pkg_failed=yes
95278fi
95279 else
95280    pkg_failed=untried
95281fi
95282
95283
95284
95285if test $pkg_failed = yes; then
95286   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95287$as_echo "no" >&6; }
95288
95289if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
95290        _pkg_short_errors_supported=yes
95291else
95292        _pkg_short_errors_supported=no
95293fi
95294        if test $_pkg_short_errors_supported = yes; then
95295	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
95296        else
95297	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
95298        fi
95299	# Put the nasty error message in config.log where it belongs
95300	echo "$LUA_PKG_ERRORS" >&5
95301
95302	with_liblua="no (pkg-config cannot find liblua)"
95303
95304elif test $pkg_failed = untried; then
95305     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95306$as_echo "no" >&6; }
95307	with_liblua="no (pkg-config cannot find liblua)"
95308
95309else
95310	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
95311	LUA_LIBS=$pkg_cv_LUA_LIBS
95312        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
95313$as_echo "yes" >&6; }
95314	with_liblua="yes"
95315fi
95316
95317
95318else
95319	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
95320	LUA_LIBS=$pkg_cv_LUA_LIBS
95321        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
95322$as_echo "yes" >&6; }
95323	with_liblua="yes"
95324fi
95325
95326
95327else
95328	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
95329	LUA_LIBS=$pkg_cv_LUA_LIBS
95330        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
95331$as_echo "yes" >&6; }
95332	with_liblua="yes"
95333fi
95334
95335
95336elif test $pkg_failed = untried; then
95337     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95338$as_echo "no" >&6; }
95339
95340
95341pkg_failed=no
95342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
95343$as_echo_n "checking for LUA... " >&6; }
95344
95345if test -n "$LUA_CFLAGS"; then
95346    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
95347 elif test -n "$PKG_CONFIG"; then
95348    if test -n "$PKG_CONFIG" && \
95349    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
95350  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
95351  ac_status=$?
95352  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95353  test $ac_status = 0; }; then
95354  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
95355		      test "x$?" != "x0" && pkg_failed=yes
95356else
95357  pkg_failed=yes
95358fi
95359 else
95360    pkg_failed=untried
95361fi
95362if test -n "$LUA_LIBS"; then
95363    pkg_cv_LUA_LIBS="$LUA_LIBS"
95364 elif test -n "$PKG_CONFIG"; then
95365    if test -n "$PKG_CONFIG" && \
95366    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
95367  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
95368  ac_status=$?
95369  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95370  test $ac_status = 0; }; then
95371  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
95372		      test "x$?" != "x0" && pkg_failed=yes
95373else
95374  pkg_failed=yes
95375fi
95376 else
95377    pkg_failed=untried
95378fi
95379
95380
95381
95382if test $pkg_failed = yes; then
95383   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95384$as_echo "no" >&6; }
95385
95386if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
95387        _pkg_short_errors_supported=yes
95388else
95389        _pkg_short_errors_supported=no
95390fi
95391        if test $_pkg_short_errors_supported = yes; then
95392	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
95393        else
95394	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
95395        fi
95396	# Put the nasty error message in config.log where it belongs
95397	echo "$LUA_PKG_ERRORS" >&5
95398
95399
95400
95401pkg_failed=no
95402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
95403$as_echo_n "checking for LUA... " >&6; }
95404
95405if test -n "$LUA_CFLAGS"; then
95406    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
95407 elif test -n "$PKG_CONFIG"; then
95408    if test -n "$PKG_CONFIG" && \
95409    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
95410  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
95411  ac_status=$?
95412  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95413  test $ac_status = 0; }; then
95414  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
95415		      test "x$?" != "x0" && pkg_failed=yes
95416else
95417  pkg_failed=yes
95418fi
95419 else
95420    pkg_failed=untried
95421fi
95422if test -n "$LUA_LIBS"; then
95423    pkg_cv_LUA_LIBS="$LUA_LIBS"
95424 elif test -n "$PKG_CONFIG"; then
95425    if test -n "$PKG_CONFIG" && \
95426    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
95427  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
95428  ac_status=$?
95429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95430  test $ac_status = 0; }; then
95431  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
95432		      test "x$?" != "x0" && pkg_failed=yes
95433else
95434  pkg_failed=yes
95435fi
95436 else
95437    pkg_failed=untried
95438fi
95439
95440
95441
95442if test $pkg_failed = yes; then
95443   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95444$as_echo "no" >&6; }
95445
95446if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
95447        _pkg_short_errors_supported=yes
95448else
95449        _pkg_short_errors_supported=no
95450fi
95451        if test $_pkg_short_errors_supported = yes; then
95452	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
95453        else
95454	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
95455        fi
95456	# Put the nasty error message in config.log where it belongs
95457	echo "$LUA_PKG_ERRORS" >&5
95458
95459
95460
95461pkg_failed=no
95462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
95463$as_echo_n "checking for LUA... " >&6; }
95464
95465if test -n "$LUA_CFLAGS"; then
95466    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
95467 elif test -n "$PKG_CONFIG"; then
95468    if test -n "$PKG_CONFIG" && \
95469    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
95470  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
95471  ac_status=$?
95472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95473  test $ac_status = 0; }; then
95474  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
95475		      test "x$?" != "x0" && pkg_failed=yes
95476else
95477  pkg_failed=yes
95478fi
95479 else
95480    pkg_failed=untried
95481fi
95482if test -n "$LUA_LIBS"; then
95483    pkg_cv_LUA_LIBS="$LUA_LIBS"
95484 elif test -n "$PKG_CONFIG"; then
95485    if test -n "$PKG_CONFIG" && \
95486    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
95487  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
95488  ac_status=$?
95489  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95490  test $ac_status = 0; }; then
95491  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
95492		      test "x$?" != "x0" && pkg_failed=yes
95493else
95494  pkg_failed=yes
95495fi
95496 else
95497    pkg_failed=untried
95498fi
95499
95500
95501
95502if test $pkg_failed = yes; then
95503   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95504$as_echo "no" >&6; }
95505
95506if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
95507        _pkg_short_errors_supported=yes
95508else
95509        _pkg_short_errors_supported=no
95510fi
95511        if test $_pkg_short_errors_supported = yes; then
95512	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
95513        else
95514	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
95515        fi
95516	# Put the nasty error message in config.log where it belongs
95517	echo "$LUA_PKG_ERRORS" >&5
95518
95519	with_liblua="no (pkg-config cannot find liblua)"
95520
95521elif test $pkg_failed = untried; then
95522     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95523$as_echo "no" >&6; }
95524	with_liblua="no (pkg-config cannot find liblua)"
95525
95526else
95527	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
95528	LUA_LIBS=$pkg_cv_LUA_LIBS
95529        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
95530$as_echo "yes" >&6; }
95531	with_liblua="yes"
95532fi
95533
95534
95535elif test $pkg_failed = untried; then
95536     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95537$as_echo "no" >&6; }
95538
95539
95540pkg_failed=no
95541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
95542$as_echo_n "checking for LUA... " >&6; }
95543
95544if test -n "$LUA_CFLAGS"; then
95545    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
95546 elif test -n "$PKG_CONFIG"; then
95547    if test -n "$PKG_CONFIG" && \
95548    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
95549  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
95550  ac_status=$?
95551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95552  test $ac_status = 0; }; then
95553  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
95554		      test "x$?" != "x0" && pkg_failed=yes
95555else
95556  pkg_failed=yes
95557fi
95558 else
95559    pkg_failed=untried
95560fi
95561if test -n "$LUA_LIBS"; then
95562    pkg_cv_LUA_LIBS="$LUA_LIBS"
95563 elif test -n "$PKG_CONFIG"; then
95564    if test -n "$PKG_CONFIG" && \
95565    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
95566  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
95567  ac_status=$?
95568  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95569  test $ac_status = 0; }; then
95570  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
95571		      test "x$?" != "x0" && pkg_failed=yes
95572else
95573  pkg_failed=yes
95574fi
95575 else
95576    pkg_failed=untried
95577fi
95578
95579
95580
95581if test $pkg_failed = yes; then
95582   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95583$as_echo "no" >&6; }
95584
95585if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
95586        _pkg_short_errors_supported=yes
95587else
95588        _pkg_short_errors_supported=no
95589fi
95590        if test $_pkg_short_errors_supported = yes; then
95591	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
95592        else
95593	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
95594        fi
95595	# Put the nasty error message in config.log where it belongs
95596	echo "$LUA_PKG_ERRORS" >&5
95597
95598	with_liblua="no (pkg-config cannot find liblua)"
95599
95600elif test $pkg_failed = untried; then
95601     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95602$as_echo "no" >&6; }
95603	with_liblua="no (pkg-config cannot find liblua)"
95604
95605else
95606	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
95607	LUA_LIBS=$pkg_cv_LUA_LIBS
95608        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
95609$as_echo "yes" >&6; }
95610	with_liblua="yes"
95611fi
95612
95613
95614else
95615	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
95616	LUA_LIBS=$pkg_cv_LUA_LIBS
95617        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
95618$as_echo "yes" >&6; }
95619	with_liblua="yes"
95620fi
95621
95622
95623elif test $pkg_failed = untried; then
95624     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95625$as_echo "no" >&6; }
95626
95627
95628pkg_failed=no
95629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
95630$as_echo_n "checking for LUA... " >&6; }
95631
95632if test -n "$LUA_CFLAGS"; then
95633    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
95634 elif test -n "$PKG_CONFIG"; then
95635    if test -n "$PKG_CONFIG" && \
95636    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
95637  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
95638  ac_status=$?
95639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95640  test $ac_status = 0; }; then
95641  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
95642		      test "x$?" != "x0" && pkg_failed=yes
95643else
95644  pkg_failed=yes
95645fi
95646 else
95647    pkg_failed=untried
95648fi
95649if test -n "$LUA_LIBS"; then
95650    pkg_cv_LUA_LIBS="$LUA_LIBS"
95651 elif test -n "$PKG_CONFIG"; then
95652    if test -n "$PKG_CONFIG" && \
95653    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
95654  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
95655  ac_status=$?
95656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95657  test $ac_status = 0; }; then
95658  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
95659		      test "x$?" != "x0" && pkg_failed=yes
95660else
95661  pkg_failed=yes
95662fi
95663 else
95664    pkg_failed=untried
95665fi
95666
95667
95668
95669if test $pkg_failed = yes; then
95670   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95671$as_echo "no" >&6; }
95672
95673if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
95674        _pkg_short_errors_supported=yes
95675else
95676        _pkg_short_errors_supported=no
95677fi
95678        if test $_pkg_short_errors_supported = yes; then
95679	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
95680        else
95681	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
95682        fi
95683	# Put the nasty error message in config.log where it belongs
95684	echo "$LUA_PKG_ERRORS" >&5
95685
95686
95687
95688pkg_failed=no
95689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
95690$as_echo_n "checking for LUA... " >&6; }
95691
95692if test -n "$LUA_CFLAGS"; then
95693    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
95694 elif test -n "$PKG_CONFIG"; then
95695    if test -n "$PKG_CONFIG" && \
95696    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
95697  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
95698  ac_status=$?
95699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95700  test $ac_status = 0; }; then
95701  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
95702		      test "x$?" != "x0" && pkg_failed=yes
95703else
95704  pkg_failed=yes
95705fi
95706 else
95707    pkg_failed=untried
95708fi
95709if test -n "$LUA_LIBS"; then
95710    pkg_cv_LUA_LIBS="$LUA_LIBS"
95711 elif test -n "$PKG_CONFIG"; then
95712    if test -n "$PKG_CONFIG" && \
95713    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
95714  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
95715  ac_status=$?
95716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95717  test $ac_status = 0; }; then
95718  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
95719		      test "x$?" != "x0" && pkg_failed=yes
95720else
95721  pkg_failed=yes
95722fi
95723 else
95724    pkg_failed=untried
95725fi
95726
95727
95728
95729if test $pkg_failed = yes; then
95730   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95731$as_echo "no" >&6; }
95732
95733if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
95734        _pkg_short_errors_supported=yes
95735else
95736        _pkg_short_errors_supported=no
95737fi
95738        if test $_pkg_short_errors_supported = yes; then
95739	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
95740        else
95741	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
95742        fi
95743	# Put the nasty error message in config.log where it belongs
95744	echo "$LUA_PKG_ERRORS" >&5
95745
95746	with_liblua="no (pkg-config cannot find liblua)"
95747
95748elif test $pkg_failed = untried; then
95749     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95750$as_echo "no" >&6; }
95751	with_liblua="no (pkg-config cannot find liblua)"
95752
95753else
95754	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
95755	LUA_LIBS=$pkg_cv_LUA_LIBS
95756        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
95757$as_echo "yes" >&6; }
95758	with_liblua="yes"
95759fi
95760
95761
95762elif test $pkg_failed = untried; then
95763     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95764$as_echo "no" >&6; }
95765
95766
95767pkg_failed=no
95768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
95769$as_echo_n "checking for LUA... " >&6; }
95770
95771if test -n "$LUA_CFLAGS"; then
95772    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
95773 elif test -n "$PKG_CONFIG"; then
95774    if test -n "$PKG_CONFIG" && \
95775    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
95776  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
95777  ac_status=$?
95778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95779  test $ac_status = 0; }; then
95780  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
95781		      test "x$?" != "x0" && pkg_failed=yes
95782else
95783  pkg_failed=yes
95784fi
95785 else
95786    pkg_failed=untried
95787fi
95788if test -n "$LUA_LIBS"; then
95789    pkg_cv_LUA_LIBS="$LUA_LIBS"
95790 elif test -n "$PKG_CONFIG"; then
95791    if test -n "$PKG_CONFIG" && \
95792    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
95793  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
95794  ac_status=$?
95795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95796  test $ac_status = 0; }; then
95797  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
95798		      test "x$?" != "x0" && pkg_failed=yes
95799else
95800  pkg_failed=yes
95801fi
95802 else
95803    pkg_failed=untried
95804fi
95805
95806
95807
95808if test $pkg_failed = yes; then
95809   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95810$as_echo "no" >&6; }
95811
95812if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
95813        _pkg_short_errors_supported=yes
95814else
95815        _pkg_short_errors_supported=no
95816fi
95817        if test $_pkg_short_errors_supported = yes; then
95818	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
95819        else
95820	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
95821        fi
95822	# Put the nasty error message in config.log where it belongs
95823	echo "$LUA_PKG_ERRORS" >&5
95824
95825	with_liblua="no (pkg-config cannot find liblua)"
95826
95827elif test $pkg_failed = untried; then
95828     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95829$as_echo "no" >&6; }
95830	with_liblua="no (pkg-config cannot find liblua)"
95831
95832else
95833	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
95834	LUA_LIBS=$pkg_cv_LUA_LIBS
95835        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
95836$as_echo "yes" >&6; }
95837	with_liblua="yes"
95838fi
95839
95840
95841else
95842	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
95843	LUA_LIBS=$pkg_cv_LUA_LIBS
95844        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
95845$as_echo "yes" >&6; }
95846	with_liblua="yes"
95847fi
95848
95849
95850else
95851	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
95852	LUA_LIBS=$pkg_cv_LUA_LIBS
95853        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
95854$as_echo "yes" >&6; }
95855	with_liblua="yes"
95856fi
95857
95858
95859else
95860	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
95861	LUA_LIBS=$pkg_cv_LUA_LIBS
95862        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
95863$as_echo "yes" >&6; }
95864	with_liblua="yes"
95865fi
95866
95867
95868elif test $pkg_failed = untried; then
95869     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95870$as_echo "no" >&6; }
95871
95872
95873pkg_failed=no
95874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
95875$as_echo_n "checking for LUA... " >&6; }
95876
95877if test -n "$LUA_CFLAGS"; then
95878    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
95879 elif test -n "$PKG_CONFIG"; then
95880    if test -n "$PKG_CONFIG" && \
95881    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
95882  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
95883  ac_status=$?
95884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95885  test $ac_status = 0; }; then
95886  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
95887		      test "x$?" != "x0" && pkg_failed=yes
95888else
95889  pkg_failed=yes
95890fi
95891 else
95892    pkg_failed=untried
95893fi
95894if test -n "$LUA_LIBS"; then
95895    pkg_cv_LUA_LIBS="$LUA_LIBS"
95896 elif test -n "$PKG_CONFIG"; then
95897    if test -n "$PKG_CONFIG" && \
95898    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
95899  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
95900  ac_status=$?
95901  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95902  test $ac_status = 0; }; then
95903  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
95904		      test "x$?" != "x0" && pkg_failed=yes
95905else
95906  pkg_failed=yes
95907fi
95908 else
95909    pkg_failed=untried
95910fi
95911
95912
95913
95914if test $pkg_failed = yes; then
95915   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95916$as_echo "no" >&6; }
95917
95918if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
95919        _pkg_short_errors_supported=yes
95920else
95921        _pkg_short_errors_supported=no
95922fi
95923        if test $_pkg_short_errors_supported = yes; then
95924	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
95925        else
95926	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
95927        fi
95928	# Put the nasty error message in config.log where it belongs
95929	echo "$LUA_PKG_ERRORS" >&5
95930
95931
95932
95933pkg_failed=no
95934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
95935$as_echo_n "checking for LUA... " >&6; }
95936
95937if test -n "$LUA_CFLAGS"; then
95938    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
95939 elif test -n "$PKG_CONFIG"; then
95940    if test -n "$PKG_CONFIG" && \
95941    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
95942  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
95943  ac_status=$?
95944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95945  test $ac_status = 0; }; then
95946  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
95947		      test "x$?" != "x0" && pkg_failed=yes
95948else
95949  pkg_failed=yes
95950fi
95951 else
95952    pkg_failed=untried
95953fi
95954if test -n "$LUA_LIBS"; then
95955    pkg_cv_LUA_LIBS="$LUA_LIBS"
95956 elif test -n "$PKG_CONFIG"; then
95957    if test -n "$PKG_CONFIG" && \
95958    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
95959  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
95960  ac_status=$?
95961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
95962  test $ac_status = 0; }; then
95963  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
95964		      test "x$?" != "x0" && pkg_failed=yes
95965else
95966  pkg_failed=yes
95967fi
95968 else
95969    pkg_failed=untried
95970fi
95971
95972
95973
95974if test $pkg_failed = yes; then
95975   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
95976$as_echo "no" >&6; }
95977
95978if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
95979        _pkg_short_errors_supported=yes
95980else
95981        _pkg_short_errors_supported=no
95982fi
95983        if test $_pkg_short_errors_supported = yes; then
95984	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
95985        else
95986	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
95987        fi
95988	# Put the nasty error message in config.log where it belongs
95989	echo "$LUA_PKG_ERRORS" >&5
95990
95991
95992
95993pkg_failed=no
95994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
95995$as_echo_n "checking for LUA... " >&6; }
95996
95997if test -n "$LUA_CFLAGS"; then
95998    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
95999 elif test -n "$PKG_CONFIG"; then
96000    if test -n "$PKG_CONFIG" && \
96001    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
96002  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
96003  ac_status=$?
96004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96005  test $ac_status = 0; }; then
96006  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
96007		      test "x$?" != "x0" && pkg_failed=yes
96008else
96009  pkg_failed=yes
96010fi
96011 else
96012    pkg_failed=untried
96013fi
96014if test -n "$LUA_LIBS"; then
96015    pkg_cv_LUA_LIBS="$LUA_LIBS"
96016 elif test -n "$PKG_CONFIG"; then
96017    if test -n "$PKG_CONFIG" && \
96018    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
96019  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
96020  ac_status=$?
96021  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96022  test $ac_status = 0; }; then
96023  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
96024		      test "x$?" != "x0" && pkg_failed=yes
96025else
96026  pkg_failed=yes
96027fi
96028 else
96029    pkg_failed=untried
96030fi
96031
96032
96033
96034if test $pkg_failed = yes; then
96035   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96036$as_echo "no" >&6; }
96037
96038if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
96039        _pkg_short_errors_supported=yes
96040else
96041        _pkg_short_errors_supported=no
96042fi
96043        if test $_pkg_short_errors_supported = yes; then
96044	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
96045        else
96046	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
96047        fi
96048	# Put the nasty error message in config.log where it belongs
96049	echo "$LUA_PKG_ERRORS" >&5
96050
96051
96052
96053pkg_failed=no
96054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
96055$as_echo_n "checking for LUA... " >&6; }
96056
96057if test -n "$LUA_CFLAGS"; then
96058    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
96059 elif test -n "$PKG_CONFIG"; then
96060    if test -n "$PKG_CONFIG" && \
96061    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
96062  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
96063  ac_status=$?
96064  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96065  test $ac_status = 0; }; then
96066  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
96067		      test "x$?" != "x0" && pkg_failed=yes
96068else
96069  pkg_failed=yes
96070fi
96071 else
96072    pkg_failed=untried
96073fi
96074if test -n "$LUA_LIBS"; then
96075    pkg_cv_LUA_LIBS="$LUA_LIBS"
96076 elif test -n "$PKG_CONFIG"; then
96077    if test -n "$PKG_CONFIG" && \
96078    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
96079  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
96080  ac_status=$?
96081  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96082  test $ac_status = 0; }; then
96083  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
96084		      test "x$?" != "x0" && pkg_failed=yes
96085else
96086  pkg_failed=yes
96087fi
96088 else
96089    pkg_failed=untried
96090fi
96091
96092
96093
96094if test $pkg_failed = yes; then
96095   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96096$as_echo "no" >&6; }
96097
96098if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
96099        _pkg_short_errors_supported=yes
96100else
96101        _pkg_short_errors_supported=no
96102fi
96103        if test $_pkg_short_errors_supported = yes; then
96104	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
96105        else
96106	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
96107        fi
96108	# Put the nasty error message in config.log where it belongs
96109	echo "$LUA_PKG_ERRORS" >&5
96110
96111	with_liblua="no (pkg-config cannot find liblua)"
96112
96113elif test $pkg_failed = untried; then
96114     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96115$as_echo "no" >&6; }
96116	with_liblua="no (pkg-config cannot find liblua)"
96117
96118else
96119	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
96120	LUA_LIBS=$pkg_cv_LUA_LIBS
96121        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
96122$as_echo "yes" >&6; }
96123	with_liblua="yes"
96124fi
96125
96126
96127elif test $pkg_failed = untried; then
96128     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96129$as_echo "no" >&6; }
96130
96131
96132pkg_failed=no
96133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
96134$as_echo_n "checking for LUA... " >&6; }
96135
96136if test -n "$LUA_CFLAGS"; then
96137    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
96138 elif test -n "$PKG_CONFIG"; then
96139    if test -n "$PKG_CONFIG" && \
96140    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
96141  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
96142  ac_status=$?
96143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96144  test $ac_status = 0; }; then
96145  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
96146		      test "x$?" != "x0" && pkg_failed=yes
96147else
96148  pkg_failed=yes
96149fi
96150 else
96151    pkg_failed=untried
96152fi
96153if test -n "$LUA_LIBS"; then
96154    pkg_cv_LUA_LIBS="$LUA_LIBS"
96155 elif test -n "$PKG_CONFIG"; then
96156    if test -n "$PKG_CONFIG" && \
96157    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
96158  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
96159  ac_status=$?
96160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96161  test $ac_status = 0; }; then
96162  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
96163		      test "x$?" != "x0" && pkg_failed=yes
96164else
96165  pkg_failed=yes
96166fi
96167 else
96168    pkg_failed=untried
96169fi
96170
96171
96172
96173if test $pkg_failed = yes; then
96174   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96175$as_echo "no" >&6; }
96176
96177if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
96178        _pkg_short_errors_supported=yes
96179else
96180        _pkg_short_errors_supported=no
96181fi
96182        if test $_pkg_short_errors_supported = yes; then
96183	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
96184        else
96185	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
96186        fi
96187	# Put the nasty error message in config.log where it belongs
96188	echo "$LUA_PKG_ERRORS" >&5
96189
96190	with_liblua="no (pkg-config cannot find liblua)"
96191
96192elif test $pkg_failed = untried; then
96193     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96194$as_echo "no" >&6; }
96195	with_liblua="no (pkg-config cannot find liblua)"
96196
96197else
96198	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
96199	LUA_LIBS=$pkg_cv_LUA_LIBS
96200        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
96201$as_echo "yes" >&6; }
96202	with_liblua="yes"
96203fi
96204
96205
96206else
96207	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
96208	LUA_LIBS=$pkg_cv_LUA_LIBS
96209        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
96210$as_echo "yes" >&6; }
96211	with_liblua="yes"
96212fi
96213
96214
96215elif test $pkg_failed = untried; then
96216     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96217$as_echo "no" >&6; }
96218
96219
96220pkg_failed=no
96221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
96222$as_echo_n "checking for LUA... " >&6; }
96223
96224if test -n "$LUA_CFLAGS"; then
96225    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
96226 elif test -n "$PKG_CONFIG"; then
96227    if test -n "$PKG_CONFIG" && \
96228    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
96229  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
96230  ac_status=$?
96231  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96232  test $ac_status = 0; }; then
96233  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
96234		      test "x$?" != "x0" && pkg_failed=yes
96235else
96236  pkg_failed=yes
96237fi
96238 else
96239    pkg_failed=untried
96240fi
96241if test -n "$LUA_LIBS"; then
96242    pkg_cv_LUA_LIBS="$LUA_LIBS"
96243 elif test -n "$PKG_CONFIG"; then
96244    if test -n "$PKG_CONFIG" && \
96245    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
96246  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
96247  ac_status=$?
96248  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96249  test $ac_status = 0; }; then
96250  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
96251		      test "x$?" != "x0" && pkg_failed=yes
96252else
96253  pkg_failed=yes
96254fi
96255 else
96256    pkg_failed=untried
96257fi
96258
96259
96260
96261if test $pkg_failed = yes; then
96262   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96263$as_echo "no" >&6; }
96264
96265if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
96266        _pkg_short_errors_supported=yes
96267else
96268        _pkg_short_errors_supported=no
96269fi
96270        if test $_pkg_short_errors_supported = yes; then
96271	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
96272        else
96273	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
96274        fi
96275	# Put the nasty error message in config.log where it belongs
96276	echo "$LUA_PKG_ERRORS" >&5
96277
96278
96279
96280pkg_failed=no
96281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
96282$as_echo_n "checking for LUA... " >&6; }
96283
96284if test -n "$LUA_CFLAGS"; then
96285    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
96286 elif test -n "$PKG_CONFIG"; then
96287    if test -n "$PKG_CONFIG" && \
96288    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
96289  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
96290  ac_status=$?
96291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96292  test $ac_status = 0; }; then
96293  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
96294		      test "x$?" != "x0" && pkg_failed=yes
96295else
96296  pkg_failed=yes
96297fi
96298 else
96299    pkg_failed=untried
96300fi
96301if test -n "$LUA_LIBS"; then
96302    pkg_cv_LUA_LIBS="$LUA_LIBS"
96303 elif test -n "$PKG_CONFIG"; then
96304    if test -n "$PKG_CONFIG" && \
96305    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
96306  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
96307  ac_status=$?
96308  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96309  test $ac_status = 0; }; then
96310  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
96311		      test "x$?" != "x0" && pkg_failed=yes
96312else
96313  pkg_failed=yes
96314fi
96315 else
96316    pkg_failed=untried
96317fi
96318
96319
96320
96321if test $pkg_failed = yes; then
96322   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96323$as_echo "no" >&6; }
96324
96325if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
96326        _pkg_short_errors_supported=yes
96327else
96328        _pkg_short_errors_supported=no
96329fi
96330        if test $_pkg_short_errors_supported = yes; then
96331	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
96332        else
96333	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
96334        fi
96335	# Put the nasty error message in config.log where it belongs
96336	echo "$LUA_PKG_ERRORS" >&5
96337
96338	with_liblua="no (pkg-config cannot find liblua)"
96339
96340elif test $pkg_failed = untried; then
96341     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96342$as_echo "no" >&6; }
96343	with_liblua="no (pkg-config cannot find liblua)"
96344
96345else
96346	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
96347	LUA_LIBS=$pkg_cv_LUA_LIBS
96348        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
96349$as_echo "yes" >&6; }
96350	with_liblua="yes"
96351fi
96352
96353
96354elif test $pkg_failed = untried; then
96355     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96356$as_echo "no" >&6; }
96357
96358
96359pkg_failed=no
96360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
96361$as_echo_n "checking for LUA... " >&6; }
96362
96363if test -n "$LUA_CFLAGS"; then
96364    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
96365 elif test -n "$PKG_CONFIG"; then
96366    if test -n "$PKG_CONFIG" && \
96367    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
96368  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
96369  ac_status=$?
96370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96371  test $ac_status = 0; }; then
96372  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
96373		      test "x$?" != "x0" && pkg_failed=yes
96374else
96375  pkg_failed=yes
96376fi
96377 else
96378    pkg_failed=untried
96379fi
96380if test -n "$LUA_LIBS"; then
96381    pkg_cv_LUA_LIBS="$LUA_LIBS"
96382 elif test -n "$PKG_CONFIG"; then
96383    if test -n "$PKG_CONFIG" && \
96384    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
96385  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
96386  ac_status=$?
96387  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96388  test $ac_status = 0; }; then
96389  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
96390		      test "x$?" != "x0" && pkg_failed=yes
96391else
96392  pkg_failed=yes
96393fi
96394 else
96395    pkg_failed=untried
96396fi
96397
96398
96399
96400if test $pkg_failed = yes; then
96401   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96402$as_echo "no" >&6; }
96403
96404if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
96405        _pkg_short_errors_supported=yes
96406else
96407        _pkg_short_errors_supported=no
96408fi
96409        if test $_pkg_short_errors_supported = yes; then
96410	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
96411        else
96412	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
96413        fi
96414	# Put the nasty error message in config.log where it belongs
96415	echo "$LUA_PKG_ERRORS" >&5
96416
96417	with_liblua="no (pkg-config cannot find liblua)"
96418
96419elif test $pkg_failed = untried; then
96420     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96421$as_echo "no" >&6; }
96422	with_liblua="no (pkg-config cannot find liblua)"
96423
96424else
96425	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
96426	LUA_LIBS=$pkg_cv_LUA_LIBS
96427        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
96428$as_echo "yes" >&6; }
96429	with_liblua="yes"
96430fi
96431
96432
96433else
96434	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
96435	LUA_LIBS=$pkg_cv_LUA_LIBS
96436        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
96437$as_echo "yes" >&6; }
96438	with_liblua="yes"
96439fi
96440
96441
96442else
96443	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
96444	LUA_LIBS=$pkg_cv_LUA_LIBS
96445        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
96446$as_echo "yes" >&6; }
96447	with_liblua="yes"
96448fi
96449
96450
96451elif test $pkg_failed = untried; then
96452     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96453$as_echo "no" >&6; }
96454
96455
96456pkg_failed=no
96457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
96458$as_echo_n "checking for LUA... " >&6; }
96459
96460if test -n "$LUA_CFLAGS"; then
96461    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
96462 elif test -n "$PKG_CONFIG"; then
96463    if test -n "$PKG_CONFIG" && \
96464    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
96465  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
96466  ac_status=$?
96467  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96468  test $ac_status = 0; }; then
96469  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
96470		      test "x$?" != "x0" && pkg_failed=yes
96471else
96472  pkg_failed=yes
96473fi
96474 else
96475    pkg_failed=untried
96476fi
96477if test -n "$LUA_LIBS"; then
96478    pkg_cv_LUA_LIBS="$LUA_LIBS"
96479 elif test -n "$PKG_CONFIG"; then
96480    if test -n "$PKG_CONFIG" && \
96481    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
96482  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
96483  ac_status=$?
96484  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96485  test $ac_status = 0; }; then
96486  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
96487		      test "x$?" != "x0" && pkg_failed=yes
96488else
96489  pkg_failed=yes
96490fi
96491 else
96492    pkg_failed=untried
96493fi
96494
96495
96496
96497if test $pkg_failed = yes; then
96498   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96499$as_echo "no" >&6; }
96500
96501if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
96502        _pkg_short_errors_supported=yes
96503else
96504        _pkg_short_errors_supported=no
96505fi
96506        if test $_pkg_short_errors_supported = yes; then
96507	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
96508        else
96509	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
96510        fi
96511	# Put the nasty error message in config.log where it belongs
96512	echo "$LUA_PKG_ERRORS" >&5
96513
96514
96515
96516pkg_failed=no
96517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
96518$as_echo_n "checking for LUA... " >&6; }
96519
96520if test -n "$LUA_CFLAGS"; then
96521    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
96522 elif test -n "$PKG_CONFIG"; then
96523    if test -n "$PKG_CONFIG" && \
96524    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
96525  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
96526  ac_status=$?
96527  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96528  test $ac_status = 0; }; then
96529  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
96530		      test "x$?" != "x0" && pkg_failed=yes
96531else
96532  pkg_failed=yes
96533fi
96534 else
96535    pkg_failed=untried
96536fi
96537if test -n "$LUA_LIBS"; then
96538    pkg_cv_LUA_LIBS="$LUA_LIBS"
96539 elif test -n "$PKG_CONFIG"; then
96540    if test -n "$PKG_CONFIG" && \
96541    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
96542  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
96543  ac_status=$?
96544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96545  test $ac_status = 0; }; then
96546  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
96547		      test "x$?" != "x0" && pkg_failed=yes
96548else
96549  pkg_failed=yes
96550fi
96551 else
96552    pkg_failed=untried
96553fi
96554
96555
96556
96557if test $pkg_failed = yes; then
96558   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96559$as_echo "no" >&6; }
96560
96561if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
96562        _pkg_short_errors_supported=yes
96563else
96564        _pkg_short_errors_supported=no
96565fi
96566        if test $_pkg_short_errors_supported = yes; then
96567	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
96568        else
96569	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
96570        fi
96571	# Put the nasty error message in config.log where it belongs
96572	echo "$LUA_PKG_ERRORS" >&5
96573
96574
96575
96576pkg_failed=no
96577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
96578$as_echo_n "checking for LUA... " >&6; }
96579
96580if test -n "$LUA_CFLAGS"; then
96581    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
96582 elif test -n "$PKG_CONFIG"; then
96583    if test -n "$PKG_CONFIG" && \
96584    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
96585  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
96586  ac_status=$?
96587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96588  test $ac_status = 0; }; then
96589  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
96590		      test "x$?" != "x0" && pkg_failed=yes
96591else
96592  pkg_failed=yes
96593fi
96594 else
96595    pkg_failed=untried
96596fi
96597if test -n "$LUA_LIBS"; then
96598    pkg_cv_LUA_LIBS="$LUA_LIBS"
96599 elif test -n "$PKG_CONFIG"; then
96600    if test -n "$PKG_CONFIG" && \
96601    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
96602  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
96603  ac_status=$?
96604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96605  test $ac_status = 0; }; then
96606  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
96607		      test "x$?" != "x0" && pkg_failed=yes
96608else
96609  pkg_failed=yes
96610fi
96611 else
96612    pkg_failed=untried
96613fi
96614
96615
96616
96617if test $pkg_failed = yes; then
96618   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96619$as_echo "no" >&6; }
96620
96621if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
96622        _pkg_short_errors_supported=yes
96623else
96624        _pkg_short_errors_supported=no
96625fi
96626        if test $_pkg_short_errors_supported = yes; then
96627	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
96628        else
96629	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
96630        fi
96631	# Put the nasty error message in config.log where it belongs
96632	echo "$LUA_PKG_ERRORS" >&5
96633
96634	with_liblua="no (pkg-config cannot find liblua)"
96635
96636elif test $pkg_failed = untried; then
96637     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96638$as_echo "no" >&6; }
96639	with_liblua="no (pkg-config cannot find liblua)"
96640
96641else
96642	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
96643	LUA_LIBS=$pkg_cv_LUA_LIBS
96644        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
96645$as_echo "yes" >&6; }
96646	with_liblua="yes"
96647fi
96648
96649
96650elif test $pkg_failed = untried; then
96651     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96652$as_echo "no" >&6; }
96653
96654
96655pkg_failed=no
96656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
96657$as_echo_n "checking for LUA... " >&6; }
96658
96659if test -n "$LUA_CFLAGS"; then
96660    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
96661 elif test -n "$PKG_CONFIG"; then
96662    if test -n "$PKG_CONFIG" && \
96663    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
96664  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
96665  ac_status=$?
96666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96667  test $ac_status = 0; }; then
96668  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
96669		      test "x$?" != "x0" && pkg_failed=yes
96670else
96671  pkg_failed=yes
96672fi
96673 else
96674    pkg_failed=untried
96675fi
96676if test -n "$LUA_LIBS"; then
96677    pkg_cv_LUA_LIBS="$LUA_LIBS"
96678 elif test -n "$PKG_CONFIG"; then
96679    if test -n "$PKG_CONFIG" && \
96680    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
96681  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
96682  ac_status=$?
96683  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96684  test $ac_status = 0; }; then
96685  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
96686		      test "x$?" != "x0" && pkg_failed=yes
96687else
96688  pkg_failed=yes
96689fi
96690 else
96691    pkg_failed=untried
96692fi
96693
96694
96695
96696if test $pkg_failed = yes; then
96697   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96698$as_echo "no" >&6; }
96699
96700if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
96701        _pkg_short_errors_supported=yes
96702else
96703        _pkg_short_errors_supported=no
96704fi
96705        if test $_pkg_short_errors_supported = yes; then
96706	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
96707        else
96708	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
96709        fi
96710	# Put the nasty error message in config.log where it belongs
96711	echo "$LUA_PKG_ERRORS" >&5
96712
96713	with_liblua="no (pkg-config cannot find liblua)"
96714
96715elif test $pkg_failed = untried; then
96716     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96717$as_echo "no" >&6; }
96718	with_liblua="no (pkg-config cannot find liblua)"
96719
96720else
96721	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
96722	LUA_LIBS=$pkg_cv_LUA_LIBS
96723        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
96724$as_echo "yes" >&6; }
96725	with_liblua="yes"
96726fi
96727
96728
96729else
96730	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
96731	LUA_LIBS=$pkg_cv_LUA_LIBS
96732        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
96733$as_echo "yes" >&6; }
96734	with_liblua="yes"
96735fi
96736
96737
96738elif test $pkg_failed = untried; then
96739     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96740$as_echo "no" >&6; }
96741
96742
96743pkg_failed=no
96744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
96745$as_echo_n "checking for LUA... " >&6; }
96746
96747if test -n "$LUA_CFLAGS"; then
96748    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
96749 elif test -n "$PKG_CONFIG"; then
96750    if test -n "$PKG_CONFIG" && \
96751    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
96752  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
96753  ac_status=$?
96754  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96755  test $ac_status = 0; }; then
96756  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
96757		      test "x$?" != "x0" && pkg_failed=yes
96758else
96759  pkg_failed=yes
96760fi
96761 else
96762    pkg_failed=untried
96763fi
96764if test -n "$LUA_LIBS"; then
96765    pkg_cv_LUA_LIBS="$LUA_LIBS"
96766 elif test -n "$PKG_CONFIG"; then
96767    if test -n "$PKG_CONFIG" && \
96768    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
96769  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
96770  ac_status=$?
96771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96772  test $ac_status = 0; }; then
96773  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
96774		      test "x$?" != "x0" && pkg_failed=yes
96775else
96776  pkg_failed=yes
96777fi
96778 else
96779    pkg_failed=untried
96780fi
96781
96782
96783
96784if test $pkg_failed = yes; then
96785   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96786$as_echo "no" >&6; }
96787
96788if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
96789        _pkg_short_errors_supported=yes
96790else
96791        _pkg_short_errors_supported=no
96792fi
96793        if test $_pkg_short_errors_supported = yes; then
96794	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
96795        else
96796	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
96797        fi
96798	# Put the nasty error message in config.log where it belongs
96799	echo "$LUA_PKG_ERRORS" >&5
96800
96801
96802
96803pkg_failed=no
96804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
96805$as_echo_n "checking for LUA... " >&6; }
96806
96807if test -n "$LUA_CFLAGS"; then
96808    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
96809 elif test -n "$PKG_CONFIG"; then
96810    if test -n "$PKG_CONFIG" && \
96811    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
96812  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
96813  ac_status=$?
96814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96815  test $ac_status = 0; }; then
96816  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
96817		      test "x$?" != "x0" && pkg_failed=yes
96818else
96819  pkg_failed=yes
96820fi
96821 else
96822    pkg_failed=untried
96823fi
96824if test -n "$LUA_LIBS"; then
96825    pkg_cv_LUA_LIBS="$LUA_LIBS"
96826 elif test -n "$PKG_CONFIG"; then
96827    if test -n "$PKG_CONFIG" && \
96828    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
96829  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
96830  ac_status=$?
96831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96832  test $ac_status = 0; }; then
96833  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
96834		      test "x$?" != "x0" && pkg_failed=yes
96835else
96836  pkg_failed=yes
96837fi
96838 else
96839    pkg_failed=untried
96840fi
96841
96842
96843
96844if test $pkg_failed = yes; then
96845   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96846$as_echo "no" >&6; }
96847
96848if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
96849        _pkg_short_errors_supported=yes
96850else
96851        _pkg_short_errors_supported=no
96852fi
96853        if test $_pkg_short_errors_supported = yes; then
96854	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
96855        else
96856	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
96857        fi
96858	# Put the nasty error message in config.log where it belongs
96859	echo "$LUA_PKG_ERRORS" >&5
96860
96861	with_liblua="no (pkg-config cannot find liblua)"
96862
96863elif test $pkg_failed = untried; then
96864     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96865$as_echo "no" >&6; }
96866	with_liblua="no (pkg-config cannot find liblua)"
96867
96868else
96869	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
96870	LUA_LIBS=$pkg_cv_LUA_LIBS
96871        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
96872$as_echo "yes" >&6; }
96873	with_liblua="yes"
96874fi
96875
96876
96877elif test $pkg_failed = untried; then
96878     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96879$as_echo "no" >&6; }
96880
96881
96882pkg_failed=no
96883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
96884$as_echo_n "checking for LUA... " >&6; }
96885
96886if test -n "$LUA_CFLAGS"; then
96887    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
96888 elif test -n "$PKG_CONFIG"; then
96889    if test -n "$PKG_CONFIG" && \
96890    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
96891  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
96892  ac_status=$?
96893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96894  test $ac_status = 0; }; then
96895  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
96896		      test "x$?" != "x0" && pkg_failed=yes
96897else
96898  pkg_failed=yes
96899fi
96900 else
96901    pkg_failed=untried
96902fi
96903if test -n "$LUA_LIBS"; then
96904    pkg_cv_LUA_LIBS="$LUA_LIBS"
96905 elif test -n "$PKG_CONFIG"; then
96906    if test -n "$PKG_CONFIG" && \
96907    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
96908  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
96909  ac_status=$?
96910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
96911  test $ac_status = 0; }; then
96912  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
96913		      test "x$?" != "x0" && pkg_failed=yes
96914else
96915  pkg_failed=yes
96916fi
96917 else
96918    pkg_failed=untried
96919fi
96920
96921
96922
96923if test $pkg_failed = yes; then
96924   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96925$as_echo "no" >&6; }
96926
96927if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
96928        _pkg_short_errors_supported=yes
96929else
96930        _pkg_short_errors_supported=no
96931fi
96932        if test $_pkg_short_errors_supported = yes; then
96933	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
96934        else
96935	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
96936        fi
96937	# Put the nasty error message in config.log where it belongs
96938	echo "$LUA_PKG_ERRORS" >&5
96939
96940	with_liblua="no (pkg-config cannot find liblua)"
96941
96942elif test $pkg_failed = untried; then
96943     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96944$as_echo "no" >&6; }
96945	with_liblua="no (pkg-config cannot find liblua)"
96946
96947else
96948	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
96949	LUA_LIBS=$pkg_cv_LUA_LIBS
96950        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
96951$as_echo "yes" >&6; }
96952	with_liblua="yes"
96953fi
96954
96955
96956else
96957	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
96958	LUA_LIBS=$pkg_cv_LUA_LIBS
96959        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
96960$as_echo "yes" >&6; }
96961	with_liblua="yes"
96962fi
96963
96964
96965else
96966	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
96967	LUA_LIBS=$pkg_cv_LUA_LIBS
96968        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
96969$as_echo "yes" >&6; }
96970	with_liblua="yes"
96971fi
96972
96973
96974else
96975	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
96976	LUA_LIBS=$pkg_cv_LUA_LIBS
96977        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
96978$as_echo "yes" >&6; }
96979	with_liblua="yes"
96980fi
96981
96982
96983else
96984	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
96985	LUA_LIBS=$pkg_cv_LUA_LIBS
96986        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
96987$as_echo "yes" >&6; }
96988	with_liblua="yes"
96989fi
96990
96991
96992else
96993	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
96994	LUA_LIBS=$pkg_cv_LUA_LIBS
96995        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
96996$as_echo "yes" >&6; }
96997	with_liblua="yes"
96998fi
96999
97000
97001elif test $pkg_failed = untried; then
97002     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97003$as_echo "no" >&6; }
97004
97005
97006pkg_failed=no
97007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
97008$as_echo_n "checking for LUA... " >&6; }
97009
97010if test -n "$LUA_CFLAGS"; then
97011    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
97012 elif test -n "$PKG_CONFIG"; then
97013    if test -n "$PKG_CONFIG" && \
97014    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
97015  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
97016  ac_status=$?
97017  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97018  test $ac_status = 0; }; then
97019  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.2" 2>/dev/null`
97020		      test "x$?" != "x0" && pkg_failed=yes
97021else
97022  pkg_failed=yes
97023fi
97024 else
97025    pkg_failed=untried
97026fi
97027if test -n "$LUA_LIBS"; then
97028    pkg_cv_LUA_LIBS="$LUA_LIBS"
97029 elif test -n "$PKG_CONFIG"; then
97030    if test -n "$PKG_CONFIG" && \
97031    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5
97032  ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5
97033  ac_status=$?
97034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97035  test $ac_status = 0; }; then
97036  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.2" 2>/dev/null`
97037		      test "x$?" != "x0" && pkg_failed=yes
97038else
97039  pkg_failed=yes
97040fi
97041 else
97042    pkg_failed=untried
97043fi
97044
97045
97046
97047if test $pkg_failed = yes; then
97048   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97049$as_echo "no" >&6; }
97050
97051if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
97052        _pkg_short_errors_supported=yes
97053else
97054        _pkg_short_errors_supported=no
97055fi
97056        if test $_pkg_short_errors_supported = yes; then
97057	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.2" 2>&1`
97058        else
97059	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.2" 2>&1`
97060        fi
97061	# Put the nasty error message in config.log where it belongs
97062	echo "$LUA_PKG_ERRORS" >&5
97063
97064
97065
97066pkg_failed=no
97067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
97068$as_echo_n "checking for LUA... " >&6; }
97069
97070if test -n "$LUA_CFLAGS"; then
97071    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
97072 elif test -n "$PKG_CONFIG"; then
97073    if test -n "$PKG_CONFIG" && \
97074    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
97075  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
97076  ac_status=$?
97077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97078  test $ac_status = 0; }; then
97079  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
97080		      test "x$?" != "x0" && pkg_failed=yes
97081else
97082  pkg_failed=yes
97083fi
97084 else
97085    pkg_failed=untried
97086fi
97087if test -n "$LUA_LIBS"; then
97088    pkg_cv_LUA_LIBS="$LUA_LIBS"
97089 elif test -n "$PKG_CONFIG"; then
97090    if test -n "$PKG_CONFIG" && \
97091    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
97092  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
97093  ac_status=$?
97094  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97095  test $ac_status = 0; }; then
97096  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
97097		      test "x$?" != "x0" && pkg_failed=yes
97098else
97099  pkg_failed=yes
97100fi
97101 else
97102    pkg_failed=untried
97103fi
97104
97105
97106
97107if test $pkg_failed = yes; then
97108   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97109$as_echo "no" >&6; }
97110
97111if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
97112        _pkg_short_errors_supported=yes
97113else
97114        _pkg_short_errors_supported=no
97115fi
97116        if test $_pkg_short_errors_supported = yes; then
97117	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
97118        else
97119	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
97120        fi
97121	# Put the nasty error message in config.log where it belongs
97122	echo "$LUA_PKG_ERRORS" >&5
97123
97124
97125
97126pkg_failed=no
97127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
97128$as_echo_n "checking for LUA... " >&6; }
97129
97130if test -n "$LUA_CFLAGS"; then
97131    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
97132 elif test -n "$PKG_CONFIG"; then
97133    if test -n "$PKG_CONFIG" && \
97134    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
97135  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
97136  ac_status=$?
97137  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97138  test $ac_status = 0; }; then
97139  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
97140		      test "x$?" != "x0" && pkg_failed=yes
97141else
97142  pkg_failed=yes
97143fi
97144 else
97145    pkg_failed=untried
97146fi
97147if test -n "$LUA_LIBS"; then
97148    pkg_cv_LUA_LIBS="$LUA_LIBS"
97149 elif test -n "$PKG_CONFIG"; then
97150    if test -n "$PKG_CONFIG" && \
97151    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
97152  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
97153  ac_status=$?
97154  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97155  test $ac_status = 0; }; then
97156  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
97157		      test "x$?" != "x0" && pkg_failed=yes
97158else
97159  pkg_failed=yes
97160fi
97161 else
97162    pkg_failed=untried
97163fi
97164
97165
97166
97167if test $pkg_failed = yes; then
97168   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97169$as_echo "no" >&6; }
97170
97171if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
97172        _pkg_short_errors_supported=yes
97173else
97174        _pkg_short_errors_supported=no
97175fi
97176        if test $_pkg_short_errors_supported = yes; then
97177	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
97178        else
97179	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
97180        fi
97181	# Put the nasty error message in config.log where it belongs
97182	echo "$LUA_PKG_ERRORS" >&5
97183
97184
97185
97186pkg_failed=no
97187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
97188$as_echo_n "checking for LUA... " >&6; }
97189
97190if test -n "$LUA_CFLAGS"; then
97191    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
97192 elif test -n "$PKG_CONFIG"; then
97193    if test -n "$PKG_CONFIG" && \
97194    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
97195  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
97196  ac_status=$?
97197  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97198  test $ac_status = 0; }; then
97199  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
97200		      test "x$?" != "x0" && pkg_failed=yes
97201else
97202  pkg_failed=yes
97203fi
97204 else
97205    pkg_failed=untried
97206fi
97207if test -n "$LUA_LIBS"; then
97208    pkg_cv_LUA_LIBS="$LUA_LIBS"
97209 elif test -n "$PKG_CONFIG"; then
97210    if test -n "$PKG_CONFIG" && \
97211    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
97212  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
97213  ac_status=$?
97214  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97215  test $ac_status = 0; }; then
97216  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
97217		      test "x$?" != "x0" && pkg_failed=yes
97218else
97219  pkg_failed=yes
97220fi
97221 else
97222    pkg_failed=untried
97223fi
97224
97225
97226
97227if test $pkg_failed = yes; then
97228   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97229$as_echo "no" >&6; }
97230
97231if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
97232        _pkg_short_errors_supported=yes
97233else
97234        _pkg_short_errors_supported=no
97235fi
97236        if test $_pkg_short_errors_supported = yes; then
97237	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
97238        else
97239	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
97240        fi
97241	# Put the nasty error message in config.log where it belongs
97242	echo "$LUA_PKG_ERRORS" >&5
97243
97244
97245
97246pkg_failed=no
97247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
97248$as_echo_n "checking for LUA... " >&6; }
97249
97250if test -n "$LUA_CFLAGS"; then
97251    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
97252 elif test -n "$PKG_CONFIG"; then
97253    if test -n "$PKG_CONFIG" && \
97254    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
97255  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
97256  ac_status=$?
97257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97258  test $ac_status = 0; }; then
97259  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
97260		      test "x$?" != "x0" && pkg_failed=yes
97261else
97262  pkg_failed=yes
97263fi
97264 else
97265    pkg_failed=untried
97266fi
97267if test -n "$LUA_LIBS"; then
97268    pkg_cv_LUA_LIBS="$LUA_LIBS"
97269 elif test -n "$PKG_CONFIG"; then
97270    if test -n "$PKG_CONFIG" && \
97271    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
97272  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
97273  ac_status=$?
97274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97275  test $ac_status = 0; }; then
97276  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
97277		      test "x$?" != "x0" && pkg_failed=yes
97278else
97279  pkg_failed=yes
97280fi
97281 else
97282    pkg_failed=untried
97283fi
97284
97285
97286
97287if test $pkg_failed = yes; then
97288   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97289$as_echo "no" >&6; }
97290
97291if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
97292        _pkg_short_errors_supported=yes
97293else
97294        _pkg_short_errors_supported=no
97295fi
97296        if test $_pkg_short_errors_supported = yes; then
97297	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
97298        else
97299	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
97300        fi
97301	# Put the nasty error message in config.log where it belongs
97302	echo "$LUA_PKG_ERRORS" >&5
97303
97304
97305
97306pkg_failed=no
97307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
97308$as_echo_n "checking for LUA... " >&6; }
97309
97310if test -n "$LUA_CFLAGS"; then
97311    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
97312 elif test -n "$PKG_CONFIG"; then
97313    if test -n "$PKG_CONFIG" && \
97314    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
97315  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
97316  ac_status=$?
97317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97318  test $ac_status = 0; }; then
97319  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
97320		      test "x$?" != "x0" && pkg_failed=yes
97321else
97322  pkg_failed=yes
97323fi
97324 else
97325    pkg_failed=untried
97326fi
97327if test -n "$LUA_LIBS"; then
97328    pkg_cv_LUA_LIBS="$LUA_LIBS"
97329 elif test -n "$PKG_CONFIG"; then
97330    if test -n "$PKG_CONFIG" && \
97331    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
97332  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
97333  ac_status=$?
97334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97335  test $ac_status = 0; }; then
97336  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
97337		      test "x$?" != "x0" && pkg_failed=yes
97338else
97339  pkg_failed=yes
97340fi
97341 else
97342    pkg_failed=untried
97343fi
97344
97345
97346
97347if test $pkg_failed = yes; then
97348   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97349$as_echo "no" >&6; }
97350
97351if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
97352        _pkg_short_errors_supported=yes
97353else
97354        _pkg_short_errors_supported=no
97355fi
97356        if test $_pkg_short_errors_supported = yes; then
97357	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
97358        else
97359	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
97360        fi
97361	# Put the nasty error message in config.log where it belongs
97362	echo "$LUA_PKG_ERRORS" >&5
97363
97364	with_liblua="no (pkg-config cannot find liblua)"
97365
97366elif test $pkg_failed = untried; then
97367     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97368$as_echo "no" >&6; }
97369	with_liblua="no (pkg-config cannot find liblua)"
97370
97371else
97372	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
97373	LUA_LIBS=$pkg_cv_LUA_LIBS
97374        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
97375$as_echo "yes" >&6; }
97376	with_liblua="yes"
97377fi
97378
97379
97380elif test $pkg_failed = untried; then
97381     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97382$as_echo "no" >&6; }
97383
97384
97385pkg_failed=no
97386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
97387$as_echo_n "checking for LUA... " >&6; }
97388
97389if test -n "$LUA_CFLAGS"; then
97390    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
97391 elif test -n "$PKG_CONFIG"; then
97392    if test -n "$PKG_CONFIG" && \
97393    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
97394  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
97395  ac_status=$?
97396  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97397  test $ac_status = 0; }; then
97398  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
97399		      test "x$?" != "x0" && pkg_failed=yes
97400else
97401  pkg_failed=yes
97402fi
97403 else
97404    pkg_failed=untried
97405fi
97406if test -n "$LUA_LIBS"; then
97407    pkg_cv_LUA_LIBS="$LUA_LIBS"
97408 elif test -n "$PKG_CONFIG"; then
97409    if test -n "$PKG_CONFIG" && \
97410    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
97411  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
97412  ac_status=$?
97413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97414  test $ac_status = 0; }; then
97415  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
97416		      test "x$?" != "x0" && pkg_failed=yes
97417else
97418  pkg_failed=yes
97419fi
97420 else
97421    pkg_failed=untried
97422fi
97423
97424
97425
97426if test $pkg_failed = yes; then
97427   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97428$as_echo "no" >&6; }
97429
97430if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
97431        _pkg_short_errors_supported=yes
97432else
97433        _pkg_short_errors_supported=no
97434fi
97435        if test $_pkg_short_errors_supported = yes; then
97436	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
97437        else
97438	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
97439        fi
97440	# Put the nasty error message in config.log where it belongs
97441	echo "$LUA_PKG_ERRORS" >&5
97442
97443	with_liblua="no (pkg-config cannot find liblua)"
97444
97445elif test $pkg_failed = untried; then
97446     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97447$as_echo "no" >&6; }
97448	with_liblua="no (pkg-config cannot find liblua)"
97449
97450else
97451	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
97452	LUA_LIBS=$pkg_cv_LUA_LIBS
97453        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
97454$as_echo "yes" >&6; }
97455	with_liblua="yes"
97456fi
97457
97458
97459else
97460	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
97461	LUA_LIBS=$pkg_cv_LUA_LIBS
97462        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
97463$as_echo "yes" >&6; }
97464	with_liblua="yes"
97465fi
97466
97467
97468elif test $pkg_failed = untried; then
97469     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97470$as_echo "no" >&6; }
97471
97472
97473pkg_failed=no
97474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
97475$as_echo_n "checking for LUA... " >&6; }
97476
97477if test -n "$LUA_CFLAGS"; then
97478    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
97479 elif test -n "$PKG_CONFIG"; then
97480    if test -n "$PKG_CONFIG" && \
97481    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
97482  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
97483  ac_status=$?
97484  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97485  test $ac_status = 0; }; then
97486  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
97487		      test "x$?" != "x0" && pkg_failed=yes
97488else
97489  pkg_failed=yes
97490fi
97491 else
97492    pkg_failed=untried
97493fi
97494if test -n "$LUA_LIBS"; then
97495    pkg_cv_LUA_LIBS="$LUA_LIBS"
97496 elif test -n "$PKG_CONFIG"; then
97497    if test -n "$PKG_CONFIG" && \
97498    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
97499  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
97500  ac_status=$?
97501  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97502  test $ac_status = 0; }; then
97503  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
97504		      test "x$?" != "x0" && pkg_failed=yes
97505else
97506  pkg_failed=yes
97507fi
97508 else
97509    pkg_failed=untried
97510fi
97511
97512
97513
97514if test $pkg_failed = yes; then
97515   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97516$as_echo "no" >&6; }
97517
97518if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
97519        _pkg_short_errors_supported=yes
97520else
97521        _pkg_short_errors_supported=no
97522fi
97523        if test $_pkg_short_errors_supported = yes; then
97524	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
97525        else
97526	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
97527        fi
97528	# Put the nasty error message in config.log where it belongs
97529	echo "$LUA_PKG_ERRORS" >&5
97530
97531
97532
97533pkg_failed=no
97534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
97535$as_echo_n "checking for LUA... " >&6; }
97536
97537if test -n "$LUA_CFLAGS"; then
97538    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
97539 elif test -n "$PKG_CONFIG"; then
97540    if test -n "$PKG_CONFIG" && \
97541    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
97542  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
97543  ac_status=$?
97544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97545  test $ac_status = 0; }; then
97546  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
97547		      test "x$?" != "x0" && pkg_failed=yes
97548else
97549  pkg_failed=yes
97550fi
97551 else
97552    pkg_failed=untried
97553fi
97554if test -n "$LUA_LIBS"; then
97555    pkg_cv_LUA_LIBS="$LUA_LIBS"
97556 elif test -n "$PKG_CONFIG"; then
97557    if test -n "$PKG_CONFIG" && \
97558    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
97559  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
97560  ac_status=$?
97561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97562  test $ac_status = 0; }; then
97563  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
97564		      test "x$?" != "x0" && pkg_failed=yes
97565else
97566  pkg_failed=yes
97567fi
97568 else
97569    pkg_failed=untried
97570fi
97571
97572
97573
97574if test $pkg_failed = yes; then
97575   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97576$as_echo "no" >&6; }
97577
97578if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
97579        _pkg_short_errors_supported=yes
97580else
97581        _pkg_short_errors_supported=no
97582fi
97583        if test $_pkg_short_errors_supported = yes; then
97584	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
97585        else
97586	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
97587        fi
97588	# Put the nasty error message in config.log where it belongs
97589	echo "$LUA_PKG_ERRORS" >&5
97590
97591	with_liblua="no (pkg-config cannot find liblua)"
97592
97593elif test $pkg_failed = untried; then
97594     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97595$as_echo "no" >&6; }
97596	with_liblua="no (pkg-config cannot find liblua)"
97597
97598else
97599	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
97600	LUA_LIBS=$pkg_cv_LUA_LIBS
97601        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
97602$as_echo "yes" >&6; }
97603	with_liblua="yes"
97604fi
97605
97606
97607elif test $pkg_failed = untried; then
97608     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97609$as_echo "no" >&6; }
97610
97611
97612pkg_failed=no
97613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
97614$as_echo_n "checking for LUA... " >&6; }
97615
97616if test -n "$LUA_CFLAGS"; then
97617    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
97618 elif test -n "$PKG_CONFIG"; then
97619    if test -n "$PKG_CONFIG" && \
97620    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
97621  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
97622  ac_status=$?
97623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97624  test $ac_status = 0; }; then
97625  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
97626		      test "x$?" != "x0" && pkg_failed=yes
97627else
97628  pkg_failed=yes
97629fi
97630 else
97631    pkg_failed=untried
97632fi
97633if test -n "$LUA_LIBS"; then
97634    pkg_cv_LUA_LIBS="$LUA_LIBS"
97635 elif test -n "$PKG_CONFIG"; then
97636    if test -n "$PKG_CONFIG" && \
97637    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
97638  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
97639  ac_status=$?
97640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97641  test $ac_status = 0; }; then
97642  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
97643		      test "x$?" != "x0" && pkg_failed=yes
97644else
97645  pkg_failed=yes
97646fi
97647 else
97648    pkg_failed=untried
97649fi
97650
97651
97652
97653if test $pkg_failed = yes; then
97654   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97655$as_echo "no" >&6; }
97656
97657if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
97658        _pkg_short_errors_supported=yes
97659else
97660        _pkg_short_errors_supported=no
97661fi
97662        if test $_pkg_short_errors_supported = yes; then
97663	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
97664        else
97665	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
97666        fi
97667	# Put the nasty error message in config.log where it belongs
97668	echo "$LUA_PKG_ERRORS" >&5
97669
97670	with_liblua="no (pkg-config cannot find liblua)"
97671
97672elif test $pkg_failed = untried; then
97673     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97674$as_echo "no" >&6; }
97675	with_liblua="no (pkg-config cannot find liblua)"
97676
97677else
97678	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
97679	LUA_LIBS=$pkg_cv_LUA_LIBS
97680        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
97681$as_echo "yes" >&6; }
97682	with_liblua="yes"
97683fi
97684
97685
97686else
97687	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
97688	LUA_LIBS=$pkg_cv_LUA_LIBS
97689        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
97690$as_echo "yes" >&6; }
97691	with_liblua="yes"
97692fi
97693
97694
97695else
97696	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
97697	LUA_LIBS=$pkg_cv_LUA_LIBS
97698        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
97699$as_echo "yes" >&6; }
97700	with_liblua="yes"
97701fi
97702
97703
97704elif test $pkg_failed = untried; then
97705     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97706$as_echo "no" >&6; }
97707
97708
97709pkg_failed=no
97710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
97711$as_echo_n "checking for LUA... " >&6; }
97712
97713if test -n "$LUA_CFLAGS"; then
97714    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
97715 elif test -n "$PKG_CONFIG"; then
97716    if test -n "$PKG_CONFIG" && \
97717    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
97718  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
97719  ac_status=$?
97720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97721  test $ac_status = 0; }; then
97722  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
97723		      test "x$?" != "x0" && pkg_failed=yes
97724else
97725  pkg_failed=yes
97726fi
97727 else
97728    pkg_failed=untried
97729fi
97730if test -n "$LUA_LIBS"; then
97731    pkg_cv_LUA_LIBS="$LUA_LIBS"
97732 elif test -n "$PKG_CONFIG"; then
97733    if test -n "$PKG_CONFIG" && \
97734    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
97735  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
97736  ac_status=$?
97737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97738  test $ac_status = 0; }; then
97739  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
97740		      test "x$?" != "x0" && pkg_failed=yes
97741else
97742  pkg_failed=yes
97743fi
97744 else
97745    pkg_failed=untried
97746fi
97747
97748
97749
97750if test $pkg_failed = yes; then
97751   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97752$as_echo "no" >&6; }
97753
97754if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
97755        _pkg_short_errors_supported=yes
97756else
97757        _pkg_short_errors_supported=no
97758fi
97759        if test $_pkg_short_errors_supported = yes; then
97760	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
97761        else
97762	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
97763        fi
97764	# Put the nasty error message in config.log where it belongs
97765	echo "$LUA_PKG_ERRORS" >&5
97766
97767
97768
97769pkg_failed=no
97770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
97771$as_echo_n "checking for LUA... " >&6; }
97772
97773if test -n "$LUA_CFLAGS"; then
97774    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
97775 elif test -n "$PKG_CONFIG"; then
97776    if test -n "$PKG_CONFIG" && \
97777    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
97778  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
97779  ac_status=$?
97780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97781  test $ac_status = 0; }; then
97782  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
97783		      test "x$?" != "x0" && pkg_failed=yes
97784else
97785  pkg_failed=yes
97786fi
97787 else
97788    pkg_failed=untried
97789fi
97790if test -n "$LUA_LIBS"; then
97791    pkg_cv_LUA_LIBS="$LUA_LIBS"
97792 elif test -n "$PKG_CONFIG"; then
97793    if test -n "$PKG_CONFIG" && \
97794    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
97795  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
97796  ac_status=$?
97797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97798  test $ac_status = 0; }; then
97799  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
97800		      test "x$?" != "x0" && pkg_failed=yes
97801else
97802  pkg_failed=yes
97803fi
97804 else
97805    pkg_failed=untried
97806fi
97807
97808
97809
97810if test $pkg_failed = yes; then
97811   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97812$as_echo "no" >&6; }
97813
97814if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
97815        _pkg_short_errors_supported=yes
97816else
97817        _pkg_short_errors_supported=no
97818fi
97819        if test $_pkg_short_errors_supported = yes; then
97820	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
97821        else
97822	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
97823        fi
97824	# Put the nasty error message in config.log where it belongs
97825	echo "$LUA_PKG_ERRORS" >&5
97826
97827
97828
97829pkg_failed=no
97830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
97831$as_echo_n "checking for LUA... " >&6; }
97832
97833if test -n "$LUA_CFLAGS"; then
97834    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
97835 elif test -n "$PKG_CONFIG"; then
97836    if test -n "$PKG_CONFIG" && \
97837    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
97838  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
97839  ac_status=$?
97840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97841  test $ac_status = 0; }; then
97842  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
97843		      test "x$?" != "x0" && pkg_failed=yes
97844else
97845  pkg_failed=yes
97846fi
97847 else
97848    pkg_failed=untried
97849fi
97850if test -n "$LUA_LIBS"; then
97851    pkg_cv_LUA_LIBS="$LUA_LIBS"
97852 elif test -n "$PKG_CONFIG"; then
97853    if test -n "$PKG_CONFIG" && \
97854    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
97855  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
97856  ac_status=$?
97857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97858  test $ac_status = 0; }; then
97859  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
97860		      test "x$?" != "x0" && pkg_failed=yes
97861else
97862  pkg_failed=yes
97863fi
97864 else
97865    pkg_failed=untried
97866fi
97867
97868
97869
97870if test $pkg_failed = yes; then
97871   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97872$as_echo "no" >&6; }
97873
97874if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
97875        _pkg_short_errors_supported=yes
97876else
97877        _pkg_short_errors_supported=no
97878fi
97879        if test $_pkg_short_errors_supported = yes; then
97880	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
97881        else
97882	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
97883        fi
97884	# Put the nasty error message in config.log where it belongs
97885	echo "$LUA_PKG_ERRORS" >&5
97886
97887	with_liblua="no (pkg-config cannot find liblua)"
97888
97889elif test $pkg_failed = untried; then
97890     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97891$as_echo "no" >&6; }
97892	with_liblua="no (pkg-config cannot find liblua)"
97893
97894else
97895	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
97896	LUA_LIBS=$pkg_cv_LUA_LIBS
97897        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
97898$as_echo "yes" >&6; }
97899	with_liblua="yes"
97900fi
97901
97902
97903elif test $pkg_failed = untried; then
97904     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97905$as_echo "no" >&6; }
97906
97907
97908pkg_failed=no
97909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
97910$as_echo_n "checking for LUA... " >&6; }
97911
97912if test -n "$LUA_CFLAGS"; then
97913    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
97914 elif test -n "$PKG_CONFIG"; then
97915    if test -n "$PKG_CONFIG" && \
97916    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
97917  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
97918  ac_status=$?
97919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97920  test $ac_status = 0; }; then
97921  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
97922		      test "x$?" != "x0" && pkg_failed=yes
97923else
97924  pkg_failed=yes
97925fi
97926 else
97927    pkg_failed=untried
97928fi
97929if test -n "$LUA_LIBS"; then
97930    pkg_cv_LUA_LIBS="$LUA_LIBS"
97931 elif test -n "$PKG_CONFIG"; then
97932    if test -n "$PKG_CONFIG" && \
97933    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
97934  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
97935  ac_status=$?
97936  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
97937  test $ac_status = 0; }; then
97938  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
97939		      test "x$?" != "x0" && pkg_failed=yes
97940else
97941  pkg_failed=yes
97942fi
97943 else
97944    pkg_failed=untried
97945fi
97946
97947
97948
97949if test $pkg_failed = yes; then
97950   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97951$as_echo "no" >&6; }
97952
97953if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
97954        _pkg_short_errors_supported=yes
97955else
97956        _pkg_short_errors_supported=no
97957fi
97958        if test $_pkg_short_errors_supported = yes; then
97959	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
97960        else
97961	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
97962        fi
97963	# Put the nasty error message in config.log where it belongs
97964	echo "$LUA_PKG_ERRORS" >&5
97965
97966	with_liblua="no (pkg-config cannot find liblua)"
97967
97968elif test $pkg_failed = untried; then
97969     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97970$as_echo "no" >&6; }
97971	with_liblua="no (pkg-config cannot find liblua)"
97972
97973else
97974	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
97975	LUA_LIBS=$pkg_cv_LUA_LIBS
97976        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
97977$as_echo "yes" >&6; }
97978	with_liblua="yes"
97979fi
97980
97981
97982else
97983	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
97984	LUA_LIBS=$pkg_cv_LUA_LIBS
97985        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
97986$as_echo "yes" >&6; }
97987	with_liblua="yes"
97988fi
97989
97990
97991elif test $pkg_failed = untried; then
97992     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97993$as_echo "no" >&6; }
97994
97995
97996pkg_failed=no
97997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
97998$as_echo_n "checking for LUA... " >&6; }
97999
98000if test -n "$LUA_CFLAGS"; then
98001    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
98002 elif test -n "$PKG_CONFIG"; then
98003    if test -n "$PKG_CONFIG" && \
98004    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
98005  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
98006  ac_status=$?
98007  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98008  test $ac_status = 0; }; then
98009  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
98010		      test "x$?" != "x0" && pkg_failed=yes
98011else
98012  pkg_failed=yes
98013fi
98014 else
98015    pkg_failed=untried
98016fi
98017if test -n "$LUA_LIBS"; then
98018    pkg_cv_LUA_LIBS="$LUA_LIBS"
98019 elif test -n "$PKG_CONFIG"; then
98020    if test -n "$PKG_CONFIG" && \
98021    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
98022  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
98023  ac_status=$?
98024  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98025  test $ac_status = 0; }; then
98026  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
98027		      test "x$?" != "x0" && pkg_failed=yes
98028else
98029  pkg_failed=yes
98030fi
98031 else
98032    pkg_failed=untried
98033fi
98034
98035
98036
98037if test $pkg_failed = yes; then
98038   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98039$as_echo "no" >&6; }
98040
98041if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
98042        _pkg_short_errors_supported=yes
98043else
98044        _pkg_short_errors_supported=no
98045fi
98046        if test $_pkg_short_errors_supported = yes; then
98047	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
98048        else
98049	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
98050        fi
98051	# Put the nasty error message in config.log where it belongs
98052	echo "$LUA_PKG_ERRORS" >&5
98053
98054
98055
98056pkg_failed=no
98057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
98058$as_echo_n "checking for LUA... " >&6; }
98059
98060if test -n "$LUA_CFLAGS"; then
98061    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
98062 elif test -n "$PKG_CONFIG"; then
98063    if test -n "$PKG_CONFIG" && \
98064    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
98065  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
98066  ac_status=$?
98067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98068  test $ac_status = 0; }; then
98069  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
98070		      test "x$?" != "x0" && pkg_failed=yes
98071else
98072  pkg_failed=yes
98073fi
98074 else
98075    pkg_failed=untried
98076fi
98077if test -n "$LUA_LIBS"; then
98078    pkg_cv_LUA_LIBS="$LUA_LIBS"
98079 elif test -n "$PKG_CONFIG"; then
98080    if test -n "$PKG_CONFIG" && \
98081    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
98082  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
98083  ac_status=$?
98084  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98085  test $ac_status = 0; }; then
98086  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
98087		      test "x$?" != "x0" && pkg_failed=yes
98088else
98089  pkg_failed=yes
98090fi
98091 else
98092    pkg_failed=untried
98093fi
98094
98095
98096
98097if test $pkg_failed = yes; then
98098   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98099$as_echo "no" >&6; }
98100
98101if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
98102        _pkg_short_errors_supported=yes
98103else
98104        _pkg_short_errors_supported=no
98105fi
98106        if test $_pkg_short_errors_supported = yes; then
98107	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
98108        else
98109	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
98110        fi
98111	# Put the nasty error message in config.log where it belongs
98112	echo "$LUA_PKG_ERRORS" >&5
98113
98114	with_liblua="no (pkg-config cannot find liblua)"
98115
98116elif test $pkg_failed = untried; then
98117     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98118$as_echo "no" >&6; }
98119	with_liblua="no (pkg-config cannot find liblua)"
98120
98121else
98122	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
98123	LUA_LIBS=$pkg_cv_LUA_LIBS
98124        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
98125$as_echo "yes" >&6; }
98126	with_liblua="yes"
98127fi
98128
98129
98130elif test $pkg_failed = untried; then
98131     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98132$as_echo "no" >&6; }
98133
98134
98135pkg_failed=no
98136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
98137$as_echo_n "checking for LUA... " >&6; }
98138
98139if test -n "$LUA_CFLAGS"; then
98140    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
98141 elif test -n "$PKG_CONFIG"; then
98142    if test -n "$PKG_CONFIG" && \
98143    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
98144  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
98145  ac_status=$?
98146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98147  test $ac_status = 0; }; then
98148  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
98149		      test "x$?" != "x0" && pkg_failed=yes
98150else
98151  pkg_failed=yes
98152fi
98153 else
98154    pkg_failed=untried
98155fi
98156if test -n "$LUA_LIBS"; then
98157    pkg_cv_LUA_LIBS="$LUA_LIBS"
98158 elif test -n "$PKG_CONFIG"; then
98159    if test -n "$PKG_CONFIG" && \
98160    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
98161  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
98162  ac_status=$?
98163  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98164  test $ac_status = 0; }; then
98165  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
98166		      test "x$?" != "x0" && pkg_failed=yes
98167else
98168  pkg_failed=yes
98169fi
98170 else
98171    pkg_failed=untried
98172fi
98173
98174
98175
98176if test $pkg_failed = yes; then
98177   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98178$as_echo "no" >&6; }
98179
98180if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
98181        _pkg_short_errors_supported=yes
98182else
98183        _pkg_short_errors_supported=no
98184fi
98185        if test $_pkg_short_errors_supported = yes; then
98186	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
98187        else
98188	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
98189        fi
98190	# Put the nasty error message in config.log where it belongs
98191	echo "$LUA_PKG_ERRORS" >&5
98192
98193	with_liblua="no (pkg-config cannot find liblua)"
98194
98195elif test $pkg_failed = untried; then
98196     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98197$as_echo "no" >&6; }
98198	with_liblua="no (pkg-config cannot find liblua)"
98199
98200else
98201	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
98202	LUA_LIBS=$pkg_cv_LUA_LIBS
98203        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
98204$as_echo "yes" >&6; }
98205	with_liblua="yes"
98206fi
98207
98208
98209else
98210	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
98211	LUA_LIBS=$pkg_cv_LUA_LIBS
98212        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
98213$as_echo "yes" >&6; }
98214	with_liblua="yes"
98215fi
98216
98217
98218else
98219	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
98220	LUA_LIBS=$pkg_cv_LUA_LIBS
98221        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
98222$as_echo "yes" >&6; }
98223	with_liblua="yes"
98224fi
98225
98226
98227else
98228	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
98229	LUA_LIBS=$pkg_cv_LUA_LIBS
98230        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
98231$as_echo "yes" >&6; }
98232	with_liblua="yes"
98233fi
98234
98235
98236elif test $pkg_failed = untried; then
98237     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98238$as_echo "no" >&6; }
98239
98240
98241pkg_failed=no
98242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
98243$as_echo_n "checking for LUA... " >&6; }
98244
98245if test -n "$LUA_CFLAGS"; then
98246    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
98247 elif test -n "$PKG_CONFIG"; then
98248    if test -n "$PKG_CONFIG" && \
98249    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
98250  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
98251  ac_status=$?
98252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98253  test $ac_status = 0; }; then
98254  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
98255		      test "x$?" != "x0" && pkg_failed=yes
98256else
98257  pkg_failed=yes
98258fi
98259 else
98260    pkg_failed=untried
98261fi
98262if test -n "$LUA_LIBS"; then
98263    pkg_cv_LUA_LIBS="$LUA_LIBS"
98264 elif test -n "$PKG_CONFIG"; then
98265    if test -n "$PKG_CONFIG" && \
98266    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
98267  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
98268  ac_status=$?
98269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98270  test $ac_status = 0; }; then
98271  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
98272		      test "x$?" != "x0" && pkg_failed=yes
98273else
98274  pkg_failed=yes
98275fi
98276 else
98277    pkg_failed=untried
98278fi
98279
98280
98281
98282if test $pkg_failed = yes; then
98283   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98284$as_echo "no" >&6; }
98285
98286if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
98287        _pkg_short_errors_supported=yes
98288else
98289        _pkg_short_errors_supported=no
98290fi
98291        if test $_pkg_short_errors_supported = yes; then
98292	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
98293        else
98294	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
98295        fi
98296	# Put the nasty error message in config.log where it belongs
98297	echo "$LUA_PKG_ERRORS" >&5
98298
98299
98300
98301pkg_failed=no
98302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
98303$as_echo_n "checking for LUA... " >&6; }
98304
98305if test -n "$LUA_CFLAGS"; then
98306    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
98307 elif test -n "$PKG_CONFIG"; then
98308    if test -n "$PKG_CONFIG" && \
98309    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
98310  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
98311  ac_status=$?
98312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98313  test $ac_status = 0; }; then
98314  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
98315		      test "x$?" != "x0" && pkg_failed=yes
98316else
98317  pkg_failed=yes
98318fi
98319 else
98320    pkg_failed=untried
98321fi
98322if test -n "$LUA_LIBS"; then
98323    pkg_cv_LUA_LIBS="$LUA_LIBS"
98324 elif test -n "$PKG_CONFIG"; then
98325    if test -n "$PKG_CONFIG" && \
98326    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
98327  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
98328  ac_status=$?
98329  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98330  test $ac_status = 0; }; then
98331  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
98332		      test "x$?" != "x0" && pkg_failed=yes
98333else
98334  pkg_failed=yes
98335fi
98336 else
98337    pkg_failed=untried
98338fi
98339
98340
98341
98342if test $pkg_failed = yes; then
98343   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98344$as_echo "no" >&6; }
98345
98346if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
98347        _pkg_short_errors_supported=yes
98348else
98349        _pkg_short_errors_supported=no
98350fi
98351        if test $_pkg_short_errors_supported = yes; then
98352	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
98353        else
98354	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
98355        fi
98356	# Put the nasty error message in config.log where it belongs
98357	echo "$LUA_PKG_ERRORS" >&5
98358
98359
98360
98361pkg_failed=no
98362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
98363$as_echo_n "checking for LUA... " >&6; }
98364
98365if test -n "$LUA_CFLAGS"; then
98366    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
98367 elif test -n "$PKG_CONFIG"; then
98368    if test -n "$PKG_CONFIG" && \
98369    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
98370  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
98371  ac_status=$?
98372  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98373  test $ac_status = 0; }; then
98374  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
98375		      test "x$?" != "x0" && pkg_failed=yes
98376else
98377  pkg_failed=yes
98378fi
98379 else
98380    pkg_failed=untried
98381fi
98382if test -n "$LUA_LIBS"; then
98383    pkg_cv_LUA_LIBS="$LUA_LIBS"
98384 elif test -n "$PKG_CONFIG"; then
98385    if test -n "$PKG_CONFIG" && \
98386    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
98387  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
98388  ac_status=$?
98389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98390  test $ac_status = 0; }; then
98391  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
98392		      test "x$?" != "x0" && pkg_failed=yes
98393else
98394  pkg_failed=yes
98395fi
98396 else
98397    pkg_failed=untried
98398fi
98399
98400
98401
98402if test $pkg_failed = yes; then
98403   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98404$as_echo "no" >&6; }
98405
98406if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
98407        _pkg_short_errors_supported=yes
98408else
98409        _pkg_short_errors_supported=no
98410fi
98411        if test $_pkg_short_errors_supported = yes; then
98412	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
98413        else
98414	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
98415        fi
98416	# Put the nasty error message in config.log where it belongs
98417	echo "$LUA_PKG_ERRORS" >&5
98418
98419
98420
98421pkg_failed=no
98422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
98423$as_echo_n "checking for LUA... " >&6; }
98424
98425if test -n "$LUA_CFLAGS"; then
98426    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
98427 elif test -n "$PKG_CONFIG"; then
98428    if test -n "$PKG_CONFIG" && \
98429    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
98430  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
98431  ac_status=$?
98432  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98433  test $ac_status = 0; }; then
98434  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
98435		      test "x$?" != "x0" && pkg_failed=yes
98436else
98437  pkg_failed=yes
98438fi
98439 else
98440    pkg_failed=untried
98441fi
98442if test -n "$LUA_LIBS"; then
98443    pkg_cv_LUA_LIBS="$LUA_LIBS"
98444 elif test -n "$PKG_CONFIG"; then
98445    if test -n "$PKG_CONFIG" && \
98446    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
98447  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
98448  ac_status=$?
98449  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98450  test $ac_status = 0; }; then
98451  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
98452		      test "x$?" != "x0" && pkg_failed=yes
98453else
98454  pkg_failed=yes
98455fi
98456 else
98457    pkg_failed=untried
98458fi
98459
98460
98461
98462if test $pkg_failed = yes; then
98463   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98464$as_echo "no" >&6; }
98465
98466if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
98467        _pkg_short_errors_supported=yes
98468else
98469        _pkg_short_errors_supported=no
98470fi
98471        if test $_pkg_short_errors_supported = yes; then
98472	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
98473        else
98474	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
98475        fi
98476	# Put the nasty error message in config.log where it belongs
98477	echo "$LUA_PKG_ERRORS" >&5
98478
98479	with_liblua="no (pkg-config cannot find liblua)"
98480
98481elif test $pkg_failed = untried; then
98482     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98483$as_echo "no" >&6; }
98484	with_liblua="no (pkg-config cannot find liblua)"
98485
98486else
98487	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
98488	LUA_LIBS=$pkg_cv_LUA_LIBS
98489        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
98490$as_echo "yes" >&6; }
98491	with_liblua="yes"
98492fi
98493
98494
98495elif test $pkg_failed = untried; then
98496     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98497$as_echo "no" >&6; }
98498
98499
98500pkg_failed=no
98501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
98502$as_echo_n "checking for LUA... " >&6; }
98503
98504if test -n "$LUA_CFLAGS"; then
98505    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
98506 elif test -n "$PKG_CONFIG"; then
98507    if test -n "$PKG_CONFIG" && \
98508    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
98509  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
98510  ac_status=$?
98511  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98512  test $ac_status = 0; }; then
98513  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
98514		      test "x$?" != "x0" && pkg_failed=yes
98515else
98516  pkg_failed=yes
98517fi
98518 else
98519    pkg_failed=untried
98520fi
98521if test -n "$LUA_LIBS"; then
98522    pkg_cv_LUA_LIBS="$LUA_LIBS"
98523 elif test -n "$PKG_CONFIG"; then
98524    if test -n "$PKG_CONFIG" && \
98525    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
98526  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
98527  ac_status=$?
98528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98529  test $ac_status = 0; }; then
98530  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
98531		      test "x$?" != "x0" && pkg_failed=yes
98532else
98533  pkg_failed=yes
98534fi
98535 else
98536    pkg_failed=untried
98537fi
98538
98539
98540
98541if test $pkg_failed = yes; then
98542   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98543$as_echo "no" >&6; }
98544
98545if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
98546        _pkg_short_errors_supported=yes
98547else
98548        _pkg_short_errors_supported=no
98549fi
98550        if test $_pkg_short_errors_supported = yes; then
98551	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
98552        else
98553	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
98554        fi
98555	# Put the nasty error message in config.log where it belongs
98556	echo "$LUA_PKG_ERRORS" >&5
98557
98558	with_liblua="no (pkg-config cannot find liblua)"
98559
98560elif test $pkg_failed = untried; then
98561     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98562$as_echo "no" >&6; }
98563	with_liblua="no (pkg-config cannot find liblua)"
98564
98565else
98566	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
98567	LUA_LIBS=$pkg_cv_LUA_LIBS
98568        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
98569$as_echo "yes" >&6; }
98570	with_liblua="yes"
98571fi
98572
98573
98574else
98575	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
98576	LUA_LIBS=$pkg_cv_LUA_LIBS
98577        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
98578$as_echo "yes" >&6; }
98579	with_liblua="yes"
98580fi
98581
98582
98583elif test $pkg_failed = untried; then
98584     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98585$as_echo "no" >&6; }
98586
98587
98588pkg_failed=no
98589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
98590$as_echo_n "checking for LUA... " >&6; }
98591
98592if test -n "$LUA_CFLAGS"; then
98593    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
98594 elif test -n "$PKG_CONFIG"; then
98595    if test -n "$PKG_CONFIG" && \
98596    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
98597  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
98598  ac_status=$?
98599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98600  test $ac_status = 0; }; then
98601  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
98602		      test "x$?" != "x0" && pkg_failed=yes
98603else
98604  pkg_failed=yes
98605fi
98606 else
98607    pkg_failed=untried
98608fi
98609if test -n "$LUA_LIBS"; then
98610    pkg_cv_LUA_LIBS="$LUA_LIBS"
98611 elif test -n "$PKG_CONFIG"; then
98612    if test -n "$PKG_CONFIG" && \
98613    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
98614  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
98615  ac_status=$?
98616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98617  test $ac_status = 0; }; then
98618  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
98619		      test "x$?" != "x0" && pkg_failed=yes
98620else
98621  pkg_failed=yes
98622fi
98623 else
98624    pkg_failed=untried
98625fi
98626
98627
98628
98629if test $pkg_failed = yes; then
98630   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98631$as_echo "no" >&6; }
98632
98633if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
98634        _pkg_short_errors_supported=yes
98635else
98636        _pkg_short_errors_supported=no
98637fi
98638        if test $_pkg_short_errors_supported = yes; then
98639	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
98640        else
98641	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
98642        fi
98643	# Put the nasty error message in config.log where it belongs
98644	echo "$LUA_PKG_ERRORS" >&5
98645
98646
98647
98648pkg_failed=no
98649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
98650$as_echo_n "checking for LUA... " >&6; }
98651
98652if test -n "$LUA_CFLAGS"; then
98653    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
98654 elif test -n "$PKG_CONFIG"; then
98655    if test -n "$PKG_CONFIG" && \
98656    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
98657  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
98658  ac_status=$?
98659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98660  test $ac_status = 0; }; then
98661  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
98662		      test "x$?" != "x0" && pkg_failed=yes
98663else
98664  pkg_failed=yes
98665fi
98666 else
98667    pkg_failed=untried
98668fi
98669if test -n "$LUA_LIBS"; then
98670    pkg_cv_LUA_LIBS="$LUA_LIBS"
98671 elif test -n "$PKG_CONFIG"; then
98672    if test -n "$PKG_CONFIG" && \
98673    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
98674  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
98675  ac_status=$?
98676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98677  test $ac_status = 0; }; then
98678  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
98679		      test "x$?" != "x0" && pkg_failed=yes
98680else
98681  pkg_failed=yes
98682fi
98683 else
98684    pkg_failed=untried
98685fi
98686
98687
98688
98689if test $pkg_failed = yes; then
98690   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98691$as_echo "no" >&6; }
98692
98693if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
98694        _pkg_short_errors_supported=yes
98695else
98696        _pkg_short_errors_supported=no
98697fi
98698        if test $_pkg_short_errors_supported = yes; then
98699	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
98700        else
98701	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
98702        fi
98703	# Put the nasty error message in config.log where it belongs
98704	echo "$LUA_PKG_ERRORS" >&5
98705
98706	with_liblua="no (pkg-config cannot find liblua)"
98707
98708elif test $pkg_failed = untried; then
98709     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98710$as_echo "no" >&6; }
98711	with_liblua="no (pkg-config cannot find liblua)"
98712
98713else
98714	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
98715	LUA_LIBS=$pkg_cv_LUA_LIBS
98716        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
98717$as_echo "yes" >&6; }
98718	with_liblua="yes"
98719fi
98720
98721
98722elif test $pkg_failed = untried; then
98723     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98724$as_echo "no" >&6; }
98725
98726
98727pkg_failed=no
98728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
98729$as_echo_n "checking for LUA... " >&6; }
98730
98731if test -n "$LUA_CFLAGS"; then
98732    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
98733 elif test -n "$PKG_CONFIG"; then
98734    if test -n "$PKG_CONFIG" && \
98735    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
98736  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
98737  ac_status=$?
98738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98739  test $ac_status = 0; }; then
98740  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
98741		      test "x$?" != "x0" && pkg_failed=yes
98742else
98743  pkg_failed=yes
98744fi
98745 else
98746    pkg_failed=untried
98747fi
98748if test -n "$LUA_LIBS"; then
98749    pkg_cv_LUA_LIBS="$LUA_LIBS"
98750 elif test -n "$PKG_CONFIG"; then
98751    if test -n "$PKG_CONFIG" && \
98752    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
98753  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
98754  ac_status=$?
98755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98756  test $ac_status = 0; }; then
98757  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
98758		      test "x$?" != "x0" && pkg_failed=yes
98759else
98760  pkg_failed=yes
98761fi
98762 else
98763    pkg_failed=untried
98764fi
98765
98766
98767
98768if test $pkg_failed = yes; then
98769   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98770$as_echo "no" >&6; }
98771
98772if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
98773        _pkg_short_errors_supported=yes
98774else
98775        _pkg_short_errors_supported=no
98776fi
98777        if test $_pkg_short_errors_supported = yes; then
98778	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
98779        else
98780	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
98781        fi
98782	# Put the nasty error message in config.log where it belongs
98783	echo "$LUA_PKG_ERRORS" >&5
98784
98785	with_liblua="no (pkg-config cannot find liblua)"
98786
98787elif test $pkg_failed = untried; then
98788     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98789$as_echo "no" >&6; }
98790	with_liblua="no (pkg-config cannot find liblua)"
98791
98792else
98793	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
98794	LUA_LIBS=$pkg_cv_LUA_LIBS
98795        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
98796$as_echo "yes" >&6; }
98797	with_liblua="yes"
98798fi
98799
98800
98801else
98802	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
98803	LUA_LIBS=$pkg_cv_LUA_LIBS
98804        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
98805$as_echo "yes" >&6; }
98806	with_liblua="yes"
98807fi
98808
98809
98810else
98811	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
98812	LUA_LIBS=$pkg_cv_LUA_LIBS
98813        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
98814$as_echo "yes" >&6; }
98815	with_liblua="yes"
98816fi
98817
98818
98819elif test $pkg_failed = untried; then
98820     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98821$as_echo "no" >&6; }
98822
98823
98824pkg_failed=no
98825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
98826$as_echo_n "checking for LUA... " >&6; }
98827
98828if test -n "$LUA_CFLAGS"; then
98829    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
98830 elif test -n "$PKG_CONFIG"; then
98831    if test -n "$PKG_CONFIG" && \
98832    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
98833  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
98834  ac_status=$?
98835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98836  test $ac_status = 0; }; then
98837  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
98838		      test "x$?" != "x0" && pkg_failed=yes
98839else
98840  pkg_failed=yes
98841fi
98842 else
98843    pkg_failed=untried
98844fi
98845if test -n "$LUA_LIBS"; then
98846    pkg_cv_LUA_LIBS="$LUA_LIBS"
98847 elif test -n "$PKG_CONFIG"; then
98848    if test -n "$PKG_CONFIG" && \
98849    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
98850  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
98851  ac_status=$?
98852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98853  test $ac_status = 0; }; then
98854  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
98855		      test "x$?" != "x0" && pkg_failed=yes
98856else
98857  pkg_failed=yes
98858fi
98859 else
98860    pkg_failed=untried
98861fi
98862
98863
98864
98865if test $pkg_failed = yes; then
98866   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98867$as_echo "no" >&6; }
98868
98869if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
98870        _pkg_short_errors_supported=yes
98871else
98872        _pkg_short_errors_supported=no
98873fi
98874        if test $_pkg_short_errors_supported = yes; then
98875	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
98876        else
98877	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
98878        fi
98879	# Put the nasty error message in config.log where it belongs
98880	echo "$LUA_PKG_ERRORS" >&5
98881
98882
98883
98884pkg_failed=no
98885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
98886$as_echo_n "checking for LUA... " >&6; }
98887
98888if test -n "$LUA_CFLAGS"; then
98889    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
98890 elif test -n "$PKG_CONFIG"; then
98891    if test -n "$PKG_CONFIG" && \
98892    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
98893  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
98894  ac_status=$?
98895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98896  test $ac_status = 0; }; then
98897  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
98898		      test "x$?" != "x0" && pkg_failed=yes
98899else
98900  pkg_failed=yes
98901fi
98902 else
98903    pkg_failed=untried
98904fi
98905if test -n "$LUA_LIBS"; then
98906    pkg_cv_LUA_LIBS="$LUA_LIBS"
98907 elif test -n "$PKG_CONFIG"; then
98908    if test -n "$PKG_CONFIG" && \
98909    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
98910  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
98911  ac_status=$?
98912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98913  test $ac_status = 0; }; then
98914  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
98915		      test "x$?" != "x0" && pkg_failed=yes
98916else
98917  pkg_failed=yes
98918fi
98919 else
98920    pkg_failed=untried
98921fi
98922
98923
98924
98925if test $pkg_failed = yes; then
98926   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98927$as_echo "no" >&6; }
98928
98929if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
98930        _pkg_short_errors_supported=yes
98931else
98932        _pkg_short_errors_supported=no
98933fi
98934        if test $_pkg_short_errors_supported = yes; then
98935	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
98936        else
98937	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
98938        fi
98939	# Put the nasty error message in config.log where it belongs
98940	echo "$LUA_PKG_ERRORS" >&5
98941
98942
98943
98944pkg_failed=no
98945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
98946$as_echo_n "checking for LUA... " >&6; }
98947
98948if test -n "$LUA_CFLAGS"; then
98949    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
98950 elif test -n "$PKG_CONFIG"; then
98951    if test -n "$PKG_CONFIG" && \
98952    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
98953  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
98954  ac_status=$?
98955  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98956  test $ac_status = 0; }; then
98957  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
98958		      test "x$?" != "x0" && pkg_failed=yes
98959else
98960  pkg_failed=yes
98961fi
98962 else
98963    pkg_failed=untried
98964fi
98965if test -n "$LUA_LIBS"; then
98966    pkg_cv_LUA_LIBS="$LUA_LIBS"
98967 elif test -n "$PKG_CONFIG"; then
98968    if test -n "$PKG_CONFIG" && \
98969    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
98970  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
98971  ac_status=$?
98972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98973  test $ac_status = 0; }; then
98974  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
98975		      test "x$?" != "x0" && pkg_failed=yes
98976else
98977  pkg_failed=yes
98978fi
98979 else
98980    pkg_failed=untried
98981fi
98982
98983
98984
98985if test $pkg_failed = yes; then
98986   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98987$as_echo "no" >&6; }
98988
98989if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
98990        _pkg_short_errors_supported=yes
98991else
98992        _pkg_short_errors_supported=no
98993fi
98994        if test $_pkg_short_errors_supported = yes; then
98995	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
98996        else
98997	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
98998        fi
98999	# Put the nasty error message in config.log where it belongs
99000	echo "$LUA_PKG_ERRORS" >&5
99001
99002	with_liblua="no (pkg-config cannot find liblua)"
99003
99004elif test $pkg_failed = untried; then
99005     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99006$as_echo "no" >&6; }
99007	with_liblua="no (pkg-config cannot find liblua)"
99008
99009else
99010	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
99011	LUA_LIBS=$pkg_cv_LUA_LIBS
99012        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
99013$as_echo "yes" >&6; }
99014	with_liblua="yes"
99015fi
99016
99017
99018elif test $pkg_failed = untried; then
99019     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99020$as_echo "no" >&6; }
99021
99022
99023pkg_failed=no
99024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
99025$as_echo_n "checking for LUA... " >&6; }
99026
99027if test -n "$LUA_CFLAGS"; then
99028    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
99029 elif test -n "$PKG_CONFIG"; then
99030    if test -n "$PKG_CONFIG" && \
99031    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
99032  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
99033  ac_status=$?
99034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99035  test $ac_status = 0; }; then
99036  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
99037		      test "x$?" != "x0" && pkg_failed=yes
99038else
99039  pkg_failed=yes
99040fi
99041 else
99042    pkg_failed=untried
99043fi
99044if test -n "$LUA_LIBS"; then
99045    pkg_cv_LUA_LIBS="$LUA_LIBS"
99046 elif test -n "$PKG_CONFIG"; then
99047    if test -n "$PKG_CONFIG" && \
99048    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
99049  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
99050  ac_status=$?
99051  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99052  test $ac_status = 0; }; then
99053  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
99054		      test "x$?" != "x0" && pkg_failed=yes
99055else
99056  pkg_failed=yes
99057fi
99058 else
99059    pkg_failed=untried
99060fi
99061
99062
99063
99064if test $pkg_failed = yes; then
99065   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99066$as_echo "no" >&6; }
99067
99068if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
99069        _pkg_short_errors_supported=yes
99070else
99071        _pkg_short_errors_supported=no
99072fi
99073        if test $_pkg_short_errors_supported = yes; then
99074	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
99075        else
99076	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
99077        fi
99078	# Put the nasty error message in config.log where it belongs
99079	echo "$LUA_PKG_ERRORS" >&5
99080
99081	with_liblua="no (pkg-config cannot find liblua)"
99082
99083elif test $pkg_failed = untried; then
99084     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99085$as_echo "no" >&6; }
99086	with_liblua="no (pkg-config cannot find liblua)"
99087
99088else
99089	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
99090	LUA_LIBS=$pkg_cv_LUA_LIBS
99091        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
99092$as_echo "yes" >&6; }
99093	with_liblua="yes"
99094fi
99095
99096
99097else
99098	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
99099	LUA_LIBS=$pkg_cv_LUA_LIBS
99100        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
99101$as_echo "yes" >&6; }
99102	with_liblua="yes"
99103fi
99104
99105
99106elif test $pkg_failed = untried; then
99107     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99108$as_echo "no" >&6; }
99109
99110
99111pkg_failed=no
99112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
99113$as_echo_n "checking for LUA... " >&6; }
99114
99115if test -n "$LUA_CFLAGS"; then
99116    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
99117 elif test -n "$PKG_CONFIG"; then
99118    if test -n "$PKG_CONFIG" && \
99119    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
99120  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
99121  ac_status=$?
99122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99123  test $ac_status = 0; }; then
99124  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
99125		      test "x$?" != "x0" && pkg_failed=yes
99126else
99127  pkg_failed=yes
99128fi
99129 else
99130    pkg_failed=untried
99131fi
99132if test -n "$LUA_LIBS"; then
99133    pkg_cv_LUA_LIBS="$LUA_LIBS"
99134 elif test -n "$PKG_CONFIG"; then
99135    if test -n "$PKG_CONFIG" && \
99136    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
99137  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
99138  ac_status=$?
99139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99140  test $ac_status = 0; }; then
99141  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
99142		      test "x$?" != "x0" && pkg_failed=yes
99143else
99144  pkg_failed=yes
99145fi
99146 else
99147    pkg_failed=untried
99148fi
99149
99150
99151
99152if test $pkg_failed = yes; then
99153   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99154$as_echo "no" >&6; }
99155
99156if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
99157        _pkg_short_errors_supported=yes
99158else
99159        _pkg_short_errors_supported=no
99160fi
99161        if test $_pkg_short_errors_supported = yes; then
99162	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
99163        else
99164	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
99165        fi
99166	# Put the nasty error message in config.log where it belongs
99167	echo "$LUA_PKG_ERRORS" >&5
99168
99169
99170
99171pkg_failed=no
99172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
99173$as_echo_n "checking for LUA... " >&6; }
99174
99175if test -n "$LUA_CFLAGS"; then
99176    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
99177 elif test -n "$PKG_CONFIG"; then
99178    if test -n "$PKG_CONFIG" && \
99179    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
99180  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
99181  ac_status=$?
99182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99183  test $ac_status = 0; }; then
99184  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
99185		      test "x$?" != "x0" && pkg_failed=yes
99186else
99187  pkg_failed=yes
99188fi
99189 else
99190    pkg_failed=untried
99191fi
99192if test -n "$LUA_LIBS"; then
99193    pkg_cv_LUA_LIBS="$LUA_LIBS"
99194 elif test -n "$PKG_CONFIG"; then
99195    if test -n "$PKG_CONFIG" && \
99196    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
99197  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
99198  ac_status=$?
99199  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99200  test $ac_status = 0; }; then
99201  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
99202		      test "x$?" != "x0" && pkg_failed=yes
99203else
99204  pkg_failed=yes
99205fi
99206 else
99207    pkg_failed=untried
99208fi
99209
99210
99211
99212if test $pkg_failed = yes; then
99213   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99214$as_echo "no" >&6; }
99215
99216if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
99217        _pkg_short_errors_supported=yes
99218else
99219        _pkg_short_errors_supported=no
99220fi
99221        if test $_pkg_short_errors_supported = yes; then
99222	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
99223        else
99224	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
99225        fi
99226	# Put the nasty error message in config.log where it belongs
99227	echo "$LUA_PKG_ERRORS" >&5
99228
99229	with_liblua="no (pkg-config cannot find liblua)"
99230
99231elif test $pkg_failed = untried; then
99232     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99233$as_echo "no" >&6; }
99234	with_liblua="no (pkg-config cannot find liblua)"
99235
99236else
99237	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
99238	LUA_LIBS=$pkg_cv_LUA_LIBS
99239        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
99240$as_echo "yes" >&6; }
99241	with_liblua="yes"
99242fi
99243
99244
99245elif test $pkg_failed = untried; then
99246     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99247$as_echo "no" >&6; }
99248
99249
99250pkg_failed=no
99251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
99252$as_echo_n "checking for LUA... " >&6; }
99253
99254if test -n "$LUA_CFLAGS"; then
99255    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
99256 elif test -n "$PKG_CONFIG"; then
99257    if test -n "$PKG_CONFIG" && \
99258    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
99259  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
99260  ac_status=$?
99261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99262  test $ac_status = 0; }; then
99263  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
99264		      test "x$?" != "x0" && pkg_failed=yes
99265else
99266  pkg_failed=yes
99267fi
99268 else
99269    pkg_failed=untried
99270fi
99271if test -n "$LUA_LIBS"; then
99272    pkg_cv_LUA_LIBS="$LUA_LIBS"
99273 elif test -n "$PKG_CONFIG"; then
99274    if test -n "$PKG_CONFIG" && \
99275    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
99276  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
99277  ac_status=$?
99278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99279  test $ac_status = 0; }; then
99280  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
99281		      test "x$?" != "x0" && pkg_failed=yes
99282else
99283  pkg_failed=yes
99284fi
99285 else
99286    pkg_failed=untried
99287fi
99288
99289
99290
99291if test $pkg_failed = yes; then
99292   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99293$as_echo "no" >&6; }
99294
99295if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
99296        _pkg_short_errors_supported=yes
99297else
99298        _pkg_short_errors_supported=no
99299fi
99300        if test $_pkg_short_errors_supported = yes; then
99301	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
99302        else
99303	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
99304        fi
99305	# Put the nasty error message in config.log where it belongs
99306	echo "$LUA_PKG_ERRORS" >&5
99307
99308	with_liblua="no (pkg-config cannot find liblua)"
99309
99310elif test $pkg_failed = untried; then
99311     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99312$as_echo "no" >&6; }
99313	with_liblua="no (pkg-config cannot find liblua)"
99314
99315else
99316	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
99317	LUA_LIBS=$pkg_cv_LUA_LIBS
99318        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
99319$as_echo "yes" >&6; }
99320	with_liblua="yes"
99321fi
99322
99323
99324else
99325	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
99326	LUA_LIBS=$pkg_cv_LUA_LIBS
99327        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
99328$as_echo "yes" >&6; }
99329	with_liblua="yes"
99330fi
99331
99332
99333else
99334	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
99335	LUA_LIBS=$pkg_cv_LUA_LIBS
99336        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
99337$as_echo "yes" >&6; }
99338	with_liblua="yes"
99339fi
99340
99341
99342else
99343	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
99344	LUA_LIBS=$pkg_cv_LUA_LIBS
99345        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
99346$as_echo "yes" >&6; }
99347	with_liblua="yes"
99348fi
99349
99350
99351else
99352	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
99353	LUA_LIBS=$pkg_cv_LUA_LIBS
99354        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
99355$as_echo "yes" >&6; }
99356	with_liblua="yes"
99357fi
99358
99359
99360elif test $pkg_failed = untried; then
99361     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99362$as_echo "no" >&6; }
99363
99364
99365pkg_failed=no
99366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
99367$as_echo_n "checking for LUA... " >&6; }
99368
99369if test -n "$LUA_CFLAGS"; then
99370    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
99371 elif test -n "$PKG_CONFIG"; then
99372    if test -n "$PKG_CONFIG" && \
99373    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
99374  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
99375  ac_status=$?
99376  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99377  test $ac_status = 0; }; then
99378  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null`
99379		      test "x$?" != "x0" && pkg_failed=yes
99380else
99381  pkg_failed=yes
99382fi
99383 else
99384    pkg_failed=untried
99385fi
99386if test -n "$LUA_LIBS"; then
99387    pkg_cv_LUA_LIBS="$LUA_LIBS"
99388 elif test -n "$PKG_CONFIG"; then
99389    if test -n "$PKG_CONFIG" && \
99390    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5
99391  ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5
99392  ac_status=$?
99393  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99394  test $ac_status = 0; }; then
99395  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null`
99396		      test "x$?" != "x0" && pkg_failed=yes
99397else
99398  pkg_failed=yes
99399fi
99400 else
99401    pkg_failed=untried
99402fi
99403
99404
99405
99406if test $pkg_failed = yes; then
99407   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99408$as_echo "no" >&6; }
99409
99410if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
99411        _pkg_short_errors_supported=yes
99412else
99413        _pkg_short_errors_supported=no
99414fi
99415        if test $_pkg_short_errors_supported = yes; then
99416	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1`
99417        else
99418	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1`
99419        fi
99420	# Put the nasty error message in config.log where it belongs
99421	echo "$LUA_PKG_ERRORS" >&5
99422
99423
99424
99425pkg_failed=no
99426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
99427$as_echo_n "checking for LUA... " >&6; }
99428
99429if test -n "$LUA_CFLAGS"; then
99430    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
99431 elif test -n "$PKG_CONFIG"; then
99432    if test -n "$PKG_CONFIG" && \
99433    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
99434  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
99435  ac_status=$?
99436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99437  test $ac_status = 0; }; then
99438  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
99439		      test "x$?" != "x0" && pkg_failed=yes
99440else
99441  pkg_failed=yes
99442fi
99443 else
99444    pkg_failed=untried
99445fi
99446if test -n "$LUA_LIBS"; then
99447    pkg_cv_LUA_LIBS="$LUA_LIBS"
99448 elif test -n "$PKG_CONFIG"; then
99449    if test -n "$PKG_CONFIG" && \
99450    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
99451  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
99452  ac_status=$?
99453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99454  test $ac_status = 0; }; then
99455  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
99456		      test "x$?" != "x0" && pkg_failed=yes
99457else
99458  pkg_failed=yes
99459fi
99460 else
99461    pkg_failed=untried
99462fi
99463
99464
99465
99466if test $pkg_failed = yes; then
99467   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99468$as_echo "no" >&6; }
99469
99470if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
99471        _pkg_short_errors_supported=yes
99472else
99473        _pkg_short_errors_supported=no
99474fi
99475        if test $_pkg_short_errors_supported = yes; then
99476	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
99477        else
99478	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
99479        fi
99480	# Put the nasty error message in config.log where it belongs
99481	echo "$LUA_PKG_ERRORS" >&5
99482
99483
99484
99485pkg_failed=no
99486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
99487$as_echo_n "checking for LUA... " >&6; }
99488
99489if test -n "$LUA_CFLAGS"; then
99490    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
99491 elif test -n "$PKG_CONFIG"; then
99492    if test -n "$PKG_CONFIG" && \
99493    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
99494  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
99495  ac_status=$?
99496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99497  test $ac_status = 0; }; then
99498  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
99499		      test "x$?" != "x0" && pkg_failed=yes
99500else
99501  pkg_failed=yes
99502fi
99503 else
99504    pkg_failed=untried
99505fi
99506if test -n "$LUA_LIBS"; then
99507    pkg_cv_LUA_LIBS="$LUA_LIBS"
99508 elif test -n "$PKG_CONFIG"; then
99509    if test -n "$PKG_CONFIG" && \
99510    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
99511  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
99512  ac_status=$?
99513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99514  test $ac_status = 0; }; then
99515  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
99516		      test "x$?" != "x0" && pkg_failed=yes
99517else
99518  pkg_failed=yes
99519fi
99520 else
99521    pkg_failed=untried
99522fi
99523
99524
99525
99526if test $pkg_failed = yes; then
99527   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99528$as_echo "no" >&6; }
99529
99530if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
99531        _pkg_short_errors_supported=yes
99532else
99533        _pkg_short_errors_supported=no
99534fi
99535        if test $_pkg_short_errors_supported = yes; then
99536	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
99537        else
99538	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
99539        fi
99540	# Put the nasty error message in config.log where it belongs
99541	echo "$LUA_PKG_ERRORS" >&5
99542
99543
99544
99545pkg_failed=no
99546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
99547$as_echo_n "checking for LUA... " >&6; }
99548
99549if test -n "$LUA_CFLAGS"; then
99550    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
99551 elif test -n "$PKG_CONFIG"; then
99552    if test -n "$PKG_CONFIG" && \
99553    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
99554  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
99555  ac_status=$?
99556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99557  test $ac_status = 0; }; then
99558  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
99559		      test "x$?" != "x0" && pkg_failed=yes
99560else
99561  pkg_failed=yes
99562fi
99563 else
99564    pkg_failed=untried
99565fi
99566if test -n "$LUA_LIBS"; then
99567    pkg_cv_LUA_LIBS="$LUA_LIBS"
99568 elif test -n "$PKG_CONFIG"; then
99569    if test -n "$PKG_CONFIG" && \
99570    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
99571  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
99572  ac_status=$?
99573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99574  test $ac_status = 0; }; then
99575  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
99576		      test "x$?" != "x0" && pkg_failed=yes
99577else
99578  pkg_failed=yes
99579fi
99580 else
99581    pkg_failed=untried
99582fi
99583
99584
99585
99586if test $pkg_failed = yes; then
99587   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99588$as_echo "no" >&6; }
99589
99590if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
99591        _pkg_short_errors_supported=yes
99592else
99593        _pkg_short_errors_supported=no
99594fi
99595        if test $_pkg_short_errors_supported = yes; then
99596	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
99597        else
99598	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
99599        fi
99600	# Put the nasty error message in config.log where it belongs
99601	echo "$LUA_PKG_ERRORS" >&5
99602
99603
99604
99605pkg_failed=no
99606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
99607$as_echo_n "checking for LUA... " >&6; }
99608
99609if test -n "$LUA_CFLAGS"; then
99610    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
99611 elif test -n "$PKG_CONFIG"; then
99612    if test -n "$PKG_CONFIG" && \
99613    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
99614  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
99615  ac_status=$?
99616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99617  test $ac_status = 0; }; then
99618  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
99619		      test "x$?" != "x0" && pkg_failed=yes
99620else
99621  pkg_failed=yes
99622fi
99623 else
99624    pkg_failed=untried
99625fi
99626if test -n "$LUA_LIBS"; then
99627    pkg_cv_LUA_LIBS="$LUA_LIBS"
99628 elif test -n "$PKG_CONFIG"; then
99629    if test -n "$PKG_CONFIG" && \
99630    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
99631  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
99632  ac_status=$?
99633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99634  test $ac_status = 0; }; then
99635  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
99636		      test "x$?" != "x0" && pkg_failed=yes
99637else
99638  pkg_failed=yes
99639fi
99640 else
99641    pkg_failed=untried
99642fi
99643
99644
99645
99646if test $pkg_failed = yes; then
99647   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99648$as_echo "no" >&6; }
99649
99650if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
99651        _pkg_short_errors_supported=yes
99652else
99653        _pkg_short_errors_supported=no
99654fi
99655        if test $_pkg_short_errors_supported = yes; then
99656	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
99657        else
99658	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
99659        fi
99660	# Put the nasty error message in config.log where it belongs
99661	echo "$LUA_PKG_ERRORS" >&5
99662
99663	with_liblua="no (pkg-config cannot find liblua)"
99664
99665elif test $pkg_failed = untried; then
99666     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99667$as_echo "no" >&6; }
99668	with_liblua="no (pkg-config cannot find liblua)"
99669
99670else
99671	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
99672	LUA_LIBS=$pkg_cv_LUA_LIBS
99673        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
99674$as_echo "yes" >&6; }
99675	with_liblua="yes"
99676fi
99677
99678
99679elif test $pkg_failed = untried; then
99680     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99681$as_echo "no" >&6; }
99682
99683
99684pkg_failed=no
99685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
99686$as_echo_n "checking for LUA... " >&6; }
99687
99688if test -n "$LUA_CFLAGS"; then
99689    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
99690 elif test -n "$PKG_CONFIG"; then
99691    if test -n "$PKG_CONFIG" && \
99692    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
99693  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
99694  ac_status=$?
99695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99696  test $ac_status = 0; }; then
99697  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
99698		      test "x$?" != "x0" && pkg_failed=yes
99699else
99700  pkg_failed=yes
99701fi
99702 else
99703    pkg_failed=untried
99704fi
99705if test -n "$LUA_LIBS"; then
99706    pkg_cv_LUA_LIBS="$LUA_LIBS"
99707 elif test -n "$PKG_CONFIG"; then
99708    if test -n "$PKG_CONFIG" && \
99709    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
99710  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
99711  ac_status=$?
99712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99713  test $ac_status = 0; }; then
99714  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
99715		      test "x$?" != "x0" && pkg_failed=yes
99716else
99717  pkg_failed=yes
99718fi
99719 else
99720    pkg_failed=untried
99721fi
99722
99723
99724
99725if test $pkg_failed = yes; then
99726   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99727$as_echo "no" >&6; }
99728
99729if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
99730        _pkg_short_errors_supported=yes
99731else
99732        _pkg_short_errors_supported=no
99733fi
99734        if test $_pkg_short_errors_supported = yes; then
99735	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
99736        else
99737	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
99738        fi
99739	# Put the nasty error message in config.log where it belongs
99740	echo "$LUA_PKG_ERRORS" >&5
99741
99742	with_liblua="no (pkg-config cannot find liblua)"
99743
99744elif test $pkg_failed = untried; then
99745     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99746$as_echo "no" >&6; }
99747	with_liblua="no (pkg-config cannot find liblua)"
99748
99749else
99750	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
99751	LUA_LIBS=$pkg_cv_LUA_LIBS
99752        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
99753$as_echo "yes" >&6; }
99754	with_liblua="yes"
99755fi
99756
99757
99758else
99759	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
99760	LUA_LIBS=$pkg_cv_LUA_LIBS
99761        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
99762$as_echo "yes" >&6; }
99763	with_liblua="yes"
99764fi
99765
99766
99767elif test $pkg_failed = untried; then
99768     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99769$as_echo "no" >&6; }
99770
99771
99772pkg_failed=no
99773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
99774$as_echo_n "checking for LUA... " >&6; }
99775
99776if test -n "$LUA_CFLAGS"; then
99777    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
99778 elif test -n "$PKG_CONFIG"; then
99779    if test -n "$PKG_CONFIG" && \
99780    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
99781  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
99782  ac_status=$?
99783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99784  test $ac_status = 0; }; then
99785  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
99786		      test "x$?" != "x0" && pkg_failed=yes
99787else
99788  pkg_failed=yes
99789fi
99790 else
99791    pkg_failed=untried
99792fi
99793if test -n "$LUA_LIBS"; then
99794    pkg_cv_LUA_LIBS="$LUA_LIBS"
99795 elif test -n "$PKG_CONFIG"; then
99796    if test -n "$PKG_CONFIG" && \
99797    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
99798  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
99799  ac_status=$?
99800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99801  test $ac_status = 0; }; then
99802  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
99803		      test "x$?" != "x0" && pkg_failed=yes
99804else
99805  pkg_failed=yes
99806fi
99807 else
99808    pkg_failed=untried
99809fi
99810
99811
99812
99813if test $pkg_failed = yes; then
99814   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99815$as_echo "no" >&6; }
99816
99817if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
99818        _pkg_short_errors_supported=yes
99819else
99820        _pkg_short_errors_supported=no
99821fi
99822        if test $_pkg_short_errors_supported = yes; then
99823	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
99824        else
99825	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
99826        fi
99827	# Put the nasty error message in config.log where it belongs
99828	echo "$LUA_PKG_ERRORS" >&5
99829
99830
99831
99832pkg_failed=no
99833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
99834$as_echo_n "checking for LUA... " >&6; }
99835
99836if test -n "$LUA_CFLAGS"; then
99837    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
99838 elif test -n "$PKG_CONFIG"; then
99839    if test -n "$PKG_CONFIG" && \
99840    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
99841  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
99842  ac_status=$?
99843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99844  test $ac_status = 0; }; then
99845  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
99846		      test "x$?" != "x0" && pkg_failed=yes
99847else
99848  pkg_failed=yes
99849fi
99850 else
99851    pkg_failed=untried
99852fi
99853if test -n "$LUA_LIBS"; then
99854    pkg_cv_LUA_LIBS="$LUA_LIBS"
99855 elif test -n "$PKG_CONFIG"; then
99856    if test -n "$PKG_CONFIG" && \
99857    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
99858  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
99859  ac_status=$?
99860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99861  test $ac_status = 0; }; then
99862  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
99863		      test "x$?" != "x0" && pkg_failed=yes
99864else
99865  pkg_failed=yes
99866fi
99867 else
99868    pkg_failed=untried
99869fi
99870
99871
99872
99873if test $pkg_failed = yes; then
99874   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99875$as_echo "no" >&6; }
99876
99877if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
99878        _pkg_short_errors_supported=yes
99879else
99880        _pkg_short_errors_supported=no
99881fi
99882        if test $_pkg_short_errors_supported = yes; then
99883	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
99884        else
99885	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
99886        fi
99887	# Put the nasty error message in config.log where it belongs
99888	echo "$LUA_PKG_ERRORS" >&5
99889
99890	with_liblua="no (pkg-config cannot find liblua)"
99891
99892elif test $pkg_failed = untried; then
99893     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99894$as_echo "no" >&6; }
99895	with_liblua="no (pkg-config cannot find liblua)"
99896
99897else
99898	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
99899	LUA_LIBS=$pkg_cv_LUA_LIBS
99900        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
99901$as_echo "yes" >&6; }
99902	with_liblua="yes"
99903fi
99904
99905
99906elif test $pkg_failed = untried; then
99907     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99908$as_echo "no" >&6; }
99909
99910
99911pkg_failed=no
99912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
99913$as_echo_n "checking for LUA... " >&6; }
99914
99915if test -n "$LUA_CFLAGS"; then
99916    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
99917 elif test -n "$PKG_CONFIG"; then
99918    if test -n "$PKG_CONFIG" && \
99919    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
99920  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
99921  ac_status=$?
99922  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99923  test $ac_status = 0; }; then
99924  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
99925		      test "x$?" != "x0" && pkg_failed=yes
99926else
99927  pkg_failed=yes
99928fi
99929 else
99930    pkg_failed=untried
99931fi
99932if test -n "$LUA_LIBS"; then
99933    pkg_cv_LUA_LIBS="$LUA_LIBS"
99934 elif test -n "$PKG_CONFIG"; then
99935    if test -n "$PKG_CONFIG" && \
99936    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
99937  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
99938  ac_status=$?
99939  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99940  test $ac_status = 0; }; then
99941  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
99942		      test "x$?" != "x0" && pkg_failed=yes
99943else
99944  pkg_failed=yes
99945fi
99946 else
99947    pkg_failed=untried
99948fi
99949
99950
99951
99952if test $pkg_failed = yes; then
99953   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99954$as_echo "no" >&6; }
99955
99956if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
99957        _pkg_short_errors_supported=yes
99958else
99959        _pkg_short_errors_supported=no
99960fi
99961        if test $_pkg_short_errors_supported = yes; then
99962	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
99963        else
99964	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
99965        fi
99966	# Put the nasty error message in config.log where it belongs
99967	echo "$LUA_PKG_ERRORS" >&5
99968
99969	with_liblua="no (pkg-config cannot find liblua)"
99970
99971elif test $pkg_failed = untried; then
99972     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99973$as_echo "no" >&6; }
99974	with_liblua="no (pkg-config cannot find liblua)"
99975
99976else
99977	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
99978	LUA_LIBS=$pkg_cv_LUA_LIBS
99979        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
99980$as_echo "yes" >&6; }
99981	with_liblua="yes"
99982fi
99983
99984
99985else
99986	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
99987	LUA_LIBS=$pkg_cv_LUA_LIBS
99988        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
99989$as_echo "yes" >&6; }
99990	with_liblua="yes"
99991fi
99992
99993
99994else
99995	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
99996	LUA_LIBS=$pkg_cv_LUA_LIBS
99997        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
99998$as_echo "yes" >&6; }
99999	with_liblua="yes"
100000fi
100001
100002
100003elif test $pkg_failed = untried; then
100004     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100005$as_echo "no" >&6; }
100006
100007
100008pkg_failed=no
100009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
100010$as_echo_n "checking for LUA... " >&6; }
100011
100012if test -n "$LUA_CFLAGS"; then
100013    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
100014 elif test -n "$PKG_CONFIG"; then
100015    if test -n "$PKG_CONFIG" && \
100016    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
100017  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
100018  ac_status=$?
100019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100020  test $ac_status = 0; }; then
100021  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
100022		      test "x$?" != "x0" && pkg_failed=yes
100023else
100024  pkg_failed=yes
100025fi
100026 else
100027    pkg_failed=untried
100028fi
100029if test -n "$LUA_LIBS"; then
100030    pkg_cv_LUA_LIBS="$LUA_LIBS"
100031 elif test -n "$PKG_CONFIG"; then
100032    if test -n "$PKG_CONFIG" && \
100033    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
100034  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
100035  ac_status=$?
100036  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100037  test $ac_status = 0; }; then
100038  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
100039		      test "x$?" != "x0" && pkg_failed=yes
100040else
100041  pkg_failed=yes
100042fi
100043 else
100044    pkg_failed=untried
100045fi
100046
100047
100048
100049if test $pkg_failed = yes; then
100050   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100051$as_echo "no" >&6; }
100052
100053if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
100054        _pkg_short_errors_supported=yes
100055else
100056        _pkg_short_errors_supported=no
100057fi
100058        if test $_pkg_short_errors_supported = yes; then
100059	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
100060        else
100061	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
100062        fi
100063	# Put the nasty error message in config.log where it belongs
100064	echo "$LUA_PKG_ERRORS" >&5
100065
100066
100067
100068pkg_failed=no
100069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
100070$as_echo_n "checking for LUA... " >&6; }
100071
100072if test -n "$LUA_CFLAGS"; then
100073    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
100074 elif test -n "$PKG_CONFIG"; then
100075    if test -n "$PKG_CONFIG" && \
100076    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
100077  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
100078  ac_status=$?
100079  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100080  test $ac_status = 0; }; then
100081  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
100082		      test "x$?" != "x0" && pkg_failed=yes
100083else
100084  pkg_failed=yes
100085fi
100086 else
100087    pkg_failed=untried
100088fi
100089if test -n "$LUA_LIBS"; then
100090    pkg_cv_LUA_LIBS="$LUA_LIBS"
100091 elif test -n "$PKG_CONFIG"; then
100092    if test -n "$PKG_CONFIG" && \
100093    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
100094  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
100095  ac_status=$?
100096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100097  test $ac_status = 0; }; then
100098  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
100099		      test "x$?" != "x0" && pkg_failed=yes
100100else
100101  pkg_failed=yes
100102fi
100103 else
100104    pkg_failed=untried
100105fi
100106
100107
100108
100109if test $pkg_failed = yes; then
100110   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100111$as_echo "no" >&6; }
100112
100113if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
100114        _pkg_short_errors_supported=yes
100115else
100116        _pkg_short_errors_supported=no
100117fi
100118        if test $_pkg_short_errors_supported = yes; then
100119	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
100120        else
100121	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
100122        fi
100123	# Put the nasty error message in config.log where it belongs
100124	echo "$LUA_PKG_ERRORS" >&5
100125
100126
100127
100128pkg_failed=no
100129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
100130$as_echo_n "checking for LUA... " >&6; }
100131
100132if test -n "$LUA_CFLAGS"; then
100133    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
100134 elif test -n "$PKG_CONFIG"; then
100135    if test -n "$PKG_CONFIG" && \
100136    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
100137  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
100138  ac_status=$?
100139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100140  test $ac_status = 0; }; then
100141  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
100142		      test "x$?" != "x0" && pkg_failed=yes
100143else
100144  pkg_failed=yes
100145fi
100146 else
100147    pkg_failed=untried
100148fi
100149if test -n "$LUA_LIBS"; then
100150    pkg_cv_LUA_LIBS="$LUA_LIBS"
100151 elif test -n "$PKG_CONFIG"; then
100152    if test -n "$PKG_CONFIG" && \
100153    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
100154  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
100155  ac_status=$?
100156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100157  test $ac_status = 0; }; then
100158  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
100159		      test "x$?" != "x0" && pkg_failed=yes
100160else
100161  pkg_failed=yes
100162fi
100163 else
100164    pkg_failed=untried
100165fi
100166
100167
100168
100169if test $pkg_failed = yes; then
100170   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100171$as_echo "no" >&6; }
100172
100173if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
100174        _pkg_short_errors_supported=yes
100175else
100176        _pkg_short_errors_supported=no
100177fi
100178        if test $_pkg_short_errors_supported = yes; then
100179	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
100180        else
100181	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
100182        fi
100183	# Put the nasty error message in config.log where it belongs
100184	echo "$LUA_PKG_ERRORS" >&5
100185
100186	with_liblua="no (pkg-config cannot find liblua)"
100187
100188elif test $pkg_failed = untried; then
100189     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100190$as_echo "no" >&6; }
100191	with_liblua="no (pkg-config cannot find liblua)"
100192
100193else
100194	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
100195	LUA_LIBS=$pkg_cv_LUA_LIBS
100196        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
100197$as_echo "yes" >&6; }
100198	with_liblua="yes"
100199fi
100200
100201
100202elif test $pkg_failed = untried; then
100203     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100204$as_echo "no" >&6; }
100205
100206
100207pkg_failed=no
100208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
100209$as_echo_n "checking for LUA... " >&6; }
100210
100211if test -n "$LUA_CFLAGS"; then
100212    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
100213 elif test -n "$PKG_CONFIG"; then
100214    if test -n "$PKG_CONFIG" && \
100215    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
100216  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
100217  ac_status=$?
100218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100219  test $ac_status = 0; }; then
100220  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
100221		      test "x$?" != "x0" && pkg_failed=yes
100222else
100223  pkg_failed=yes
100224fi
100225 else
100226    pkg_failed=untried
100227fi
100228if test -n "$LUA_LIBS"; then
100229    pkg_cv_LUA_LIBS="$LUA_LIBS"
100230 elif test -n "$PKG_CONFIG"; then
100231    if test -n "$PKG_CONFIG" && \
100232    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
100233  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
100234  ac_status=$?
100235  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100236  test $ac_status = 0; }; then
100237  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
100238		      test "x$?" != "x0" && pkg_failed=yes
100239else
100240  pkg_failed=yes
100241fi
100242 else
100243    pkg_failed=untried
100244fi
100245
100246
100247
100248if test $pkg_failed = yes; then
100249   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100250$as_echo "no" >&6; }
100251
100252if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
100253        _pkg_short_errors_supported=yes
100254else
100255        _pkg_short_errors_supported=no
100256fi
100257        if test $_pkg_short_errors_supported = yes; then
100258	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
100259        else
100260	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
100261        fi
100262	# Put the nasty error message in config.log where it belongs
100263	echo "$LUA_PKG_ERRORS" >&5
100264
100265	with_liblua="no (pkg-config cannot find liblua)"
100266
100267elif test $pkg_failed = untried; then
100268     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100269$as_echo "no" >&6; }
100270	with_liblua="no (pkg-config cannot find liblua)"
100271
100272else
100273	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
100274	LUA_LIBS=$pkg_cv_LUA_LIBS
100275        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
100276$as_echo "yes" >&6; }
100277	with_liblua="yes"
100278fi
100279
100280
100281else
100282	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
100283	LUA_LIBS=$pkg_cv_LUA_LIBS
100284        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
100285$as_echo "yes" >&6; }
100286	with_liblua="yes"
100287fi
100288
100289
100290elif test $pkg_failed = untried; then
100291     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100292$as_echo "no" >&6; }
100293
100294
100295pkg_failed=no
100296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
100297$as_echo_n "checking for LUA... " >&6; }
100298
100299if test -n "$LUA_CFLAGS"; then
100300    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
100301 elif test -n "$PKG_CONFIG"; then
100302    if test -n "$PKG_CONFIG" && \
100303    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
100304  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
100305  ac_status=$?
100306  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100307  test $ac_status = 0; }; then
100308  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
100309		      test "x$?" != "x0" && pkg_failed=yes
100310else
100311  pkg_failed=yes
100312fi
100313 else
100314    pkg_failed=untried
100315fi
100316if test -n "$LUA_LIBS"; then
100317    pkg_cv_LUA_LIBS="$LUA_LIBS"
100318 elif test -n "$PKG_CONFIG"; then
100319    if test -n "$PKG_CONFIG" && \
100320    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
100321  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
100322  ac_status=$?
100323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100324  test $ac_status = 0; }; then
100325  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
100326		      test "x$?" != "x0" && pkg_failed=yes
100327else
100328  pkg_failed=yes
100329fi
100330 else
100331    pkg_failed=untried
100332fi
100333
100334
100335
100336if test $pkg_failed = yes; then
100337   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100338$as_echo "no" >&6; }
100339
100340if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
100341        _pkg_short_errors_supported=yes
100342else
100343        _pkg_short_errors_supported=no
100344fi
100345        if test $_pkg_short_errors_supported = yes; then
100346	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
100347        else
100348	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
100349        fi
100350	# Put the nasty error message in config.log where it belongs
100351	echo "$LUA_PKG_ERRORS" >&5
100352
100353
100354
100355pkg_failed=no
100356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
100357$as_echo_n "checking for LUA... " >&6; }
100358
100359if test -n "$LUA_CFLAGS"; then
100360    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
100361 elif test -n "$PKG_CONFIG"; then
100362    if test -n "$PKG_CONFIG" && \
100363    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
100364  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
100365  ac_status=$?
100366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100367  test $ac_status = 0; }; then
100368  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
100369		      test "x$?" != "x0" && pkg_failed=yes
100370else
100371  pkg_failed=yes
100372fi
100373 else
100374    pkg_failed=untried
100375fi
100376if test -n "$LUA_LIBS"; then
100377    pkg_cv_LUA_LIBS="$LUA_LIBS"
100378 elif test -n "$PKG_CONFIG"; then
100379    if test -n "$PKG_CONFIG" && \
100380    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
100381  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
100382  ac_status=$?
100383  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100384  test $ac_status = 0; }; then
100385  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
100386		      test "x$?" != "x0" && pkg_failed=yes
100387else
100388  pkg_failed=yes
100389fi
100390 else
100391    pkg_failed=untried
100392fi
100393
100394
100395
100396if test $pkg_failed = yes; then
100397   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100398$as_echo "no" >&6; }
100399
100400if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
100401        _pkg_short_errors_supported=yes
100402else
100403        _pkg_short_errors_supported=no
100404fi
100405        if test $_pkg_short_errors_supported = yes; then
100406	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
100407        else
100408	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
100409        fi
100410	# Put the nasty error message in config.log where it belongs
100411	echo "$LUA_PKG_ERRORS" >&5
100412
100413	with_liblua="no (pkg-config cannot find liblua)"
100414
100415elif test $pkg_failed = untried; then
100416     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100417$as_echo "no" >&6; }
100418	with_liblua="no (pkg-config cannot find liblua)"
100419
100420else
100421	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
100422	LUA_LIBS=$pkg_cv_LUA_LIBS
100423        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
100424$as_echo "yes" >&6; }
100425	with_liblua="yes"
100426fi
100427
100428
100429elif test $pkg_failed = untried; then
100430     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100431$as_echo "no" >&6; }
100432
100433
100434pkg_failed=no
100435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
100436$as_echo_n "checking for LUA... " >&6; }
100437
100438if test -n "$LUA_CFLAGS"; then
100439    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
100440 elif test -n "$PKG_CONFIG"; then
100441    if test -n "$PKG_CONFIG" && \
100442    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
100443  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
100444  ac_status=$?
100445  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100446  test $ac_status = 0; }; then
100447  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
100448		      test "x$?" != "x0" && pkg_failed=yes
100449else
100450  pkg_failed=yes
100451fi
100452 else
100453    pkg_failed=untried
100454fi
100455if test -n "$LUA_LIBS"; then
100456    pkg_cv_LUA_LIBS="$LUA_LIBS"
100457 elif test -n "$PKG_CONFIG"; then
100458    if test -n "$PKG_CONFIG" && \
100459    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
100460  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
100461  ac_status=$?
100462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100463  test $ac_status = 0; }; then
100464  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
100465		      test "x$?" != "x0" && pkg_failed=yes
100466else
100467  pkg_failed=yes
100468fi
100469 else
100470    pkg_failed=untried
100471fi
100472
100473
100474
100475if test $pkg_failed = yes; then
100476   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100477$as_echo "no" >&6; }
100478
100479if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
100480        _pkg_short_errors_supported=yes
100481else
100482        _pkg_short_errors_supported=no
100483fi
100484        if test $_pkg_short_errors_supported = yes; then
100485	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
100486        else
100487	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
100488        fi
100489	# Put the nasty error message in config.log where it belongs
100490	echo "$LUA_PKG_ERRORS" >&5
100491
100492	with_liblua="no (pkg-config cannot find liblua)"
100493
100494elif test $pkg_failed = untried; then
100495     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100496$as_echo "no" >&6; }
100497	with_liblua="no (pkg-config cannot find liblua)"
100498
100499else
100500	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
100501	LUA_LIBS=$pkg_cv_LUA_LIBS
100502        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
100503$as_echo "yes" >&6; }
100504	with_liblua="yes"
100505fi
100506
100507
100508else
100509	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
100510	LUA_LIBS=$pkg_cv_LUA_LIBS
100511        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
100512$as_echo "yes" >&6; }
100513	with_liblua="yes"
100514fi
100515
100516
100517else
100518	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
100519	LUA_LIBS=$pkg_cv_LUA_LIBS
100520        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
100521$as_echo "yes" >&6; }
100522	with_liblua="yes"
100523fi
100524
100525
100526else
100527	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
100528	LUA_LIBS=$pkg_cv_LUA_LIBS
100529        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
100530$as_echo "yes" >&6; }
100531	with_liblua="yes"
100532fi
100533
100534
100535elif test $pkg_failed = untried; then
100536     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100537$as_echo "no" >&6; }
100538
100539
100540pkg_failed=no
100541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
100542$as_echo_n "checking for LUA... " >&6; }
100543
100544if test -n "$LUA_CFLAGS"; then
100545    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
100546 elif test -n "$PKG_CONFIG"; then
100547    if test -n "$PKG_CONFIG" && \
100548    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
100549  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
100550  ac_status=$?
100551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100552  test $ac_status = 0; }; then
100553  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua52" 2>/dev/null`
100554		      test "x$?" != "x0" && pkg_failed=yes
100555else
100556  pkg_failed=yes
100557fi
100558 else
100559    pkg_failed=untried
100560fi
100561if test -n "$LUA_LIBS"; then
100562    pkg_cv_LUA_LIBS="$LUA_LIBS"
100563 elif test -n "$PKG_CONFIG"; then
100564    if test -n "$PKG_CONFIG" && \
100565    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua52\""; } >&5
100566  ($PKG_CONFIG --exists --print-errors "lua52") 2>&5
100567  ac_status=$?
100568  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100569  test $ac_status = 0; }; then
100570  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua52" 2>/dev/null`
100571		      test "x$?" != "x0" && pkg_failed=yes
100572else
100573  pkg_failed=yes
100574fi
100575 else
100576    pkg_failed=untried
100577fi
100578
100579
100580
100581if test $pkg_failed = yes; then
100582   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100583$as_echo "no" >&6; }
100584
100585if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
100586        _pkg_short_errors_supported=yes
100587else
100588        _pkg_short_errors_supported=no
100589fi
100590        if test $_pkg_short_errors_supported = yes; then
100591	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua52" 2>&1`
100592        else
100593	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua52" 2>&1`
100594        fi
100595	# Put the nasty error message in config.log where it belongs
100596	echo "$LUA_PKG_ERRORS" >&5
100597
100598
100599
100600pkg_failed=no
100601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
100602$as_echo_n "checking for LUA... " >&6; }
100603
100604if test -n "$LUA_CFLAGS"; then
100605    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
100606 elif test -n "$PKG_CONFIG"; then
100607    if test -n "$PKG_CONFIG" && \
100608    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
100609  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
100610  ac_status=$?
100611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100612  test $ac_status = 0; }; then
100613  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
100614		      test "x$?" != "x0" && pkg_failed=yes
100615else
100616  pkg_failed=yes
100617fi
100618 else
100619    pkg_failed=untried
100620fi
100621if test -n "$LUA_LIBS"; then
100622    pkg_cv_LUA_LIBS="$LUA_LIBS"
100623 elif test -n "$PKG_CONFIG"; then
100624    if test -n "$PKG_CONFIG" && \
100625    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
100626  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
100627  ac_status=$?
100628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100629  test $ac_status = 0; }; then
100630  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
100631		      test "x$?" != "x0" && pkg_failed=yes
100632else
100633  pkg_failed=yes
100634fi
100635 else
100636    pkg_failed=untried
100637fi
100638
100639
100640
100641if test $pkg_failed = yes; then
100642   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100643$as_echo "no" >&6; }
100644
100645if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
100646        _pkg_short_errors_supported=yes
100647else
100648        _pkg_short_errors_supported=no
100649fi
100650        if test $_pkg_short_errors_supported = yes; then
100651	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
100652        else
100653	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
100654        fi
100655	# Put the nasty error message in config.log where it belongs
100656	echo "$LUA_PKG_ERRORS" >&5
100657
100658
100659
100660pkg_failed=no
100661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
100662$as_echo_n "checking for LUA... " >&6; }
100663
100664if test -n "$LUA_CFLAGS"; then
100665    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
100666 elif test -n "$PKG_CONFIG"; then
100667    if test -n "$PKG_CONFIG" && \
100668    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
100669  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
100670  ac_status=$?
100671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100672  test $ac_status = 0; }; then
100673  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
100674		      test "x$?" != "x0" && pkg_failed=yes
100675else
100676  pkg_failed=yes
100677fi
100678 else
100679    pkg_failed=untried
100680fi
100681if test -n "$LUA_LIBS"; then
100682    pkg_cv_LUA_LIBS="$LUA_LIBS"
100683 elif test -n "$PKG_CONFIG"; then
100684    if test -n "$PKG_CONFIG" && \
100685    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
100686  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
100687  ac_status=$?
100688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100689  test $ac_status = 0; }; then
100690  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
100691		      test "x$?" != "x0" && pkg_failed=yes
100692else
100693  pkg_failed=yes
100694fi
100695 else
100696    pkg_failed=untried
100697fi
100698
100699
100700
100701if test $pkg_failed = yes; then
100702   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100703$as_echo "no" >&6; }
100704
100705if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
100706        _pkg_short_errors_supported=yes
100707else
100708        _pkg_short_errors_supported=no
100709fi
100710        if test $_pkg_short_errors_supported = yes; then
100711	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
100712        else
100713	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
100714        fi
100715	# Put the nasty error message in config.log where it belongs
100716	echo "$LUA_PKG_ERRORS" >&5
100717
100718
100719
100720pkg_failed=no
100721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
100722$as_echo_n "checking for LUA... " >&6; }
100723
100724if test -n "$LUA_CFLAGS"; then
100725    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
100726 elif test -n "$PKG_CONFIG"; then
100727    if test -n "$PKG_CONFIG" && \
100728    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
100729  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
100730  ac_status=$?
100731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100732  test $ac_status = 0; }; then
100733  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
100734		      test "x$?" != "x0" && pkg_failed=yes
100735else
100736  pkg_failed=yes
100737fi
100738 else
100739    pkg_failed=untried
100740fi
100741if test -n "$LUA_LIBS"; then
100742    pkg_cv_LUA_LIBS="$LUA_LIBS"
100743 elif test -n "$PKG_CONFIG"; then
100744    if test -n "$PKG_CONFIG" && \
100745    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
100746  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
100747  ac_status=$?
100748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100749  test $ac_status = 0; }; then
100750  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
100751		      test "x$?" != "x0" && pkg_failed=yes
100752else
100753  pkg_failed=yes
100754fi
100755 else
100756    pkg_failed=untried
100757fi
100758
100759
100760
100761if test $pkg_failed = yes; then
100762   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100763$as_echo "no" >&6; }
100764
100765if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
100766        _pkg_short_errors_supported=yes
100767else
100768        _pkg_short_errors_supported=no
100769fi
100770        if test $_pkg_short_errors_supported = yes; then
100771	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
100772        else
100773	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
100774        fi
100775	# Put the nasty error message in config.log where it belongs
100776	echo "$LUA_PKG_ERRORS" >&5
100777
100778	with_liblua="no (pkg-config cannot find liblua)"
100779
100780elif test $pkg_failed = untried; then
100781     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100782$as_echo "no" >&6; }
100783	with_liblua="no (pkg-config cannot find liblua)"
100784
100785else
100786	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
100787	LUA_LIBS=$pkg_cv_LUA_LIBS
100788        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
100789$as_echo "yes" >&6; }
100790	with_liblua="yes"
100791fi
100792
100793
100794elif test $pkg_failed = untried; then
100795     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100796$as_echo "no" >&6; }
100797
100798
100799pkg_failed=no
100800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
100801$as_echo_n "checking for LUA... " >&6; }
100802
100803if test -n "$LUA_CFLAGS"; then
100804    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
100805 elif test -n "$PKG_CONFIG"; then
100806    if test -n "$PKG_CONFIG" && \
100807    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
100808  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
100809  ac_status=$?
100810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100811  test $ac_status = 0; }; then
100812  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
100813		      test "x$?" != "x0" && pkg_failed=yes
100814else
100815  pkg_failed=yes
100816fi
100817 else
100818    pkg_failed=untried
100819fi
100820if test -n "$LUA_LIBS"; then
100821    pkg_cv_LUA_LIBS="$LUA_LIBS"
100822 elif test -n "$PKG_CONFIG"; then
100823    if test -n "$PKG_CONFIG" && \
100824    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
100825  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
100826  ac_status=$?
100827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100828  test $ac_status = 0; }; then
100829  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
100830		      test "x$?" != "x0" && pkg_failed=yes
100831else
100832  pkg_failed=yes
100833fi
100834 else
100835    pkg_failed=untried
100836fi
100837
100838
100839
100840if test $pkg_failed = yes; then
100841   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100842$as_echo "no" >&6; }
100843
100844if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
100845        _pkg_short_errors_supported=yes
100846else
100847        _pkg_short_errors_supported=no
100848fi
100849        if test $_pkg_short_errors_supported = yes; then
100850	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
100851        else
100852	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
100853        fi
100854	# Put the nasty error message in config.log where it belongs
100855	echo "$LUA_PKG_ERRORS" >&5
100856
100857	with_liblua="no (pkg-config cannot find liblua)"
100858
100859elif test $pkg_failed = untried; then
100860     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100861$as_echo "no" >&6; }
100862	with_liblua="no (pkg-config cannot find liblua)"
100863
100864else
100865	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
100866	LUA_LIBS=$pkg_cv_LUA_LIBS
100867        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
100868$as_echo "yes" >&6; }
100869	with_liblua="yes"
100870fi
100871
100872
100873else
100874	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
100875	LUA_LIBS=$pkg_cv_LUA_LIBS
100876        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
100877$as_echo "yes" >&6; }
100878	with_liblua="yes"
100879fi
100880
100881
100882elif test $pkg_failed = untried; then
100883     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100884$as_echo "no" >&6; }
100885
100886
100887pkg_failed=no
100888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
100889$as_echo_n "checking for LUA... " >&6; }
100890
100891if test -n "$LUA_CFLAGS"; then
100892    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
100893 elif test -n "$PKG_CONFIG"; then
100894    if test -n "$PKG_CONFIG" && \
100895    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
100896  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
100897  ac_status=$?
100898  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100899  test $ac_status = 0; }; then
100900  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
100901		      test "x$?" != "x0" && pkg_failed=yes
100902else
100903  pkg_failed=yes
100904fi
100905 else
100906    pkg_failed=untried
100907fi
100908if test -n "$LUA_LIBS"; then
100909    pkg_cv_LUA_LIBS="$LUA_LIBS"
100910 elif test -n "$PKG_CONFIG"; then
100911    if test -n "$PKG_CONFIG" && \
100912    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
100913  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
100914  ac_status=$?
100915  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100916  test $ac_status = 0; }; then
100917  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
100918		      test "x$?" != "x0" && pkg_failed=yes
100919else
100920  pkg_failed=yes
100921fi
100922 else
100923    pkg_failed=untried
100924fi
100925
100926
100927
100928if test $pkg_failed = yes; then
100929   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100930$as_echo "no" >&6; }
100931
100932if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
100933        _pkg_short_errors_supported=yes
100934else
100935        _pkg_short_errors_supported=no
100936fi
100937        if test $_pkg_short_errors_supported = yes; then
100938	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
100939        else
100940	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
100941        fi
100942	# Put the nasty error message in config.log where it belongs
100943	echo "$LUA_PKG_ERRORS" >&5
100944
100945
100946
100947pkg_failed=no
100948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
100949$as_echo_n "checking for LUA... " >&6; }
100950
100951if test -n "$LUA_CFLAGS"; then
100952    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
100953 elif test -n "$PKG_CONFIG"; then
100954    if test -n "$PKG_CONFIG" && \
100955    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
100956  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
100957  ac_status=$?
100958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100959  test $ac_status = 0; }; then
100960  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
100961		      test "x$?" != "x0" && pkg_failed=yes
100962else
100963  pkg_failed=yes
100964fi
100965 else
100966    pkg_failed=untried
100967fi
100968if test -n "$LUA_LIBS"; then
100969    pkg_cv_LUA_LIBS="$LUA_LIBS"
100970 elif test -n "$PKG_CONFIG"; then
100971    if test -n "$PKG_CONFIG" && \
100972    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
100973  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
100974  ac_status=$?
100975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
100976  test $ac_status = 0; }; then
100977  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
100978		      test "x$?" != "x0" && pkg_failed=yes
100979else
100980  pkg_failed=yes
100981fi
100982 else
100983    pkg_failed=untried
100984fi
100985
100986
100987
100988if test $pkg_failed = yes; then
100989   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100990$as_echo "no" >&6; }
100991
100992if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
100993        _pkg_short_errors_supported=yes
100994else
100995        _pkg_short_errors_supported=no
100996fi
100997        if test $_pkg_short_errors_supported = yes; then
100998	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
100999        else
101000	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
101001        fi
101002	# Put the nasty error message in config.log where it belongs
101003	echo "$LUA_PKG_ERRORS" >&5
101004
101005	with_liblua="no (pkg-config cannot find liblua)"
101006
101007elif test $pkg_failed = untried; then
101008     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101009$as_echo "no" >&6; }
101010	with_liblua="no (pkg-config cannot find liblua)"
101011
101012else
101013	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
101014	LUA_LIBS=$pkg_cv_LUA_LIBS
101015        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
101016$as_echo "yes" >&6; }
101017	with_liblua="yes"
101018fi
101019
101020
101021elif test $pkg_failed = untried; then
101022     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101023$as_echo "no" >&6; }
101024
101025
101026pkg_failed=no
101027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
101028$as_echo_n "checking for LUA... " >&6; }
101029
101030if test -n "$LUA_CFLAGS"; then
101031    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
101032 elif test -n "$PKG_CONFIG"; then
101033    if test -n "$PKG_CONFIG" && \
101034    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
101035  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
101036  ac_status=$?
101037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
101038  test $ac_status = 0; }; then
101039  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
101040		      test "x$?" != "x0" && pkg_failed=yes
101041else
101042  pkg_failed=yes
101043fi
101044 else
101045    pkg_failed=untried
101046fi
101047if test -n "$LUA_LIBS"; then
101048    pkg_cv_LUA_LIBS="$LUA_LIBS"
101049 elif test -n "$PKG_CONFIG"; then
101050    if test -n "$PKG_CONFIG" && \
101051    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
101052  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
101053  ac_status=$?
101054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
101055  test $ac_status = 0; }; then
101056  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
101057		      test "x$?" != "x0" && pkg_failed=yes
101058else
101059  pkg_failed=yes
101060fi
101061 else
101062    pkg_failed=untried
101063fi
101064
101065
101066
101067if test $pkg_failed = yes; then
101068   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101069$as_echo "no" >&6; }
101070
101071if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
101072        _pkg_short_errors_supported=yes
101073else
101074        _pkg_short_errors_supported=no
101075fi
101076        if test $_pkg_short_errors_supported = yes; then
101077	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
101078        else
101079	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
101080        fi
101081	# Put the nasty error message in config.log where it belongs
101082	echo "$LUA_PKG_ERRORS" >&5
101083
101084	with_liblua="no (pkg-config cannot find liblua)"
101085
101086elif test $pkg_failed = untried; then
101087     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101088$as_echo "no" >&6; }
101089	with_liblua="no (pkg-config cannot find liblua)"
101090
101091else
101092	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
101093	LUA_LIBS=$pkg_cv_LUA_LIBS
101094        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
101095$as_echo "yes" >&6; }
101096	with_liblua="yes"
101097fi
101098
101099
101100else
101101	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
101102	LUA_LIBS=$pkg_cv_LUA_LIBS
101103        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
101104$as_echo "yes" >&6; }
101105	with_liblua="yes"
101106fi
101107
101108
101109else
101110	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
101111	LUA_LIBS=$pkg_cv_LUA_LIBS
101112        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
101113$as_echo "yes" >&6; }
101114	with_liblua="yes"
101115fi
101116
101117
101118elif test $pkg_failed = untried; then
101119     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101120$as_echo "no" >&6; }
101121
101122
101123pkg_failed=no
101124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
101125$as_echo_n "checking for LUA... " >&6; }
101126
101127if test -n "$LUA_CFLAGS"; then
101128    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
101129 elif test -n "$PKG_CONFIG"; then
101130    if test -n "$PKG_CONFIG" && \
101131    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
101132  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
101133  ac_status=$?
101134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
101135  test $ac_status = 0; }; then
101136  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null`
101137		      test "x$?" != "x0" && pkg_failed=yes
101138else
101139  pkg_failed=yes
101140fi
101141 else
101142    pkg_failed=untried
101143fi
101144if test -n "$LUA_LIBS"; then
101145    pkg_cv_LUA_LIBS="$LUA_LIBS"
101146 elif test -n "$PKG_CONFIG"; then
101147    if test -n "$PKG_CONFIG" && \
101148    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5
101149  ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5
101150  ac_status=$?
101151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
101152  test $ac_status = 0; }; then
101153  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null`
101154		      test "x$?" != "x0" && pkg_failed=yes
101155else
101156  pkg_failed=yes
101157fi
101158 else
101159    pkg_failed=untried
101160fi
101161
101162
101163
101164if test $pkg_failed = yes; then
101165   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101166$as_echo "no" >&6; }
101167
101168if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
101169        _pkg_short_errors_supported=yes
101170else
101171        _pkg_short_errors_supported=no
101172fi
101173        if test $_pkg_short_errors_supported = yes; then
101174	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1`
101175        else
101176	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1`
101177        fi
101178	# Put the nasty error message in config.log where it belongs
101179	echo "$LUA_PKG_ERRORS" >&5
101180
101181
101182
101183pkg_failed=no
101184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
101185$as_echo_n "checking for LUA... " >&6; }
101186
101187if test -n "$LUA_CFLAGS"; then
101188    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
101189 elif test -n "$PKG_CONFIG"; then
101190    if test -n "$PKG_CONFIG" && \
101191    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
101192  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
101193  ac_status=$?
101194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
101195  test $ac_status = 0; }; then
101196  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
101197		      test "x$?" != "x0" && pkg_failed=yes
101198else
101199  pkg_failed=yes
101200fi
101201 else
101202    pkg_failed=untried
101203fi
101204if test -n "$LUA_LIBS"; then
101205    pkg_cv_LUA_LIBS="$LUA_LIBS"
101206 elif test -n "$PKG_CONFIG"; then
101207    if test -n "$PKG_CONFIG" && \
101208    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
101209  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
101210  ac_status=$?
101211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
101212  test $ac_status = 0; }; then
101213  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
101214		      test "x$?" != "x0" && pkg_failed=yes
101215else
101216  pkg_failed=yes
101217fi
101218 else
101219    pkg_failed=untried
101220fi
101221
101222
101223
101224if test $pkg_failed = yes; then
101225   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101226$as_echo "no" >&6; }
101227
101228if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
101229        _pkg_short_errors_supported=yes
101230else
101231        _pkg_short_errors_supported=no
101232fi
101233        if test $_pkg_short_errors_supported = yes; then
101234	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
101235        else
101236	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
101237        fi
101238	# Put the nasty error message in config.log where it belongs
101239	echo "$LUA_PKG_ERRORS" >&5
101240
101241
101242
101243pkg_failed=no
101244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
101245$as_echo_n "checking for LUA... " >&6; }
101246
101247if test -n "$LUA_CFLAGS"; then
101248    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
101249 elif test -n "$PKG_CONFIG"; then
101250    if test -n "$PKG_CONFIG" && \
101251    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
101252  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
101253  ac_status=$?
101254  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
101255  test $ac_status = 0; }; then
101256  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
101257		      test "x$?" != "x0" && pkg_failed=yes
101258else
101259  pkg_failed=yes
101260fi
101261 else
101262    pkg_failed=untried
101263fi
101264if test -n "$LUA_LIBS"; then
101265    pkg_cv_LUA_LIBS="$LUA_LIBS"
101266 elif test -n "$PKG_CONFIG"; then
101267    if test -n "$PKG_CONFIG" && \
101268    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
101269  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
101270  ac_status=$?
101271  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
101272  test $ac_status = 0; }; then
101273  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
101274		      test "x$?" != "x0" && pkg_failed=yes
101275else
101276  pkg_failed=yes
101277fi
101278 else
101279    pkg_failed=untried
101280fi
101281
101282
101283
101284if test $pkg_failed = yes; then
101285   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101286$as_echo "no" >&6; }
101287
101288if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
101289        _pkg_short_errors_supported=yes
101290else
101291        _pkg_short_errors_supported=no
101292fi
101293        if test $_pkg_short_errors_supported = yes; then
101294	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
101295        else
101296	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
101297        fi
101298	# Put the nasty error message in config.log where it belongs
101299	echo "$LUA_PKG_ERRORS" >&5
101300
101301	with_liblua="no (pkg-config cannot find liblua)"
101302
101303elif test $pkg_failed = untried; then
101304     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101305$as_echo "no" >&6; }
101306	with_liblua="no (pkg-config cannot find liblua)"
101307
101308else
101309	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
101310	LUA_LIBS=$pkg_cv_LUA_LIBS
101311        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
101312$as_echo "yes" >&6; }
101313	with_liblua="yes"
101314fi
101315
101316
101317elif test $pkg_failed = untried; then
101318     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101319$as_echo "no" >&6; }
101320
101321
101322pkg_failed=no
101323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
101324$as_echo_n "checking for LUA... " >&6; }
101325
101326if test -n "$LUA_CFLAGS"; then
101327    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
101328 elif test -n "$PKG_CONFIG"; then
101329    if test -n "$PKG_CONFIG" && \
101330    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
101331  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
101332  ac_status=$?
101333  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
101334  test $ac_status = 0; }; then
101335  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
101336		      test "x$?" != "x0" && pkg_failed=yes
101337else
101338  pkg_failed=yes
101339fi
101340 else
101341    pkg_failed=untried
101342fi
101343if test -n "$LUA_LIBS"; then
101344    pkg_cv_LUA_LIBS="$LUA_LIBS"
101345 elif test -n "$PKG_CONFIG"; then
101346    if test -n "$PKG_CONFIG" && \
101347    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
101348  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
101349  ac_status=$?
101350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
101351  test $ac_status = 0; }; then
101352  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
101353		      test "x$?" != "x0" && pkg_failed=yes
101354else
101355  pkg_failed=yes
101356fi
101357 else
101358    pkg_failed=untried
101359fi
101360
101361
101362
101363if test $pkg_failed = yes; then
101364   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101365$as_echo "no" >&6; }
101366
101367if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
101368        _pkg_short_errors_supported=yes
101369else
101370        _pkg_short_errors_supported=no
101371fi
101372        if test $_pkg_short_errors_supported = yes; then
101373	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
101374        else
101375	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
101376        fi
101377	# Put the nasty error message in config.log where it belongs
101378	echo "$LUA_PKG_ERRORS" >&5
101379
101380	with_liblua="no (pkg-config cannot find liblua)"
101381
101382elif test $pkg_failed = untried; then
101383     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101384$as_echo "no" >&6; }
101385	with_liblua="no (pkg-config cannot find liblua)"
101386
101387else
101388	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
101389	LUA_LIBS=$pkg_cv_LUA_LIBS
101390        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
101391$as_echo "yes" >&6; }
101392	with_liblua="yes"
101393fi
101394
101395
101396else
101397	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
101398	LUA_LIBS=$pkg_cv_LUA_LIBS
101399        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
101400$as_echo "yes" >&6; }
101401	with_liblua="yes"
101402fi
101403
101404
101405elif test $pkg_failed = untried; then
101406     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101407$as_echo "no" >&6; }
101408
101409
101410pkg_failed=no
101411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
101412$as_echo_n "checking for LUA... " >&6; }
101413
101414if test -n "$LUA_CFLAGS"; then
101415    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
101416 elif test -n "$PKG_CONFIG"; then
101417    if test -n "$PKG_CONFIG" && \
101418    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
101419  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
101420  ac_status=$?
101421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
101422  test $ac_status = 0; }; then
101423  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null`
101424		      test "x$?" != "x0" && pkg_failed=yes
101425else
101426  pkg_failed=yes
101427fi
101428 else
101429    pkg_failed=untried
101430fi
101431if test -n "$LUA_LIBS"; then
101432    pkg_cv_LUA_LIBS="$LUA_LIBS"
101433 elif test -n "$PKG_CONFIG"; then
101434    if test -n "$PKG_CONFIG" && \
101435    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5
101436  ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5
101437  ac_status=$?
101438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
101439  test $ac_status = 0; }; then
101440  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null`
101441		      test "x$?" != "x0" && pkg_failed=yes
101442else
101443  pkg_failed=yes
101444fi
101445 else
101446    pkg_failed=untried
101447fi
101448
101449
101450
101451if test $pkg_failed = yes; then
101452   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101453$as_echo "no" >&6; }
101454
101455if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
101456        _pkg_short_errors_supported=yes
101457else
101458        _pkg_short_errors_supported=no
101459fi
101460        if test $_pkg_short_errors_supported = yes; then
101461	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1`
101462        else
101463	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1`
101464        fi
101465	# Put the nasty error message in config.log where it belongs
101466	echo "$LUA_PKG_ERRORS" >&5
101467
101468
101469
101470pkg_failed=no
101471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
101472$as_echo_n "checking for LUA... " >&6; }
101473
101474if test -n "$LUA_CFLAGS"; then
101475    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
101476 elif test -n "$PKG_CONFIG"; then
101477    if test -n "$PKG_CONFIG" && \
101478    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
101479  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
101480  ac_status=$?
101481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
101482  test $ac_status = 0; }; then
101483  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
101484		      test "x$?" != "x0" && pkg_failed=yes
101485else
101486  pkg_failed=yes
101487fi
101488 else
101489    pkg_failed=untried
101490fi
101491if test -n "$LUA_LIBS"; then
101492    pkg_cv_LUA_LIBS="$LUA_LIBS"
101493 elif test -n "$PKG_CONFIG"; then
101494    if test -n "$PKG_CONFIG" && \
101495    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
101496  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
101497  ac_status=$?
101498  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
101499  test $ac_status = 0; }; then
101500  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
101501		      test "x$?" != "x0" && pkg_failed=yes
101502else
101503  pkg_failed=yes
101504fi
101505 else
101506    pkg_failed=untried
101507fi
101508
101509
101510
101511if test $pkg_failed = yes; then
101512   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101513$as_echo "no" >&6; }
101514
101515if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
101516        _pkg_short_errors_supported=yes
101517else
101518        _pkg_short_errors_supported=no
101519fi
101520        if test $_pkg_short_errors_supported = yes; then
101521	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
101522        else
101523	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
101524        fi
101525	# Put the nasty error message in config.log where it belongs
101526	echo "$LUA_PKG_ERRORS" >&5
101527
101528	with_liblua="no (pkg-config cannot find liblua)"
101529
101530elif test $pkg_failed = untried; then
101531     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101532$as_echo "no" >&6; }
101533	with_liblua="no (pkg-config cannot find liblua)"
101534
101535else
101536	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
101537	LUA_LIBS=$pkg_cv_LUA_LIBS
101538        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
101539$as_echo "yes" >&6; }
101540	with_liblua="yes"
101541fi
101542
101543
101544elif test $pkg_failed = untried; then
101545     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101546$as_echo "no" >&6; }
101547
101548
101549pkg_failed=no
101550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
101551$as_echo_n "checking for LUA... " >&6; }
101552
101553if test -n "$LUA_CFLAGS"; then
101554    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
101555 elif test -n "$PKG_CONFIG"; then
101556    if test -n "$PKG_CONFIG" && \
101557    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
101558  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
101559  ac_status=$?
101560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
101561  test $ac_status = 0; }; then
101562  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51" 2>/dev/null`
101563		      test "x$?" != "x0" && pkg_failed=yes
101564else
101565  pkg_failed=yes
101566fi
101567 else
101568    pkg_failed=untried
101569fi
101570if test -n "$LUA_LIBS"; then
101571    pkg_cv_LUA_LIBS="$LUA_LIBS"
101572 elif test -n "$PKG_CONFIG"; then
101573    if test -n "$PKG_CONFIG" && \
101574    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua51\""; } >&5
101575  ($PKG_CONFIG --exists --print-errors "lua51") 2>&5
101576  ac_status=$?
101577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
101578  test $ac_status = 0; }; then
101579  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51" 2>/dev/null`
101580		      test "x$?" != "x0" && pkg_failed=yes
101581else
101582  pkg_failed=yes
101583fi
101584 else
101585    pkg_failed=untried
101586fi
101587
101588
101589
101590if test $pkg_failed = yes; then
101591   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101592$as_echo "no" >&6; }
101593
101594if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
101595        _pkg_short_errors_supported=yes
101596else
101597        _pkg_short_errors_supported=no
101598fi
101599        if test $_pkg_short_errors_supported = yes; then
101600	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51" 2>&1`
101601        else
101602	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51" 2>&1`
101603        fi
101604	# Put the nasty error message in config.log where it belongs
101605	echo "$LUA_PKG_ERRORS" >&5
101606
101607	with_liblua="no (pkg-config cannot find liblua)"
101608
101609elif test $pkg_failed = untried; then
101610     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101611$as_echo "no" >&6; }
101612	with_liblua="no (pkg-config cannot find liblua)"
101613
101614else
101615	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
101616	LUA_LIBS=$pkg_cv_LUA_LIBS
101617        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
101618$as_echo "yes" >&6; }
101619	with_liblua="yes"
101620fi
101621
101622
101623else
101624	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
101625	LUA_LIBS=$pkg_cv_LUA_LIBS
101626        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
101627$as_echo "yes" >&6; }
101628	with_liblua="yes"
101629fi
101630
101631
101632else
101633	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
101634	LUA_LIBS=$pkg_cv_LUA_LIBS
101635        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
101636$as_echo "yes" >&6; }
101637	with_liblua="yes"
101638fi
101639
101640
101641else
101642	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
101643	LUA_LIBS=$pkg_cv_LUA_LIBS
101644        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
101645$as_echo "yes" >&6; }
101646	with_liblua="yes"
101647fi
101648
101649
101650else
101651	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
101652	LUA_LIBS=$pkg_cv_LUA_LIBS
101653        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
101654$as_echo "yes" >&6; }
101655	with_liblua="yes"
101656fi
101657
101658
101659else
101660	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
101661	LUA_LIBS=$pkg_cv_LUA_LIBS
101662        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
101663$as_echo "yes" >&6; }
101664	with_liblua="yes"
101665fi
101666
101667
101668else
101669	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
101670	LUA_LIBS=$pkg_cv_LUA_LIBS
101671        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
101672$as_echo "yes" >&6; }
101673	with_liblua="yes"
101674fi
101675
101676
101677else
101678	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
101679	LUA_LIBS=$pkg_cv_LUA_LIBS
101680        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
101681$as_echo "yes" >&6; }
101682	with_liblua="yes"
101683fi
101684
101685
101686else
101687	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
101688	LUA_LIBS=$pkg_cv_LUA_LIBS
101689        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
101690$as_echo "yes" >&6; }
101691	with_liblua="yes"
101692fi
101693
101694
101695else
101696	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
101697	LUA_LIBS=$pkg_cv_LUA_LIBS
101698        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
101699$as_echo "yes" >&6; }
101700	with_liblua="yes"
101701fi
101702fi
101703
101704if test "x$with_liblua" = "xyes"
101705then
101706  SAVE_CPPFLAGS="$CPPFLAGS"
101707  CPPFLAGS="$CPPFLAGS $LUA_CFLAGS"
101708
101709  for ac_header in lua.h lauxlib.h lualib.h
101710do :
101711  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
101712ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
101713if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
101714  cat >>confdefs.h <<_ACEOF
101715#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
101716_ACEOF
101717 with_liblua="yes"
101718else
101719  with_liblua="no (header not found)"
101720
101721fi
101722
101723done
101724
101725
101726  CPPFLAGS="$SAVE_CPPFLAGS"
101727fi
101728
101729if test "x$with_liblua" = "xyes"
101730then
101731  SAVE_LIBS="$LIBS"
101732  LIBS="$LIBS $LUA_LIBS"
101733
101734  ac_fn_c_check_func "$LINENO" "lua_settop" "ac_cv_func_lua_settop"
101735if test "x$ac_cv_func_lua_settop" = xyes; then :
101736  with_liblua="yes"
101737else
101738  with_liblua="no (symbol 'lua_settop' not found)"
101739
101740fi
101741
101742
101743  LIBS="$SAVE_LIBS"
101744fi
101745
101746if test "x$with_liblua" = "xyes"
101747then
101748    BUILD_WITH_LIBLUA_CFLAGS="$LUA_CFLAGS"
101749    BUILD_WITH_LIBLUA_LIBS="$LUA_LIBS"
101750fi
101751
101752
101753# }}}
101754
101755# --with-libmemcached {{{
101756
101757# Check whether --with-libmemcached was given.
101758if test "${with_libmemcached+set}" = set; then :
101759  withval=$with_libmemcached;
101760    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
101761      with_libmemcached_cppflags="-I$withval/include"
101762      with_libmemcached_ldflags="-L$withval/lib"
101763      with_libmemcached="yes"
101764    else
101765      with_libmemcached="$withval"
101766    fi
101767
101768else
101769  with_libmemcached="yes"
101770
101771fi
101772
101773
101774if test "x$with_libmemcached" = "xyes"; then
101775  SAVE_CPPFLAGS="$CPPFLAGS"
101776  CPPFLAGS="$CPPFLAGS $with_libmemcached_cppflags"
101777
101778  for ac_header in libmemcached/memcached.h
101779do :
101780  ac_fn_c_check_header_mongrel "$LINENO" "libmemcached/memcached.h" "ac_cv_header_libmemcached_memcached_h" "$ac_includes_default"
101781if test "x$ac_cv_header_libmemcached_memcached_h" = xyes; then :
101782  cat >>confdefs.h <<_ACEOF
101783#define HAVE_LIBMEMCACHED_MEMCACHED_H 1
101784_ACEOF
101785 with_libmemcached="yes"
101786else
101787  with_libmemcached="no (libmemcached/memcached.h not found)"
101788
101789fi
101790
101791done
101792
101793
101794  CPPFLAGS="$SAVE_CPPFLAGS"
101795fi
101796
101797if test "x$with_libmemcached" = "xyes"; then
101798  SAVE_CPPFLAGS="$CPPFLAGS"
101799  SAVE_LDFLAGS="$LDFLAGS"
101800  CPPFLAGS="$CPPFLAGS $with_libmemcached_cppflags"
101801  LDFLAGS="$LDFLAGS $with_libmemcached_ldflags"
101802
101803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcached_create in -lmemcached" >&5
101804$as_echo_n "checking for memcached_create in -lmemcached... " >&6; }
101805if ${ac_cv_lib_memcached_memcached_create+:} false; then :
101806  $as_echo_n "(cached) " >&6
101807else
101808  ac_check_lib_save_LIBS=$LIBS
101809LIBS="-lmemcached  $LIBS"
101810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101811/* end confdefs.h.  */
101812
101813/* Override any GCC internal prototype to avoid an error.
101814   Use char because int might match the return type of a GCC
101815   builtin and then its argument prototype would still apply.  */
101816#ifdef __cplusplus
101817extern "C"
101818#endif
101819char memcached_create ();
101820int
101821main ()
101822{
101823return memcached_create ();
101824  ;
101825  return 0;
101826}
101827_ACEOF
101828if ac_fn_c_try_link "$LINENO"; then :
101829  ac_cv_lib_memcached_memcached_create=yes
101830else
101831  ac_cv_lib_memcached_memcached_create=no
101832fi
101833rm -f core conftest.err conftest.$ac_objext \
101834    conftest$ac_exeext conftest.$ac_ext
101835LIBS=$ac_check_lib_save_LIBS
101836fi
101837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_memcached_memcached_create" >&5
101838$as_echo "$ac_cv_lib_memcached_memcached_create" >&6; }
101839if test "x$ac_cv_lib_memcached_memcached_create" = xyes; then :
101840  with_libmemcached="yes"
101841else
101842  with_libmemcached="no (Symbol 'memcached_create' not found)"
101843
101844fi
101845
101846
101847  CPPFLAGS="$SAVE_CPPFLAGS"
101848  LDFLAGS="$SAVE_LDFLAGS"
101849fi
101850
101851if test "x$with_libmemcached" = "xyes"; then
101852  BUILD_WITH_LIBMEMCACHED_CPPFLAGS="$with_libmemcached_cppflags"
101853  BUILD_WITH_LIBMEMCACHED_LDFLAGS="$with_libmemcached_ldflags"
101854  BUILD_WITH_LIBMEMCACHED_LIBS="-lmemcached"
101855fi
101856
101857
101858
101859
101860# }}}
101861
101862# --with-libmicrohttpd {{{
101863with_libmicrohttpd_cppflags=""
101864with_libmicrohttpd_ldflags=""
101865
101866# Check whether --with-libmicrohttpd was given.
101867if test "${with_libmicrohttpd+set}" = set; then :
101868  withval=$with_libmicrohttpd;
101869    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
101870      with_libmicrohttpd_cppflags="-I$withval/include"
101871      with_libmicrohttpd_ldflags="-L$withval/lib"
101872      with_libmicrohttpd="yes"
101873    fi
101874    if test "x$withval" = "xno"; then
101875      with_libmicrohttpd="no (disabled on command line)"
101876    fi
101877
101878else
101879  withval="yes"
101880
101881fi
101882
101883if test "x$withval" = "xyes"; then
101884
101885pkg_failed=no
101886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MICROHTTPD" >&5
101887$as_echo_n "checking for MICROHTTPD... " >&6; }
101888
101889if test -n "$MICROHTTPD_CFLAGS"; then
101890    pkg_cv_MICROHTTPD_CFLAGS="$MICROHTTPD_CFLAGS"
101891 elif test -n "$PKG_CONFIG"; then
101892    if test -n "$PKG_CONFIG" && \
101893    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
101894  ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
101895  ac_status=$?
101896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
101897  test $ac_status = 0; }; then
101898  pkg_cv_MICROHTTPD_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd" 2>/dev/null`
101899		      test "x$?" != "x0" && pkg_failed=yes
101900else
101901  pkg_failed=yes
101902fi
101903 else
101904    pkg_failed=untried
101905fi
101906if test -n "$MICROHTTPD_LIBS"; then
101907    pkg_cv_MICROHTTPD_LIBS="$MICROHTTPD_LIBS"
101908 elif test -n "$PKG_CONFIG"; then
101909    if test -n "$PKG_CONFIG" && \
101910    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5
101911  ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5
101912  ac_status=$?
101913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
101914  test $ac_status = 0; }; then
101915  pkg_cv_MICROHTTPD_LIBS=`$PKG_CONFIG --libs "libmicrohttpd" 2>/dev/null`
101916		      test "x$?" != "x0" && pkg_failed=yes
101917else
101918  pkg_failed=yes
101919fi
101920 else
101921    pkg_failed=untried
101922fi
101923
101924
101925
101926if test $pkg_failed = yes; then
101927   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101928$as_echo "no" >&6; }
101929
101930if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
101931        _pkg_short_errors_supported=yes
101932else
101933        _pkg_short_errors_supported=no
101934fi
101935        if test $_pkg_short_errors_supported = yes; then
101936	        MICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd" 2>&1`
101937        else
101938	        MICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd" 2>&1`
101939        fi
101940	# Put the nasty error message in config.log where it belongs
101941	echo "$MICROHTTPD_PKG_ERRORS" >&5
101942
101943	with_libmicrohttpd="no (pkg-config could not find libmicrohttpd)"
101944
101945elif test $pkg_failed = untried; then
101946     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101947$as_echo "no" >&6; }
101948	with_libmicrohttpd="no (pkg-config could not find libmicrohttpd)"
101949
101950else
101951	MICROHTTPD_CFLAGS=$pkg_cv_MICROHTTPD_CFLAGS
101952	MICROHTTPD_LIBS=$pkg_cv_MICROHTTPD_LIBS
101953        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
101954$as_echo "yes" >&6; }
101955	with_libmicrohttpd="yes"
101956fi
101957fi
101958
101959if test "x$MICROHTTPD_LIBS" = "x"; then
101960  MICROHTTPD_LIBS="-lmicrohttpd"
101961fi
101962
101963SAVE_CPPFLAGS="$CPPFLAGS"
101964SAVE_LDFLAGS="$LDFLAGS"
101965SAVE_LIBS="$LIBS"
101966CPPFLAGS="$with_libmicrohttpd_cppflags $MICROHTTPD_CFLAGS"
101967LDFLAGS="$with_libmicrohttpd_ldflags $LDFLAGS"
101968LIBS="$LIBS $MICROHTTPD_LIBS"
101969
101970if test "x$with_libmicrohttpd" = "xyes"; then
101971  for ac_header in microhttpd.h
101972do :
101973  ac_fn_c_check_header_mongrel "$LINENO" "microhttpd.h" "ac_cv_header_microhttpd_h" "$ac_includes_default"
101974if test "x$ac_cv_header_microhttpd_h" = xyes; then :
101975  cat >>confdefs.h <<_ACEOF
101976#define HAVE_MICROHTTPD_H 1
101977_ACEOF
101978 with_libmicrohttpd="yes"
101979else
101980  with_libmicrohttpd="no (<microhttpd.h> not found)"
101981
101982fi
101983
101984done
101985
101986fi
101987
101988if test "x$with_libmicrohttpd" = "xyes"; then
101989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MHD_start_daemon in -lmicrohttpd" >&5
101990$as_echo_n "checking for MHD_start_daemon in -lmicrohttpd... " >&6; }
101991if ${ac_cv_lib_microhttpd_MHD_start_daemon+:} false; then :
101992  $as_echo_n "(cached) " >&6
101993else
101994  ac_check_lib_save_LIBS=$LIBS
101995LIBS="-lmicrohttpd  $LIBS"
101996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101997/* end confdefs.h.  */
101998
101999/* Override any GCC internal prototype to avoid an error.
102000   Use char because int might match the return type of a GCC
102001   builtin and then its argument prototype would still apply.  */
102002#ifdef __cplusplus
102003extern "C"
102004#endif
102005char MHD_start_daemon ();
102006int
102007main ()
102008{
102009return MHD_start_daemon ();
102010  ;
102011  return 0;
102012}
102013_ACEOF
102014if ac_fn_c_try_link "$LINENO"; then :
102015  ac_cv_lib_microhttpd_MHD_start_daemon=yes
102016else
102017  ac_cv_lib_microhttpd_MHD_start_daemon=no
102018fi
102019rm -f core conftest.err conftest.$ac_objext \
102020    conftest$ac_exeext conftest.$ac_ext
102021LIBS=$ac_check_lib_save_LIBS
102022fi
102023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_microhttpd_MHD_start_daemon" >&5
102024$as_echo "$ac_cv_lib_microhttpd_MHD_start_daemon" >&6; }
102025if test "x$ac_cv_lib_microhttpd_MHD_start_daemon" = xyes; then :
102026  with_libmicrohttpd="yes"
102027else
102028  with_libmicrohttpd="no (libmicrohttpd not found)"
102029
102030fi
102031
102032fi
102033
102034CPPFLAGS="$SAVE_CPPFLAGS"
102035LDFLAGS="$SAVE_LDFLAGS"
102036LIBS="$SAVE_LIBS"
102037
102038BUILD_WITH_LIBMICROHTTPD_CPPFLAGS="$with_libmicrohttpd_cppflags $MICROHTTPD_CFLAGS"
102039BUILD_WITH_LIBMICROHTTPD_LDFLAGS="$with_libmicrohttpd_ldflags"
102040BUILD_WITH_LIBMICROHTTPD_LIBS="$MICROHTTPD_LIBS"
102041
102042
102043
102044# }}}
102045
102046# --with-libmodbus {{{
102047
102048# Check whether --with-libmodbus was given.
102049if test "${with_libmodbus+set}" = set; then :
102050  withval=$with_libmodbus;
102051    if test "x$withval" = "xno"; then
102052      with_libmodbus="no"
102053    else if test "x$withval" = "xyes"; then
102054      with_libmodbus="use_pkgconfig"
102055    else if test -d "$with_libmodbus/lib"; then
102056      { $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for libmodbus: Manually configured" >&5
102057$as_echo "$as_me: Not checking for libmodbus: Manually configured" >&6;}
102058      with_libmodbus_cflags="-I$withval/include"
102059      with_libmodbus_libs="-L$withval/lib -lmodbus"
102060      with_libmodbus="yes"
102061    fi; fi; fi
102062
102063else
102064  with_libmodbus="use_pkgconfig"
102065
102066fi
102067
102068
102069# configure using pkg-config
102070if test "x$with_libmodbus" = "xuse_pkgconfig"; then
102071  $PKG_CONFIG --exists 'libmodbus' 2>/dev/null
102072  if test $? -ne 0; then
102073    with_libmodbus="no (pkg-config doesn't know libmodbus)"
102074  fi
102075fi
102076
102077if test "x$with_libmodbus" = "xuse_pkgconfig"; then
102078  with_libmodbus_cflags="`$PKG_CONFIG --cflags 'libmodbus'`"
102079  if test $? -ne 0; then
102080    with_libmodbus="no ($PKG_CONFIG failed)"
102081  fi
102082
102083  with_libmodbus_libs="`$PKG_CONFIG --libs 'libmodbus'`"
102084  if test $? -ne 0; then
102085    with_libmodbus="no ($PKG_CONFIG failed)"
102086  fi
102087fi
102088
102089if test "x$with_libmodbus" = "xuse_pkgconfig"; then
102090  with_libmodbus="yes"
102091fi
102092
102093if test "x$with_libmodbus" = "xyes"; then
102094  SAVE_CPPFLAGS="$CPPFLAGS"
102095  CPPFLAGS="$CPPFLAGS $with_libmodbus_cflags"
102096
102097  for ac_header in modbus.h
102098do :
102099  ac_fn_c_check_header_mongrel "$LINENO" "modbus.h" "ac_cv_header_modbus_h" "$ac_includes_default"
102100if test "x$ac_cv_header_modbus_h" = xyes; then :
102101  cat >>confdefs.h <<_ACEOF
102102#define HAVE_MODBUS_H 1
102103_ACEOF
102104 with_libmodbus="yes"
102105else
102106  with_libmodbus="no (modbus.h not found)"
102107
102108fi
102109
102110done
102111
102112
102113  CPPFLAGS="$SAVE_CPPFLAGS"
102114fi
102115
102116if test "x$with_libmodbus" = "xyes"; then
102117  SAVE_LDFLAGS="$LDFLAGS"
102118  LDFLAGS="$LDFLAGS $with_libmodbus_libs"
102119
102120  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modbus_connect in -lmodbus" >&5
102121$as_echo_n "checking for modbus_connect in -lmodbus... " >&6; }
102122if ${ac_cv_lib_modbus_modbus_connect+:} false; then :
102123  $as_echo_n "(cached) " >&6
102124else
102125  ac_check_lib_save_LIBS=$LIBS
102126LIBS="-lmodbus  $LIBS"
102127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102128/* end confdefs.h.  */
102129
102130/* Override any GCC internal prototype to avoid an error.
102131   Use char because int might match the return type of a GCC
102132   builtin and then its argument prototype would still apply.  */
102133#ifdef __cplusplus
102134extern "C"
102135#endif
102136char modbus_connect ();
102137int
102138main ()
102139{
102140return modbus_connect ();
102141  ;
102142  return 0;
102143}
102144_ACEOF
102145if ac_fn_c_try_link "$LINENO"; then :
102146  ac_cv_lib_modbus_modbus_connect=yes
102147else
102148  ac_cv_lib_modbus_modbus_connect=no
102149fi
102150rm -f core conftest.err conftest.$ac_objext \
102151    conftest$ac_exeext conftest.$ac_ext
102152LIBS=$ac_check_lib_save_LIBS
102153fi
102154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_modbus_modbus_connect" >&5
102155$as_echo "$ac_cv_lib_modbus_modbus_connect" >&6; }
102156if test "x$ac_cv_lib_modbus_modbus_connect" = xyes; then :
102157  with_libmodbus="yes"
102158else
102159  with_libmodbus="no (symbol modbus_connect not found)"
102160
102161fi
102162
102163
102164  LDFLAGS="$SAVE_LDFLAGS"
102165fi
102166
102167if test "x$with_libmodbus" = "xyes"; then
102168  BUILD_WITH_LIBMODBUS_CFLAGS="$with_libmodbus_cflags"
102169  BUILD_WITH_LIBMODBUS_LIBS="$with_libmodbus_libs"
102170fi
102171
102172
102173
102174# }}}
102175
102176# --with-libmongoc {{{
102177
102178# Check whether --with-libmongoc was given.
102179if test "${with_libmongoc+set}" = set; then :
102180  withval=$with_libmongoc;
102181    if test "x$withval" = "xyes"; then
102182      with_libmongoc="yes"
102183    else if test "x$withval" = "xno"; then
102184      with_libmongoc="no"
102185    else
102186      with_libmongoc="no"
102187    fi; fi
102188
102189else
102190  with_libmongoc="yes"
102191
102192fi
102193
102194
102195if test "x$with_libmongoc" = "xyes"; then
102196
102197pkg_failed=no
102198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMONGOC" >&5
102199$as_echo_n "checking for LIBMONGOC... " >&6; }
102200
102201if test -n "$LIBMONGOC_CFLAGS"; then
102202    pkg_cv_LIBMONGOC_CFLAGS="$LIBMONGOC_CFLAGS"
102203 elif test -n "$PKG_CONFIG"; then
102204    if test -n "$PKG_CONFIG" && \
102205    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmongoc-1.0\""; } >&5
102206  ($PKG_CONFIG --exists --print-errors "libmongoc-1.0") 2>&5
102207  ac_status=$?
102208  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
102209  test $ac_status = 0; }; then
102210  pkg_cv_LIBMONGOC_CFLAGS=`$PKG_CONFIG --cflags "libmongoc-1.0" 2>/dev/null`
102211		      test "x$?" != "x0" && pkg_failed=yes
102212else
102213  pkg_failed=yes
102214fi
102215 else
102216    pkg_failed=untried
102217fi
102218if test -n "$LIBMONGOC_LIBS"; then
102219    pkg_cv_LIBMONGOC_LIBS="$LIBMONGOC_LIBS"
102220 elif test -n "$PKG_CONFIG"; then
102221    if test -n "$PKG_CONFIG" && \
102222    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmongoc-1.0\""; } >&5
102223  ($PKG_CONFIG --exists --print-errors "libmongoc-1.0") 2>&5
102224  ac_status=$?
102225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
102226  test $ac_status = 0; }; then
102227  pkg_cv_LIBMONGOC_LIBS=`$PKG_CONFIG --libs "libmongoc-1.0" 2>/dev/null`
102228		      test "x$?" != "x0" && pkg_failed=yes
102229else
102230  pkg_failed=yes
102231fi
102232 else
102233    pkg_failed=untried
102234fi
102235
102236
102237
102238if test $pkg_failed = yes; then
102239   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
102240$as_echo "no" >&6; }
102241
102242if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
102243        _pkg_short_errors_supported=yes
102244else
102245        _pkg_short_errors_supported=no
102246fi
102247        if test $_pkg_short_errors_supported = yes; then
102248	        LIBMONGOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmongoc-1.0" 2>&1`
102249        else
102250	        LIBMONGOC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmongoc-1.0" 2>&1`
102251        fi
102252	# Put the nasty error message in config.log where it belongs
102253	echo "$LIBMONGOC_PKG_ERRORS" >&5
102254
102255	with_libmongoc="no (pkg-config could not find libmongoc)"
102256
102257elif test $pkg_failed = untried; then
102258     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
102259$as_echo "no" >&6; }
102260	with_libmongoc="no (pkg-config could not find libmongoc)"
102261
102262else
102263	LIBMONGOC_CFLAGS=$pkg_cv_LIBMONGOC_CFLAGS
102264	LIBMONGOC_LIBS=$pkg_cv_LIBMONGOC_LIBS
102265        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
102266$as_echo "yes" >&6; }
102267	with_libmongoc="yes"
102268fi
102269fi
102270
102271if test "x$with_libmongoc" = "xyes"; then
102272  SAVE_CPPFLAGS="$CPPFLAGS"
102273
102274  CPPFLAGS="$CPPFLAGS $LIBMONGOC_CFLAGS"
102275
102276  for ac_header in mongoc.h
102277do :
102278  ac_fn_c_check_header_mongrel "$LINENO" "mongoc.h" "ac_cv_header_mongoc_h" "$ac_includes_default"
102279if test "x$ac_cv_header_mongoc_h" = xyes; then :
102280  cat >>confdefs.h <<_ACEOF
102281#define HAVE_MONGOC_H 1
102282_ACEOF
102283 with_libmongoc="yes"
102284else
102285  with_libmongoc="no ('mongoc.h' not found)"
102286
102287fi
102288
102289done
102290
102291
102292  CPPFLAGS="$SAVE_CPPFLAGS"
102293fi
102294
102295if test "x$with_libmongoc" = "xyes"; then
102296  SAVE_CPPFLAGS="$CPPFLAGS"
102297  SAVE_LDFLAGS="$LDFLAGS"
102298
102299  CPPFLAGS="$CPPFLAGS $LIBMONGOC_CFLAGS"
102300  LDFLAGS="$LDFLAGS $LIBMONGOC_LDFLAGS"
102301
102302  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mongoc_init in -lmongoc-1.0" >&5
102303$as_echo_n "checking for mongoc_init in -lmongoc-1.0... " >&6; }
102304if ${ac_cv_lib_mongoc_1_0_mongoc_init+:} false; then :
102305  $as_echo_n "(cached) " >&6
102306else
102307  ac_check_lib_save_LIBS=$LIBS
102308LIBS="-lmongoc-1.0  $LIBS"
102309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102310/* end confdefs.h.  */
102311
102312/* Override any GCC internal prototype to avoid an error.
102313   Use char because int might match the return type of a GCC
102314   builtin and then its argument prototype would still apply.  */
102315#ifdef __cplusplus
102316extern "C"
102317#endif
102318char mongoc_init ();
102319int
102320main ()
102321{
102322return mongoc_init ();
102323  ;
102324  return 0;
102325}
102326_ACEOF
102327if ac_fn_c_try_link "$LINENO"; then :
102328  ac_cv_lib_mongoc_1_0_mongoc_init=yes
102329else
102330  ac_cv_lib_mongoc_1_0_mongoc_init=no
102331fi
102332rm -f core conftest.err conftest.$ac_objext \
102333    conftest$ac_exeext conftest.$ac_ext
102334LIBS=$ac_check_lib_save_LIBS
102335fi
102336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mongoc_1_0_mongoc_init" >&5
102337$as_echo "$ac_cv_lib_mongoc_1_0_mongoc_init" >&6; }
102338if test "x$ac_cv_lib_mongoc_1_0_mongoc_init" = xyes; then :
102339  with_libmongoc="yes"
102340else
102341  with_libmongoc="no (symbol 'mongoc_init' not found)"
102342
102343fi
102344
102345
102346  CPPFLAGS="$SAVE_CPPFLAGS"
102347  LDFLAGS="$SAVE_LDFLAGS"
102348fi
102349
102350if test "x$with_libmongoc" = "xyes"; then
102351  BUILD_WITH_LIBMONGOC_CFLAGS="$LIBMONGOC_CFLAGS"
102352  BUILD_WITH_LIBMONGOC_LDFLAGS="$LIBMONGOC_LDFLAGS"
102353  BUILD_WITH_LIBMONGOC_LIBS="$LIBMONGOC_LIBS"
102354fi
102355
102356
102357
102358
102359# }}}
102360
102361# --with-libmosquitto {{{
102362
102363# Check whether --with-libmosquitto was given.
102364if test "${with_libmosquitto+set}" = set; then :
102365  withval=$with_libmosquitto;
102366    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
102367      with_libmosquitto_cppflags="-I$withval/include"
102368      with_libmosquitto_ldflags="-L$withval/lib"
102369      with_libmosquitto="yes"
102370    else
102371      with_libmosquitto="$withval"
102372    fi
102373
102374else
102375  with_libmosquitto="yes"
102376
102377fi
102378
102379
102380if test "x$with_libmosquitto" = "xyes"; then
102381  SAVE_CPPFLAGS="$CPPFLAGS"
102382  CPPFLAGS="$CPPFLAGS $with_libmosquitto_cppflags"
102383
102384  for ac_header in mosquitto.h
102385do :
102386  ac_fn_c_check_header_mongrel "$LINENO" "mosquitto.h" "ac_cv_header_mosquitto_h" "$ac_includes_default"
102387if test "x$ac_cv_header_mosquitto_h" = xyes; then :
102388  cat >>confdefs.h <<_ACEOF
102389#define HAVE_MOSQUITTO_H 1
102390_ACEOF
102391 with_libmosquitto="yes"
102392else
102393  with_libmosquitto="no (mosquitto.h not found)"
102394
102395fi
102396
102397done
102398
102399
102400  CPPFLAGS="$SAVE_CPPFLAGS"
102401fi
102402
102403if test "x$with_libmosquitto" = "xyes"; then
102404  SAVE_LDFLAGS="$LDFLAGS"
102405  LDFLAGS="$LDFLAGS $with_libmosquitto_ldflags"
102406
102407  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mosquitto_connect in -lmosquitto" >&5
102408$as_echo_n "checking for mosquitto_connect in -lmosquitto... " >&6; }
102409if ${ac_cv_lib_mosquitto_mosquitto_connect+:} false; then :
102410  $as_echo_n "(cached) " >&6
102411else
102412  ac_check_lib_save_LIBS=$LIBS
102413LIBS="-lmosquitto  $LIBS"
102414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102415/* end confdefs.h.  */
102416
102417/* Override any GCC internal prototype to avoid an error.
102418   Use char because int might match the return type of a GCC
102419   builtin and then its argument prototype would still apply.  */
102420#ifdef __cplusplus
102421extern "C"
102422#endif
102423char mosquitto_connect ();
102424int
102425main ()
102426{
102427return mosquitto_connect ();
102428  ;
102429  return 0;
102430}
102431_ACEOF
102432if ac_fn_c_try_link "$LINENO"; then :
102433  ac_cv_lib_mosquitto_mosquitto_connect=yes
102434else
102435  ac_cv_lib_mosquitto_mosquitto_connect=no
102436fi
102437rm -f core conftest.err conftest.$ac_objext \
102438    conftest$ac_exeext conftest.$ac_ext
102439LIBS=$ac_check_lib_save_LIBS
102440fi
102441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mosquitto_mosquitto_connect" >&5
102442$as_echo "$ac_cv_lib_mosquitto_mosquitto_connect" >&6; }
102443if test "x$ac_cv_lib_mosquitto_mosquitto_connect" = xyes; then :
102444  with_libmosquitto="yes"
102445else
102446  with_libmosquitto="no (libmosquitto not found)"
102447
102448fi
102449
102450
102451  LDFLAGS="$SAVE_LDFLAGS"
102452fi
102453
102454if test "x$with_libmosquitto" = "xyes"; then
102455  BUILD_WITH_LIBMOSQUITTO_CPPFLAGS="$with_libmosquitto_cppflags"
102456  BUILD_WITH_LIBMOSQUITTO_LDFLAGS="$with_libmosquitto_ldflags"
102457  BUILD_WITH_LIBMOSQUITTO_LIBS="-lmosquitto"
102458fi
102459
102460
102461
102462
102463# }}}
102464
102465# --with-libmysql {{{
102466with_mysql_config="mysql_config"
102467
102468# Check whether --with-libmysql was given.
102469if test "${with_libmysql+set}" = set; then :
102470  withval=$with_libmysql;
102471    if test "x$withval" = "xno"; then
102472      with_libmysql="no"
102473    else if test "x$withval" = "xyes"; then
102474      with_libmysql="yes"
102475    else
102476      if test -f "$withval" && test -x "$withval"; then
102477        with_mysql_config="$withval"
102478      else if test -x "$withval/bin/mysql_config"; then
102479        with_mysql_config="$withval/bin/mysql_config"
102480      fi; fi
102481      with_libmysql="yes"
102482    fi; fi
102483
102484else
102485  with_libmysql="yes"
102486
102487fi
102488
102489
102490if test "x$with_libmysql" = "xyes"; then
102491  with_mysql_cflags=`$with_mysql_config --include 2>/dev/null`
102492  if test $? -ne 0; then
102493    with_libmysql="no ($with_mysql_config failed)"
102494  else
102495    SAVE_CPPFLAGS="$CPPFLAGS"
102496    CPPFLAGS="$CPPFLAGS $with_mysql_cflags"
102497
102498    for ac_header in mysql.h
102499do :
102500  ac_fn_c_check_header_mongrel "$LINENO" "mysql.h" "ac_cv_header_mysql_h" "$ac_includes_default"
102501if test "x$ac_cv_header_mysql_h" = xyes; then :
102502  cat >>confdefs.h <<_ACEOF
102503#define HAVE_MYSQL_H 1
102504_ACEOF
102505 have_mysql_h="yes"
102506else
102507  have_mysql_h="no"
102508
102509fi
102510
102511done
102512
102513
102514    if test "x$have_mysql_h" != "xyes"; then
102515      for ac_header in mysql/mysql.h
102516do :
102517  ac_fn_c_check_header_mongrel "$LINENO" "mysql/mysql.h" "ac_cv_header_mysql_mysql_h" "$ac_includes_default"
102518if test "x$ac_cv_header_mysql_mysql_h" = xyes; then :
102519  cat >>confdefs.h <<_ACEOF
102520#define HAVE_MYSQL_MYSQL_H 1
102521_ACEOF
102522 have_mysql_mysql_h="yes"
102523fi
102524
102525done
102526
102527    fi
102528
102529    if test "x$have_mysql_h" != "xyes" && test "x$have_mysql_mysql_h" != "xyes"; then
102530      with_libmysql="no (mysql.h not found)"
102531    fi
102532
102533    CPPFLAGS="$SAVE_CPPFLAGS"
102534  fi
102535fi
102536
102537if test "x$with_libmysql" = "xyes"; then
102538  with_mysql_libs=`$with_mysql_config --libs_r 2>/dev/null`
102539  if test $? -ne 0; then
102540    with_libmysql="no ($with_mysql_config failed)"
102541  else
102542    SAVE_LIBS="$LIBS"
102543    LIBS="$with_mysql_libs"
102544
102545    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mysql_get_server_version" >&5
102546$as_echo_n "checking for library containing mysql_get_server_version... " >&6; }
102547if ${ac_cv_search_mysql_get_server_version+:} false; then :
102548  $as_echo_n "(cached) " >&6
102549else
102550  ac_func_search_save_LIBS=$LIBS
102551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102552/* end confdefs.h.  */
102553
102554/* Override any GCC internal prototype to avoid an error.
102555   Use char because int might match the return type of a GCC
102556   builtin and then its argument prototype would still apply.  */
102557#ifdef __cplusplus
102558extern "C"
102559#endif
102560char mysql_get_server_version ();
102561int
102562main ()
102563{
102564return mysql_get_server_version ();
102565  ;
102566  return 0;
102567}
102568_ACEOF
102569for ac_lib in '' ; do
102570  if test -z "$ac_lib"; then
102571    ac_res="none required"
102572  else
102573    ac_res=-l$ac_lib
102574    LIBS="-l$ac_lib
102575     $ac_func_search_save_LIBS"
102576  fi
102577  if ac_fn_c_try_link "$LINENO"; then :
102578  ac_cv_search_mysql_get_server_version=$ac_res
102579fi
102580rm -f core conftest.err conftest.$ac_objext \
102581    conftest$ac_exeext
102582  if ${ac_cv_search_mysql_get_server_version+:} false; then :
102583  break
102584fi
102585done
102586if ${ac_cv_search_mysql_get_server_version+:} false; then :
102587
102588else
102589  ac_cv_search_mysql_get_server_version=no
102590fi
102591rm conftest.$ac_ext
102592LIBS=$ac_func_search_save_LIBS
102593fi
102594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mysql_get_server_version" >&5
102595$as_echo "$ac_cv_search_mysql_get_server_version" >&6; }
102596ac_res=$ac_cv_search_mysql_get_server_version
102597if test "$ac_res" != no; then :
102598  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
102599  with_libmysql="yes"
102600else
102601  with_libmysql="no (symbol 'mysql_get_server_version' not found in ${LIBS})"
102602fi
102603
102604    LIBS="$SAVE_LIBS"
102605  fi
102606fi
102607
102608if test "x$with_libmysql" = "xyes"; then
102609  BUILD_WITH_LIBMYSQL_CFLAGS="$with_mysql_cflags"
102610  BUILD_WITH_LIBMYSQL_LIBS="$with_mysql_libs"
102611fi
102612
102613
102614
102615# }}}
102616
102617# --with-libmnl {{{
102618
102619# Check whether --with-libmnl was given.
102620if test "${with_libmnl+set}" = set; then :
102621  withval=$with_libmnl;
102622    if test "x$withval" = "xyes"; then
102623      with_libmnl="yes"
102624     else if test "x$withval" = "xno"; then
102625       with_libmnl="no"
102626     else
102627       if test -d "$withval/include"; then
102628         with_libmnl_cflags="-I$withval/include"
102629         with_libmnl_libs="-L$withval/lib -lmnl"
102630         with_libmnl="yes"
102631       else
102632         as_fn_error $? "\"no such directory: $withval/include\"" "$LINENO" 5
102633       fi
102634     fi; fi
102635
102636else
102637
102638    if test "x$ac_system" = "xLinux"; then
102639      with_libmnl="yes"
102640    else
102641      with_libmnl="no (Linux only library)"
102642    fi
102643
102644
102645fi
102646
102647
102648if test "x$with_libmnl" = "xyes"; then
102649  if $PKG_CONFIG --exists libmnl 2>/dev/null; then
102650    with_libmnl_cflags="$with_libmnl_ldflags `$PKG_CONFIG --cflags libmnl`"
102651    with_libmnl_libs="$with_libmnl_libs `$PKG_CONFIG --libs libmnl`"
102652  fi
102653
102654  for ac_header in libmnl.h libmnl/libmnl.h
102655do :
102656  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
102657ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
102658      #include <stdio.h>
102659      #include <sys/types.h>
102660      #include <asm/types.h>
102661      #include <sys/socket.h>
102662      #include <linux/netlink.h>
102663      #include <linux/rtnetlink.h>
102664
102665"
102666if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
102667  cat >>confdefs.h <<_ACEOF
102668#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
102669_ACEOF
102670
102671      with_libmnl="yes"
102672      break
102673
102674fi
102675
102676done
102677
102678
102679  for ac_header in linux/gen_stats.h linux/pkt_sched.h
102680do :
102681  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
102682ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
102683      #include <stdio.h>
102684      #include <sys/types.h>
102685      #include <asm/types.h>
102686      #include <sys/socket.h>
102687
102688
102689"
102690if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
102691  cat >>confdefs.h <<_ACEOF
102692#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
102693_ACEOF
102694
102695fi
102696
102697done
102698
102699
102700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102701/* end confdefs.h.  */
102702
102703
102704          #include <stdio.h>
102705          #include <sys/types.h>
102706          #include <asm/types.h>
102707          #include <sys/socket.h>
102708          #include <linux/netlink.h>
102709          #include <linux/rtnetlink.h>
102710
102711int
102712main ()
102713{
102714
102715          int retval = TCA_STATS2;
102716          return retval;
102717
102718
102719  ;
102720  return 0;
102721}
102722
102723_ACEOF
102724if ac_fn_c_try_compile "$LINENO"; then :
102725
102726$as_echo "#define HAVE_TCA_STATS2 1" >>confdefs.h
102727
102728
102729fi
102730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
102731
102732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102733/* end confdefs.h.  */
102734
102735
102736          #include <stdio.h>
102737          #include <sys/types.h>
102738          #include <asm/types.h>
102739          #include <sys/socket.h>
102740          #include <linux/netlink.h>
102741          #include <linux/rtnetlink.h>
102742
102743int
102744main ()
102745{
102746
102747          int retval = TCA_STATS;
102748          return retval;
102749
102750
102751  ;
102752  return 0;
102753}
102754
102755_ACEOF
102756if ac_fn_c_try_compile "$LINENO"; then :
102757
102758$as_echo "#define HAVE_TCA_STATS 1" >>confdefs.h
102759
102760
102761fi
102762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
102763
102764  ac_fn_c_check_member "$LINENO" "struct rtnl_link_stats64" "tx_window_errors" "ac_cv_member_struct_rtnl_link_stats64_tx_window_errors" "#include <linux/if_link.h>
102765
102766"
102767if test "x$ac_cv_member_struct_rtnl_link_stats64_tx_window_errors" = xyes; then :
102768
102769cat >>confdefs.h <<_ACEOF
102770#define HAVE_STRUCT_RTNL_LINK_STATS64_TX_WINDOW_ERRORS 1
102771_ACEOF
102772
102773
102774$as_echo "#define HAVE_RTNL_LINK_STATS64 1" >>confdefs.h
102775
102776fi
102777
102778
102779  ac_fn_c_check_member "$LINENO" "struct rtnl_link_stats" "rx_nohandler" "ac_cv_member_struct_rtnl_link_stats_rx_nohandler" "#include <linux/if_link.h>
102780
102781"
102782if test "x$ac_cv_member_struct_rtnl_link_stats_rx_nohandler" = xyes; then :
102783
102784cat >>confdefs.h <<_ACEOF
102785#define HAVE_STRUCT_RTNL_LINK_STATS_RX_NOHANDLER 1
102786_ACEOF
102787
102788
102789fi
102790
102791
102792  ac_fn_c_check_member "$LINENO" "struct rtnl_link_stats64" "rx_nohandler" "ac_cv_member_struct_rtnl_link_stats64_rx_nohandler" "#include <linux/if_link.h>
102793
102794"
102795if test "x$ac_cv_member_struct_rtnl_link_stats64_rx_nohandler" = xyes; then :
102796
102797cat >>confdefs.h <<_ACEOF
102798#define HAVE_STRUCT_RTNL_LINK_STATS64_RX_NOHANDLER 1
102799_ACEOF
102800
102801
102802fi
102803
102804
102805  ac_fn_c_check_decl "$LINENO" "IFLA_VF_STATS_RX_DROPPED" "ac_cv_have_decl_IFLA_VF_STATS_RX_DROPPED" "#include <linux/if_link.h>
102806
102807"
102808if test "x$ac_cv_have_decl_IFLA_VF_STATS_RX_DROPPED" = xyes; then :
102809  ac_have_decl=1
102810else
102811  ac_have_decl=0
102812fi
102813
102814cat >>confdefs.h <<_ACEOF
102815#define HAVE_DECL_IFLA_VF_STATS_RX_DROPPED $ac_have_decl
102816_ACEOF
102817if test $ac_have_decl = 1; then :
102818
102819$as_echo "#define HAVE_IFLA_VF_STATS_RX_DROPPED 1" >>confdefs.h
102820
102821fi
102822
102823
102824  ac_fn_c_check_decl "$LINENO" "IFLA_VF_STATS_TX_DROPPED" "ac_cv_have_decl_IFLA_VF_STATS_TX_DROPPED" "#include <linux/if_link.h>
102825
102826"
102827if test "x$ac_cv_have_decl_IFLA_VF_STATS_TX_DROPPED" = xyes; then :
102828  ac_have_decl=1
102829else
102830  ac_have_decl=0
102831fi
102832
102833cat >>confdefs.h <<_ACEOF
102834#define HAVE_DECL_IFLA_VF_STATS_TX_DROPPED $ac_have_decl
102835_ACEOF
102836if test $ac_have_decl = 1; then :
102837
102838$as_echo "#define HAVE_IFLA_VF_STATS_TX_DROPPED 1" >>confdefs.h
102839
102840fi
102841
102842
102843  ac_fn_c_check_decl "$LINENO" "IFLA_VF_STATS" "ac_cv_have_decl_IFLA_VF_STATS" "#include <linux/if_link.h>
102844
102845"
102846if test "x$ac_cv_have_decl_IFLA_VF_STATS" = xyes; then :
102847  ac_have_decl=1
102848else
102849  ac_have_decl=0
102850fi
102851
102852cat >>confdefs.h <<_ACEOF
102853#define HAVE_DECL_IFLA_VF_STATS $ac_have_decl
102854_ACEOF
102855if test $ac_have_decl = 1; then :
102856
102857$as_echo "#define HAVE_IFLA_VF_STATS 1" >>confdefs.h
102858
102859fi
102860
102861
102862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mnl_nlmsg_get_payload in -lmnl" >&5
102863$as_echo_n "checking for mnl_nlmsg_get_payload in -lmnl... " >&6; }
102864if ${ac_cv_lib_mnl_mnl_nlmsg_get_payload+:} false; then :
102865  $as_echo_n "(cached) " >&6
102866else
102867  ac_check_lib_save_LIBS=$LIBS
102868LIBS="-lmnl $with_libmnl_libs
102869   $LIBS"
102870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102871/* end confdefs.h.  */
102872
102873/* Override any GCC internal prototype to avoid an error.
102874   Use char because int might match the return type of a GCC
102875   builtin and then its argument prototype would still apply.  */
102876#ifdef __cplusplus
102877extern "C"
102878#endif
102879char mnl_nlmsg_get_payload ();
102880int
102881main ()
102882{
102883return mnl_nlmsg_get_payload ();
102884  ;
102885  return 0;
102886}
102887_ACEOF
102888if ac_fn_c_try_link "$LINENO"; then :
102889  ac_cv_lib_mnl_mnl_nlmsg_get_payload=yes
102890else
102891  ac_cv_lib_mnl_mnl_nlmsg_get_payload=no
102892fi
102893rm -f core conftest.err conftest.$ac_objext \
102894    conftest$ac_exeext conftest.$ac_ext
102895LIBS=$ac_check_lib_save_LIBS
102896fi
102897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mnl_mnl_nlmsg_get_payload" >&5
102898$as_echo "$ac_cv_lib_mnl_mnl_nlmsg_get_payload" >&6; }
102899if test "x$ac_cv_lib_mnl_mnl_nlmsg_get_payload" = xyes; then :
102900  with_libmnl="yes"
102901else
102902  with_libmnl="no (symbol 'mnl_nlmsg_get_payload' not found)"
102903fi
102904
102905fi
102906
102907if test "x$with_libmnl" = "xyes"; then
102908  BUILD_WITH_LIBMNL_CFLAGS="$with_libmnl_cflags"
102909  BUILD_WITH_LIBMNL_LIBS="$with_libmnl_libs"
102910fi
102911
102912
102913 if test "x$with_libmnl" = "xyes"; then
102914  HAVE_LIBMNL_TRUE=
102915  HAVE_LIBMNL_FALSE='#'
102916else
102917  HAVE_LIBMNL_TRUE='#'
102918  HAVE_LIBMNL_FALSE=
102919fi
102920
102921# }}}
102922
102923# --with-libnetapp {{{
102924
102925
102926
102927
102928# Check whether --with-libnetapp was given.
102929if test "${with_libnetapp+set}" = set; then :
102930  withval=$with_libnetapp;
102931   if test -d "$withval"; then
102932     LIBNETAPP_CPPFLAGS="$LIBNETAPP_CPPFLAGS -I$withval/include"
102933     LIBNETAPP_LDFLAGS="$LIBNETAPP_LDFLAGS -L$withval/lib"
102934     with_libnetapp="yes"
102935   else
102936     with_libnetapp="$withval"
102937   fi
102938
102939else
102940  with_libnetapp="yes"
102941
102942fi
102943
102944
102945SAVE_CPPFLAGS="$CPPFLAGS"
102946SAVE_LDFLAGS="$LDFLAGS"
102947CPPFLAGS="$CPPFLAGS $LIBNETAPP_CPPFLAGS"
102948LDFLAGS="$LDFLAGS $LIBNETAPP_LDFLAGS"
102949
102950if test "x$with_libnetapp" = "xyes"; then
102951  for ac_header in netapp_api.h
102952do :
102953  ac_fn_c_check_header_mongrel "$LINENO" "netapp_api.h" "ac_cv_header_netapp_api_h" "$ac_includes_default"
102954if test "x$ac_cv_header_netapp_api_h" = xyes; then :
102955  cat >>confdefs.h <<_ACEOF
102956#define HAVE_NETAPP_API_H 1
102957_ACEOF
102958 with_libnetapp="yes"
102959else
102960  with_libnetapp="no (netapp_api.h not found)"
102961
102962fi
102963
102964done
102965
102966fi
102967
102968if test "x$with_libnetapp" = "xyes"; then
102969  if test "x$LIBNETAPP_LIBS" = "x"; then
102970    LIBNETAPP_LIBS="$PTHREAD_LIBS -lxml -ladt -lssl -lm -lcrypto -lz"
102971  fi
102972
102973  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for na_server_invoke_elem in -lnetapp" >&5
102974$as_echo_n "checking for na_server_invoke_elem in -lnetapp... " >&6; }
102975if ${ac_cv_lib_netapp_na_server_invoke_elem+:} false; then :
102976  $as_echo_n "(cached) " >&6
102977else
102978  ac_check_lib_save_LIBS=$LIBS
102979LIBS="-lnetapp $LIBNETAPP_LIBS
102980   $LIBS"
102981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102982/* end confdefs.h.  */
102983
102984/* Override any GCC internal prototype to avoid an error.
102985   Use char because int might match the return type of a GCC
102986   builtin and then its argument prototype would still apply.  */
102987#ifdef __cplusplus
102988extern "C"
102989#endif
102990char na_server_invoke_elem ();
102991int
102992main ()
102993{
102994return na_server_invoke_elem ();
102995  ;
102996  return 0;
102997}
102998_ACEOF
102999if ac_fn_c_try_link "$LINENO"; then :
103000  ac_cv_lib_netapp_na_server_invoke_elem=yes
103001else
103002  ac_cv_lib_netapp_na_server_invoke_elem=no
103003fi
103004rm -f core conftest.err conftest.$ac_objext \
103005    conftest$ac_exeext conftest.$ac_ext
103006LIBS=$ac_check_lib_save_LIBS
103007fi
103008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netapp_na_server_invoke_elem" >&5
103009$as_echo "$ac_cv_lib_netapp_na_server_invoke_elem" >&6; }
103010if test "x$ac_cv_lib_netapp_na_server_invoke_elem" = xyes; then :
103011  with_libnetapp="yes"
103012else
103013  with_libnetapp="no (symbol na_server_invoke_elem not found)"
103014fi
103015
103016
103017  LIBNETAPP_LIBS="-lnetapp $LIBNETAPP_LIBS"
103018fi
103019
103020CPPFLAGS="$SAVE_CPPFLAGS"
103021LDFLAGS="$SAVE_LDFLAGS"
103022
103023
103024
103025
103026# }}}
103027
103028# --with-libnetsnmp {{{
103029
103030# Check whether --with-libnetsnmp was given.
103031if test "${with_libnetsnmp+set}" = set; then :
103032  withval=$with_libnetsnmp;
103033    if test "x$withval" = "xno"; then
103034     with_libnetsnmp="no"
103035    else if test "x$withval" = "xyes"; then
103036     with_libnetsnmp="yes"
103037    else
103038      with_libnetsnmp_cppflags="-I$withval/include"
103039      with_libnetsnmp_ldflags="-I$withval/lib"
103040      with_libnetsnmp="yes"
103041    fi; fi
103042
103043else
103044  with_libnetsnmp="yes"
103045
103046fi
103047
103048
103049if test "x$with_libnetsnmp" = "xyes"; then
103050  SAVE_CPPFLAGS="$CPPFLAGS"
103051  CPPFLAGS="$CPPFLAGS $with_libnetsnmp_cppflags"
103052
103053  for ac_header in net-snmp/net-snmp-config.h
103054do :
103055  ac_fn_c_check_header_mongrel "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default"
103056if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
103057  cat >>confdefs.h <<_ACEOF
103058#define HAVE_NET_SNMP_NET_SNMP_CONFIG_H 1
103059_ACEOF
103060 with_libnetsnmp="yes"
103061else
103062  with_libnetsnmp="no (net-snmp/net-snmp-config.h not found)"
103063
103064fi
103065
103066done
103067
103068
103069  for ac_header in net-snmp/net-snmp-includes.h
103070do :
103071  ac_fn_c_check_header_compile "$LINENO" "net-snmp/net-snmp-includes.h" "ac_cv_header_net_snmp_net_snmp_includes_h" "
103072      #if HAVE_NET_SNMP_NET_SNMP_CONFIG_H
103073      # include <net-snmp/net-snmp-config.h>
103074      #endif
103075
103076
103077"
103078if test "x$ac_cv_header_net_snmp_net_snmp_includes_h" = xyes; then :
103079  cat >>confdefs.h <<_ACEOF
103080#define HAVE_NET_SNMP_NET_SNMP_INCLUDES_H 1
103081_ACEOF
103082 with_libnetsnmp="yes"
103083else
103084  with_libnetsnmp="no (net-snmp/net-snmp-includes.h not found)"
103085fi
103086
103087done
103088
103089
103090  CPPFLAGS="$SAVE_CPPFLAGS"
103091fi
103092
103093if test "x$with_libnetsnmp" = "xyes"; then
103094  SAVE_LDFLAGS="$LDFLAGS"
103095  LDFLAGS="$LDFLAGS $with_libnetsnmp_ldflags"
103096
103097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init_snmp in -lnetsnmp" >&5
103098$as_echo_n "checking for init_snmp in -lnetsnmp... " >&6; }
103099if ${ac_cv_lib_netsnmp_init_snmp+:} false; then :
103100  $as_echo_n "(cached) " >&6
103101else
103102  ac_check_lib_save_LIBS=$LIBS
103103LIBS="-lnetsnmp  $LIBS"
103104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103105/* end confdefs.h.  */
103106
103107/* Override any GCC internal prototype to avoid an error.
103108   Use char because int might match the return type of a GCC
103109   builtin and then its argument prototype would still apply.  */
103110#ifdef __cplusplus
103111extern "C"
103112#endif
103113char init_snmp ();
103114int
103115main ()
103116{
103117return init_snmp ();
103118  ;
103119  return 0;
103120}
103121_ACEOF
103122if ac_fn_c_try_link "$LINENO"; then :
103123  ac_cv_lib_netsnmp_init_snmp=yes
103124else
103125  ac_cv_lib_netsnmp_init_snmp=no
103126fi
103127rm -f core conftest.err conftest.$ac_objext \
103128    conftest$ac_exeext conftest.$ac_ext
103129LIBS=$ac_check_lib_save_LIBS
103130fi
103131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_init_snmp" >&5
103132$as_echo "$ac_cv_lib_netsnmp_init_snmp" >&6; }
103133if test "x$ac_cv_lib_netsnmp_init_snmp" = xyes; then :
103134  with_libnetsnmp="yes"
103135else
103136  with_libnetsnmp="no (libnetsnmp not found)"
103137
103138fi
103139
103140
103141  LDFLAGS="$SAVE_LDFLAGS"
103142fi
103143
103144if test "x$with_libnetsnmp" = "xyes"; then
103145  SAVE_LDFLAGS="$LDFLAGS"
103146  LDFLAGS="$LDFLAGS $with_libnetsnmp_ldflags"
103147
103148  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_get_version in -lnetsnmp" >&5
103149$as_echo_n "checking for netsnmp_get_version in -lnetsnmp... " >&6; }
103150if ${ac_cv_lib_netsnmp_netsnmp_get_version+:} false; then :
103151  $as_echo_n "(cached) " >&6
103152else
103153  ac_check_lib_save_LIBS=$LIBS
103154LIBS="-lnetsnmp  $LIBS"
103155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103156/* end confdefs.h.  */
103157
103158/* Override any GCC internal prototype to avoid an error.
103159   Use char because int might match the return type of a GCC
103160   builtin and then its argument prototype would still apply.  */
103161#ifdef __cplusplus
103162extern "C"
103163#endif
103164char netsnmp_get_version ();
103165int
103166main ()
103167{
103168return netsnmp_get_version ();
103169  ;
103170  return 0;
103171}
103172_ACEOF
103173if ac_fn_c_try_link "$LINENO"; then :
103174  ac_cv_lib_netsnmp_netsnmp_get_version=yes
103175else
103176  ac_cv_lib_netsnmp_netsnmp_get_version=no
103177fi
103178rm -f core conftest.err conftest.$ac_objext \
103179    conftest$ac_exeext conftest.$ac_ext
103180LIBS=$ac_check_lib_save_LIBS
103181fi
103182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_get_version" >&5
103183$as_echo "$ac_cv_lib_netsnmp_netsnmp_get_version" >&6; }
103184if test "x$ac_cv_lib_netsnmp_netsnmp_get_version" = xyes; then :
103185  with_libnetsnmp="yes"
103186else
103187  with_libnetsnmp="no (couldn't get libnetsnmp version)"
103188
103189fi
103190
103191
103192  LDFLAGS="$SAVE_LDFLAGS"
103193fi
103194
103195if test "x$with_libnetsnmp" = "xyes"; then
103196  SAVE_CPPFLAGS="$CPPFLAGS"
103197  SAVE_LDFLAGS="$LDFLAGS"
103198  SAVE_LIBS="$LIBS"
103199  CPPFLAGS="$CPPFLAGS $with_libnetsnmp_cppflags"
103200  if test "x$GCC" = "xyes"; then
103201    CPPFLAGS="$CPPFLAGS -Wall -Werror"
103202  fi
103203  LDFLAGS="$LDFLAGS $with_libnetsnmp_ldflags"
103204  LIBS="$LIBS -lnetsnmp"
103205
103206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netsnmp library has old API" >&5
103207$as_echo_n "checking whether netsnmp library has old API... " >&6; }
103208if ${c_cv_have_netsnmp_old_api+:} false; then :
103209  $as_echo_n "(cached) " >&6
103210else
103211
103212      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103213/* end confdefs.h.  */
103214
103215
103216              #include <net-snmp/net-snmp-config.h>
103217              #include <net-snmp/net-snmp-includes.h>
103218
103219int
103220main ()
103221{
103222
103223              netsnmp_variable_list *key = SNMP_MALLOC_TYPEDEF(netsnmp_variable_list);;
103224              int val;
103225              u_char type = ASN_INTEGER;
103226              snmp_set_var_value(key, &val, sizeof(val));
103227              snmp_set_var_typed_value(key, type, &val, sizeof(val));
103228              return 0;
103229
103230
103231  ;
103232  return 0;
103233}
103234
103235_ACEOF
103236if ac_fn_c_try_link "$LINENO"; then :
103237  c_cv_have_netsnmp_old_api="no"
103238else
103239  c_cv_have_netsnmp_old_api="yes"
103240
103241fi
103242rm -f core conftest.err conftest.$ac_objext \
103243    conftest$ac_exeext conftest.$ac_ext
103244
103245
103246fi
103247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_netsnmp_old_api" >&5
103248$as_echo "$c_cv_have_netsnmp_old_api" >&6; }
103249
103250  if test "x$c_cv_have_netsnmp_old_api" = "xyes"; then
103251
103252$as_echo "#define HAVE_NETSNMP_OLD_API 1" >>confdefs.h
103253
103254  fi
103255
103256  CPPFLAGS="$SAVE_CPPFLAGS"
103257  LDFLAGS="$SAVE_LDFLAGS"
103258  LIBS="$SAVE_LIBS"
103259fi
103260
103261if test "x$with_libnetsnmp" = "xyes"; then
103262  BUILD_WITH_LIBNETSNMP_CPPFLAGS="$with_libnetsnmp_cppflags"
103263  BUILD_WITH_LIBNETSNMP_LDFLAGS="$with_libnetsnmp_ldflags"
103264  BUILD_WITH_LIBNETSNMP_LIBS="-lnetsnmp"
103265fi
103266
103267
103268
103269
103270# }}}
103271
103272# --with-libnetsnmpagent {{{
103273
103274# Check whether --with-libnetsnmpagent was given.
103275if test "${with_libnetsnmpagent+set}" = set; then :
103276  withval=$with_libnetsnmpagent;
103277    if test "x$withval" = "xno"; then
103278      with_libnetsnmpagent="no"
103279    else if test "x$withval" = "xyes"; then
103280      with_libnetsnmpagent="yes"
103281    else
103282      with_libnetsnmpagent_cppflags="-I$withval/include"
103283      with_libnetsnmpagent_ldflags="-I$withval/lib"
103284      with_libnetsnmpagent="yes"
103285    fi; fi
103286
103287else
103288  with_libnetsnmpagent="yes"
103289
103290fi
103291
103292
103293if test "x$with_libnetsnmpagent" = "xyes"; then
103294  SAVE_CPPFLAGS="$CPPFLAGS"
103295  CPPFLAGS="$CPPFLAGS $with_libnetsnmpagent_cppflags"
103296
103297  for ac_header in net-snmp/agent/net-snmp-agent-includes.h
103298do :
103299  ac_fn_c_check_header_compile "$LINENO" "net-snmp/agent/net-snmp-agent-includes.h" "ac_cv_header_net_snmp_agent_net_snmp_agent_includes_h" "
103300      #if HAVE_NET_SNMP_NET_SNMP_CONFIG_H
103301      # include <net-snmp/net-snmp-config.h>
103302      #endif
103303      #if HAVE_NET_SNMP_NET_SNMP_INCLUDES_H
103304      # include <net-snmp/net-snmp-includes.h>
103305      #endif
103306
103307
103308"
103309if test "x$ac_cv_header_net_snmp_agent_net_snmp_agent_includes_h" = xyes; then :
103310  cat >>confdefs.h <<_ACEOF
103311#define HAVE_NET_SNMP_AGENT_NET_SNMP_AGENT_INCLUDES_H 1
103312_ACEOF
103313
103314else
103315  with_libnetsnmpagent="no (net-snmp/agent/net-snmp-agent-includes.h not found)"
103316fi
103317
103318done
103319
103320
103321  CPPFLAGS="$SAVE_CPPFLAGS"
103322fi
103323
103324if test "x$with_libnetsnmpagent" = "xyes"; then
103325  SAVE_LDFLAGS="$LDFLAGS"
103326  LDFLAGS="$LDFLAGS $with_libnetsnmpagent_ldflags"
103327
103328  # older versions of libnetsnmpagent fail to link
103329  # against the helpers library, so do that explicitly
103330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_init_helpers in -lnetsnmphelpers" >&5
103331$as_echo_n "checking for netsnmp_init_helpers in -lnetsnmphelpers... " >&6; }
103332if ${ac_cv_lib_netsnmphelpers_netsnmp_init_helpers+:} false; then :
103333  $as_echo_n "(cached) " >&6
103334else
103335  ac_check_lib_save_LIBS=$LIBS
103336LIBS="-lnetsnmphelpers  $LIBS"
103337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103338/* end confdefs.h.  */
103339
103340/* Override any GCC internal prototype to avoid an error.
103341   Use char because int might match the return type of a GCC
103342   builtin and then its argument prototype would still apply.  */
103343#ifdef __cplusplus
103344extern "C"
103345#endif
103346char netsnmp_init_helpers ();
103347int
103348main ()
103349{
103350return netsnmp_init_helpers ();
103351  ;
103352  return 0;
103353}
103354_ACEOF
103355if ac_fn_c_try_link "$LINENO"; then :
103356  ac_cv_lib_netsnmphelpers_netsnmp_init_helpers=yes
103357else
103358  ac_cv_lib_netsnmphelpers_netsnmp_init_helpers=no
103359fi
103360rm -f core conftest.err conftest.$ac_objext \
103361    conftest$ac_exeext conftest.$ac_ext
103362LIBS=$ac_check_lib_save_LIBS
103363fi
103364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmphelpers_netsnmp_init_helpers" >&5
103365$as_echo "$ac_cv_lib_netsnmphelpers_netsnmp_init_helpers" >&6; }
103366if test "x$ac_cv_lib_netsnmphelpers_netsnmp_init_helpers" = xyes; then :
103367  libnetsnmphelpers="-lnetsnmphelpers"
103368else
103369  libnetsnmphelpers=""
103370
103371fi
103372
103373
103374  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init_agent in -lnetsnmpagent" >&5
103375$as_echo_n "checking for init_agent in -lnetsnmpagent... " >&6; }
103376if ${ac_cv_lib_netsnmpagent_init_agent+:} false; then :
103377  $as_echo_n "(cached) " >&6
103378else
103379  ac_check_lib_save_LIBS=$LIBS
103380LIBS="-lnetsnmpagent $libnetsnmphelpers
103381   $LIBS"
103382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103383/* end confdefs.h.  */
103384
103385/* Override any GCC internal prototype to avoid an error.
103386   Use char because int might match the return type of a GCC
103387   builtin and then its argument prototype would still apply.  */
103388#ifdef __cplusplus
103389extern "C"
103390#endif
103391char init_agent ();
103392int
103393main ()
103394{
103395return init_agent ();
103396  ;
103397  return 0;
103398}
103399_ACEOF
103400if ac_fn_c_try_link "$LINENO"; then :
103401  ac_cv_lib_netsnmpagent_init_agent=yes
103402else
103403  ac_cv_lib_netsnmpagent_init_agent=no
103404fi
103405rm -f core conftest.err conftest.$ac_objext \
103406    conftest$ac_exeext conftest.$ac_ext
103407LIBS=$ac_check_lib_save_LIBS
103408fi
103409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmpagent_init_agent" >&5
103410$as_echo "$ac_cv_lib_netsnmpagent_init_agent" >&6; }
103411if test "x$ac_cv_lib_netsnmpagent_init_agent" = xyes; then :
103412
103413      # libnetsnmp can be built without mib loading support
103414      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for get_tree in -lnetsnmp" >&5
103415$as_echo_n "checking for get_tree in -lnetsnmp... " >&6; }
103416if ${ac_cv_lib_netsnmp_get_tree+:} false; then :
103417  $as_echo_n "(cached) " >&6
103418else
103419  ac_check_lib_save_LIBS=$LIBS
103420LIBS="-lnetsnmp  $LIBS"
103421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103422/* end confdefs.h.  */
103423
103424/* Override any GCC internal prototype to avoid an error.
103425   Use char because int might match the return type of a GCC
103426   builtin and then its argument prototype would still apply.  */
103427#ifdef __cplusplus
103428extern "C"
103429#endif
103430char get_tree ();
103431int
103432main ()
103433{
103434return get_tree ();
103435  ;
103436  return 0;
103437}
103438_ACEOF
103439if ac_fn_c_try_link "$LINENO"; then :
103440  ac_cv_lib_netsnmp_get_tree=yes
103441else
103442  ac_cv_lib_netsnmp_get_tree=no
103443fi
103444rm -f core conftest.err conftest.$ac_objext \
103445    conftest$ac_exeext conftest.$ac_ext
103446LIBS=$ac_check_lib_save_LIBS
103447fi
103448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_get_tree" >&5
103449$as_echo "$ac_cv_lib_netsnmp_get_tree" >&6; }
103450if test "x$ac_cv_lib_netsnmp_get_tree" = xyes; then :
103451  with_libnetsnmpagent="yes"
103452else
103453  with_libnetsnmpagent="no (libnetsnmp doesn't support mib loading)"
103454
103455fi
103456
103457
103458else
103459  with_libnetsnmpagent="no (libnetsnmpagent not found)"
103460fi
103461
103462
103463  LDFLAGS="$SAVE_LDFLAGS"
103464fi
103465
103466if test "x$with_libnetsnmpagent" = "xyes"; then
103467  BUILD_WITH_LIBNETSNMPAGENT_CPPFLAGS="$with_libnetsnmpagent_cppflags"
103468  BUILD_WITH_LIBNETSNMPAGENT_LDFLAGS="$with_libnetsnmpagent_ldflags"
103469  BUILD_WITH_LIBNETSNMPAGENT_LIBS="-lnetsnmpagent $libnetsnmphelpers"
103470fi
103471
103472
103473
103474
103475# }}}
103476
103477# --with-liboping {{{
103478
103479# Check whether --with-liboping was given.
103480if test "${with_liboping+set}" = set; then :
103481  withval=$with_liboping;
103482    if test "x$withval" = "xyes"; then
103483      with_liboping="yes"
103484    else if test "x$withval" = "xno"; then
103485      with_liboping="no"
103486    else
103487      with_liboping="yes"
103488      LIBOPING_CPPFLAGS="-I$withval/include"
103489      LIBOPING_LDFLAGS="-L$withval/lib"
103490    fi; fi
103491
103492else
103493  with_liboping="yes"
103494
103495fi
103496
103497
103498SAVE_CPPFLAGS="$CPPFLAGS"
103499SAVE_LDFLAGS="$LDFLAGS"
103500CPPFLAGS="$CPPFLAGS $LIBOPING_CPPFLAGS"
103501LDFLAGS="$LDFLAGS $LIBOPING_LDFLAGS"
103502
103503if test "x$with_liboping" = "xyes"; then
103504  for ac_header in oping.h
103505do :
103506  ac_fn_c_check_header_mongrel "$LINENO" "oping.h" "ac_cv_header_oping_h" "$ac_includes_default"
103507if test "x$ac_cv_header_oping_h" = xyes; then :
103508  cat >>confdefs.h <<_ACEOF
103509#define HAVE_OPING_H 1
103510_ACEOF
103511 with_liboping="yes"
103512else
103513  with_liboping="no (oping.h not found)"
103514
103515fi
103516
103517done
103518
103519fi
103520
103521if test "x$with_liboping" = "xyes"; then
103522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ping_construct in -loping" >&5
103523$as_echo_n "checking for ping_construct in -loping... " >&6; }
103524if ${ac_cv_lib_oping_ping_construct+:} false; then :
103525  $as_echo_n "(cached) " >&6
103526else
103527  ac_check_lib_save_LIBS=$LIBS
103528LIBS="-loping  $LIBS"
103529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103530/* end confdefs.h.  */
103531
103532/* Override any GCC internal prototype to avoid an error.
103533   Use char because int might match the return type of a GCC
103534   builtin and then its argument prototype would still apply.  */
103535#ifdef __cplusplus
103536extern "C"
103537#endif
103538char ping_construct ();
103539int
103540main ()
103541{
103542return ping_construct ();
103543  ;
103544  return 0;
103545}
103546_ACEOF
103547if ac_fn_c_try_link "$LINENO"; then :
103548  ac_cv_lib_oping_ping_construct=yes
103549else
103550  ac_cv_lib_oping_ping_construct=no
103551fi
103552rm -f core conftest.err conftest.$ac_objext \
103553    conftest$ac_exeext conftest.$ac_ext
103554LIBS=$ac_check_lib_save_LIBS
103555fi
103556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_oping_ping_construct" >&5
103557$as_echo "$ac_cv_lib_oping_ping_construct" >&6; }
103558if test "x$ac_cv_lib_oping_ping_construct" = xyes; then :
103559  with_liboping="yes"
103560else
103561  with_liboping="no (symbol 'ping_construct' not found)"
103562
103563fi
103564
103565fi
103566
103567CPPFLAGS="$SAVE_CPPFLAGS"
103568LDFLAGS="$SAVE_LDFLAGS"
103569
103570if test "x$with_liboping" = "xyes"; then
103571  BUILD_WITH_LIBOPING_CPPFLAGS="$LIBOPING_CPPFLAGS"
103572  BUILD_WITH_LIBOPING_LDFLAGS="$LIBOPING_LDFLAGS"
103573fi
103574
103575
103576
103577# }}}
103578
103579# --with-oracle {{{
103580
103581# Check whether --with-oracle was given.
103582if test "${with_oracle+set}" = set; then :
103583  withval=$with_oracle;
103584    if test "x$withval" = "xyes"; then
103585      if test "x$ORACLE_HOME" = "x"; then
103586        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use of the Oracle library has been forced, but the environment variable ORACLE_HOME is not set." >&5
103587$as_echo "$as_me: WARNING: Use of the Oracle library has been forced, but the environment variable ORACLE_HOME is not set." >&2;}
103588      fi
103589      with_oracle="yes"
103590    else if test "x$withval" = "xno"; then
103591      with_oracle="no"
103592    else
103593      with_oracle="yes"
103594      ORACLE_HOME="$withval"
103595    fi; fi
103596
103597else
103598
103599    if test "x$ORACLE_HOME" = "x"; then
103600      with_oracle="no (ORACLE_HOME is not set)"
103601    else
103602      with_oracle="yes"
103603    fi
103604
103605
103606fi
103607
103608
103609if test "x$ORACLE_HOME" != "x"; then
103610  with_oracle_cppflags="-I$ORACLE_HOME/rdbms/public"
103611  if test -e "$ORACLE_HOME/lib/ldflags"; then
103612    with_oracle_libs=`cat "$ORACLE_HOME/lib/ldflags"`
103613  fi
103614  with_oracle_libs="-L$ORACLE_HOME/lib -lclntsh"
103615fi
103616
103617if test "x$with_oracle" = "xyes"; then
103618  SAVE_CPPFLAGS="$CPPFLAGS"
103619  CPPFLAGS="$CPPFLAGS $with_oracle_cppflags"
103620
103621  for ac_header in oci.h
103622do :
103623  ac_fn_c_check_header_mongrel "$LINENO" "oci.h" "ac_cv_header_oci_h" "$ac_includes_default"
103624if test "x$ac_cv_header_oci_h" = xyes; then :
103625  cat >>confdefs.h <<_ACEOF
103626#define HAVE_OCI_H 1
103627_ACEOF
103628 with_oracle="yes"
103629else
103630  with_oracle="no (oci.h not found)"
103631
103632fi
103633
103634done
103635
103636
103637  CPPFLAGS="$SAVE_CPPFLAGS"
103638fi
103639
103640if test "x$with_oracle" = "xyes"; then
103641  SAVE_CPPFLAGS="$CPPFLAGS"
103642  SAVE_LIBS="$LIBS"
103643  CPPFLAGS="$CPPFLAGS $with_oracle_cppflags"
103644  LIBS="$LIBS $with_oracle_libs"
103645
103646  ac_fn_c_check_func "$LINENO" "OCIEnvCreate" "ac_cv_func_OCIEnvCreate"
103647if test "x$ac_cv_func_OCIEnvCreate" = xyes; then :
103648  with_oracle="yes"
103649else
103650  with_oracle="no (Symbol 'OCIEnvCreate' not found)"
103651
103652fi
103653
103654
103655  CPPFLAGS="$SAVE_CPPFLAGS"
103656  LIBS="$SAVE_LIBS"
103657fi
103658
103659if test "x$with_oracle" = "xyes"; then
103660  BUILD_WITH_ORACLE_CPPFLAGS="$with_oracle_cppflags"
103661  BUILD_WITH_ORACLE_LIBS="$with_oracle_libs"
103662fi
103663
103664
103665
103666# }}}
103667
103668# --with-libowcapi {{{
103669
103670# Check whether --with-libowcapi was given.
103671if test "${with_libowcapi+set}" = set; then :
103672  withval=$with_libowcapi;
103673    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
103674      with_libowcapi_cppflags="-I$withval/include"
103675      with_libowcapi_ldflags="-L$withval/lib"
103676      with_libowcapi="yes"
103677    else
103678      with_libowcapi="$withval"
103679    fi
103680
103681else
103682  with_libowcapi="yes"
103683
103684fi
103685
103686
103687if test "x$with_libowcapi" = "xyes"; then
103688  SAVE_CPPFLAGS="$CPPFLAGS"
103689  CPPFLAGS="$CPPFLAGS $with_libowcapi_cppflags"
103690
103691  for ac_header in owcapi.h
103692do :
103693  ac_fn_c_check_header_mongrel "$LINENO" "owcapi.h" "ac_cv_header_owcapi_h" "$ac_includes_default"
103694if test "x$ac_cv_header_owcapi_h" = xyes; then :
103695  cat >>confdefs.h <<_ACEOF
103696#define HAVE_OWCAPI_H 1
103697_ACEOF
103698 with_libowcapi="yes"
103699else
103700  with_libowcapi="no (owcapi.h not found)"
103701
103702fi
103703
103704done
103705
103706
103707  CPPFLAGS="$SAVE_CPPFLAGS"
103708fi
103709
103710if test "x$with_libowcapi" = "xyes"; then
103711  SAVE_LDFLAGS="$LDFLAGS"
103712  LDFLAGS="$LDFLAGS $with_libowcapi_ldflags"
103713
103714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OW_get in -lowcapi" >&5
103715$as_echo_n "checking for OW_get in -lowcapi... " >&6; }
103716if ${ac_cv_lib_owcapi_OW_get+:} false; then :
103717  $as_echo_n "(cached) " >&6
103718else
103719  ac_check_lib_save_LIBS=$LIBS
103720LIBS="-lowcapi  $LIBS"
103721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103722/* end confdefs.h.  */
103723
103724/* Override any GCC internal prototype to avoid an error.
103725   Use char because int might match the return type of a GCC
103726   builtin and then its argument prototype would still apply.  */
103727#ifdef __cplusplus
103728extern "C"
103729#endif
103730char OW_get ();
103731int
103732main ()
103733{
103734return OW_get ();
103735  ;
103736  return 0;
103737}
103738_ACEOF
103739if ac_fn_c_try_link "$LINENO"; then :
103740  ac_cv_lib_owcapi_OW_get=yes
103741else
103742  ac_cv_lib_owcapi_OW_get=no
103743fi
103744rm -f core conftest.err conftest.$ac_objext \
103745    conftest$ac_exeext conftest.$ac_ext
103746LIBS=$ac_check_lib_save_LIBS
103747fi
103748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_owcapi_OW_get" >&5
103749$as_echo "$ac_cv_lib_owcapi_OW_get" >&6; }
103750if test "x$ac_cv_lib_owcapi_OW_get" = xyes; then :
103751  with_libowcapi="yes"
103752else
103753  with_libowcapi="no (libowcapi not found)"
103754
103755fi
103756
103757
103758  LDFLAGS="$SAVE_LDFLAGS"
103759fi
103760
103761if test "x$with_libowcapi" = "xyes"; then
103762  BUILD_WITH_LIBOWCAPI_CPPFLAGS="$with_libowcapi_cppflags"
103763  BUILD_WITH_LIBOWCAPI_LDFLAGS="$with_libowcapi_ldflags"
103764  BUILD_WITH_LIBOWCAPI_LIBS="-lowcapi"
103765fi
103766
103767
103768
103769
103770# }}}
103771
103772# --with-libpcap {{{
103773
103774# Check whether --with-libpcap was given.
103775if test "${with_libpcap+set}" = set; then :
103776  withval=$with_libpcap;
103777    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
103778      with_libpcap_cppflags="-I$withval/include"
103779      with_libpcap_ldflags="$LDFLAGS -L$withval/lib"
103780      with_libpcap="yes"
103781    else
103782      with_libpcap="$withval"
103783    fi
103784
103785else
103786  with_libpcap="yes"
103787
103788fi
103789
103790
103791if test "x$with_libpcap" = "xyes"; then
103792  SAVE_CPPFLAGS="$CPPFLAGS"
103793  CPPFLAGS="$CPPFLAGS $with_libpcap_cppflags"
103794
103795  for ac_header in pcap.h
103796do :
103797  ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
103798if test "x$ac_cv_header_pcap_h" = xyes; then :
103799  cat >>confdefs.h <<_ACEOF
103800#define HAVE_PCAP_H 1
103801_ACEOF
103802 with_libpcap="yes"
103803else
103804  with_libpcap="no (pcap.h not found)"
103805
103806fi
103807
103808done
103809
103810
103811  CPPFLAGS="$SAVE_CPPFLAGS"
103812fi
103813
103814if test "x$with_libpcap" = "xyes"; then
103815  SAVE_LDFLAGS="$LDFLAGS"
103816  LDFLAGS="$LDFLAGS $with_libpcap_ldflags"
103817
103818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
103819$as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
103820if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
103821  $as_echo_n "(cached) " >&6
103822else
103823  ac_check_lib_save_LIBS=$LIBS
103824LIBS="-lpcap  $LIBS"
103825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103826/* end confdefs.h.  */
103827
103828/* Override any GCC internal prototype to avoid an error.
103829   Use char because int might match the return type of a GCC
103830   builtin and then its argument prototype would still apply.  */
103831#ifdef __cplusplus
103832extern "C"
103833#endif
103834char pcap_open_live ();
103835int
103836main ()
103837{
103838return pcap_open_live ();
103839  ;
103840  return 0;
103841}
103842_ACEOF
103843if ac_fn_c_try_link "$LINENO"; then :
103844  ac_cv_lib_pcap_pcap_open_live=yes
103845else
103846  ac_cv_lib_pcap_pcap_open_live=no
103847fi
103848rm -f core conftest.err conftest.$ac_objext \
103849    conftest$ac_exeext conftest.$ac_ext
103850LIBS=$ac_check_lib_save_LIBS
103851fi
103852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
103853$as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
103854if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
103855  with_libpcap="yes"
103856else
103857  with_libpcap="no (libpcap not found)"
103858
103859fi
103860
103861
103862  LDFLAGS="$SAVE_LDFLAGS"
103863fi
103864
103865if test "x$with_libpcap" = "xyes"; then
103866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libpcap has PCAP_ERROR_IFACE_NOT_UP" >&5
103867$as_echo_n "checking whether libpcap has PCAP_ERROR_IFACE_NOT_UP... " >&6; }
103868if ${c_cv_libpcap_have_pcap_error_iface_not_up+:} false; then :
103869  $as_echo_n "(cached) " >&6
103870else
103871
103872      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103873/* end confdefs.h.  */
103874
103875          #include <pcap.h>
103876int
103877main ()
103878{
103879
103880              int val = PCAP_ERROR_IFACE_NOT_UP;
103881              return val;
103882
103883
103884  ;
103885  return 0;
103886}
103887
103888_ACEOF
103889if ac_fn_c_try_compile "$LINENO"; then :
103890  c_cv_libpcap_have_pcap_error_iface_not_up="yes"
103891else
103892  c_cv_libpcap_have_pcap_error_iface_not_up="no"
103893
103894fi
103895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
103896
103897
103898fi
103899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_libpcap_have_pcap_error_iface_not_up" >&5
103900$as_echo "$c_cv_libpcap_have_pcap_error_iface_not_up" >&6; }
103901fi
103902
103903if test "x$c_cv_libpcap_have_pcap_error_iface_not_up" != "xyes"; then
103904  with_libpcap="no (pcap.h misses PCAP_ERROR_IFACE_NOT_UP)"
103905fi
103906
103907if test "x$with_libpcap" = "xyes"; then
103908  BUILD_WITH_LIBPCAP_CPPFLAGS="$with_libpcap_cppflags"
103909  BUILD_WITH_LIBPCAP_LDFLAGS="$with_libpcap_ldflags"
103910  BUILD_WITH_LIBPCAP_LIBS="-lpcap"
103911fi
103912
103913
103914
103915
103916# }}}
103917
103918# --with-libperl {{{
103919
103920# Check whether --with-libperl was given.
103921if test "${with_libperl+set}" = set; then :
103922  withval=$with_libperl;
103923    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
103924      LDFLAGS="$LDFLAGS -L$withval/lib"
103925      CPPFLAGS="$CPPFLAGS -I$withval/include"
103926      with_libperl="yes"
103927    else
103928      with_libperl="$withval"
103929    fi
103930
103931else
103932  with_libperl="yes"
103933
103934fi
103935
103936
103937
103938# Extract the first word of "perl", so it can be a program name with args.
103939set dummy perl; ac_word=$2
103940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
103941$as_echo_n "checking for $ac_word... " >&6; }
103942if ${ac_cv_path_PERL+:} false; then :
103943  $as_echo_n "(cached) " >&6
103944else
103945  case $PERL in
103946  [\\/]* | ?:[\\/]*)
103947  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
103948  ;;
103949  *)
103950  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103951for as_dir in $PATH
103952do
103953  IFS=$as_save_IFS
103954  test -z "$as_dir" && as_dir=.
103955    for ac_exec_ext in '' $ac_executable_extensions; do
103956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
103957    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
103958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
103959    break 2
103960  fi
103961done
103962  done
103963IFS=$as_save_IFS
103964
103965  ;;
103966esac
103967fi
103968PERL=$ac_cv_path_PERL
103969if test -n "$PERL"; then
103970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
103971$as_echo "$PERL" >&6; }
103972else
103973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
103974$as_echo "no" >&6; }
103975fi
103976
103977
103978
103979if test "x$PERL" = "x"; then
103980  with_libperl="no (no Perl interpreter found)"
103981fi
103982
103983if test "x$with_libperl" = "xyes"; then
103984  SAVE_CFLAGS="$CFLAGS"
103985  SAVE_LIBS="$LIBS"
103986    PERL_CFLAGS=`ARCHFLAGS="" $PERL -MExtUtils::Embed -e perl_inc`
103987  PERL_LIBS=`ARCHFLAGS="" $PERL -MExtUtils::Embed -e ldopts`
103988  CFLAGS="$CFLAGS $PERL_CFLAGS"
103989  LIBS="$LIBS $PERL_LIBS"
103990
103991  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
103992$as_echo_n "checking for libperl... " >&6; }
103993if ${c_cv_have_libperl+:} false; then :
103994  $as_echo_n "(cached) " >&6
103995else
103996
103997      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103998/* end confdefs.h.  */
103999
104000
104001              #define PERL_NO_GET_CONTEXT
104002              #include <EXTERN.h>
104003              #include <perl.h>
104004              #include <XSUB.h>
104005
104006int
104007main ()
104008{
104009
104010              dTHX;
104011              load_module (PERL_LOADMOD_NOIMPORT,
104012                newSVpv ("Collectd::Plugin::FooBar", 24),
104013                Nullsv);
104014
104015
104016  ;
104017  return 0;
104018}
104019
104020_ACEOF
104021if ac_fn_c_try_link "$LINENO"; then :
104022  c_cv_have_libperl="yes"
104023else
104024  c_cv_have_libperl="no"
104025
104026fi
104027rm -f core conftest.err conftest.$ac_objext \
104028    conftest$ac_exeext conftest.$ac_ext
104029
104030
104031fi
104032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_libperl" >&5
104033$as_echo "$c_cv_have_libperl" >&6; }
104034
104035  CFLAGS="$SAVE_CFLAGS"
104036  LIBS="$SAVE_LIBS"
104037
104038  if test "x$c_cv_have_libperl" = "xno"; then
104039    with_libperl="no"
104040  fi
104041fi
104042
104043if test "x$with_libperl" = "xyes"; then
104044  SAVE_CFLAGS="$CFLAGS"
104045  SAVE_LIBS="$LIBS"
104046  CFLAGS="$CFLAGS $PERL_CFLAGS"
104047  LIBS="$LIBS $PERL_LIBS"
104048
104049  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Perl supports ithreads" >&5
104050$as_echo_n "checking if Perl supports ithreads... " >&6; }
104051if ${c_cv_have_perl_ithreads+:} false; then :
104052  $as_echo_n "(cached) " >&6
104053else
104054
104055      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104056/* end confdefs.h.  */
104057
104058
104059              #include <EXTERN.h>
104060              #include <perl.h>
104061              #include <XSUB.h>
104062
104063              #if !defined(USE_ITHREADS)
104064              # error "Perl does not support ithreads!"
104065              #endif /* !defined(USE_ITHREADS) */
104066
104067int
104068main ()
104069{
104070
104071
104072  ;
104073  return 0;
104074}
104075
104076_ACEOF
104077if ac_fn_c_try_link "$LINENO"; then :
104078  c_cv_have_perl_ithreads="yes"
104079else
104080  c_cv_have_perl_ithreads="no"
104081
104082fi
104083rm -f core conftest.err conftest.$ac_objext \
104084    conftest$ac_exeext conftest.$ac_ext
104085
104086
104087fi
104088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_perl_ithreads" >&5
104089$as_echo "$c_cv_have_perl_ithreads" >&6; }
104090
104091  CFLAGS="$SAVE_CFLAGS"
104092  LIBS="$SAVE_LIBS"
104093fi
104094
104095if test "x$with_libperl" = "xyes"; then
104096  # trigger an error if Perl_load_module*() uses __attribute__nonnull__(3)
104097  # (see issues #41 and #42)
104098  SAVE_CFLAGS="$CFLAGS"
104099  SAVE_LIBS="$LIBS"
104100  CFLAGS="$CFLAGS $PERL_CFLAGS"
104101  if test "x$GCC" = "xyes"; then
104102    CFLAGS="$CFLAGS -Wall -Werror"
104103  fi
104104  LIBS="$LIBS $PERL_LIBS"
104105
104106  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken Perl_load_module()" >&5
104107$as_echo_n "checking for broken Perl_load_module()... " >&6; }
104108if ${c_cv_have_broken_perl_load_module+:} false; then :
104109  $as_echo_n "(cached) " >&6
104110else
104111
104112      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104113/* end confdefs.h.  */
104114
104115
104116              #define PERL_NO_GET_CONTEXT
104117              #include <EXTERN.h>
104118              #include <perl.h>
104119              #include <XSUB.h>
104120
104121int
104122main ()
104123{
104124
104125              dTHX;
104126              load_module (PERL_LOADMOD_NOIMPORT,
104127                newSVpv ("Collectd::Plugin::FooBar", 24),
104128                Nullsv);
104129
104130
104131  ;
104132  return 0;
104133}
104134
104135_ACEOF
104136if ac_fn_c_try_link "$LINENO"; then :
104137  c_cv_have_broken_perl_load_module="no"
104138else
104139  c_cv_have_broken_perl_load_module="yes"
104140
104141fi
104142rm -f core conftest.err conftest.$ac_objext \
104143    conftest$ac_exeext conftest.$ac_ext
104144
104145
104146fi
104147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_broken_perl_load_module" >&5
104148$as_echo "$c_cv_have_broken_perl_load_module" >&6; }
104149
104150  CFLAGS="$SAVE_CFLAGS"
104151  LIBS="$SAVE_LIBS"
104152fi
104153
104154if test "x$c_cv_have_broken_perl_load_module" = "xyes"; then
104155  PERL_CFLAGS="$PERL_CFLAGS -Wno-nonnull"
104156fi
104157
104158if test "x$with_libperl" = "xyes"; then
104159  SAVE_CFLAGS="$CFLAGS"
104160  SAVE_LIBS="$LIBS"
104161  CFLAGS="$CFLAGS $PERL_CFLAGS"
104162  LIBS="$LIBS $PERL_LIBS"
104163
104164  ac_fn_c_check_member "$LINENO" "struct mgvtbl" "svt_local" "ac_cv_member_struct_mgvtbl_svt_local" "
104165      #include <EXTERN.h>
104166      #include <perl.h>
104167      #include <XSUB.h>
104168
104169
104170"
104171if test "x$ac_cv_member_struct_mgvtbl_svt_local" = xyes; then :
104172  have_struct_mgvtbl_svt_local="yes"
104173else
104174  have_struct_mgvtbl_svt_local="no"
104175fi
104176
104177
104178  if test "x$have_struct_mgvtbl_svt_local" = "xyes"; then
104179
104180$as_echo "#define HAVE_PERL_STRUCT_MGVTBL_SVT_LOCAL 1" >>confdefs.h
104181
104182  fi
104183
104184  CFLAGS="$SAVE_CFLAGS"
104185  LIBS="$SAVE_LIBS"
104186fi
104187
104188
104189
104190# }}}
104191
104192
104193# --with-libpmwapi {{{
104194
104195# Check whether --with-libpmwapi was given.
104196if test "${with_libpmwapi+set}" = set; then :
104197  withval=$with_libpmwapi;
104198    if test "x$withval" = "xyes" || test "x$withval" = "xno"; then
104199      with_libpmwapi="$withval"
104200    else
104201      with_libpmwapi_cppflags="-I$withval/include"
104202      with_libpmwapi_ldflags="-L$withval/lib64"
104203      with_libpmwapi="yes"
104204    fi
104205
104206else
104207  with_libpmwapi="yes"
104208
104209fi
104210
104211
104212if test "x$with_libpmwapi" = "xyes"; then
104213  SAVE_CPPFLAGS="$CPPFLAGS"
104214  CPPFLAGS="$CPPFLAGS $with_libpmwapi_cppflags"
104215
104216  for ac_header in pmw_api.h
104217do :
104218  ac_fn_c_check_header_mongrel "$LINENO" "pmw_api.h" "ac_cv_header_pmw_api_h" "$ac_includes_default"
104219if test "x$ac_cv_header_pmw_api_h" = xyes; then :
104220  cat >>confdefs.h <<_ACEOF
104221#define HAVE_PMW_API_H 1
104222_ACEOF
104223 with_libpmwapi="yes"
104224else
104225  with_libpmwapi="no (pmw_api.h not found)"
104226
104227fi
104228
104229done
104230
104231
104232  CPPFLAGS="$SAVE_CPPFLAGS"
104233fi
104234
104235if test "x$with_libpmwapi" = "xyes"; then
104236  SAVE_LDFLAGS="$LDFLAGS"
104237  LDFLAGS="$LDFLAGS $with_libpmwapi_ldflags"
104238
104239  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PMWAPIGetDIMMCount in -lpmwapi" >&5
104240$as_echo_n "checking for PMWAPIGetDIMMCount in -lpmwapi... " >&6; }
104241if ${ac_cv_lib_pmwapi_PMWAPIGetDIMMCount+:} false; then :
104242  $as_echo_n "(cached) " >&6
104243else
104244  ac_check_lib_save_LIBS=$LIBS
104245LIBS="-lpmwapi -lpmwcollect
104246   $LIBS"
104247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104248/* end confdefs.h.  */
104249
104250/* Override any GCC internal prototype to avoid an error.
104251   Use char because int might match the return type of a GCC
104252   builtin and then its argument prototype would still apply.  */
104253#ifdef __cplusplus
104254extern "C"
104255#endif
104256char PMWAPIGetDIMMCount ();
104257int
104258main ()
104259{
104260return PMWAPIGetDIMMCount ();
104261  ;
104262  return 0;
104263}
104264_ACEOF
104265if ac_fn_c_try_link "$LINENO"; then :
104266  ac_cv_lib_pmwapi_PMWAPIGetDIMMCount=yes
104267else
104268  ac_cv_lib_pmwapi_PMWAPIGetDIMMCount=no
104269fi
104270rm -f core conftest.err conftest.$ac_objext \
104271    conftest$ac_exeext conftest.$ac_ext
104272LIBS=$ac_check_lib_save_LIBS
104273fi
104274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pmwapi_PMWAPIGetDIMMCount" >&5
104275$as_echo "$ac_cv_lib_pmwapi_PMWAPIGetDIMMCount" >&6; }
104276if test "x$ac_cv_lib_pmwapi_PMWAPIGetDIMMCount" = xyes; then :
104277  with_libpmwapis="yes"
104278else
104279  with_libpmwapi="no (symbol 'PMWAPIGetDIMMCount' not found)"
104280fi
104281
104282
104283  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PMWAPIStart in -lpmwapi" >&5
104284$as_echo_n "checking for PMWAPIStart in -lpmwapi... " >&6; }
104285if ${ac_cv_lib_pmwapi_PMWAPIStart+:} false; then :
104286  $as_echo_n "(cached) " >&6
104287else
104288  ac_check_lib_save_LIBS=$LIBS
104289LIBS="-lpmwapi -lpmwcollect
104290   $LIBS"
104291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104292/* end confdefs.h.  */
104293
104294/* Override any GCC internal prototype to avoid an error.
104295   Use char because int might match the return type of a GCC
104296   builtin and then its argument prototype would still apply.  */
104297#ifdef __cplusplus
104298extern "C"
104299#endif
104300char PMWAPIStart ();
104301int
104302main ()
104303{
104304return PMWAPIStart ();
104305  ;
104306  return 0;
104307}
104308_ACEOF
104309if ac_fn_c_try_link "$LINENO"; then :
104310  ac_cv_lib_pmwapi_PMWAPIStart=yes
104311else
104312  ac_cv_lib_pmwapi_PMWAPIStart=no
104313fi
104314rm -f core conftest.err conftest.$ac_objext \
104315    conftest$ac_exeext conftest.$ac_ext
104316LIBS=$ac_check_lib_save_LIBS
104317fi
104318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pmwapi_PMWAPIStart" >&5
104319$as_echo "$ac_cv_lib_pmwapi_PMWAPIStart" >&6; }
104320if test "x$ac_cv_lib_pmwapi_PMWAPIStart" = xyes; then :
104321  with_libpmwapi="yes"
104322else
104323  with_libpmwapi="no (symbol 'PMWAPIStart' not found)"
104324fi
104325
104326
104327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PMWAPIStop in -lpmwapi" >&5
104328$as_echo_n "checking for PMWAPIStop in -lpmwapi... " >&6; }
104329if ${ac_cv_lib_pmwapi_PMWAPIStop+:} false; then :
104330  $as_echo_n "(cached) " >&6
104331else
104332  ac_check_lib_save_LIBS=$LIBS
104333LIBS="-lpmwapi -lpmwcollect
104334   $LIBS"
104335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104336/* end confdefs.h.  */
104337
104338/* Override any GCC internal prototype to avoid an error.
104339   Use char because int might match the return type of a GCC
104340   builtin and then its argument prototype would still apply.  */
104341#ifdef __cplusplus
104342extern "C"
104343#endif
104344char PMWAPIStop ();
104345int
104346main ()
104347{
104348return PMWAPIStop ();
104349  ;
104350  return 0;
104351}
104352_ACEOF
104353if ac_fn_c_try_link "$LINENO"; then :
104354  ac_cv_lib_pmwapi_PMWAPIStop=yes
104355else
104356  ac_cv_lib_pmwapi_PMWAPIStop=no
104357fi
104358rm -f core conftest.err conftest.$ac_objext \
104359    conftest$ac_exeext conftest.$ac_ext
104360LIBS=$ac_check_lib_save_LIBS
104361fi
104362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pmwapi_PMWAPIStop" >&5
104363$as_echo "$ac_cv_lib_pmwapi_PMWAPIStop" >&6; }
104364if test "x$ac_cv_lib_pmwapi_PMWAPIStop" = xyes; then :
104365  with_libpmwapi="yes"
104366else
104367  with_libpmwapi="no (symbol 'PMWAPIStop' not found)"
104368fi
104369
104370
104371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PMWAPIRead in -lpmwapi" >&5
104372$as_echo_n "checking for PMWAPIRead in -lpmwapi... " >&6; }
104373if ${ac_cv_lib_pmwapi_PMWAPIRead+:} false; then :
104374  $as_echo_n "(cached) " >&6
104375else
104376  ac_check_lib_save_LIBS=$LIBS
104377LIBS="-lpmwapi -lpmwcollect
104378   $LIBS"
104379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104380/* end confdefs.h.  */
104381
104382/* Override any GCC internal prototype to avoid an error.
104383   Use char because int might match the return type of a GCC
104384   builtin and then its argument prototype would still apply.  */
104385#ifdef __cplusplus
104386extern "C"
104387#endif
104388char PMWAPIRead ();
104389int
104390main ()
104391{
104392return PMWAPIRead ();
104393  ;
104394  return 0;
104395}
104396_ACEOF
104397if ac_fn_c_try_link "$LINENO"; then :
104398  ac_cv_lib_pmwapi_PMWAPIRead=yes
104399else
104400  ac_cv_lib_pmwapi_PMWAPIRead=no
104401fi
104402rm -f core conftest.err conftest.$ac_objext \
104403    conftest$ac_exeext conftest.$ac_ext
104404LIBS=$ac_check_lib_save_LIBS
104405fi
104406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pmwapi_PMWAPIRead" >&5
104407$as_echo "$ac_cv_lib_pmwapi_PMWAPIRead" >&6; }
104408if test "x$ac_cv_lib_pmwapi_PMWAPIRead" = xyes; then :
104409  with_libpmwapi="yes"
104410else
104411  with_libpmwapi="no (symbol 'PMWAPIRead' not found)"
104412fi
104413
104414
104415  LDFLAGS="$SAVE_LDFLAGS"
104416fi
104417
104418if test "x$with_libpmwapi" = "xyes"; then
104419  BUILD_WITH_LIBPMWAPI_CPPFLAGS="$with_libpmwapi_cppflags"
104420  BUILD_WITH_LIBPMWAPI_LDFLAGS="$with_libpmwapi_ldflags"
104421fi
104422
104423
104424
104425# }}}
104426
104427# --with-libpq {{{
104428with_pg_config="pg_config"
104429
104430# Check whether --with-libpq was given.
104431if test "${with_libpq+set}" = set; then :
104432  withval=$with_libpq;
104433    if test "x$withval" = "xno" || test "x$withval" = "xyes"; then
104434      with_libpq="$withval"
104435    else
104436      if test -f "$withval" && test -x "$withval"; then
104437        with_pg_config="$withval"
104438      else if test -x "$withval/bin/pg_config"; then
104439        with_pg_config="$withval/bin/pg_config"
104440      fi; fi
104441      with_libpq="yes"
104442    fi
104443
104444else
104445  with_libpq="yes"
104446
104447fi
104448
104449
104450if test "x$with_libpq" = "xyes"; then
104451  with_libpq_includedir=`$with_pg_config --includedir 2> /dev/null`
104452  pg_config_status=$?
104453
104454  if test $pg_config_status -eq 0; then
104455    if test -n "$with_libpq_includedir"; then
104456      for dir in $with_libpq_includedir; do
104457        with_libpq_cppflags="$with_libpq_cppflags -I$dir"
104458      done
104459    fi
104460  else
104461    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_pg_config returned with status $pg_config_status" >&5
104462$as_echo "$as_me: WARNING: $with_pg_config returned with status $pg_config_status" >&2;}
104463  fi
104464
104465  SAVE_CPPFLAGS="$CPPFLAGS"
104466  CPPFLAGS="$CPPFLAGS $with_libpq_cppflags"
104467
104468  for ac_header in libpq-fe.h
104469do :
104470  ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
104471if test "x$ac_cv_header_libpq_fe_h" = xyes; then :
104472  cat >>confdefs.h <<_ACEOF
104473#define HAVE_LIBPQ_FE_H 1
104474_ACEOF
104475 with_libpq="yes"
104476else
104477  with_libpq="no (libpq-fe.h not found)"
104478
104479fi
104480
104481done
104482
104483
104484  CPPFLAGS="$SAVE_CPPFLAGS"
104485fi
104486
104487if test "x$with_libpq" = "xyes"; then
104488  with_libpq_libdir=`$with_pg_config --libdir 2> /dev/null`
104489  pg_config_status=$?
104490
104491  if test $pg_config_status -eq 0
104492  then
104493    if test -n "$with_libpq_libdir"; then
104494      for dir in $with_libpq_libdir; do
104495        with_libpq_ldflags="$with_libpq_ldflags -L$dir"
104496      done
104497    fi
104498  else
104499    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_pg_config returned with status $pg_config_status" >&5
104500$as_echo "$as_me: WARNING: $with_pg_config returned with status $pg_config_status" >&2;}
104501  fi
104502
104503  SAVE_LDFLAGS="$LDFLAGS"
104504  LDFLAGS="$LDFLAGS $with_libpq_ldflags"
104505
104506  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQserverVersion in -lpq" >&5
104507$as_echo_n "checking for PQserverVersion in -lpq... " >&6; }
104508if ${ac_cv_lib_pq_PQserverVersion+:} false; then :
104509  $as_echo_n "(cached) " >&6
104510else
104511  ac_check_lib_save_LIBS=$LIBS
104512LIBS="-lpq  $LIBS"
104513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104514/* end confdefs.h.  */
104515
104516/* Override any GCC internal prototype to avoid an error.
104517   Use char because int might match the return type of a GCC
104518   builtin and then its argument prototype would still apply.  */
104519#ifdef __cplusplus
104520extern "C"
104521#endif
104522char PQserverVersion ();
104523int
104524main ()
104525{
104526return PQserverVersion ();
104527  ;
104528  return 0;
104529}
104530_ACEOF
104531if ac_fn_c_try_link "$LINENO"; then :
104532  ac_cv_lib_pq_PQserverVersion=yes
104533else
104534  ac_cv_lib_pq_PQserverVersion=no
104535fi
104536rm -f core conftest.err conftest.$ac_objext \
104537    conftest$ac_exeext conftest.$ac_ext
104538LIBS=$ac_check_lib_save_LIBS
104539fi
104540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQserverVersion" >&5
104541$as_echo "$ac_cv_lib_pq_PQserverVersion" >&6; }
104542if test "x$ac_cv_lib_pq_PQserverVersion" = xyes; then :
104543  with_libpq="yes"
104544else
104545  with_libpq="no (symbol 'PQserverVersion' not found)"
104546fi
104547
104548
104549  LDFLAGS="$SAVE_LDFLAGS"
104550fi
104551
104552if test "x$with_libpq" = "xyes"; then
104553  BUILD_WITH_LIBPQ_CPPFLAGS="$with_libpq_cppflags"
104554  BUILD_WITH_LIBPQ_LDFLAGS="$with_libpq_ldflags"
104555  BUILD_WITH_LIBPQ_LIBS="-lpq"
104556fi
104557
104558
104559
104560
104561# }}}
104562
104563# --with-libpqos {{{
104564
104565# Check whether --with-libpqos was given.
104566if test "${with_libpqos+set}" = set; then :
104567  withval=$with_libpqos;
104568    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
104569      with_libpqos_cppflags="-I$withval/include"
104570      with_libpqos_ldflags="-L$withval/lib"
104571      with_libpqos="yes"
104572    else
104573      with_libpqos="$withval"
104574    fi
104575
104576else
104577  with_libpqos="yes"
104578
104579fi
104580
104581
104582if test "x$with_libpqos" = "xyes"; then
104583  SAVE_CPPFLAGS="$CPPFLAGS"
104584  CPPFLAGS="$CPPFLAGS $with_libpqos_cppflags"
104585
104586  for ac_header in pqos.h
104587do :
104588  ac_fn_c_check_header_mongrel "$LINENO" "pqos.h" "ac_cv_header_pqos_h" "$ac_includes_default"
104589if test "x$ac_cv_header_pqos_h" = xyes; then :
104590  cat >>confdefs.h <<_ACEOF
104591#define HAVE_PQOS_H 1
104592_ACEOF
104593 with_libpqos="yes"
104594else
104595  with_libpqos="no (pqos.h not found)"
104596
104597fi
104598
104599done
104600
104601
104602  CPPFLAGS="$SAVE_CPPFLAGS"
104603fi
104604
104605if test "x$with_libpqos" = "xyes"; then
104606  SAVE_LDFLAGS="$LDFLAGS"
104607  LDFLAGS="$LDFLAGS $with_libpqos_ldflags"
104608
104609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pqos_init in -lpqos" >&5
104610$as_echo_n "checking for pqos_init in -lpqos... " >&6; }
104611if ${ac_cv_lib_pqos_pqos_init+:} false; then :
104612  $as_echo_n "(cached) " >&6
104613else
104614  ac_check_lib_save_LIBS=$LIBS
104615LIBS="-lpqos  $LIBS"
104616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104617/* end confdefs.h.  */
104618
104619/* Override any GCC internal prototype to avoid an error.
104620   Use char because int might match the return type of a GCC
104621   builtin and then its argument prototype would still apply.  */
104622#ifdef __cplusplus
104623extern "C"
104624#endif
104625char pqos_init ();
104626int
104627main ()
104628{
104629return pqos_init ();
104630  ;
104631  return 0;
104632}
104633_ACEOF
104634if ac_fn_c_try_link "$LINENO"; then :
104635  ac_cv_lib_pqos_pqos_init=yes
104636else
104637  ac_cv_lib_pqos_pqos_init=no
104638fi
104639rm -f core conftest.err conftest.$ac_objext \
104640    conftest$ac_exeext conftest.$ac_ext
104641LIBS=$ac_check_lib_save_LIBS
104642fi
104643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pqos_pqos_init" >&5
104644$as_echo "$ac_cv_lib_pqos_pqos_init" >&6; }
104645if test "x$ac_cv_lib_pqos_pqos_init" = xyes; then :
104646  with_libpqos="yes"
104647else
104648  with_libpqos="no (Can't find libpqos)"
104649
104650fi
104651
104652
104653  LDFLAGS="$SAVE_LDFLAGS"
104654fi
104655
104656if test "x$with_libpqos" = "xyes"; then
104657  SAVE_CPPFLAGS="$CPPFLAGS"
104658  CPPFLAGS="$CPPFLAGS $with_libpqos_cppflags"
104659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104660/* end confdefs.h.  */
104661
104662
104663          #include <pqos.h>
104664          #if PQOS_VERSION < 106
104665          #error "required PQOS version >= 1.06"
104666          #endif
104667
104668
104669
104670_ACEOF
104671if ac_fn_c_try_cpp "$LINENO"; then :
104672  with_libpqos="yes"
104673else
104674  with_libpqos="no (pqos library version 1.06 or higher is required)"
104675
104676fi
104677rm -f conftest.err conftest.i conftest.$ac_ext
104678
104679  CPPFLAGS="$SAVE_CPPFLAGS"
104680fi
104681
104682if test "x$with_libpqos" = "xyes"; then
104683  BUILD_WITH_LIBPQOS_CPPFLAGS="$with_libpqos_cppflags"
104684  BUILD_WITH_LIBPQOS_LDFLAGS="$with_libpqos_ldflags"
104685  BUILD_WITH_LIBPQOS_LIBS="-lpqos"
104686fi
104687
104688
104689
104690
104691# }}}
104692
104693# --with-libjansson {{{
104694
104695# Check whether --with-libjansson was given.
104696if test "${with_libjansson+set}" = set; then :
104697  withval=$with_libjansson;
104698  if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
104699   with_libjansson_cppflags="-I$withval/include"
104700   with_libjansson_ldflags="-L$withval/lib"
104701   with_libjansson="yes"
104702  else
104703      with_libjansson="$withval"
104704  fi
104705
104706else
104707  with_libjansson="yes"
104708
104709fi
104710
104711
104712if test "x$with_libjansson" = "xyes"; then
104713  SAVE_CPPFLAGS="$CPPFLAGS"
104714  CPPFLAGS="$CPPFLAGS $with_libjansson_cppflags"
104715
104716  for ac_header in jansson.h
104717do :
104718  ac_fn_c_check_header_mongrel "$LINENO" "jansson.h" "ac_cv_header_jansson_h" "$ac_includes_default"
104719if test "x$ac_cv_header_jansson_h" = xyes; then :
104720  cat >>confdefs.h <<_ACEOF
104721#define HAVE_JANSSON_H 1
104722_ACEOF
104723 with_libjansson="yes"
104724else
104725  with_libjansson="no (jansson.h not found)"
104726
104727fi
104728
104729done
104730
104731 CPPFLAGS="$SAVE_CPPFLAGS"
104732fi
104733if test "x$with_libjansson" = "xyes"; then
104734  SAVE_LDFLAGS="$LDFLAGS"
104735  LDFLAGS="$LDFLAGS $with_libjansson_ldflags"
104736
104737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json_loads in -ljansson" >&5
104738$as_echo_n "checking for json_loads in -ljansson... " >&6; }
104739if ${ac_cv_lib_jansson_json_loads+:} false; then :
104740  $as_echo_n "(cached) " >&6
104741else
104742  ac_check_lib_save_LIBS=$LIBS
104743LIBS="-ljansson  $LIBS"
104744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104745/* end confdefs.h.  */
104746
104747/* Override any GCC internal prototype to avoid an error.
104748   Use char because int might match the return type of a GCC
104749   builtin and then its argument prototype would still apply.  */
104750#ifdef __cplusplus
104751extern "C"
104752#endif
104753char json_loads ();
104754int
104755main ()
104756{
104757return json_loads ();
104758  ;
104759  return 0;
104760}
104761_ACEOF
104762if ac_fn_c_try_link "$LINENO"; then :
104763  ac_cv_lib_jansson_json_loads=yes
104764else
104765  ac_cv_lib_jansson_json_loads=no
104766fi
104767rm -f core conftest.err conftest.$ac_objext \
104768    conftest$ac_exeext conftest.$ac_ext
104769LIBS=$ac_check_lib_save_LIBS
104770fi
104771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jansson_json_loads" >&5
104772$as_echo "$ac_cv_lib_jansson_json_loads" >&6; }
104773if test "x$ac_cv_lib_jansson_json_loads" = xyes; then :
104774  with_libjansson="yes"
104775else
104776  with_libjansson="no (symbol 'json_loads' not found)"
104777
104778fi
104779
104780
104781  LDFLAGS="$SAVE_LDFLAGS"
104782fi
104783
104784BUILD_WITH_LIBJANSSON_CPPFLAGS="$with_libjansson_cppflags"
104785BUILD_WITH_LIBJANSSON_LDFLAGS="$with_libjansson_ldflags"
104786BUILD_WITH_LIBJANSSON_LIBS="-ljansson"
104787
104788
104789
104790# }}}
104791
104792# --with-libjevents {{{
104793with_libjevents_cppflags=""
104794with_libjevents_ldflags=""
104795
104796# Check whether --with-libjevents was given.
104797if test "${with_libjevents+set}" = set; then :
104798  withval=$with_libjevents;
104799    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
104800      with_libjevents_cppflags="-I$withval/include"
104801      with_libjevents_ldflags="-L$withval/lib"
104802      with_libjevents="yes"
104803    else
104804      with_libjevents="$withval"
104805    fi
104806
104807else
104808  with_libjevents="yes"
104809
104810fi
104811
104812
104813if test "x$with_libjevents" = "xyes"; then
104814  SAVE_CPPFLAGS="$CPPFLAGS"
104815  CPPFLAGS="$CPPFLAGS $with_libjevents_cppflags"
104816
104817  for ac_header in jevents.h
104818do :
104819  ac_fn_c_check_header_mongrel "$LINENO" "jevents.h" "ac_cv_header_jevents_h" "$ac_includes_default"
104820if test "x$ac_cv_header_jevents_h" = xyes; then :
104821  cat >>confdefs.h <<_ACEOF
104822#define HAVE_JEVENTS_H 1
104823_ACEOF
104824 with_libjevents="yes"
104825else
104826  with_libjevents="no (jevents.h not found)"
104827fi
104828
104829done
104830
104831
104832  CPPFLAGS="$SAVE_CPPFLAGS"
104833fi
104834if test "x$with_libjevents" = "xyes"; then
104835  SAVE_LDFLAGS="$LDFLAGS"
104836  LDFLAGS="$LDFLAGS $with_libjevents_ldflags"
104837
104838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json_events in -ljevents" >&5
104839$as_echo_n "checking for json_events in -ljevents... " >&6; }
104840if ${ac_cv_lib_jevents_json_events+:} false; then :
104841  $as_echo_n "(cached) " >&6
104842else
104843  ac_check_lib_save_LIBS=$LIBS
104844LIBS="-ljevents  $LIBS"
104845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104846/* end confdefs.h.  */
104847
104848/* Override any GCC internal prototype to avoid an error.
104849   Use char because int might match the return type of a GCC
104850   builtin and then its argument prototype would still apply.  */
104851#ifdef __cplusplus
104852extern "C"
104853#endif
104854char json_events ();
104855int
104856main ()
104857{
104858return json_events ();
104859  ;
104860  return 0;
104861}
104862_ACEOF
104863if ac_fn_c_try_link "$LINENO"; then :
104864  ac_cv_lib_jevents_json_events=yes
104865else
104866  ac_cv_lib_jevents_json_events=no
104867fi
104868rm -f core conftest.err conftest.$ac_objext \
104869    conftest$ac_exeext conftest.$ac_ext
104870LIBS=$ac_check_lib_save_LIBS
104871fi
104872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jevents_json_events" >&5
104873$as_echo "$ac_cv_lib_jevents_json_events" >&6; }
104874if test "x$ac_cv_lib_jevents_json_events" = xyes; then :
104875  with_libjevents="yes"
104876else
104877  with_libjevents="no (Can't find libjevents)"
104878fi
104879
104880
104881  LDFLAGS="$SAVE_LDFLAGS"
104882fi
104883if test "x$with_libjevents" = "xyes"; then
104884  SAVE_LDFLAGS="$LDFLAGS"
104885  LDFLAGS="$LDFLAGS $with_libjevents_ldflags"
104886
104887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for event_scaled_value_sum in -ljevents" >&5
104888$as_echo_n "checking for event_scaled_value_sum in -ljevents... " >&6; }
104889if ${ac_cv_lib_jevents_event_scaled_value_sum+:} false; then :
104890  $as_echo_n "(cached) " >&6
104891else
104892  ac_check_lib_save_LIBS=$LIBS
104893LIBS="-ljevents  $LIBS"
104894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104895/* end confdefs.h.  */
104896
104897/* Override any GCC internal prototype to avoid an error.
104898   Use char because int might match the return type of a GCC
104899   builtin and then its argument prototype would still apply.  */
104900#ifdef __cplusplus
104901extern "C"
104902#endif
104903char event_scaled_value_sum ();
104904int
104905main ()
104906{
104907return event_scaled_value_sum ();
104908  ;
104909  return 0;
104910}
104911_ACEOF
104912if ac_fn_c_try_link "$LINENO"; then :
104913  ac_cv_lib_jevents_event_scaled_value_sum=yes
104914else
104915  ac_cv_lib_jevents_event_scaled_value_sum=no
104916fi
104917rm -f core conftest.err conftest.$ac_objext \
104918    conftest$ac_exeext conftest.$ac_ext
104919LIBS=$ac_check_lib_save_LIBS
104920fi
104921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jevents_event_scaled_value_sum" >&5
104922$as_echo "$ac_cv_lib_jevents_event_scaled_value_sum" >&6; }
104923if test "x$ac_cv_lib_jevents_event_scaled_value_sum" = xyes; then :
104924  with_libjevents="yes"
104925else
104926  with_libjevents="no (libjevents is too old)"
104927fi
104928
104929
104930  LDFLAGS="$SAVE_LDFLAGS"
104931fi
104932if test "x$with_libjevents" = "xyes"; then
104933  BUILD_WITH_LIBJEVENTS_CPPFLAGS="$with_libjevents_cppflags"
104934  BUILD_WITH_LIBJEVENTS_LDFLAGS="$with_libjevents_ldflags"
104935  BUILD_WITH_LIBJEVENTS_LIBS="-ljevents"
104936fi
104937
104938
104939
104940# }}}
104941
104942# --with-libprotobuf {{{
104943with_libprotobuf_cppflags=""
104944with_libprotobuf_ldflags=""
104945
104946# Check whether --with-libprotobuf was given.
104947if test "${with_libprotobuf+set}" = set; then :
104948  withval=$with_libprotobuf;
104949    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
104950      with_libprotobuf_cppflags="-I$withval/include"
104951      with_libprotobuf_ldflags="-L$withval/lib"
104952      with_libprotobuf="yes"
104953    fi
104954    if test "x$withval" = "xno"; then
104955      with_libprotobuf="no (disabled on command line)"
104956    fi
104957
104958else
104959  withval="yes"
104960
104961fi
104962
104963
104964if test "x$withval" = "xyes"; then
104965
104966pkg_failed=no
104967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROTOBUF" >&5
104968$as_echo_n "checking for PROTOBUF... " >&6; }
104969
104970if test -n "$PROTOBUF_CFLAGS"; then
104971    pkg_cv_PROTOBUF_CFLAGS="$PROTOBUF_CFLAGS"
104972 elif test -n "$PKG_CONFIG"; then
104973    if test -n "$PKG_CONFIG" && \
104974    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf\""; } >&5
104975  ($PKG_CONFIG --exists --print-errors "protobuf") 2>&5
104976  ac_status=$?
104977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
104978  test $ac_status = 0; }; then
104979  pkg_cv_PROTOBUF_CFLAGS=`$PKG_CONFIG --cflags "protobuf" 2>/dev/null`
104980		      test "x$?" != "x0" && pkg_failed=yes
104981else
104982  pkg_failed=yes
104983fi
104984 else
104985    pkg_failed=untried
104986fi
104987if test -n "$PROTOBUF_LIBS"; then
104988    pkg_cv_PROTOBUF_LIBS="$PROTOBUF_LIBS"
104989 elif test -n "$PKG_CONFIG"; then
104990    if test -n "$PKG_CONFIG" && \
104991    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf\""; } >&5
104992  ($PKG_CONFIG --exists --print-errors "protobuf") 2>&5
104993  ac_status=$?
104994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
104995  test $ac_status = 0; }; then
104996  pkg_cv_PROTOBUF_LIBS=`$PKG_CONFIG --libs "protobuf" 2>/dev/null`
104997		      test "x$?" != "x0" && pkg_failed=yes
104998else
104999  pkg_failed=yes
105000fi
105001 else
105002    pkg_failed=untried
105003fi
105004
105005
105006
105007if test $pkg_failed = yes; then
105008   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
105009$as_echo "no" >&6; }
105010
105011if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
105012        _pkg_short_errors_supported=yes
105013else
105014        _pkg_short_errors_supported=no
105015fi
105016        if test $_pkg_short_errors_supported = yes; then
105017	        PROTOBUF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "protobuf" 2>&1`
105018        else
105019	        PROTOBUF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "protobuf" 2>&1`
105020        fi
105021	# Put the nasty error message in config.log where it belongs
105022	echo "$PROTOBUF_PKG_ERRORS" >&5
105023
105024	with_libprotobuf="no (pkg-config could not find libprotobuf)"
105025
105026elif test $pkg_failed = untried; then
105027     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
105028$as_echo "no" >&6; }
105029	with_libprotobuf="no (pkg-config could not find libprotobuf)"
105030
105031else
105032	PROTOBUF_CFLAGS=$pkg_cv_PROTOBUF_CFLAGS
105033	PROTOBUF_LIBS=$pkg_cv_PROTOBUF_LIBS
105034        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
105035$as_echo "yes" >&6; }
105036	with_libprotobuf="yes"
105037fi
105038fi
105039
105040if test "x$withval" != "xno"; then
105041  SAVE_LDFLAGS="$LDFLAGS"
105042  SAVE_LIBS="$LIBS"
105043  LDFLAGS="$with_libprotobuf_ldflags"
105044  LIBS="$PROTOBUF_LIBS $LIBS"
105045  ac_ext=cpp
105046ac_cpp='$CXXCPP $CPPFLAGS'
105047ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
105048ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
105049ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
105050
105051  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lprotobuf" >&5
105052$as_echo_n "checking for main in -lprotobuf... " >&6; }
105053if ${ac_cv_lib_protobuf_main+:} false; then :
105054  $as_echo_n "(cached) " >&6
105055else
105056  ac_check_lib_save_LIBS=$LIBS
105057LIBS="-lprotobuf  $LIBS"
105058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105059/* end confdefs.h.  */
105060
105061
105062int
105063main ()
105064{
105065return main ();
105066  ;
105067  return 0;
105068}
105069_ACEOF
105070if ac_fn_cxx_try_link "$LINENO"; then :
105071  ac_cv_lib_protobuf_main=yes
105072else
105073  ac_cv_lib_protobuf_main=no
105074fi
105075rm -f core conftest.err conftest.$ac_objext \
105076    conftest$ac_exeext conftest.$ac_ext
105077LIBS=$ac_check_lib_save_LIBS
105078fi
105079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_protobuf_main" >&5
105080$as_echo "$ac_cv_lib_protobuf_main" >&6; }
105081if test "x$ac_cv_lib_protobuf_main" = xyes; then :
105082
105083      SAVE_CPPFLAGS="$CPPFLAGS"
105084      CPPFLAGS="-std=c++11 $with_libprotobuf_cppflags $PROTOBUF_CFLAGS"
105085      if test "x$PROTOBUF_LIBS" = "x"
105086      then
105087        PROTOBUF_LIBS="-lprotobuf"
105088      fi
105089      for ac_header in google/protobuf/util/time_util.h
105090do :
105091  ac_fn_cxx_check_header_mongrel "$LINENO" "google/protobuf/util/time_util.h" "ac_cv_header_google_protobuf_util_time_util_h" "$ac_includes_default"
105092if test "x$ac_cv_header_google_protobuf_util_time_util_h" = xyes; then :
105093  cat >>confdefs.h <<_ACEOF
105094#define HAVE_GOOGLE_PROTOBUF_UTIL_TIME_UTIL_H 1
105095_ACEOF
105096 with_libprotobuf="yes"
105097else
105098  with_libprotobuf="no (<google/protobuf/util/time_util.h> not found)"
105099
105100fi
105101
105102done
105103
105104      CPPFLAGS="$SAVE_CPPFLAGS"
105105
105106else
105107  with_libprotobuf="no (libprotobuf not found)"
105108
105109fi
105110
105111  ac_ext=c
105112ac_cpp='$CPP $CPPFLAGS'
105113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
105114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
105115ac_compiler_gnu=$ac_cv_c_compiler_gnu
105116
105117  LDFLAGS="$SAVE_LDFLAGS"
105118  LIBS="$SAVE_LIBS"
105119fi
105120
105121BUILD_WITH_LIBPROTOBUF_CPPFLAGS="$with_libprotobuf_cppflags $PROTOBUF_CFLAGS"
105122BUILD_WITH_LIBPROTOBUF_LDFLAGS="$with_libprotobuf_ldflags"
105123BUILD_WITH_LIBPROTOBUF_LIBS="$PROTOBUF_LIBS"
105124
105125
105126
105127# }}}
105128
105129
105130# Extract the first word of "protoc", so it can be a program name with args.
105131set dummy protoc; ac_word=$2
105132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
105133$as_echo_n "checking for $ac_word... " >&6; }
105134if ${ac_cv_path_PROTOC+:} false; then :
105135  $as_echo_n "(cached) " >&6
105136else
105137  case $PROTOC in
105138  [\\/]* | ?:[\\/]*)
105139  ac_cv_path_PROTOC="$PROTOC" # Let the user override the test with a path.
105140  ;;
105141  *)
105142  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105143for as_dir in $PATH
105144do
105145  IFS=$as_save_IFS
105146  test -z "$as_dir" && as_dir=.
105147    for ac_exec_ext in '' $ac_executable_extensions; do
105148  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
105149    ac_cv_path_PROTOC="$as_dir/$ac_word$ac_exec_ext"
105150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
105151    break 2
105152  fi
105153done
105154  done
105155IFS=$as_save_IFS
105156
105157  ;;
105158esac
105159fi
105160PROTOC=$ac_cv_path_PROTOC
105161if test -n "$PROTOC"; then
105162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC" >&5
105163$as_echo "$PROTOC" >&6; }
105164else
105165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
105166$as_echo "no" >&6; }
105167fi
105168
105169
105170have_protoc3="no"
105171if test "x$PROTOC" != "x"; then
105172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for protoc 3.0.0+" >&5
105173$as_echo_n "checking for protoc 3.0.0+... " >&6; }
105174  if $PROTOC --version | $EGREP libprotoc.3 >/dev/null; then
105175    protoc3="yes (`$PROTOC --version`)"
105176    have_protoc3="yes"
105177  else
105178    protoc3="no (`$PROTOC --version`)"
105179  fi
105180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $protoc3" >&5
105181$as_echo "$protoc3" >&6; }
105182fi
105183 if test "x$have_protoc3" = "xyes"; then
105184  HAVE_PROTOC3_TRUE=
105185  HAVE_PROTOC3_FALSE='#'
105186else
105187  HAVE_PROTOC3_TRUE='#'
105188  HAVE_PROTOC3_FALSE=
105189fi
105190
105191
105192# --with-libprotobuf-c {{{
105193
105194# Check whether --with-libprotobuf-c was given.
105195if test "${with_libprotobuf_c+set}" = set; then :
105196  withval=$with_libprotobuf_c;
105197    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
105198      with_libprotobuf_c_cppflags="-I$withval/include"
105199      with_libprotobuf_c_ldflags="-L$withval/lib"
105200      with_libprotobuf_c="yes"
105201    fi
105202
105203    if test "x$withval" = "xno"; then
105204      with_libprotobuf_c="no (disabled on command line)"
105205    fi
105206
105207else
105208  withval="yes"
105209
105210fi
105211
105212
105213if test "x$withval" = "xyes"; then
105214
105215pkg_failed=no
105216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROTOBUF_C" >&5
105217$as_echo_n "checking for PROTOBUF_C... " >&6; }
105218
105219if test -n "$PROTOBUF_C_CFLAGS"; then
105220    pkg_cv_PROTOBUF_C_CFLAGS="$PROTOBUF_C_CFLAGS"
105221 elif test -n "$PKG_CONFIG"; then
105222    if test -n "$PKG_CONFIG" && \
105223    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libprotobuf-c\""; } >&5
105224  ($PKG_CONFIG --exists --print-errors "libprotobuf-c") 2>&5
105225  ac_status=$?
105226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
105227  test $ac_status = 0; }; then
105228  pkg_cv_PROTOBUF_C_CFLAGS=`$PKG_CONFIG --cflags "libprotobuf-c" 2>/dev/null`
105229		      test "x$?" != "x0" && pkg_failed=yes
105230else
105231  pkg_failed=yes
105232fi
105233 else
105234    pkg_failed=untried
105235fi
105236if test -n "$PROTOBUF_C_LIBS"; then
105237    pkg_cv_PROTOBUF_C_LIBS="$PROTOBUF_C_LIBS"
105238 elif test -n "$PKG_CONFIG"; then
105239    if test -n "$PKG_CONFIG" && \
105240    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libprotobuf-c\""; } >&5
105241  ($PKG_CONFIG --exists --print-errors "libprotobuf-c") 2>&5
105242  ac_status=$?
105243  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
105244  test $ac_status = 0; }; then
105245  pkg_cv_PROTOBUF_C_LIBS=`$PKG_CONFIG --libs "libprotobuf-c" 2>/dev/null`
105246		      test "x$?" != "x0" && pkg_failed=yes
105247else
105248  pkg_failed=yes
105249fi
105250 else
105251    pkg_failed=untried
105252fi
105253
105254
105255
105256if test $pkg_failed = yes; then
105257   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
105258$as_echo "no" >&6; }
105259
105260if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
105261        _pkg_short_errors_supported=yes
105262else
105263        _pkg_short_errors_supported=no
105264fi
105265        if test $_pkg_short_errors_supported = yes; then
105266	        PROTOBUF_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libprotobuf-c" 2>&1`
105267        else
105268	        PROTOBUF_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libprotobuf-c" 2>&1`
105269        fi
105270	# Put the nasty error message in config.log where it belongs
105271	echo "$PROTOBUF_C_PKG_ERRORS" >&5
105272
105273	with_libprotobuf_c="no (pkg-config could not find libprotobuf-c)"
105274
105275elif test $pkg_failed = untried; then
105276     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
105277$as_echo "no" >&6; }
105278	with_libprotobuf_c="no (pkg-config could not find libprotobuf-c)"
105279
105280else
105281	PROTOBUF_C_CFLAGS=$pkg_cv_PROTOBUF_C_CFLAGS
105282	PROTOBUF_C_LIBS=$pkg_cv_PROTOBUF_C_LIBS
105283        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
105284$as_echo "yes" >&6; }
105285	with_libprotobuf_c="yes"
105286fi
105287fi
105288
105289if test "x$withval" != "xno"; then
105290  SAVE_LDFLAGS="$LDFLAGS"
105291  SAVE_LIBS="$LIBS"
105292  LDFLAGS="$with_libprotobuf_c_ldflags"
105293  LIBS="$PROTOBUF_C_LIBS $LIBS"
105294  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for protobuf_c_message_pack in -lprotobuf-c" >&5
105295$as_echo_n "checking for protobuf_c_message_pack in -lprotobuf-c... " >&6; }
105296if ${ac_cv_lib_protobuf_c_protobuf_c_message_pack+:} false; then :
105297  $as_echo_n "(cached) " >&6
105298else
105299  ac_check_lib_save_LIBS=$LIBS
105300LIBS="-lprotobuf-c  $LIBS"
105301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105302/* end confdefs.h.  */
105303
105304/* Override any GCC internal prototype to avoid an error.
105305   Use char because int might match the return type of a GCC
105306   builtin and then its argument prototype would still apply.  */
105307#ifdef __cplusplus
105308extern "C"
105309#endif
105310char protobuf_c_message_pack ();
105311int
105312main ()
105313{
105314return protobuf_c_message_pack ();
105315  ;
105316  return 0;
105317}
105318_ACEOF
105319if ac_fn_c_try_link "$LINENO"; then :
105320  ac_cv_lib_protobuf_c_protobuf_c_message_pack=yes
105321else
105322  ac_cv_lib_protobuf_c_protobuf_c_message_pack=no
105323fi
105324rm -f core conftest.err conftest.$ac_objext \
105325    conftest$ac_exeext conftest.$ac_ext
105326LIBS=$ac_check_lib_save_LIBS
105327fi
105328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_protobuf_c_protobuf_c_message_pack" >&5
105329$as_echo "$ac_cv_lib_protobuf_c_protobuf_c_message_pack" >&6; }
105330if test "x$ac_cv_lib_protobuf_c_protobuf_c_message_pack" = xyes; then :
105331
105332      SAVE_CPPFLAGS="$CPPFLAGS"
105333      CPPFLAGS="$with_libprotobuf_c_cppflags $PROTOBUF_C_CFLAGS"
105334      if test "x$PROTOBUF_C_LIBS" = "x"; then
105335        PROTOBUF_C_LIBS="-lprotobuf-c"
105336      fi
105337
105338      for ac_header in protobuf-c/protobuf-c.h google/protobuf-c/protobuf-c.h
105339do :
105340  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
105341ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
105342if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
105343  cat >>confdefs.h <<_ACEOF
105344#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
105345_ACEOF
105346
105347          with_libprotobuf_c="yes"
105348          break
105349
105350else
105351  with_libprotobuf_c="no (<protobuf-c.h> not found)"
105352
105353fi
105354
105355done
105356
105357
105358      CPPFLAGS="$SAVE_CPPFLAGS"
105359
105360else
105361  with_libprotobuf_c="no (libprotobuf-c not found)"
105362
105363fi
105364
105365  LDFLAGS="$SAVE_LDFLAGS"
105366  LIBS="$SAVE_LIBS"
105367fi
105368
105369BUILD_WITH_LIBPROTOBUF_C_CPPFLAGS="$with_libprotobuf_c_cppflags $PROTOBUF_C_CFLAGS"
105370BUILD_WITH_LIBPROTOBUF_C_LDFLAGS="$with_libprotobuf_c_ldflags"
105371BUILD_WITH_LIBPROTOBUF_C_LIBS="$PROTOBUF_C_LIBS"
105372
105373
105374
105375# }}}
105376
105377
105378# Extract the first word of "protoc-c", so it can be a program name with args.
105379set dummy protoc-c; ac_word=$2
105380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
105381$as_echo_n "checking for $ac_word... " >&6; }
105382if ${ac_cv_path_PROTOC_C+:} false; then :
105383  $as_echo_n "(cached) " >&6
105384else
105385  case $PROTOC_C in
105386  [\\/]* | ?:[\\/]*)
105387  ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
105388  ;;
105389  *)
105390  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105391for as_dir in $PATH
105392do
105393  IFS=$as_save_IFS
105394  test -z "$as_dir" && as_dir=.
105395    for ac_exec_ext in '' $ac_executable_extensions; do
105396  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
105397    ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
105398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
105399    break 2
105400  fi
105401done
105402  done
105403IFS=$as_save_IFS
105404
105405  ;;
105406esac
105407fi
105408PROTOC_C=$ac_cv_path_PROTOC_C
105409if test -n "$PROTOC_C"; then
105410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
105411$as_echo "$PROTOC_C" >&6; }
105412else
105413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
105414$as_echo "no" >&6; }
105415fi
105416
105417
105418if test "x$PROTOC_C" = "x"
105419then
105420  have_protoc_c="no (protoc-c compiler not found)"
105421else
105422  have_protoc_c="yes"
105423fi
105424
105425# --with-libpython {{{
105426
105427
105428
105429
105430
105431# Check whether --with-libpython was given.
105432if test "${with_libpython+set}" = set; then :
105433  withval=$with_libpython; with_libpython="$withval"
105434else
105435  with_libpython="check"
105436
105437fi
105438
105439
105440if test "$with_libpython" != "no"; then
105441  if test "$LIBPYTHON_CPPFLAGS" = "" && test "$LIBPYTHON_LDFLAGS" = ""; then
105442
105443    for ac_prog in python3-config python2-config python-config
105444
105445do
105446  # Extract the first word of "$ac_prog", so it can be a program name with args.
105447set dummy $ac_prog; ac_word=$2
105448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
105449$as_echo_n "checking for $ac_word... " >&6; }
105450if ${ac_cv_path_PYTHON_CONFIG+:} false; then :
105451  $as_echo_n "(cached) " >&6
105452else
105453  case $PYTHON_CONFIG in
105454  [\\/]* | ?:[\\/]*)
105455  ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
105456  ;;
105457  *)
105458  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105459for as_dir in $PATH
105460do
105461  IFS=$as_save_IFS
105462  test -z "$as_dir" && as_dir=.
105463    for ac_exec_ext in '' $ac_executable_extensions; do
105464  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
105465    ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
105466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
105467    break 2
105468  fi
105469done
105470  done
105471IFS=$as_save_IFS
105472
105473  ;;
105474esac
105475fi
105476PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
105477if test -n "$PYTHON_CONFIG"; then
105478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
105479$as_echo "$PYTHON_CONFIG" >&6; }
105480else
105481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
105482$as_echo "no" >&6; }
105483fi
105484
105485
105486  test -n "$PYTHON_CONFIG" && break
105487done
105488
105489    if test "$PYTHON_CONFIG" = ""; then
105490      if test "$with_libpython" = "yes"; then
105491        as_fn_error $? "Unable to find python-config" "$LINENO" 5
105492      fi
105493      with_libpython="no"
105494    fi
105495  fi
105496fi
105497
105498if test "$PYTHON_CONFIG" != ""; then
105499  LIBPYTHON_CPPFLAGS="`${PYTHON_CONFIG} --includes`"
105500  if test $? -ne 0; then
105501    with_libpython="no"
105502  fi
105503  LIBPYTHON_LDFLAGS="`${PYTHON_CONFIG} --ldflags --embed`" || LIBPYTHON_LDFLAGS="`${PYTHON_CONFIG} --ldflags`"
105504  if test $? -ne 0; then
105505    with_libpython="no"
105506  fi
105507  LIBPYTHON_LIBS="`${PYTHON_CONFIG} --libs --embed`" || LIBPYTHON_LIBS="`${PYTHON_CONFIG} --libs`"
105508  if test $? -ne 0; then
105509    with_libpython="no"
105510  fi
105511fi
105512
105513if test "$with_libpython" != "xno"; then
105514  SAVE_CPPFLAGS="$CPPFLAGS"
105515  SAVE_LDFLAGS="$LDFLAGS"
105516  SAVE_LIBS="$LIBS"
105517  CPPFLAGS="$LIBPYTHON_CPPFLAGS $CPPFLAGS"
105518  LDFLAGS="$LIBPYTHON_LDFLAGS $LDFLAGS"
105519  LIBS="$LIBPYTHON_LIBS $LIBS"
105520
105521  for ac_header in Python.h
105522do :
105523  ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
105524if test "x$ac_cv_header_Python_h" = xyes; then :
105525  cat >>confdefs.h <<_ACEOF
105526#define HAVE_PYTHON_H 1
105527_ACEOF
105528
105529      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpython" >&5
105530$as_echo_n "checking for libpython... " >&6; }
105531      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105532/* end confdefs.h.  */
105533#include <Python.h>
105534int
105535main ()
105536{
105537Py_Initialize();
105538  ;
105539  return 0;
105540}
105541
105542_ACEOF
105543if ac_fn_c_try_link "$LINENO"; then :
105544  with_libpython="yes"
105545else
105546  with_libpython="no"
105547
105548fi
105549rm -f core conftest.err conftest.$ac_objext \
105550    conftest$ac_exeext conftest.$ac_ext
105551      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libpython" >&5
105552$as_echo "$with_libpython" >&6; }
105553
105554else
105555  with_libpython="no"
105556
105557fi
105558
105559done
105560
105561
105562  CPPFLAGS="$SAVE_CPPFLAGS"
105563  LDFLAGS="$SAVE_LDFLAGS"
105564  LIBS="$SAVE_LIBS"
105565fi
105566# }}} --with-libpython
105567
105568# --with-libqpid_proton {{{
105569
105570# Check whether --with-libqpid_proton was given.
105571if test "${with_libqpid_proton+set}" = set; then :
105572  withval=$with_libqpid_proton;
105573    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
105574      with_libqpid_proton_cppflags="-I$withval/include"
105575      with_libqpid_proton_ldflags="-L$withval/lib"
105576      with_libqpid_proton="yes"
105577    else
105578      with_libqpid_proton="$withval"
105579    fi
105580
105581else
105582  with_libqpid_proton="yes"
105583
105584fi
105585
105586
105587if test "x$with_libqpid_proton" = "xyes"; then
105588  SAVE_CPPFLAGS="$CPPFLAGS"
105589  CPPFLAGS="$CPPFLAGS $with_libqpid_proton_cppflags"
105590
105591  for ac_header in proton/proactor.h
105592do :
105593  ac_fn_c_check_header_mongrel "$LINENO" "proton/proactor.h" "ac_cv_header_proton_proactor_h" "$ac_includes_default"
105594if test "x$ac_cv_header_proton_proactor_h" = xyes; then :
105595  cat >>confdefs.h <<_ACEOF
105596#define HAVE_PROTON_PROACTOR_H 1
105597_ACEOF
105598 with_libqpid_proton="yes"
105599else
105600  with_libqpid_proton="no (proton/proactor.h not found)"
105601
105602fi
105603
105604done
105605
105606
105607  CPPFLAGS="$SAVE_CPPFLAGS"
105608fi
105609
105610if test "x$with_libqpid_proton" = "xyes"; then
105611  SAVE_LDFLAGS="$LDFLAGS"
105612  LDFLAGS="$LDFLAGS $with_libqpid_proton_ldflags"
105613
105614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pn_connection in -lqpid-proton" >&5
105615$as_echo_n "checking for pn_connection in -lqpid-proton... " >&6; }
105616if ${ac_cv_lib_qpid_proton_pn_connection+:} false; then :
105617  $as_echo_n "(cached) " >&6
105618else
105619  ac_check_lib_save_LIBS=$LIBS
105620LIBS="-lqpid-proton  $LIBS"
105621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105622/* end confdefs.h.  */
105623
105624/* Override any GCC internal prototype to avoid an error.
105625   Use char because int might match the return type of a GCC
105626   builtin and then its argument prototype would still apply.  */
105627#ifdef __cplusplus
105628extern "C"
105629#endif
105630char pn_connection ();
105631int
105632main ()
105633{
105634return pn_connection ();
105635  ;
105636  return 0;
105637}
105638_ACEOF
105639if ac_fn_c_try_link "$LINENO"; then :
105640  ac_cv_lib_qpid_proton_pn_connection=yes
105641else
105642  ac_cv_lib_qpid_proton_pn_connection=no
105643fi
105644rm -f core conftest.err conftest.$ac_objext \
105645    conftest$ac_exeext conftest.$ac_ext
105646LIBS=$ac_check_lib_save_LIBS
105647fi
105648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qpid_proton_pn_connection" >&5
105649$as_echo "$ac_cv_lib_qpid_proton_pn_connection" >&6; }
105650if test "x$ac_cv_lib_qpid_proton_pn_connection" = xyes; then :
105651  with_libqpid_proton="yes"
105652else
105653  with_libqpid_proton="no (Symbol 'pn_connection' not found)"
105654fi
105655
105656
105657  LDFLAGS="$SAVE_LDFLAGS"
105658fi
105659
105660if test "x$with_libqpid_proton" = "xyes"; then
105661  BUILD_WITH_LIBQPIDPROTON_CPPFLAGS="$with_libqpid_proton_cppflags"
105662  BUILD_WITH_LIBQPIDPROTON_LDFLAGS="$with_libqpid_proton_ldflags"
105663  BUILD_WITH_LIBQPIDPROTON_LIBS="-lqpid-proton"
105664fi
105665
105666
105667
105668
105669
105670# }}}
105671
105672# --with-librabbitmq {{{
105673
105674# Check whether --with-librabbitmq was given.
105675if test "${with_librabbitmq+set}" = set; then :
105676  withval=$with_librabbitmq;
105677    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
105678      with_librabbitmq_cppflags="-I$withval/include"
105679      with_librabbitmq_ldflags="-L$withval/lib"
105680      with_librabbitmq="yes"
105681    else
105682      with_librabbitmq="$withval"
105683    fi
105684
105685else
105686  with_librabbitmq="yes"
105687
105688fi
105689
105690
105691if test "x$with_librabbitmq" = "xyes"; then
105692  SAVE_CPPFLAGS="$CPPFLAGS"
105693  CPPFLAGS="$CPPFLAGS $with_librabbitmq_cppflags"
105694
105695  for ac_header in amqp.h
105696do :
105697  ac_fn_c_check_header_mongrel "$LINENO" "amqp.h" "ac_cv_header_amqp_h" "$ac_includes_default"
105698if test "x$ac_cv_header_amqp_h" = xyes; then :
105699  cat >>confdefs.h <<_ACEOF
105700#define HAVE_AMQP_H 1
105701_ACEOF
105702 with_librabbitmq="yes"
105703else
105704  with_librabbitmq="no (amqp.h not found)"
105705
105706fi
105707
105708done
105709
105710
105711  CPPFLAGS="$SAVE_CPPFLAGS"
105712fi
105713
105714if test "x$with_librabbitmq" = "xyes"; then
105715  # librabbitmq up to version 0.9.1 provides "library_errno", later
105716  # versions use "library_error". The library does not provide a version
105717  # macro :(.
105718
105719  SAVE_CPPFLAGS="$CPPFLAGS"
105720  CPPFLAGS="$CPPFLAGS $with_librabbitmq_cppflags"
105721
105722  ac_fn_c_check_member "$LINENO" "amqp_rpc_reply_t" "library_errno" "ac_cv_member_amqp_rpc_reply_t_library_errno" "
105723      #include <stdlib.h>
105724      #include <stdio.h>
105725      #include <stdint.h>
105726      #include <inttypes.h>
105727      #include <amqp.h>
105728
105729
105730"
105731if test "x$ac_cv_member_amqp_rpc_reply_t_library_errno" = xyes; then :
105732
105733cat >>confdefs.h <<_ACEOF
105734#define HAVE_AMQP_RPC_REPLY_T_LIBRARY_ERRNO 1
105735_ACEOF
105736
105737
105738fi
105739
105740  CPPFLAGS="$SAVE_CPPFLAGS"
105741
105742  SAVE_LDFLAGS="$LDFLAGS"
105743  LDFLAGS="$LDFLAGS $with_librabbitmq_ldflags"
105744
105745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for amqp_basic_publish in -lrabbitmq" >&5
105746$as_echo_n "checking for amqp_basic_publish in -lrabbitmq... " >&6; }
105747if ${ac_cv_lib_rabbitmq_amqp_basic_publish+:} false; then :
105748  $as_echo_n "(cached) " >&6
105749else
105750  ac_check_lib_save_LIBS=$LIBS
105751LIBS="-lrabbitmq  $LIBS"
105752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105753/* end confdefs.h.  */
105754
105755/* Override any GCC internal prototype to avoid an error.
105756   Use char because int might match the return type of a GCC
105757   builtin and then its argument prototype would still apply.  */
105758#ifdef __cplusplus
105759extern "C"
105760#endif
105761char amqp_basic_publish ();
105762int
105763main ()
105764{
105765return amqp_basic_publish ();
105766  ;
105767  return 0;
105768}
105769_ACEOF
105770if ac_fn_c_try_link "$LINENO"; then :
105771  ac_cv_lib_rabbitmq_amqp_basic_publish=yes
105772else
105773  ac_cv_lib_rabbitmq_amqp_basic_publish=no
105774fi
105775rm -f core conftest.err conftest.$ac_objext \
105776    conftest$ac_exeext conftest.$ac_ext
105777LIBS=$ac_check_lib_save_LIBS
105778fi
105779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rabbitmq_amqp_basic_publish" >&5
105780$as_echo "$ac_cv_lib_rabbitmq_amqp_basic_publish" >&6; }
105781if test "x$ac_cv_lib_rabbitmq_amqp_basic_publish" = xyes; then :
105782  with_librabbitmq="yes"
105783else
105784  with_librabbitmq="no (Symbol 'amqp_basic_publish' not found)"
105785
105786fi
105787
105788
105789  LDFLAGS="$SAVE_LDFLAGS"
105790fi
105791
105792if test "x$with_librabbitmq" = "xyes"; then
105793  SAVE_CPPFLAGS="$CPPFLAGS"
105794  SAVE_LDFLAGS="$LDFLAGS"
105795  SAVE_LIBS="$LIBS"
105796  CPPFLAGS="$CPPFLAGS $with_librabbitmq_cppflags"
105797  LDFLAGS="$LDFLAGS $with_librabbitmq_ldflags"
105798  LIBS="-lrabbitmq"
105799
105800  for ac_header in amqp_tcp_socket.h amqp_socket.h
105801do :
105802  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
105803ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
105804if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
105805  cat >>confdefs.h <<_ACEOF
105806#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
105807_ACEOF
105808
105809fi
105810
105811done
105812
105813  ac_fn_c_check_func "$LINENO" "amqp_tcp_socket_new" "ac_cv_func_amqp_tcp_socket_new"
105814if test "x$ac_cv_func_amqp_tcp_socket_new" = xyes; then :
105815
105816
105817$as_echo "#define HAVE_AMQP_TCP_SOCKET 1" >>confdefs.h
105818
105819
105820
105821fi
105822
105823
105824  ac_fn_c_check_decl "$LINENO" "amqp_socket_close" "ac_cv_have_decl_amqp_socket_close" "
105825      #include <amqp.h>
105826      #ifdef HAVE_AMQP_TCP_SOCKET_H
105827      # include <amqp_tcp_socket.h>
105828      #endif
105829      #ifdef HAVE_AMQP_SOCKET_H
105830      # include <amqp_socket.h>
105831      #endif
105832
105833
105834"
105835if test "x$ac_cv_have_decl_amqp_socket_close" = xyes; then :
105836  ac_have_decl=1
105837else
105838  ac_have_decl=0
105839fi
105840
105841cat >>confdefs.h <<_ACEOF
105842#define HAVE_DECL_AMQP_SOCKET_CLOSE $ac_have_decl
105843_ACEOF
105844
105845
105846  CPPFLAGS="$SAVE_CPPFLAGS"
105847  LDFLAGS="$SAVE_LDFLAGS"
105848  LIBS="$SAVE_LIBS"
105849fi
105850
105851if test "x$with_librabbitmq" = "xyes"; then
105852  BUILD_WITH_LIBRABBITMQ_CPPFLAGS="$with_librabbitmq_cppflags"
105853  BUILD_WITH_LIBRABBITMQ_LDFLAGS="$with_librabbitmq_ldflags"
105854  BUILD_WITH_LIBRABBITMQ_LIBS="-lrabbitmq"
105855fi
105856
105857
105858
105859
105860
105861# }}}
105862
105863# --with-librdkafka {{{
105864
105865# Check whether --with-librdkafka was given.
105866if test "${with_librdkafka+set}" = set; then :
105867  withval=$with_librdkafka;
105868    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
105869      with_librdkafka_cppflags="-I$withval/include"
105870      with_librdkafka_ldflags="-L$withval/lib"
105871      with_librdkafka_rpath="$withval/lib"
105872      with_librdkafka="yes"
105873    else
105874      with_librdkafka="$withval"
105875    fi
105876
105877else
105878  with_librdkafka="yes"
105879
105880fi
105881
105882
105883if test "x$with_librdkafka" = "xyes"; then
105884  SAVE_CPPFLAGS="$CPPFLAGS"
105885  CPPFLAGS="$CPPFLAGS $with_librdkafka_cppflags"
105886
105887  for ac_header in librdkafka/rdkafka.h
105888do :
105889  ac_fn_c_check_header_mongrel "$LINENO" "librdkafka/rdkafka.h" "ac_cv_header_librdkafka_rdkafka_h" "$ac_includes_default"
105890if test "x$ac_cv_header_librdkafka_rdkafka_h" = xyes; then :
105891  cat >>confdefs.h <<_ACEOF
105892#define HAVE_LIBRDKAFKA_RDKAFKA_H 1
105893_ACEOF
105894 with_librdkafka="yes"
105895else
105896  with_librdkafka="no (librdkafka/rdkafka.h not found)"
105897
105898fi
105899
105900done
105901
105902
105903  CPPFLAGS="$SAVE_CPPFLAGS"
105904fi
105905
105906if test "x$with_librdkafka" = "xyes"; then
105907  SAVE_LDFLAGS="$LDFLAGS"
105908  LDFLAGS="$LDFLAGS $with_librdkafka_ldflags"
105909
105910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rd_kafka_new in -lrdkafka" >&5
105911$as_echo_n "checking for rd_kafka_new in -lrdkafka... " >&6; }
105912if ${ac_cv_lib_rdkafka_rd_kafka_new+:} false; then :
105913  $as_echo_n "(cached) " >&6
105914else
105915  ac_check_lib_save_LIBS=$LIBS
105916LIBS="-lrdkafka  $LIBS"
105917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105918/* end confdefs.h.  */
105919
105920/* Override any GCC internal prototype to avoid an error.
105921   Use char because int might match the return type of a GCC
105922   builtin and then its argument prototype would still apply.  */
105923#ifdef __cplusplus
105924extern "C"
105925#endif
105926char rd_kafka_new ();
105927int
105928main ()
105929{
105930return rd_kafka_new ();
105931  ;
105932  return 0;
105933}
105934_ACEOF
105935if ac_fn_c_try_link "$LINENO"; then :
105936  ac_cv_lib_rdkafka_rd_kafka_new=yes
105937else
105938  ac_cv_lib_rdkafka_rd_kafka_new=no
105939fi
105940rm -f core conftest.err conftest.$ac_objext \
105941    conftest$ac_exeext conftest.$ac_ext
105942LIBS=$ac_check_lib_save_LIBS
105943fi
105944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdkafka_rd_kafka_new" >&5
105945$as_echo "$ac_cv_lib_rdkafka_rd_kafka_new" >&6; }
105946if test "x$ac_cv_lib_rdkafka_rd_kafka_new" = xyes; then :
105947  with_librdkafka="yes"
105948else
105949  with_librdkafka="no (Symbol 'rd_kafka_new' not found)"
105950fi
105951
105952
105953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rd_kafka_conf_set_log_cb in -lrdkafka" >&5
105954$as_echo_n "checking for rd_kafka_conf_set_log_cb in -lrdkafka... " >&6; }
105955if ${ac_cv_lib_rdkafka_rd_kafka_conf_set_log_cb+:} false; then :
105956  $as_echo_n "(cached) " >&6
105957else
105958  ac_check_lib_save_LIBS=$LIBS
105959LIBS="-lrdkafka  $LIBS"
105960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105961/* end confdefs.h.  */
105962
105963/* Override any GCC internal prototype to avoid an error.
105964   Use char because int might match the return type of a GCC
105965   builtin and then its argument prototype would still apply.  */
105966#ifdef __cplusplus
105967extern "C"
105968#endif
105969char rd_kafka_conf_set_log_cb ();
105970int
105971main ()
105972{
105973return rd_kafka_conf_set_log_cb ();
105974  ;
105975  return 0;
105976}
105977_ACEOF
105978if ac_fn_c_try_link "$LINENO"; then :
105979  ac_cv_lib_rdkafka_rd_kafka_conf_set_log_cb=yes
105980else
105981  ac_cv_lib_rdkafka_rd_kafka_conf_set_log_cb=no
105982fi
105983rm -f core conftest.err conftest.$ac_objext \
105984    conftest$ac_exeext conftest.$ac_ext
105985LIBS=$ac_check_lib_save_LIBS
105986fi
105987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdkafka_rd_kafka_conf_set_log_cb" >&5
105988$as_echo "$ac_cv_lib_rdkafka_rd_kafka_conf_set_log_cb" >&6; }
105989if test "x$ac_cv_lib_rdkafka_rd_kafka_conf_set_log_cb" = xyes; then :
105990  with_librdkafka_log_cb="yes"
105991else
105992  with_librdkafka_log_cb="no"
105993fi
105994
105995
105996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rd_kafka_set_logger in -lrdkafka" >&5
105997$as_echo_n "checking for rd_kafka_set_logger in -lrdkafka... " >&6; }
105998if ${ac_cv_lib_rdkafka_rd_kafka_set_logger+:} false; then :
105999  $as_echo_n "(cached) " >&6
106000else
106001  ac_check_lib_save_LIBS=$LIBS
106002LIBS="-lrdkafka  $LIBS"
106003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106004/* end confdefs.h.  */
106005
106006/* Override any GCC internal prototype to avoid an error.
106007   Use char because int might match the return type of a GCC
106008   builtin and then its argument prototype would still apply.  */
106009#ifdef __cplusplus
106010extern "C"
106011#endif
106012char rd_kafka_set_logger ();
106013int
106014main ()
106015{
106016return rd_kafka_set_logger ();
106017  ;
106018  return 0;
106019}
106020_ACEOF
106021if ac_fn_c_try_link "$LINENO"; then :
106022  ac_cv_lib_rdkafka_rd_kafka_set_logger=yes
106023else
106024  ac_cv_lib_rdkafka_rd_kafka_set_logger=no
106025fi
106026rm -f core conftest.err conftest.$ac_objext \
106027    conftest$ac_exeext conftest.$ac_ext
106028LIBS=$ac_check_lib_save_LIBS
106029fi
106030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdkafka_rd_kafka_set_logger" >&5
106031$as_echo "$ac_cv_lib_rdkafka_rd_kafka_set_logger" >&6; }
106032if test "x$ac_cv_lib_rdkafka_rd_kafka_set_logger" = xyes; then :
106033  with_librdkafka_logger="yes"
106034else
106035  with_librdkafka_logger="no"
106036
106037fi
106038
106039
106040  LDFLAGS="$SAVE_LDFLAGS"
106041fi
106042
106043if test "x$with_librdkafka" = "xyes"; then
106044  BUILD_WITH_LIBRDKAFKA_CPPFLAGS="$with_librdkafka_cppflags"
106045  BUILD_WITH_LIBRDKAFKA_LDFLAGS="$with_librdkafka_ldflags"
106046
106047  if test "x$with_librdkafka_rpath" != "x"; then
106048    BUILD_WITH_LIBRDKAFKA_LIBS="-Wl,-rpath,$with_librdkafka_rpath -lrdkafka"
106049  else
106050    BUILD_WITH_LIBRDKAFKA_LIBS="-lrdkafka"
106051  fi
106052
106053  if test "x$with_librdkafka_log_cb" = "xyes"; then
106054
106055$as_echo "#define HAVE_LIBRDKAFKA_LOG_CB 1" >>confdefs.h
106056
106057  else if test "x$with_librdkafka_logger" = "xyes"; then
106058
106059$as_echo "#define HAVE_LIBRDKAFKA_LOGGER 1" >>confdefs.h
106060
106061  fi; fi
106062fi
106063
106064
106065
106066
106067# }}}
106068
106069# --with-librouteros {{{
106070
106071# Check whether --with-librouteros was given.
106072if test "${with_librouteros+set}" = set; then :
106073  withval=$with_librouteros;
106074    if test "x$withval" = "xyes" || test "x$withval" = "xno"; then
106075      with_librouteros="$witval"
106076    else
106077      with_librouteros_cppflags="-I$withval/include"
106078      with_librouteros_ldflags="-L$withval/lib"
106079      with_librouteros="yes"
106080   fi
106081
106082else
106083  with_librouteros="yes"
106084
106085fi
106086
106087
106088if test "x$with_librouteros" = "xyes"; then
106089  SAVE_CPPFLAGS="$CPPFLAGS"
106090  CPPFLAGS="$CPPFLAGS $with_librouteros_cppflags"
106091
106092  for ac_header in routeros_api.h
106093do :
106094  ac_fn_c_check_header_mongrel "$LINENO" "routeros_api.h" "ac_cv_header_routeros_api_h" "$ac_includes_default"
106095if test "x$ac_cv_header_routeros_api_h" = xyes; then :
106096  cat >>confdefs.h <<_ACEOF
106097#define HAVE_ROUTEROS_API_H 1
106098_ACEOF
106099 with_librouteros="yes"
106100else
106101  with_librouteros="no (routeros_api.h not found)"
106102
106103fi
106104
106105done
106106
106107
106108  CPPFLAGS="$SAVE_CPPFLAGS"
106109fi
106110
106111if test "x$with_librouteros" = "xyes"; then
106112  SAVE_LDFLAGS="$LDFLAGS"
106113  LDFLAGS="$LDFLAGS $with_librouteros_ldflags"
106114
106115  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ros_interface in -lrouteros" >&5
106116$as_echo_n "checking for ros_interface in -lrouteros... " >&6; }
106117if ${ac_cv_lib_routeros_ros_interface+:} false; then :
106118  $as_echo_n "(cached) " >&6
106119else
106120  ac_check_lib_save_LIBS=$LIBS
106121LIBS="-lrouteros  $LIBS"
106122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106123/* end confdefs.h.  */
106124
106125/* Override any GCC internal prototype to avoid an error.
106126   Use char because int might match the return type of a GCC
106127   builtin and then its argument prototype would still apply.  */
106128#ifdef __cplusplus
106129extern "C"
106130#endif
106131char ros_interface ();
106132int
106133main ()
106134{
106135return ros_interface ();
106136  ;
106137  return 0;
106138}
106139_ACEOF
106140if ac_fn_c_try_link "$LINENO"; then :
106141  ac_cv_lib_routeros_ros_interface=yes
106142else
106143  ac_cv_lib_routeros_ros_interface=no
106144fi
106145rm -f core conftest.err conftest.$ac_objext \
106146    conftest$ac_exeext conftest.$ac_ext
106147LIBS=$ac_check_lib_save_LIBS
106148fi
106149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_routeros_ros_interface" >&5
106150$as_echo "$ac_cv_lib_routeros_ros_interface" >&6; }
106151if test "x$ac_cv_lib_routeros_ros_interface" = xyes; then :
106152  with_librouteros="yes"
106153else
106154  with_librouteros="no (symbol 'ros_interface' not found)"
106155
106156fi
106157
106158
106159  LDFLAGS="$SAVE_LDFLAGS"
106160fi
106161
106162if test "x$with_librouteros" = "xyes"; then
106163  BUILD_WITH_LIBROUTEROS_CPPFLAGS="$with_librouteros_cppflags"
106164  BUILD_WITH_LIBROUTEROS_LDFLAGS="$with_librouteros_ldflags"
106165fi
106166
106167
106168
106169# }}}
106170
106171# --with-librrd {{{
106172librrd_threadsafe="no"
106173librrd_rrdc_update="no"
106174
106175# Check whether --with-librrd was given.
106176if test "${with_librrd+set}" = set; then :
106177  withval=$with_librrd;
106178    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
106179      librrd_cflags="-I$withval/include"
106180      librrd_ldflags="-L$withval/lib"
106181      with_librrd="yes"
106182    else
106183      with_librrd="$withval"
106184    fi
106185
106186else
106187  with_librrd="yes"
106188
106189fi
106190
106191
106192if test "x$with_librrd" = "xyes"; then
106193  SAVE_LDFLAGS="$LDFLAGS"
106194  LDFLAGS="$LDFLAGS $librrd_ldflags"
106195
106196pkg_failed=no
106197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RRD" >&5
106198$as_echo_n "checking for RRD... " >&6; }
106199
106200if test -n "$RRD_CFLAGS"; then
106201    pkg_cv_RRD_CFLAGS="$RRD_CFLAGS"
106202 elif test -n "$PKG_CONFIG"; then
106203    if test -n "$PKG_CONFIG" && \
106204    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librrd >= 1.6.0\""; } >&5
106205  ($PKG_CONFIG --exists --print-errors "librrd >= 1.6.0") 2>&5
106206  ac_status=$?
106207  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
106208  test $ac_status = 0; }; then
106209  pkg_cv_RRD_CFLAGS=`$PKG_CONFIG --cflags "librrd >= 1.6.0" 2>/dev/null`
106210		      test "x$?" != "x0" && pkg_failed=yes
106211else
106212  pkg_failed=yes
106213fi
106214 else
106215    pkg_failed=untried
106216fi
106217if test -n "$RRD_LIBS"; then
106218    pkg_cv_RRD_LIBS="$RRD_LIBS"
106219 elif test -n "$PKG_CONFIG"; then
106220    if test -n "$PKG_CONFIG" && \
106221    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librrd >= 1.6.0\""; } >&5
106222  ($PKG_CONFIG --exists --print-errors "librrd >= 1.6.0") 2>&5
106223  ac_status=$?
106224  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
106225  test $ac_status = 0; }; then
106226  pkg_cv_RRD_LIBS=`$PKG_CONFIG --libs "librrd >= 1.6.0" 2>/dev/null`
106227		      test "x$?" != "x0" && pkg_failed=yes
106228else
106229  pkg_failed=yes
106230fi
106231 else
106232    pkg_failed=untried
106233fi
106234
106235
106236
106237if test $pkg_failed = yes; then
106238   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
106239$as_echo "no" >&6; }
106240
106241if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
106242        _pkg_short_errors_supported=yes
106243else
106244        _pkg_short_errors_supported=no
106245fi
106246        if test $_pkg_short_errors_supported = yes; then
106247	        RRD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librrd >= 1.6.0" 2>&1`
106248        else
106249	        RRD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librrd >= 1.6.0" 2>&1`
106250        fi
106251	# Put the nasty error message in config.log where it belongs
106252	echo "$RRD_PKG_ERRORS" >&5
106253
106254	:
106255
106256elif test $pkg_failed = untried; then
106257     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
106258$as_echo "no" >&6; }
106259	:
106260
106261else
106262	RRD_CFLAGS=$pkg_cv_RRD_CFLAGS
106263	RRD_LIBS=$pkg_cv_RRD_LIBS
106264        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
106265$as_echo "yes" >&6; }
106266
106267      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rrd_update_r in -lrrd" >&5
106268$as_echo_n "checking for rrd_update_r in -lrrd... " >&6; }
106269if ${ac_cv_lib_rrd_rrd_update_r+:} false; then :
106270  $as_echo_n "(cached) " >&6
106271else
106272  ac_check_lib_save_LIBS=$LIBS
106273LIBS="-lrrd  $LIBS"
106274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106275/* end confdefs.h.  */
106276
106277/* Override any GCC internal prototype to avoid an error.
106278   Use char because int might match the return type of a GCC
106279   builtin and then its argument prototype would still apply.  */
106280#ifdef __cplusplus
106281extern "C"
106282#endif
106283char rrd_update_r ();
106284int
106285main ()
106286{
106287return rrd_update_r ();
106288  ;
106289  return 0;
106290}
106291_ACEOF
106292if ac_fn_c_try_link "$LINENO"; then :
106293  ac_cv_lib_rrd_rrd_update_r=yes
106294else
106295  ac_cv_lib_rrd_rrd_update_r=no
106296fi
106297rm -f core conftest.err conftest.$ac_objext \
106298    conftest$ac_exeext conftest.$ac_ext
106299LIBS=$ac_check_lib_save_LIBS
106300fi
106301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rrd_rrd_update_r" >&5
106302$as_echo "$ac_cv_lib_rrd_rrd_update_r" >&6; }
106303if test "x$ac_cv_lib_rrd_rrd_update_r" = xyes; then :
106304  librrd_threadsafe="yes"
106305else
106306  :
106307
106308fi
106309
106310      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rrdc_update in -lrrd" >&5
106311$as_echo_n "checking for rrdc_update in -lrrd... " >&6; }
106312if ${ac_cv_lib_rrd_rrdc_update+:} false; then :
106313  $as_echo_n "(cached) " >&6
106314else
106315  ac_check_lib_save_LIBS=$LIBS
106316LIBS="-lrrd  $LIBS"
106317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106318/* end confdefs.h.  */
106319
106320/* Override any GCC internal prototype to avoid an error.
106321   Use char because int might match the return type of a GCC
106322   builtin and then its argument prototype would still apply.  */
106323#ifdef __cplusplus
106324extern "C"
106325#endif
106326char rrdc_update ();
106327int
106328main ()
106329{
106330return rrdc_update ();
106331  ;
106332  return 0;
106333}
106334_ACEOF
106335if ac_fn_c_try_link "$LINENO"; then :
106336  ac_cv_lib_rrd_rrdc_update=yes
106337else
106338  ac_cv_lib_rrd_rrdc_update=no
106339fi
106340rm -f core conftest.err conftest.$ac_objext \
106341    conftest$ac_exeext conftest.$ac_ext
106342LIBS=$ac_check_lib_save_LIBS
106343fi
106344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rrd_rrdc_update" >&5
106345$as_echo "$ac_cv_lib_rrd_rrdc_update" >&6; }
106346if test "x$ac_cv_lib_rrd_rrdc_update" = xyes; then :
106347  librrd_rrdc_update="yes"
106348else
106349  :
106350
106351fi
106352
106353
106354fi
106355  LDFLAGS="$SAVE_LDFLAGS"
106356
106357  SAVE_CPPFLAGS="$CPPFLAGS"
106358  CPPFLAGS="$CPPFLAGS $RRD_CFLAGS $librrd_cflags"
106359
106360  for ac_header in rrd.h
106361do :
106362  ac_fn_c_check_header_mongrel "$LINENO" "rrd.h" "ac_cv_header_rrd_h" "$ac_includes_default"
106363if test "x$ac_cv_header_rrd_h" = xyes; then :
106364  cat >>confdefs.h <<_ACEOF
106365#define HAVE_RRD_H 1
106366_ACEOF
106367
106368else
106369  with_librrd="no (rrd.h not found)"
106370fi
106371
106372done
106373
106374
106375  CPPFLAGS="$SAVE_CPPFLAGS"
106376fi
106377
106378if test "x$with_librrd" = "xyes" && test "x$librrd_threadsafe" = "xno"; then
106379  SAVE_LDFLAGS="$LDFLAGS"
106380  LDFLAGS="$LDFLAGS $librrd_ldflags"
106381
106382  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rrd_update_r in -lrrd_th" >&5
106383$as_echo_n "checking for rrd_update_r in -lrrd_th... " >&6; }
106384if ${ac_cv_lib_rrd_th_rrd_update_r+:} false; then :
106385  $as_echo_n "(cached) " >&6
106386else
106387  ac_check_lib_save_LIBS=$LIBS
106388LIBS="-lrrd_th  $LIBS"
106389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106390/* end confdefs.h.  */
106391
106392/* Override any GCC internal prototype to avoid an error.
106393   Use char because int might match the return type of a GCC
106394   builtin and then its argument prototype would still apply.  */
106395#ifdef __cplusplus
106396extern "C"
106397#endif
106398char rrd_update_r ();
106399int
106400main ()
106401{
106402return rrd_update_r ();
106403  ;
106404  return 0;
106405}
106406_ACEOF
106407if ac_fn_c_try_link "$LINENO"; then :
106408  ac_cv_lib_rrd_th_rrd_update_r=yes
106409else
106410  ac_cv_lib_rrd_th_rrd_update_r=no
106411fi
106412rm -f core conftest.err conftest.$ac_objext \
106413    conftest$ac_exeext conftest.$ac_ext
106414LIBS=$ac_check_lib_save_LIBS
106415fi
106416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rrd_th_rrd_update_r" >&5
106417$as_echo "$ac_cv_lib_rrd_th_rrd_update_r" >&6; }
106418if test "x$ac_cv_lib_rrd_th_rrd_update_r" = xyes; then :
106419
106420      librrd_ldflags="$librrd_ldflags -lrrd_th"
106421      librrd_threadsafe="yes"
106422      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rrdc_update in -lrrd_th" >&5
106423$as_echo_n "checking for rrdc_update in -lrrd_th... " >&6; }
106424if ${ac_cv_lib_rrd_th_rrdc_update+:} false; then :
106425  $as_echo_n "(cached) " >&6
106426else
106427  ac_check_lib_save_LIBS=$LIBS
106428LIBS="-lrrd_th  $LIBS"
106429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106430/* end confdefs.h.  */
106431
106432/* Override any GCC internal prototype to avoid an error.
106433   Use char because int might match the return type of a GCC
106434   builtin and then its argument prototype would still apply.  */
106435#ifdef __cplusplus
106436extern "C"
106437#endif
106438char rrdc_update ();
106439int
106440main ()
106441{
106442return rrdc_update ();
106443  ;
106444  return 0;
106445}
106446_ACEOF
106447if ac_fn_c_try_link "$LINENO"; then :
106448  ac_cv_lib_rrd_th_rrdc_update=yes
106449else
106450  ac_cv_lib_rrd_th_rrdc_update=no
106451fi
106452rm -f core conftest.err conftest.$ac_objext \
106453    conftest$ac_exeext conftest.$ac_ext
106454LIBS=$ac_check_lib_save_LIBS
106455fi
106456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rrd_th_rrdc_update" >&5
106457$as_echo "$ac_cv_lib_rrd_th_rrdc_update" >&6; }
106458if test "x$ac_cv_lib_rrd_th_rrdc_update" = xyes; then :
106459  librrd_rrdc_update="yes"
106460else
106461  :
106462fi
106463
106464
106465else
106466  :
106467
106468fi
106469
106470  LDFLAGS="$SAVE_LDFLAGS"
106471fi
106472
106473if test "x$with_librrd" = "xyes" && test "x$librrd_threadsafe" = "xno"; then
106474  SAVE_LDFLAGS="$LDFLAGS"
106475  LDFLAGS="$LDFLAGS $librrd_ldflags"
106476
106477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rrd_update in -lrrd" >&5
106478$as_echo_n "checking for rrd_update in -lrrd... " >&6; }
106479if ${ac_cv_lib_rrd_rrd_update+:} false; then :
106480  $as_echo_n "(cached) " >&6
106481else
106482  ac_check_lib_save_LIBS=$LIBS
106483LIBS="-lrrd  $LIBS"
106484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106485/* end confdefs.h.  */
106486
106487/* Override any GCC internal prototype to avoid an error.
106488   Use char because int might match the return type of a GCC
106489   builtin and then its argument prototype would still apply.  */
106490#ifdef __cplusplus
106491extern "C"
106492#endif
106493char rrd_update ();
106494int
106495main ()
106496{
106497return rrd_update ();
106498  ;
106499  return 0;
106500}
106501_ACEOF
106502if ac_fn_c_try_link "$LINENO"; then :
106503  ac_cv_lib_rrd_rrd_update=yes
106504else
106505  ac_cv_lib_rrd_rrd_update=no
106506fi
106507rm -f core conftest.err conftest.$ac_objext \
106508    conftest$ac_exeext conftest.$ac_ext
106509LIBS=$ac_check_lib_save_LIBS
106510fi
106511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rrd_rrd_update" >&5
106512$as_echo "$ac_cv_lib_rrd_rrd_update" >&6; }
106513if test "x$ac_cv_lib_rrd_rrd_update" = xyes; then :
106514
106515      librrd_ldflags="$librrd_ldflags -lrrd"
106516      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rrdc_update in -lrrd" >&5
106517$as_echo_n "checking for rrdc_update in -lrrd... " >&6; }
106518if ${ac_cv_lib_rrd_rrdc_update+:} false; then :
106519  $as_echo_n "(cached) " >&6
106520else
106521  ac_check_lib_save_LIBS=$LIBS
106522LIBS="-lrrd  $LIBS"
106523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106524/* end confdefs.h.  */
106525
106526/* Override any GCC internal prototype to avoid an error.
106527   Use char because int might match the return type of a GCC
106528   builtin and then its argument prototype would still apply.  */
106529#ifdef __cplusplus
106530extern "C"
106531#endif
106532char rrdc_update ();
106533int
106534main ()
106535{
106536return rrdc_update ();
106537  ;
106538  return 0;
106539}
106540_ACEOF
106541if ac_fn_c_try_link "$LINENO"; then :
106542  ac_cv_lib_rrd_rrdc_update=yes
106543else
106544  ac_cv_lib_rrd_rrdc_update=no
106545fi
106546rm -f core conftest.err conftest.$ac_objext \
106547    conftest$ac_exeext conftest.$ac_ext
106548LIBS=$ac_check_lib_save_LIBS
106549fi
106550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rrd_rrdc_update" >&5
106551$as_echo "$ac_cv_lib_rrd_rrdc_update" >&6; }
106552if test "x$ac_cv_lib_rrd_rrdc_update" = xyes; then :
106553  librrd_rrdc_update="yes"
106554else
106555  :
106556
106557fi
106558
106559
106560else
106561  with_librrd="no (symbol 'rrd_update' not found)"
106562
106563fi
106564
106565  LDFLAGS="$SAVE_LDFLAGS"
106566fi
106567
106568if test "x$with_librrd" = "xyes"; then
106569  BUILD_WITH_LIBRRD_CFLAGS="$RRD_CFLAGS $librrd_cflags"
106570  BUILD_WITH_LIBRRD_LDFLAGS="$librrd_ldflags"
106571  BUILD_WITH_LIBRRD_LIBS="$RRD_LIBS"
106572fi
106573
106574if test "x$librrd_threadsafe" = "xyes"; then
106575
106576$as_echo "#define HAVE_THREADSAFE_LIBRRD 1" >>confdefs.h
106577
106578fi
106579
106580
106581
106582
106583# }}}
106584
106585# --with-libsensors {{{
106586
106587# Check whether --with-libsensors was given.
106588if test "${with_libsensors+set}" = set; then :
106589  withval=$with_libsensors;
106590    if test "x$withval" = "xno" || test "x$withval" = "xyes"; then
106591      with_libsensors="$withval"
106592    else
106593      with_sensors_cppflags="-I$withval/include"
106594      with_sensors_ldflags="-L$withval/lib"
106595      with_libsensors="yes"
106596    fi
106597
106598else
106599
106600    if test "x$ac_system" = "xLinux"; then
106601      with_libsensors="yes"
106602    else
106603      with_libsensors="no (Linux only library)"
106604    fi
106605
106606
106607fi
106608
106609
106610if test "x$with_libsensors" = "xyes"; then
106611  SAVE_CPPFLAGS="$CPPFLAGS"
106612  CPPFLAGS="$CPPFLAGS $with_sensors_cppflags"
106613
106614  for ac_header in sensors/sensors.h
106615do :
106616  ac_fn_c_check_header_mongrel "$LINENO" "sensors/sensors.h" "ac_cv_header_sensors_sensors_h" "$ac_includes_default"
106617if test "x$ac_cv_header_sensors_sensors_h" = xyes; then :
106618  cat >>confdefs.h <<_ACEOF
106619#define HAVE_SENSORS_SENSORS_H 1
106620_ACEOF
106621 with_libsensors="yes"
106622else
106623  with_libsensors="no (sensors/sensors.h not found)"
106624
106625fi
106626
106627done
106628
106629
106630  CPPFLAGS="$SAVE_CPPFLAGS"
106631fi
106632
106633if test "x$with_libsensors" = "xyes"; then
106634  SAVE_LDFLAGS="$LDFLAGS"
106635  LDFLAGS="$LDFLAGS $with_sensors_ldflags"
106636
106637  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_init in -lsensors" >&5
106638$as_echo_n "checking for sensors_init in -lsensors... " >&6; }
106639if ${ac_cv_lib_sensors_sensors_init+:} false; then :
106640  $as_echo_n "(cached) " >&6
106641else
106642  ac_check_lib_save_LIBS=$LIBS
106643LIBS="-lsensors  $LIBS"
106644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106645/* end confdefs.h.  */
106646
106647/* Override any GCC internal prototype to avoid an error.
106648   Use char because int might match the return type of a GCC
106649   builtin and then its argument prototype would still apply.  */
106650#ifdef __cplusplus
106651extern "C"
106652#endif
106653char sensors_init ();
106654int
106655main ()
106656{
106657return sensors_init ();
106658  ;
106659  return 0;
106660}
106661_ACEOF
106662if ac_fn_c_try_link "$LINENO"; then :
106663  ac_cv_lib_sensors_sensors_init=yes
106664else
106665  ac_cv_lib_sensors_sensors_init=no
106666fi
106667rm -f core conftest.err conftest.$ac_objext \
106668    conftest$ac_exeext conftest.$ac_ext
106669LIBS=$ac_check_lib_save_LIBS
106670fi
106671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_init" >&5
106672$as_echo "$ac_cv_lib_sensors_sensors_init" >&6; }
106673if test "x$ac_cv_lib_sensors_sensors_init" = xyes; then :
106674  with_libsensors="yes"
106675else
106676  with_libsensors="no (libsensors not found)"
106677
106678fi
106679
106680
106681  LDFLAGS="$SAVE_LDFLAGS"
106682fi
106683
106684if test "x$with_libsensors" = "xyes"; then
106685  SAVE_CPPFLAGS="$CPPFLAGS"
106686  CPPFLAGS="$CPPFLAGS $with_sensors_cppflags"
106687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106688/* end confdefs.h.  */
106689
106690
106691          #include <sensors/sensors.h>
106692          #if SENSORS_API_VERSION < 0x400
106693          #error "required libsensors version >= 3.0"
106694          #endif
106695
106696
106697
106698_ACEOF
106699if ac_fn_c_try_cpp "$LINENO"; then :
106700  with_libsensors="yes"
106701else
106702  with_libsensors="no (sensors library version 3.0.0 or higher is required)"
106703
106704fi
106705rm -f conftest.err conftest.i conftest.$ac_ext
106706
106707  CPPFLAGS="$SAVE_CPPFLAGS"
106708fi
106709
106710if test "x$with_libsensors" = "xyes"; then
106711  BUILD_WITH_LIBSENSORS_CPPFLAGS="$with_sensors_cppflags"
106712  BUILD_WITH_LIBSENSORS_LDFLAGS="$with_sensors_ldflags"
106713  BUILD_WITH_LIBSENSORS_LIBS="-lsensors"
106714fi
106715
106716
106717
106718
106719
106720# }}}
106721
106722# libsigrok {{{
106723
106724
106725
106726pkg_failed=no
106727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSIGROK" >&5
106728$as_echo_n "checking for LIBSIGROK... " >&6; }
106729
106730if test -n "$LIBSIGROK_CFLAGS"; then
106731    pkg_cv_LIBSIGROK_CFLAGS="$LIBSIGROK_CFLAGS"
106732 elif test -n "$PKG_CONFIG"; then
106733    if test -n "$PKG_CONFIG" && \
106734    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsigrok < 0.4\""; } >&5
106735  ($PKG_CONFIG --exists --print-errors "libsigrok < 0.4") 2>&5
106736  ac_status=$?
106737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
106738  test $ac_status = 0; }; then
106739  pkg_cv_LIBSIGROK_CFLAGS=`$PKG_CONFIG --cflags "libsigrok < 0.4" 2>/dev/null`
106740		      test "x$?" != "x0" && pkg_failed=yes
106741else
106742  pkg_failed=yes
106743fi
106744 else
106745    pkg_failed=untried
106746fi
106747if test -n "$LIBSIGROK_LIBS"; then
106748    pkg_cv_LIBSIGROK_LIBS="$LIBSIGROK_LIBS"
106749 elif test -n "$PKG_CONFIG"; then
106750    if test -n "$PKG_CONFIG" && \
106751    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsigrok < 0.4\""; } >&5
106752  ($PKG_CONFIG --exists --print-errors "libsigrok < 0.4") 2>&5
106753  ac_status=$?
106754  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
106755  test $ac_status = 0; }; then
106756  pkg_cv_LIBSIGROK_LIBS=`$PKG_CONFIG --libs "libsigrok < 0.4" 2>/dev/null`
106757		      test "x$?" != "x0" && pkg_failed=yes
106758else
106759  pkg_failed=yes
106760fi
106761 else
106762    pkg_failed=untried
106763fi
106764
106765
106766
106767if test $pkg_failed = yes; then
106768   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
106769$as_echo "no" >&6; }
106770
106771if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
106772        _pkg_short_errors_supported=yes
106773else
106774        _pkg_short_errors_supported=no
106775fi
106776        if test $_pkg_short_errors_supported = yes; then
106777	        LIBSIGROK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsigrok < 0.4" 2>&1`
106778        else
106779	        LIBSIGROK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsigrok < 0.4" 2>&1`
106780        fi
106781	# Put the nasty error message in config.log where it belongs
106782	echo "$LIBSIGROK_PKG_ERRORS" >&5
106783
106784	with_libsigrok="no (pkg-config could not find libsigrok)"
106785
106786elif test $pkg_failed = untried; then
106787     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
106788$as_echo "no" >&6; }
106789	with_libsigrok="no (pkg-config could not find libsigrok)"
106790
106791else
106792	LIBSIGROK_CFLAGS=$pkg_cv_LIBSIGROK_CFLAGS
106793	LIBSIGROK_LIBS=$pkg_cv_LIBSIGROK_LIBS
106794        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
106795$as_echo "yes" >&6; }
106796	with_libsigrok="yes"
106797fi
106798# }}}
106799
106800# --with-libssl {{{
106801with_libssl_cflags=""
106802with_libssl_ldflags=""
106803
106804# Check whether --with-libssl was given.
106805if test "${with_libssl+set}" = set; then :
106806  withval=$with_libssl;
106807	if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
106808		with_libssl_cppflags="-I$withval/include"
106809		with_libssl_ldflags="-L$withval/lib"
106810		with_libssl="yes"
106811	else
106812		with_libssl="$withval"
106813	fi
106814
106815else
106816
106817	with_libssl="yes"
106818
106819fi
106820
106821if test "x$with_libssl" = "xyes"; then
106822	SAVE_CPPFLAGS="$CPPFLAGS"
106823	CPPFLAGS="$CPPFLAGS $with_libssl_cppflags"
106824
106825  for ac_header in openssl/sha.h openssl/blowfish.h openssl/rand.h
106826do :
106827  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
106828ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
106829if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
106830  cat >>confdefs.h <<_ACEOF
106831#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
106832_ACEOF
106833 with_libssl="yes"
106834else
106835  with_libssl="no (ssl header not found)"
106836fi
106837
106838done
106839
106840
106841	CPPFLAGS="$SAVE_CPPFLAGS"
106842fi
106843if test "x$with_libssl" = "xyes"; then
106844	SAVE_CPPFLAGS="$CPPFLAGS"
106845	SAVE_LDFLAGS="$LDFLAGS"
106846	CPPFLAGS="$CPPFLAGS $with_libssl_cppflags"
106847	LDFLAGS="$LDFLAGS $with_libssl_ldflags"
106848
106849	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_init_ssl in -lssl" >&5
106850$as_echo_n "checking for OPENSSL_init_ssl in -lssl... " >&6; }
106851if ${ac_cv_lib_ssl_OPENSSL_init_ssl+:} false; then :
106852  $as_echo_n "(cached) " >&6
106853else
106854  ac_check_lib_save_LIBS=$LIBS
106855LIBS="-lssl  $LIBS"
106856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106857/* end confdefs.h.  */
106858
106859/* Override any GCC internal prototype to avoid an error.
106860   Use char because int might match the return type of a GCC
106861   builtin and then its argument prototype would still apply.  */
106862#ifdef __cplusplus
106863extern "C"
106864#endif
106865char OPENSSL_init_ssl ();
106866int
106867main ()
106868{
106869return OPENSSL_init_ssl ();
106870  ;
106871  return 0;
106872}
106873_ACEOF
106874if ac_fn_c_try_link "$LINENO"; then :
106875  ac_cv_lib_ssl_OPENSSL_init_ssl=yes
106876else
106877  ac_cv_lib_ssl_OPENSSL_init_ssl=no
106878fi
106879rm -f core conftest.err conftest.$ac_objext \
106880    conftest$ac_exeext conftest.$ac_ext
106881LIBS=$ac_check_lib_save_LIBS
106882fi
106883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_OPENSSL_init_ssl" >&5
106884$as_echo "$ac_cv_lib_ssl_OPENSSL_init_ssl" >&6; }
106885if test "x$ac_cv_lib_ssl_OPENSSL_init_ssl" = xyes; then :
106886  with_libssl="yes"
106887else
106888  with_libssl="no (Symbol 'SSL_library_init' not found)"
106889fi
106890
106891
106892	CPPFLAGS="$SAVE_CPPFLAGS"
106893	LDFLAGS="$SAVE_LDFLAGS"
106894fi
106895if test "x$with_libssl" = "xyes"; then
106896	BUILD_WITH_LIBSSL_CFLAGS="$with_libssl_cflags"
106897	BUILD_WITH_LIBSSL_LDFLAGS="$with_libssl_ldflags"
106898	BUILD_WITH_LIBSSL_LIBS="-lssl -lcrypto"
106899
106900
106901
106902
106903$as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
106904
106905fi
106906 if test "x$with_libssl" = "xyes"; then
106907  BUILD_WITH_LIBSSL_TRUE=
106908  BUILD_WITH_LIBSSL_FALSE='#'
106909else
106910  BUILD_WITH_LIBSSL_TRUE='#'
106911  BUILD_WITH_LIBSSL_FALSE=
106912fi
106913
106914# }}}
106915
106916# --with-libstatgrab {{{
106917
106918# Check whether --with-libstatgrab was given.
106919if test "${with_libstatgrab+set}" = set; then :
106920  withval=$with_libstatgrab;
106921    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
106922      with_libstatgrab_cflags="-I$withval/include"
106923      with_libstatgrab_ldflags="-L$withval/lib -lstatgrab"
106924      with_libstatgrab="yes"
106925      with_libstatgrab_pkg_config="no"
106926    else
106927      with_libstatgrab="$withval"
106928      with_libstatgrab_pkg_config="yes"
106929    fi
106930
106931else
106932
106933    with_libstatgrab="yes"
106934    with_libstatgrab_pkg_config="yes"
106935
106936fi
106937
106938
106939if test "x$with_libstatgrab" = "xyes" && test "x$with_libstatgrab_pkg_config" = "xyes"; then
106940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for libstatgrab" >&5
106941$as_echo_n "checking pkg-config for libstatgrab... " >&6; }
106942  temp_result="found"
106943  $PKG_CONFIG --exists libstatgrab 2>/dev/null
106944  if test "$?" != "0"; then
106945    with_libstatgrab_pkg_config="no"
106946    with_libstatgrab="no (pkg-config doesn't know libstatgrab)"
106947    temp_result="not found"
106948  fi
106949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $temp_result" >&5
106950$as_echo "$temp_result" >&6; }
106951fi
106952
106953if test "x$with_libstatgrab" = "xyes" && test "x$with_libstatgrab_pkg_config" = "xyes" && test "x$with_libstatgrab_cflags" = "x"; then
106954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstatgrab CFLAGS" >&5
106955$as_echo_n "checking for libstatgrab CFLAGS... " >&6; }
106956  temp_result="`$PKG_CONFIG --cflags libstatgrab`"
106957  if test "$?" = "0"; then
106958    with_libstatgrab_cflags="$temp_result"
106959  else
106960    with_libstatgrab="no ($PKG_CONFIG --cflags libstatgrab failed)"
106961    temp_result="$PKG_CONFIG --cflags libstatgrab failed"
106962  fi
106963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $temp_result" >&5
106964$as_echo "$temp_result" >&6; }
106965fi
106966
106967if test "x$with_libstatgrab" = "xyes" && test "x$with_libstatgrab_pkg_config" = "xyes" && test "x$with_libstatgrab_ldflags" = "x"; then
106968  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstatgrab LDFLAGS" >&5
106969$as_echo_n "checking for libstatgrab LDFLAGS... " >&6; }
106970  temp_result="`$PKG_CONFIG --libs libstatgrab`"
106971  if test "$?" = "0"
106972  then
106973    with_libstatgrab_ldflags="$temp_result"
106974  else
106975    with_libstatgrab="no ($PKG_CONFIG --libs libstatgrab failed)"
106976    temp_result="$PKG_CONFIG --libs libstatgrab failed"
106977  fi
106978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $temp_result" >&5
106979$as_echo "$temp_result" >&6; }
106980fi
106981
106982if test "x$with_libstatgrab" = "xyes"; then
106983  SAVE_CPPFLAGS="$CPPFLAGS"
106984  CPPFLAGS="$CPPFLAGS $with_libstatgrab_cflags"
106985
106986  for ac_header in statgrab.h
106987do :
106988  ac_fn_c_check_header_mongrel "$LINENO" "statgrab.h" "ac_cv_header_statgrab_h" "$ac_includes_default"
106989if test "x$ac_cv_header_statgrab_h" = xyes; then :
106990  cat >>confdefs.h <<_ACEOF
106991#define HAVE_STATGRAB_H 1
106992_ACEOF
106993 with_libstatgrab="yes"
106994else
106995  with_libstatgrab="no (statgrab.h not found)"
106996
106997fi
106998
106999done
107000
107001
107002  CPPFLAGS="$SAVE_CPPFLAGS"
107003fi
107004
107005if test "x$with_libstatgrab" = "xyes"; then
107006  SAVE_LDFLAGS="$LDFLAGS"
107007  LDFLAGS="$LDFLAGS $with_libstatgrab_ldflags"
107008
107009  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sg_init in -lstatgrab" >&5
107010$as_echo_n "checking for sg_init in -lstatgrab... " >&6; }
107011if ${ac_cv_lib_statgrab_sg_init+:} false; then :
107012  $as_echo_n "(cached) " >&6
107013else
107014  ac_check_lib_save_LIBS=$LIBS
107015LIBS="-lstatgrab  $LIBS"
107016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107017/* end confdefs.h.  */
107018
107019/* Override any GCC internal prototype to avoid an error.
107020   Use char because int might match the return type of a GCC
107021   builtin and then its argument prototype would still apply.  */
107022#ifdef __cplusplus
107023extern "C"
107024#endif
107025char sg_init ();
107026int
107027main ()
107028{
107029return sg_init ();
107030  ;
107031  return 0;
107032}
107033_ACEOF
107034if ac_fn_c_try_link "$LINENO"; then :
107035  ac_cv_lib_statgrab_sg_init=yes
107036else
107037  ac_cv_lib_statgrab_sg_init=no
107038fi
107039rm -f core conftest.err conftest.$ac_objext \
107040    conftest$ac_exeext conftest.$ac_ext
107041LIBS=$ac_check_lib_save_LIBS
107042fi
107043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_statgrab_sg_init" >&5
107044$as_echo "$ac_cv_lib_statgrab_sg_init" >&6; }
107045if test "x$ac_cv_lib_statgrab_sg_init" = xyes; then :
107046  with_libstatgrab="yes"
107047else
107048  with_libstatgrab="no (symbol sg_init not found)"
107049
107050fi
107051
107052
107053  LDFLAGS="$SAVE_LDFLAGS"
107054fi
107055
107056if test "x$with_libstatgrab" = "xyes"; then
107057  SAVE_CFLAGS="$CFLAGS"
107058  SAVE_LDFLAGS="$LDFLAGS"
107059  SAVE_LIBS="$LIBS"
107060
107061  CFLAGS="$CFLAGS $with_libstatgrab_cflags"
107062  LDFLAGS="$LDFLAGS $with_libstatgrab_ldflags"
107063  LIBS="-lstatgrab $LIBS"
107064
107065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libstatgrab >= 0.90" >&5
107066$as_echo_n "checking if libstatgrab >= 0.90... " >&6; }
107067if ${c_cv_have_libstatgrab_0_90+:} false; then :
107068  $as_echo_n "(cached) " >&6
107069else
107070
107071      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107072/* end confdefs.h.  */
107073
107074
107075              #include <stdio.h>
107076              #include <statgrab.h>
107077
107078int
107079main ()
107080{
107081
107082              if (sg_init()) return 0;
107083
107084
107085  ;
107086  return 0;
107087}
107088
107089_ACEOF
107090if ac_fn_c_try_link "$LINENO"; then :
107091  c_cv_have_libstatgrab_0_90="no"
107092else
107093  c_cv_have_libstatgrab_0_90="yes"
107094
107095fi
107096rm -f core conftest.err conftest.$ac_objext \
107097    conftest$ac_exeext conftest.$ac_ext
107098
107099
107100fi
107101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_libstatgrab_0_90" >&5
107102$as_echo "$c_cv_have_libstatgrab_0_90" >&6; }
107103
107104  CFLAGS="$SAVE_CFLAGS"
107105  LDFLAGS="$SAVE_LDFLAGS"
107106  LIBS="$SAVE_LIBS"
107107fi
107108
107109 if test "x$with_libstatgrab" = "xyes"; then
107110  BUILD_WITH_LIBSTATGRAB_TRUE=
107111  BUILD_WITH_LIBSTATGRAB_FALSE='#'
107112else
107113  BUILD_WITH_LIBSTATGRAB_TRUE='#'
107114  BUILD_WITH_LIBSTATGRAB_FALSE=
107115fi
107116
107117
107118if test "x$with_libstatgrab" = "xyes"; then
107119
107120$as_echo "#define HAVE_LIBSTATGRAB 1" >>confdefs.h
107121
107122
107123  if test "x$c_cv_have_libstatgrab_0_90" = "xyes"; then
107124
107125$as_echo "#define HAVE_LIBSTATGRAB_0_90 1" >>confdefs.h
107126
107127  fi
107128
107129  BUILD_WITH_LIBSTATGRAB_CFLAGS="$with_libstatgrab_cflags"
107130  BUILD_WITH_LIBSTATGRAB_LDFLAGS="$with_libstatgrab_ldflags"
107131
107132fi
107133
107134
107135
107136# }}}
107137
107138# --with-libtokyotyrant {{{
107139
107140# Check whether --with-libtokyotyrant was given.
107141if test "${with_libtokyotyrant+set}" = set; then :
107142  withval=$with_libtokyotyrant;
107143    if test "x$withval" = "xno" || test "x$withval" = "xyes"; then
107144      with_libtokyotyrant="$withval"
107145    else
107146      with_libtokyotyrant_cppflags="-I$withval/include"
107147      with_libtokyotyrant_ldflags="-L$withval/lib"
107148      with_libtokyotyrant_libs="-ltokyotyrant"
107149      with_libtokyotyrant="yes"
107150    fi
107151
107152else
107153  with_libtokyotyrant="yes"
107154
107155fi
107156
107157
107158if test "x$with_libtokyotyrant" = "xyes"; then
107159  if $PKG_CONFIG --exists tokyotyrant; then
107160    with_libtokyotyrant_cppflags="$with_libtokyotyrant_cppflags `$PKG_CONFIG --cflags tokyotyrant`"
107161    with_libtokyotyrant_ldflags="$with_libtokyotyrant_ldflags `$PKG_CONFIG --libs-only-L tokyotyrant`"
107162    with_libtokyotyrant_libs="$with_libtokyotyrant_libs `$PKG_CONFIG --libs-only-l tokyotyrant`"
107163  fi
107164fi
107165
107166if test "x$with_libtokyotyrant" = "xyes"; then
107167  SAVE_CPPFLAGS="$CPPFLAGS"
107168  CPPFLAGS="$CPPFLAGS $with_libtokyotyrant_cppflags"
107169
107170  for ac_header in tcrdb.h
107171do :
107172  ac_fn_c_check_header_mongrel "$LINENO" "tcrdb.h" "ac_cv_header_tcrdb_h" "$ac_includes_default"
107173if test "x$ac_cv_header_tcrdb_h" = xyes; then :
107174  cat >>confdefs.h <<_ACEOF
107175#define HAVE_TCRDB_H 1
107176_ACEOF
107177 with_libtokyotyrant="yes"
107178else
107179  with_libtokyotyrant="no (tcrdb.h not found)"
107180
107181fi
107182
107183done
107184
107185
107186  CPPFLAGS="$SAVE_CPPFLAGS"
107187fi
107188
107189if test "x$with_libtokyotyrant" = "xyes"; then
107190  SAVE_LDFLAGS="$LDFLAGS"
107191  LDFLAGS="$LDFLAGS $with_libtokyotyrant_ldflags"
107192
107193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcrdbrnum in -ltokyotyrant" >&5
107194$as_echo_n "checking for tcrdbrnum in -ltokyotyrant... " >&6; }
107195if ${ac_cv_lib_tokyotyrant_tcrdbrnum+:} false; then :
107196  $as_echo_n "(cached) " >&6
107197else
107198  ac_check_lib_save_LIBS=$LIBS
107199LIBS="-ltokyotyrant $with_libtokyotyrant_libs
107200   $LIBS"
107201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107202/* end confdefs.h.  */
107203
107204/* Override any GCC internal prototype to avoid an error.
107205   Use char because int might match the return type of a GCC
107206   builtin and then its argument prototype would still apply.  */
107207#ifdef __cplusplus
107208extern "C"
107209#endif
107210char tcrdbrnum ();
107211int
107212main ()
107213{
107214return tcrdbrnum ();
107215  ;
107216  return 0;
107217}
107218_ACEOF
107219if ac_fn_c_try_link "$LINENO"; then :
107220  ac_cv_lib_tokyotyrant_tcrdbrnum=yes
107221else
107222  ac_cv_lib_tokyotyrant_tcrdbrnum=no
107223fi
107224rm -f core conftest.err conftest.$ac_objext \
107225    conftest$ac_exeext conftest.$ac_ext
107226LIBS=$ac_check_lib_save_LIBS
107227fi
107228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tokyotyrant_tcrdbrnum" >&5
107229$as_echo "$ac_cv_lib_tokyotyrant_tcrdbrnum" >&6; }
107230if test "x$ac_cv_lib_tokyotyrant_tcrdbrnum" = xyes; then :
107231  with_libtokyotyrant="yes"
107232else
107233  with_libtokyotyrant="no (symbol tcrdbrnum not found)"
107234fi
107235
107236
107237  LDFLAGS="$SAVE_LDFLAGS"
107238fi
107239
107240if test "x$with_libtokyotyrant" = "xyes"; then
107241  BUILD_WITH_LIBTOKYOTYRANT_CPPFLAGS="$with_libtokyotyrant_cppflags"
107242  BUILD_WITH_LIBTOKYOTYRANT_LDFLAGS="$with_libtokyotyrant_ldflags"
107243  BUILD_WITH_LIBTOKYOTYRANT_LIBS="$with_libtokyotyrant_libs"
107244fi
107245
107246
107247
107248# }}}
107249
107250# --with-libudev {{{
107251
107252# Check whether --with-libudev was given.
107253if test "${with_libudev+set}" = set; then :
107254  withval=$with_libudev;
107255    if test "x$withval" = "xno" || test "x$withval" = "xyes"; then
107256      with_libudev="$withval"
107257    else
107258      with_libudev_cppflags="-I$withval/include"
107259      with_libudev_ldflags="-L$withval/lib"
107260      with_libudev="yes"
107261    fi
107262
107263else
107264
107265    if test "x$ac_system" = "xLinux"; then
107266      with_libudev="yes"
107267    else
107268      with_libudev="no (Linux only library)"
107269    fi
107270
107271
107272fi
107273
107274
107275if test "x$with_libudev" = "xyes"; then
107276  SAVE_CPPFLAGS="$CPPFLAGS"
107277  CPPFLAGS="$CPPFLAGS $with_libudev_cppflags"
107278
107279  for ac_header in libudev.h
107280do :
107281  ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
107282if test "x$ac_cv_header_libudev_h" = xyes; then :
107283  cat >>confdefs.h <<_ACEOF
107284#define HAVE_LIBUDEV_H 1
107285_ACEOF
107286 with_libudev="yes"
107287else
107288  with_libudev="no (libudev.h not found)"
107289
107290fi
107291
107292done
107293
107294
107295  CPPFLAGS="$SAVE_CPPFLAGS"
107296fi
107297
107298if test "x$with_libudev" = "xyes"; then
107299  SAVE_LDFLAGS="$LDFLAGS"
107300  LDFLAGS="$LDFLAGS $with_libudev_ldflags"
107301
107302  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev_new in -ludev" >&5
107303$as_echo_n "checking for udev_new in -ludev... " >&6; }
107304if ${ac_cv_lib_udev_udev_new+:} false; then :
107305  $as_echo_n "(cached) " >&6
107306else
107307  ac_check_lib_save_LIBS=$LIBS
107308LIBS="-ludev  $LIBS"
107309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107310/* end confdefs.h.  */
107311
107312/* Override any GCC internal prototype to avoid an error.
107313   Use char because int might match the return type of a GCC
107314   builtin and then its argument prototype would still apply.  */
107315#ifdef __cplusplus
107316extern "C"
107317#endif
107318char udev_new ();
107319int
107320main ()
107321{
107322return udev_new ();
107323  ;
107324  return 0;
107325}
107326_ACEOF
107327if ac_fn_c_try_link "$LINENO"; then :
107328  ac_cv_lib_udev_udev_new=yes
107329else
107330  ac_cv_lib_udev_udev_new=no
107331fi
107332rm -f core conftest.err conftest.$ac_objext \
107333    conftest$ac_exeext conftest.$ac_ext
107334LIBS=$ac_check_lib_save_LIBS
107335fi
107336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_new" >&5
107337$as_echo "$ac_cv_lib_udev_udev_new" >&6; }
107338if test "x$ac_cv_lib_udev_udev_new" = xyes; then :
107339  with_libudev="yes"
107340else
107341  with_libudev="no (libudev not found)"
107342
107343fi
107344
107345
107346  LDFLAGS="$SAVE_LDFLAGS"
107347fi
107348
107349if test "x$with_libudev" = "xyes"; then
107350  BUILD_WITH_LIBUDEV_CPPFLAGS="$with_libudev_cppflags"
107351  BUILD_WITH_LIBUDEV_LDFLAGS="$with_libudev_ldflags"
107352  BUILD_WITH_LIBUDEV_LIBS="-ludev"
107353fi
107354
107355
107356
107357
107358
107359 if test "x$with_libudev" = "xyes"; then
107360  BUILD_WITH_LIBUDEV_TRUE=
107361  BUILD_WITH_LIBUDEV_FALSE='#'
107362else
107363  BUILD_WITH_LIBUDEV_TRUE='#'
107364  BUILD_WITH_LIBUDEV_FALSE=
107365fi
107366
107367# }}}
107368
107369# --with-libupsclient {{{
107370with_libupsclient_config=""
107371
107372# Check whether --with-libupsclient was given.
107373if test "${with_libupsclient+set}" = set; then :
107374  withval=$with_libupsclient;
107375    if test "x$withval" = "xno"; then
107376      with_libupsclient="no"
107377    else if test "x$withval" = "xyes"; then
107378      with_libupsclient="use_pkgconfig"
107379    else
107380      if test -f "$withval" && test -x "$withval"; then
107381        with_libupsclient_config="$withval"
107382        with_libupsclient="use_libupsclient_config"
107383      else if test -x "$withval/bin/libupsclient-config"; then
107384        with_libupsclient_config="$withval/bin/libupsclient-config"
107385        with_libupsclient="use_libupsclient_config"
107386      else
107387        { $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for libupsclient: Manually configured" >&5
107388$as_echo "$as_me: Not checking for libupsclient: Manually configured" >&6;}
107389        with_libupsclient_cflags="-I$withval/include"
107390        with_libupsclient_libs="-L$withval/lib -lupsclient"
107391        with_libupsclient="yes"
107392      fi; fi
107393    fi; fi
107394
107395else
107396  with_libupsclient="use_pkgconfig"
107397
107398fi
107399
107400
107401# configure using libupsclient-config
107402if test "x$with_libupsclient" = "xuse_libupsclient_config"; then
107403  with_libupsclient_cflags="`$with_libupsclient_config --cflags`"
107404  if test $? -ne 0; then
107405    with_libupsclient="no ($with_libupsclient_config failed)"
107406  fi
107407  with_libupsclient_libs="`$with_libupsclient_config --libs`"
107408  if test $? -ne 0; then
107409    with_libupsclient="no ($with_libupsclient_config failed)"
107410  fi
107411fi
107412
107413if test "x$with_libupsclient" = "xuse_libupsclient_config"; then
107414  with_libupsclient="yes"
107415fi
107416
107417# configure using pkg-config
107418if test "x$with_libupsclient" = "xuse_pkgconfig"; then
107419  $PKG_CONFIG --exists 'libupsclient' 2>/dev/null
107420  if test $? -ne 0; then
107421    with_libupsclient="no (pkg-config doesn't know libupsclient)"
107422  fi
107423fi
107424
107425if test "x$with_libupsclient" = "xuse_pkgconfig"; then
107426  with_libupsclient_cflags="`$PKG_CONFIG --cflags 'libupsclient'`"
107427  if test $? -ne 0; then
107428    with_libupsclient="no ($PKG_CONFIG failed)"
107429  fi
107430
107431  with_libupsclient_libs="`$PKG_CONFIG --libs 'libupsclient'`"
107432  if test $? -ne 0; then
107433    with_libupsclient="no ($PKG_CONFIG failed)"
107434  fi
107435fi
107436
107437if test "x$with_libupsclient" = "xuse_pkgconfig"; then
107438  with_libupsclient="yes"
107439fi
107440
107441if test "x$with_libupsclient" = "xyes"; then
107442  SAVE_CPPFLAGS="$CPPFLAGS"
107443  CPPFLAGS="$CPPFLAGS $with_libupsclient_cflags"
107444
107445  for ac_header in upsclient.h
107446do :
107447  ac_fn_c_check_header_mongrel "$LINENO" "upsclient.h" "ac_cv_header_upsclient_h" "$ac_includes_default"
107448if test "x$ac_cv_header_upsclient_h" = xyes; then :
107449  cat >>confdefs.h <<_ACEOF
107450#define HAVE_UPSCLIENT_H 1
107451_ACEOF
107452 with_libupsclient="yes"
107453else
107454  with_libupsclient="no (upsclient.h not found)"
107455
107456fi
107457
107458done
107459
107460
107461  CPPFLAGS="$SAVE_CPPFLAGS"
107462fi
107463
107464if test "x$with_libupsclient" = "xyes"; then
107465  SAVE_LDFLAGS="$LDFLAGS"
107466  LDFLAGS="$LDFLAGS $with_libupsclient_libs"
107467
107468  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for upscli_connect in -lupsclient" >&5
107469$as_echo_n "checking for upscli_connect in -lupsclient... " >&6; }
107470if ${ac_cv_lib_upsclient_upscli_connect+:} false; then :
107471  $as_echo_n "(cached) " >&6
107472else
107473  ac_check_lib_save_LIBS=$LIBS
107474LIBS="-lupsclient  $LIBS"
107475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107476/* end confdefs.h.  */
107477
107478/* Override any GCC internal prototype to avoid an error.
107479   Use char because int might match the return type of a GCC
107480   builtin and then its argument prototype would still apply.  */
107481#ifdef __cplusplus
107482extern "C"
107483#endif
107484char upscli_connect ();
107485int
107486main ()
107487{
107488return upscli_connect ();
107489  ;
107490  return 0;
107491}
107492_ACEOF
107493if ac_fn_c_try_link "$LINENO"; then :
107494  ac_cv_lib_upsclient_upscli_connect=yes
107495else
107496  ac_cv_lib_upsclient_upscli_connect=no
107497fi
107498rm -f core conftest.err conftest.$ac_objext \
107499    conftest$ac_exeext conftest.$ac_ext
107500LIBS=$ac_check_lib_save_LIBS
107501fi
107502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_upsclient_upscli_connect" >&5
107503$as_echo "$ac_cv_lib_upsclient_upscli_connect" >&6; }
107504if test "x$ac_cv_lib_upsclient_upscli_connect" = xyes; then :
107505  with_libupsclient="yes"
107506else
107507  with_libupsclient="no (symbol upscli_connect not found)"
107508
107509fi
107510
107511
107512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for upscli_init in -lupsclient" >&5
107513$as_echo_n "checking for upscli_init in -lupsclient... " >&6; }
107514if ${ac_cv_lib_upsclient_upscli_init+:} false; then :
107515  $as_echo_n "(cached) " >&6
107516else
107517  ac_check_lib_save_LIBS=$LIBS
107518LIBS="-lupsclient  $LIBS"
107519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107520/* end confdefs.h.  */
107521
107522/* Override any GCC internal prototype to avoid an error.
107523   Use char because int might match the return type of a GCC
107524   builtin and then its argument prototype would still apply.  */
107525#ifdef __cplusplus
107526extern "C"
107527#endif
107528char upscli_init ();
107529int
107530main ()
107531{
107532return upscli_init ();
107533  ;
107534  return 0;
107535}
107536_ACEOF
107537if ac_fn_c_try_link "$LINENO"; then :
107538  ac_cv_lib_upsclient_upscli_init=yes
107539else
107540  ac_cv_lib_upsclient_upscli_init=no
107541fi
107542rm -f core conftest.err conftest.$ac_objext \
107543    conftest$ac_exeext conftest.$ac_ext
107544LIBS=$ac_check_lib_save_LIBS
107545fi
107546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_upsclient_upscli_init" >&5
107547$as_echo "$ac_cv_lib_upsclient_upscli_init" >&6; }
107548if test "x$ac_cv_lib_upsclient_upscli_init" = xyes; then :
107549
107550$as_echo "#define HAVE_UPSCLI_INIT 1" >>confdefs.h
107551
107552
107553fi
107554
107555
107556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for upscli_tryconnect in -lupsclient" >&5
107557$as_echo_n "checking for upscli_tryconnect in -lupsclient... " >&6; }
107558if ${ac_cv_lib_upsclient_upscli_tryconnect+:} false; then :
107559  $as_echo_n "(cached) " >&6
107560else
107561  ac_check_lib_save_LIBS=$LIBS
107562LIBS="-lupsclient  $LIBS"
107563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107564/* end confdefs.h.  */
107565
107566/* Override any GCC internal prototype to avoid an error.
107567   Use char because int might match the return type of a GCC
107568   builtin and then its argument prototype would still apply.  */
107569#ifdef __cplusplus
107570extern "C"
107571#endif
107572char upscli_tryconnect ();
107573int
107574main ()
107575{
107576return upscli_tryconnect ();
107577  ;
107578  return 0;
107579}
107580_ACEOF
107581if ac_fn_c_try_link "$LINENO"; then :
107582  ac_cv_lib_upsclient_upscli_tryconnect=yes
107583else
107584  ac_cv_lib_upsclient_upscli_tryconnect=no
107585fi
107586rm -f core conftest.err conftest.$ac_objext \
107587    conftest$ac_exeext conftest.$ac_ext
107588LIBS=$ac_check_lib_save_LIBS
107589fi
107590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_upsclient_upscli_tryconnect" >&5
107591$as_echo "$ac_cv_lib_upsclient_upscli_tryconnect" >&6; }
107592if test "x$ac_cv_lib_upsclient_upscli_tryconnect" = xyes; then :
107593
107594$as_echo "#define HAVE_UPSCLI_TRYCONNECT 1" >>confdefs.h
107595
107596
107597fi
107598
107599
107600  LDFLAGS="$SAVE_LDFLAGS"
107601fi
107602
107603if test "x$with_libupsclient" = "xyes"; then
107604  SAVE_CPPFLAGS="$CPPFLAGS"
107605  CPPFLAGS="$CPPFLAGS $with_libupsclient_cflags"
107606
107607  ac_fn_c_check_type "$LINENO" "UPSCONN_t" "ac_cv_type_UPSCONN_t" "
107608      #include <stdlib.h>
107609      #include <stdio.h>
107610      #include <upsclient.h>
107611
107612
107613"
107614if test "x$ac_cv_type_UPSCONN_t" = xyes; then :
107615
107616cat >>confdefs.h <<_ACEOF
107617#define HAVE_UPSCONN_T 1
107618_ACEOF
107619
107620
107621fi
107622ac_fn_c_check_type "$LINENO" "UPSCONN" "ac_cv_type_UPSCONN" "
107623      #include <stdlib.h>
107624      #include <stdio.h>
107625      #include <upsclient.h>
107626
107627
107628"
107629if test "x$ac_cv_type_UPSCONN" = xyes; then :
107630
107631cat >>confdefs.h <<_ACEOF
107632#define HAVE_UPSCONN 1
107633_ACEOF
107634
107635
107636fi
107637
107638
107639  CPPFLAGS="$SAVE_CPPFLAGS"
107640fi
107641
107642if test "x$with_libupsclient" = "xyes"; then
107643  BUILD_WITH_LIBUPSCLIENT_CFLAGS="$with_libupsclient_cflags"
107644  BUILD_WITH_LIBUPSCLIENT_LIBS="$with_libupsclient_libs"
107645fi
107646
107647
107648
107649# }}}
107650
107651# --with-libxenctrl {{{
107652
107653# Check whether --with-libxenctrl was given.
107654if test "${with_libxenctrl+set}" = set; then :
107655  withval=$with_libxenctrl;
107656    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
107657      with_libxenctrl_cppflags="-I$withval/include"
107658      with_libxenctrl_ldflags="-L$withval/lib"
107659      with_libxenctrl="yes"
107660    else
107661      with_libxenctrl="$withval"
107662    fi
107663
107664else
107665  with_libxenctrl="yes"
107666
107667fi
107668
107669
107670if test "x$with_libxenctrl" = "xyes"; then
107671  SAVE_CPPFLAGS="$CPPFLAGS"
107672  CPPFLAGS="$CPPFLAGS $with_libxenctrl_cppflags"
107673
107674  for ac_header in xenctrl.h
107675do :
107676  ac_fn_c_check_header_mongrel "$LINENO" "xenctrl.h" "ac_cv_header_xenctrl_h" "$ac_includes_default"
107677if test "x$ac_cv_header_xenctrl_h" = xyes; then :
107678  cat >>confdefs.h <<_ACEOF
107679#define HAVE_XENCTRL_H 1
107680_ACEOF
107681 with_libxenctrl="yes"
107682else
107683  with_libxenctrl="no (xenctrl.h not found)"
107684
107685fi
107686
107687done
107688
107689
107690  CPPFLAGS="$SAVE_CPPFLAGS"
107691fi
107692
107693if test "x$with_libxenctrl" = "xyes"; then
107694  SAVE_LDFLAGS="$LDFLAGS"
107695  LDFLAGS="$LDFLAGS $with_libxenctrl_ldflags"
107696
107697  #Xen versions older than 3.4 has no xc_getcpuinfo()
107698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xc_getcpuinfo in -lxenctrl" >&5
107699$as_echo_n "checking for xc_getcpuinfo in -lxenctrl... " >&6; }
107700if ${ac_cv_lib_xenctrl_xc_getcpuinfo+:} false; then :
107701  $as_echo_n "(cached) " >&6
107702else
107703  ac_check_lib_save_LIBS=$LIBS
107704LIBS="-lxenctrl  $LIBS"
107705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107706/* end confdefs.h.  */
107707
107708/* Override any GCC internal prototype to avoid an error.
107709   Use char because int might match the return type of a GCC
107710   builtin and then its argument prototype would still apply.  */
107711#ifdef __cplusplus
107712extern "C"
107713#endif
107714char xc_getcpuinfo ();
107715int
107716main ()
107717{
107718return xc_getcpuinfo ();
107719  ;
107720  return 0;
107721}
107722_ACEOF
107723if ac_fn_c_try_link "$LINENO"; then :
107724  ac_cv_lib_xenctrl_xc_getcpuinfo=yes
107725else
107726  ac_cv_lib_xenctrl_xc_getcpuinfo=no
107727fi
107728rm -f core conftest.err conftest.$ac_objext \
107729    conftest$ac_exeext conftest.$ac_ext
107730LIBS=$ac_check_lib_save_LIBS
107731fi
107732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xenctrl_xc_getcpuinfo" >&5
107733$as_echo "$ac_cv_lib_xenctrl_xc_getcpuinfo" >&6; }
107734if test "x$ac_cv_lib_xenctrl_xc_getcpuinfo" = xyes; then :
107735  with_libxenctrl="yes"
107736else
107737  with_libxenctrl="no (symbol 'xc_getcpuinfo' not found)"
107738
107739fi
107740
107741
107742  LDFLAGS="$SAVE_LDFLAGS"
107743fi
107744
107745LIBXENCTL_CPPFLAGS="$with_libxenctl_cppflags"
107746LIBXENCTL_LDFLAGS="$with_libxenctl_ldflags"
107747
107748
107749# }}}
107750
107751# --with-libxmms {{{
107752with_xmms_config="xmms-config"
107753
107754# Check whether --with-libxmms was given.
107755if test "${with_libxmms+set}" = set; then :
107756  withval=$with_libxmms;
107757    if test "x$withval" = "xno" || test "x$withval" = "xyes"; then
107758      with_libxmms="$withval"
107759    else
107760      if test -f "$withval" && test -x "$withval"; then
107761        with_xmms_config="$withval"
107762      else if test -x "$withval/bin/xmms-config"; then
107763        with_xmms_config="$withval/bin/xmms-config"
107764      fi; fi
107765      with_libxmms="yes"
107766    fi
107767
107768else
107769  with_libxmms="yes"
107770
107771fi
107772
107773
107774if test "x$with_libxmms" = "xyes"; then
107775  with_xmms_cflags=`$with_xmms_config --cflags 2>/dev/null`
107776  if test $? -ne 0; then
107777    with_libxmms="no"
107778  fi
107779fi
107780
107781if test "x$with_libxmms" = "xyes"; then
107782  with_xmms_libs=`$with_xmms_config --libs 2>/dev/null`
107783  if test $? -ne 0; then
107784    with_libxmms="no"
107785  fi
107786fi
107787
107788if test "x$with_libxmms" = "xyes"; then
107789  SAVE_CPPFLAGS="$CPPFLAGS"
107790  CPPFLAGS="$with_xmms_cflags"
107791
107792  ac_fn_c_check_header_mongrel "$LINENO" "xmmsctrl.h" "ac_cv_header_xmmsctrl_h" "$ac_includes_default"
107793if test "x$ac_cv_header_xmmsctrl_h" = xyes; then :
107794  with_libxmms="yes"
107795else
107796  with_libxmms="no"
107797fi
107798
107799
107800
107801  CPPFLAGS="$SAVE_CPPFLAGS"
107802fi
107803
107804if test "x$with_libxmms" = "xyes"; then
107805  SAVE_LIBS="$LIBS"
107806  LIBS="$with_xmms_libs"
107807
107808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmms_remote_get_info in -lxmms" >&5
107809$as_echo_n "checking for xmms_remote_get_info in -lxmms... " >&6; }
107810if ${ac_cv_lib_xmms_xmms_remote_get_info+:} false; then :
107811  $as_echo_n "(cached) " >&6
107812else
107813  ac_check_lib_save_LIBS=$LIBS
107814LIBS="-lxmms $with_xmms_libs
107815
107816   $LIBS"
107817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107818/* end confdefs.h.  */
107819
107820/* Override any GCC internal prototype to avoid an error.
107821   Use char because int might match the return type of a GCC
107822   builtin and then its argument prototype would still apply.  */
107823#ifdef __cplusplus
107824extern "C"
107825#endif
107826char xmms_remote_get_info ();
107827int
107828main ()
107829{
107830return xmms_remote_get_info ();
107831  ;
107832  return 0;
107833}
107834_ACEOF
107835if ac_fn_c_try_link "$LINENO"; then :
107836  ac_cv_lib_xmms_xmms_remote_get_info=yes
107837else
107838  ac_cv_lib_xmms_xmms_remote_get_info=no
107839fi
107840rm -f core conftest.err conftest.$ac_objext \
107841    conftest$ac_exeext conftest.$ac_ext
107842LIBS=$ac_check_lib_save_LIBS
107843fi
107844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xmms_xmms_remote_get_info" >&5
107845$as_echo "$ac_cv_lib_xmms_xmms_remote_get_info" >&6; }
107846if test "x$ac_cv_lib_xmms_xmms_remote_get_info" = xyes; then :
107847  with_libxmss="yes"
107848else
107849  with_libxmms="no"
107850fi
107851
107852
107853  LIBS="$SAVE_LIBS"
107854fi
107855
107856BUILD_WITH_LIBXMMS_CFLAGS="$with_xmms_cflags"
107857BUILD_WITH_LIBXMMS_LIBS="$with_xmms_libs"
107858
107859
107860
107861# }}}
107862
107863# --with-libyajl {{{
107864
107865# Check whether --with-libyajl was given.
107866if test "${with_libyajl+set}" = set; then :
107867  withval=$with_libyajl;
107868    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
107869      with_libyajl_cppflags="-I$withval/include"
107870      with_libyajl_ldflags="-L$withval/lib"
107871      with_libyajl="yes"
107872    else
107873      with_libyajl="$withval"
107874    fi
107875
107876else
107877  with_libyajl="yes"
107878
107879fi
107880
107881
107882if test "x$with_libyajl" = "xyes"; then
107883  SAVE_CPPFLAGS="$CPPFLAGS"
107884  CPPFLAGS="$CPPFLAGS $with_libyajl_cppflags"
107885
107886  for ac_header in yajl/yajl_parse.h
107887do :
107888  ac_fn_c_check_header_mongrel "$LINENO" "yajl/yajl_parse.h" "ac_cv_header_yajl_yajl_parse_h" "$ac_includes_default"
107889if test "x$ac_cv_header_yajl_yajl_parse_h" = xyes; then :
107890  cat >>confdefs.h <<_ACEOF
107891#define HAVE_YAJL_YAJL_PARSE_H 1
107892_ACEOF
107893 with_libyajl="yes"
107894else
107895  with_libyajl="no (yajl/yajl_parse.h not found)"
107896
107897fi
107898
107899done
107900
107901
107902  for ac_header in yajl/yajl_tree.h
107903do :
107904  ac_fn_c_check_header_mongrel "$LINENO" "yajl/yajl_tree.h" "ac_cv_header_yajl_yajl_tree_h" "$ac_includes_default"
107905if test "x$ac_cv_header_yajl_yajl_tree_h" = xyes; then :
107906  cat >>confdefs.h <<_ACEOF
107907#define HAVE_YAJL_YAJL_TREE_H 1
107908_ACEOF
107909 with_libyajl2="yes"
107910else
107911  with_libyajl2="no (yajl/yajl_tree.h not found)"
107912
107913fi
107914
107915done
107916
107917
107918  for ac_header in yajl/yajl_version.h
107919do :
107920  ac_fn_c_check_header_mongrel "$LINENO" "yajl/yajl_version.h" "ac_cv_header_yajl_yajl_version_h" "$ac_includes_default"
107921if test "x$ac_cv_header_yajl_yajl_version_h" = xyes; then :
107922  cat >>confdefs.h <<_ACEOF
107923#define HAVE_YAJL_YAJL_VERSION_H 1
107924_ACEOF
107925
107926fi
107927
107928done
107929
107930
107931  CPPFLAGS="$SAVE_CPPFLAGS"
107932fi
107933
107934if test "x$with_libyajl" = "xyes"; then
107935  SAVE_LDFLAGS="$LDFLAGS"
107936  LDFLAGS="$LDFLAGS $with_libyajl_ldflags"
107937
107938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yajl_alloc in -lyajl" >&5
107939$as_echo_n "checking for yajl_alloc in -lyajl... " >&6; }
107940if ${ac_cv_lib_yajl_yajl_alloc+:} false; then :
107941  $as_echo_n "(cached) " >&6
107942else
107943  ac_check_lib_save_LIBS=$LIBS
107944LIBS="-lyajl  $LIBS"
107945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107946/* end confdefs.h.  */
107947
107948/* Override any GCC internal prototype to avoid an error.
107949   Use char because int might match the return type of a GCC
107950   builtin and then its argument prototype would still apply.  */
107951#ifdef __cplusplus
107952extern "C"
107953#endif
107954char yajl_alloc ();
107955int
107956main ()
107957{
107958return yajl_alloc ();
107959  ;
107960  return 0;
107961}
107962_ACEOF
107963if ac_fn_c_try_link "$LINENO"; then :
107964  ac_cv_lib_yajl_yajl_alloc=yes
107965else
107966  ac_cv_lib_yajl_yajl_alloc=no
107967fi
107968rm -f core conftest.err conftest.$ac_objext \
107969    conftest$ac_exeext conftest.$ac_ext
107970LIBS=$ac_check_lib_save_LIBS
107971fi
107972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_yajl_yajl_alloc" >&5
107973$as_echo "$ac_cv_lib_yajl_yajl_alloc" >&6; }
107974if test "x$ac_cv_lib_yajl_yajl_alloc" = xyes; then :
107975  with_libyajl="yes"
107976else
107977  with_libyajl="no (Symbol 'yajl_alloc' not found)"
107978
107979fi
107980
107981
107982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yajl_tree_parse in -lyajl" >&5
107983$as_echo_n "checking for yajl_tree_parse in -lyajl... " >&6; }
107984if ${ac_cv_lib_yajl_yajl_tree_parse+:} false; then :
107985  $as_echo_n "(cached) " >&6
107986else
107987  ac_check_lib_save_LIBS=$LIBS
107988LIBS="-lyajl  $LIBS"
107989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107990/* end confdefs.h.  */
107991
107992/* Override any GCC internal prototype to avoid an error.
107993   Use char because int might match the return type of a GCC
107994   builtin and then its argument prototype would still apply.  */
107995#ifdef __cplusplus
107996extern "C"
107997#endif
107998char yajl_tree_parse ();
107999int
108000main ()
108001{
108002return yajl_tree_parse ();
108003  ;
108004  return 0;
108005}
108006_ACEOF
108007if ac_fn_c_try_link "$LINENO"; then :
108008  ac_cv_lib_yajl_yajl_tree_parse=yes
108009else
108010  ac_cv_lib_yajl_yajl_tree_parse=no
108011fi
108012rm -f core conftest.err conftest.$ac_objext \
108013    conftest$ac_exeext conftest.$ac_ext
108014LIBS=$ac_check_lib_save_LIBS
108015fi
108016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_yajl_yajl_tree_parse" >&5
108017$as_echo "$ac_cv_lib_yajl_yajl_tree_parse" >&6; }
108018if test "x$ac_cv_lib_yajl_yajl_tree_parse" = xyes; then :
108019  with_libyajl2="yes"
108020else
108021  with_libyajl2="no (Symbol 'yajl_tree_parse' not found)"
108022
108023fi
108024
108025
108026  LDFLAGS="$SAVE_LDFLAGS"
108027fi
108028
108029if test "x$with_libyajl" = "xyes"; then
108030  BUILD_WITH_LIBYAJL_CPPFLAGS="$with_libyajl_cppflags"
108031  BUILD_WITH_LIBYAJL_LDFLAGS="$with_libyajl_ldflags"
108032  BUILD_WITH_LIBYAJL_LIBS="-lyajl"
108033
108034$as_echo "#define HAVE_LIBYAJL 1" >>confdefs.h
108035
108036fi
108037
108038
108039
108040
108041
108042 if test "x$with_libyajl" = "xyes"; then
108043  BUILD_WITH_LIBYAJL_TRUE=
108044  BUILD_WITH_LIBYAJL_FALSE='#'
108045else
108046  BUILD_WITH_LIBYAJL_TRUE='#'
108047  BUILD_WITH_LIBYAJL_FALSE=
108048fi
108049
108050 if test "x$with_libyajl$with_libyajl2" = "xyesyes"; then
108051  BUILD_WITH_LIBYAJL2_TRUE=
108052  BUILD_WITH_LIBYAJL2_FALSE='#'
108053else
108054  BUILD_WITH_LIBYAJL2_TRUE='#'
108055  BUILD_WITH_LIBYAJL2_FALSE=
108056fi
108057
108058# }}}
108059
108060# --with-mic {{{
108061with_mic_cppflags="-I/opt/intel/mic/sysmgmt/sdk/include"
108062with_mic_ldflags="-L/opt/intel/mic/sysmgmt/sdk/lib/Linux"
108063with_mic_libs="-lMicAccessSDK -scif"
108064
108065# Check whether --with-mic was given.
108066if test "${with_mic+set}" = set; then :
108067  withval=$with_mic;
108068    if test "x$withval" = "xno" || test "x$withval" = "xyes"; then
108069      with_mic="$withval"
108070    else if test -d "$with_mic/lib"; then
108071      with_mic_cppflags="-I$withval/include"
108072      with_mic_ldflags="-L$withval/lib/Linux"
108073      with_mic="yes"
108074    fi; fi
108075
108076else
108077  with_mic="yes"
108078
108079fi
108080
108081
108082if test "x$with_mic" = "xyes"; then
108083  SAVE_CPPFLAGS="$CPPFLAGS"
108084  CPPFLAGS="$CPPFLAGS $with_mic_cppflags"
108085
108086  for ac_header in MicAccessApi.h
108087do :
108088  ac_fn_c_check_header_mongrel "$LINENO" "MicAccessApi.h" "ac_cv_header_MicAccessApi_h" "$ac_includes_default"
108089if test "x$ac_cv_header_MicAccessApi_h" = xyes; then :
108090  cat >>confdefs.h <<_ACEOF
108091#define HAVE_MICACCESSAPI_H 1
108092_ACEOF
108093 with_mic="yes"
108094else
108095  with_mic="no (MicAccessApi not found)"
108096
108097fi
108098
108099done
108100
108101
108102  CPPFLAGS="$SAVE_CPPFLAGS"
108103fi
108104
108105if test "x$with_mic" = "xyes"; then
108106  SAVE_LDFLAGS="$LDFLAGS"
108107  LDFLAGS="$LDFLAGS $with_mic_ldflags"
108108
108109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MicInitAPI in -lMicAccessSDK" >&5
108110$as_echo_n "checking for MicInitAPI in -lMicAccessSDK... " >&6; }
108111if ${ac_cv_lib_MicAccessSDK_MicInitAPI+:} false; then :
108112  $as_echo_n "(cached) " >&6
108113else
108114  ac_check_lib_save_LIBS=$LIBS
108115LIBS="-lMicAccessSDK $PTHREAD_LIBS -lscif
108116   $LIBS"
108117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108118/* end confdefs.h.  */
108119
108120/* Override any GCC internal prototype to avoid an error.
108121   Use char because int might match the return type of a GCC
108122   builtin and then its argument prototype would still apply.  */
108123#ifdef __cplusplus
108124extern "C"
108125#endif
108126char MicInitAPI ();
108127int
108128main ()
108129{
108130return MicInitAPI ();
108131  ;
108132  return 0;
108133}
108134_ACEOF
108135if ac_fn_c_try_link "$LINENO"; then :
108136  ac_cv_lib_MicAccessSDK_MicInitAPI=yes
108137else
108138  ac_cv_lib_MicAccessSDK_MicInitAPI=no
108139fi
108140rm -f core conftest.err conftest.$ac_objext \
108141    conftest$ac_exeext conftest.$ac_ext
108142LIBS=$ac_check_lib_save_LIBS
108143fi
108144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_MicAccessSDK_MicInitAPI" >&5
108145$as_echo "$ac_cv_lib_MicAccessSDK_MicInitAPI" >&6; }
108146if test "x$ac_cv_lib_MicAccessSDK_MicInitAPI" = xyes; then :
108147  with_mic="yes"
108148else
108149  with_mic="no (symbol MicInitAPI not found)"
108150fi
108151
108152
108153  LDFLAGS="$SAVE_LDFLAGS"
108154fi
108155
108156if test "x$with_mic" = "xyes"; then
108157  BUILD_WITH_MIC_CPPFLAGS="$with_mic_cppflags"
108158  BUILD_WITH_MIC_LDFLAGS="$with_mic_ldflags"
108159  BUILD_WITH_MIC_LIBS="$with_mic_libs"
108160fi
108161
108162
108163
108164#}}}
108165
108166# --with-libvarnish {{{
108167
108168# Check whether --with-libvarnish was given.
108169if test "${with_libvarnish+set}" = set; then :
108170  withval=$with_libvarnish;
108171    if test "x$withval" = "xno"; then
108172      with_libvarnish="no"
108173    else if test "x$withval" = "xyes"; then
108174      with_libvarnish="use_pkgconfig"
108175    else if test -d "$with_libvarnish/lib"; then
108176      with_libvarnish_cflags="-I$withval/include"
108177      with_libvarnish_libs="-L$withval/lib -lvarnishapi"
108178      with_libvarnish="yes"
108179    fi; fi; fi
108180
108181else
108182  with_libvarnish="use_pkgconfig"
108183
108184fi
108185
108186
108187# configure using pkg-config
108188if test "x$with_libvarnish" = "xuse_pkgconfig"; then
108189  $PKG_CONFIG --exists 'varnishapi' 2>/dev/null
108190  if test $? -ne 0; then
108191    with_libvarnish="no (pkg-config doesn't know varnishapi)"
108192  fi
108193fi
108194
108195if test "x$with_libvarnish" = "xuse_pkgconfig"; then
108196  with_libvarnish_cflags="`$PKG_CONFIG --cflags 'varnishapi'`"
108197  if test $? -ne 0; then
108198    with_libvarnish="no ($PKG_CONFIG failed)"
108199  fi
108200
108201  with_libvarnish_libs="`$PKG_CONFIG --libs 'varnishapi'`"
108202  if test $? -ne 0; then
108203    with_libvarnish="no ($PKG_CONFIG failed)"
108204  fi
108205fi
108206if test "x$with_libvarnish" = "xuse_pkgconfig"; then
108207  with_libvarnish="yes"
108208fi
108209
108210if test "x$with_libvarnish" = "xyes"; then
108211  SAVE_CPPFLAGS="$CPPFLAGS"
108212  CPPFLAGS="$CPPFLAGS $with_libvarnish_cflags"
108213
108214  $PKG_CONFIG --atleast-version=6 'varnishapi' 2>/dev/null
108215  if test $? -eq 0; then
108216
108217$as_echo "#define HAVE_VARNISH_V6 1" >>confdefs.h
108218
108219  else
108220    $PKG_CONFIG --atleast-version=5.2 'varnishapi' 2>/dev/null
108221    if test $? -eq 0; then
108222
108223$as_echo "#define HAVE_VARNISH_V5 1" >>confdefs.h
108224
108225    else
108226      for ac_header in vapi/vsc.h
108227do :
108228  ac_fn_c_check_header_mongrel "$LINENO" "vapi/vsc.h" "ac_cv_header_vapi_vsc_h" "$ac_includes_default"
108229if test "x$ac_cv_header_vapi_vsc_h" = xyes; then :
108230  cat >>confdefs.h <<_ACEOF
108231#define HAVE_VAPI_VSC_H 1
108232_ACEOF
108233
108234$as_echo "#define HAVE_VARNISH_V4 1" >>confdefs.h
108235
108236else
108237
108238          for ac_header in vsc.h
108239do :
108240  ac_fn_c_check_header_mongrel "$LINENO" "vsc.h" "ac_cv_header_vsc_h" "$ac_includes_default"
108241if test "x$ac_cv_header_vsc_h" = xyes; then :
108242  cat >>confdefs.h <<_ACEOF
108243#define HAVE_VSC_H 1
108244_ACEOF
108245
108246$as_echo "#define HAVE_VARNISH_V3 1" >>confdefs.h
108247
108248else
108249
108250              for ac_header in varnishapi.h
108251do :
108252  ac_fn_c_check_header_mongrel "$LINENO" "varnishapi.h" "ac_cv_header_varnishapi_h" "$ac_includes_default"
108253if test "x$ac_cv_header_varnishapi_h" = xyes; then :
108254  cat >>confdefs.h <<_ACEOF
108255#define HAVE_VARNISHAPI_H 1
108256_ACEOF
108257
108258$as_echo "#define HAVE_VARNISH_V2 1" >>confdefs.h
108259
108260else
108261  with_libvarnish="no (found none of the varnish header files)"
108262
108263fi
108264
108265done
108266
108267
108268
108269fi
108270
108271done
108272
108273
108274
108275fi
108276
108277done
108278
108279    fi
108280  fi
108281
108282  CPPFLAGS="$SAVE_CPPFLAGS"
108283fi
108284
108285if test "x$with_libvarnish" = "xyes"; then
108286  BUILD_WITH_LIBVARNISH_CFLAGS="$with_libvarnish_cflags"
108287  BUILD_WITH_LIBVARNISH_LIBS="$with_libvarnish_libs"
108288fi
108289
108290
108291
108292# }}}
108293
108294# --with-libxml2 {{{
108295
108296# Check whether --with-libxml2 was given.
108297if test "${with_libxml2+set}" = set; then :
108298  withval=$with_libxml2;
108299    if test "x$withval" = "xno"; then
108300      with_libxml2="no"
108301    else if test "x$withval" = "xyes"; then
108302      $PKG_CONFIG --exists 'libxml-2.0' 2>/dev/null
108303      if test $? -eq 0; then
108304        with_libxml2="yes"
108305        with_libxml2_cflags="`$PKG_CONFIG --cflags libxml-2.0`"
108306        with_libxml2_ldflags="`$PKG_CONFIG --libs libxml-2.0`"
108307      else
108308        with_libxml2="no (pkg-config doesn't know libxml-2.0)"
108309      fi
108310    else
108311      with_libxml2="yes"
108312      with_libxml2_cflags="-I$withval/include"
108313      with_libxml2_ldflags="-L$withval/lib"
108314    fi; fi
108315
108316else
108317
108318    with_libxml2="yes"
108319    $PKG_CONFIG --exists 'libxml-2.0' 2>/dev/null
108320    if test $? -eq 0; then
108321      with_libxml2="yes"
108322      with_libxml2_cflags="`$PKG_CONFIG --cflags libxml-2.0`"
108323      with_libxml2_ldflags="`$PKG_CONFIG --libs libxml-2.0`"
108324    else
108325      with_libxml2="no (pkg-config doesn't know libxml-2.0)"
108326    fi
108327
108328
108329fi
108330
108331
108332if test "x$with_libxml2" = "xyes"; then
108333  SAVE_CPPFLAGS="$CPPFLAGS"
108334  CPPFLAGS="$CPPFLAGS $with_libxml2_cflags"
108335
108336  for ac_header in libxml/parser.h
108337do :
108338  ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
108339if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
108340  cat >>confdefs.h <<_ACEOF
108341#define HAVE_LIBXML_PARSER_H 1
108342_ACEOF
108343 with_libxml2="yes"
108344else
108345  with_libxml2="no (libxml/parser.h not found)"
108346
108347fi
108348
108349done
108350
108351
108352  CPPFLAGS="$SAVE_CPPFLAGS"
108353fi
108354
108355if test "x$with_libxml2" = "xyes"; then
108356  SAVE_LDFLAGS="$LDFLAGS"
108357  LDFLAGS="$LDFLAGS $with_libxml2_ldflags"
108358
108359  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlXPathEval in -lxml2" >&5
108360$as_echo_n "checking for xmlXPathEval in -lxml2... " >&6; }
108361if ${ac_cv_lib_xml2_xmlXPathEval+:} false; then :
108362  $as_echo_n "(cached) " >&6
108363else
108364  ac_check_lib_save_LIBS=$LIBS
108365LIBS="-lxml2  $LIBS"
108366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108367/* end confdefs.h.  */
108368
108369/* Override any GCC internal prototype to avoid an error.
108370   Use char because int might match the return type of a GCC
108371   builtin and then its argument prototype would still apply.  */
108372#ifdef __cplusplus
108373extern "C"
108374#endif
108375char xmlXPathEval ();
108376int
108377main ()
108378{
108379return xmlXPathEval ();
108380  ;
108381  return 0;
108382}
108383_ACEOF
108384if ac_fn_c_try_link "$LINENO"; then :
108385  ac_cv_lib_xml2_xmlXPathEval=yes
108386else
108387  ac_cv_lib_xml2_xmlXPathEval=no
108388fi
108389rm -f core conftest.err conftest.$ac_objext \
108390    conftest$ac_exeext conftest.$ac_ext
108391LIBS=$ac_check_lib_save_LIBS
108392fi
108393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlXPathEval" >&5
108394$as_echo "$ac_cv_lib_xml2_xmlXPathEval" >&6; }
108395if test "x$ac_cv_lib_xml2_xmlXPathEval" = xyes; then :
108396  with_libxml2="yes"
108397else
108398  with_libxml2="no (symbol xmlXPathEval not found)"
108399
108400fi
108401
108402
108403  LDFLAGS="$SAVE_LDFLAGS"
108404fi
108405
108406if test "x$with_libxml2" = "xyes"; then
108407  BUILD_WITH_LIBXML2_CFLAGS="$with_libxml2_cflags"
108408  BUILD_WITH_LIBXML2_LIBS="$with_libxml2_ldflags"
108409fi
108410
108411
108412
108413# }}}
108414
108415# pkg-config --exists libvirt {{{
108416$PKG_CONFIG --exists libvirt 2>/dev/null
108417if test $? = 0; then
108418  with_libvirt="yes"
108419else
108420  with_libvirt="no (pkg-config doesn't know libvirt)"
108421fi
108422
108423if test "x$with_libvirt" = "xyes"; then
108424  with_libvirt_cflags="`$PKG_CONFIG --cflags libvirt`"
108425  if test $? -ne 0; then
108426    with_libvirt="no"
108427  fi
108428
108429  with_libvirt_ldflags="`$PKG_CONFIG --libs libvirt`"
108430  if test $? -ne 0; then
108431    with_libvirt="no"
108432  fi
108433fi
108434
108435if test "x$with_libvirt" = "xyes"; then
108436  SAVE_CPPFLAGS="$CPPFLAGS"
108437  CPPFLAGS="$CPPFLAGS $with_libvirt_cflags"
108438
108439  for ac_header in libvirt/libvirt.h
108440do :
108441  ac_fn_c_check_header_mongrel "$LINENO" "libvirt/libvirt.h" "ac_cv_header_libvirt_libvirt_h" "$ac_includes_default"
108442if test "x$ac_cv_header_libvirt_libvirt_h" = xyes; then :
108443  cat >>confdefs.h <<_ACEOF
108444#define HAVE_LIBVIRT_LIBVIRT_H 1
108445_ACEOF
108446 with_libvirt="yes"
108447else
108448  with_libvirt="no (libvirt/libvirt.h not found)"
108449
108450fi
108451
108452done
108453
108454
108455  CPPFLAGS="$SAVE_CPPFLAGS"
108456fi
108457
108458if test "x$with_libvirt" = "xyes"; then
108459  SAVE_LDFLAGS="$LDFLAGS"
108460  LDFLAGS="$LDFLAGS $with_libvirt_ldflags"
108461
108462  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for virDomainBlockStats in -lvirt" >&5
108463$as_echo_n "checking for virDomainBlockStats in -lvirt... " >&6; }
108464if ${ac_cv_lib_virt_virDomainBlockStats+:} false; then :
108465  $as_echo_n "(cached) " >&6
108466else
108467  ac_check_lib_save_LIBS=$LIBS
108468LIBS="-lvirt  $LIBS"
108469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108470/* end confdefs.h.  */
108471
108472/* Override any GCC internal prototype to avoid an error.
108473   Use char because int might match the return type of a GCC
108474   builtin and then its argument prototype would still apply.  */
108475#ifdef __cplusplus
108476extern "C"
108477#endif
108478char virDomainBlockStats ();
108479int
108480main ()
108481{
108482return virDomainBlockStats ();
108483  ;
108484  return 0;
108485}
108486_ACEOF
108487if ac_fn_c_try_link "$LINENO"; then :
108488  ac_cv_lib_virt_virDomainBlockStats=yes
108489else
108490  ac_cv_lib_virt_virDomainBlockStats=no
108491fi
108492rm -f core conftest.err conftest.$ac_objext \
108493    conftest$ac_exeext conftest.$ac_ext
108494LIBS=$ac_check_lib_save_LIBS
108495fi
108496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_virt_virDomainBlockStats" >&5
108497$as_echo "$ac_cv_lib_virt_virDomainBlockStats" >&6; }
108498if test "x$ac_cv_lib_virt_virDomainBlockStats" = xyes; then :
108499  with_libvirt="yes"
108500else
108501  with_libvirt="no (symbol virDomainBlockStats not found)"
108502
108503fi
108504
108505
108506  LDFLAGS="$SAVE_LDFLAGS"
108507fi
108508
108509if test "x$with_libvirt" = "xyes"; then
108510  BUILD_WITH_LIBVIRT_CFLAGS="$with_libvirt_cflags"
108511  BUILD_WITH_LIBVIRT_LIBS="$with_libvirt_ldflags"
108512fi
108513
108514
108515
108516# }}}
108517
108518# $PKG_CONFIG --exists OpenIPMIpthread {{{
108519with_libopenipmipthread="yes"
108520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libOpenIPMIpthread" >&5
108521$as_echo_n "checking for libOpenIPMIpthread... " >&6; }
108522$PKG_CONFIG --exists OpenIPMIpthread 2>/dev/null
108523if test $? -ne 0; then
108524  with_libopenipmipthread="no (pkg-config doesn't know OpenIPMIpthread)"
108525fi
108526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libopenipmipthread" >&5
108527$as_echo "$with_libopenipmipthread" >&6; }
108528
108529if test "x$with_libopenipmipthread" = "xyes"; then
108530  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libOpenIPMIpthread CFLAGS" >&5
108531$as_echo_n "checking for libOpenIPMIpthread CFLAGS... " >&6; }
108532  temp_result="`$PKG_CONFIG --cflags OpenIPMIpthread`"
108533  if test $? -eq 0; then
108534    with_libopenipmipthread_cflags="$temp_result"
108535  else
108536    with_libopenipmipthread="no ($PKG_CONFIG --cflags OpenIPMIpthread failed)"
108537    temp_result="$PKG_CONFIG --cflags OpenIPMIpthread failed"
108538  fi
108539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $temp_result" >&5
108540$as_echo "$temp_result" >&6; }
108541fi
108542
108543if test "x$with_libopenipmipthread" = "xyes"; then
108544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libOpenIPMIpthread LDFLAGS" >&5
108545$as_echo_n "checking for libOpenIPMIpthread LDFLAGS... " >&6; }
108546  temp_result="`$PKG_CONFIG --libs OpenIPMIpthread`"
108547  if test $? -eq 0; then
108548    with_libopenipmipthread_ldflags="$temp_result"
108549  else
108550    with_libopenipmipthread="no ($PKG_CONFIG --libs OpenIPMIpthread failed)"
108551    temp_result="$PKG_CONFIG --libs OpenIPMIpthread failed"
108552  fi
108553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $temp_result" >&5
108554$as_echo "$temp_result" >&6; }
108555fi
108556
108557if test "x$with_libopenipmipthread" = "xyes"; then
108558  SAVE_CPPFLAGS="$CPPFLAGS"
108559  CPPFLAGS="$CPPFLAGS $with_libopenipmipthread_cflags"
108560
108561  for ac_header in OpenIPMI/ipmi_smi.h
108562do :
108563  ac_fn_c_check_header_compile "$LINENO" "OpenIPMI/ipmi_smi.h" "ac_cv_header_OpenIPMI_ipmi_smi_h" "
108564      #include <OpenIPMI/ipmiif.h>
108565      #include <OpenIPMI/ipmi_err.h>
108566      #include <OpenIPMI/ipmi_posix.h>
108567      #include <OpenIPMI/ipmi_conn.h>
108568
108569
108570"
108571if test "x$ac_cv_header_OpenIPMI_ipmi_smi_h" = xyes; then :
108572  cat >>confdefs.h <<_ACEOF
108573#define HAVE_OPENIPMI_IPMI_SMI_H 1
108574_ACEOF
108575 with_libopenipmipthread="yes"
108576else
108577  with_libopenipmipthread="no (OpenIPMI/ipmi_smi.h not found)"
108578fi
108579
108580done
108581
108582
108583  CPPFLAGS="$SAVE_CPPFLAGS"
108584fi
108585
108586if test "x$with_libopenipmipthread" = "xyes"; then
108587  BUILD_WITH_OPENIPMI_CFLAGS="$with_libopenipmipthread_cflags"
108588  BUILD_WITH_OPENIPMI_LIBS="$with_libopenipmipthread_ldflags"
108589fi
108590
108591
108592
108593# }}}
108594
108595# --with-libatasmart {{{
108596
108597# Check whether --with-libatasmart was given.
108598if test "${with_libatasmart+set}" = set; then :
108599  withval=$with_libatasmart;
108600    if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
108601      with_libatasmart_cppflags="-I$withval/include"
108602      with_libatasmart_ldflags="-L$withval/lib"
108603      with_libatasmart="yes"
108604    else
108605      with_libatasmart="$withval"
108606    fi
108607
108608else
108609
108610    if test "x$ac_system" = "xLinux"; then
108611      with_libatasmart="yes"
108612    else
108613      with_libatasmart="no (Linux only library)"
108614    fi
108615
108616
108617fi
108618
108619
108620if test "x$with_libatasmart" = "xyes"; then
108621  SAVE_CPPFLAGS="$CPPFLAGS"
108622  CPPFLAGS="$CPPFLAGS $with_libatasmart_cppflags"
108623
108624  for ac_header in atasmart.h
108625do :
108626  ac_fn_c_check_header_mongrel "$LINENO" "atasmart.h" "ac_cv_header_atasmart_h" "$ac_includes_default"
108627if test "x$ac_cv_header_atasmart_h" = xyes; then :
108628  cat >>confdefs.h <<_ACEOF
108629#define HAVE_ATASMART_H 1
108630_ACEOF
108631 with_libatasmart="yes"
108632else
108633  with_libatasmart="no (atasmart.h not found)"
108634fi
108635
108636done
108637
108638
108639  CPPFLAGS="$SAVE_CPPFLAGS"
108640fi
108641
108642if test "x$with_libatasmart" = "xyes"; then
108643  SAVE_LDFLAGS="$LDFLAGS"
108644  LDFLAGS="$LDFLAGS $with_libatasmart_ldflags"
108645
108646  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sk_disk_open in -latasmart" >&5
108647$as_echo_n "checking for sk_disk_open in -latasmart... " >&6; }
108648if ${ac_cv_lib_atasmart_sk_disk_open+:} false; then :
108649  $as_echo_n "(cached) " >&6
108650else
108651  ac_check_lib_save_LIBS=$LIBS
108652LIBS="-latasmart  $LIBS"
108653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108654/* end confdefs.h.  */
108655
108656/* Override any GCC internal prototype to avoid an error.
108657   Use char because int might match the return type of a GCC
108658   builtin and then its argument prototype would still apply.  */
108659#ifdef __cplusplus
108660extern "C"
108661#endif
108662char sk_disk_open ();
108663int
108664main ()
108665{
108666return sk_disk_open ();
108667  ;
108668  return 0;
108669}
108670_ACEOF
108671if ac_fn_c_try_link "$LINENO"; then :
108672  ac_cv_lib_atasmart_sk_disk_open=yes
108673else
108674  ac_cv_lib_atasmart_sk_disk_open=no
108675fi
108676rm -f core conftest.err conftest.$ac_objext \
108677    conftest$ac_exeext conftest.$ac_ext
108678LIBS=$ac_check_lib_save_LIBS
108679fi
108680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atasmart_sk_disk_open" >&5
108681$as_echo "$ac_cv_lib_atasmart_sk_disk_open" >&6; }
108682if test "x$ac_cv_lib_atasmart_sk_disk_open" = xyes; then :
108683  with_libatasmart="yes"
108684else
108685  with_libatasmart="no (Symbol 'sk_disk_open' not found)"
108686
108687fi
108688
108689
108690  LDFLAGS="$SAVE_LDFLAGS"
108691fi
108692
108693if test "x$with_libatasmart" = "xyes"; then
108694  BUILD_WITH_LIBATASMART_CPPFLAGS="$with_libatasmart_cppflags"
108695  BUILD_WITH_LIBATASMART_LDFLAGS="$with_libatasmart_ldflags"
108696  BUILD_WITH_LIBATASMART_LIBS="-latasmart"
108697fi
108698
108699
108700
108701
108702# }}}
108703
108704
108705pkg_failed=no
108706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
108707$as_echo_n "checking for LIBNOTIFY... " >&6; }
108708
108709if test -n "$LIBNOTIFY_CFLAGS"; then
108710    pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
108711 elif test -n "$PKG_CONFIG"; then
108712    if test -n "$PKG_CONFIG" && \
108713    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
108714  ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
108715  ac_status=$?
108716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
108717  test $ac_status = 0; }; then
108718  pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
108719		      test "x$?" != "x0" && pkg_failed=yes
108720else
108721  pkg_failed=yes
108722fi
108723 else
108724    pkg_failed=untried
108725fi
108726if test -n "$LIBNOTIFY_LIBS"; then
108727    pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
108728 elif test -n "$PKG_CONFIG"; then
108729    if test -n "$PKG_CONFIG" && \
108730    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
108731  ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
108732  ac_status=$?
108733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
108734  test $ac_status = 0; }; then
108735  pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
108736		      test "x$?" != "x0" && pkg_failed=yes
108737else
108738  pkg_failed=yes
108739fi
108740 else
108741    pkg_failed=untried
108742fi
108743
108744
108745
108746if test $pkg_failed = yes; then
108747   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
108748$as_echo "no" >&6; }
108749
108750if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
108751        _pkg_short_errors_supported=yes
108752else
108753        _pkg_short_errors_supported=no
108754fi
108755        if test $_pkg_short_errors_supported = yes; then
108756	        LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify" 2>&1`
108757        else
108758	        LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify" 2>&1`
108759        fi
108760	# Put the nasty error message in config.log where it belongs
108761	echo "$LIBNOTIFY_PKG_ERRORS" >&5
108762
108763	with_libnotify="no (pkg-config doesn't know libnotify)"
108764
108765elif test $pkg_failed = untried; then
108766     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
108767$as_echo "no" >&6; }
108768	with_libnotify="no (pkg-config doesn't know libnotify)"
108769
108770else
108771	LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
108772	LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
108773        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
108774$as_echo "yes" >&6; }
108775	with_libnotify="yes"
108776fi
108777
108778
108779pkg_failed=no
108780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRIEMANN_CLIENT" >&5
108781$as_echo_n "checking for LIBRIEMANN_CLIENT... " >&6; }
108782
108783if test -n "$LIBRIEMANN_CLIENT_CFLAGS"; then
108784    pkg_cv_LIBRIEMANN_CLIENT_CFLAGS="$LIBRIEMANN_CLIENT_CFLAGS"
108785 elif test -n "$PKG_CONFIG"; then
108786    if test -n "$PKG_CONFIG" && \
108787    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"riemann-client >= 1.6.0\""; } >&5
108788  ($PKG_CONFIG --exists --print-errors "riemann-client >= 1.6.0") 2>&5
108789  ac_status=$?
108790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
108791  test $ac_status = 0; }; then
108792  pkg_cv_LIBRIEMANN_CLIENT_CFLAGS=`$PKG_CONFIG --cflags "riemann-client >= 1.6.0" 2>/dev/null`
108793		      test "x$?" != "x0" && pkg_failed=yes
108794else
108795  pkg_failed=yes
108796fi
108797 else
108798    pkg_failed=untried
108799fi
108800if test -n "$LIBRIEMANN_CLIENT_LIBS"; then
108801    pkg_cv_LIBRIEMANN_CLIENT_LIBS="$LIBRIEMANN_CLIENT_LIBS"
108802 elif test -n "$PKG_CONFIG"; then
108803    if test -n "$PKG_CONFIG" && \
108804    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"riemann-client >= 1.6.0\""; } >&5
108805  ($PKG_CONFIG --exists --print-errors "riemann-client >= 1.6.0") 2>&5
108806  ac_status=$?
108807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
108808  test $ac_status = 0; }; then
108809  pkg_cv_LIBRIEMANN_CLIENT_LIBS=`$PKG_CONFIG --libs "riemann-client >= 1.6.0" 2>/dev/null`
108810		      test "x$?" != "x0" && pkg_failed=yes
108811else
108812  pkg_failed=yes
108813fi
108814 else
108815    pkg_failed=untried
108816fi
108817
108818
108819
108820if test $pkg_failed = yes; then
108821   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
108822$as_echo "no" >&6; }
108823
108824if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
108825        _pkg_short_errors_supported=yes
108826else
108827        _pkg_short_errors_supported=no
108828fi
108829        if test $_pkg_short_errors_supported = yes; then
108830	        LIBRIEMANN_CLIENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "riemann-client >= 1.6.0" 2>&1`
108831        else
108832	        LIBRIEMANN_CLIENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "riemann-client >= 1.6.0" 2>&1`
108833        fi
108834	# Put the nasty error message in config.log where it belongs
108835	echo "$LIBRIEMANN_CLIENT_PKG_ERRORS" >&5
108836
108837	with_libriemann_client="no (pkg-config doesn't know libriemann-client)"
108838
108839elif test $pkg_failed = untried; then
108840     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
108841$as_echo "no" >&6; }
108842	with_libriemann_client="no (pkg-config doesn't know libriemann-client)"
108843
108844else
108845	LIBRIEMANN_CLIENT_CFLAGS=$pkg_cv_LIBRIEMANN_CLIENT_CFLAGS
108846	LIBRIEMANN_CLIENT_LIBS=$pkg_cv_LIBRIEMANN_CLIENT_LIBS
108847        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
108848$as_echo "yes" >&6; }
108849	with_libriemann_client="yes"
108850fi
108851
108852# Check for enabled/disabled features
108853#
108854
108855# AC_COLLECTD(name, enable/disable, info-text, feature/module)
108856# ------------------------------------------------------------
108857
108858# AC_COLLECTD(name, enable/disable, info-text, feature/module)
108859
108860# AC_PLUGIN(name, default, info)
108861# ------------------------------------------------------------
108862# AC_PLUGIN(name, default, info)
108863
108864# --with-libslurm {{{
108865
108866# Check whether --with-libslurm was given.
108867if test "${with_libslurm+set}" = set; then :
108868  withval=$with_libslurm;
108869    if test "x$withval" = "xno"; then
108870      with_libslurm="no"
108871    else if test "x$withval" = "xyes"; then
108872      with_libslurm="use_pkgconfig"
108873    else if test -d "$with_libslurm/lib"; then
108874      { $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for libslurm: Manually configured" >&5
108875$as_echo "$as_me: Not checking for libslurm: Manually configured" >&6;}
108876      with_libslurm_cflags="-I$withval/include"
108877      with_libslurm_libs="-L$withval/lib -llibslurm"
108878      with_libslurm="yes"
108879    fi; fi; fi
108880
108881else
108882  with_libslurm="use_pkgconfig"
108883
108884fi
108885
108886
108887# configure using pkg-config
108888if test "x$with_libslurm" = "xuse_pkgconfig"; then
108889  { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for libslurm using $PKG_CONFIG" >&5
108890$as_echo "$as_me: Checking for libslurm using $PKG_CONFIG" >&6;}
108891  $PKG_CONFIG --exists 'slurm' 2>/dev/null
108892  if test $? -ne 0; then
108893    with_libslurm="no (pkg-config doesn't know libslurm)"
108894  fi
108895fi
108896
108897if test "x$with_libslurm" = "xuse_pkgconfig"; then
108898  with_libslurm_cflags="`$PKG_CONFIG --cflags 'slurm'`"
108899  if test $? -ne 0; then
108900    with_libslurm="no ($PKG_CONFIG failed)"
108901  fi
108902
108903  with_libslurm_libs="`$PKG_CONFIG --libs 'slurm'`"
108904  if test $? -ne 0; then
108905    with_libslurm="no ($PKG_CONFIG failed)"
108906  fi
108907fi
108908
108909if test "x$with_libslurm" = "xuse_pkgconfig"; then
108910  with_libslurm="yes"
108911fi
108912
108913if test "x$with_libslurm" = "xyes"; then
108914  SAVE_CPPFLAGS="$CPPFLAGS"
108915  CPPFLAGS="$CPPFLAGS $with_libslurm_cflags"
108916
108917  for ac_header in slurm/slurm.h
108918do :
108919  ac_fn_c_check_header_mongrel "$LINENO" "slurm/slurm.h" "ac_cv_header_slurm_slurm_h" "$ac_includes_default"
108920if test "x$ac_cv_header_slurm_slurm_h" = xyes; then :
108921  cat >>confdefs.h <<_ACEOF
108922#define HAVE_SLURM_SLURM_H 1
108923_ACEOF
108924 with_libslurm="yes"
108925else
108926  with_libslurm="no (slurm/slurm.h not found)"
108927
108928fi
108929
108930done
108931
108932
108933  CPPFLAGS="$SAVE_CPPFLAGS"
108934fi
108935
108936if test "x$with_libslurm" = "xyes"; then
108937  SAVE_LDFLAGS="$LDFLAGS"
108938  LDFLAGS="$LDFLAGS $with_libslurm_libs"
108939
108940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for slurm_load_jobs in -lslurm" >&5
108941$as_echo_n "checking for slurm_load_jobs in -lslurm... " >&6; }
108942if ${ac_cv_lib_slurm_slurm_load_jobs+:} false; then :
108943  $as_echo_n "(cached) " >&6
108944else
108945  ac_check_lib_save_LIBS=$LIBS
108946LIBS="-lslurm  $LIBS"
108947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108948/* end confdefs.h.  */
108949
108950/* Override any GCC internal prototype to avoid an error.
108951   Use char because int might match the return type of a GCC
108952   builtin and then its argument prototype would still apply.  */
108953#ifdef __cplusplus
108954extern "C"
108955#endif
108956char slurm_load_jobs ();
108957int
108958main ()
108959{
108960return slurm_load_jobs ();
108961  ;
108962  return 0;
108963}
108964_ACEOF
108965if ac_fn_c_try_link "$LINENO"; then :
108966  ac_cv_lib_slurm_slurm_load_jobs=yes
108967else
108968  ac_cv_lib_slurm_slurm_load_jobs=no
108969fi
108970rm -f core conftest.err conftest.$ac_objext \
108971    conftest$ac_exeext conftest.$ac_ext
108972LIBS=$ac_check_lib_save_LIBS
108973fi
108974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_slurm_slurm_load_jobs" >&5
108975$as_echo "$ac_cv_lib_slurm_slurm_load_jobs" >&6; }
108976if test "x$ac_cv_lib_slurm_slurm_load_jobs" = xyes; then :
108977  with_libslurm="yes"
108978else
108979  with_libslurm="no (symbol slurm_load_jobs not found)"
108980
108981fi
108982
108983
108984  LDFLAGS="$SAVE_LDFLAGS"
108985fi
108986
108987if test "x$with_libslurm" = "xyes"; then
108988  BUILD_WITH_LIBSLURM_CFLAGS="$with_libslurm_cflags"
108989  BUILD_WITH_LIBSLURM_LIBS="$with_libslurm_libs"
108990fi
108991
108992
108993
108994# }}}
108995
108996
108997
108998# FIXME: Remove these calls to `AC_COLLECTD' and then remove that macro.
108999
109000                    # Check whether --enable-debug was given.
109001if test "${enable_debug+set}" = set; then :
109002  enableval=$enable_debug;
109003else
109004  enable_debug='no'
109005fi
109006# AC_ARG_ENABLE
109007  if test "x$enable_debug" = "xno"; then
109008    collectd_debug=0
109009  else
109010    if test "x$enable_debug" = "xyes"; then
109011      collectd_debug=1
109012    else
109013      { $as_echo "$as_me:${as_lineno-$LINENO}: please specify either --enable-debug or --disable-debug; enabling debug." >&5
109014$as_echo "$as_me: please specify either --enable-debug or --disable-debug; enabling debug." >&6;}
109015      collectd_debug=1
109016      enable_debug='yes'
109017    fi
109018  fi
109019
109020cat >>confdefs.h <<_ACEOF
109021#define COLLECT_DEBUG $collectd_debug
109022_ACEOF
109023
109024   if test "x$enable_debug" = "xyes"; then
109025  BUILD_FEATURE_DEBUG_TRUE=
109026  BUILD_FEATURE_DEBUG_FALSE='#'
109027else
109028  BUILD_FEATURE_DEBUG_TRUE='#'
109029  BUILD_FEATURE_DEBUG_FALSE=
109030fi
109031
109032
109033                                # Check whether --enable-daemon was given.
109034if test "${enable_daemon+set}" = set; then :
109035  enableval=$enable_daemon;
109036else
109037  enable_daemon='yes'
109038fi
109039# AC_ARG_ENABLE
109040  if test "x$enable_daemon" = "xno"; then
109041    collectd_daemon=0
109042  else
109043    if test "x$enable_daemon" = "xyes"; then
109044      collectd_daemon=1
109045    else
109046      { $as_echo "$as_me:${as_lineno-$LINENO}: please specify either --enable-daemon or --disable-daemon; enabling daemon." >&5
109047$as_echo "$as_me: please specify either --enable-daemon or --disable-daemon; enabling daemon." >&6;}
109048      collectd_daemon=1
109049      enable_daemon='yes'
109050    fi
109051  fi
109052
109053cat >>confdefs.h <<_ACEOF
109054#define COLLECT_DAEMON $collectd_daemon
109055_ACEOF
109056
109057   if test "x$enable_daemon" = "xyes"; then
109058  BUILD_FEATURE_DAEMON_TRUE=
109059  BUILD_FEATURE_DAEMON_FALSE='#'
109060else
109061  BUILD_FEATURE_DAEMON_TRUE='#'
109062  BUILD_FEATURE_DAEMON_FALSE=
109063fi
109064
109065
109066                    # Check whether --enable-getifaddrs was given.
109067if test "${enable_getifaddrs+set}" = set; then :
109068  enableval=$enable_getifaddrs;
109069else
109070  enable_getifaddrs='no'
109071fi
109072# AC_ARG_ENABLE
109073  if test "x$enable_getifaddrs" = "xno"; then
109074    collectd_getifaddrs=0
109075  else
109076    if test "x$enable_getifaddrs" = "xyes"; then
109077      collectd_getifaddrs=1
109078    else
109079      { $as_echo "$as_me:${as_lineno-$LINENO}: please specify either --enable-getifaddrs or --disable-getifaddrs; enabling getifaddrs." >&5
109080$as_echo "$as_me: please specify either --enable-getifaddrs or --disable-getifaddrs; enabling getifaddrs." >&6;}
109081      collectd_getifaddrs=1
109082      enable_getifaddrs='yes'
109083    fi
109084  fi
109085
109086cat >>confdefs.h <<_ACEOF
109087#define COLLECT_GETIFADDRS $collectd_getifaddrs
109088_ACEOF
109089
109090   if test "x$enable_getifaddrs" = "xyes"; then
109091  BUILD_FEATURE_GETIFADDRS_TRUE=
109092  BUILD_FEATURE_GETIFADDRS_FALSE='#'
109093else
109094  BUILD_FEATURE_GETIFADDRS_TRUE='#'
109095  BUILD_FEATURE_GETIFADDRS_FALSE=
109096fi
109097
109098
109099                                # Check whether --enable-werror was given.
109100if test "${enable_werror+set}" = set; then :
109101  enableval=$enable_werror;
109102else
109103  enable_werror='yes'
109104fi
109105# AC_ARG_ENABLE
109106  if test "x$enable_werror" = "xno"; then
109107    collectd_werror=0
109108  else
109109    if test "x$enable_werror" = "xyes"; then
109110      collectd_werror=1
109111    else
109112      { $as_echo "$as_me:${as_lineno-$LINENO}: please specify either --enable-werror or --disable-werror; enabling werror." >&5
109113$as_echo "$as_me: please specify either --enable-werror or --disable-werror; enabling werror." >&6;}
109114      collectd_werror=1
109115      enable_werror='yes'
109116    fi
109117  fi
109118
109119cat >>confdefs.h <<_ACEOF
109120#define COLLECT_WERROR $collectd_werror
109121_ACEOF
109122
109123   if test "x$enable_werror" = "xyes"; then
109124  BUILD_FEATURE_WERROR_TRUE=
109125  BUILD_FEATURE_WERROR_FALSE='#'
109126else
109127  BUILD_FEATURE_WERROR_TRUE='#'
109128  BUILD_FEATURE_WERROR_FALSE=
109129fi
109130
109131
109132dependency_warning="no"
109133dependency_error="no"
109134
109135plugin_ascent="no"
109136plugin_barometer="no"
109137plugin_battery="no"
109138plugin_bind="no"
109139plugin_buddyinfo="no"
109140plugin_capabilities="no"
109141plugin_ceph="no"
109142plugin_cgroups="no"
109143plugin_connectivity="no"
109144plugin_conntrack="no"
109145plugin_contextswitch="no"
109146plugin_cpu="no"
109147plugin_cpufreq="no"
109148plugin_cpusleep="no"
109149plugin_curl_json="no"
109150plugin_curl_xml="no"
109151plugin_df="no"
109152plugin_disk="no"
109153plugin_drbd="no"
109154plugin_dpdkevents="no"
109155plugin_dpdkstat="no"
109156plugin_dpdk_telemetry="no"
109157plugin_entropy="no"
109158plugin_ethstat="no"
109159plugin_fhcount="no"
109160plugin_fscache="no"
109161plugin_gps="no"
109162plugin_gpu_nvidia="no"
109163plugin_grpc="no"
109164plugin_hugepages="no"
109165plugin_infiniband="no"
109166plugin_intel_pmu="no"
109167plugin_intel_rdt="no"
109168plugin_interface="no"
109169plugin_ipc="no"
109170plugin_ipmi="no"
109171plugin_ipstats="no"
109172plugin_ipvs="no"
109173plugin_irq="no"
109174plugin_load="no"
109175plugin_log_logstash="no"
109176plugin_mcelog="no"
109177plugin_mdevents="no"
109178plugin_memory="no"
109179plugin_multimeter="no"
109180plugin_netstat_udp="no"
109181plugin_nfs="no"
109182plugin_numa="no"
109183plugin_ovs_events="no"
109184plugin_ovs_stats="no"
109185plugin_pcie_errors="no"
109186plugin_perl="no"
109187plugin_pinba="no"
109188plugin_processes="no"
109189plugin_procevent="no"
109190plugin_protocols="no"
109191plugin_python="no"
109192plugin_serial="no"
109193plugin_smart="no"
109194plugin_swap="no"
109195plugin_synproxy="no"
109196plugin_sysevent="no"
109197plugin_tape="no"
109198plugin_tcpconns="no"
109199plugin_ted="no"
109200plugin_thermal="no"
109201plugin_turbostat="no"
109202plugin_ubi="no"
109203plugin_uptime="no"
109204plugin_users="no"
109205plugin_virt="no"
109206plugin_vmem="no"
109207plugin_vserver="no"
109208plugin_wireless="no"
109209plugin_write_prometheus="no"
109210plugin_write_stackdriver="no"
109211plugin_xencpu="no"
109212plugin_zfs_arc="no"
109213plugin_zone="no"
109214plugin_zookeeper="no"
109215
109216# Linux
109217if test "x$ac_system" = "xLinux"; then
109218  plugin_battery="yes"
109219  plugin_buddyinfo="yes"
109220  plugin_cgroups="yes"
109221  plugin_conntrack="yes"
109222  plugin_contextswitch="yes"
109223  plugin_cpu="yes"
109224  plugin_cpufreq="yes"
109225  plugin_disk="yes"
109226  plugin_drbd="yes"
109227  plugin_entropy="yes"
109228  plugin_fhcount="yes"
109229  plugin_fscache="yes"
109230  plugin_hugepages="yes"
109231  plugin_infiniband="yes"
109232  plugin_interface="yes"
109233  plugin_ipc="yes"
109234  plugin_irq="yes"
109235  plugin_load="yes"
109236  plugin_mcelog="yes"
109237  plugin_mdevents="yes"
109238  plugin_memory="yes"
109239  plugin_nfs="yes"
109240  plugin_numa="yes"
109241  plugin_processes="yes"
109242  plugin_protocols="yes"
109243  plugin_serial="yes"
109244  plugin_swap="yes"
109245  plugin_synproxy="yes"
109246  plugin_tcpconns="yes"
109247  plugin_thermal="yes"
109248  plugin_ubi="yes"
109249  plugin_uptime="yes"
109250  plugin_vmem="yes"
109251  plugin_vserver="yes"
109252  plugin_wireless="yes"
109253  plugin_zfs_arc="yes"
109254
109255  if test "x$ac_cv_header_linux_ip_vs_h" = "xyes"; then
109256    plugin_ipvs="yes"
109257  fi
109258
109259  if test "x$have_cpuid_h" = "xyes"; then
109260    plugin_turbostat="yes"
109261  fi
109262
109263  if test "x$c_cv_have_clock_boottime_monotonic" = "xyes"; then
109264    plugin_cpusleep="yes"
109265  fi
109266
109267  if test "x$with_libyajl" = "xyes" && test "x$with_libyajl2" = "xyes"; then
109268    plugin_ovs_events="yes"
109269    plugin_ovs_stats="yes"
109270    plugin_procevent="yes"
109271
109272    if test "x$with_libmnl" = "xyes"; then
109273      plugin_connectivity="yes"
109274    fi
109275  fi
109276
109277  if test "x$have_pci_regs_h" = "xyes"; then
109278    plugin_pcie_errors="yes"
109279  fi
109280
109281  if test "x$with_libmicrohttpd" = "xyes" && test "x$with_libjansson" = "xyes"; then
109282    plugin_capabilities="yes"
109283  fi
109284fi
109285
109286if test "x$ac_system" = "xOpenBSD"; then
109287  plugin_tcpconns="yes"
109288fi
109289
109290if test "x$ac_system" = "xNetBSD"; then
109291  plugin_disk="yes"
109292  plugin_entropy="yes"
109293  plugin_irq="yes"
109294  plugin_nfs="yes"
109295  plugin_processes="yes"
109296  plugin_netstat_udp="yes"
109297fi
109298
109299# Mac OS X devices
109300if test "x$with_libiokit" = "xyes"; then
109301  plugin_battery="yes"
109302  plugin_disk="yes"
109303fi
109304
109305# AIX
109306
109307if test "x$ac_system" = "xAIX"; then
109308  plugin_ipc="yes"
109309  plugin_tcpconns="yes"
109310fi
109311
109312# FreeBSD
109313
109314if test "x$ac_system" = "xFreeBSD"; then
109315  plugin_cpufreq="yes"
109316  plugin_disk="yes"
109317  plugin_ipstats="yes"
109318  plugin_zfs_arc="yes"
109319fi
109320
109321
109322if test "x$with_perfstat" = "xyes"; then
109323  plugin_contextswitch="yes"
109324  plugin_cpu="yes"
109325  plugin_disk="yes"
109326  plugin_interface="yes"
109327  plugin_load="yes"
109328  plugin_memory="yes"
109329  plugin_swap="yes"
109330  plugin_uptime="yes"
109331fi
109332
109333if test "x$with_procinfo" = "xyes"; then
109334  plugin_processes="yes"
109335fi
109336
109337# Solaris
109338if test "x$with_kstat" = "xyes"; then
109339  plugin_nfs="yes"
109340  plugin_processes="yes"
109341  plugin_uptime="yes"
109342  plugin_zfs_arc="yes"
109343  plugin_zone="yes"
109344fi
109345
109346if test "x$with_devinfo" = "xyes" && test "x$with_kstat" = "xyes"; then
109347  plugin_cpu="yes"
109348  plugin_disk="yes"
109349  plugin_interface="yes"
109350  plugin_memory="yes"
109351  plugin_tape="yes"
109352fi
109353
109354if test "x$with_libi2c" = "xyes"; then
109355  plugin_barometer="yes"
109356fi
109357
109358
109359# libstatgrab
109360if test "x$with_libstatgrab" = "xyes"; then
109361  plugin_cpu="yes"
109362  plugin_disk="yes"
109363  plugin_interface="yes"
109364  plugin_load="yes"
109365  plugin_memory="yes"
109366  plugin_swap="yes"
109367  plugin_users="yes"
109368fi
109369
109370if test "x$with_libcurl" = "xyes" && test "x$with_libxml2" = "xyes"; then
109371  plugin_ascent="yes"
109372  if test "x$have_strptime" = "xyes"; then
109373    plugin_bind="yes"
109374  fi
109375fi
109376
109377if test "x$with_libopenipmipthread" = "xyes"; then
109378  plugin_ipmi="yes"
109379fi
109380
109381if test "x$with_libcurl" = "xyes" && test "x$with_libyajl" = "xyes"; then
109382  plugin_curl_json="yes"
109383fi
109384
109385if test "x$with_libcurl" = "xyes" && test "x$with_libssl" = "xyes" && test "x$with_libyajl" = "xyes" && test "x$with_libyajl2" = "xyes"; then
109386  plugin_write_stackdriver="yes"
109387fi
109388
109389if test "x$with_libcurl" = "xyes" && test "x$with_libxml2" = "xyes"; then
109390  plugin_curl_xml="yes"
109391fi
109392
109393if test "x$with_libyajl" = "xyes"; then
109394  plugin_ceph="yes"
109395  plugin_sysevent="yes"
109396fi
109397
109398if test "x$have_processor_info" = "xyes"; then
109399  plugin_cpu="yes"
109400fi
109401
109402if test "x$have_sysctl" = "xyes"; then
109403  plugin_cpu="yes"
109404  plugin_memory="yes"
109405  plugin_uptime="yes"
109406  if test "x$ac_system" = "xDarwin"; then
109407    plugin_swap="yes"
109408  fi
109409fi
109410
109411if test "x$have_sysctlbyname" = "xyes"; then
109412  plugin_contextswitch="yes"
109413  plugin_cpu="yes"
109414  plugin_memory="yes"
109415  plugin_tcpconns="yes"
109416fi
109417
109418if test "x$have_getvfsstat" = "xyes" || test "x$have_getfsstat" = "xyes"; then
109419  plugin_df="yes"
109420fi
109421
109422if test "x$c_cv_have_two_getmntent" = "xyes" || test "x$have_getmntent" = "xgen" || test "x$have_getmntent" = "xsun"; then
109423  plugin_df="yes"
109424fi
109425
109426if test "x$c_cv_have_one_getmntent" = "xyes"; then
109427  plugin_df="yes"
109428fi
109429
109430if test "x$have_getmntent_r" = "xyes"; then
109431  plugin_df="yes"
109432fi
109433
109434if test "x$plugin_df" = "xyes"; then
109435  plugin_df="no"
109436  if test "x$have_statfs" = "xyes"; then
109437    plugin_df="yes"
109438  fi
109439
109440  if test "x$have_statvfs" = "xyes"; then
109441    plugin_df="yes"
109442  fi
109443fi
109444
109445if test "x$have_linux_sockios_h" = "xyes" && test "x$have_linux_ethtool_h" = "xyes"; then
109446  plugin_ethstat="yes"
109447fi
109448
109449if test "x$with_libgps" = "xyes"; then
109450  plugin_gps="yes"
109451fi
109452
109453plugin_grpc="yes"
109454if test "x$GRPC_CPP_PLUGIN" = "x"; then
109455  plugin_grpc="no (grpc_cpp_plugin not found)"
109456fi
109457if test "x$have_protoc3" != "xyes"; then
109458  plugin_grpc="no (protoc3 not found)"
109459fi
109460if test "x$with_libprotobuf" != "xyes"; then
109461  plugin_grpc="no (libprotobuf not found)"
109462fi
109463if test "x$with_libgrpcpp" != "xyes"; then
109464  plugin_grpc="no (libgrpc++ not found)"
109465fi
109466
109467if test "x$have_getifaddrs" = "xyes"; then
109468  plugin_interface="yes"
109469fi
109470
109471if test "x$have_getloadavg" = "xyes"; then
109472  plugin_load="yes"
109473fi
109474
109475if test "x$with_libyajl" = "xyes"; then
109476  plugin_log_logstash="yes"
109477fi
109478
109479if test "x$with_libperl" = "xyes" && test "x$c_cv_have_perl_ithreads" = "xyes"; then
109480  plugin_perl="yes"
109481fi
109482
109483if test "x$have_protoc_c" = "xyes" && test "x$with_libprotobuf_c" = "xyes"; then
109484  plugin_pinba="yes"
109485  if test "x$with_libmicrohttpd" = "xyes"; then
109486    plugin_write_prometheus="yes"
109487  fi
109488fi
109489
109490# Mac OS X memory interface
109491if test "x$have_host_statistics" = "xyes"; then
109492  plugin_memory="yes"
109493fi
109494
109495if test "x$have_termios_h" = "xyes"; then
109496  if test "x$ac_system" != "xAIX"; then
109497    plugin_multimeter="yes"
109498  fi
109499  plugin_ted="yes"
109500fi
109501
109502if test "x$have_thread_info" = "xyes"; then
109503  plugin_processes="yes"
109504fi
109505
109506if test "x$with_kvm_getprocs" = "xyes" && test "x$have_struct_kinfo_proc_freebsd" = "xyes"; then
109507  plugin_processes="yes"
109508fi
109509
109510if test "x$with_kvm_getprocs" = "xyes" && test "x$have_struct_kinfo_proc_openbsd" = "xyes"; then
109511  plugin_processes="yes"
109512fi
109513
109514if test "x$with_libpython" != "xno"; then
109515  plugin_python="yes"
109516fi
109517
109518if test "x$with_libatasmart" = "xyes" && test "x$with_libudev" = "xyes"; then
109519  plugin_smart="yes"
109520fi
109521
109522if test "x$with_kvm_getswapinfo" = "xyes"; then
109523  plugin_swap="yes"
109524fi
109525
109526if test "x$have_swapctl" = "xyes" && test "x$c_cv_have_swapctl_two_args" = "xyes"; then
109527  plugin_swap="yes"
109528fi
109529
109530if test "x$have_swapctl" = "xyes" && test "x$c_cv_have_swapctl_three_args" = "xyes"; then
109531  plugin_swap="yes"
109532fi
109533
109534if test "x$with_kvm_openfiles = "xyes" && $with_kvm_nlist" = "xyes"; then
109535  plugin_tcpconns="yes"
109536fi
109537
109538if test "x$have_getutent" = "xyes"; then
109539  plugin_users="yes"
109540fi
109541
109542if test "x$have_getutxent" = "xyes"; then
109543  plugin_users="yes"
109544fi
109545
109546if test "x$with_libxml2" = "xyes" && test "x$with_libvirt" = "xyes"; then
109547  plugin_virt="yes"
109548fi
109549
109550if test "x$with_libxenctrl" = "xyes"; then
109551  plugin_xencpu="yes"
109552fi
109553
109554if test "x$with_libdpdk" = "xyes"; then
109555  plugin_dpdkevents="$dpdk_keepalive"
109556  plugin_dpdkstat="yes"
109557fi
109558
109559if test "x$with_libjansson" = "xyes"; then
109560  plugin_dpdk_telemetry="yes"
109561fi
109562
109563
109564
109565# Check whether --enable-all-plugins was given.
109566if test "${enable_all_plugins+set}" = set; then :
109567  enableval=$enable_all_plugins;
109568     if test "x$enableval" = "xyes"; then
109569       enable_all_plugins="yes"
109570     else if test "x$enableval" = "xauto"; then
109571       enable_all_plugins="auto"
109572     else
109573       enable_all_plugins="no"
109574     fi; fi
109575
109576else
109577  enable_all_plugins="auto"
109578
109579fi
109580
109581
109582
109583
109584
109585    enable_plugin="no"
109586    force="no"
109587    # Check whether --enable-aggregation was given.
109588if test "${enable_aggregation+set}" = set; then :
109589  enableval=$enable_aggregation;
109590        if test "x$enableval" = "xyes"; then
109591          enable_plugin="yes"
109592        else if test "x$enableval" = "xforce"; then
109593          enable_plugin="yes"
109594          force="yes"
109595        else
109596          enable_plugin="no (disabled on command line)"
109597        fi; fi
109598
109599else
109600
109601        if test "x$enable_all_plugins" = "xauto"; then
109602          if test "xyes" = "xyes"; then
109603            enable_plugin="yes"
109604          else
109605            enable_plugin="yes"
109606          fi
109607        else
109608          enable_plugin="$enable_all_plugins"
109609        fi
109610
109611
109612fi
109613
109614    if test "x$enable_plugin" = "xyes"; then
109615      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
109616
109617$as_echo "#define HAVE_PLUGIN_AGGREGATION 1" >>confdefs.h
109618
109619        if test "xyes" != "xyes"; then
109620          dependency_warning="yes"
109621        fi
109622      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
109623        dependency_error="yes"
109624        enable_plugin="yes (dependency error)"
109625      fi
109626    fi
109627     if test "x$enable_plugin" = "xyes"; then
109628  BUILD_PLUGIN_AGGREGATION_TRUE=
109629  BUILD_PLUGIN_AGGREGATION_FALSE='#'
109630else
109631  BUILD_PLUGIN_AGGREGATION_TRUE='#'
109632  BUILD_PLUGIN_AGGREGATION_FALSE=
109633fi
109634
109635    enable_aggregation="$enable_plugin"
109636
109637
109638
109639    enable_plugin="no"
109640    force="no"
109641    # Check whether --enable-amqp was given.
109642if test "${enable_amqp+set}" = set; then :
109643  enableval=$enable_amqp;
109644        if test "x$enableval" = "xyes"; then
109645          enable_plugin="yes"
109646        else if test "x$enableval" = "xforce"; then
109647          enable_plugin="yes"
109648          force="yes"
109649        else
109650          enable_plugin="no (disabled on command line)"
109651        fi; fi
109652
109653else
109654
109655        if test "x$enable_all_plugins" = "xauto"; then
109656          if test "x$with_librabbitmq" = "xyes"; then
109657            enable_plugin="yes"
109658          else
109659            enable_plugin="$with_librabbitmq"
109660          fi
109661        else
109662          enable_plugin="$enable_all_plugins"
109663        fi
109664
109665
109666fi
109667
109668    if test "x$enable_plugin" = "xyes"; then
109669      if test "x$with_librabbitmq" = "xyes" || test "x$force" = "xyes"; then
109670
109671$as_echo "#define HAVE_PLUGIN_AMQP 1" >>confdefs.h
109672
109673        if test "x$with_librabbitmq" != "xyes"; then
109674          dependency_warning="yes"
109675        fi
109676      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
109677        dependency_error="yes"
109678        enable_plugin="$with_librabbitmq (dependency error)"
109679      fi
109680    fi
109681     if test "x$enable_plugin" = "xyes"; then
109682  BUILD_PLUGIN_AMQP_TRUE=
109683  BUILD_PLUGIN_AMQP_FALSE='#'
109684else
109685  BUILD_PLUGIN_AMQP_TRUE='#'
109686  BUILD_PLUGIN_AMQP_FALSE=
109687fi
109688
109689    enable_amqp="$enable_plugin"
109690
109691
109692
109693    enable_plugin="no"
109694    force="no"
109695    # Check whether --enable-amqp1 was given.
109696if test "${enable_amqp1+set}" = set; then :
109697  enableval=$enable_amqp1;
109698        if test "x$enableval" = "xyes"; then
109699          enable_plugin="yes"
109700        else if test "x$enableval" = "xforce"; then
109701          enable_plugin="yes"
109702          force="yes"
109703        else
109704          enable_plugin="no (disabled on command line)"
109705        fi; fi
109706
109707else
109708
109709        if test "x$enable_all_plugins" = "xauto"; then
109710          if test "x$with_libqpid_proton" = "xyes"; then
109711            enable_plugin="yes"
109712          else
109713            enable_plugin="$with_libqpid_proton"
109714          fi
109715        else
109716          enable_plugin="$enable_all_plugins"
109717        fi
109718
109719
109720fi
109721
109722    if test "x$enable_plugin" = "xyes"; then
109723      if test "x$with_libqpid_proton" = "xyes" || test "x$force" = "xyes"; then
109724
109725$as_echo "#define HAVE_PLUGIN_AMQP1 1" >>confdefs.h
109726
109727        if test "x$with_libqpid_proton" != "xyes"; then
109728          dependency_warning="yes"
109729        fi
109730      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
109731        dependency_error="yes"
109732        enable_plugin="$with_libqpid_proton (dependency error)"
109733      fi
109734    fi
109735     if test "x$enable_plugin" = "xyes"; then
109736  BUILD_PLUGIN_AMQP1_TRUE=
109737  BUILD_PLUGIN_AMQP1_FALSE='#'
109738else
109739  BUILD_PLUGIN_AMQP1_TRUE='#'
109740  BUILD_PLUGIN_AMQP1_FALSE=
109741fi
109742
109743    enable_amqp1="$enable_plugin"
109744
109745
109746
109747    enable_plugin="no"
109748    force="no"
109749    # Check whether --enable-apache was given.
109750if test "${enable_apache+set}" = set; then :
109751  enableval=$enable_apache;
109752        if test "x$enableval" = "xyes"; then
109753          enable_plugin="yes"
109754        else if test "x$enableval" = "xforce"; then
109755          enable_plugin="yes"
109756          force="yes"
109757        else
109758          enable_plugin="no (disabled on command line)"
109759        fi; fi
109760
109761else
109762
109763        if test "x$enable_all_plugins" = "xauto"; then
109764          if test "x$with_libcurl" = "xyes"; then
109765            enable_plugin="yes"
109766          else
109767            enable_plugin="$with_libcurl"
109768          fi
109769        else
109770          enable_plugin="$enable_all_plugins"
109771        fi
109772
109773
109774fi
109775
109776    if test "x$enable_plugin" = "xyes"; then
109777      if test "x$with_libcurl" = "xyes" || test "x$force" = "xyes"; then
109778
109779$as_echo "#define HAVE_PLUGIN_APACHE 1" >>confdefs.h
109780
109781        if test "x$with_libcurl" != "xyes"; then
109782          dependency_warning="yes"
109783        fi
109784      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
109785        dependency_error="yes"
109786        enable_plugin="$with_libcurl (dependency error)"
109787      fi
109788    fi
109789     if test "x$enable_plugin" = "xyes"; then
109790  BUILD_PLUGIN_APACHE_TRUE=
109791  BUILD_PLUGIN_APACHE_FALSE='#'
109792else
109793  BUILD_PLUGIN_APACHE_TRUE='#'
109794  BUILD_PLUGIN_APACHE_FALSE=
109795fi
109796
109797    enable_apache="$enable_plugin"
109798
109799
109800
109801    enable_plugin="no"
109802    force="no"
109803    # Check whether --enable-apcups was given.
109804if test "${enable_apcups+set}" = set; then :
109805  enableval=$enable_apcups;
109806        if test "x$enableval" = "xyes"; then
109807          enable_plugin="yes"
109808        else if test "x$enableval" = "xforce"; then
109809          enable_plugin="yes"
109810          force="yes"
109811        else
109812          enable_plugin="no (disabled on command line)"
109813        fi; fi
109814
109815else
109816
109817        if test "x$enable_all_plugins" = "xauto"; then
109818          if test "xyes" = "xyes"; then
109819            enable_plugin="yes"
109820          else
109821            enable_plugin="yes"
109822          fi
109823        else
109824          enable_plugin="$enable_all_plugins"
109825        fi
109826
109827
109828fi
109829
109830    if test "x$enable_plugin" = "xyes"; then
109831      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
109832
109833$as_echo "#define HAVE_PLUGIN_APCUPS 1" >>confdefs.h
109834
109835        if test "xyes" != "xyes"; then
109836          dependency_warning="yes"
109837        fi
109838      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
109839        dependency_error="yes"
109840        enable_plugin="yes (dependency error)"
109841      fi
109842    fi
109843     if test "x$enable_plugin" = "xyes"; then
109844  BUILD_PLUGIN_APCUPS_TRUE=
109845  BUILD_PLUGIN_APCUPS_FALSE='#'
109846else
109847  BUILD_PLUGIN_APCUPS_TRUE='#'
109848  BUILD_PLUGIN_APCUPS_FALSE=
109849fi
109850
109851    enable_apcups="$enable_plugin"
109852
109853
109854
109855    enable_plugin="no"
109856    force="no"
109857    # Check whether --enable-apple_sensors was given.
109858if test "${enable_apple_sensors+set}" = set; then :
109859  enableval=$enable_apple_sensors;
109860        if test "x$enableval" = "xyes"; then
109861          enable_plugin="yes"
109862        else if test "x$enableval" = "xforce"; then
109863          enable_plugin="yes"
109864          force="yes"
109865        else
109866          enable_plugin="no (disabled on command line)"
109867        fi; fi
109868
109869else
109870
109871        if test "x$enable_all_plugins" = "xauto"; then
109872          if test "x$with_libiokit" = "xyes"; then
109873            enable_plugin="yes"
109874          else
109875            enable_plugin="$with_libiokit"
109876          fi
109877        else
109878          enable_plugin="$enable_all_plugins"
109879        fi
109880
109881
109882fi
109883
109884    if test "x$enable_plugin" = "xyes"; then
109885      if test "x$with_libiokit" = "xyes" || test "x$force" = "xyes"; then
109886
109887$as_echo "#define HAVE_PLUGIN_APPLE_SENSORS 1" >>confdefs.h
109888
109889        if test "x$with_libiokit" != "xyes"; then
109890          dependency_warning="yes"
109891        fi
109892      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
109893        dependency_error="yes"
109894        enable_plugin="$with_libiokit (dependency error)"
109895      fi
109896    fi
109897     if test "x$enable_plugin" = "xyes"; then
109898  BUILD_PLUGIN_APPLE_SENSORS_TRUE=
109899  BUILD_PLUGIN_APPLE_SENSORS_FALSE='#'
109900else
109901  BUILD_PLUGIN_APPLE_SENSORS_TRUE='#'
109902  BUILD_PLUGIN_APPLE_SENSORS_FALSE=
109903fi
109904
109905    enable_apple_sensors="$enable_plugin"
109906
109907
109908
109909    enable_plugin="no"
109910    force="no"
109911    # Check whether --enable-aquaero was given.
109912if test "${enable_aquaero+set}" = set; then :
109913  enableval=$enable_aquaero;
109914        if test "x$enableval" = "xyes"; then
109915          enable_plugin="yes"
109916        else if test "x$enableval" = "xforce"; then
109917          enable_plugin="yes"
109918          force="yes"
109919        else
109920          enable_plugin="no (disabled on command line)"
109921        fi; fi
109922
109923else
109924
109925        if test "x$enable_all_plugins" = "xauto"; then
109926          if test "x$with_libaquaero5" = "xyes"; then
109927            enable_plugin="yes"
109928          else
109929            enable_plugin="$with_libaquaero5"
109930          fi
109931        else
109932          enable_plugin="$enable_all_plugins"
109933        fi
109934
109935
109936fi
109937
109938    if test "x$enable_plugin" = "xyes"; then
109939      if test "x$with_libaquaero5" = "xyes" || test "x$force" = "xyes"; then
109940
109941$as_echo "#define HAVE_PLUGIN_AQUAERO 1" >>confdefs.h
109942
109943        if test "x$with_libaquaero5" != "xyes"; then
109944          dependency_warning="yes"
109945        fi
109946      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
109947        dependency_error="yes"
109948        enable_plugin="$with_libaquaero5 (dependency error)"
109949      fi
109950    fi
109951     if test "x$enable_plugin" = "xyes"; then
109952  BUILD_PLUGIN_AQUAERO_TRUE=
109953  BUILD_PLUGIN_AQUAERO_FALSE='#'
109954else
109955  BUILD_PLUGIN_AQUAERO_TRUE='#'
109956  BUILD_PLUGIN_AQUAERO_FALSE=
109957fi
109958
109959    enable_aquaero="$enable_plugin"
109960
109961
109962
109963    enable_plugin="no"
109964    force="no"
109965    # Check whether --enable-ascent was given.
109966if test "${enable_ascent+set}" = set; then :
109967  enableval=$enable_ascent;
109968        if test "x$enableval" = "xyes"; then
109969          enable_plugin="yes"
109970        else if test "x$enableval" = "xforce"; then
109971          enable_plugin="yes"
109972          force="yes"
109973        else
109974          enable_plugin="no (disabled on command line)"
109975        fi; fi
109976
109977else
109978
109979        if test "x$enable_all_plugins" = "xauto"; then
109980          if test "x$plugin_ascent" = "xyes"; then
109981            enable_plugin="yes"
109982          else
109983            enable_plugin="$plugin_ascent"
109984          fi
109985        else
109986          enable_plugin="$enable_all_plugins"
109987        fi
109988
109989
109990fi
109991
109992    if test "x$enable_plugin" = "xyes"; then
109993      if test "x$plugin_ascent" = "xyes" || test "x$force" = "xyes"; then
109994
109995$as_echo "#define HAVE_PLUGIN_ASCENT 1" >>confdefs.h
109996
109997        if test "x$plugin_ascent" != "xyes"; then
109998          dependency_warning="yes"
109999        fi
110000      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
110001        dependency_error="yes"
110002        enable_plugin="$plugin_ascent (dependency error)"
110003      fi
110004    fi
110005     if test "x$enable_plugin" = "xyes"; then
110006  BUILD_PLUGIN_ASCENT_TRUE=
110007  BUILD_PLUGIN_ASCENT_FALSE='#'
110008else
110009  BUILD_PLUGIN_ASCENT_TRUE='#'
110010  BUILD_PLUGIN_ASCENT_FALSE=
110011fi
110012
110013    enable_ascent="$enable_plugin"
110014
110015
110016
110017    enable_plugin="no"
110018    force="no"
110019    # Check whether --enable-barometer was given.
110020if test "${enable_barometer+set}" = set; then :
110021  enableval=$enable_barometer;
110022        if test "x$enableval" = "xyes"; then
110023          enable_plugin="yes"
110024        else if test "x$enableval" = "xforce"; then
110025          enable_plugin="yes"
110026          force="yes"
110027        else
110028          enable_plugin="no (disabled on command line)"
110029        fi; fi
110030
110031else
110032
110033        if test "x$enable_all_plugins" = "xauto"; then
110034          if test "x$plugin_barometer" = "xyes"; then
110035            enable_plugin="yes"
110036          else
110037            enable_plugin="$plugin_barometer"
110038          fi
110039        else
110040          enable_plugin="$enable_all_plugins"
110041        fi
110042
110043
110044fi
110045
110046    if test "x$enable_plugin" = "xyes"; then
110047      if test "x$plugin_barometer" = "xyes" || test "x$force" = "xyes"; then
110048
110049$as_echo "#define HAVE_PLUGIN_BAROMETER 1" >>confdefs.h
110050
110051        if test "x$plugin_barometer" != "xyes"; then
110052          dependency_warning="yes"
110053        fi
110054      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
110055        dependency_error="yes"
110056        enable_plugin="$plugin_barometer (dependency error)"
110057      fi
110058    fi
110059     if test "x$enable_plugin" = "xyes"; then
110060  BUILD_PLUGIN_BAROMETER_TRUE=
110061  BUILD_PLUGIN_BAROMETER_FALSE='#'
110062else
110063  BUILD_PLUGIN_BAROMETER_TRUE='#'
110064  BUILD_PLUGIN_BAROMETER_FALSE=
110065fi
110066
110067    enable_barometer="$enable_plugin"
110068
110069
110070
110071    enable_plugin="no"
110072    force="no"
110073    # Check whether --enable-battery was given.
110074if test "${enable_battery+set}" = set; then :
110075  enableval=$enable_battery;
110076        if test "x$enableval" = "xyes"; then
110077          enable_plugin="yes"
110078        else if test "x$enableval" = "xforce"; then
110079          enable_plugin="yes"
110080          force="yes"
110081        else
110082          enable_plugin="no (disabled on command line)"
110083        fi; fi
110084
110085else
110086
110087        if test "x$enable_all_plugins" = "xauto"; then
110088          if test "x$plugin_battery" = "xyes"; then
110089            enable_plugin="yes"
110090          else
110091            enable_plugin="$plugin_battery"
110092          fi
110093        else
110094          enable_plugin="$enable_all_plugins"
110095        fi
110096
110097
110098fi
110099
110100    if test "x$enable_plugin" = "xyes"; then
110101      if test "x$plugin_battery" = "xyes" || test "x$force" = "xyes"; then
110102
110103$as_echo "#define HAVE_PLUGIN_BATTERY 1" >>confdefs.h
110104
110105        if test "x$plugin_battery" != "xyes"; then
110106          dependency_warning="yes"
110107        fi
110108      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
110109        dependency_error="yes"
110110        enable_plugin="$plugin_battery (dependency error)"
110111      fi
110112    fi
110113     if test "x$enable_plugin" = "xyes"; then
110114  BUILD_PLUGIN_BATTERY_TRUE=
110115  BUILD_PLUGIN_BATTERY_FALSE='#'
110116else
110117  BUILD_PLUGIN_BATTERY_TRUE='#'
110118  BUILD_PLUGIN_BATTERY_FALSE=
110119fi
110120
110121    enable_battery="$enable_plugin"
110122
110123
110124
110125    enable_plugin="no"
110126    force="no"
110127    # Check whether --enable-bind was given.
110128if test "${enable_bind+set}" = set; then :
110129  enableval=$enable_bind;
110130        if test "x$enableval" = "xyes"; then
110131          enable_plugin="yes"
110132        else if test "x$enableval" = "xforce"; then
110133          enable_plugin="yes"
110134          force="yes"
110135        else
110136          enable_plugin="no (disabled on command line)"
110137        fi; fi
110138
110139else
110140
110141        if test "x$enable_all_plugins" = "xauto"; then
110142          if test "x$plugin_bind" = "xyes"; then
110143            enable_plugin="yes"
110144          else
110145            enable_plugin="$plugin_bind"
110146          fi
110147        else
110148          enable_plugin="$enable_all_plugins"
110149        fi
110150
110151
110152fi
110153
110154    if test "x$enable_plugin" = "xyes"; then
110155      if test "x$plugin_bind" = "xyes" || test "x$force" = "xyes"; then
110156
110157$as_echo "#define HAVE_PLUGIN_BIND 1" >>confdefs.h
110158
110159        if test "x$plugin_bind" != "xyes"; then
110160          dependency_warning="yes"
110161        fi
110162      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
110163        dependency_error="yes"
110164        enable_plugin="$plugin_bind (dependency error)"
110165      fi
110166    fi
110167     if test "x$enable_plugin" = "xyes"; then
110168  BUILD_PLUGIN_BIND_TRUE=
110169  BUILD_PLUGIN_BIND_FALSE='#'
110170else
110171  BUILD_PLUGIN_BIND_TRUE='#'
110172  BUILD_PLUGIN_BIND_FALSE=
110173fi
110174
110175    enable_bind="$enable_plugin"
110176
110177
110178
110179    enable_plugin="no"
110180    force="no"
110181    # Check whether --enable-buddyinfo was given.
110182if test "${enable_buddyinfo+set}" = set; then :
110183  enableval=$enable_buddyinfo;
110184        if test "x$enableval" = "xyes"; then
110185          enable_plugin="yes"
110186        else if test "x$enableval" = "xforce"; then
110187          enable_plugin="yes"
110188          force="yes"
110189        else
110190          enable_plugin="no (disabled on command line)"
110191        fi; fi
110192
110193else
110194
110195        if test "x$enable_all_plugins" = "xauto"; then
110196          if test "x$plugin_buddyinfo" = "xyes"; then
110197            enable_plugin="yes"
110198          else
110199            enable_plugin="$plugin_buddyinfo"
110200          fi
110201        else
110202          enable_plugin="$enable_all_plugins"
110203        fi
110204
110205
110206fi
110207
110208    if test "x$enable_plugin" = "xyes"; then
110209      if test "x$plugin_buddyinfo" = "xyes" || test "x$force" = "xyes"; then
110210
110211$as_echo "#define HAVE_PLUGIN_BUDDYINFO 1" >>confdefs.h
110212
110213        if test "x$plugin_buddyinfo" != "xyes"; then
110214          dependency_warning="yes"
110215        fi
110216      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
110217        dependency_error="yes"
110218        enable_plugin="$plugin_buddyinfo (dependency error)"
110219      fi
110220    fi
110221     if test "x$enable_plugin" = "xyes"; then
110222  BUILD_PLUGIN_BUDDYINFO_TRUE=
110223  BUILD_PLUGIN_BUDDYINFO_FALSE='#'
110224else
110225  BUILD_PLUGIN_BUDDYINFO_TRUE='#'
110226  BUILD_PLUGIN_BUDDYINFO_FALSE=
110227fi
110228
110229    enable_buddyinfo="$enable_plugin"
110230
110231
110232
110233    enable_plugin="no"
110234    force="no"
110235    # Check whether --enable-capabilities was given.
110236if test "${enable_capabilities+set}" = set; then :
110237  enableval=$enable_capabilities;
110238        if test "x$enableval" = "xyes"; then
110239          enable_plugin="yes"
110240        else if test "x$enableval" = "xforce"; then
110241          enable_plugin="yes"
110242          force="yes"
110243        else
110244          enable_plugin="no (disabled on command line)"
110245        fi; fi
110246
110247else
110248
110249        if test "x$enable_all_plugins" = "xauto"; then
110250          if test "x$plugin_capabilities" = "xyes"; then
110251            enable_plugin="yes"
110252          else
110253            enable_plugin="$plugin_capabilities"
110254          fi
110255        else
110256          enable_plugin="$enable_all_plugins"
110257        fi
110258
110259
110260fi
110261
110262    if test "x$enable_plugin" = "xyes"; then
110263      if test "x$plugin_capabilities" = "xyes" || test "x$force" = "xyes"; then
110264
110265$as_echo "#define HAVE_PLUGIN_CAPABILITIES 1" >>confdefs.h
110266
110267        if test "x$plugin_capabilities" != "xyes"; then
110268          dependency_warning="yes"
110269        fi
110270      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
110271        dependency_error="yes"
110272        enable_plugin="$plugin_capabilities (dependency error)"
110273      fi
110274    fi
110275     if test "x$enable_plugin" = "xyes"; then
110276  BUILD_PLUGIN_CAPABILITIES_TRUE=
110277  BUILD_PLUGIN_CAPABILITIES_FALSE='#'
110278else
110279  BUILD_PLUGIN_CAPABILITIES_TRUE='#'
110280  BUILD_PLUGIN_CAPABILITIES_FALSE=
110281fi
110282
110283    enable_capabilities="$enable_plugin"
110284
110285
110286
110287    enable_plugin="no"
110288    force="no"
110289    # Check whether --enable-ceph was given.
110290if test "${enable_ceph+set}" = set; then :
110291  enableval=$enable_ceph;
110292        if test "x$enableval" = "xyes"; then
110293          enable_plugin="yes"
110294        else if test "x$enableval" = "xforce"; then
110295          enable_plugin="yes"
110296          force="yes"
110297        else
110298          enable_plugin="no (disabled on command line)"
110299        fi; fi
110300
110301else
110302
110303        if test "x$enable_all_plugins" = "xauto"; then
110304          if test "x$plugin_ceph" = "xyes"; then
110305            enable_plugin="yes"
110306          else
110307            enable_plugin="$plugin_ceph"
110308          fi
110309        else
110310          enable_plugin="$enable_all_plugins"
110311        fi
110312
110313
110314fi
110315
110316    if test "x$enable_plugin" = "xyes"; then
110317      if test "x$plugin_ceph" = "xyes" || test "x$force" = "xyes"; then
110318
110319$as_echo "#define HAVE_PLUGIN_CEPH 1" >>confdefs.h
110320
110321        if test "x$plugin_ceph" != "xyes"; then
110322          dependency_warning="yes"
110323        fi
110324      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
110325        dependency_error="yes"
110326        enable_plugin="$plugin_ceph (dependency error)"
110327      fi
110328    fi
110329     if test "x$enable_plugin" = "xyes"; then
110330  BUILD_PLUGIN_CEPH_TRUE=
110331  BUILD_PLUGIN_CEPH_FALSE='#'
110332else
110333  BUILD_PLUGIN_CEPH_TRUE='#'
110334  BUILD_PLUGIN_CEPH_FALSE=
110335fi
110336
110337    enable_ceph="$enable_plugin"
110338
110339
110340
110341    enable_plugin="no"
110342    force="no"
110343    # Check whether --enable-cgroups was given.
110344if test "${enable_cgroups+set}" = set; then :
110345  enableval=$enable_cgroups;
110346        if test "x$enableval" = "xyes"; then
110347          enable_plugin="yes"
110348        else if test "x$enableval" = "xforce"; then
110349          enable_plugin="yes"
110350          force="yes"
110351        else
110352          enable_plugin="no (disabled on command line)"
110353        fi; fi
110354
110355else
110356
110357        if test "x$enable_all_plugins" = "xauto"; then
110358          if test "x$plugin_cgroups" = "xyes"; then
110359            enable_plugin="yes"
110360          else
110361            enable_plugin="$plugin_cgroups"
110362          fi
110363        else
110364          enable_plugin="$enable_all_plugins"
110365        fi
110366
110367
110368fi
110369
110370    if test "x$enable_plugin" = "xyes"; then
110371      if test "x$plugin_cgroups" = "xyes" || test "x$force" = "xyes"; then
110372
110373$as_echo "#define HAVE_PLUGIN_CGROUPS 1" >>confdefs.h
110374
110375        if test "x$plugin_cgroups" != "xyes"; then
110376          dependency_warning="yes"
110377        fi
110378      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
110379        dependency_error="yes"
110380        enable_plugin="$plugin_cgroups (dependency error)"
110381      fi
110382    fi
110383     if test "x$enable_plugin" = "xyes"; then
110384  BUILD_PLUGIN_CGROUPS_TRUE=
110385  BUILD_PLUGIN_CGROUPS_FALSE='#'
110386else
110387  BUILD_PLUGIN_CGROUPS_TRUE='#'
110388  BUILD_PLUGIN_CGROUPS_FALSE=
110389fi
110390
110391    enable_cgroups="$enable_plugin"
110392
110393
110394
110395    enable_plugin="no"
110396    force="no"
110397    # Check whether --enable-chrony was given.
110398if test "${enable_chrony+set}" = set; then :
110399  enableval=$enable_chrony;
110400        if test "x$enableval" = "xyes"; then
110401          enable_plugin="yes"
110402        else if test "x$enableval" = "xforce"; then
110403          enable_plugin="yes"
110404          force="yes"
110405        else
110406          enable_plugin="no (disabled on command line)"
110407        fi; fi
110408
110409else
110410
110411        if test "x$enable_all_plugins" = "xauto"; then
110412          if test "xyes" = "xyes"; then
110413            enable_plugin="yes"
110414          else
110415            enable_plugin="yes"
110416          fi
110417        else
110418          enable_plugin="$enable_all_plugins"
110419        fi
110420
110421
110422fi
110423
110424    if test "x$enable_plugin" = "xyes"; then
110425      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
110426
110427$as_echo "#define HAVE_PLUGIN_CHRONY 1" >>confdefs.h
110428
110429        if test "xyes" != "xyes"; then
110430          dependency_warning="yes"
110431        fi
110432      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
110433        dependency_error="yes"
110434        enable_plugin="yes (dependency error)"
110435      fi
110436    fi
110437     if test "x$enable_plugin" = "xyes"; then
110438  BUILD_PLUGIN_CHRONY_TRUE=
110439  BUILD_PLUGIN_CHRONY_FALSE='#'
110440else
110441  BUILD_PLUGIN_CHRONY_TRUE='#'
110442  BUILD_PLUGIN_CHRONY_FALSE=
110443fi
110444
110445    enable_chrony="$enable_plugin"
110446
110447
110448
110449    enable_plugin="no"
110450    force="no"
110451    # Check whether --enable-check_uptime was given.
110452if test "${enable_check_uptime+set}" = set; then :
110453  enableval=$enable_check_uptime;
110454        if test "x$enableval" = "xyes"; then
110455          enable_plugin="yes"
110456        else if test "x$enableval" = "xforce"; then
110457          enable_plugin="yes"
110458          force="yes"
110459        else
110460          enable_plugin="no (disabled on command line)"
110461        fi; fi
110462
110463else
110464
110465        if test "x$enable_all_plugins" = "xauto"; then
110466          if test "xyes" = "xyes"; then
110467            enable_plugin="yes"
110468          else
110469            enable_plugin="yes"
110470          fi
110471        else
110472          enable_plugin="$enable_all_plugins"
110473        fi
110474
110475
110476fi
110477
110478    if test "x$enable_plugin" = "xyes"; then
110479      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
110480
110481$as_echo "#define HAVE_PLUGIN_CHECK_UPTIME 1" >>confdefs.h
110482
110483        if test "xyes" != "xyes"; then
110484          dependency_warning="yes"
110485        fi
110486      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
110487        dependency_error="yes"
110488        enable_plugin="yes (dependency error)"
110489      fi
110490    fi
110491     if test "x$enable_plugin" = "xyes"; then
110492  BUILD_PLUGIN_CHECK_UPTIME_TRUE=
110493  BUILD_PLUGIN_CHECK_UPTIME_FALSE='#'
110494else
110495  BUILD_PLUGIN_CHECK_UPTIME_TRUE='#'
110496  BUILD_PLUGIN_CHECK_UPTIME_FALSE=
110497fi
110498
110499    enable_check_uptime="$enable_plugin"
110500
110501
110502
110503    enable_plugin="no"
110504    force="no"
110505    # Check whether --enable-connectivity was given.
110506if test "${enable_connectivity+set}" = set; then :
110507  enableval=$enable_connectivity;
110508        if test "x$enableval" = "xyes"; then
110509          enable_plugin="yes"
110510        else if test "x$enableval" = "xforce"; then
110511          enable_plugin="yes"
110512          force="yes"
110513        else
110514          enable_plugin="no (disabled on command line)"
110515        fi; fi
110516
110517else
110518
110519        if test "x$enable_all_plugins" = "xauto"; then
110520          if test "x$plugin_connectivity" = "xyes"; then
110521            enable_plugin="yes"
110522          else
110523            enable_plugin="$plugin_connectivity"
110524          fi
110525        else
110526          enable_plugin="$enable_all_plugins"
110527        fi
110528
110529
110530fi
110531
110532    if test "x$enable_plugin" = "xyes"; then
110533      if test "x$plugin_connectivity" = "xyes" || test "x$force" = "xyes"; then
110534
110535$as_echo "#define HAVE_PLUGIN_CONNECTIVITY 1" >>confdefs.h
110536
110537        if test "x$plugin_connectivity" != "xyes"; then
110538          dependency_warning="yes"
110539        fi
110540      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
110541        dependency_error="yes"
110542        enable_plugin="$plugin_connectivity (dependency error)"
110543      fi
110544    fi
110545     if test "x$enable_plugin" = "xyes"; then
110546  BUILD_PLUGIN_CONNECTIVITY_TRUE=
110547  BUILD_PLUGIN_CONNECTIVITY_FALSE='#'
110548else
110549  BUILD_PLUGIN_CONNECTIVITY_TRUE='#'
110550  BUILD_PLUGIN_CONNECTIVITY_FALSE=
110551fi
110552
110553    enable_connectivity="$enable_plugin"
110554
110555
110556
110557    enable_plugin="no"
110558    force="no"
110559    # Check whether --enable-conntrack was given.
110560if test "${enable_conntrack+set}" = set; then :
110561  enableval=$enable_conntrack;
110562        if test "x$enableval" = "xyes"; then
110563          enable_plugin="yes"
110564        else if test "x$enableval" = "xforce"; then
110565          enable_plugin="yes"
110566          force="yes"
110567        else
110568          enable_plugin="no (disabled on command line)"
110569        fi; fi
110570
110571else
110572
110573        if test "x$enable_all_plugins" = "xauto"; then
110574          if test "x$plugin_conntrack" = "xyes"; then
110575            enable_plugin="yes"
110576          else
110577            enable_plugin="$plugin_conntrack"
110578          fi
110579        else
110580          enable_plugin="$enable_all_plugins"
110581        fi
110582
110583
110584fi
110585
110586    if test "x$enable_plugin" = "xyes"; then
110587      if test "x$plugin_conntrack" = "xyes" || test "x$force" = "xyes"; then
110588
110589$as_echo "#define HAVE_PLUGIN_CONNTRACK 1" >>confdefs.h
110590
110591        if test "x$plugin_conntrack" != "xyes"; then
110592          dependency_warning="yes"
110593        fi
110594      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
110595        dependency_error="yes"
110596        enable_plugin="$plugin_conntrack (dependency error)"
110597      fi
110598    fi
110599     if test "x$enable_plugin" = "xyes"; then
110600  BUILD_PLUGIN_CONNTRACK_TRUE=
110601  BUILD_PLUGIN_CONNTRACK_FALSE='#'
110602else
110603  BUILD_PLUGIN_CONNTRACK_TRUE='#'
110604  BUILD_PLUGIN_CONNTRACK_FALSE=
110605fi
110606
110607    enable_conntrack="$enable_plugin"
110608
110609
110610
110611    enable_plugin="no"
110612    force="no"
110613    # Check whether --enable-contextswitch was given.
110614if test "${enable_contextswitch+set}" = set; then :
110615  enableval=$enable_contextswitch;
110616        if test "x$enableval" = "xyes"; then
110617          enable_plugin="yes"
110618        else if test "x$enableval" = "xforce"; then
110619          enable_plugin="yes"
110620          force="yes"
110621        else
110622          enable_plugin="no (disabled on command line)"
110623        fi; fi
110624
110625else
110626
110627        if test "x$enable_all_plugins" = "xauto"; then
110628          if test "x$plugin_contextswitch" = "xyes"; then
110629            enable_plugin="yes"
110630          else
110631            enable_plugin="$plugin_contextswitch"
110632          fi
110633        else
110634          enable_plugin="$enable_all_plugins"
110635        fi
110636
110637
110638fi
110639
110640    if test "x$enable_plugin" = "xyes"; then
110641      if test "x$plugin_contextswitch" = "xyes" || test "x$force" = "xyes"; then
110642
110643$as_echo "#define HAVE_PLUGIN_CONTEXTSWITCH 1" >>confdefs.h
110644
110645        if test "x$plugin_contextswitch" != "xyes"; then
110646          dependency_warning="yes"
110647        fi
110648      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
110649        dependency_error="yes"
110650        enable_plugin="$plugin_contextswitch (dependency error)"
110651      fi
110652    fi
110653     if test "x$enable_plugin" = "xyes"; then
110654  BUILD_PLUGIN_CONTEXTSWITCH_TRUE=
110655  BUILD_PLUGIN_CONTEXTSWITCH_FALSE='#'
110656else
110657  BUILD_PLUGIN_CONTEXTSWITCH_TRUE='#'
110658  BUILD_PLUGIN_CONTEXTSWITCH_FALSE=
110659fi
110660
110661    enable_contextswitch="$enable_plugin"
110662
110663
110664
110665    enable_plugin="no"
110666    force="no"
110667    # Check whether --enable-cpu was given.
110668if test "${enable_cpu+set}" = set; then :
110669  enableval=$enable_cpu;
110670        if test "x$enableval" = "xyes"; then
110671          enable_plugin="yes"
110672        else if test "x$enableval" = "xforce"; then
110673          enable_plugin="yes"
110674          force="yes"
110675        else
110676          enable_plugin="no (disabled on command line)"
110677        fi; fi
110678
110679else
110680
110681        if test "x$enable_all_plugins" = "xauto"; then
110682          if test "x$plugin_cpu" = "xyes"; then
110683            enable_plugin="yes"
110684          else
110685            enable_plugin="$plugin_cpu"
110686          fi
110687        else
110688          enable_plugin="$enable_all_plugins"
110689        fi
110690
110691
110692fi
110693
110694    if test "x$enable_plugin" = "xyes"; then
110695      if test "x$plugin_cpu" = "xyes" || test "x$force" = "xyes"; then
110696
110697$as_echo "#define HAVE_PLUGIN_CPU 1" >>confdefs.h
110698
110699        if test "x$plugin_cpu" != "xyes"; then
110700          dependency_warning="yes"
110701        fi
110702      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
110703        dependency_error="yes"
110704        enable_plugin="$plugin_cpu (dependency error)"
110705      fi
110706    fi
110707     if test "x$enable_plugin" = "xyes"; then
110708  BUILD_PLUGIN_CPU_TRUE=
110709  BUILD_PLUGIN_CPU_FALSE='#'
110710else
110711  BUILD_PLUGIN_CPU_TRUE='#'
110712  BUILD_PLUGIN_CPU_FALSE=
110713fi
110714
110715    enable_cpu="$enable_plugin"
110716
110717
110718
110719    enable_plugin="no"
110720    force="no"
110721    # Check whether --enable-cpufreq was given.
110722if test "${enable_cpufreq+set}" = set; then :
110723  enableval=$enable_cpufreq;
110724        if test "x$enableval" = "xyes"; then
110725          enable_plugin="yes"
110726        else if test "x$enableval" = "xforce"; then
110727          enable_plugin="yes"
110728          force="yes"
110729        else
110730          enable_plugin="no (disabled on command line)"
110731        fi; fi
110732
110733else
110734
110735        if test "x$enable_all_plugins" = "xauto"; then
110736          if test "x$plugin_cpufreq" = "xyes"; then
110737            enable_plugin="yes"
110738          else
110739            enable_plugin="$plugin_cpufreq"
110740          fi
110741        else
110742          enable_plugin="$enable_all_plugins"
110743        fi
110744
110745
110746fi
110747
110748    if test "x$enable_plugin" = "xyes"; then
110749      if test "x$plugin_cpufreq" = "xyes" || test "x$force" = "xyes"; then
110750
110751$as_echo "#define HAVE_PLUGIN_CPUFREQ 1" >>confdefs.h
110752
110753        if test "x$plugin_cpufreq" != "xyes"; then
110754          dependency_warning="yes"
110755        fi
110756      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
110757        dependency_error="yes"
110758        enable_plugin="$plugin_cpufreq (dependency error)"
110759      fi
110760    fi
110761     if test "x$enable_plugin" = "xyes"; then
110762  BUILD_PLUGIN_CPUFREQ_TRUE=
110763  BUILD_PLUGIN_CPUFREQ_FALSE='#'
110764else
110765  BUILD_PLUGIN_CPUFREQ_TRUE='#'
110766  BUILD_PLUGIN_CPUFREQ_FALSE=
110767fi
110768
110769    enable_cpufreq="$enable_plugin"
110770
110771
110772
110773    enable_plugin="no"
110774    force="no"
110775    # Check whether --enable-cpusleep was given.
110776if test "${enable_cpusleep+set}" = set; then :
110777  enableval=$enable_cpusleep;
110778        if test "x$enableval" = "xyes"; then
110779          enable_plugin="yes"
110780        else if test "x$enableval" = "xforce"; then
110781          enable_plugin="yes"
110782          force="yes"
110783        else
110784          enable_plugin="no (disabled on command line)"
110785        fi; fi
110786
110787else
110788
110789        if test "x$enable_all_plugins" = "xauto"; then
110790          if test "x$plugin_cpusleep" = "xyes"; then
110791            enable_plugin="yes"
110792          else
110793            enable_plugin="$plugin_cpusleep"
110794          fi
110795        else
110796          enable_plugin="$enable_all_plugins"
110797        fi
110798
110799
110800fi
110801
110802    if test "x$enable_plugin" = "xyes"; then
110803      if test "x$plugin_cpusleep" = "xyes" || test "x$force" = "xyes"; then
110804
110805$as_echo "#define HAVE_PLUGIN_CPUSLEEP 1" >>confdefs.h
110806
110807        if test "x$plugin_cpusleep" != "xyes"; then
110808          dependency_warning="yes"
110809        fi
110810      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
110811        dependency_error="yes"
110812        enable_plugin="$plugin_cpusleep (dependency error)"
110813      fi
110814    fi
110815     if test "x$enable_plugin" = "xyes"; then
110816  BUILD_PLUGIN_CPUSLEEP_TRUE=
110817  BUILD_PLUGIN_CPUSLEEP_FALSE='#'
110818else
110819  BUILD_PLUGIN_CPUSLEEP_TRUE='#'
110820  BUILD_PLUGIN_CPUSLEEP_FALSE=
110821fi
110822
110823    enable_cpusleep="$enable_plugin"
110824
110825
110826
110827    enable_plugin="no"
110828    force="no"
110829    # Check whether --enable-csv was given.
110830if test "${enable_csv+set}" = set; then :
110831  enableval=$enable_csv;
110832        if test "x$enableval" = "xyes"; then
110833          enable_plugin="yes"
110834        else if test "x$enableval" = "xforce"; then
110835          enable_plugin="yes"
110836          force="yes"
110837        else
110838          enable_plugin="no (disabled on command line)"
110839        fi; fi
110840
110841else
110842
110843        if test "x$enable_all_plugins" = "xauto"; then
110844          if test "xyes" = "xyes"; then
110845            enable_plugin="yes"
110846          else
110847            enable_plugin="yes"
110848          fi
110849        else
110850          enable_plugin="$enable_all_plugins"
110851        fi
110852
110853
110854fi
110855
110856    if test "x$enable_plugin" = "xyes"; then
110857      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
110858
110859$as_echo "#define HAVE_PLUGIN_CSV 1" >>confdefs.h
110860
110861        if test "xyes" != "xyes"; then
110862          dependency_warning="yes"
110863        fi
110864      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
110865        dependency_error="yes"
110866        enable_plugin="yes (dependency error)"
110867      fi
110868    fi
110869     if test "x$enable_plugin" = "xyes"; then
110870  BUILD_PLUGIN_CSV_TRUE=
110871  BUILD_PLUGIN_CSV_FALSE='#'
110872else
110873  BUILD_PLUGIN_CSV_TRUE='#'
110874  BUILD_PLUGIN_CSV_FALSE=
110875fi
110876
110877    enable_csv="$enable_plugin"
110878
110879
110880
110881    enable_plugin="no"
110882    force="no"
110883    # Check whether --enable-curl was given.
110884if test "${enable_curl+set}" = set; then :
110885  enableval=$enable_curl;
110886        if test "x$enableval" = "xyes"; then
110887          enable_plugin="yes"
110888        else if test "x$enableval" = "xforce"; then
110889          enable_plugin="yes"
110890          force="yes"
110891        else
110892          enable_plugin="no (disabled on command line)"
110893        fi; fi
110894
110895else
110896
110897        if test "x$enable_all_plugins" = "xauto"; then
110898          if test "x$with_libcurl" = "xyes"; then
110899            enable_plugin="yes"
110900          else
110901            enable_plugin="$with_libcurl"
110902          fi
110903        else
110904          enable_plugin="$enable_all_plugins"
110905        fi
110906
110907
110908fi
110909
110910    if test "x$enable_plugin" = "xyes"; then
110911      if test "x$with_libcurl" = "xyes" || test "x$force" = "xyes"; then
110912
110913$as_echo "#define HAVE_PLUGIN_CURL 1" >>confdefs.h
110914
110915        if test "x$with_libcurl" != "xyes"; then
110916          dependency_warning="yes"
110917        fi
110918      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
110919        dependency_error="yes"
110920        enable_plugin="$with_libcurl (dependency error)"
110921      fi
110922    fi
110923     if test "x$enable_plugin" = "xyes"; then
110924  BUILD_PLUGIN_CURL_TRUE=
110925  BUILD_PLUGIN_CURL_FALSE='#'
110926else
110927  BUILD_PLUGIN_CURL_TRUE='#'
110928  BUILD_PLUGIN_CURL_FALSE=
110929fi
110930
110931    enable_curl="$enable_plugin"
110932
110933
110934
110935    enable_plugin="no"
110936    force="no"
110937    # Check whether --enable-curl_json was given.
110938if test "${enable_curl_json+set}" = set; then :
110939  enableval=$enable_curl_json;
110940        if test "x$enableval" = "xyes"; then
110941          enable_plugin="yes"
110942        else if test "x$enableval" = "xforce"; then
110943          enable_plugin="yes"
110944          force="yes"
110945        else
110946          enable_plugin="no (disabled on command line)"
110947        fi; fi
110948
110949else
110950
110951        if test "x$enable_all_plugins" = "xauto"; then
110952          if test "x$plugin_curl_json" = "xyes"; then
110953            enable_plugin="yes"
110954          else
110955            enable_plugin="$plugin_curl_json"
110956          fi
110957        else
110958          enable_plugin="$enable_all_plugins"
110959        fi
110960
110961
110962fi
110963
110964    if test "x$enable_plugin" = "xyes"; then
110965      if test "x$plugin_curl_json" = "xyes" || test "x$force" = "xyes"; then
110966
110967$as_echo "#define HAVE_PLUGIN_CURL_JSON 1" >>confdefs.h
110968
110969        if test "x$plugin_curl_json" != "xyes"; then
110970          dependency_warning="yes"
110971        fi
110972      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
110973        dependency_error="yes"
110974        enable_plugin="$plugin_curl_json (dependency error)"
110975      fi
110976    fi
110977     if test "x$enable_plugin" = "xyes"; then
110978  BUILD_PLUGIN_CURL_JSON_TRUE=
110979  BUILD_PLUGIN_CURL_JSON_FALSE='#'
110980else
110981  BUILD_PLUGIN_CURL_JSON_TRUE='#'
110982  BUILD_PLUGIN_CURL_JSON_FALSE=
110983fi
110984
110985    enable_curl_json="$enable_plugin"
110986
110987
110988
110989    enable_plugin="no"
110990    force="no"
110991    # Check whether --enable-curl_xml was given.
110992if test "${enable_curl_xml+set}" = set; then :
110993  enableval=$enable_curl_xml;
110994        if test "x$enableval" = "xyes"; then
110995          enable_plugin="yes"
110996        else if test "x$enableval" = "xforce"; then
110997          enable_plugin="yes"
110998          force="yes"
110999        else
111000          enable_plugin="no (disabled on command line)"
111001        fi; fi
111002
111003else
111004
111005        if test "x$enable_all_plugins" = "xauto"; then
111006          if test "x$plugin_curl_xml" = "xyes"; then
111007            enable_plugin="yes"
111008          else
111009            enable_plugin="$plugin_curl_xml"
111010          fi
111011        else
111012          enable_plugin="$enable_all_plugins"
111013        fi
111014
111015
111016fi
111017
111018    if test "x$enable_plugin" = "xyes"; then
111019      if test "x$plugin_curl_xml" = "xyes" || test "x$force" = "xyes"; then
111020
111021$as_echo "#define HAVE_PLUGIN_CURL_XML 1" >>confdefs.h
111022
111023        if test "x$plugin_curl_xml" != "xyes"; then
111024          dependency_warning="yes"
111025        fi
111026      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
111027        dependency_error="yes"
111028        enable_plugin="$plugin_curl_xml (dependency error)"
111029      fi
111030    fi
111031     if test "x$enable_plugin" = "xyes"; then
111032  BUILD_PLUGIN_CURL_XML_TRUE=
111033  BUILD_PLUGIN_CURL_XML_FALSE='#'
111034else
111035  BUILD_PLUGIN_CURL_XML_TRUE='#'
111036  BUILD_PLUGIN_CURL_XML_FALSE=
111037fi
111038
111039    enable_curl_xml="$enable_plugin"
111040
111041
111042
111043    enable_plugin="no"
111044    force="no"
111045    # Check whether --enable-dbi was given.
111046if test "${enable_dbi+set}" = set; then :
111047  enableval=$enable_dbi;
111048        if test "x$enableval" = "xyes"; then
111049          enable_plugin="yes"
111050        else if test "x$enableval" = "xforce"; then
111051          enable_plugin="yes"
111052          force="yes"
111053        else
111054          enable_plugin="no (disabled on command line)"
111055        fi; fi
111056
111057else
111058
111059        if test "x$enable_all_plugins" = "xauto"; then
111060          if test "x$with_libdbi" = "xyes"; then
111061            enable_plugin="yes"
111062          else
111063            enable_plugin="$with_libdbi"
111064          fi
111065        else
111066          enable_plugin="$enable_all_plugins"
111067        fi
111068
111069
111070fi
111071
111072    if test "x$enable_plugin" = "xyes"; then
111073      if test "x$with_libdbi" = "xyes" || test "x$force" = "xyes"; then
111074
111075$as_echo "#define HAVE_PLUGIN_DBI 1" >>confdefs.h
111076
111077        if test "x$with_libdbi" != "xyes"; then
111078          dependency_warning="yes"
111079        fi
111080      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
111081        dependency_error="yes"
111082        enable_plugin="$with_libdbi (dependency error)"
111083      fi
111084    fi
111085     if test "x$enable_plugin" = "xyes"; then
111086  BUILD_PLUGIN_DBI_TRUE=
111087  BUILD_PLUGIN_DBI_FALSE='#'
111088else
111089  BUILD_PLUGIN_DBI_TRUE='#'
111090  BUILD_PLUGIN_DBI_FALSE=
111091fi
111092
111093    enable_dbi="$enable_plugin"
111094
111095
111096
111097    enable_plugin="no"
111098    force="no"
111099    # Check whether --enable-dcpmm was given.
111100if test "${enable_dcpmm+set}" = set; then :
111101  enableval=$enable_dcpmm;
111102        if test "x$enableval" = "xyes"; then
111103          enable_plugin="yes"
111104        else if test "x$enableval" = "xforce"; then
111105          enable_plugin="yes"
111106          force="yes"
111107        else
111108          enable_plugin="no (disabled on command line)"
111109        fi; fi
111110
111111else
111112
111113        if test "x$enable_all_plugins" = "xauto"; then
111114          if test "x$with_libpmwapi" = "xyes"; then
111115            enable_plugin="yes"
111116          else
111117            enable_plugin="$with_libpmwapi"
111118          fi
111119        else
111120          enable_plugin="$enable_all_plugins"
111121        fi
111122
111123
111124fi
111125
111126    if test "x$enable_plugin" = "xyes"; then
111127      if test "x$with_libpmwapi" = "xyes" || test "x$force" = "xyes"; then
111128
111129$as_echo "#define HAVE_PLUGIN_DCPMM 1" >>confdefs.h
111130
111131        if test "x$with_libpmwapi" != "xyes"; then
111132          dependency_warning="yes"
111133        fi
111134      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
111135        dependency_error="yes"
111136        enable_plugin="$with_libpmwapi (dependency error)"
111137      fi
111138    fi
111139     if test "x$enable_plugin" = "xyes"; then
111140  BUILD_PLUGIN_DCPMM_TRUE=
111141  BUILD_PLUGIN_DCPMM_FALSE='#'
111142else
111143  BUILD_PLUGIN_DCPMM_TRUE='#'
111144  BUILD_PLUGIN_DCPMM_FALSE=
111145fi
111146
111147    enable_dcpmm="$enable_plugin"
111148
111149
111150
111151    enable_plugin="no"
111152    force="no"
111153    # Check whether --enable-df was given.
111154if test "${enable_df+set}" = set; then :
111155  enableval=$enable_df;
111156        if test "x$enableval" = "xyes"; then
111157          enable_plugin="yes"
111158        else if test "x$enableval" = "xforce"; then
111159          enable_plugin="yes"
111160          force="yes"
111161        else
111162          enable_plugin="no (disabled on command line)"
111163        fi; fi
111164
111165else
111166
111167        if test "x$enable_all_plugins" = "xauto"; then
111168          if test "x$plugin_df" = "xyes"; then
111169            enable_plugin="yes"
111170          else
111171            enable_plugin="$plugin_df"
111172          fi
111173        else
111174          enable_plugin="$enable_all_plugins"
111175        fi
111176
111177
111178fi
111179
111180    if test "x$enable_plugin" = "xyes"; then
111181      if test "x$plugin_df" = "xyes" || test "x$force" = "xyes"; then
111182
111183$as_echo "#define HAVE_PLUGIN_DF 1" >>confdefs.h
111184
111185        if test "x$plugin_df" != "xyes"; then
111186          dependency_warning="yes"
111187        fi
111188      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
111189        dependency_error="yes"
111190        enable_plugin="$plugin_df (dependency error)"
111191      fi
111192    fi
111193     if test "x$enable_plugin" = "xyes"; then
111194  BUILD_PLUGIN_DF_TRUE=
111195  BUILD_PLUGIN_DF_FALSE='#'
111196else
111197  BUILD_PLUGIN_DF_TRUE='#'
111198  BUILD_PLUGIN_DF_FALSE=
111199fi
111200
111201    enable_df="$enable_plugin"
111202
111203
111204
111205    enable_plugin="no"
111206    force="no"
111207    # Check whether --enable-disk was given.
111208if test "${enable_disk+set}" = set; then :
111209  enableval=$enable_disk;
111210        if test "x$enableval" = "xyes"; then
111211          enable_plugin="yes"
111212        else if test "x$enableval" = "xforce"; then
111213          enable_plugin="yes"
111214          force="yes"
111215        else
111216          enable_plugin="no (disabled on command line)"
111217        fi; fi
111218
111219else
111220
111221        if test "x$enable_all_plugins" = "xauto"; then
111222          if test "x$plugin_disk" = "xyes"; then
111223            enable_plugin="yes"
111224          else
111225            enable_plugin="$plugin_disk"
111226          fi
111227        else
111228          enable_plugin="$enable_all_plugins"
111229        fi
111230
111231
111232fi
111233
111234    if test "x$enable_plugin" = "xyes"; then
111235      if test "x$plugin_disk" = "xyes" || test "x$force" = "xyes"; then
111236
111237$as_echo "#define HAVE_PLUGIN_DISK 1" >>confdefs.h
111238
111239        if test "x$plugin_disk" != "xyes"; then
111240          dependency_warning="yes"
111241        fi
111242      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
111243        dependency_error="yes"
111244        enable_plugin="$plugin_disk (dependency error)"
111245      fi
111246    fi
111247     if test "x$enable_plugin" = "xyes"; then
111248  BUILD_PLUGIN_DISK_TRUE=
111249  BUILD_PLUGIN_DISK_FALSE='#'
111250else
111251  BUILD_PLUGIN_DISK_TRUE='#'
111252  BUILD_PLUGIN_DISK_FALSE=
111253fi
111254
111255    enable_disk="$enable_plugin"
111256
111257
111258
111259    enable_plugin="no"
111260    force="no"
111261    # Check whether --enable-dns was given.
111262if test "${enable_dns+set}" = set; then :
111263  enableval=$enable_dns;
111264        if test "x$enableval" = "xyes"; then
111265          enable_plugin="yes"
111266        else if test "x$enableval" = "xforce"; then
111267          enable_plugin="yes"
111268          force="yes"
111269        else
111270          enable_plugin="no (disabled on command line)"
111271        fi; fi
111272
111273else
111274
111275        if test "x$enable_all_plugins" = "xauto"; then
111276          if test "x$with_libpcap" = "xyes"; then
111277            enable_plugin="yes"
111278          else
111279            enable_plugin="$with_libpcap"
111280          fi
111281        else
111282          enable_plugin="$enable_all_plugins"
111283        fi
111284
111285
111286fi
111287
111288    if test "x$enable_plugin" = "xyes"; then
111289      if test "x$with_libpcap" = "xyes" || test "x$force" = "xyes"; then
111290
111291$as_echo "#define HAVE_PLUGIN_DNS 1" >>confdefs.h
111292
111293        if test "x$with_libpcap" != "xyes"; then
111294          dependency_warning="yes"
111295        fi
111296      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
111297        dependency_error="yes"
111298        enable_plugin="$with_libpcap (dependency error)"
111299      fi
111300    fi
111301     if test "x$enable_plugin" = "xyes"; then
111302  BUILD_PLUGIN_DNS_TRUE=
111303  BUILD_PLUGIN_DNS_FALSE='#'
111304else
111305  BUILD_PLUGIN_DNS_TRUE='#'
111306  BUILD_PLUGIN_DNS_FALSE=
111307fi
111308
111309    enable_dns="$enable_plugin"
111310
111311
111312
111313    enable_plugin="no"
111314    force="no"
111315    # Check whether --enable-dpdkevents was given.
111316if test "${enable_dpdkevents+set}" = set; then :
111317  enableval=$enable_dpdkevents;
111318        if test "x$enableval" = "xyes"; then
111319          enable_plugin="yes"
111320        else if test "x$enableval" = "xforce"; then
111321          enable_plugin="yes"
111322          force="yes"
111323        else
111324          enable_plugin="no (disabled on command line)"
111325        fi; fi
111326
111327else
111328
111329        if test "x$enable_all_plugins" = "xauto"; then
111330          if test "x$plugin_dpdkevents" = "xyes"; then
111331            enable_plugin="yes"
111332          else
111333            enable_plugin="$plugin_dpdkevents"
111334          fi
111335        else
111336          enable_plugin="$enable_all_plugins"
111337        fi
111338
111339
111340fi
111341
111342    if test "x$enable_plugin" = "xyes"; then
111343      if test "x$plugin_dpdkevents" = "xyes" || test "x$force" = "xyes"; then
111344
111345$as_echo "#define HAVE_PLUGIN_DPDKEVENTS 1" >>confdefs.h
111346
111347        if test "x$plugin_dpdkevents" != "xyes"; then
111348          dependency_warning="yes"
111349        fi
111350      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
111351        dependency_error="yes"
111352        enable_plugin="$plugin_dpdkevents (dependency error)"
111353      fi
111354    fi
111355     if test "x$enable_plugin" = "xyes"; then
111356  BUILD_PLUGIN_DPDKEVENTS_TRUE=
111357  BUILD_PLUGIN_DPDKEVENTS_FALSE='#'
111358else
111359  BUILD_PLUGIN_DPDKEVENTS_TRUE='#'
111360  BUILD_PLUGIN_DPDKEVENTS_FALSE=
111361fi
111362
111363    enable_dpdkevents="$enable_plugin"
111364
111365
111366
111367    enable_plugin="no"
111368    force="no"
111369    # Check whether --enable-dpdkstat was given.
111370if test "${enable_dpdkstat+set}" = set; then :
111371  enableval=$enable_dpdkstat;
111372        if test "x$enableval" = "xyes"; then
111373          enable_plugin="yes"
111374        else if test "x$enableval" = "xforce"; then
111375          enable_plugin="yes"
111376          force="yes"
111377        else
111378          enable_plugin="no (disabled on command line)"
111379        fi; fi
111380
111381else
111382
111383        if test "x$enable_all_plugins" = "xauto"; then
111384          if test "x$plugin_dpdkstat" = "xyes"; then
111385            enable_plugin="yes"
111386          else
111387            enable_plugin="$plugin_dpdkstat"
111388          fi
111389        else
111390          enable_plugin="$enable_all_plugins"
111391        fi
111392
111393
111394fi
111395
111396    if test "x$enable_plugin" = "xyes"; then
111397      if test "x$plugin_dpdkstat" = "xyes" || test "x$force" = "xyes"; then
111398
111399$as_echo "#define HAVE_PLUGIN_DPDKSTAT 1" >>confdefs.h
111400
111401        if test "x$plugin_dpdkstat" != "xyes"; then
111402          dependency_warning="yes"
111403        fi
111404      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
111405        dependency_error="yes"
111406        enable_plugin="$plugin_dpdkstat (dependency error)"
111407      fi
111408    fi
111409     if test "x$enable_plugin" = "xyes"; then
111410  BUILD_PLUGIN_DPDKSTAT_TRUE=
111411  BUILD_PLUGIN_DPDKSTAT_FALSE='#'
111412else
111413  BUILD_PLUGIN_DPDKSTAT_TRUE='#'
111414  BUILD_PLUGIN_DPDKSTAT_FALSE=
111415fi
111416
111417    enable_dpdkstat="$enable_plugin"
111418
111419
111420
111421    enable_plugin="no"
111422    force="no"
111423    # Check whether --enable-dpdk_telemetry was given.
111424if test "${enable_dpdk_telemetry+set}" = set; then :
111425  enableval=$enable_dpdk_telemetry;
111426        if test "x$enableval" = "xyes"; then
111427          enable_plugin="yes"
111428        else if test "x$enableval" = "xforce"; then
111429          enable_plugin="yes"
111430          force="yes"
111431        else
111432          enable_plugin="no (disabled on command line)"
111433        fi; fi
111434
111435else
111436
111437        if test "x$enable_all_plugins" = "xauto"; then
111438          if test "x$plugin_dpdk_telemetry" = "xyes"; then
111439            enable_plugin="yes"
111440          else
111441            enable_plugin="$plugin_dpdk_telemetry"
111442          fi
111443        else
111444          enable_plugin="$enable_all_plugins"
111445        fi
111446
111447
111448fi
111449
111450    if test "x$enable_plugin" = "xyes"; then
111451      if test "x$plugin_dpdk_telemetry" = "xyes" || test "x$force" = "xyes"; then
111452
111453$as_echo "#define HAVE_PLUGIN_DPDK_TELEMETRY 1" >>confdefs.h
111454
111455        if test "x$plugin_dpdk_telemetry" != "xyes"; then
111456          dependency_warning="yes"
111457        fi
111458      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
111459        dependency_error="yes"
111460        enable_plugin="$plugin_dpdk_telemetry (dependency error)"
111461      fi
111462    fi
111463     if test "x$enable_plugin" = "xyes"; then
111464  BUILD_PLUGIN_DPDK_TELEMETRY_TRUE=
111465  BUILD_PLUGIN_DPDK_TELEMETRY_FALSE='#'
111466else
111467  BUILD_PLUGIN_DPDK_TELEMETRY_TRUE='#'
111468  BUILD_PLUGIN_DPDK_TELEMETRY_FALSE=
111469fi
111470
111471    enable_dpdk_telemetry="$enable_plugin"
111472
111473
111474
111475    enable_plugin="no"
111476    force="no"
111477    # Check whether --enable-drbd was given.
111478if test "${enable_drbd+set}" = set; then :
111479  enableval=$enable_drbd;
111480        if test "x$enableval" = "xyes"; then
111481          enable_plugin="yes"
111482        else if test "x$enableval" = "xforce"; then
111483          enable_plugin="yes"
111484          force="yes"
111485        else
111486          enable_plugin="no (disabled on command line)"
111487        fi; fi
111488
111489else
111490
111491        if test "x$enable_all_plugins" = "xauto"; then
111492          if test "x$plugin_drbd" = "xyes"; then
111493            enable_plugin="yes"
111494          else
111495            enable_plugin="$plugin_drbd"
111496          fi
111497        else
111498          enable_plugin="$enable_all_plugins"
111499        fi
111500
111501
111502fi
111503
111504    if test "x$enable_plugin" = "xyes"; then
111505      if test "x$plugin_drbd" = "xyes" || test "x$force" = "xyes"; then
111506
111507$as_echo "#define HAVE_PLUGIN_DRBD 1" >>confdefs.h
111508
111509        if test "x$plugin_drbd" != "xyes"; then
111510          dependency_warning="yes"
111511        fi
111512      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
111513        dependency_error="yes"
111514        enable_plugin="$plugin_drbd (dependency error)"
111515      fi
111516    fi
111517     if test "x$enable_plugin" = "xyes"; then
111518  BUILD_PLUGIN_DRBD_TRUE=
111519  BUILD_PLUGIN_DRBD_FALSE='#'
111520else
111521  BUILD_PLUGIN_DRBD_TRUE='#'
111522  BUILD_PLUGIN_DRBD_FALSE=
111523fi
111524
111525    enable_drbd="$enable_plugin"
111526
111527
111528
111529    enable_plugin="no"
111530    force="no"
111531    # Check whether --enable-email was given.
111532if test "${enable_email+set}" = set; then :
111533  enableval=$enable_email;
111534        if test "x$enableval" = "xyes"; then
111535          enable_plugin="yes"
111536        else if test "x$enableval" = "xforce"; then
111537          enable_plugin="yes"
111538          force="yes"
111539        else
111540          enable_plugin="no (disabled on command line)"
111541        fi; fi
111542
111543else
111544
111545        if test "x$enable_all_plugins" = "xauto"; then
111546          if test "xyes" = "xyes"; then
111547            enable_plugin="yes"
111548          else
111549            enable_plugin="yes"
111550          fi
111551        else
111552          enable_plugin="$enable_all_plugins"
111553        fi
111554
111555
111556fi
111557
111558    if test "x$enable_plugin" = "xyes"; then
111559      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
111560
111561$as_echo "#define HAVE_PLUGIN_EMAIL 1" >>confdefs.h
111562
111563        if test "xyes" != "xyes"; then
111564          dependency_warning="yes"
111565        fi
111566      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
111567        dependency_error="yes"
111568        enable_plugin="yes (dependency error)"
111569      fi
111570    fi
111571     if test "x$enable_plugin" = "xyes"; then
111572  BUILD_PLUGIN_EMAIL_TRUE=
111573  BUILD_PLUGIN_EMAIL_FALSE='#'
111574else
111575  BUILD_PLUGIN_EMAIL_TRUE='#'
111576  BUILD_PLUGIN_EMAIL_FALSE=
111577fi
111578
111579    enable_email="$enable_plugin"
111580
111581
111582
111583    enable_plugin="no"
111584    force="no"
111585    # Check whether --enable-entropy was given.
111586if test "${enable_entropy+set}" = set; then :
111587  enableval=$enable_entropy;
111588        if test "x$enableval" = "xyes"; then
111589          enable_plugin="yes"
111590        else if test "x$enableval" = "xforce"; then
111591          enable_plugin="yes"
111592          force="yes"
111593        else
111594          enable_plugin="no (disabled on command line)"
111595        fi; fi
111596
111597else
111598
111599        if test "x$enable_all_plugins" = "xauto"; then
111600          if test "x$plugin_entropy" = "xyes"; then
111601            enable_plugin="yes"
111602          else
111603            enable_plugin="$plugin_entropy"
111604          fi
111605        else
111606          enable_plugin="$enable_all_plugins"
111607        fi
111608
111609
111610fi
111611
111612    if test "x$enable_plugin" = "xyes"; then
111613      if test "x$plugin_entropy" = "xyes" || test "x$force" = "xyes"; then
111614
111615$as_echo "#define HAVE_PLUGIN_ENTROPY 1" >>confdefs.h
111616
111617        if test "x$plugin_entropy" != "xyes"; then
111618          dependency_warning="yes"
111619        fi
111620      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
111621        dependency_error="yes"
111622        enable_plugin="$plugin_entropy (dependency error)"
111623      fi
111624    fi
111625     if test "x$enable_plugin" = "xyes"; then
111626  BUILD_PLUGIN_ENTROPY_TRUE=
111627  BUILD_PLUGIN_ENTROPY_FALSE='#'
111628else
111629  BUILD_PLUGIN_ENTROPY_TRUE='#'
111630  BUILD_PLUGIN_ENTROPY_FALSE=
111631fi
111632
111633    enable_entropy="$enable_plugin"
111634
111635
111636
111637    enable_plugin="no"
111638    force="no"
111639    # Check whether --enable-ethstat was given.
111640if test "${enable_ethstat+set}" = set; then :
111641  enableval=$enable_ethstat;
111642        if test "x$enableval" = "xyes"; then
111643          enable_plugin="yes"
111644        else if test "x$enableval" = "xforce"; then
111645          enable_plugin="yes"
111646          force="yes"
111647        else
111648          enable_plugin="no (disabled on command line)"
111649        fi; fi
111650
111651else
111652
111653        if test "x$enable_all_plugins" = "xauto"; then
111654          if test "x$plugin_ethstat" = "xyes"; then
111655            enable_plugin="yes"
111656          else
111657            enable_plugin="$plugin_ethstat"
111658          fi
111659        else
111660          enable_plugin="$enable_all_plugins"
111661        fi
111662
111663
111664fi
111665
111666    if test "x$enable_plugin" = "xyes"; then
111667      if test "x$plugin_ethstat" = "xyes" || test "x$force" = "xyes"; then
111668
111669$as_echo "#define HAVE_PLUGIN_ETHSTAT 1" >>confdefs.h
111670
111671        if test "x$plugin_ethstat" != "xyes"; then
111672          dependency_warning="yes"
111673        fi
111674      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
111675        dependency_error="yes"
111676        enable_plugin="$plugin_ethstat (dependency error)"
111677      fi
111678    fi
111679     if test "x$enable_plugin" = "xyes"; then
111680  BUILD_PLUGIN_ETHSTAT_TRUE=
111681  BUILD_PLUGIN_ETHSTAT_FALSE='#'
111682else
111683  BUILD_PLUGIN_ETHSTAT_TRUE='#'
111684  BUILD_PLUGIN_ETHSTAT_FALSE=
111685fi
111686
111687    enable_ethstat="$enable_plugin"
111688
111689
111690
111691    enable_plugin="no"
111692    force="no"
111693    # Check whether --enable-exec was given.
111694if test "${enable_exec+set}" = set; then :
111695  enableval=$enable_exec;
111696        if test "x$enableval" = "xyes"; then
111697          enable_plugin="yes"
111698        else if test "x$enableval" = "xforce"; then
111699          enable_plugin="yes"
111700          force="yes"
111701        else
111702          enable_plugin="no (disabled on command line)"
111703        fi; fi
111704
111705else
111706
111707        if test "x$enable_all_plugins" = "xauto"; then
111708          if test "xyes" = "xyes"; then
111709            enable_plugin="yes"
111710          else
111711            enable_plugin="yes"
111712          fi
111713        else
111714          enable_plugin="$enable_all_plugins"
111715        fi
111716
111717
111718fi
111719
111720    if test "x$enable_plugin" = "xyes"; then
111721      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
111722
111723$as_echo "#define HAVE_PLUGIN_EXEC 1" >>confdefs.h
111724
111725        if test "xyes" != "xyes"; then
111726          dependency_warning="yes"
111727        fi
111728      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
111729        dependency_error="yes"
111730        enable_plugin="yes (dependency error)"
111731      fi
111732    fi
111733     if test "x$enable_plugin" = "xyes"; then
111734  BUILD_PLUGIN_EXEC_TRUE=
111735  BUILD_PLUGIN_EXEC_FALSE='#'
111736else
111737  BUILD_PLUGIN_EXEC_TRUE='#'
111738  BUILD_PLUGIN_EXEC_FALSE=
111739fi
111740
111741    enable_exec="$enable_plugin"
111742
111743
111744
111745    enable_plugin="no"
111746    force="no"
111747    # Check whether --enable-fhcount was given.
111748if test "${enable_fhcount+set}" = set; then :
111749  enableval=$enable_fhcount;
111750        if test "x$enableval" = "xyes"; then
111751          enable_plugin="yes"
111752        else if test "x$enableval" = "xforce"; then
111753          enable_plugin="yes"
111754          force="yes"
111755        else
111756          enable_plugin="no (disabled on command line)"
111757        fi; fi
111758
111759else
111760
111761        if test "x$enable_all_plugins" = "xauto"; then
111762          if test "x$plugin_fhcount" = "xyes"; then
111763            enable_plugin="yes"
111764          else
111765            enable_plugin="$plugin_fhcount"
111766          fi
111767        else
111768          enable_plugin="$enable_all_plugins"
111769        fi
111770
111771
111772fi
111773
111774    if test "x$enable_plugin" = "xyes"; then
111775      if test "x$plugin_fhcount" = "xyes" || test "x$force" = "xyes"; then
111776
111777$as_echo "#define HAVE_PLUGIN_FHCOUNT 1" >>confdefs.h
111778
111779        if test "x$plugin_fhcount" != "xyes"; then
111780          dependency_warning="yes"
111781        fi
111782      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
111783        dependency_error="yes"
111784        enable_plugin="$plugin_fhcount (dependency error)"
111785      fi
111786    fi
111787     if test "x$enable_plugin" = "xyes"; then
111788  BUILD_PLUGIN_FHCOUNT_TRUE=
111789  BUILD_PLUGIN_FHCOUNT_FALSE='#'
111790else
111791  BUILD_PLUGIN_FHCOUNT_TRUE='#'
111792  BUILD_PLUGIN_FHCOUNT_FALSE=
111793fi
111794
111795    enable_fhcount="$enable_plugin"
111796
111797
111798
111799    enable_plugin="no"
111800    force="no"
111801    # Check whether --enable-filecount was given.
111802if test "${enable_filecount+set}" = set; then :
111803  enableval=$enable_filecount;
111804        if test "x$enableval" = "xyes"; then
111805          enable_plugin="yes"
111806        else if test "x$enableval" = "xforce"; then
111807          enable_plugin="yes"
111808          force="yes"
111809        else
111810          enable_plugin="no (disabled on command line)"
111811        fi; fi
111812
111813else
111814
111815        if test "x$enable_all_plugins" = "xauto"; then
111816          if test "xyes" = "xyes"; then
111817            enable_plugin="yes"
111818          else
111819            enable_plugin="yes"
111820          fi
111821        else
111822          enable_plugin="$enable_all_plugins"
111823        fi
111824
111825
111826fi
111827
111828    if test "x$enable_plugin" = "xyes"; then
111829      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
111830
111831$as_echo "#define HAVE_PLUGIN_FILECOUNT 1" >>confdefs.h
111832
111833        if test "xyes" != "xyes"; then
111834          dependency_warning="yes"
111835        fi
111836      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
111837        dependency_error="yes"
111838        enable_plugin="yes (dependency error)"
111839      fi
111840    fi
111841     if test "x$enable_plugin" = "xyes"; then
111842  BUILD_PLUGIN_FILECOUNT_TRUE=
111843  BUILD_PLUGIN_FILECOUNT_FALSE='#'
111844else
111845  BUILD_PLUGIN_FILECOUNT_TRUE='#'
111846  BUILD_PLUGIN_FILECOUNT_FALSE=
111847fi
111848
111849    enable_filecount="$enable_plugin"
111850
111851
111852
111853    enable_plugin="no"
111854    force="no"
111855    # Check whether --enable-fscache was given.
111856if test "${enable_fscache+set}" = set; then :
111857  enableval=$enable_fscache;
111858        if test "x$enableval" = "xyes"; then
111859          enable_plugin="yes"
111860        else if test "x$enableval" = "xforce"; then
111861          enable_plugin="yes"
111862          force="yes"
111863        else
111864          enable_plugin="no (disabled on command line)"
111865        fi; fi
111866
111867else
111868
111869        if test "x$enable_all_plugins" = "xauto"; then
111870          if test "x$plugin_fscache" = "xyes"; then
111871            enable_plugin="yes"
111872          else
111873            enable_plugin="$plugin_fscache"
111874          fi
111875        else
111876          enable_plugin="$enable_all_plugins"
111877        fi
111878
111879
111880fi
111881
111882    if test "x$enable_plugin" = "xyes"; then
111883      if test "x$plugin_fscache" = "xyes" || test "x$force" = "xyes"; then
111884
111885$as_echo "#define HAVE_PLUGIN_FSCACHE 1" >>confdefs.h
111886
111887        if test "x$plugin_fscache" != "xyes"; then
111888          dependency_warning="yes"
111889        fi
111890      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
111891        dependency_error="yes"
111892        enable_plugin="$plugin_fscache (dependency error)"
111893      fi
111894    fi
111895     if test "x$enable_plugin" = "xyes"; then
111896  BUILD_PLUGIN_FSCACHE_TRUE=
111897  BUILD_PLUGIN_FSCACHE_FALSE='#'
111898else
111899  BUILD_PLUGIN_FSCACHE_TRUE='#'
111900  BUILD_PLUGIN_FSCACHE_FALSE=
111901fi
111902
111903    enable_fscache="$enable_plugin"
111904
111905
111906
111907    enable_plugin="no"
111908    force="no"
111909    # Check whether --enable-gmond was given.
111910if test "${enable_gmond+set}" = set; then :
111911  enableval=$enable_gmond;
111912        if test "x$enableval" = "xyes"; then
111913          enable_plugin="yes"
111914        else if test "x$enableval" = "xforce"; then
111915          enable_plugin="yes"
111916          force="yes"
111917        else
111918          enable_plugin="no (disabled on command line)"
111919        fi; fi
111920
111921else
111922
111923        if test "x$enable_all_plugins" = "xauto"; then
111924          if test "x$with_libganglia" = "xyes"; then
111925            enable_plugin="yes"
111926          else
111927            enable_plugin="$with_libganglia"
111928          fi
111929        else
111930          enable_plugin="$enable_all_plugins"
111931        fi
111932
111933
111934fi
111935
111936    if test "x$enable_plugin" = "xyes"; then
111937      if test "x$with_libganglia" = "xyes" || test "x$force" = "xyes"; then
111938
111939$as_echo "#define HAVE_PLUGIN_GMOND 1" >>confdefs.h
111940
111941        if test "x$with_libganglia" != "xyes"; then
111942          dependency_warning="yes"
111943        fi
111944      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
111945        dependency_error="yes"
111946        enable_plugin="$with_libganglia (dependency error)"
111947      fi
111948    fi
111949     if test "x$enable_plugin" = "xyes"; then
111950  BUILD_PLUGIN_GMOND_TRUE=
111951  BUILD_PLUGIN_GMOND_FALSE='#'
111952else
111953  BUILD_PLUGIN_GMOND_TRUE='#'
111954  BUILD_PLUGIN_GMOND_FALSE=
111955fi
111956
111957    enable_gmond="$enable_plugin"
111958
111959
111960
111961    enable_plugin="no"
111962    force="no"
111963    # Check whether --enable-gps was given.
111964if test "${enable_gps+set}" = set; then :
111965  enableval=$enable_gps;
111966        if test "x$enableval" = "xyes"; then
111967          enable_plugin="yes"
111968        else if test "x$enableval" = "xforce"; then
111969          enable_plugin="yes"
111970          force="yes"
111971        else
111972          enable_plugin="no (disabled on command line)"
111973        fi; fi
111974
111975else
111976
111977        if test "x$enable_all_plugins" = "xauto"; then
111978          if test "x$plugin_gps" = "xyes"; then
111979            enable_plugin="yes"
111980          else
111981            enable_plugin="$plugin_gps"
111982          fi
111983        else
111984          enable_plugin="$enable_all_plugins"
111985        fi
111986
111987
111988fi
111989
111990    if test "x$enable_plugin" = "xyes"; then
111991      if test "x$plugin_gps" = "xyes" || test "x$force" = "xyes"; then
111992
111993$as_echo "#define HAVE_PLUGIN_GPS 1" >>confdefs.h
111994
111995        if test "x$plugin_gps" != "xyes"; then
111996          dependency_warning="yes"
111997        fi
111998      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
111999        dependency_error="yes"
112000        enable_plugin="$plugin_gps (dependency error)"
112001      fi
112002    fi
112003     if test "x$enable_plugin" = "xyes"; then
112004  BUILD_PLUGIN_GPS_TRUE=
112005  BUILD_PLUGIN_GPS_FALSE='#'
112006else
112007  BUILD_PLUGIN_GPS_TRUE='#'
112008  BUILD_PLUGIN_GPS_FALSE=
112009fi
112010
112011    enable_gps="$enable_plugin"
112012
112013
112014
112015    enable_plugin="no"
112016    force="no"
112017    # Check whether --enable-gpu_nvidia was given.
112018if test "${enable_gpu_nvidia+set}" = set; then :
112019  enableval=$enable_gpu_nvidia;
112020        if test "x$enableval" = "xyes"; then
112021          enable_plugin="yes"
112022        else if test "x$enableval" = "xforce"; then
112023          enable_plugin="yes"
112024          force="yes"
112025        else
112026          enable_plugin="no (disabled on command line)"
112027        fi; fi
112028
112029else
112030
112031        if test "x$enable_all_plugins" = "xauto"; then
112032          if test "x$with_cuda" = "xyes"; then
112033            enable_plugin="yes"
112034          else
112035            enable_plugin="$with_cuda"
112036          fi
112037        else
112038          enable_plugin="$enable_all_plugins"
112039        fi
112040
112041
112042fi
112043
112044    if test "x$enable_plugin" = "xyes"; then
112045      if test "x$with_cuda" = "xyes" || test "x$force" = "xyes"; then
112046
112047$as_echo "#define HAVE_PLUGIN_GPU_NVIDIA 1" >>confdefs.h
112048
112049        if test "x$with_cuda" != "xyes"; then
112050          dependency_warning="yes"
112051        fi
112052      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
112053        dependency_error="yes"
112054        enable_plugin="$with_cuda (dependency error)"
112055      fi
112056    fi
112057     if test "x$enable_plugin" = "xyes"; then
112058  BUILD_PLUGIN_GPU_NVIDIA_TRUE=
112059  BUILD_PLUGIN_GPU_NVIDIA_FALSE='#'
112060else
112061  BUILD_PLUGIN_GPU_NVIDIA_TRUE='#'
112062  BUILD_PLUGIN_GPU_NVIDIA_FALSE=
112063fi
112064
112065    enable_gpu_nvidia="$enable_plugin"
112066
112067
112068
112069    enable_plugin="no"
112070    force="no"
112071    # Check whether --enable-grpc was given.
112072if test "${enable_grpc+set}" = set; then :
112073  enableval=$enable_grpc;
112074        if test "x$enableval" = "xyes"; then
112075          enable_plugin="yes"
112076        else if test "x$enableval" = "xforce"; then
112077          enable_plugin="yes"
112078          force="yes"
112079        else
112080          enable_plugin="no (disabled on command line)"
112081        fi; fi
112082
112083else
112084
112085        if test "x$enable_all_plugins" = "xauto"; then
112086          if test "x$plugin_grpc" = "xyes"; then
112087            enable_plugin="yes"
112088          else
112089            enable_plugin="$plugin_grpc"
112090          fi
112091        else
112092          enable_plugin="$enable_all_plugins"
112093        fi
112094
112095
112096fi
112097
112098    if test "x$enable_plugin" = "xyes"; then
112099      if test "x$plugin_grpc" = "xyes" || test "x$force" = "xyes"; then
112100
112101$as_echo "#define HAVE_PLUGIN_GRPC 1" >>confdefs.h
112102
112103        if test "x$plugin_grpc" != "xyes"; then
112104          dependency_warning="yes"
112105        fi
112106      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
112107        dependency_error="yes"
112108        enable_plugin="$plugin_grpc (dependency error)"
112109      fi
112110    fi
112111     if test "x$enable_plugin" = "xyes"; then
112112  BUILD_PLUGIN_GRPC_TRUE=
112113  BUILD_PLUGIN_GRPC_FALSE='#'
112114else
112115  BUILD_PLUGIN_GRPC_TRUE='#'
112116  BUILD_PLUGIN_GRPC_FALSE=
112117fi
112118
112119    enable_grpc="$enable_plugin"
112120
112121
112122
112123    enable_plugin="no"
112124    force="no"
112125    # Check whether --enable-hddtemp was given.
112126if test "${enable_hddtemp+set}" = set; then :
112127  enableval=$enable_hddtemp;
112128        if test "x$enableval" = "xyes"; then
112129          enable_plugin="yes"
112130        else if test "x$enableval" = "xforce"; then
112131          enable_plugin="yes"
112132          force="yes"
112133        else
112134          enable_plugin="no (disabled on command line)"
112135        fi; fi
112136
112137else
112138
112139        if test "x$enable_all_plugins" = "xauto"; then
112140          if test "xyes" = "xyes"; then
112141            enable_plugin="yes"
112142          else
112143            enable_plugin="yes"
112144          fi
112145        else
112146          enable_plugin="$enable_all_plugins"
112147        fi
112148
112149
112150fi
112151
112152    if test "x$enable_plugin" = "xyes"; then
112153      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
112154
112155$as_echo "#define HAVE_PLUGIN_HDDTEMP 1" >>confdefs.h
112156
112157        if test "xyes" != "xyes"; then
112158          dependency_warning="yes"
112159        fi
112160      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
112161        dependency_error="yes"
112162        enable_plugin="yes (dependency error)"
112163      fi
112164    fi
112165     if test "x$enable_plugin" = "xyes"; then
112166  BUILD_PLUGIN_HDDTEMP_TRUE=
112167  BUILD_PLUGIN_HDDTEMP_FALSE='#'
112168else
112169  BUILD_PLUGIN_HDDTEMP_TRUE='#'
112170  BUILD_PLUGIN_HDDTEMP_FALSE=
112171fi
112172
112173    enable_hddtemp="$enable_plugin"
112174
112175
112176
112177    enable_plugin="no"
112178    force="no"
112179    # Check whether --enable-hugepages was given.
112180if test "${enable_hugepages+set}" = set; then :
112181  enableval=$enable_hugepages;
112182        if test "x$enableval" = "xyes"; then
112183          enable_plugin="yes"
112184        else if test "x$enableval" = "xforce"; then
112185          enable_plugin="yes"
112186          force="yes"
112187        else
112188          enable_plugin="no (disabled on command line)"
112189        fi; fi
112190
112191else
112192
112193        if test "x$enable_all_plugins" = "xauto"; then
112194          if test "x$plugin_hugepages" = "xyes"; then
112195            enable_plugin="yes"
112196          else
112197            enable_plugin="$plugin_hugepages"
112198          fi
112199        else
112200          enable_plugin="$enable_all_plugins"
112201        fi
112202
112203
112204fi
112205
112206    if test "x$enable_plugin" = "xyes"; then
112207      if test "x$plugin_hugepages" = "xyes" || test "x$force" = "xyes"; then
112208
112209$as_echo "#define HAVE_PLUGIN_HUGEPAGES 1" >>confdefs.h
112210
112211        if test "x$plugin_hugepages" != "xyes"; then
112212          dependency_warning="yes"
112213        fi
112214      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
112215        dependency_error="yes"
112216        enable_plugin="$plugin_hugepages (dependency error)"
112217      fi
112218    fi
112219     if test "x$enable_plugin" = "xyes"; then
112220  BUILD_PLUGIN_HUGEPAGES_TRUE=
112221  BUILD_PLUGIN_HUGEPAGES_FALSE='#'
112222else
112223  BUILD_PLUGIN_HUGEPAGES_TRUE='#'
112224  BUILD_PLUGIN_HUGEPAGES_FALSE=
112225fi
112226
112227    enable_hugepages="$enable_plugin"
112228
112229
112230
112231    enable_plugin="no"
112232    force="no"
112233    # Check whether --enable-infiniband was given.
112234if test "${enable_infiniband+set}" = set; then :
112235  enableval=$enable_infiniband;
112236        if test "x$enableval" = "xyes"; then
112237          enable_plugin="yes"
112238        else if test "x$enableval" = "xforce"; then
112239          enable_plugin="yes"
112240          force="yes"
112241        else
112242          enable_plugin="no (disabled on command line)"
112243        fi; fi
112244
112245else
112246
112247        if test "x$enable_all_plugins" = "xauto"; then
112248          if test "x$plugin_infiniband" = "xyes"; then
112249            enable_plugin="yes"
112250          else
112251            enable_plugin="$plugin_infiniband"
112252          fi
112253        else
112254          enable_plugin="$enable_all_plugins"
112255        fi
112256
112257
112258fi
112259
112260    if test "x$enable_plugin" = "xyes"; then
112261      if test "x$plugin_infiniband" = "xyes" || test "x$force" = "xyes"; then
112262
112263$as_echo "#define HAVE_PLUGIN_INFINIBAND 1" >>confdefs.h
112264
112265        if test "x$plugin_infiniband" != "xyes"; then
112266          dependency_warning="yes"
112267        fi
112268      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
112269        dependency_error="yes"
112270        enable_plugin="$plugin_infiniband (dependency error)"
112271      fi
112272    fi
112273     if test "x$enable_plugin" = "xyes"; then
112274  BUILD_PLUGIN_INFINIBAND_TRUE=
112275  BUILD_PLUGIN_INFINIBAND_FALSE='#'
112276else
112277  BUILD_PLUGIN_INFINIBAND_TRUE='#'
112278  BUILD_PLUGIN_INFINIBAND_FALSE=
112279fi
112280
112281    enable_infiniband="$enable_plugin"
112282
112283
112284
112285    enable_plugin="no"
112286    force="no"
112287    # Check whether --enable-intel_pmu was given.
112288if test "${enable_intel_pmu+set}" = set; then :
112289  enableval=$enable_intel_pmu;
112290        if test "x$enableval" = "xyes"; then
112291          enable_plugin="yes"
112292        else if test "x$enableval" = "xforce"; then
112293          enable_plugin="yes"
112294          force="yes"
112295        else
112296          enable_plugin="no (disabled on command line)"
112297        fi; fi
112298
112299else
112300
112301        if test "x$enable_all_plugins" = "xauto"; then
112302          if test "x$with_libjevents" = "xyes"; then
112303            enable_plugin="yes"
112304          else
112305            enable_plugin="$with_libjevents"
112306          fi
112307        else
112308          enable_plugin="$enable_all_plugins"
112309        fi
112310
112311
112312fi
112313
112314    if test "x$enable_plugin" = "xyes"; then
112315      if test "x$with_libjevents" = "xyes" || test "x$force" = "xyes"; then
112316
112317$as_echo "#define HAVE_PLUGIN_INTEL_PMU 1" >>confdefs.h
112318
112319        if test "x$with_libjevents" != "xyes"; then
112320          dependency_warning="yes"
112321        fi
112322      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
112323        dependency_error="yes"
112324        enable_plugin="$with_libjevents (dependency error)"
112325      fi
112326    fi
112327     if test "x$enable_plugin" = "xyes"; then
112328  BUILD_PLUGIN_INTEL_PMU_TRUE=
112329  BUILD_PLUGIN_INTEL_PMU_FALSE='#'
112330else
112331  BUILD_PLUGIN_INTEL_PMU_TRUE='#'
112332  BUILD_PLUGIN_INTEL_PMU_FALSE=
112333fi
112334
112335    enable_intel_pmu="$enable_plugin"
112336
112337
112338
112339    enable_plugin="no"
112340    force="no"
112341    # Check whether --enable-intel_rdt was given.
112342if test "${enable_intel_rdt+set}" = set; then :
112343  enableval=$enable_intel_rdt;
112344        if test "x$enableval" = "xyes"; then
112345          enable_plugin="yes"
112346        else if test "x$enableval" = "xforce"; then
112347          enable_plugin="yes"
112348          force="yes"
112349        else
112350          enable_plugin="no (disabled on command line)"
112351        fi; fi
112352
112353else
112354
112355        if test "x$enable_all_plugins" = "xauto"; then
112356          if test "x$with_libpqos" = "xyes"; then
112357            enable_plugin="yes"
112358          else
112359            enable_plugin="$with_libpqos"
112360          fi
112361        else
112362          enable_plugin="$enable_all_plugins"
112363        fi
112364
112365
112366fi
112367
112368    if test "x$enable_plugin" = "xyes"; then
112369      if test "x$with_libpqos" = "xyes" || test "x$force" = "xyes"; then
112370
112371$as_echo "#define HAVE_PLUGIN_INTEL_RDT 1" >>confdefs.h
112372
112373        if test "x$with_libpqos" != "xyes"; then
112374          dependency_warning="yes"
112375        fi
112376      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
112377        dependency_error="yes"
112378        enable_plugin="$with_libpqos (dependency error)"
112379      fi
112380    fi
112381     if test "x$enable_plugin" = "xyes"; then
112382  BUILD_PLUGIN_INTEL_RDT_TRUE=
112383  BUILD_PLUGIN_INTEL_RDT_FALSE='#'
112384else
112385  BUILD_PLUGIN_INTEL_RDT_TRUE='#'
112386  BUILD_PLUGIN_INTEL_RDT_FALSE=
112387fi
112388
112389    enable_intel_rdt="$enable_plugin"
112390
112391
112392
112393    enable_plugin="no"
112394    force="no"
112395    # Check whether --enable-interface was given.
112396if test "${enable_interface+set}" = set; then :
112397  enableval=$enable_interface;
112398        if test "x$enableval" = "xyes"; then
112399          enable_plugin="yes"
112400        else if test "x$enableval" = "xforce"; then
112401          enable_plugin="yes"
112402          force="yes"
112403        else
112404          enable_plugin="no (disabled on command line)"
112405        fi; fi
112406
112407else
112408
112409        if test "x$enable_all_plugins" = "xauto"; then
112410          if test "x$plugin_interface" = "xyes"; then
112411            enable_plugin="yes"
112412          else
112413            enable_plugin="$plugin_interface"
112414          fi
112415        else
112416          enable_plugin="$enable_all_plugins"
112417        fi
112418
112419
112420fi
112421
112422    if test "x$enable_plugin" = "xyes"; then
112423      if test "x$plugin_interface" = "xyes" || test "x$force" = "xyes"; then
112424
112425$as_echo "#define HAVE_PLUGIN_INTERFACE 1" >>confdefs.h
112426
112427        if test "x$plugin_interface" != "xyes"; then
112428          dependency_warning="yes"
112429        fi
112430      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
112431        dependency_error="yes"
112432        enable_plugin="$plugin_interface (dependency error)"
112433      fi
112434    fi
112435     if test "x$enable_plugin" = "xyes"; then
112436  BUILD_PLUGIN_INTERFACE_TRUE=
112437  BUILD_PLUGIN_INTERFACE_FALSE='#'
112438else
112439  BUILD_PLUGIN_INTERFACE_TRUE='#'
112440  BUILD_PLUGIN_INTERFACE_FALSE=
112441fi
112442
112443    enable_interface="$enable_plugin"
112444
112445
112446
112447    enable_plugin="no"
112448    force="no"
112449    # Check whether --enable-ipc was given.
112450if test "${enable_ipc+set}" = set; then :
112451  enableval=$enable_ipc;
112452        if test "x$enableval" = "xyes"; then
112453          enable_plugin="yes"
112454        else if test "x$enableval" = "xforce"; then
112455          enable_plugin="yes"
112456          force="yes"
112457        else
112458          enable_plugin="no (disabled on command line)"
112459        fi; fi
112460
112461else
112462
112463        if test "x$enable_all_plugins" = "xauto"; then
112464          if test "x$plugin_ipc" = "xyes"; then
112465            enable_plugin="yes"
112466          else
112467            enable_plugin="$plugin_ipc"
112468          fi
112469        else
112470          enable_plugin="$enable_all_plugins"
112471        fi
112472
112473
112474fi
112475
112476    if test "x$enable_plugin" = "xyes"; then
112477      if test "x$plugin_ipc" = "xyes" || test "x$force" = "xyes"; then
112478
112479$as_echo "#define HAVE_PLUGIN_IPC 1" >>confdefs.h
112480
112481        if test "x$plugin_ipc" != "xyes"; then
112482          dependency_warning="yes"
112483        fi
112484      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
112485        dependency_error="yes"
112486        enable_plugin="$plugin_ipc (dependency error)"
112487      fi
112488    fi
112489     if test "x$enable_plugin" = "xyes"; then
112490  BUILD_PLUGIN_IPC_TRUE=
112491  BUILD_PLUGIN_IPC_FALSE='#'
112492else
112493  BUILD_PLUGIN_IPC_TRUE='#'
112494  BUILD_PLUGIN_IPC_FALSE=
112495fi
112496
112497    enable_ipc="$enable_plugin"
112498
112499
112500
112501    enable_plugin="no"
112502    force="no"
112503    # Check whether --enable-ipmi was given.
112504if test "${enable_ipmi+set}" = set; then :
112505  enableval=$enable_ipmi;
112506        if test "x$enableval" = "xyes"; then
112507          enable_plugin="yes"
112508        else if test "x$enableval" = "xforce"; then
112509          enable_plugin="yes"
112510          force="yes"
112511        else
112512          enable_plugin="no (disabled on command line)"
112513        fi; fi
112514
112515else
112516
112517        if test "x$enable_all_plugins" = "xauto"; then
112518          if test "x$plugin_ipmi" = "xyes"; then
112519            enable_plugin="yes"
112520          else
112521            enable_plugin="$plugin_ipmi"
112522          fi
112523        else
112524          enable_plugin="$enable_all_plugins"
112525        fi
112526
112527
112528fi
112529
112530    if test "x$enable_plugin" = "xyes"; then
112531      if test "x$plugin_ipmi" = "xyes" || test "x$force" = "xyes"; then
112532
112533$as_echo "#define HAVE_PLUGIN_IPMI 1" >>confdefs.h
112534
112535        if test "x$plugin_ipmi" != "xyes"; then
112536          dependency_warning="yes"
112537        fi
112538      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
112539        dependency_error="yes"
112540        enable_plugin="$plugin_ipmi (dependency error)"
112541      fi
112542    fi
112543     if test "x$enable_plugin" = "xyes"; then
112544  BUILD_PLUGIN_IPMI_TRUE=
112545  BUILD_PLUGIN_IPMI_FALSE='#'
112546else
112547  BUILD_PLUGIN_IPMI_TRUE='#'
112548  BUILD_PLUGIN_IPMI_FALSE=
112549fi
112550
112551    enable_ipmi="$enable_plugin"
112552
112553
112554
112555    enable_plugin="no"
112556    force="no"
112557    # Check whether --enable-iptables was given.
112558if test "${enable_iptables+set}" = set; then :
112559  enableval=$enable_iptables;
112560        if test "x$enableval" = "xyes"; then
112561          enable_plugin="yes"
112562        else if test "x$enableval" = "xforce"; then
112563          enable_plugin="yes"
112564          force="yes"
112565        else
112566          enable_plugin="no (disabled on command line)"
112567        fi; fi
112568
112569else
112570
112571        if test "x$enable_all_plugins" = "xauto"; then
112572          if test "x$with_libiptc" = "xyes"; then
112573            enable_plugin="yes"
112574          else
112575            enable_plugin="$with_libiptc"
112576          fi
112577        else
112578          enable_plugin="$enable_all_plugins"
112579        fi
112580
112581
112582fi
112583
112584    if test "x$enable_plugin" = "xyes"; then
112585      if test "x$with_libiptc" = "xyes" || test "x$force" = "xyes"; then
112586
112587$as_echo "#define HAVE_PLUGIN_IPTABLES 1" >>confdefs.h
112588
112589        if test "x$with_libiptc" != "xyes"; then
112590          dependency_warning="yes"
112591        fi
112592      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
112593        dependency_error="yes"
112594        enable_plugin="$with_libiptc (dependency error)"
112595      fi
112596    fi
112597     if test "x$enable_plugin" = "xyes"; then
112598  BUILD_PLUGIN_IPTABLES_TRUE=
112599  BUILD_PLUGIN_IPTABLES_FALSE='#'
112600else
112601  BUILD_PLUGIN_IPTABLES_TRUE='#'
112602  BUILD_PLUGIN_IPTABLES_FALSE=
112603fi
112604
112605    enable_iptables="$enable_plugin"
112606
112607
112608
112609    enable_plugin="no"
112610    force="no"
112611    # Check whether --enable-ipstats was given.
112612if test "${enable_ipstats+set}" = set; then :
112613  enableval=$enable_ipstats;
112614        if test "x$enableval" = "xyes"; then
112615          enable_plugin="yes"
112616        else if test "x$enableval" = "xforce"; then
112617          enable_plugin="yes"
112618          force="yes"
112619        else
112620          enable_plugin="no (disabled on command line)"
112621        fi; fi
112622
112623else
112624
112625        if test "x$enable_all_plugins" = "xauto"; then
112626          if test "x$plugin_ipstats" = "xyes"; then
112627            enable_plugin="yes"
112628          else
112629            enable_plugin="$plugin_ipstats"
112630          fi
112631        else
112632          enable_plugin="$enable_all_plugins"
112633        fi
112634
112635
112636fi
112637
112638    if test "x$enable_plugin" = "xyes"; then
112639      if test "x$plugin_ipstats" = "xyes" || test "x$force" = "xyes"; then
112640
112641$as_echo "#define HAVE_PLUGIN_IPSTATS 1" >>confdefs.h
112642
112643        if test "x$plugin_ipstats" != "xyes"; then
112644          dependency_warning="yes"
112645        fi
112646      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
112647        dependency_error="yes"
112648        enable_plugin="$plugin_ipstats (dependency error)"
112649      fi
112650    fi
112651     if test "x$enable_plugin" = "xyes"; then
112652  BUILD_PLUGIN_IPSTATS_TRUE=
112653  BUILD_PLUGIN_IPSTATS_FALSE='#'
112654else
112655  BUILD_PLUGIN_IPSTATS_TRUE='#'
112656  BUILD_PLUGIN_IPSTATS_FALSE=
112657fi
112658
112659    enable_ipstats="$enable_plugin"
112660
112661
112662
112663    enable_plugin="no"
112664    force="no"
112665    # Check whether --enable-ipvs was given.
112666if test "${enable_ipvs+set}" = set; then :
112667  enableval=$enable_ipvs;
112668        if test "x$enableval" = "xyes"; then
112669          enable_plugin="yes"
112670        else if test "x$enableval" = "xforce"; then
112671          enable_plugin="yes"
112672          force="yes"
112673        else
112674          enable_plugin="no (disabled on command line)"
112675        fi; fi
112676
112677else
112678
112679        if test "x$enable_all_plugins" = "xauto"; then
112680          if test "x$plugin_ipvs" = "xyes"; then
112681            enable_plugin="yes"
112682          else
112683            enable_plugin="$plugin_ipvs"
112684          fi
112685        else
112686          enable_plugin="$enable_all_plugins"
112687        fi
112688
112689
112690fi
112691
112692    if test "x$enable_plugin" = "xyes"; then
112693      if test "x$plugin_ipvs" = "xyes" || test "x$force" = "xyes"; then
112694
112695$as_echo "#define HAVE_PLUGIN_IPVS 1" >>confdefs.h
112696
112697        if test "x$plugin_ipvs" != "xyes"; then
112698          dependency_warning="yes"
112699        fi
112700      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
112701        dependency_error="yes"
112702        enable_plugin="$plugin_ipvs (dependency error)"
112703      fi
112704    fi
112705     if test "x$enable_plugin" = "xyes"; then
112706  BUILD_PLUGIN_IPVS_TRUE=
112707  BUILD_PLUGIN_IPVS_FALSE='#'
112708else
112709  BUILD_PLUGIN_IPVS_TRUE='#'
112710  BUILD_PLUGIN_IPVS_FALSE=
112711fi
112712
112713    enable_ipvs="$enable_plugin"
112714
112715
112716
112717    enable_plugin="no"
112718    force="no"
112719    # Check whether --enable-irq was given.
112720if test "${enable_irq+set}" = set; then :
112721  enableval=$enable_irq;
112722        if test "x$enableval" = "xyes"; then
112723          enable_plugin="yes"
112724        else if test "x$enableval" = "xforce"; then
112725          enable_plugin="yes"
112726          force="yes"
112727        else
112728          enable_plugin="no (disabled on command line)"
112729        fi; fi
112730
112731else
112732
112733        if test "x$enable_all_plugins" = "xauto"; then
112734          if test "x$plugin_irq" = "xyes"; then
112735            enable_plugin="yes"
112736          else
112737            enable_plugin="$plugin_irq"
112738          fi
112739        else
112740          enable_plugin="$enable_all_plugins"
112741        fi
112742
112743
112744fi
112745
112746    if test "x$enable_plugin" = "xyes"; then
112747      if test "x$plugin_irq" = "xyes" || test "x$force" = "xyes"; then
112748
112749$as_echo "#define HAVE_PLUGIN_IRQ 1" >>confdefs.h
112750
112751        if test "x$plugin_irq" != "xyes"; then
112752          dependency_warning="yes"
112753        fi
112754      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
112755        dependency_error="yes"
112756        enable_plugin="$plugin_irq (dependency error)"
112757      fi
112758    fi
112759     if test "x$enable_plugin" = "xyes"; then
112760  BUILD_PLUGIN_IRQ_TRUE=
112761  BUILD_PLUGIN_IRQ_FALSE='#'
112762else
112763  BUILD_PLUGIN_IRQ_TRUE='#'
112764  BUILD_PLUGIN_IRQ_FALSE=
112765fi
112766
112767    enable_irq="$enable_plugin"
112768
112769
112770
112771    enable_plugin="no"
112772    force="no"
112773    # Check whether --enable-java was given.
112774if test "${enable_java+set}" = set; then :
112775  enableval=$enable_java;
112776        if test "x$enableval" = "xyes"; then
112777          enable_plugin="yes"
112778        else if test "x$enableval" = "xforce"; then
112779          enable_plugin="yes"
112780          force="yes"
112781        else
112782          enable_plugin="no (disabled on command line)"
112783        fi; fi
112784
112785else
112786
112787        if test "x$enable_all_plugins" = "xauto"; then
112788          if test "x$with_java" = "xyes"; then
112789            enable_plugin="yes"
112790          else
112791            enable_plugin="$with_java"
112792          fi
112793        else
112794          enable_plugin="$enable_all_plugins"
112795        fi
112796
112797
112798fi
112799
112800    if test "x$enable_plugin" = "xyes"; then
112801      if test "x$with_java" = "xyes" || test "x$force" = "xyes"; then
112802
112803$as_echo "#define HAVE_PLUGIN_JAVA 1" >>confdefs.h
112804
112805        if test "x$with_java" != "xyes"; then
112806          dependency_warning="yes"
112807        fi
112808      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
112809        dependency_error="yes"
112810        enable_plugin="$with_java (dependency error)"
112811      fi
112812    fi
112813     if test "x$enable_plugin" = "xyes"; then
112814  BUILD_PLUGIN_JAVA_TRUE=
112815  BUILD_PLUGIN_JAVA_FALSE='#'
112816else
112817  BUILD_PLUGIN_JAVA_TRUE='#'
112818  BUILD_PLUGIN_JAVA_FALSE=
112819fi
112820
112821    enable_java="$enable_plugin"
112822
112823
112824
112825    enable_plugin="no"
112826    force="no"
112827    # Check whether --enable-load was given.
112828if test "${enable_load+set}" = set; then :
112829  enableval=$enable_load;
112830        if test "x$enableval" = "xyes"; then
112831          enable_plugin="yes"
112832        else if test "x$enableval" = "xforce"; then
112833          enable_plugin="yes"
112834          force="yes"
112835        else
112836          enable_plugin="no (disabled on command line)"
112837        fi; fi
112838
112839else
112840
112841        if test "x$enable_all_plugins" = "xauto"; then
112842          if test "x$plugin_load" = "xyes"; then
112843            enable_plugin="yes"
112844          else
112845            enable_plugin="$plugin_load"
112846          fi
112847        else
112848          enable_plugin="$enable_all_plugins"
112849        fi
112850
112851
112852fi
112853
112854    if test "x$enable_plugin" = "xyes"; then
112855      if test "x$plugin_load" = "xyes" || test "x$force" = "xyes"; then
112856
112857$as_echo "#define HAVE_PLUGIN_LOAD 1" >>confdefs.h
112858
112859        if test "x$plugin_load" != "xyes"; then
112860          dependency_warning="yes"
112861        fi
112862      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
112863        dependency_error="yes"
112864        enable_plugin="$plugin_load (dependency error)"
112865      fi
112866    fi
112867     if test "x$enable_plugin" = "xyes"; then
112868  BUILD_PLUGIN_LOAD_TRUE=
112869  BUILD_PLUGIN_LOAD_FALSE='#'
112870else
112871  BUILD_PLUGIN_LOAD_TRUE='#'
112872  BUILD_PLUGIN_LOAD_FALSE=
112873fi
112874
112875    enable_load="$enable_plugin"
112876
112877
112878
112879    enable_plugin="no"
112880    force="no"
112881    # Check whether --enable-log_logstash was given.
112882if test "${enable_log_logstash+set}" = set; then :
112883  enableval=$enable_log_logstash;
112884        if test "x$enableval" = "xyes"; then
112885          enable_plugin="yes"
112886        else if test "x$enableval" = "xforce"; then
112887          enable_plugin="yes"
112888          force="yes"
112889        else
112890          enable_plugin="no (disabled on command line)"
112891        fi; fi
112892
112893else
112894
112895        if test "x$enable_all_plugins" = "xauto"; then
112896          if test "x$plugin_log_logstash" = "xyes"; then
112897            enable_plugin="yes"
112898          else
112899            enable_plugin="$plugin_log_logstash"
112900          fi
112901        else
112902          enable_plugin="$enable_all_plugins"
112903        fi
112904
112905
112906fi
112907
112908    if test "x$enable_plugin" = "xyes"; then
112909      if test "x$plugin_log_logstash" = "xyes" || test "x$force" = "xyes"; then
112910
112911$as_echo "#define HAVE_PLUGIN_LOG_LOGSTASH 1" >>confdefs.h
112912
112913        if test "x$plugin_log_logstash" != "xyes"; then
112914          dependency_warning="yes"
112915        fi
112916      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
112917        dependency_error="yes"
112918        enable_plugin="$plugin_log_logstash (dependency error)"
112919      fi
112920    fi
112921     if test "x$enable_plugin" = "xyes"; then
112922  BUILD_PLUGIN_LOG_LOGSTASH_TRUE=
112923  BUILD_PLUGIN_LOG_LOGSTASH_FALSE='#'
112924else
112925  BUILD_PLUGIN_LOG_LOGSTASH_TRUE='#'
112926  BUILD_PLUGIN_LOG_LOGSTASH_FALSE=
112927fi
112928
112929    enable_log_logstash="$enable_plugin"
112930
112931
112932
112933    enable_plugin="no"
112934    force="no"
112935    # Check whether --enable-logfile was given.
112936if test "${enable_logfile+set}" = set; then :
112937  enableval=$enable_logfile;
112938        if test "x$enableval" = "xyes"; then
112939          enable_plugin="yes"
112940        else if test "x$enableval" = "xforce"; then
112941          enable_plugin="yes"
112942          force="yes"
112943        else
112944          enable_plugin="no (disabled on command line)"
112945        fi; fi
112946
112947else
112948
112949        if test "x$enable_all_plugins" = "xauto"; then
112950          if test "xyes" = "xyes"; then
112951            enable_plugin="yes"
112952          else
112953            enable_plugin="yes"
112954          fi
112955        else
112956          enable_plugin="$enable_all_plugins"
112957        fi
112958
112959
112960fi
112961
112962    if test "x$enable_plugin" = "xyes"; then
112963      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
112964
112965$as_echo "#define HAVE_PLUGIN_LOGFILE 1" >>confdefs.h
112966
112967        if test "xyes" != "xyes"; then
112968          dependency_warning="yes"
112969        fi
112970      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
112971        dependency_error="yes"
112972        enable_plugin="yes (dependency error)"
112973      fi
112974    fi
112975     if test "x$enable_plugin" = "xyes"; then
112976  BUILD_PLUGIN_LOGFILE_TRUE=
112977  BUILD_PLUGIN_LOGFILE_FALSE='#'
112978else
112979  BUILD_PLUGIN_LOGFILE_TRUE='#'
112980  BUILD_PLUGIN_LOGFILE_FALSE=
112981fi
112982
112983    enable_logfile="$enable_plugin"
112984
112985
112986
112987    enable_plugin="no"
112988    force="no"
112989    # Check whether --enable-logparser was given.
112990if test "${enable_logparser+set}" = set; then :
112991  enableval=$enable_logparser;
112992        if test "x$enableval" = "xyes"; then
112993          enable_plugin="yes"
112994        else if test "x$enableval" = "xforce"; then
112995          enable_plugin="yes"
112996          force="yes"
112997        else
112998          enable_plugin="no (disabled on command line)"
112999        fi; fi
113000
113001else
113002
113003        if test "x$enable_all_plugins" = "xauto"; then
113004          if test "xyes" = "xyes"; then
113005            enable_plugin="yes"
113006          else
113007            enable_plugin="yes"
113008          fi
113009        else
113010          enable_plugin="$enable_all_plugins"
113011        fi
113012
113013
113014fi
113015
113016    if test "x$enable_plugin" = "xyes"; then
113017      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
113018
113019$as_echo "#define HAVE_PLUGIN_LOGPARSER 1" >>confdefs.h
113020
113021        if test "xyes" != "xyes"; then
113022          dependency_warning="yes"
113023        fi
113024      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
113025        dependency_error="yes"
113026        enable_plugin="yes (dependency error)"
113027      fi
113028    fi
113029     if test "x$enable_plugin" = "xyes"; then
113030  BUILD_PLUGIN_LOGPARSER_TRUE=
113031  BUILD_PLUGIN_LOGPARSER_FALSE='#'
113032else
113033  BUILD_PLUGIN_LOGPARSER_TRUE='#'
113034  BUILD_PLUGIN_LOGPARSER_FALSE=
113035fi
113036
113037    enable_logparser="$enable_plugin"
113038
113039
113040
113041    enable_plugin="no"
113042    force="no"
113043    # Check whether --enable-lpar was given.
113044if test "${enable_lpar+set}" = set; then :
113045  enableval=$enable_lpar;
113046        if test "x$enableval" = "xyes"; then
113047          enable_plugin="yes"
113048        else if test "x$enableval" = "xforce"; then
113049          enable_plugin="yes"
113050          force="yes"
113051        else
113052          enable_plugin="no (disabled on command line)"
113053        fi; fi
113054
113055else
113056
113057        if test "x$enable_all_plugins" = "xauto"; then
113058          if test "x$with_perfstat" = "xyes"; then
113059            enable_plugin="yes"
113060          else
113061            enable_plugin="$with_perfstat"
113062          fi
113063        else
113064          enable_plugin="$enable_all_plugins"
113065        fi
113066
113067
113068fi
113069
113070    if test "x$enable_plugin" = "xyes"; then
113071      if test "x$with_perfstat" = "xyes" || test "x$force" = "xyes"; then
113072
113073$as_echo "#define HAVE_PLUGIN_LPAR 1" >>confdefs.h
113074
113075        if test "x$with_perfstat" != "xyes"; then
113076          dependency_warning="yes"
113077        fi
113078      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
113079        dependency_error="yes"
113080        enable_plugin="$with_perfstat (dependency error)"
113081      fi
113082    fi
113083     if test "x$enable_plugin" = "xyes"; then
113084  BUILD_PLUGIN_LPAR_TRUE=
113085  BUILD_PLUGIN_LPAR_FALSE='#'
113086else
113087  BUILD_PLUGIN_LPAR_TRUE='#'
113088  BUILD_PLUGIN_LPAR_FALSE=
113089fi
113090
113091    enable_lpar="$enable_plugin"
113092
113093
113094
113095    enable_plugin="no"
113096    force="no"
113097    # Check whether --enable-lua was given.
113098if test "${enable_lua+set}" = set; then :
113099  enableval=$enable_lua;
113100        if test "x$enableval" = "xyes"; then
113101          enable_plugin="yes"
113102        else if test "x$enableval" = "xforce"; then
113103          enable_plugin="yes"
113104          force="yes"
113105        else
113106          enable_plugin="no (disabled on command line)"
113107        fi; fi
113108
113109else
113110
113111        if test "x$enable_all_plugins" = "xauto"; then
113112          if test "x$with_liblua" = "xyes"; then
113113            enable_plugin="yes"
113114          else
113115            enable_plugin="$with_liblua"
113116          fi
113117        else
113118          enable_plugin="$enable_all_plugins"
113119        fi
113120
113121
113122fi
113123
113124    if test "x$enable_plugin" = "xyes"; then
113125      if test "x$with_liblua" = "xyes" || test "x$force" = "xyes"; then
113126
113127$as_echo "#define HAVE_PLUGIN_LUA 1" >>confdefs.h
113128
113129        if test "x$with_liblua" != "xyes"; then
113130          dependency_warning="yes"
113131        fi
113132      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
113133        dependency_error="yes"
113134        enable_plugin="$with_liblua (dependency error)"
113135      fi
113136    fi
113137     if test "x$enable_plugin" = "xyes"; then
113138  BUILD_PLUGIN_LUA_TRUE=
113139  BUILD_PLUGIN_LUA_FALSE='#'
113140else
113141  BUILD_PLUGIN_LUA_TRUE='#'
113142  BUILD_PLUGIN_LUA_FALSE=
113143fi
113144
113145    enable_lua="$enable_plugin"
113146
113147
113148
113149    enable_plugin="no"
113150    force="no"
113151    # Check whether --enable-madwifi was given.
113152if test "${enable_madwifi+set}" = set; then :
113153  enableval=$enable_madwifi;
113154        if test "x$enableval" = "xyes"; then
113155          enable_plugin="yes"
113156        else if test "x$enableval" = "xforce"; then
113157          enable_plugin="yes"
113158          force="yes"
113159        else
113160          enable_plugin="no (disabled on command line)"
113161        fi; fi
113162
113163else
113164
113165        if test "x$enable_all_plugins" = "xauto"; then
113166          if test "x$have_linux_wireless_h" = "xyes"; then
113167            enable_plugin="yes"
113168          else
113169            enable_plugin="$have_linux_wireless_h"
113170          fi
113171        else
113172          enable_plugin="$enable_all_plugins"
113173        fi
113174
113175
113176fi
113177
113178    if test "x$enable_plugin" = "xyes"; then
113179      if test "x$have_linux_wireless_h" = "xyes" || test "x$force" = "xyes"; then
113180
113181$as_echo "#define HAVE_PLUGIN_MADWIFI 1" >>confdefs.h
113182
113183        if test "x$have_linux_wireless_h" != "xyes"; then
113184          dependency_warning="yes"
113185        fi
113186      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
113187        dependency_error="yes"
113188        enable_plugin="$have_linux_wireless_h (dependency error)"
113189      fi
113190    fi
113191     if test "x$enable_plugin" = "xyes"; then
113192  BUILD_PLUGIN_MADWIFI_TRUE=
113193  BUILD_PLUGIN_MADWIFI_FALSE='#'
113194else
113195  BUILD_PLUGIN_MADWIFI_TRUE='#'
113196  BUILD_PLUGIN_MADWIFI_FALSE=
113197fi
113198
113199    enable_madwifi="$enable_plugin"
113200
113201
113202
113203    enable_plugin="no"
113204    force="no"
113205    # Check whether --enable-match_empty_counter was given.
113206if test "${enable_match_empty_counter+set}" = set; then :
113207  enableval=$enable_match_empty_counter;
113208        if test "x$enableval" = "xyes"; then
113209          enable_plugin="yes"
113210        else if test "x$enableval" = "xforce"; then
113211          enable_plugin="yes"
113212          force="yes"
113213        else
113214          enable_plugin="no (disabled on command line)"
113215        fi; fi
113216
113217else
113218
113219        if test "x$enable_all_plugins" = "xauto"; then
113220          if test "xyes" = "xyes"; then
113221            enable_plugin="yes"
113222          else
113223            enable_plugin="yes"
113224          fi
113225        else
113226          enable_plugin="$enable_all_plugins"
113227        fi
113228
113229
113230fi
113231
113232    if test "x$enable_plugin" = "xyes"; then
113233      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
113234
113235$as_echo "#define HAVE_PLUGIN_MATCH_EMPTY_COUNTER 1" >>confdefs.h
113236
113237        if test "xyes" != "xyes"; then
113238          dependency_warning="yes"
113239        fi
113240      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
113241        dependency_error="yes"
113242        enable_plugin="yes (dependency error)"
113243      fi
113244    fi
113245     if test "x$enable_plugin" = "xyes"; then
113246  BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE=
113247  BUILD_PLUGIN_MATCH_EMPTY_COUNTER_FALSE='#'
113248else
113249  BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE='#'
113250  BUILD_PLUGIN_MATCH_EMPTY_COUNTER_FALSE=
113251fi
113252
113253    enable_match_empty_counter="$enable_plugin"
113254
113255
113256
113257    enable_plugin="no"
113258    force="no"
113259    # Check whether --enable-match_hashed was given.
113260if test "${enable_match_hashed+set}" = set; then :
113261  enableval=$enable_match_hashed;
113262        if test "x$enableval" = "xyes"; then
113263          enable_plugin="yes"
113264        else if test "x$enableval" = "xforce"; then
113265          enable_plugin="yes"
113266          force="yes"
113267        else
113268          enable_plugin="no (disabled on command line)"
113269        fi; fi
113270
113271else
113272
113273        if test "x$enable_all_plugins" = "xauto"; then
113274          if test "xyes" = "xyes"; then
113275            enable_plugin="yes"
113276          else
113277            enable_plugin="yes"
113278          fi
113279        else
113280          enable_plugin="$enable_all_plugins"
113281        fi
113282
113283
113284fi
113285
113286    if test "x$enable_plugin" = "xyes"; then
113287      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
113288
113289$as_echo "#define HAVE_PLUGIN_MATCH_HASHED 1" >>confdefs.h
113290
113291        if test "xyes" != "xyes"; then
113292          dependency_warning="yes"
113293        fi
113294      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
113295        dependency_error="yes"
113296        enable_plugin="yes (dependency error)"
113297      fi
113298    fi
113299     if test "x$enable_plugin" = "xyes"; then
113300  BUILD_PLUGIN_MATCH_HASHED_TRUE=
113301  BUILD_PLUGIN_MATCH_HASHED_FALSE='#'
113302else
113303  BUILD_PLUGIN_MATCH_HASHED_TRUE='#'
113304  BUILD_PLUGIN_MATCH_HASHED_FALSE=
113305fi
113306
113307    enable_match_hashed="$enable_plugin"
113308
113309
113310
113311    enable_plugin="no"
113312    force="no"
113313    # Check whether --enable-match_regex was given.
113314if test "${enable_match_regex+set}" = set; then :
113315  enableval=$enable_match_regex;
113316        if test "x$enableval" = "xyes"; then
113317          enable_plugin="yes"
113318        else if test "x$enableval" = "xforce"; then
113319          enable_plugin="yes"
113320          force="yes"
113321        else
113322          enable_plugin="no (disabled on command line)"
113323        fi; fi
113324
113325else
113326
113327        if test "x$enable_all_plugins" = "xauto"; then
113328          if test "xyes" = "xyes"; then
113329            enable_plugin="yes"
113330          else
113331            enable_plugin="yes"
113332          fi
113333        else
113334          enable_plugin="$enable_all_plugins"
113335        fi
113336
113337
113338fi
113339
113340    if test "x$enable_plugin" = "xyes"; then
113341      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
113342
113343$as_echo "#define HAVE_PLUGIN_MATCH_REGEX 1" >>confdefs.h
113344
113345        if test "xyes" != "xyes"; then
113346          dependency_warning="yes"
113347        fi
113348      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
113349        dependency_error="yes"
113350        enable_plugin="yes (dependency error)"
113351      fi
113352    fi
113353     if test "x$enable_plugin" = "xyes"; then
113354  BUILD_PLUGIN_MATCH_REGEX_TRUE=
113355  BUILD_PLUGIN_MATCH_REGEX_FALSE='#'
113356else
113357  BUILD_PLUGIN_MATCH_REGEX_TRUE='#'
113358  BUILD_PLUGIN_MATCH_REGEX_FALSE=
113359fi
113360
113361    enable_match_regex="$enable_plugin"
113362
113363
113364
113365    enable_plugin="no"
113366    force="no"
113367    # Check whether --enable-match_timediff was given.
113368if test "${enable_match_timediff+set}" = set; then :
113369  enableval=$enable_match_timediff;
113370        if test "x$enableval" = "xyes"; then
113371          enable_plugin="yes"
113372        else if test "x$enableval" = "xforce"; then
113373          enable_plugin="yes"
113374          force="yes"
113375        else
113376          enable_plugin="no (disabled on command line)"
113377        fi; fi
113378
113379else
113380
113381        if test "x$enable_all_plugins" = "xauto"; then
113382          if test "xyes" = "xyes"; then
113383            enable_plugin="yes"
113384          else
113385            enable_plugin="yes"
113386          fi
113387        else
113388          enable_plugin="$enable_all_plugins"
113389        fi
113390
113391
113392fi
113393
113394    if test "x$enable_plugin" = "xyes"; then
113395      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
113396
113397$as_echo "#define HAVE_PLUGIN_MATCH_TIMEDIFF 1" >>confdefs.h
113398
113399        if test "xyes" != "xyes"; then
113400          dependency_warning="yes"
113401        fi
113402      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
113403        dependency_error="yes"
113404        enable_plugin="yes (dependency error)"
113405      fi
113406    fi
113407     if test "x$enable_plugin" = "xyes"; then
113408  BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE=
113409  BUILD_PLUGIN_MATCH_TIMEDIFF_FALSE='#'
113410else
113411  BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE='#'
113412  BUILD_PLUGIN_MATCH_TIMEDIFF_FALSE=
113413fi
113414
113415    enable_match_timediff="$enable_plugin"
113416
113417
113418
113419    enable_plugin="no"
113420    force="no"
113421    # Check whether --enable-match_value was given.
113422if test "${enable_match_value+set}" = set; then :
113423  enableval=$enable_match_value;
113424        if test "x$enableval" = "xyes"; then
113425          enable_plugin="yes"
113426        else if test "x$enableval" = "xforce"; then
113427          enable_plugin="yes"
113428          force="yes"
113429        else
113430          enable_plugin="no (disabled on command line)"
113431        fi; fi
113432
113433else
113434
113435        if test "x$enable_all_plugins" = "xauto"; then
113436          if test "xyes" = "xyes"; then
113437            enable_plugin="yes"
113438          else
113439            enable_plugin="yes"
113440          fi
113441        else
113442          enable_plugin="$enable_all_plugins"
113443        fi
113444
113445
113446fi
113447
113448    if test "x$enable_plugin" = "xyes"; then
113449      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
113450
113451$as_echo "#define HAVE_PLUGIN_MATCH_VALUE 1" >>confdefs.h
113452
113453        if test "xyes" != "xyes"; then
113454          dependency_warning="yes"
113455        fi
113456      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
113457        dependency_error="yes"
113458        enable_plugin="yes (dependency error)"
113459      fi
113460    fi
113461     if test "x$enable_plugin" = "xyes"; then
113462  BUILD_PLUGIN_MATCH_VALUE_TRUE=
113463  BUILD_PLUGIN_MATCH_VALUE_FALSE='#'
113464else
113465  BUILD_PLUGIN_MATCH_VALUE_TRUE='#'
113466  BUILD_PLUGIN_MATCH_VALUE_FALSE=
113467fi
113468
113469    enable_match_value="$enable_plugin"
113470
113471
113472
113473    enable_plugin="no"
113474    force="no"
113475    # Check whether --enable-mbmon was given.
113476if test "${enable_mbmon+set}" = set; then :
113477  enableval=$enable_mbmon;
113478        if test "x$enableval" = "xyes"; then
113479          enable_plugin="yes"
113480        else if test "x$enableval" = "xforce"; then
113481          enable_plugin="yes"
113482          force="yes"
113483        else
113484          enable_plugin="no (disabled on command line)"
113485        fi; fi
113486
113487else
113488
113489        if test "x$enable_all_plugins" = "xauto"; then
113490          if test "xyes" = "xyes"; then
113491            enable_plugin="yes"
113492          else
113493            enable_plugin="yes"
113494          fi
113495        else
113496          enable_plugin="$enable_all_plugins"
113497        fi
113498
113499
113500fi
113501
113502    if test "x$enable_plugin" = "xyes"; then
113503      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
113504
113505$as_echo "#define HAVE_PLUGIN_MBMON 1" >>confdefs.h
113506
113507        if test "xyes" != "xyes"; then
113508          dependency_warning="yes"
113509        fi
113510      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
113511        dependency_error="yes"
113512        enable_plugin="yes (dependency error)"
113513      fi
113514    fi
113515     if test "x$enable_plugin" = "xyes"; then
113516  BUILD_PLUGIN_MBMON_TRUE=
113517  BUILD_PLUGIN_MBMON_FALSE='#'
113518else
113519  BUILD_PLUGIN_MBMON_TRUE='#'
113520  BUILD_PLUGIN_MBMON_FALSE=
113521fi
113522
113523    enable_mbmon="$enable_plugin"
113524
113525
113526
113527    enable_plugin="no"
113528    force="no"
113529    # Check whether --enable-mcelog was given.
113530if test "${enable_mcelog+set}" = set; then :
113531  enableval=$enable_mcelog;
113532        if test "x$enableval" = "xyes"; then
113533          enable_plugin="yes"
113534        else if test "x$enableval" = "xforce"; then
113535          enable_plugin="yes"
113536          force="yes"
113537        else
113538          enable_plugin="no (disabled on command line)"
113539        fi; fi
113540
113541else
113542
113543        if test "x$enable_all_plugins" = "xauto"; then
113544          if test "x$plugin_mcelog" = "xyes"; then
113545            enable_plugin="yes"
113546          else
113547            enable_plugin="$plugin_mcelog"
113548          fi
113549        else
113550          enable_plugin="$enable_all_plugins"
113551        fi
113552
113553
113554fi
113555
113556    if test "x$enable_plugin" = "xyes"; then
113557      if test "x$plugin_mcelog" = "xyes" || test "x$force" = "xyes"; then
113558
113559$as_echo "#define HAVE_PLUGIN_MCELOG 1" >>confdefs.h
113560
113561        if test "x$plugin_mcelog" != "xyes"; then
113562          dependency_warning="yes"
113563        fi
113564      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
113565        dependency_error="yes"
113566        enable_plugin="$plugin_mcelog (dependency error)"
113567      fi
113568    fi
113569     if test "x$enable_plugin" = "xyes"; then
113570  BUILD_PLUGIN_MCELOG_TRUE=
113571  BUILD_PLUGIN_MCELOG_FALSE='#'
113572else
113573  BUILD_PLUGIN_MCELOG_TRUE='#'
113574  BUILD_PLUGIN_MCELOG_FALSE=
113575fi
113576
113577    enable_mcelog="$enable_plugin"
113578
113579
113580
113581    enable_plugin="no"
113582    force="no"
113583    # Check whether --enable-md was given.
113584if test "${enable_md+set}" = set; then :
113585  enableval=$enable_md;
113586        if test "x$enableval" = "xyes"; then
113587          enable_plugin="yes"
113588        else if test "x$enableval" = "xforce"; then
113589          enable_plugin="yes"
113590          force="yes"
113591        else
113592          enable_plugin="no (disabled on command line)"
113593        fi; fi
113594
113595else
113596
113597        if test "x$enable_all_plugins" = "xauto"; then
113598          if test "x$have_linux_raid_md_u_h" = "xyes"; then
113599            enable_plugin="yes"
113600          else
113601            enable_plugin="$have_linux_raid_md_u_h"
113602          fi
113603        else
113604          enable_plugin="$enable_all_plugins"
113605        fi
113606
113607
113608fi
113609
113610    if test "x$enable_plugin" = "xyes"; then
113611      if test "x$have_linux_raid_md_u_h" = "xyes" || test "x$force" = "xyes"; then
113612
113613$as_echo "#define HAVE_PLUGIN_MD 1" >>confdefs.h
113614
113615        if test "x$have_linux_raid_md_u_h" != "xyes"; then
113616          dependency_warning="yes"
113617        fi
113618      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
113619        dependency_error="yes"
113620        enable_plugin="$have_linux_raid_md_u_h (dependency error)"
113621      fi
113622    fi
113623     if test "x$enable_plugin" = "xyes"; then
113624  BUILD_PLUGIN_MD_TRUE=
113625  BUILD_PLUGIN_MD_FALSE='#'
113626else
113627  BUILD_PLUGIN_MD_TRUE='#'
113628  BUILD_PLUGIN_MD_FALSE=
113629fi
113630
113631    enable_md="$enable_plugin"
113632
113633
113634
113635    enable_plugin="no"
113636    force="no"
113637    # Check whether --enable-mdevents was given.
113638if test "${enable_mdevents+set}" = set; then :
113639  enableval=$enable_mdevents;
113640        if test "x$enableval" = "xyes"; then
113641          enable_plugin="yes"
113642        else if test "x$enableval" = "xforce"; then
113643          enable_plugin="yes"
113644          force="yes"
113645        else
113646          enable_plugin="no (disabled on command line)"
113647        fi; fi
113648
113649else
113650
113651        if test "x$enable_all_plugins" = "xauto"; then
113652          if test "x$plugin_mdevents" = "xyes"; then
113653            enable_plugin="yes"
113654          else
113655            enable_plugin="$plugin_mdevents"
113656          fi
113657        else
113658          enable_plugin="$enable_all_plugins"
113659        fi
113660
113661
113662fi
113663
113664    if test "x$enable_plugin" = "xyes"; then
113665      if test "x$plugin_mdevents" = "xyes" || test "x$force" = "xyes"; then
113666
113667$as_echo "#define HAVE_PLUGIN_MDEVENTS 1" >>confdefs.h
113668
113669        if test "x$plugin_mdevents" != "xyes"; then
113670          dependency_warning="yes"
113671        fi
113672      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
113673        dependency_error="yes"
113674        enable_plugin="$plugin_mdevents (dependency error)"
113675      fi
113676    fi
113677     if test "x$enable_plugin" = "xyes"; then
113678  BUILD_PLUGIN_MDEVENTS_TRUE=
113679  BUILD_PLUGIN_MDEVENTS_FALSE='#'
113680else
113681  BUILD_PLUGIN_MDEVENTS_TRUE='#'
113682  BUILD_PLUGIN_MDEVENTS_FALSE=
113683fi
113684
113685    enable_mdevents="$enable_plugin"
113686
113687
113688
113689    enable_plugin="no"
113690    force="no"
113691    # Check whether --enable-memcachec was given.
113692if test "${enable_memcachec+set}" = set; then :
113693  enableval=$enable_memcachec;
113694        if test "x$enableval" = "xyes"; then
113695          enable_plugin="yes"
113696        else if test "x$enableval" = "xforce"; then
113697          enable_plugin="yes"
113698          force="yes"
113699        else
113700          enable_plugin="no (disabled on command line)"
113701        fi; fi
113702
113703else
113704
113705        if test "x$enable_all_plugins" = "xauto"; then
113706          if test "x$with_libmemcached" = "xyes"; then
113707            enable_plugin="yes"
113708          else
113709            enable_plugin="$with_libmemcached"
113710          fi
113711        else
113712          enable_plugin="$enable_all_plugins"
113713        fi
113714
113715
113716fi
113717
113718    if test "x$enable_plugin" = "xyes"; then
113719      if test "x$with_libmemcached" = "xyes" || test "x$force" = "xyes"; then
113720
113721$as_echo "#define HAVE_PLUGIN_MEMCACHEC 1" >>confdefs.h
113722
113723        if test "x$with_libmemcached" != "xyes"; then
113724          dependency_warning="yes"
113725        fi
113726      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
113727        dependency_error="yes"
113728        enable_plugin="$with_libmemcached (dependency error)"
113729      fi
113730    fi
113731     if test "x$enable_plugin" = "xyes"; then
113732  BUILD_PLUGIN_MEMCACHEC_TRUE=
113733  BUILD_PLUGIN_MEMCACHEC_FALSE='#'
113734else
113735  BUILD_PLUGIN_MEMCACHEC_TRUE='#'
113736  BUILD_PLUGIN_MEMCACHEC_FALSE=
113737fi
113738
113739    enable_memcachec="$enable_plugin"
113740
113741
113742
113743    enable_plugin="no"
113744    force="no"
113745    # Check whether --enable-memcached was given.
113746if test "${enable_memcached+set}" = set; then :
113747  enableval=$enable_memcached;
113748        if test "x$enableval" = "xyes"; then
113749          enable_plugin="yes"
113750        else if test "x$enableval" = "xforce"; then
113751          enable_plugin="yes"
113752          force="yes"
113753        else
113754          enable_plugin="no (disabled on command line)"
113755        fi; fi
113756
113757else
113758
113759        if test "x$enable_all_plugins" = "xauto"; then
113760          if test "xyes" = "xyes"; then
113761            enable_plugin="yes"
113762          else
113763            enable_plugin="yes"
113764          fi
113765        else
113766          enable_plugin="$enable_all_plugins"
113767        fi
113768
113769
113770fi
113771
113772    if test "x$enable_plugin" = "xyes"; then
113773      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
113774
113775$as_echo "#define HAVE_PLUGIN_MEMCACHED 1" >>confdefs.h
113776
113777        if test "xyes" != "xyes"; then
113778          dependency_warning="yes"
113779        fi
113780      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
113781        dependency_error="yes"
113782        enable_plugin="yes (dependency error)"
113783      fi
113784    fi
113785     if test "x$enable_plugin" = "xyes"; then
113786  BUILD_PLUGIN_MEMCACHED_TRUE=
113787  BUILD_PLUGIN_MEMCACHED_FALSE='#'
113788else
113789  BUILD_PLUGIN_MEMCACHED_TRUE='#'
113790  BUILD_PLUGIN_MEMCACHED_FALSE=
113791fi
113792
113793    enable_memcached="$enable_plugin"
113794
113795
113796
113797    enable_plugin="no"
113798    force="no"
113799    # Check whether --enable-memory was given.
113800if test "${enable_memory+set}" = set; then :
113801  enableval=$enable_memory;
113802        if test "x$enableval" = "xyes"; then
113803          enable_plugin="yes"
113804        else if test "x$enableval" = "xforce"; then
113805          enable_plugin="yes"
113806          force="yes"
113807        else
113808          enable_plugin="no (disabled on command line)"
113809        fi; fi
113810
113811else
113812
113813        if test "x$enable_all_plugins" = "xauto"; then
113814          if test "x$plugin_memory" = "xyes"; then
113815            enable_plugin="yes"
113816          else
113817            enable_plugin="$plugin_memory"
113818          fi
113819        else
113820          enable_plugin="$enable_all_plugins"
113821        fi
113822
113823
113824fi
113825
113826    if test "x$enable_plugin" = "xyes"; then
113827      if test "x$plugin_memory" = "xyes" || test "x$force" = "xyes"; then
113828
113829$as_echo "#define HAVE_PLUGIN_MEMORY 1" >>confdefs.h
113830
113831        if test "x$plugin_memory" != "xyes"; then
113832          dependency_warning="yes"
113833        fi
113834      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
113835        dependency_error="yes"
113836        enable_plugin="$plugin_memory (dependency error)"
113837      fi
113838    fi
113839     if test "x$enable_plugin" = "xyes"; then
113840  BUILD_PLUGIN_MEMORY_TRUE=
113841  BUILD_PLUGIN_MEMORY_FALSE='#'
113842else
113843  BUILD_PLUGIN_MEMORY_TRUE='#'
113844  BUILD_PLUGIN_MEMORY_FALSE=
113845fi
113846
113847    enable_memory="$enable_plugin"
113848
113849
113850
113851    enable_plugin="no"
113852    force="no"
113853    # Check whether --enable-mic was given.
113854if test "${enable_mic+set}" = set; then :
113855  enableval=$enable_mic;
113856        if test "x$enableval" = "xyes"; then
113857          enable_plugin="yes"
113858        else if test "x$enableval" = "xforce"; then
113859          enable_plugin="yes"
113860          force="yes"
113861        else
113862          enable_plugin="no (disabled on command line)"
113863        fi; fi
113864
113865else
113866
113867        if test "x$enable_all_plugins" = "xauto"; then
113868          if test "x$with_mic" = "xyes"; then
113869            enable_plugin="yes"
113870          else
113871            enable_plugin="$with_mic"
113872          fi
113873        else
113874          enable_plugin="$enable_all_plugins"
113875        fi
113876
113877
113878fi
113879
113880    if test "x$enable_plugin" = "xyes"; then
113881      if test "x$with_mic" = "xyes" || test "x$force" = "xyes"; then
113882
113883$as_echo "#define HAVE_PLUGIN_MIC 1" >>confdefs.h
113884
113885        if test "x$with_mic" != "xyes"; then
113886          dependency_warning="yes"
113887        fi
113888      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
113889        dependency_error="yes"
113890        enable_plugin="$with_mic (dependency error)"
113891      fi
113892    fi
113893     if test "x$enable_plugin" = "xyes"; then
113894  BUILD_PLUGIN_MIC_TRUE=
113895  BUILD_PLUGIN_MIC_FALSE='#'
113896else
113897  BUILD_PLUGIN_MIC_TRUE='#'
113898  BUILD_PLUGIN_MIC_FALSE=
113899fi
113900
113901    enable_mic="$enable_plugin"
113902
113903
113904
113905    enable_plugin="no"
113906    force="no"
113907    # Check whether --enable-modbus was given.
113908if test "${enable_modbus+set}" = set; then :
113909  enableval=$enable_modbus;
113910        if test "x$enableval" = "xyes"; then
113911          enable_plugin="yes"
113912        else if test "x$enableval" = "xforce"; then
113913          enable_plugin="yes"
113914          force="yes"
113915        else
113916          enable_plugin="no (disabled on command line)"
113917        fi; fi
113918
113919else
113920
113921        if test "x$enable_all_plugins" = "xauto"; then
113922          if test "x$with_libmodbus" = "xyes"; then
113923            enable_plugin="yes"
113924          else
113925            enable_plugin="$with_libmodbus"
113926          fi
113927        else
113928          enable_plugin="$enable_all_plugins"
113929        fi
113930
113931
113932fi
113933
113934    if test "x$enable_plugin" = "xyes"; then
113935      if test "x$with_libmodbus" = "xyes" || test "x$force" = "xyes"; then
113936
113937$as_echo "#define HAVE_PLUGIN_MODBUS 1" >>confdefs.h
113938
113939        if test "x$with_libmodbus" != "xyes"; then
113940          dependency_warning="yes"
113941        fi
113942      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
113943        dependency_error="yes"
113944        enable_plugin="$with_libmodbus (dependency error)"
113945      fi
113946    fi
113947     if test "x$enable_plugin" = "xyes"; then
113948  BUILD_PLUGIN_MODBUS_TRUE=
113949  BUILD_PLUGIN_MODBUS_FALSE='#'
113950else
113951  BUILD_PLUGIN_MODBUS_TRUE='#'
113952  BUILD_PLUGIN_MODBUS_FALSE=
113953fi
113954
113955    enable_modbus="$enable_plugin"
113956
113957
113958
113959    enable_plugin="no"
113960    force="no"
113961    # Check whether --enable-mqtt was given.
113962if test "${enable_mqtt+set}" = set; then :
113963  enableval=$enable_mqtt;
113964        if test "x$enableval" = "xyes"; then
113965          enable_plugin="yes"
113966        else if test "x$enableval" = "xforce"; then
113967          enable_plugin="yes"
113968          force="yes"
113969        else
113970          enable_plugin="no (disabled on command line)"
113971        fi; fi
113972
113973else
113974
113975        if test "x$enable_all_plugins" = "xauto"; then
113976          if test "x$with_libmosquitto" = "xyes"; then
113977            enable_plugin="yes"
113978          else
113979            enable_plugin="$with_libmosquitto"
113980          fi
113981        else
113982          enable_plugin="$enable_all_plugins"
113983        fi
113984
113985
113986fi
113987
113988    if test "x$enable_plugin" = "xyes"; then
113989      if test "x$with_libmosquitto" = "xyes" || test "x$force" = "xyes"; then
113990
113991$as_echo "#define HAVE_PLUGIN_MQTT 1" >>confdefs.h
113992
113993        if test "x$with_libmosquitto" != "xyes"; then
113994          dependency_warning="yes"
113995        fi
113996      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
113997        dependency_error="yes"
113998        enable_plugin="$with_libmosquitto (dependency error)"
113999      fi
114000    fi
114001     if test "x$enable_plugin" = "xyes"; then
114002  BUILD_PLUGIN_MQTT_TRUE=
114003  BUILD_PLUGIN_MQTT_FALSE='#'
114004else
114005  BUILD_PLUGIN_MQTT_TRUE='#'
114006  BUILD_PLUGIN_MQTT_FALSE=
114007fi
114008
114009    enable_mqtt="$enable_plugin"
114010
114011
114012
114013    enable_plugin="no"
114014    force="no"
114015    # Check whether --enable-multimeter was given.
114016if test "${enable_multimeter+set}" = set; then :
114017  enableval=$enable_multimeter;
114018        if test "x$enableval" = "xyes"; then
114019          enable_plugin="yes"
114020        else if test "x$enableval" = "xforce"; then
114021          enable_plugin="yes"
114022          force="yes"
114023        else
114024          enable_plugin="no (disabled on command line)"
114025        fi; fi
114026
114027else
114028
114029        if test "x$enable_all_plugins" = "xauto"; then
114030          if test "x$plugin_multimeter" = "xyes"; then
114031            enable_plugin="yes"
114032          else
114033            enable_plugin="$plugin_multimeter"
114034          fi
114035        else
114036          enable_plugin="$enable_all_plugins"
114037        fi
114038
114039
114040fi
114041
114042    if test "x$enable_plugin" = "xyes"; then
114043      if test "x$plugin_multimeter" = "xyes" || test "x$force" = "xyes"; then
114044
114045$as_echo "#define HAVE_PLUGIN_MULTIMETER 1" >>confdefs.h
114046
114047        if test "x$plugin_multimeter" != "xyes"; then
114048          dependency_warning="yes"
114049        fi
114050      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
114051        dependency_error="yes"
114052        enable_plugin="$plugin_multimeter (dependency error)"
114053      fi
114054    fi
114055     if test "x$enable_plugin" = "xyes"; then
114056  BUILD_PLUGIN_MULTIMETER_TRUE=
114057  BUILD_PLUGIN_MULTIMETER_FALSE='#'
114058else
114059  BUILD_PLUGIN_MULTIMETER_TRUE='#'
114060  BUILD_PLUGIN_MULTIMETER_FALSE=
114061fi
114062
114063    enable_multimeter="$enable_plugin"
114064
114065
114066
114067    enable_plugin="no"
114068    force="no"
114069    # Check whether --enable-mysql was given.
114070if test "${enable_mysql+set}" = set; then :
114071  enableval=$enable_mysql;
114072        if test "x$enableval" = "xyes"; then
114073          enable_plugin="yes"
114074        else if test "x$enableval" = "xforce"; then
114075          enable_plugin="yes"
114076          force="yes"
114077        else
114078          enable_plugin="no (disabled on command line)"
114079        fi; fi
114080
114081else
114082
114083        if test "x$enable_all_plugins" = "xauto"; then
114084          if test "x$with_libmysql" = "xyes"; then
114085            enable_plugin="yes"
114086          else
114087            enable_plugin="$with_libmysql"
114088          fi
114089        else
114090          enable_plugin="$enable_all_plugins"
114091        fi
114092
114093
114094fi
114095
114096    if test "x$enable_plugin" = "xyes"; then
114097      if test "x$with_libmysql" = "xyes" || test "x$force" = "xyes"; then
114098
114099$as_echo "#define HAVE_PLUGIN_MYSQL 1" >>confdefs.h
114100
114101        if test "x$with_libmysql" != "xyes"; then
114102          dependency_warning="yes"
114103        fi
114104      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
114105        dependency_error="yes"
114106        enable_plugin="$with_libmysql (dependency error)"
114107      fi
114108    fi
114109     if test "x$enable_plugin" = "xyes"; then
114110  BUILD_PLUGIN_MYSQL_TRUE=
114111  BUILD_PLUGIN_MYSQL_FALSE='#'
114112else
114113  BUILD_PLUGIN_MYSQL_TRUE='#'
114114  BUILD_PLUGIN_MYSQL_FALSE=
114115fi
114116
114117    enable_mysql="$enable_plugin"
114118
114119
114120
114121    enable_plugin="no"
114122    force="no"
114123    # Check whether --enable-netapp was given.
114124if test "${enable_netapp+set}" = set; then :
114125  enableval=$enable_netapp;
114126        if test "x$enableval" = "xyes"; then
114127          enable_plugin="yes"
114128        else if test "x$enableval" = "xforce"; then
114129          enable_plugin="yes"
114130          force="yes"
114131        else
114132          enable_plugin="no (disabled on command line)"
114133        fi; fi
114134
114135else
114136
114137        if test "x$enable_all_plugins" = "xauto"; then
114138          if test "x$with_libnetapp" = "xyes"; then
114139            enable_plugin="yes"
114140          else
114141            enable_plugin="$with_libnetapp"
114142          fi
114143        else
114144          enable_plugin="$enable_all_plugins"
114145        fi
114146
114147
114148fi
114149
114150    if test "x$enable_plugin" = "xyes"; then
114151      if test "x$with_libnetapp" = "xyes" || test "x$force" = "xyes"; then
114152
114153$as_echo "#define HAVE_PLUGIN_NETAPP 1" >>confdefs.h
114154
114155        if test "x$with_libnetapp" != "xyes"; then
114156          dependency_warning="yes"
114157        fi
114158      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
114159        dependency_error="yes"
114160        enable_plugin="$with_libnetapp (dependency error)"
114161      fi
114162    fi
114163     if test "x$enable_plugin" = "xyes"; then
114164  BUILD_PLUGIN_NETAPP_TRUE=
114165  BUILD_PLUGIN_NETAPP_FALSE='#'
114166else
114167  BUILD_PLUGIN_NETAPP_TRUE='#'
114168  BUILD_PLUGIN_NETAPP_FALSE=
114169fi
114170
114171    enable_netapp="$enable_plugin"
114172
114173
114174
114175    enable_plugin="no"
114176    force="no"
114177    # Check whether --enable-netlink was given.
114178if test "${enable_netlink+set}" = set; then :
114179  enableval=$enable_netlink;
114180        if test "x$enableval" = "xyes"; then
114181          enable_plugin="yes"
114182        else if test "x$enableval" = "xforce"; then
114183          enable_plugin="yes"
114184          force="yes"
114185        else
114186          enable_plugin="no (disabled on command line)"
114187        fi; fi
114188
114189else
114190
114191        if test "x$enable_all_plugins" = "xauto"; then
114192          if test "x$with_libmnl" = "xyes"; then
114193            enable_plugin="yes"
114194          else
114195            enable_plugin="$with_libmnl"
114196          fi
114197        else
114198          enable_plugin="$enable_all_plugins"
114199        fi
114200
114201
114202fi
114203
114204    if test "x$enable_plugin" = "xyes"; then
114205      if test "x$with_libmnl" = "xyes" || test "x$force" = "xyes"; then
114206
114207$as_echo "#define HAVE_PLUGIN_NETLINK 1" >>confdefs.h
114208
114209        if test "x$with_libmnl" != "xyes"; then
114210          dependency_warning="yes"
114211        fi
114212      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
114213        dependency_error="yes"
114214        enable_plugin="$with_libmnl (dependency error)"
114215      fi
114216    fi
114217     if test "x$enable_plugin" = "xyes"; then
114218  BUILD_PLUGIN_NETLINK_TRUE=
114219  BUILD_PLUGIN_NETLINK_FALSE='#'
114220else
114221  BUILD_PLUGIN_NETLINK_TRUE='#'
114222  BUILD_PLUGIN_NETLINK_FALSE=
114223fi
114224
114225    enable_netlink="$enable_plugin"
114226
114227
114228
114229    enable_plugin="no"
114230    force="no"
114231    # Check whether --enable-netstat_udp was given.
114232if test "${enable_netstat_udp+set}" = set; then :
114233  enableval=$enable_netstat_udp;
114234        if test "x$enableval" = "xyes"; then
114235          enable_plugin="yes"
114236        else if test "x$enableval" = "xforce"; then
114237          enable_plugin="yes"
114238          force="yes"
114239        else
114240          enable_plugin="no (disabled on command line)"
114241        fi; fi
114242
114243else
114244
114245        if test "x$enable_all_plugins" = "xauto"; then
114246          if test "x$plugin_netstat_udp" = "xyes"; then
114247            enable_plugin="yes"
114248          else
114249            enable_plugin="$plugin_netstat_udp"
114250          fi
114251        else
114252          enable_plugin="$enable_all_plugins"
114253        fi
114254
114255
114256fi
114257
114258    if test "x$enable_plugin" = "xyes"; then
114259      if test "x$plugin_netstat_udp" = "xyes" || test "x$force" = "xyes"; then
114260
114261$as_echo "#define HAVE_PLUGIN_NETSTAT_UDP 1" >>confdefs.h
114262
114263        if test "x$plugin_netstat_udp" != "xyes"; then
114264          dependency_warning="yes"
114265        fi
114266      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
114267        dependency_error="yes"
114268        enable_plugin="$plugin_netstat_udp (dependency error)"
114269      fi
114270    fi
114271     if test "x$enable_plugin" = "xyes"; then
114272  BUILD_PLUGIN_NETSTAT_UDP_TRUE=
114273  BUILD_PLUGIN_NETSTAT_UDP_FALSE='#'
114274else
114275  BUILD_PLUGIN_NETSTAT_UDP_TRUE='#'
114276  BUILD_PLUGIN_NETSTAT_UDP_FALSE=
114277fi
114278
114279    enable_netstat_udp="$enable_plugin"
114280
114281
114282
114283    enable_plugin="no"
114284    force="no"
114285    # Check whether --enable-network was given.
114286if test "${enable_network+set}" = set; then :
114287  enableval=$enable_network;
114288        if test "x$enableval" = "xyes"; then
114289          enable_plugin="yes"
114290        else if test "x$enableval" = "xforce"; then
114291          enable_plugin="yes"
114292          force="yes"
114293        else
114294          enable_plugin="no (disabled on command line)"
114295        fi; fi
114296
114297else
114298
114299        if test "x$enable_all_plugins" = "xauto"; then
114300          if test "xyes" = "xyes"; then
114301            enable_plugin="yes"
114302          else
114303            enable_plugin="yes"
114304          fi
114305        else
114306          enable_plugin="$enable_all_plugins"
114307        fi
114308
114309
114310fi
114311
114312    if test "x$enable_plugin" = "xyes"; then
114313      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
114314
114315$as_echo "#define HAVE_PLUGIN_NETWORK 1" >>confdefs.h
114316
114317        if test "xyes" != "xyes"; then
114318          dependency_warning="yes"
114319        fi
114320      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
114321        dependency_error="yes"
114322        enable_plugin="yes (dependency error)"
114323      fi
114324    fi
114325     if test "x$enable_plugin" = "xyes"; then
114326  BUILD_PLUGIN_NETWORK_TRUE=
114327  BUILD_PLUGIN_NETWORK_FALSE='#'
114328else
114329  BUILD_PLUGIN_NETWORK_TRUE='#'
114330  BUILD_PLUGIN_NETWORK_FALSE=
114331fi
114332
114333    enable_network="$enable_plugin"
114334
114335
114336
114337    enable_plugin="no"
114338    force="no"
114339    # Check whether --enable-nfs was given.
114340if test "${enable_nfs+set}" = set; then :
114341  enableval=$enable_nfs;
114342        if test "x$enableval" = "xyes"; then
114343          enable_plugin="yes"
114344        else if test "x$enableval" = "xforce"; then
114345          enable_plugin="yes"
114346          force="yes"
114347        else
114348          enable_plugin="no (disabled on command line)"
114349        fi; fi
114350
114351else
114352
114353        if test "x$enable_all_plugins" = "xauto"; then
114354          if test "x$plugin_nfs" = "xyes"; then
114355            enable_plugin="yes"
114356          else
114357            enable_plugin="$plugin_nfs"
114358          fi
114359        else
114360          enable_plugin="$enable_all_plugins"
114361        fi
114362
114363
114364fi
114365
114366    if test "x$enable_plugin" = "xyes"; then
114367      if test "x$plugin_nfs" = "xyes" || test "x$force" = "xyes"; then
114368
114369$as_echo "#define HAVE_PLUGIN_NFS 1" >>confdefs.h
114370
114371        if test "x$plugin_nfs" != "xyes"; then
114372          dependency_warning="yes"
114373        fi
114374      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
114375        dependency_error="yes"
114376        enable_plugin="$plugin_nfs (dependency error)"
114377      fi
114378    fi
114379     if test "x$enable_plugin" = "xyes"; then
114380  BUILD_PLUGIN_NFS_TRUE=
114381  BUILD_PLUGIN_NFS_FALSE='#'
114382else
114383  BUILD_PLUGIN_NFS_TRUE='#'
114384  BUILD_PLUGIN_NFS_FALSE=
114385fi
114386
114387    enable_nfs="$enable_plugin"
114388
114389
114390
114391    enable_plugin="no"
114392    force="no"
114393    # Check whether --enable-nginx was given.
114394if test "${enable_nginx+set}" = set; then :
114395  enableval=$enable_nginx;
114396        if test "x$enableval" = "xyes"; then
114397          enable_plugin="yes"
114398        else if test "x$enableval" = "xforce"; then
114399          enable_plugin="yes"
114400          force="yes"
114401        else
114402          enable_plugin="no (disabled on command line)"
114403        fi; fi
114404
114405else
114406
114407        if test "x$enable_all_plugins" = "xauto"; then
114408          if test "x$with_libcurl" = "xyes"; then
114409            enable_plugin="yes"
114410          else
114411            enable_plugin="$with_libcurl"
114412          fi
114413        else
114414          enable_plugin="$enable_all_plugins"
114415        fi
114416
114417
114418fi
114419
114420    if test "x$enable_plugin" = "xyes"; then
114421      if test "x$with_libcurl" = "xyes" || test "x$force" = "xyes"; then
114422
114423$as_echo "#define HAVE_PLUGIN_NGINX 1" >>confdefs.h
114424
114425        if test "x$with_libcurl" != "xyes"; then
114426          dependency_warning="yes"
114427        fi
114428      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
114429        dependency_error="yes"
114430        enable_plugin="$with_libcurl (dependency error)"
114431      fi
114432    fi
114433     if test "x$enable_plugin" = "xyes"; then
114434  BUILD_PLUGIN_NGINX_TRUE=
114435  BUILD_PLUGIN_NGINX_FALSE='#'
114436else
114437  BUILD_PLUGIN_NGINX_TRUE='#'
114438  BUILD_PLUGIN_NGINX_FALSE=
114439fi
114440
114441    enable_nginx="$enable_plugin"
114442
114443
114444
114445    enable_plugin="no"
114446    force="no"
114447    # Check whether --enable-notify_desktop was given.
114448if test "${enable_notify_desktop+set}" = set; then :
114449  enableval=$enable_notify_desktop;
114450        if test "x$enableval" = "xyes"; then
114451          enable_plugin="yes"
114452        else if test "x$enableval" = "xforce"; then
114453          enable_plugin="yes"
114454          force="yes"
114455        else
114456          enable_plugin="no (disabled on command line)"
114457        fi; fi
114458
114459else
114460
114461        if test "x$enable_all_plugins" = "xauto"; then
114462          if test "x$with_libnotify" = "xyes"; then
114463            enable_plugin="yes"
114464          else
114465            enable_plugin="$with_libnotify"
114466          fi
114467        else
114468          enable_plugin="$enable_all_plugins"
114469        fi
114470
114471
114472fi
114473
114474    if test "x$enable_plugin" = "xyes"; then
114475      if test "x$with_libnotify" = "xyes" || test "x$force" = "xyes"; then
114476
114477$as_echo "#define HAVE_PLUGIN_NOTIFY_DESKTOP 1" >>confdefs.h
114478
114479        if test "x$with_libnotify" != "xyes"; then
114480          dependency_warning="yes"
114481        fi
114482      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
114483        dependency_error="yes"
114484        enable_plugin="$with_libnotify (dependency error)"
114485      fi
114486    fi
114487     if test "x$enable_plugin" = "xyes"; then
114488  BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE=
114489  BUILD_PLUGIN_NOTIFY_DESKTOP_FALSE='#'
114490else
114491  BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE='#'
114492  BUILD_PLUGIN_NOTIFY_DESKTOP_FALSE=
114493fi
114494
114495    enable_notify_desktop="$enable_plugin"
114496
114497
114498
114499    enable_plugin="no"
114500    force="no"
114501    # Check whether --enable-notify_email was given.
114502if test "${enable_notify_email+set}" = set; then :
114503  enableval=$enable_notify_email;
114504        if test "x$enableval" = "xyes"; then
114505          enable_plugin="yes"
114506        else if test "x$enableval" = "xforce"; then
114507          enable_plugin="yes"
114508          force="yes"
114509        else
114510          enable_plugin="no (disabled on command line)"
114511        fi; fi
114512
114513else
114514
114515        if test "x$enable_all_plugins" = "xauto"; then
114516          if test "x$with_libesmtp" = "xyes"; then
114517            enable_plugin="yes"
114518          else
114519            enable_plugin="$with_libesmtp"
114520          fi
114521        else
114522          enable_plugin="$enable_all_plugins"
114523        fi
114524
114525
114526fi
114527
114528    if test "x$enable_plugin" = "xyes"; then
114529      if test "x$with_libesmtp" = "xyes" || test "x$force" = "xyes"; then
114530
114531$as_echo "#define HAVE_PLUGIN_NOTIFY_EMAIL 1" >>confdefs.h
114532
114533        if test "x$with_libesmtp" != "xyes"; then
114534          dependency_warning="yes"
114535        fi
114536      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
114537        dependency_error="yes"
114538        enable_plugin="$with_libesmtp (dependency error)"
114539      fi
114540    fi
114541     if test "x$enable_plugin" = "xyes"; then
114542  BUILD_PLUGIN_NOTIFY_EMAIL_TRUE=
114543  BUILD_PLUGIN_NOTIFY_EMAIL_FALSE='#'
114544else
114545  BUILD_PLUGIN_NOTIFY_EMAIL_TRUE='#'
114546  BUILD_PLUGIN_NOTIFY_EMAIL_FALSE=
114547fi
114548
114549    enable_notify_email="$enable_plugin"
114550
114551
114552
114553    enable_plugin="no"
114554    force="no"
114555    # Check whether --enable-notify_nagios was given.
114556if test "${enable_notify_nagios+set}" = set; then :
114557  enableval=$enable_notify_nagios;
114558        if test "x$enableval" = "xyes"; then
114559          enable_plugin="yes"
114560        else if test "x$enableval" = "xforce"; then
114561          enable_plugin="yes"
114562          force="yes"
114563        else
114564          enable_plugin="no (disabled on command line)"
114565        fi; fi
114566
114567else
114568
114569        if test "x$enable_all_plugins" = "xauto"; then
114570          if test "xyes" = "xyes"; then
114571            enable_plugin="yes"
114572          else
114573            enable_plugin="yes"
114574          fi
114575        else
114576          enable_plugin="$enable_all_plugins"
114577        fi
114578
114579
114580fi
114581
114582    if test "x$enable_plugin" = "xyes"; then
114583      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
114584
114585$as_echo "#define HAVE_PLUGIN_NOTIFY_NAGIOS 1" >>confdefs.h
114586
114587        if test "xyes" != "xyes"; then
114588          dependency_warning="yes"
114589        fi
114590      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
114591        dependency_error="yes"
114592        enable_plugin="yes (dependency error)"
114593      fi
114594    fi
114595     if test "x$enable_plugin" = "xyes"; then
114596  BUILD_PLUGIN_NOTIFY_NAGIOS_TRUE=
114597  BUILD_PLUGIN_NOTIFY_NAGIOS_FALSE='#'
114598else
114599  BUILD_PLUGIN_NOTIFY_NAGIOS_TRUE='#'
114600  BUILD_PLUGIN_NOTIFY_NAGIOS_FALSE=
114601fi
114602
114603    enable_notify_nagios="$enable_plugin"
114604
114605
114606
114607    enable_plugin="no"
114608    force="no"
114609    # Check whether --enable-ntpd was given.
114610if test "${enable_ntpd+set}" = set; then :
114611  enableval=$enable_ntpd;
114612        if test "x$enableval" = "xyes"; then
114613          enable_plugin="yes"
114614        else if test "x$enableval" = "xforce"; then
114615          enable_plugin="yes"
114616          force="yes"
114617        else
114618          enable_plugin="no (disabled on command line)"
114619        fi; fi
114620
114621else
114622
114623        if test "x$enable_all_plugins" = "xauto"; then
114624          if test "xyes" = "xyes"; then
114625            enable_plugin="yes"
114626          else
114627            enable_plugin="yes"
114628          fi
114629        else
114630          enable_plugin="$enable_all_plugins"
114631        fi
114632
114633
114634fi
114635
114636    if test "x$enable_plugin" = "xyes"; then
114637      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
114638
114639$as_echo "#define HAVE_PLUGIN_NTPD 1" >>confdefs.h
114640
114641        if test "xyes" != "xyes"; then
114642          dependency_warning="yes"
114643        fi
114644      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
114645        dependency_error="yes"
114646        enable_plugin="yes (dependency error)"
114647      fi
114648    fi
114649     if test "x$enable_plugin" = "xyes"; then
114650  BUILD_PLUGIN_NTPD_TRUE=
114651  BUILD_PLUGIN_NTPD_FALSE='#'
114652else
114653  BUILD_PLUGIN_NTPD_TRUE='#'
114654  BUILD_PLUGIN_NTPD_FALSE=
114655fi
114656
114657    enable_ntpd="$enable_plugin"
114658
114659
114660
114661    enable_plugin="no"
114662    force="no"
114663    # Check whether --enable-numa was given.
114664if test "${enable_numa+set}" = set; then :
114665  enableval=$enable_numa;
114666        if test "x$enableval" = "xyes"; then
114667          enable_plugin="yes"
114668        else if test "x$enableval" = "xforce"; then
114669          enable_plugin="yes"
114670          force="yes"
114671        else
114672          enable_plugin="no (disabled on command line)"
114673        fi; fi
114674
114675else
114676
114677        if test "x$enable_all_plugins" = "xauto"; then
114678          if test "x$plugin_numa" = "xyes"; then
114679            enable_plugin="yes"
114680          else
114681            enable_plugin="$plugin_numa"
114682          fi
114683        else
114684          enable_plugin="$enable_all_plugins"
114685        fi
114686
114687
114688fi
114689
114690    if test "x$enable_plugin" = "xyes"; then
114691      if test "x$plugin_numa" = "xyes" || test "x$force" = "xyes"; then
114692
114693$as_echo "#define HAVE_PLUGIN_NUMA 1" >>confdefs.h
114694
114695        if test "x$plugin_numa" != "xyes"; then
114696          dependency_warning="yes"
114697        fi
114698      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
114699        dependency_error="yes"
114700        enable_plugin="$plugin_numa (dependency error)"
114701      fi
114702    fi
114703     if test "x$enable_plugin" = "xyes"; then
114704  BUILD_PLUGIN_NUMA_TRUE=
114705  BUILD_PLUGIN_NUMA_FALSE='#'
114706else
114707  BUILD_PLUGIN_NUMA_TRUE='#'
114708  BUILD_PLUGIN_NUMA_FALSE=
114709fi
114710
114711    enable_numa="$enable_plugin"
114712
114713
114714
114715    enable_plugin="no"
114716    force="no"
114717    # Check whether --enable-nut was given.
114718if test "${enable_nut+set}" = set; then :
114719  enableval=$enable_nut;
114720        if test "x$enableval" = "xyes"; then
114721          enable_plugin="yes"
114722        else if test "x$enableval" = "xforce"; then
114723          enable_plugin="yes"
114724          force="yes"
114725        else
114726          enable_plugin="no (disabled on command line)"
114727        fi; fi
114728
114729else
114730
114731        if test "x$enable_all_plugins" = "xauto"; then
114732          if test "x$with_libupsclient" = "xyes"; then
114733            enable_plugin="yes"
114734          else
114735            enable_plugin="$with_libupsclient"
114736          fi
114737        else
114738          enable_plugin="$enable_all_plugins"
114739        fi
114740
114741
114742fi
114743
114744    if test "x$enable_plugin" = "xyes"; then
114745      if test "x$with_libupsclient" = "xyes" || test "x$force" = "xyes"; then
114746
114747$as_echo "#define HAVE_PLUGIN_NUT 1" >>confdefs.h
114748
114749        if test "x$with_libupsclient" != "xyes"; then
114750          dependency_warning="yes"
114751        fi
114752      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
114753        dependency_error="yes"
114754        enable_plugin="$with_libupsclient (dependency error)"
114755      fi
114756    fi
114757     if test "x$enable_plugin" = "xyes"; then
114758  BUILD_PLUGIN_NUT_TRUE=
114759  BUILD_PLUGIN_NUT_FALSE='#'
114760else
114761  BUILD_PLUGIN_NUT_TRUE='#'
114762  BUILD_PLUGIN_NUT_FALSE=
114763fi
114764
114765    enable_nut="$enable_plugin"
114766
114767
114768
114769    enable_plugin="no"
114770    force="no"
114771    # Check whether --enable-olsrd was given.
114772if test "${enable_olsrd+set}" = set; then :
114773  enableval=$enable_olsrd;
114774        if test "x$enableval" = "xyes"; then
114775          enable_plugin="yes"
114776        else if test "x$enableval" = "xforce"; then
114777          enable_plugin="yes"
114778          force="yes"
114779        else
114780          enable_plugin="no (disabled on command line)"
114781        fi; fi
114782
114783else
114784
114785        if test "x$enable_all_plugins" = "xauto"; then
114786          if test "xyes" = "xyes"; then
114787            enable_plugin="yes"
114788          else
114789            enable_plugin="yes"
114790          fi
114791        else
114792          enable_plugin="$enable_all_plugins"
114793        fi
114794
114795
114796fi
114797
114798    if test "x$enable_plugin" = "xyes"; then
114799      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
114800
114801$as_echo "#define HAVE_PLUGIN_OLSRD 1" >>confdefs.h
114802
114803        if test "xyes" != "xyes"; then
114804          dependency_warning="yes"
114805        fi
114806      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
114807        dependency_error="yes"
114808        enable_plugin="yes (dependency error)"
114809      fi
114810    fi
114811     if test "x$enable_plugin" = "xyes"; then
114812  BUILD_PLUGIN_OLSRD_TRUE=
114813  BUILD_PLUGIN_OLSRD_FALSE='#'
114814else
114815  BUILD_PLUGIN_OLSRD_TRUE='#'
114816  BUILD_PLUGIN_OLSRD_FALSE=
114817fi
114818
114819    enable_olsrd="$enable_plugin"
114820
114821
114822
114823    enable_plugin="no"
114824    force="no"
114825    # Check whether --enable-onewire was given.
114826if test "${enable_onewire+set}" = set; then :
114827  enableval=$enable_onewire;
114828        if test "x$enableval" = "xyes"; then
114829          enable_plugin="yes"
114830        else if test "x$enableval" = "xforce"; then
114831          enable_plugin="yes"
114832          force="yes"
114833        else
114834          enable_plugin="no (disabled on command line)"
114835        fi; fi
114836
114837else
114838
114839        if test "x$enable_all_plugins" = "xauto"; then
114840          if test "x$with_libowcapi" = "xyes"; then
114841            enable_plugin="yes"
114842          else
114843            enable_plugin="$with_libowcapi"
114844          fi
114845        else
114846          enable_plugin="$enable_all_plugins"
114847        fi
114848
114849
114850fi
114851
114852    if test "x$enable_plugin" = "xyes"; then
114853      if test "x$with_libowcapi" = "xyes" || test "x$force" = "xyes"; then
114854
114855$as_echo "#define HAVE_PLUGIN_ONEWIRE 1" >>confdefs.h
114856
114857        if test "x$with_libowcapi" != "xyes"; then
114858          dependency_warning="yes"
114859        fi
114860      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
114861        dependency_error="yes"
114862        enable_plugin="$with_libowcapi (dependency error)"
114863      fi
114864    fi
114865     if test "x$enable_plugin" = "xyes"; then
114866  BUILD_PLUGIN_ONEWIRE_TRUE=
114867  BUILD_PLUGIN_ONEWIRE_FALSE='#'
114868else
114869  BUILD_PLUGIN_ONEWIRE_TRUE='#'
114870  BUILD_PLUGIN_ONEWIRE_FALSE=
114871fi
114872
114873    enable_onewire="$enable_plugin"
114874
114875
114876
114877    enable_plugin="no"
114878    force="no"
114879    # Check whether --enable-openldap was given.
114880if test "${enable_openldap+set}" = set; then :
114881  enableval=$enable_openldap;
114882        if test "x$enableval" = "xyes"; then
114883          enable_plugin="yes"
114884        else if test "x$enableval" = "xforce"; then
114885          enable_plugin="yes"
114886          force="yes"
114887        else
114888          enable_plugin="no (disabled on command line)"
114889        fi; fi
114890
114891else
114892
114893        if test "x$enable_all_plugins" = "xauto"; then
114894          if test "x$with_libldap" = "xyes"; then
114895            enable_plugin="yes"
114896          else
114897            enable_plugin="$with_libldap"
114898          fi
114899        else
114900          enable_plugin="$enable_all_plugins"
114901        fi
114902
114903
114904fi
114905
114906    if test "x$enable_plugin" = "xyes"; then
114907      if test "x$with_libldap" = "xyes" || test "x$force" = "xyes"; then
114908
114909$as_echo "#define HAVE_PLUGIN_OPENLDAP 1" >>confdefs.h
114910
114911        if test "x$with_libldap" != "xyes"; then
114912          dependency_warning="yes"
114913        fi
114914      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
114915        dependency_error="yes"
114916        enable_plugin="$with_libldap (dependency error)"
114917      fi
114918    fi
114919     if test "x$enable_plugin" = "xyes"; then
114920  BUILD_PLUGIN_OPENLDAP_TRUE=
114921  BUILD_PLUGIN_OPENLDAP_FALSE='#'
114922else
114923  BUILD_PLUGIN_OPENLDAP_TRUE='#'
114924  BUILD_PLUGIN_OPENLDAP_FALSE=
114925fi
114926
114927    enable_openldap="$enable_plugin"
114928
114929
114930
114931    enable_plugin="no"
114932    force="no"
114933    # Check whether --enable-openvpn was given.
114934if test "${enable_openvpn+set}" = set; then :
114935  enableval=$enable_openvpn;
114936        if test "x$enableval" = "xyes"; then
114937          enable_plugin="yes"
114938        else if test "x$enableval" = "xforce"; then
114939          enable_plugin="yes"
114940          force="yes"
114941        else
114942          enable_plugin="no (disabled on command line)"
114943        fi; fi
114944
114945else
114946
114947        if test "x$enable_all_plugins" = "xauto"; then
114948          if test "xyes" = "xyes"; then
114949            enable_plugin="yes"
114950          else
114951            enable_plugin="yes"
114952          fi
114953        else
114954          enable_plugin="$enable_all_plugins"
114955        fi
114956
114957
114958fi
114959
114960    if test "x$enable_plugin" = "xyes"; then
114961      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
114962
114963$as_echo "#define HAVE_PLUGIN_OPENVPN 1" >>confdefs.h
114964
114965        if test "xyes" != "xyes"; then
114966          dependency_warning="yes"
114967        fi
114968      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
114969        dependency_error="yes"
114970        enable_plugin="yes (dependency error)"
114971      fi
114972    fi
114973     if test "x$enable_plugin" = "xyes"; then
114974  BUILD_PLUGIN_OPENVPN_TRUE=
114975  BUILD_PLUGIN_OPENVPN_FALSE='#'
114976else
114977  BUILD_PLUGIN_OPENVPN_TRUE='#'
114978  BUILD_PLUGIN_OPENVPN_FALSE=
114979fi
114980
114981    enable_openvpn="$enable_plugin"
114982
114983
114984
114985    enable_plugin="no"
114986    force="no"
114987    # Check whether --enable-oracle was given.
114988if test "${enable_oracle+set}" = set; then :
114989  enableval=$enable_oracle;
114990        if test "x$enableval" = "xyes"; then
114991          enable_plugin="yes"
114992        else if test "x$enableval" = "xforce"; then
114993          enable_plugin="yes"
114994          force="yes"
114995        else
114996          enable_plugin="no (disabled on command line)"
114997        fi; fi
114998
114999else
115000
115001        if test "x$enable_all_plugins" = "xauto"; then
115002          if test "x$with_oracle" = "xyes"; then
115003            enable_plugin="yes"
115004          else
115005            enable_plugin="$with_oracle"
115006          fi
115007        else
115008          enable_plugin="$enable_all_plugins"
115009        fi
115010
115011
115012fi
115013
115014    if test "x$enable_plugin" = "xyes"; then
115015      if test "x$with_oracle" = "xyes" || test "x$force" = "xyes"; then
115016
115017$as_echo "#define HAVE_PLUGIN_ORACLE 1" >>confdefs.h
115018
115019        if test "x$with_oracle" != "xyes"; then
115020          dependency_warning="yes"
115021        fi
115022      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
115023        dependency_error="yes"
115024        enable_plugin="$with_oracle (dependency error)"
115025      fi
115026    fi
115027     if test "x$enable_plugin" = "xyes"; then
115028  BUILD_PLUGIN_ORACLE_TRUE=
115029  BUILD_PLUGIN_ORACLE_FALSE='#'
115030else
115031  BUILD_PLUGIN_ORACLE_TRUE='#'
115032  BUILD_PLUGIN_ORACLE_FALSE=
115033fi
115034
115035    enable_oracle="$enable_plugin"
115036
115037
115038
115039    enable_plugin="no"
115040    force="no"
115041    # Check whether --enable-ovs_events was given.
115042if test "${enable_ovs_events+set}" = set; then :
115043  enableval=$enable_ovs_events;
115044        if test "x$enableval" = "xyes"; then
115045          enable_plugin="yes"
115046        else if test "x$enableval" = "xforce"; then
115047          enable_plugin="yes"
115048          force="yes"
115049        else
115050          enable_plugin="no (disabled on command line)"
115051        fi; fi
115052
115053else
115054
115055        if test "x$enable_all_plugins" = "xauto"; then
115056          if test "x$plugin_ovs_events" = "xyes"; then
115057            enable_plugin="yes"
115058          else
115059            enable_plugin="$plugin_ovs_events"
115060          fi
115061        else
115062          enable_plugin="$enable_all_plugins"
115063        fi
115064
115065
115066fi
115067
115068    if test "x$enable_plugin" = "xyes"; then
115069      if test "x$plugin_ovs_events" = "xyes" || test "x$force" = "xyes"; then
115070
115071$as_echo "#define HAVE_PLUGIN_OVS_EVENTS 1" >>confdefs.h
115072
115073        if test "x$plugin_ovs_events" != "xyes"; then
115074          dependency_warning="yes"
115075        fi
115076      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
115077        dependency_error="yes"
115078        enable_plugin="$plugin_ovs_events (dependency error)"
115079      fi
115080    fi
115081     if test "x$enable_plugin" = "xyes"; then
115082  BUILD_PLUGIN_OVS_EVENTS_TRUE=
115083  BUILD_PLUGIN_OVS_EVENTS_FALSE='#'
115084else
115085  BUILD_PLUGIN_OVS_EVENTS_TRUE='#'
115086  BUILD_PLUGIN_OVS_EVENTS_FALSE=
115087fi
115088
115089    enable_ovs_events="$enable_plugin"
115090
115091
115092
115093    enable_plugin="no"
115094    force="no"
115095    # Check whether --enable-ovs_stats was given.
115096if test "${enable_ovs_stats+set}" = set; then :
115097  enableval=$enable_ovs_stats;
115098        if test "x$enableval" = "xyes"; then
115099          enable_plugin="yes"
115100        else if test "x$enableval" = "xforce"; then
115101          enable_plugin="yes"
115102          force="yes"
115103        else
115104          enable_plugin="no (disabled on command line)"
115105        fi; fi
115106
115107else
115108
115109        if test "x$enable_all_plugins" = "xauto"; then
115110          if test "x$plugin_ovs_stats" = "xyes"; then
115111            enable_plugin="yes"
115112          else
115113            enable_plugin="$plugin_ovs_stats"
115114          fi
115115        else
115116          enable_plugin="$enable_all_plugins"
115117        fi
115118
115119
115120fi
115121
115122    if test "x$enable_plugin" = "xyes"; then
115123      if test "x$plugin_ovs_stats" = "xyes" || test "x$force" = "xyes"; then
115124
115125$as_echo "#define HAVE_PLUGIN_OVS_STATS 1" >>confdefs.h
115126
115127        if test "x$plugin_ovs_stats" != "xyes"; then
115128          dependency_warning="yes"
115129        fi
115130      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
115131        dependency_error="yes"
115132        enable_plugin="$plugin_ovs_stats (dependency error)"
115133      fi
115134    fi
115135     if test "x$enable_plugin" = "xyes"; then
115136  BUILD_PLUGIN_OVS_STATS_TRUE=
115137  BUILD_PLUGIN_OVS_STATS_FALSE='#'
115138else
115139  BUILD_PLUGIN_OVS_STATS_TRUE='#'
115140  BUILD_PLUGIN_OVS_STATS_FALSE=
115141fi
115142
115143    enable_ovs_stats="$enable_plugin"
115144
115145
115146
115147    enable_plugin="no"
115148    force="no"
115149    # Check whether --enable-pcie_errors was given.
115150if test "${enable_pcie_errors+set}" = set; then :
115151  enableval=$enable_pcie_errors;
115152        if test "x$enableval" = "xyes"; then
115153          enable_plugin="yes"
115154        else if test "x$enableval" = "xforce"; then
115155          enable_plugin="yes"
115156          force="yes"
115157        else
115158          enable_plugin="no (disabled on command line)"
115159        fi; fi
115160
115161else
115162
115163        if test "x$enable_all_plugins" = "xauto"; then
115164          if test "x$plugin_pcie_errors" = "xyes"; then
115165            enable_plugin="yes"
115166          else
115167            enable_plugin="$plugin_pcie_errors"
115168          fi
115169        else
115170          enable_plugin="$enable_all_plugins"
115171        fi
115172
115173
115174fi
115175
115176    if test "x$enable_plugin" = "xyes"; then
115177      if test "x$plugin_pcie_errors" = "xyes" || test "x$force" = "xyes"; then
115178
115179$as_echo "#define HAVE_PLUGIN_PCIE_ERRORS 1" >>confdefs.h
115180
115181        if test "x$plugin_pcie_errors" != "xyes"; then
115182          dependency_warning="yes"
115183        fi
115184      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
115185        dependency_error="yes"
115186        enable_plugin="$plugin_pcie_errors (dependency error)"
115187      fi
115188    fi
115189     if test "x$enable_plugin" = "xyes"; then
115190  BUILD_PLUGIN_PCIE_ERRORS_TRUE=
115191  BUILD_PLUGIN_PCIE_ERRORS_FALSE='#'
115192else
115193  BUILD_PLUGIN_PCIE_ERRORS_TRUE='#'
115194  BUILD_PLUGIN_PCIE_ERRORS_FALSE=
115195fi
115196
115197    enable_pcie_errors="$enable_plugin"
115198
115199
115200
115201    enable_plugin="no"
115202    force="no"
115203    # Check whether --enable-perl was given.
115204if test "${enable_perl+set}" = set; then :
115205  enableval=$enable_perl;
115206        if test "x$enableval" = "xyes"; then
115207          enable_plugin="yes"
115208        else if test "x$enableval" = "xforce"; then
115209          enable_plugin="yes"
115210          force="yes"
115211        else
115212          enable_plugin="no (disabled on command line)"
115213        fi; fi
115214
115215else
115216
115217        if test "x$enable_all_plugins" = "xauto"; then
115218          if test "x$plugin_perl" = "xyes"; then
115219            enable_plugin="yes"
115220          else
115221            enable_plugin="$plugin_perl"
115222          fi
115223        else
115224          enable_plugin="$enable_all_plugins"
115225        fi
115226
115227
115228fi
115229
115230    if test "x$enable_plugin" = "xyes"; then
115231      if test "x$plugin_perl" = "xyes" || test "x$force" = "xyes"; then
115232
115233$as_echo "#define HAVE_PLUGIN_PERL 1" >>confdefs.h
115234
115235        if test "x$plugin_perl" != "xyes"; then
115236          dependency_warning="yes"
115237        fi
115238      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
115239        dependency_error="yes"
115240        enable_plugin="$plugin_perl (dependency error)"
115241      fi
115242    fi
115243     if test "x$enable_plugin" = "xyes"; then
115244  BUILD_PLUGIN_PERL_TRUE=
115245  BUILD_PLUGIN_PERL_FALSE='#'
115246else
115247  BUILD_PLUGIN_PERL_TRUE='#'
115248  BUILD_PLUGIN_PERL_FALSE=
115249fi
115250
115251    enable_perl="$enable_plugin"
115252
115253
115254
115255    enable_plugin="no"
115256    force="no"
115257    # Check whether --enable-pf was given.
115258if test "${enable_pf+set}" = set; then :
115259  enableval=$enable_pf;
115260        if test "x$enableval" = "xyes"; then
115261          enable_plugin="yes"
115262        else if test "x$enableval" = "xforce"; then
115263          enable_plugin="yes"
115264          force="yes"
115265        else
115266          enable_plugin="no (disabled on command line)"
115267        fi; fi
115268
115269else
115270
115271        if test "x$enable_all_plugins" = "xauto"; then
115272          if test "x$have_net_pfvar_h" = "xyes"; then
115273            enable_plugin="yes"
115274          else
115275            enable_plugin="$have_net_pfvar_h"
115276          fi
115277        else
115278          enable_plugin="$enable_all_plugins"
115279        fi
115280
115281
115282fi
115283
115284    if test "x$enable_plugin" = "xyes"; then
115285      if test "x$have_net_pfvar_h" = "xyes" || test "x$force" = "xyes"; then
115286
115287$as_echo "#define HAVE_PLUGIN_PF 1" >>confdefs.h
115288
115289        if test "x$have_net_pfvar_h" != "xyes"; then
115290          dependency_warning="yes"
115291        fi
115292      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
115293        dependency_error="yes"
115294        enable_plugin="$have_net_pfvar_h (dependency error)"
115295      fi
115296    fi
115297     if test "x$enable_plugin" = "xyes"; then
115298  BUILD_PLUGIN_PF_TRUE=
115299  BUILD_PLUGIN_PF_FALSE='#'
115300else
115301  BUILD_PLUGIN_PF_TRUE='#'
115302  BUILD_PLUGIN_PF_FALSE=
115303fi
115304
115305    enable_pf="$enable_plugin"
115306
115307
115308# FIXME: Check for libevent, too.
115309
115310    enable_plugin="no"
115311    force="no"
115312    # Check whether --enable-pinba was given.
115313if test "${enable_pinba+set}" = set; then :
115314  enableval=$enable_pinba;
115315        if test "x$enableval" = "xyes"; then
115316          enable_plugin="yes"
115317        else if test "x$enableval" = "xforce"; then
115318          enable_plugin="yes"
115319          force="yes"
115320        else
115321          enable_plugin="no (disabled on command line)"
115322        fi; fi
115323
115324else
115325
115326        if test "x$enable_all_plugins" = "xauto"; then
115327          if test "x$plugin_pinba" = "xyes"; then
115328            enable_plugin="yes"
115329          else
115330            enable_plugin="$plugin_pinba"
115331          fi
115332        else
115333          enable_plugin="$enable_all_plugins"
115334        fi
115335
115336
115337fi
115338
115339    if test "x$enable_plugin" = "xyes"; then
115340      if test "x$plugin_pinba" = "xyes" || test "x$force" = "xyes"; then
115341
115342$as_echo "#define HAVE_PLUGIN_PINBA 1" >>confdefs.h
115343
115344        if test "x$plugin_pinba" != "xyes"; then
115345          dependency_warning="yes"
115346        fi
115347      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
115348        dependency_error="yes"
115349        enable_plugin="$plugin_pinba (dependency error)"
115350      fi
115351    fi
115352     if test "x$enable_plugin" = "xyes"; then
115353  BUILD_PLUGIN_PINBA_TRUE=
115354  BUILD_PLUGIN_PINBA_FALSE='#'
115355else
115356  BUILD_PLUGIN_PINBA_TRUE='#'
115357  BUILD_PLUGIN_PINBA_FALSE=
115358fi
115359
115360    enable_pinba="$enable_plugin"
115361
115362
115363
115364    enable_plugin="no"
115365    force="no"
115366    # Check whether --enable-ping was given.
115367if test "${enable_ping+set}" = set; then :
115368  enableval=$enable_ping;
115369        if test "x$enableval" = "xyes"; then
115370          enable_plugin="yes"
115371        else if test "x$enableval" = "xforce"; then
115372          enable_plugin="yes"
115373          force="yes"
115374        else
115375          enable_plugin="no (disabled on command line)"
115376        fi; fi
115377
115378else
115379
115380        if test "x$enable_all_plugins" = "xauto"; then
115381          if test "x$with_liboping" = "xyes"; then
115382            enable_plugin="yes"
115383          else
115384            enable_plugin="$with_liboping"
115385          fi
115386        else
115387          enable_plugin="$enable_all_plugins"
115388        fi
115389
115390
115391fi
115392
115393    if test "x$enable_plugin" = "xyes"; then
115394      if test "x$with_liboping" = "xyes" || test "x$force" = "xyes"; then
115395
115396$as_echo "#define HAVE_PLUGIN_PING 1" >>confdefs.h
115397
115398        if test "x$with_liboping" != "xyes"; then
115399          dependency_warning="yes"
115400        fi
115401      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
115402        dependency_error="yes"
115403        enable_plugin="$with_liboping (dependency error)"
115404      fi
115405    fi
115406     if test "x$enable_plugin" = "xyes"; then
115407  BUILD_PLUGIN_PING_TRUE=
115408  BUILD_PLUGIN_PING_FALSE='#'
115409else
115410  BUILD_PLUGIN_PING_TRUE='#'
115411  BUILD_PLUGIN_PING_FALSE=
115412fi
115413
115414    enable_ping="$enable_plugin"
115415
115416
115417
115418    enable_plugin="no"
115419    force="no"
115420    # Check whether --enable-postgresql was given.
115421if test "${enable_postgresql+set}" = set; then :
115422  enableval=$enable_postgresql;
115423        if test "x$enableval" = "xyes"; then
115424          enable_plugin="yes"
115425        else if test "x$enableval" = "xforce"; then
115426          enable_plugin="yes"
115427          force="yes"
115428        else
115429          enable_plugin="no (disabled on command line)"
115430        fi; fi
115431
115432else
115433
115434        if test "x$enable_all_plugins" = "xauto"; then
115435          if test "x$with_libpq" = "xyes"; then
115436            enable_plugin="yes"
115437          else
115438            enable_plugin="$with_libpq"
115439          fi
115440        else
115441          enable_plugin="$enable_all_plugins"
115442        fi
115443
115444
115445fi
115446
115447    if test "x$enable_plugin" = "xyes"; then
115448      if test "x$with_libpq" = "xyes" || test "x$force" = "xyes"; then
115449
115450$as_echo "#define HAVE_PLUGIN_POSTGRESQL 1" >>confdefs.h
115451
115452        if test "x$with_libpq" != "xyes"; then
115453          dependency_warning="yes"
115454        fi
115455      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
115456        dependency_error="yes"
115457        enable_plugin="$with_libpq (dependency error)"
115458      fi
115459    fi
115460     if test "x$enable_plugin" = "xyes"; then
115461  BUILD_PLUGIN_POSTGRESQL_TRUE=
115462  BUILD_PLUGIN_POSTGRESQL_FALSE='#'
115463else
115464  BUILD_PLUGIN_POSTGRESQL_TRUE='#'
115465  BUILD_PLUGIN_POSTGRESQL_FALSE=
115466fi
115467
115468    enable_postgresql="$enable_plugin"
115469
115470
115471
115472    enable_plugin="no"
115473    force="no"
115474    # Check whether --enable-powerdns was given.
115475if test "${enable_powerdns+set}" = set; then :
115476  enableval=$enable_powerdns;
115477        if test "x$enableval" = "xyes"; then
115478          enable_plugin="yes"
115479        else if test "x$enableval" = "xforce"; then
115480          enable_plugin="yes"
115481          force="yes"
115482        else
115483          enable_plugin="no (disabled on command line)"
115484        fi; fi
115485
115486else
115487
115488        if test "x$enable_all_plugins" = "xauto"; then
115489          if test "xyes" = "xyes"; then
115490            enable_plugin="yes"
115491          else
115492            enable_plugin="yes"
115493          fi
115494        else
115495          enable_plugin="$enable_all_plugins"
115496        fi
115497
115498
115499fi
115500
115501    if test "x$enable_plugin" = "xyes"; then
115502      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
115503
115504$as_echo "#define HAVE_PLUGIN_POWERDNS 1" >>confdefs.h
115505
115506        if test "xyes" != "xyes"; then
115507          dependency_warning="yes"
115508        fi
115509      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
115510        dependency_error="yes"
115511        enable_plugin="yes (dependency error)"
115512      fi
115513    fi
115514     if test "x$enable_plugin" = "xyes"; then
115515  BUILD_PLUGIN_POWERDNS_TRUE=
115516  BUILD_PLUGIN_POWERDNS_FALSE='#'
115517else
115518  BUILD_PLUGIN_POWERDNS_TRUE='#'
115519  BUILD_PLUGIN_POWERDNS_FALSE=
115520fi
115521
115522    enable_powerdns="$enable_plugin"
115523
115524
115525
115526    enable_plugin="no"
115527    force="no"
115528    # Check whether --enable-processes was given.
115529if test "${enable_processes+set}" = set; then :
115530  enableval=$enable_processes;
115531        if test "x$enableval" = "xyes"; then
115532          enable_plugin="yes"
115533        else if test "x$enableval" = "xforce"; then
115534          enable_plugin="yes"
115535          force="yes"
115536        else
115537          enable_plugin="no (disabled on command line)"
115538        fi; fi
115539
115540else
115541
115542        if test "x$enable_all_plugins" = "xauto"; then
115543          if test "x$plugin_processes" = "xyes"; then
115544            enable_plugin="yes"
115545          else
115546            enable_plugin="$plugin_processes"
115547          fi
115548        else
115549          enable_plugin="$enable_all_plugins"
115550        fi
115551
115552
115553fi
115554
115555    if test "x$enable_plugin" = "xyes"; then
115556      if test "x$plugin_processes" = "xyes" || test "x$force" = "xyes"; then
115557
115558$as_echo "#define HAVE_PLUGIN_PROCESSES 1" >>confdefs.h
115559
115560        if test "x$plugin_processes" != "xyes"; then
115561          dependency_warning="yes"
115562        fi
115563      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
115564        dependency_error="yes"
115565        enable_plugin="$plugin_processes (dependency error)"
115566      fi
115567    fi
115568     if test "x$enable_plugin" = "xyes"; then
115569  BUILD_PLUGIN_PROCESSES_TRUE=
115570  BUILD_PLUGIN_PROCESSES_FALSE='#'
115571else
115572  BUILD_PLUGIN_PROCESSES_TRUE='#'
115573  BUILD_PLUGIN_PROCESSES_FALSE=
115574fi
115575
115576    enable_processes="$enable_plugin"
115577
115578
115579
115580    enable_plugin="no"
115581    force="no"
115582    # Check whether --enable-procevent was given.
115583if test "${enable_procevent+set}" = set; then :
115584  enableval=$enable_procevent;
115585        if test "x$enableval" = "xyes"; then
115586          enable_plugin="yes"
115587        else if test "x$enableval" = "xforce"; then
115588          enable_plugin="yes"
115589          force="yes"
115590        else
115591          enable_plugin="no (disabled on command line)"
115592        fi; fi
115593
115594else
115595
115596        if test "x$enable_all_plugins" = "xauto"; then
115597          if test "x$plugin_procevent" = "xyes"; then
115598            enable_plugin="yes"
115599          else
115600            enable_plugin="$plugin_procevent"
115601          fi
115602        else
115603          enable_plugin="$enable_all_plugins"
115604        fi
115605
115606
115607fi
115608
115609    if test "x$enable_plugin" = "xyes"; then
115610      if test "x$plugin_procevent" = "xyes" || test "x$force" = "xyes"; then
115611
115612$as_echo "#define HAVE_PLUGIN_PROCEVENT 1" >>confdefs.h
115613
115614        if test "x$plugin_procevent" != "xyes"; then
115615          dependency_warning="yes"
115616        fi
115617      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
115618        dependency_error="yes"
115619        enable_plugin="$plugin_procevent (dependency error)"
115620      fi
115621    fi
115622     if test "x$enable_plugin" = "xyes"; then
115623  BUILD_PLUGIN_PROCEVENT_TRUE=
115624  BUILD_PLUGIN_PROCEVENT_FALSE='#'
115625else
115626  BUILD_PLUGIN_PROCEVENT_TRUE='#'
115627  BUILD_PLUGIN_PROCEVENT_FALSE=
115628fi
115629
115630    enable_procevent="$enable_plugin"
115631
115632
115633
115634    enable_plugin="no"
115635    force="no"
115636    # Check whether --enable-protocols was given.
115637if test "${enable_protocols+set}" = set; then :
115638  enableval=$enable_protocols;
115639        if test "x$enableval" = "xyes"; then
115640          enable_plugin="yes"
115641        else if test "x$enableval" = "xforce"; then
115642          enable_plugin="yes"
115643          force="yes"
115644        else
115645          enable_plugin="no (disabled on command line)"
115646        fi; fi
115647
115648else
115649
115650        if test "x$enable_all_plugins" = "xauto"; then
115651          if test "x$plugin_protocols" = "xyes"; then
115652            enable_plugin="yes"
115653          else
115654            enable_plugin="$plugin_protocols"
115655          fi
115656        else
115657          enable_plugin="$enable_all_plugins"
115658        fi
115659
115660
115661fi
115662
115663    if test "x$enable_plugin" = "xyes"; then
115664      if test "x$plugin_protocols" = "xyes" || test "x$force" = "xyes"; then
115665
115666$as_echo "#define HAVE_PLUGIN_PROTOCOLS 1" >>confdefs.h
115667
115668        if test "x$plugin_protocols" != "xyes"; then
115669          dependency_warning="yes"
115670        fi
115671      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
115672        dependency_error="yes"
115673        enable_plugin="$plugin_protocols (dependency error)"
115674      fi
115675    fi
115676     if test "x$enable_plugin" = "xyes"; then
115677  BUILD_PLUGIN_PROTOCOLS_TRUE=
115678  BUILD_PLUGIN_PROTOCOLS_FALSE='#'
115679else
115680  BUILD_PLUGIN_PROTOCOLS_TRUE='#'
115681  BUILD_PLUGIN_PROTOCOLS_FALSE=
115682fi
115683
115684    enable_protocols="$enable_plugin"
115685
115686
115687
115688    enable_plugin="no"
115689    force="no"
115690    # Check whether --enable-python was given.
115691if test "${enable_python+set}" = set; then :
115692  enableval=$enable_python;
115693        if test "x$enableval" = "xyes"; then
115694          enable_plugin="yes"
115695        else if test "x$enableval" = "xforce"; then
115696          enable_plugin="yes"
115697          force="yes"
115698        else
115699          enable_plugin="no (disabled on command line)"
115700        fi; fi
115701
115702else
115703
115704        if test "x$enable_all_plugins" = "xauto"; then
115705          if test "x$plugin_python" = "xyes"; then
115706            enable_plugin="yes"
115707          else
115708            enable_plugin="$plugin_python"
115709          fi
115710        else
115711          enable_plugin="$enable_all_plugins"
115712        fi
115713
115714
115715fi
115716
115717    if test "x$enable_plugin" = "xyes"; then
115718      if test "x$plugin_python" = "xyes" || test "x$force" = "xyes"; then
115719
115720$as_echo "#define HAVE_PLUGIN_PYTHON 1" >>confdefs.h
115721
115722        if test "x$plugin_python" != "xyes"; then
115723          dependency_warning="yes"
115724        fi
115725      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
115726        dependency_error="yes"
115727        enable_plugin="$plugin_python (dependency error)"
115728      fi
115729    fi
115730     if test "x$enable_plugin" = "xyes"; then
115731  BUILD_PLUGIN_PYTHON_TRUE=
115732  BUILD_PLUGIN_PYTHON_FALSE='#'
115733else
115734  BUILD_PLUGIN_PYTHON_TRUE='#'
115735  BUILD_PLUGIN_PYTHON_FALSE=
115736fi
115737
115738    enable_python="$enable_plugin"
115739
115740
115741
115742    enable_plugin="no"
115743    force="no"
115744    # Check whether --enable-redfish was given.
115745if test "${enable_redfish+set}" = set; then :
115746  enableval=$enable_redfish;
115747        if test "x$enableval" = "xyes"; then
115748          enable_plugin="yes"
115749        else if test "x$enableval" = "xforce"; then
115750          enable_plugin="yes"
115751          force="yes"
115752        else
115753          enable_plugin="no (disabled on command line)"
115754        fi; fi
115755
115756else
115757
115758        if test "x$enable_all_plugins" = "xauto"; then
115759          if test "x$with_libredfish" = "xyes"; then
115760            enable_plugin="yes"
115761          else
115762            enable_plugin="$with_libredfish"
115763          fi
115764        else
115765          enable_plugin="$enable_all_plugins"
115766        fi
115767
115768
115769fi
115770
115771    if test "x$enable_plugin" = "xyes"; then
115772      if test "x$with_libredfish" = "xyes" || test "x$force" = "xyes"; then
115773
115774$as_echo "#define HAVE_PLUGIN_REDFISH 1" >>confdefs.h
115775
115776        if test "x$with_libredfish" != "xyes"; then
115777          dependency_warning="yes"
115778        fi
115779      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
115780        dependency_error="yes"
115781        enable_plugin="$with_libredfish (dependency error)"
115782      fi
115783    fi
115784     if test "x$enable_plugin" = "xyes"; then
115785  BUILD_PLUGIN_REDFISH_TRUE=
115786  BUILD_PLUGIN_REDFISH_FALSE='#'
115787else
115788  BUILD_PLUGIN_REDFISH_TRUE='#'
115789  BUILD_PLUGIN_REDFISH_FALSE=
115790fi
115791
115792    enable_redfish="$enable_plugin"
115793
115794
115795
115796    enable_plugin="no"
115797    force="no"
115798    # Check whether --enable-redis was given.
115799if test "${enable_redis+set}" = set; then :
115800  enableval=$enable_redis;
115801        if test "x$enableval" = "xyes"; then
115802          enable_plugin="yes"
115803        else if test "x$enableval" = "xforce"; then
115804          enable_plugin="yes"
115805          force="yes"
115806        else
115807          enable_plugin="no (disabled on command line)"
115808        fi; fi
115809
115810else
115811
115812        if test "x$enable_all_plugins" = "xauto"; then
115813          if test "x$with_libhiredis" = "xyes"; then
115814            enable_plugin="yes"
115815          else
115816            enable_plugin="$with_libhiredis"
115817          fi
115818        else
115819          enable_plugin="$enable_all_plugins"
115820        fi
115821
115822
115823fi
115824
115825    if test "x$enable_plugin" = "xyes"; then
115826      if test "x$with_libhiredis" = "xyes" || test "x$force" = "xyes"; then
115827
115828$as_echo "#define HAVE_PLUGIN_REDIS 1" >>confdefs.h
115829
115830        if test "x$with_libhiredis" != "xyes"; then
115831          dependency_warning="yes"
115832        fi
115833      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
115834        dependency_error="yes"
115835        enable_plugin="$with_libhiredis (dependency error)"
115836      fi
115837    fi
115838     if test "x$enable_plugin" = "xyes"; then
115839  BUILD_PLUGIN_REDIS_TRUE=
115840  BUILD_PLUGIN_REDIS_FALSE='#'
115841else
115842  BUILD_PLUGIN_REDIS_TRUE='#'
115843  BUILD_PLUGIN_REDIS_FALSE=
115844fi
115845
115846    enable_redis="$enable_plugin"
115847
115848
115849
115850    enable_plugin="no"
115851    force="no"
115852    # Check whether --enable-routeros was given.
115853if test "${enable_routeros+set}" = set; then :
115854  enableval=$enable_routeros;
115855        if test "x$enableval" = "xyes"; then
115856          enable_plugin="yes"
115857        else if test "x$enableval" = "xforce"; then
115858          enable_plugin="yes"
115859          force="yes"
115860        else
115861          enable_plugin="no (disabled on command line)"
115862        fi; fi
115863
115864else
115865
115866        if test "x$enable_all_plugins" = "xauto"; then
115867          if test "x$with_librouteros" = "xyes"; then
115868            enable_plugin="yes"
115869          else
115870            enable_plugin="$with_librouteros"
115871          fi
115872        else
115873          enable_plugin="$enable_all_plugins"
115874        fi
115875
115876
115877fi
115878
115879    if test "x$enable_plugin" = "xyes"; then
115880      if test "x$with_librouteros" = "xyes" || test "x$force" = "xyes"; then
115881
115882$as_echo "#define HAVE_PLUGIN_ROUTEROS 1" >>confdefs.h
115883
115884        if test "x$with_librouteros" != "xyes"; then
115885          dependency_warning="yes"
115886        fi
115887      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
115888        dependency_error="yes"
115889        enable_plugin="$with_librouteros (dependency error)"
115890      fi
115891    fi
115892     if test "x$enable_plugin" = "xyes"; then
115893  BUILD_PLUGIN_ROUTEROS_TRUE=
115894  BUILD_PLUGIN_ROUTEROS_FALSE='#'
115895else
115896  BUILD_PLUGIN_ROUTEROS_TRUE='#'
115897  BUILD_PLUGIN_ROUTEROS_FALSE=
115898fi
115899
115900    enable_routeros="$enable_plugin"
115901
115902
115903
115904    enable_plugin="no"
115905    force="no"
115906    # Check whether --enable-rrdcached was given.
115907if test "${enable_rrdcached+set}" = set; then :
115908  enableval=$enable_rrdcached;
115909        if test "x$enableval" = "xyes"; then
115910          enable_plugin="yes"
115911        else if test "x$enableval" = "xforce"; then
115912          enable_plugin="yes"
115913          force="yes"
115914        else
115915          enable_plugin="no (disabled on command line)"
115916        fi; fi
115917
115918else
115919
115920        if test "x$enable_all_plugins" = "xauto"; then
115921          if test "x$librrd_rrdc_update" = "xyes"; then
115922            enable_plugin="yes"
115923          else
115924            enable_plugin="$librrd_rrdc_update"
115925          fi
115926        else
115927          enable_plugin="$enable_all_plugins"
115928        fi
115929
115930
115931fi
115932
115933    if test "x$enable_plugin" = "xyes"; then
115934      if test "x$librrd_rrdc_update" = "xyes" || test "x$force" = "xyes"; then
115935
115936$as_echo "#define HAVE_PLUGIN_RRDCACHED 1" >>confdefs.h
115937
115938        if test "x$librrd_rrdc_update" != "xyes"; then
115939          dependency_warning="yes"
115940        fi
115941      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
115942        dependency_error="yes"
115943        enable_plugin="$librrd_rrdc_update (dependency error)"
115944      fi
115945    fi
115946     if test "x$enable_plugin" = "xyes"; then
115947  BUILD_PLUGIN_RRDCACHED_TRUE=
115948  BUILD_PLUGIN_RRDCACHED_FALSE='#'
115949else
115950  BUILD_PLUGIN_RRDCACHED_TRUE='#'
115951  BUILD_PLUGIN_RRDCACHED_FALSE=
115952fi
115953
115954    enable_rrdcached="$enable_plugin"
115955
115956
115957
115958    enable_plugin="no"
115959    force="no"
115960    # Check whether --enable-rrdtool was given.
115961if test "${enable_rrdtool+set}" = set; then :
115962  enableval=$enable_rrdtool;
115963        if test "x$enableval" = "xyes"; then
115964          enable_plugin="yes"
115965        else if test "x$enableval" = "xforce"; then
115966          enable_plugin="yes"
115967          force="yes"
115968        else
115969          enable_plugin="no (disabled on command line)"
115970        fi; fi
115971
115972else
115973
115974        if test "x$enable_all_plugins" = "xauto"; then
115975          if test "x$with_librrd" = "xyes"; then
115976            enable_plugin="yes"
115977          else
115978            enable_plugin="$with_librrd"
115979          fi
115980        else
115981          enable_plugin="$enable_all_plugins"
115982        fi
115983
115984
115985fi
115986
115987    if test "x$enable_plugin" = "xyes"; then
115988      if test "x$with_librrd" = "xyes" || test "x$force" = "xyes"; then
115989
115990$as_echo "#define HAVE_PLUGIN_RRDTOOL 1" >>confdefs.h
115991
115992        if test "x$with_librrd" != "xyes"; then
115993          dependency_warning="yes"
115994        fi
115995      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
115996        dependency_error="yes"
115997        enable_plugin="$with_librrd (dependency error)"
115998      fi
115999    fi
116000     if test "x$enable_plugin" = "xyes"; then
116001  BUILD_PLUGIN_RRDTOOL_TRUE=
116002  BUILD_PLUGIN_RRDTOOL_FALSE='#'
116003else
116004  BUILD_PLUGIN_RRDTOOL_TRUE='#'
116005  BUILD_PLUGIN_RRDTOOL_FALSE=
116006fi
116007
116008    enable_rrdtool="$enable_plugin"
116009
116010
116011
116012    enable_plugin="no"
116013    force="no"
116014    # Check whether --enable-sensors was given.
116015if test "${enable_sensors+set}" = set; then :
116016  enableval=$enable_sensors;
116017        if test "x$enableval" = "xyes"; then
116018          enable_plugin="yes"
116019        else if test "x$enableval" = "xforce"; then
116020          enable_plugin="yes"
116021          force="yes"
116022        else
116023          enable_plugin="no (disabled on command line)"
116024        fi; fi
116025
116026else
116027
116028        if test "x$enable_all_plugins" = "xauto"; then
116029          if test "x$with_libsensors" = "xyes"; then
116030            enable_plugin="yes"
116031          else
116032            enable_plugin="$with_libsensors"
116033          fi
116034        else
116035          enable_plugin="$enable_all_plugins"
116036        fi
116037
116038
116039fi
116040
116041    if test "x$enable_plugin" = "xyes"; then
116042      if test "x$with_libsensors" = "xyes" || test "x$force" = "xyes"; then
116043
116044$as_echo "#define HAVE_PLUGIN_SENSORS 1" >>confdefs.h
116045
116046        if test "x$with_libsensors" != "xyes"; then
116047          dependency_warning="yes"
116048        fi
116049      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
116050        dependency_error="yes"
116051        enable_plugin="$with_libsensors (dependency error)"
116052      fi
116053    fi
116054     if test "x$enable_plugin" = "xyes"; then
116055  BUILD_PLUGIN_SENSORS_TRUE=
116056  BUILD_PLUGIN_SENSORS_FALSE='#'
116057else
116058  BUILD_PLUGIN_SENSORS_TRUE='#'
116059  BUILD_PLUGIN_SENSORS_FALSE=
116060fi
116061
116062    enable_sensors="$enable_plugin"
116063
116064
116065
116066    enable_plugin="no"
116067    force="no"
116068    # Check whether --enable-serial was given.
116069if test "${enable_serial+set}" = set; then :
116070  enableval=$enable_serial;
116071        if test "x$enableval" = "xyes"; then
116072          enable_plugin="yes"
116073        else if test "x$enableval" = "xforce"; then
116074          enable_plugin="yes"
116075          force="yes"
116076        else
116077          enable_plugin="no (disabled on command line)"
116078        fi; fi
116079
116080else
116081
116082        if test "x$enable_all_plugins" = "xauto"; then
116083          if test "x$plugin_serial" = "xyes"; then
116084            enable_plugin="yes"
116085          else
116086            enable_plugin="$plugin_serial"
116087          fi
116088        else
116089          enable_plugin="$enable_all_plugins"
116090        fi
116091
116092
116093fi
116094
116095    if test "x$enable_plugin" = "xyes"; then
116096      if test "x$plugin_serial" = "xyes" || test "x$force" = "xyes"; then
116097
116098$as_echo "#define HAVE_PLUGIN_SERIAL 1" >>confdefs.h
116099
116100        if test "x$plugin_serial" != "xyes"; then
116101          dependency_warning="yes"
116102        fi
116103      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
116104        dependency_error="yes"
116105        enable_plugin="$plugin_serial (dependency error)"
116106      fi
116107    fi
116108     if test "x$enable_plugin" = "xyes"; then
116109  BUILD_PLUGIN_SERIAL_TRUE=
116110  BUILD_PLUGIN_SERIAL_FALSE='#'
116111else
116112  BUILD_PLUGIN_SERIAL_TRUE='#'
116113  BUILD_PLUGIN_SERIAL_FALSE=
116114fi
116115
116116    enable_serial="$enable_plugin"
116117
116118
116119
116120    enable_plugin="no"
116121    force="no"
116122    # Check whether --enable-sigrok was given.
116123if test "${enable_sigrok+set}" = set; then :
116124  enableval=$enable_sigrok;
116125        if test "x$enableval" = "xyes"; then
116126          enable_plugin="yes"
116127        else if test "x$enableval" = "xforce"; then
116128          enable_plugin="yes"
116129          force="yes"
116130        else
116131          enable_plugin="no (disabled on command line)"
116132        fi; fi
116133
116134else
116135
116136        if test "x$enable_all_plugins" = "xauto"; then
116137          if test "x$with_libsigrok" = "xyes"; then
116138            enable_plugin="yes"
116139          else
116140            enable_plugin="$with_libsigrok"
116141          fi
116142        else
116143          enable_plugin="$enable_all_plugins"
116144        fi
116145
116146
116147fi
116148
116149    if test "x$enable_plugin" = "xyes"; then
116150      if test "x$with_libsigrok" = "xyes" || test "x$force" = "xyes"; then
116151
116152$as_echo "#define HAVE_PLUGIN_SIGROK 1" >>confdefs.h
116153
116154        if test "x$with_libsigrok" != "xyes"; then
116155          dependency_warning="yes"
116156        fi
116157      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
116158        dependency_error="yes"
116159        enable_plugin="$with_libsigrok (dependency error)"
116160      fi
116161    fi
116162     if test "x$enable_plugin" = "xyes"; then
116163  BUILD_PLUGIN_SIGROK_TRUE=
116164  BUILD_PLUGIN_SIGROK_FALSE='#'
116165else
116166  BUILD_PLUGIN_SIGROK_TRUE='#'
116167  BUILD_PLUGIN_SIGROK_FALSE=
116168fi
116169
116170    enable_sigrok="$enable_plugin"
116171
116172
116173
116174    enable_plugin="no"
116175    force="no"
116176    # Check whether --enable-slurm was given.
116177if test "${enable_slurm+set}" = set; then :
116178  enableval=$enable_slurm;
116179        if test "x$enableval" = "xyes"; then
116180          enable_plugin="yes"
116181        else if test "x$enableval" = "xforce"; then
116182          enable_plugin="yes"
116183          force="yes"
116184        else
116185          enable_plugin="no (disabled on command line)"
116186        fi; fi
116187
116188else
116189
116190        if test "x$enable_all_plugins" = "xauto"; then
116191          if test "x$with_libslurm" = "xyes"; then
116192            enable_plugin="yes"
116193          else
116194            enable_plugin="$with_libslurm"
116195          fi
116196        else
116197          enable_plugin="$enable_all_plugins"
116198        fi
116199
116200
116201fi
116202
116203    if test "x$enable_plugin" = "xyes"; then
116204      if test "x$with_libslurm" = "xyes" || test "x$force" = "xyes"; then
116205
116206$as_echo "#define HAVE_PLUGIN_SLURM 1" >>confdefs.h
116207
116208        if test "x$with_libslurm" != "xyes"; then
116209          dependency_warning="yes"
116210        fi
116211      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
116212        dependency_error="yes"
116213        enable_plugin="$with_libslurm (dependency error)"
116214      fi
116215    fi
116216     if test "x$enable_plugin" = "xyes"; then
116217  BUILD_PLUGIN_SLURM_TRUE=
116218  BUILD_PLUGIN_SLURM_FALSE='#'
116219else
116220  BUILD_PLUGIN_SLURM_TRUE='#'
116221  BUILD_PLUGIN_SLURM_FALSE=
116222fi
116223
116224    enable_slurm="$enable_plugin"
116225
116226
116227
116228    enable_plugin="no"
116229    force="no"
116230    # Check whether --enable-smart was given.
116231if test "${enable_smart+set}" = set; then :
116232  enableval=$enable_smart;
116233        if test "x$enableval" = "xyes"; then
116234          enable_plugin="yes"
116235        else if test "x$enableval" = "xforce"; then
116236          enable_plugin="yes"
116237          force="yes"
116238        else
116239          enable_plugin="no (disabled on command line)"
116240        fi; fi
116241
116242else
116243
116244        if test "x$enable_all_plugins" = "xauto"; then
116245          if test "x$plugin_smart" = "xyes"; then
116246            enable_plugin="yes"
116247          else
116248            enable_plugin="$plugin_smart"
116249          fi
116250        else
116251          enable_plugin="$enable_all_plugins"
116252        fi
116253
116254
116255fi
116256
116257    if test "x$enable_plugin" = "xyes"; then
116258      if test "x$plugin_smart" = "xyes" || test "x$force" = "xyes"; then
116259
116260$as_echo "#define HAVE_PLUGIN_SMART 1" >>confdefs.h
116261
116262        if test "x$plugin_smart" != "xyes"; then
116263          dependency_warning="yes"
116264        fi
116265      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
116266        dependency_error="yes"
116267        enable_plugin="$plugin_smart (dependency error)"
116268      fi
116269    fi
116270     if test "x$enable_plugin" = "xyes"; then
116271  BUILD_PLUGIN_SMART_TRUE=
116272  BUILD_PLUGIN_SMART_FALSE='#'
116273else
116274  BUILD_PLUGIN_SMART_TRUE='#'
116275  BUILD_PLUGIN_SMART_FALSE=
116276fi
116277
116278    enable_smart="$enable_plugin"
116279
116280
116281
116282    enable_plugin="no"
116283    force="no"
116284    # Check whether --enable-snmp was given.
116285if test "${enable_snmp+set}" = set; then :
116286  enableval=$enable_snmp;
116287        if test "x$enableval" = "xyes"; then
116288          enable_plugin="yes"
116289        else if test "x$enableval" = "xforce"; then
116290          enable_plugin="yes"
116291          force="yes"
116292        else
116293          enable_plugin="no (disabled on command line)"
116294        fi; fi
116295
116296else
116297
116298        if test "x$enable_all_plugins" = "xauto"; then
116299          if test "x$with_libnetsnmp" = "xyes"; then
116300            enable_plugin="yes"
116301          else
116302            enable_plugin="$with_libnetsnmp"
116303          fi
116304        else
116305          enable_plugin="$enable_all_plugins"
116306        fi
116307
116308
116309fi
116310
116311    if test "x$enable_plugin" = "xyes"; then
116312      if test "x$with_libnetsnmp" = "xyes" || test "x$force" = "xyes"; then
116313
116314$as_echo "#define HAVE_PLUGIN_SNMP 1" >>confdefs.h
116315
116316        if test "x$with_libnetsnmp" != "xyes"; then
116317          dependency_warning="yes"
116318        fi
116319      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
116320        dependency_error="yes"
116321        enable_plugin="$with_libnetsnmp (dependency error)"
116322      fi
116323    fi
116324     if test "x$enable_plugin" = "xyes"; then
116325  BUILD_PLUGIN_SNMP_TRUE=
116326  BUILD_PLUGIN_SNMP_FALSE='#'
116327else
116328  BUILD_PLUGIN_SNMP_TRUE='#'
116329  BUILD_PLUGIN_SNMP_FALSE=
116330fi
116331
116332    enable_snmp="$enable_plugin"
116333
116334
116335
116336    enable_plugin="no"
116337    force="no"
116338    # Check whether --enable-snmp_agent was given.
116339if test "${enable_snmp_agent+set}" = set; then :
116340  enableval=$enable_snmp_agent;
116341        if test "x$enableval" = "xyes"; then
116342          enable_plugin="yes"
116343        else if test "x$enableval" = "xforce"; then
116344          enable_plugin="yes"
116345          force="yes"
116346        else
116347          enable_plugin="no (disabled on command line)"
116348        fi; fi
116349
116350else
116351
116352        if test "x$enable_all_plugins" = "xauto"; then
116353          if test "x$with_libnetsnmpagent" = "xyes"; then
116354            enable_plugin="yes"
116355          else
116356            enable_plugin="$with_libnetsnmpagent"
116357          fi
116358        else
116359          enable_plugin="$enable_all_plugins"
116360        fi
116361
116362
116363fi
116364
116365    if test "x$enable_plugin" = "xyes"; then
116366      if test "x$with_libnetsnmpagent" = "xyes" || test "x$force" = "xyes"; then
116367
116368$as_echo "#define HAVE_PLUGIN_SNMP_AGENT 1" >>confdefs.h
116369
116370        if test "x$with_libnetsnmpagent" != "xyes"; then
116371          dependency_warning="yes"
116372        fi
116373      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
116374        dependency_error="yes"
116375        enable_plugin="$with_libnetsnmpagent (dependency error)"
116376      fi
116377    fi
116378     if test "x$enable_plugin" = "xyes"; then
116379  BUILD_PLUGIN_SNMP_AGENT_TRUE=
116380  BUILD_PLUGIN_SNMP_AGENT_FALSE='#'
116381else
116382  BUILD_PLUGIN_SNMP_AGENT_TRUE='#'
116383  BUILD_PLUGIN_SNMP_AGENT_FALSE=
116384fi
116385
116386    enable_snmp_agent="$enable_plugin"
116387
116388
116389
116390    enable_plugin="no"
116391    force="no"
116392    # Check whether --enable-statsd was given.
116393if test "${enable_statsd+set}" = set; then :
116394  enableval=$enable_statsd;
116395        if test "x$enableval" = "xyes"; then
116396          enable_plugin="yes"
116397        else if test "x$enableval" = "xforce"; then
116398          enable_plugin="yes"
116399          force="yes"
116400        else
116401          enable_plugin="no (disabled on command line)"
116402        fi; fi
116403
116404else
116405
116406        if test "x$enable_all_plugins" = "xauto"; then
116407          if test "xyes" = "xyes"; then
116408            enable_plugin="yes"
116409          else
116410            enable_plugin="yes"
116411          fi
116412        else
116413          enable_plugin="$enable_all_plugins"
116414        fi
116415
116416
116417fi
116418
116419    if test "x$enable_plugin" = "xyes"; then
116420      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
116421
116422$as_echo "#define HAVE_PLUGIN_STATSD 1" >>confdefs.h
116423
116424        if test "xyes" != "xyes"; then
116425          dependency_warning="yes"
116426        fi
116427      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
116428        dependency_error="yes"
116429        enable_plugin="yes (dependency error)"
116430      fi
116431    fi
116432     if test "x$enable_plugin" = "xyes"; then
116433  BUILD_PLUGIN_STATSD_TRUE=
116434  BUILD_PLUGIN_STATSD_FALSE='#'
116435else
116436  BUILD_PLUGIN_STATSD_TRUE='#'
116437  BUILD_PLUGIN_STATSD_FALSE=
116438fi
116439
116440    enable_statsd="$enable_plugin"
116441
116442
116443
116444    enable_plugin="no"
116445    force="no"
116446    # Check whether --enable-swap was given.
116447if test "${enable_swap+set}" = set; then :
116448  enableval=$enable_swap;
116449        if test "x$enableval" = "xyes"; then
116450          enable_plugin="yes"
116451        else if test "x$enableval" = "xforce"; then
116452          enable_plugin="yes"
116453          force="yes"
116454        else
116455          enable_plugin="no (disabled on command line)"
116456        fi; fi
116457
116458else
116459
116460        if test "x$enable_all_plugins" = "xauto"; then
116461          if test "x$plugin_swap" = "xyes"; then
116462            enable_plugin="yes"
116463          else
116464            enable_plugin="$plugin_swap"
116465          fi
116466        else
116467          enable_plugin="$enable_all_plugins"
116468        fi
116469
116470
116471fi
116472
116473    if test "x$enable_plugin" = "xyes"; then
116474      if test "x$plugin_swap" = "xyes" || test "x$force" = "xyes"; then
116475
116476$as_echo "#define HAVE_PLUGIN_SWAP 1" >>confdefs.h
116477
116478        if test "x$plugin_swap" != "xyes"; then
116479          dependency_warning="yes"
116480        fi
116481      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
116482        dependency_error="yes"
116483        enable_plugin="$plugin_swap (dependency error)"
116484      fi
116485    fi
116486     if test "x$enable_plugin" = "xyes"; then
116487  BUILD_PLUGIN_SWAP_TRUE=
116488  BUILD_PLUGIN_SWAP_FALSE='#'
116489else
116490  BUILD_PLUGIN_SWAP_TRUE='#'
116491  BUILD_PLUGIN_SWAP_FALSE=
116492fi
116493
116494    enable_swap="$enable_plugin"
116495
116496
116497
116498    enable_plugin="no"
116499    force="no"
116500    # Check whether --enable-synproxy was given.
116501if test "${enable_synproxy+set}" = set; then :
116502  enableval=$enable_synproxy;
116503        if test "x$enableval" = "xyes"; then
116504          enable_plugin="yes"
116505        else if test "x$enableval" = "xforce"; then
116506          enable_plugin="yes"
116507          force="yes"
116508        else
116509          enable_plugin="no (disabled on command line)"
116510        fi; fi
116511
116512else
116513
116514        if test "x$enable_all_plugins" = "xauto"; then
116515          if test "x$plugin_synproxy" = "xyes"; then
116516            enable_plugin="yes"
116517          else
116518            enable_plugin="$plugin_synproxy"
116519          fi
116520        else
116521          enable_plugin="$enable_all_plugins"
116522        fi
116523
116524
116525fi
116526
116527    if test "x$enable_plugin" = "xyes"; then
116528      if test "x$plugin_synproxy" = "xyes" || test "x$force" = "xyes"; then
116529
116530$as_echo "#define HAVE_PLUGIN_SYNPROXY 1" >>confdefs.h
116531
116532        if test "x$plugin_synproxy" != "xyes"; then
116533          dependency_warning="yes"
116534        fi
116535      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
116536        dependency_error="yes"
116537        enable_plugin="$plugin_synproxy (dependency error)"
116538      fi
116539    fi
116540     if test "x$enable_plugin" = "xyes"; then
116541  BUILD_PLUGIN_SYNPROXY_TRUE=
116542  BUILD_PLUGIN_SYNPROXY_FALSE='#'
116543else
116544  BUILD_PLUGIN_SYNPROXY_TRUE='#'
116545  BUILD_PLUGIN_SYNPROXY_FALSE=
116546fi
116547
116548    enable_synproxy="$enable_plugin"
116549
116550
116551
116552    enable_plugin="no"
116553    force="no"
116554    # Check whether --enable-sysevent was given.
116555if test "${enable_sysevent+set}" = set; then :
116556  enableval=$enable_sysevent;
116557        if test "x$enableval" = "xyes"; then
116558          enable_plugin="yes"
116559        else if test "x$enableval" = "xforce"; then
116560          enable_plugin="yes"
116561          force="yes"
116562        else
116563          enable_plugin="no (disabled on command line)"
116564        fi; fi
116565
116566else
116567
116568        if test "x$enable_all_plugins" = "xauto"; then
116569          if test "x$plugin_sysevent" = "xyes"; then
116570            enable_plugin="yes"
116571          else
116572            enable_plugin="$plugin_sysevent"
116573          fi
116574        else
116575          enable_plugin="$enable_all_plugins"
116576        fi
116577
116578
116579fi
116580
116581    if test "x$enable_plugin" = "xyes"; then
116582      if test "x$plugin_sysevent" = "xyes" || test "x$force" = "xyes"; then
116583
116584$as_echo "#define HAVE_PLUGIN_SYSEVENT 1" >>confdefs.h
116585
116586        if test "x$plugin_sysevent" != "xyes"; then
116587          dependency_warning="yes"
116588        fi
116589      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
116590        dependency_error="yes"
116591        enable_plugin="$plugin_sysevent (dependency error)"
116592      fi
116593    fi
116594     if test "x$enable_plugin" = "xyes"; then
116595  BUILD_PLUGIN_SYSEVENT_TRUE=
116596  BUILD_PLUGIN_SYSEVENT_FALSE='#'
116597else
116598  BUILD_PLUGIN_SYSEVENT_TRUE='#'
116599  BUILD_PLUGIN_SYSEVENT_FALSE=
116600fi
116601
116602    enable_sysevent="$enable_plugin"
116603
116604
116605
116606    enable_plugin="no"
116607    force="no"
116608    # Check whether --enable-syslog was given.
116609if test "${enable_syslog+set}" = set; then :
116610  enableval=$enable_syslog;
116611        if test "x$enableval" = "xyes"; then
116612          enable_plugin="yes"
116613        else if test "x$enableval" = "xforce"; then
116614          enable_plugin="yes"
116615          force="yes"
116616        else
116617          enable_plugin="no (disabled on command line)"
116618        fi; fi
116619
116620else
116621
116622        if test "x$enable_all_plugins" = "xauto"; then
116623          if test "x$have_syslog" = "xyes"; then
116624            enable_plugin="yes"
116625          else
116626            enable_plugin="$have_syslog"
116627          fi
116628        else
116629          enable_plugin="$enable_all_plugins"
116630        fi
116631
116632
116633fi
116634
116635    if test "x$enable_plugin" = "xyes"; then
116636      if test "x$have_syslog" = "xyes" || test "x$force" = "xyes"; then
116637
116638$as_echo "#define HAVE_PLUGIN_SYSLOG 1" >>confdefs.h
116639
116640        if test "x$have_syslog" != "xyes"; then
116641          dependency_warning="yes"
116642        fi
116643      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
116644        dependency_error="yes"
116645        enable_plugin="$have_syslog (dependency error)"
116646      fi
116647    fi
116648     if test "x$enable_plugin" = "xyes"; then
116649  BUILD_PLUGIN_SYSLOG_TRUE=
116650  BUILD_PLUGIN_SYSLOG_FALSE='#'
116651else
116652  BUILD_PLUGIN_SYSLOG_TRUE='#'
116653  BUILD_PLUGIN_SYSLOG_FALSE=
116654fi
116655
116656    enable_syslog="$enable_plugin"
116657
116658
116659
116660    enable_plugin="no"
116661    force="no"
116662    # Check whether --enable-table was given.
116663if test "${enable_table+set}" = set; then :
116664  enableval=$enable_table;
116665        if test "x$enableval" = "xyes"; then
116666          enable_plugin="yes"
116667        else if test "x$enableval" = "xforce"; then
116668          enable_plugin="yes"
116669          force="yes"
116670        else
116671          enable_plugin="no (disabled on command line)"
116672        fi; fi
116673
116674else
116675
116676        if test "x$enable_all_plugins" = "xauto"; then
116677          if test "xyes" = "xyes"; then
116678            enable_plugin="yes"
116679          else
116680            enable_plugin="yes"
116681          fi
116682        else
116683          enable_plugin="$enable_all_plugins"
116684        fi
116685
116686
116687fi
116688
116689    if test "x$enable_plugin" = "xyes"; then
116690      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
116691
116692$as_echo "#define HAVE_PLUGIN_TABLE 1" >>confdefs.h
116693
116694        if test "xyes" != "xyes"; then
116695          dependency_warning="yes"
116696        fi
116697      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
116698        dependency_error="yes"
116699        enable_plugin="yes (dependency error)"
116700      fi
116701    fi
116702     if test "x$enable_plugin" = "xyes"; then
116703  BUILD_PLUGIN_TABLE_TRUE=
116704  BUILD_PLUGIN_TABLE_FALSE='#'
116705else
116706  BUILD_PLUGIN_TABLE_TRUE='#'
116707  BUILD_PLUGIN_TABLE_FALSE=
116708fi
116709
116710    enable_table="$enable_plugin"
116711
116712
116713
116714    enable_plugin="no"
116715    force="no"
116716    # Check whether --enable-tail was given.
116717if test "${enable_tail+set}" = set; then :
116718  enableval=$enable_tail;
116719        if test "x$enableval" = "xyes"; then
116720          enable_plugin="yes"
116721        else if test "x$enableval" = "xforce"; then
116722          enable_plugin="yes"
116723          force="yes"
116724        else
116725          enable_plugin="no (disabled on command line)"
116726        fi; fi
116727
116728else
116729
116730        if test "x$enable_all_plugins" = "xauto"; then
116731          if test "xyes" = "xyes"; then
116732            enable_plugin="yes"
116733          else
116734            enable_plugin="yes"
116735          fi
116736        else
116737          enable_plugin="$enable_all_plugins"
116738        fi
116739
116740
116741fi
116742
116743    if test "x$enable_plugin" = "xyes"; then
116744      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
116745
116746$as_echo "#define HAVE_PLUGIN_TAIL 1" >>confdefs.h
116747
116748        if test "xyes" != "xyes"; then
116749          dependency_warning="yes"
116750        fi
116751      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
116752        dependency_error="yes"
116753        enable_plugin="yes (dependency error)"
116754      fi
116755    fi
116756     if test "x$enable_plugin" = "xyes"; then
116757  BUILD_PLUGIN_TAIL_TRUE=
116758  BUILD_PLUGIN_TAIL_FALSE='#'
116759else
116760  BUILD_PLUGIN_TAIL_TRUE='#'
116761  BUILD_PLUGIN_TAIL_FALSE=
116762fi
116763
116764    enable_tail="$enable_plugin"
116765
116766
116767
116768    enable_plugin="no"
116769    force="no"
116770    # Check whether --enable-tail_csv was given.
116771if test "${enable_tail_csv+set}" = set; then :
116772  enableval=$enable_tail_csv;
116773        if test "x$enableval" = "xyes"; then
116774          enable_plugin="yes"
116775        else if test "x$enableval" = "xforce"; then
116776          enable_plugin="yes"
116777          force="yes"
116778        else
116779          enable_plugin="no (disabled on command line)"
116780        fi; fi
116781
116782else
116783
116784        if test "x$enable_all_plugins" = "xauto"; then
116785          if test "xyes" = "xyes"; then
116786            enable_plugin="yes"
116787          else
116788            enable_plugin="yes"
116789          fi
116790        else
116791          enable_plugin="$enable_all_plugins"
116792        fi
116793
116794
116795fi
116796
116797    if test "x$enable_plugin" = "xyes"; then
116798      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
116799
116800$as_echo "#define HAVE_PLUGIN_TAIL_CSV 1" >>confdefs.h
116801
116802        if test "xyes" != "xyes"; then
116803          dependency_warning="yes"
116804        fi
116805      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
116806        dependency_error="yes"
116807        enable_plugin="yes (dependency error)"
116808      fi
116809    fi
116810     if test "x$enable_plugin" = "xyes"; then
116811  BUILD_PLUGIN_TAIL_CSV_TRUE=
116812  BUILD_PLUGIN_TAIL_CSV_FALSE='#'
116813else
116814  BUILD_PLUGIN_TAIL_CSV_TRUE='#'
116815  BUILD_PLUGIN_TAIL_CSV_FALSE=
116816fi
116817
116818    enable_tail_csv="$enable_plugin"
116819
116820
116821
116822    enable_plugin="no"
116823    force="no"
116824    # Check whether --enable-tape was given.
116825if test "${enable_tape+set}" = set; then :
116826  enableval=$enable_tape;
116827        if test "x$enableval" = "xyes"; then
116828          enable_plugin="yes"
116829        else if test "x$enableval" = "xforce"; then
116830          enable_plugin="yes"
116831          force="yes"
116832        else
116833          enable_plugin="no (disabled on command line)"
116834        fi; fi
116835
116836else
116837
116838        if test "x$enable_all_plugins" = "xauto"; then
116839          if test "x$plugin_tape" = "xyes"; then
116840            enable_plugin="yes"
116841          else
116842            enable_plugin="$plugin_tape"
116843          fi
116844        else
116845          enable_plugin="$enable_all_plugins"
116846        fi
116847
116848
116849fi
116850
116851    if test "x$enable_plugin" = "xyes"; then
116852      if test "x$plugin_tape" = "xyes" || test "x$force" = "xyes"; then
116853
116854$as_echo "#define HAVE_PLUGIN_TAPE 1" >>confdefs.h
116855
116856        if test "x$plugin_tape" != "xyes"; then
116857          dependency_warning="yes"
116858        fi
116859      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
116860        dependency_error="yes"
116861        enable_plugin="$plugin_tape (dependency error)"
116862      fi
116863    fi
116864     if test "x$enable_plugin" = "xyes"; then
116865  BUILD_PLUGIN_TAPE_TRUE=
116866  BUILD_PLUGIN_TAPE_FALSE='#'
116867else
116868  BUILD_PLUGIN_TAPE_TRUE='#'
116869  BUILD_PLUGIN_TAPE_FALSE=
116870fi
116871
116872    enable_tape="$enable_plugin"
116873
116874
116875
116876    enable_plugin="no"
116877    force="no"
116878    # Check whether --enable-target_notification was given.
116879if test "${enable_target_notification+set}" = set; then :
116880  enableval=$enable_target_notification;
116881        if test "x$enableval" = "xyes"; then
116882          enable_plugin="yes"
116883        else if test "x$enableval" = "xforce"; then
116884          enable_plugin="yes"
116885          force="yes"
116886        else
116887          enable_plugin="no (disabled on command line)"
116888        fi; fi
116889
116890else
116891
116892        if test "x$enable_all_plugins" = "xauto"; then
116893          if test "xyes" = "xyes"; then
116894            enable_plugin="yes"
116895          else
116896            enable_plugin="yes"
116897          fi
116898        else
116899          enable_plugin="$enable_all_plugins"
116900        fi
116901
116902
116903fi
116904
116905    if test "x$enable_plugin" = "xyes"; then
116906      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
116907
116908$as_echo "#define HAVE_PLUGIN_TARGET_NOTIFICATION 1" >>confdefs.h
116909
116910        if test "xyes" != "xyes"; then
116911          dependency_warning="yes"
116912        fi
116913      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
116914        dependency_error="yes"
116915        enable_plugin="yes (dependency error)"
116916      fi
116917    fi
116918     if test "x$enable_plugin" = "xyes"; then
116919  BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE=
116920  BUILD_PLUGIN_TARGET_NOTIFICATION_FALSE='#'
116921else
116922  BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE='#'
116923  BUILD_PLUGIN_TARGET_NOTIFICATION_FALSE=
116924fi
116925
116926    enable_target_notification="$enable_plugin"
116927
116928
116929
116930    enable_plugin="no"
116931    force="no"
116932    # Check whether --enable-target_replace was given.
116933if test "${enable_target_replace+set}" = set; then :
116934  enableval=$enable_target_replace;
116935        if test "x$enableval" = "xyes"; then
116936          enable_plugin="yes"
116937        else if test "x$enableval" = "xforce"; then
116938          enable_plugin="yes"
116939          force="yes"
116940        else
116941          enable_plugin="no (disabled on command line)"
116942        fi; fi
116943
116944else
116945
116946        if test "x$enable_all_plugins" = "xauto"; then
116947          if test "xyes" = "xyes"; then
116948            enable_plugin="yes"
116949          else
116950            enable_plugin="yes"
116951          fi
116952        else
116953          enable_plugin="$enable_all_plugins"
116954        fi
116955
116956
116957fi
116958
116959    if test "x$enable_plugin" = "xyes"; then
116960      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
116961
116962$as_echo "#define HAVE_PLUGIN_TARGET_REPLACE 1" >>confdefs.h
116963
116964        if test "xyes" != "xyes"; then
116965          dependency_warning="yes"
116966        fi
116967      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
116968        dependency_error="yes"
116969        enable_plugin="yes (dependency error)"
116970      fi
116971    fi
116972     if test "x$enable_plugin" = "xyes"; then
116973  BUILD_PLUGIN_TARGET_REPLACE_TRUE=
116974  BUILD_PLUGIN_TARGET_REPLACE_FALSE='#'
116975else
116976  BUILD_PLUGIN_TARGET_REPLACE_TRUE='#'
116977  BUILD_PLUGIN_TARGET_REPLACE_FALSE=
116978fi
116979
116980    enable_target_replace="$enable_plugin"
116981
116982
116983
116984    enable_plugin="no"
116985    force="no"
116986    # Check whether --enable-target_scale was given.
116987if test "${enable_target_scale+set}" = set; then :
116988  enableval=$enable_target_scale;
116989        if test "x$enableval" = "xyes"; then
116990          enable_plugin="yes"
116991        else if test "x$enableval" = "xforce"; then
116992          enable_plugin="yes"
116993          force="yes"
116994        else
116995          enable_plugin="no (disabled on command line)"
116996        fi; fi
116997
116998else
116999
117000        if test "x$enable_all_plugins" = "xauto"; then
117001          if test "xyes" = "xyes"; then
117002            enable_plugin="yes"
117003          else
117004            enable_plugin="yes"
117005          fi
117006        else
117007          enable_plugin="$enable_all_plugins"
117008        fi
117009
117010
117011fi
117012
117013    if test "x$enable_plugin" = "xyes"; then
117014      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
117015
117016$as_echo "#define HAVE_PLUGIN_TARGET_SCALE 1" >>confdefs.h
117017
117018        if test "xyes" != "xyes"; then
117019          dependency_warning="yes"
117020        fi
117021      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
117022        dependency_error="yes"
117023        enable_plugin="yes (dependency error)"
117024      fi
117025    fi
117026     if test "x$enable_plugin" = "xyes"; then
117027  BUILD_PLUGIN_TARGET_SCALE_TRUE=
117028  BUILD_PLUGIN_TARGET_SCALE_FALSE='#'
117029else
117030  BUILD_PLUGIN_TARGET_SCALE_TRUE='#'
117031  BUILD_PLUGIN_TARGET_SCALE_FALSE=
117032fi
117033
117034    enable_target_scale="$enable_plugin"
117035
117036
117037
117038    enable_plugin="no"
117039    force="no"
117040    # Check whether --enable-target_set was given.
117041if test "${enable_target_set+set}" = set; then :
117042  enableval=$enable_target_set;
117043        if test "x$enableval" = "xyes"; then
117044          enable_plugin="yes"
117045        else if test "x$enableval" = "xforce"; then
117046          enable_plugin="yes"
117047          force="yes"
117048        else
117049          enable_plugin="no (disabled on command line)"
117050        fi; fi
117051
117052else
117053
117054        if test "x$enable_all_plugins" = "xauto"; then
117055          if test "xyes" = "xyes"; then
117056            enable_plugin="yes"
117057          else
117058            enable_plugin="yes"
117059          fi
117060        else
117061          enable_plugin="$enable_all_plugins"
117062        fi
117063
117064
117065fi
117066
117067    if test "x$enable_plugin" = "xyes"; then
117068      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
117069
117070$as_echo "#define HAVE_PLUGIN_TARGET_SET 1" >>confdefs.h
117071
117072        if test "xyes" != "xyes"; then
117073          dependency_warning="yes"
117074        fi
117075      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
117076        dependency_error="yes"
117077        enable_plugin="yes (dependency error)"
117078      fi
117079    fi
117080     if test "x$enable_plugin" = "xyes"; then
117081  BUILD_PLUGIN_TARGET_SET_TRUE=
117082  BUILD_PLUGIN_TARGET_SET_FALSE='#'
117083else
117084  BUILD_PLUGIN_TARGET_SET_TRUE='#'
117085  BUILD_PLUGIN_TARGET_SET_FALSE=
117086fi
117087
117088    enable_target_set="$enable_plugin"
117089
117090
117091
117092    enable_plugin="no"
117093    force="no"
117094    # Check whether --enable-target_v5upgrade was given.
117095if test "${enable_target_v5upgrade+set}" = set; then :
117096  enableval=$enable_target_v5upgrade;
117097        if test "x$enableval" = "xyes"; then
117098          enable_plugin="yes"
117099        else if test "x$enableval" = "xforce"; then
117100          enable_plugin="yes"
117101          force="yes"
117102        else
117103          enable_plugin="no (disabled on command line)"
117104        fi; fi
117105
117106else
117107
117108        if test "x$enable_all_plugins" = "xauto"; then
117109          if test "xyes" = "xyes"; then
117110            enable_plugin="yes"
117111          else
117112            enable_plugin="yes"
117113          fi
117114        else
117115          enable_plugin="$enable_all_plugins"
117116        fi
117117
117118
117119fi
117120
117121    if test "x$enable_plugin" = "xyes"; then
117122      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
117123
117124$as_echo "#define HAVE_PLUGIN_TARGET_V5UPGRADE 1" >>confdefs.h
117125
117126        if test "xyes" != "xyes"; then
117127          dependency_warning="yes"
117128        fi
117129      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
117130        dependency_error="yes"
117131        enable_plugin="yes (dependency error)"
117132      fi
117133    fi
117134     if test "x$enable_plugin" = "xyes"; then
117135  BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE=
117136  BUILD_PLUGIN_TARGET_V5UPGRADE_FALSE='#'
117137else
117138  BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE='#'
117139  BUILD_PLUGIN_TARGET_V5UPGRADE_FALSE=
117140fi
117141
117142    enable_target_v5upgrade="$enable_plugin"
117143
117144
117145
117146    enable_plugin="no"
117147    force="no"
117148    # Check whether --enable-tcpconns was given.
117149if test "${enable_tcpconns+set}" = set; then :
117150  enableval=$enable_tcpconns;
117151        if test "x$enableval" = "xyes"; then
117152          enable_plugin="yes"
117153        else if test "x$enableval" = "xforce"; then
117154          enable_plugin="yes"
117155          force="yes"
117156        else
117157          enable_plugin="no (disabled on command line)"
117158        fi; fi
117159
117160else
117161
117162        if test "x$enable_all_plugins" = "xauto"; then
117163          if test "x$plugin_tcpconns" = "xyes"; then
117164            enable_plugin="yes"
117165          else
117166            enable_plugin="$plugin_tcpconns"
117167          fi
117168        else
117169          enable_plugin="$enable_all_plugins"
117170        fi
117171
117172
117173fi
117174
117175    if test "x$enable_plugin" = "xyes"; then
117176      if test "x$plugin_tcpconns" = "xyes" || test "x$force" = "xyes"; then
117177
117178$as_echo "#define HAVE_PLUGIN_TCPCONNS 1" >>confdefs.h
117179
117180        if test "x$plugin_tcpconns" != "xyes"; then
117181          dependency_warning="yes"
117182        fi
117183      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
117184        dependency_error="yes"
117185        enable_plugin="$plugin_tcpconns (dependency error)"
117186      fi
117187    fi
117188     if test "x$enable_plugin" = "xyes"; then
117189  BUILD_PLUGIN_TCPCONNS_TRUE=
117190  BUILD_PLUGIN_TCPCONNS_FALSE='#'
117191else
117192  BUILD_PLUGIN_TCPCONNS_TRUE='#'
117193  BUILD_PLUGIN_TCPCONNS_FALSE=
117194fi
117195
117196    enable_tcpconns="$enable_plugin"
117197
117198
117199
117200    enable_plugin="no"
117201    force="no"
117202    # Check whether --enable-teamspeak2 was given.
117203if test "${enable_teamspeak2+set}" = set; then :
117204  enableval=$enable_teamspeak2;
117205        if test "x$enableval" = "xyes"; then
117206          enable_plugin="yes"
117207        else if test "x$enableval" = "xforce"; then
117208          enable_plugin="yes"
117209          force="yes"
117210        else
117211          enable_plugin="no (disabled on command line)"
117212        fi; fi
117213
117214else
117215
117216        if test "x$enable_all_plugins" = "xauto"; then
117217          if test "xyes" = "xyes"; then
117218            enable_plugin="yes"
117219          else
117220            enable_plugin="yes"
117221          fi
117222        else
117223          enable_plugin="$enable_all_plugins"
117224        fi
117225
117226
117227fi
117228
117229    if test "x$enable_plugin" = "xyes"; then
117230      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
117231
117232$as_echo "#define HAVE_PLUGIN_TEAMSPEAK2 1" >>confdefs.h
117233
117234        if test "xyes" != "xyes"; then
117235          dependency_warning="yes"
117236        fi
117237      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
117238        dependency_error="yes"
117239        enable_plugin="yes (dependency error)"
117240      fi
117241    fi
117242     if test "x$enable_plugin" = "xyes"; then
117243  BUILD_PLUGIN_TEAMSPEAK2_TRUE=
117244  BUILD_PLUGIN_TEAMSPEAK2_FALSE='#'
117245else
117246  BUILD_PLUGIN_TEAMSPEAK2_TRUE='#'
117247  BUILD_PLUGIN_TEAMSPEAK2_FALSE=
117248fi
117249
117250    enable_teamspeak2="$enable_plugin"
117251
117252
117253
117254    enable_plugin="no"
117255    force="no"
117256    # Check whether --enable-ted was given.
117257if test "${enable_ted+set}" = set; then :
117258  enableval=$enable_ted;
117259        if test "x$enableval" = "xyes"; then
117260          enable_plugin="yes"
117261        else if test "x$enableval" = "xforce"; then
117262          enable_plugin="yes"
117263          force="yes"
117264        else
117265          enable_plugin="no (disabled on command line)"
117266        fi; fi
117267
117268else
117269
117270        if test "x$enable_all_plugins" = "xauto"; then
117271          if test "x$plugin_ted" = "xyes"; then
117272            enable_plugin="yes"
117273          else
117274            enable_plugin="$plugin_ted"
117275          fi
117276        else
117277          enable_plugin="$enable_all_plugins"
117278        fi
117279
117280
117281fi
117282
117283    if test "x$enable_plugin" = "xyes"; then
117284      if test "x$plugin_ted" = "xyes" || test "x$force" = "xyes"; then
117285
117286$as_echo "#define HAVE_PLUGIN_TED 1" >>confdefs.h
117287
117288        if test "x$plugin_ted" != "xyes"; then
117289          dependency_warning="yes"
117290        fi
117291      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
117292        dependency_error="yes"
117293        enable_plugin="$plugin_ted (dependency error)"
117294      fi
117295    fi
117296     if test "x$enable_plugin" = "xyes"; then
117297  BUILD_PLUGIN_TED_TRUE=
117298  BUILD_PLUGIN_TED_FALSE='#'
117299else
117300  BUILD_PLUGIN_TED_TRUE='#'
117301  BUILD_PLUGIN_TED_FALSE=
117302fi
117303
117304    enable_ted="$enable_plugin"
117305
117306
117307
117308    enable_plugin="no"
117309    force="no"
117310    # Check whether --enable-thermal was given.
117311if test "${enable_thermal+set}" = set; then :
117312  enableval=$enable_thermal;
117313        if test "x$enableval" = "xyes"; then
117314          enable_plugin="yes"
117315        else if test "x$enableval" = "xforce"; then
117316          enable_plugin="yes"
117317          force="yes"
117318        else
117319          enable_plugin="no (disabled on command line)"
117320        fi; fi
117321
117322else
117323
117324        if test "x$enable_all_plugins" = "xauto"; then
117325          if test "x$plugin_thermal" = "xyes"; then
117326            enable_plugin="yes"
117327          else
117328            enable_plugin="$plugin_thermal"
117329          fi
117330        else
117331          enable_plugin="$enable_all_plugins"
117332        fi
117333
117334
117335fi
117336
117337    if test "x$enable_plugin" = "xyes"; then
117338      if test "x$plugin_thermal" = "xyes" || test "x$force" = "xyes"; then
117339
117340$as_echo "#define HAVE_PLUGIN_THERMAL 1" >>confdefs.h
117341
117342        if test "x$plugin_thermal" != "xyes"; then
117343          dependency_warning="yes"
117344        fi
117345      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
117346        dependency_error="yes"
117347        enable_plugin="$plugin_thermal (dependency error)"
117348      fi
117349    fi
117350     if test "x$enable_plugin" = "xyes"; then
117351  BUILD_PLUGIN_THERMAL_TRUE=
117352  BUILD_PLUGIN_THERMAL_FALSE='#'
117353else
117354  BUILD_PLUGIN_THERMAL_TRUE='#'
117355  BUILD_PLUGIN_THERMAL_FALSE=
117356fi
117357
117358    enable_thermal="$enable_plugin"
117359
117360
117361
117362    enable_plugin="no"
117363    force="no"
117364    # Check whether --enable-threshold was given.
117365if test "${enable_threshold+set}" = set; then :
117366  enableval=$enable_threshold;
117367        if test "x$enableval" = "xyes"; then
117368          enable_plugin="yes"
117369        else if test "x$enableval" = "xforce"; then
117370          enable_plugin="yes"
117371          force="yes"
117372        else
117373          enable_plugin="no (disabled on command line)"
117374        fi; fi
117375
117376else
117377
117378        if test "x$enable_all_plugins" = "xauto"; then
117379          if test "xyes" = "xyes"; then
117380            enable_plugin="yes"
117381          else
117382            enable_plugin="yes"
117383          fi
117384        else
117385          enable_plugin="$enable_all_plugins"
117386        fi
117387
117388
117389fi
117390
117391    if test "x$enable_plugin" = "xyes"; then
117392      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
117393
117394$as_echo "#define HAVE_PLUGIN_THRESHOLD 1" >>confdefs.h
117395
117396        if test "xyes" != "xyes"; then
117397          dependency_warning="yes"
117398        fi
117399      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
117400        dependency_error="yes"
117401        enable_plugin="yes (dependency error)"
117402      fi
117403    fi
117404     if test "x$enable_plugin" = "xyes"; then
117405  BUILD_PLUGIN_THRESHOLD_TRUE=
117406  BUILD_PLUGIN_THRESHOLD_FALSE='#'
117407else
117408  BUILD_PLUGIN_THRESHOLD_TRUE='#'
117409  BUILD_PLUGIN_THRESHOLD_FALSE=
117410fi
117411
117412    enable_threshold="$enable_plugin"
117413
117414
117415
117416    enable_plugin="no"
117417    force="no"
117418    # Check whether --enable-tokyotyrant was given.
117419if test "${enable_tokyotyrant+set}" = set; then :
117420  enableval=$enable_tokyotyrant;
117421        if test "x$enableval" = "xyes"; then
117422          enable_plugin="yes"
117423        else if test "x$enableval" = "xforce"; then
117424          enable_plugin="yes"
117425          force="yes"
117426        else
117427          enable_plugin="no (disabled on command line)"
117428        fi; fi
117429
117430else
117431
117432        if test "x$enable_all_plugins" = "xauto"; then
117433          if test "x$with_libtokyotyrant" = "xyes"; then
117434            enable_plugin="yes"
117435          else
117436            enable_plugin="$with_libtokyotyrant"
117437          fi
117438        else
117439          enable_plugin="$enable_all_plugins"
117440        fi
117441
117442
117443fi
117444
117445    if test "x$enable_plugin" = "xyes"; then
117446      if test "x$with_libtokyotyrant" = "xyes" || test "x$force" = "xyes"; then
117447
117448$as_echo "#define HAVE_PLUGIN_TOKYOTYRANT 1" >>confdefs.h
117449
117450        if test "x$with_libtokyotyrant" != "xyes"; then
117451          dependency_warning="yes"
117452        fi
117453      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
117454        dependency_error="yes"
117455        enable_plugin="$with_libtokyotyrant (dependency error)"
117456      fi
117457    fi
117458     if test "x$enable_plugin" = "xyes"; then
117459  BUILD_PLUGIN_TOKYOTYRANT_TRUE=
117460  BUILD_PLUGIN_TOKYOTYRANT_FALSE='#'
117461else
117462  BUILD_PLUGIN_TOKYOTYRANT_TRUE='#'
117463  BUILD_PLUGIN_TOKYOTYRANT_FALSE=
117464fi
117465
117466    enable_tokyotyrant="$enable_plugin"
117467
117468
117469
117470    enable_plugin="no"
117471    force="no"
117472    # Check whether --enable-turbostat was given.
117473if test "${enable_turbostat+set}" = set; then :
117474  enableval=$enable_turbostat;
117475        if test "x$enableval" = "xyes"; then
117476          enable_plugin="yes"
117477        else if test "x$enableval" = "xforce"; then
117478          enable_plugin="yes"
117479          force="yes"
117480        else
117481          enable_plugin="no (disabled on command line)"
117482        fi; fi
117483
117484else
117485
117486        if test "x$enable_all_plugins" = "xauto"; then
117487          if test "x$plugin_turbostat" = "xyes"; then
117488            enable_plugin="yes"
117489          else
117490            enable_plugin="$plugin_turbostat"
117491          fi
117492        else
117493          enable_plugin="$enable_all_plugins"
117494        fi
117495
117496
117497fi
117498
117499    if test "x$enable_plugin" = "xyes"; then
117500      if test "x$plugin_turbostat" = "xyes" || test "x$force" = "xyes"; then
117501
117502$as_echo "#define HAVE_PLUGIN_TURBOSTAT 1" >>confdefs.h
117503
117504        if test "x$plugin_turbostat" != "xyes"; then
117505          dependency_warning="yes"
117506        fi
117507      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
117508        dependency_error="yes"
117509        enable_plugin="$plugin_turbostat (dependency error)"
117510      fi
117511    fi
117512     if test "x$enable_plugin" = "xyes"; then
117513  BUILD_PLUGIN_TURBOSTAT_TRUE=
117514  BUILD_PLUGIN_TURBOSTAT_FALSE='#'
117515else
117516  BUILD_PLUGIN_TURBOSTAT_TRUE='#'
117517  BUILD_PLUGIN_TURBOSTAT_FALSE=
117518fi
117519
117520    enable_turbostat="$enable_plugin"
117521
117522
117523
117524    enable_plugin="no"
117525    force="no"
117526    # Check whether --enable-ubi was given.
117527if test "${enable_ubi+set}" = set; then :
117528  enableval=$enable_ubi;
117529        if test "x$enableval" = "xyes"; then
117530          enable_plugin="yes"
117531        else if test "x$enableval" = "xforce"; then
117532          enable_plugin="yes"
117533          force="yes"
117534        else
117535          enable_plugin="no (disabled on command line)"
117536        fi; fi
117537
117538else
117539
117540        if test "x$enable_all_plugins" = "xauto"; then
117541          if test "x$plugin_ubi" = "xyes"; then
117542            enable_plugin="yes"
117543          else
117544            enable_plugin="$plugin_ubi"
117545          fi
117546        else
117547          enable_plugin="$enable_all_plugins"
117548        fi
117549
117550
117551fi
117552
117553    if test "x$enable_plugin" = "xyes"; then
117554      if test "x$plugin_ubi" = "xyes" || test "x$force" = "xyes"; then
117555
117556$as_echo "#define HAVE_PLUGIN_UBI 1" >>confdefs.h
117557
117558        if test "x$plugin_ubi" != "xyes"; then
117559          dependency_warning="yes"
117560        fi
117561      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
117562        dependency_error="yes"
117563        enable_plugin="$plugin_ubi (dependency error)"
117564      fi
117565    fi
117566     if test "x$enable_plugin" = "xyes"; then
117567  BUILD_PLUGIN_UBI_TRUE=
117568  BUILD_PLUGIN_UBI_FALSE='#'
117569else
117570  BUILD_PLUGIN_UBI_TRUE='#'
117571  BUILD_PLUGIN_UBI_FALSE=
117572fi
117573
117574    enable_ubi="$enable_plugin"
117575
117576
117577
117578    enable_plugin="no"
117579    force="no"
117580    # Check whether --enable-unixsock was given.
117581if test "${enable_unixsock+set}" = set; then :
117582  enableval=$enable_unixsock;
117583        if test "x$enableval" = "xyes"; then
117584          enable_plugin="yes"
117585        else if test "x$enableval" = "xforce"; then
117586          enable_plugin="yes"
117587          force="yes"
117588        else
117589          enable_plugin="no (disabled on command line)"
117590        fi; fi
117591
117592else
117593
117594        if test "x$enable_all_plugins" = "xauto"; then
117595          if test "xyes" = "xyes"; then
117596            enable_plugin="yes"
117597          else
117598            enable_plugin="yes"
117599          fi
117600        else
117601          enable_plugin="$enable_all_plugins"
117602        fi
117603
117604
117605fi
117606
117607    if test "x$enable_plugin" = "xyes"; then
117608      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
117609
117610$as_echo "#define HAVE_PLUGIN_UNIXSOCK 1" >>confdefs.h
117611
117612        if test "xyes" != "xyes"; then
117613          dependency_warning="yes"
117614        fi
117615      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
117616        dependency_error="yes"
117617        enable_plugin="yes (dependency error)"
117618      fi
117619    fi
117620     if test "x$enable_plugin" = "xyes"; then
117621  BUILD_PLUGIN_UNIXSOCK_TRUE=
117622  BUILD_PLUGIN_UNIXSOCK_FALSE='#'
117623else
117624  BUILD_PLUGIN_UNIXSOCK_TRUE='#'
117625  BUILD_PLUGIN_UNIXSOCK_FALSE=
117626fi
117627
117628    enable_unixsock="$enable_plugin"
117629
117630
117631
117632    enable_plugin="no"
117633    force="no"
117634    # Check whether --enable-uptime was given.
117635if test "${enable_uptime+set}" = set; then :
117636  enableval=$enable_uptime;
117637        if test "x$enableval" = "xyes"; then
117638          enable_plugin="yes"
117639        else if test "x$enableval" = "xforce"; then
117640          enable_plugin="yes"
117641          force="yes"
117642        else
117643          enable_plugin="no (disabled on command line)"
117644        fi; fi
117645
117646else
117647
117648        if test "x$enable_all_plugins" = "xauto"; then
117649          if test "x$plugin_uptime" = "xyes"; then
117650            enable_plugin="yes"
117651          else
117652            enable_plugin="$plugin_uptime"
117653          fi
117654        else
117655          enable_plugin="$enable_all_plugins"
117656        fi
117657
117658
117659fi
117660
117661    if test "x$enable_plugin" = "xyes"; then
117662      if test "x$plugin_uptime" = "xyes" || test "x$force" = "xyes"; then
117663
117664$as_echo "#define HAVE_PLUGIN_UPTIME 1" >>confdefs.h
117665
117666        if test "x$plugin_uptime" != "xyes"; then
117667          dependency_warning="yes"
117668        fi
117669      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
117670        dependency_error="yes"
117671        enable_plugin="$plugin_uptime (dependency error)"
117672      fi
117673    fi
117674     if test "x$enable_plugin" = "xyes"; then
117675  BUILD_PLUGIN_UPTIME_TRUE=
117676  BUILD_PLUGIN_UPTIME_FALSE='#'
117677else
117678  BUILD_PLUGIN_UPTIME_TRUE='#'
117679  BUILD_PLUGIN_UPTIME_FALSE=
117680fi
117681
117682    enable_uptime="$enable_plugin"
117683
117684
117685
117686    enable_plugin="no"
117687    force="no"
117688    # Check whether --enable-users was given.
117689if test "${enable_users+set}" = set; then :
117690  enableval=$enable_users;
117691        if test "x$enableval" = "xyes"; then
117692          enable_plugin="yes"
117693        else if test "x$enableval" = "xforce"; then
117694          enable_plugin="yes"
117695          force="yes"
117696        else
117697          enable_plugin="no (disabled on command line)"
117698        fi; fi
117699
117700else
117701
117702        if test "x$enable_all_plugins" = "xauto"; then
117703          if test "x$plugin_users" = "xyes"; then
117704            enable_plugin="yes"
117705          else
117706            enable_plugin="$plugin_users"
117707          fi
117708        else
117709          enable_plugin="$enable_all_plugins"
117710        fi
117711
117712
117713fi
117714
117715    if test "x$enable_plugin" = "xyes"; then
117716      if test "x$plugin_users" = "xyes" || test "x$force" = "xyes"; then
117717
117718$as_echo "#define HAVE_PLUGIN_USERS 1" >>confdefs.h
117719
117720        if test "x$plugin_users" != "xyes"; then
117721          dependency_warning="yes"
117722        fi
117723      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
117724        dependency_error="yes"
117725        enable_plugin="$plugin_users (dependency error)"
117726      fi
117727    fi
117728     if test "x$enable_plugin" = "xyes"; then
117729  BUILD_PLUGIN_USERS_TRUE=
117730  BUILD_PLUGIN_USERS_FALSE='#'
117731else
117732  BUILD_PLUGIN_USERS_TRUE='#'
117733  BUILD_PLUGIN_USERS_FALSE=
117734fi
117735
117736    enable_users="$enable_plugin"
117737
117738
117739
117740    enable_plugin="no"
117741    force="no"
117742    # Check whether --enable-uuid was given.
117743if test "${enable_uuid+set}" = set; then :
117744  enableval=$enable_uuid;
117745        if test "x$enableval" = "xyes"; then
117746          enable_plugin="yes"
117747        else if test "x$enableval" = "xforce"; then
117748          enable_plugin="yes"
117749          force="yes"
117750        else
117751          enable_plugin="no (disabled on command line)"
117752        fi; fi
117753
117754else
117755
117756        if test "x$enable_all_plugins" = "xauto"; then
117757          if test "xyes" = "xyes"; then
117758            enable_plugin="yes"
117759          else
117760            enable_plugin="yes"
117761          fi
117762        else
117763          enable_plugin="$enable_all_plugins"
117764        fi
117765
117766
117767fi
117768
117769    if test "x$enable_plugin" = "xyes"; then
117770      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
117771
117772$as_echo "#define HAVE_PLUGIN_UUID 1" >>confdefs.h
117773
117774        if test "xyes" != "xyes"; then
117775          dependency_warning="yes"
117776        fi
117777      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
117778        dependency_error="yes"
117779        enable_plugin="yes (dependency error)"
117780      fi
117781    fi
117782     if test "x$enable_plugin" = "xyes"; then
117783  BUILD_PLUGIN_UUID_TRUE=
117784  BUILD_PLUGIN_UUID_FALSE='#'
117785else
117786  BUILD_PLUGIN_UUID_TRUE='#'
117787  BUILD_PLUGIN_UUID_FALSE=
117788fi
117789
117790    enable_uuid="$enable_plugin"
117791
117792
117793
117794    enable_plugin="no"
117795    force="no"
117796    # Check whether --enable-varnish was given.
117797if test "${enable_varnish+set}" = set; then :
117798  enableval=$enable_varnish;
117799        if test "x$enableval" = "xyes"; then
117800          enable_plugin="yes"
117801        else if test "x$enableval" = "xforce"; then
117802          enable_plugin="yes"
117803          force="yes"
117804        else
117805          enable_plugin="no (disabled on command line)"
117806        fi; fi
117807
117808else
117809
117810        if test "x$enable_all_plugins" = "xauto"; then
117811          if test "x$with_libvarnish" = "xyes"; then
117812            enable_plugin="yes"
117813          else
117814            enable_plugin="$with_libvarnish"
117815          fi
117816        else
117817          enable_plugin="$enable_all_plugins"
117818        fi
117819
117820
117821fi
117822
117823    if test "x$enable_plugin" = "xyes"; then
117824      if test "x$with_libvarnish" = "xyes" || test "x$force" = "xyes"; then
117825
117826$as_echo "#define HAVE_PLUGIN_VARNISH 1" >>confdefs.h
117827
117828        if test "x$with_libvarnish" != "xyes"; then
117829          dependency_warning="yes"
117830        fi
117831      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
117832        dependency_error="yes"
117833        enable_plugin="$with_libvarnish (dependency error)"
117834      fi
117835    fi
117836     if test "x$enable_plugin" = "xyes"; then
117837  BUILD_PLUGIN_VARNISH_TRUE=
117838  BUILD_PLUGIN_VARNISH_FALSE='#'
117839else
117840  BUILD_PLUGIN_VARNISH_TRUE='#'
117841  BUILD_PLUGIN_VARNISH_FALSE=
117842fi
117843
117844    enable_varnish="$enable_plugin"
117845
117846
117847
117848    enable_plugin="no"
117849    force="no"
117850    # Check whether --enable-virt was given.
117851if test "${enable_virt+set}" = set; then :
117852  enableval=$enable_virt;
117853        if test "x$enableval" = "xyes"; then
117854          enable_plugin="yes"
117855        else if test "x$enableval" = "xforce"; then
117856          enable_plugin="yes"
117857          force="yes"
117858        else
117859          enable_plugin="no (disabled on command line)"
117860        fi; fi
117861
117862else
117863
117864        if test "x$enable_all_plugins" = "xauto"; then
117865          if test "x$plugin_virt" = "xyes"; then
117866            enable_plugin="yes"
117867          else
117868            enable_plugin="$plugin_virt"
117869          fi
117870        else
117871          enable_plugin="$enable_all_plugins"
117872        fi
117873
117874
117875fi
117876
117877    if test "x$enable_plugin" = "xyes"; then
117878      if test "x$plugin_virt" = "xyes" || test "x$force" = "xyes"; then
117879
117880$as_echo "#define HAVE_PLUGIN_VIRT 1" >>confdefs.h
117881
117882        if test "x$plugin_virt" != "xyes"; then
117883          dependency_warning="yes"
117884        fi
117885      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
117886        dependency_error="yes"
117887        enable_plugin="$plugin_virt (dependency error)"
117888      fi
117889    fi
117890     if test "x$enable_plugin" = "xyes"; then
117891  BUILD_PLUGIN_VIRT_TRUE=
117892  BUILD_PLUGIN_VIRT_FALSE='#'
117893else
117894  BUILD_PLUGIN_VIRT_TRUE='#'
117895  BUILD_PLUGIN_VIRT_FALSE=
117896fi
117897
117898    enable_virt="$enable_plugin"
117899
117900
117901
117902    enable_plugin="no"
117903    force="no"
117904    # Check whether --enable-vmem was given.
117905if test "${enable_vmem+set}" = set; then :
117906  enableval=$enable_vmem;
117907        if test "x$enableval" = "xyes"; then
117908          enable_plugin="yes"
117909        else if test "x$enableval" = "xforce"; then
117910          enable_plugin="yes"
117911          force="yes"
117912        else
117913          enable_plugin="no (disabled on command line)"
117914        fi; fi
117915
117916else
117917
117918        if test "x$enable_all_plugins" = "xauto"; then
117919          if test "x$plugin_vmem" = "xyes"; then
117920            enable_plugin="yes"
117921          else
117922            enable_plugin="$plugin_vmem"
117923          fi
117924        else
117925          enable_plugin="$enable_all_plugins"
117926        fi
117927
117928
117929fi
117930
117931    if test "x$enable_plugin" = "xyes"; then
117932      if test "x$plugin_vmem" = "xyes" || test "x$force" = "xyes"; then
117933
117934$as_echo "#define HAVE_PLUGIN_VMEM 1" >>confdefs.h
117935
117936        if test "x$plugin_vmem" != "xyes"; then
117937          dependency_warning="yes"
117938        fi
117939      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
117940        dependency_error="yes"
117941        enable_plugin="$plugin_vmem (dependency error)"
117942      fi
117943    fi
117944     if test "x$enable_plugin" = "xyes"; then
117945  BUILD_PLUGIN_VMEM_TRUE=
117946  BUILD_PLUGIN_VMEM_FALSE='#'
117947else
117948  BUILD_PLUGIN_VMEM_TRUE='#'
117949  BUILD_PLUGIN_VMEM_FALSE=
117950fi
117951
117952    enable_vmem="$enable_plugin"
117953
117954
117955
117956    enable_plugin="no"
117957    force="no"
117958    # Check whether --enable-vserver was given.
117959if test "${enable_vserver+set}" = set; then :
117960  enableval=$enable_vserver;
117961        if test "x$enableval" = "xyes"; then
117962          enable_plugin="yes"
117963        else if test "x$enableval" = "xforce"; then
117964          enable_plugin="yes"
117965          force="yes"
117966        else
117967          enable_plugin="no (disabled on command line)"
117968        fi; fi
117969
117970else
117971
117972        if test "x$enable_all_plugins" = "xauto"; then
117973          if test "x$plugin_vserver" = "xyes"; then
117974            enable_plugin="yes"
117975          else
117976            enable_plugin="$plugin_vserver"
117977          fi
117978        else
117979          enable_plugin="$enable_all_plugins"
117980        fi
117981
117982
117983fi
117984
117985    if test "x$enable_plugin" = "xyes"; then
117986      if test "x$plugin_vserver" = "xyes" || test "x$force" = "xyes"; then
117987
117988$as_echo "#define HAVE_PLUGIN_VSERVER 1" >>confdefs.h
117989
117990        if test "x$plugin_vserver" != "xyes"; then
117991          dependency_warning="yes"
117992        fi
117993      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
117994        dependency_error="yes"
117995        enable_plugin="$plugin_vserver (dependency error)"
117996      fi
117997    fi
117998     if test "x$enable_plugin" = "xyes"; then
117999  BUILD_PLUGIN_VSERVER_TRUE=
118000  BUILD_PLUGIN_VSERVER_FALSE='#'
118001else
118002  BUILD_PLUGIN_VSERVER_TRUE='#'
118003  BUILD_PLUGIN_VSERVER_FALSE=
118004fi
118005
118006    enable_vserver="$enable_plugin"
118007
118008
118009
118010    enable_plugin="no"
118011    force="no"
118012    # Check whether --enable-wireless was given.
118013if test "${enable_wireless+set}" = set; then :
118014  enableval=$enable_wireless;
118015        if test "x$enableval" = "xyes"; then
118016          enable_plugin="yes"
118017        else if test "x$enableval" = "xforce"; then
118018          enable_plugin="yes"
118019          force="yes"
118020        else
118021          enable_plugin="no (disabled on command line)"
118022        fi; fi
118023
118024else
118025
118026        if test "x$enable_all_plugins" = "xauto"; then
118027          if test "x$plugin_wireless" = "xyes"; then
118028            enable_plugin="yes"
118029          else
118030            enable_plugin="$plugin_wireless"
118031          fi
118032        else
118033          enable_plugin="$enable_all_plugins"
118034        fi
118035
118036
118037fi
118038
118039    if test "x$enable_plugin" = "xyes"; then
118040      if test "x$plugin_wireless" = "xyes" || test "x$force" = "xyes"; then
118041
118042$as_echo "#define HAVE_PLUGIN_WIRELESS 1" >>confdefs.h
118043
118044        if test "x$plugin_wireless" != "xyes"; then
118045          dependency_warning="yes"
118046        fi
118047      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
118048        dependency_error="yes"
118049        enable_plugin="$plugin_wireless (dependency error)"
118050      fi
118051    fi
118052     if test "x$enable_plugin" = "xyes"; then
118053  BUILD_PLUGIN_WIRELESS_TRUE=
118054  BUILD_PLUGIN_WIRELESS_FALSE='#'
118055else
118056  BUILD_PLUGIN_WIRELESS_TRUE='#'
118057  BUILD_PLUGIN_WIRELESS_FALSE=
118058fi
118059
118060    enable_wireless="$enable_plugin"
118061
118062
118063
118064    enable_plugin="no"
118065    force="no"
118066    # Check whether --enable-write_graphite was given.
118067if test "${enable_write_graphite+set}" = set; then :
118068  enableval=$enable_write_graphite;
118069        if test "x$enableval" = "xyes"; then
118070          enable_plugin="yes"
118071        else if test "x$enableval" = "xforce"; then
118072          enable_plugin="yes"
118073          force="yes"
118074        else
118075          enable_plugin="no (disabled on command line)"
118076        fi; fi
118077
118078else
118079
118080        if test "x$enable_all_plugins" = "xauto"; then
118081          if test "xyes" = "xyes"; then
118082            enable_plugin="yes"
118083          else
118084            enable_plugin="yes"
118085          fi
118086        else
118087          enable_plugin="$enable_all_plugins"
118088        fi
118089
118090
118091fi
118092
118093    if test "x$enable_plugin" = "xyes"; then
118094      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
118095
118096$as_echo "#define HAVE_PLUGIN_WRITE_GRAPHITE 1" >>confdefs.h
118097
118098        if test "xyes" != "xyes"; then
118099          dependency_warning="yes"
118100        fi
118101      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
118102        dependency_error="yes"
118103        enable_plugin="yes (dependency error)"
118104      fi
118105    fi
118106     if test "x$enable_plugin" = "xyes"; then
118107  BUILD_PLUGIN_WRITE_GRAPHITE_TRUE=
118108  BUILD_PLUGIN_WRITE_GRAPHITE_FALSE='#'
118109else
118110  BUILD_PLUGIN_WRITE_GRAPHITE_TRUE='#'
118111  BUILD_PLUGIN_WRITE_GRAPHITE_FALSE=
118112fi
118113
118114    enable_write_graphite="$enable_plugin"
118115
118116
118117
118118    enable_plugin="no"
118119    force="no"
118120    # Check whether --enable-write_http was given.
118121if test "${enable_write_http+set}" = set; then :
118122  enableval=$enable_write_http;
118123        if test "x$enableval" = "xyes"; then
118124          enable_plugin="yes"
118125        else if test "x$enableval" = "xforce"; then
118126          enable_plugin="yes"
118127          force="yes"
118128        else
118129          enable_plugin="no (disabled on command line)"
118130        fi; fi
118131
118132else
118133
118134        if test "x$enable_all_plugins" = "xauto"; then
118135          if test "x$with_libcurl" = "xyes"; then
118136            enable_plugin="yes"
118137          else
118138            enable_plugin="$with_libcurl"
118139          fi
118140        else
118141          enable_plugin="$enable_all_plugins"
118142        fi
118143
118144
118145fi
118146
118147    if test "x$enable_plugin" = "xyes"; then
118148      if test "x$with_libcurl" = "xyes" || test "x$force" = "xyes"; then
118149
118150$as_echo "#define HAVE_PLUGIN_WRITE_HTTP 1" >>confdefs.h
118151
118152        if test "x$with_libcurl" != "xyes"; then
118153          dependency_warning="yes"
118154        fi
118155      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
118156        dependency_error="yes"
118157        enable_plugin="$with_libcurl (dependency error)"
118158      fi
118159    fi
118160     if test "x$enable_plugin" = "xyes"; then
118161  BUILD_PLUGIN_WRITE_HTTP_TRUE=
118162  BUILD_PLUGIN_WRITE_HTTP_FALSE='#'
118163else
118164  BUILD_PLUGIN_WRITE_HTTP_TRUE='#'
118165  BUILD_PLUGIN_WRITE_HTTP_FALSE=
118166fi
118167
118168    enable_write_http="$enable_plugin"
118169
118170
118171
118172    enable_plugin="no"
118173    force="no"
118174    # Check whether --enable-write_influxdb_udp was given.
118175if test "${enable_write_influxdb_udp+set}" = set; then :
118176  enableval=$enable_write_influxdb_udp;
118177        if test "x$enableval" = "xyes"; then
118178          enable_plugin="yes"
118179        else if test "x$enableval" = "xforce"; then
118180          enable_plugin="yes"
118181          force="yes"
118182        else
118183          enable_plugin="no (disabled on command line)"
118184        fi; fi
118185
118186else
118187
118188        if test "x$enable_all_plugins" = "xauto"; then
118189          if test "xyes" = "xyes"; then
118190            enable_plugin="yes"
118191          else
118192            enable_plugin="yes"
118193          fi
118194        else
118195          enable_plugin="$enable_all_plugins"
118196        fi
118197
118198
118199fi
118200
118201    if test "x$enable_plugin" = "xyes"; then
118202      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
118203
118204$as_echo "#define HAVE_PLUGIN_WRITE_INFLUXDB_UDP 1" >>confdefs.h
118205
118206        if test "xyes" != "xyes"; then
118207          dependency_warning="yes"
118208        fi
118209      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
118210        dependency_error="yes"
118211        enable_plugin="yes (dependency error)"
118212      fi
118213    fi
118214     if test "x$enable_plugin" = "xyes"; then
118215  BUILD_PLUGIN_WRITE_INFLUXDB_UDP_TRUE=
118216  BUILD_PLUGIN_WRITE_INFLUXDB_UDP_FALSE='#'
118217else
118218  BUILD_PLUGIN_WRITE_INFLUXDB_UDP_TRUE='#'
118219  BUILD_PLUGIN_WRITE_INFLUXDB_UDP_FALSE=
118220fi
118221
118222    enable_write_influxdb_udp="$enable_plugin"
118223
118224
118225
118226    enable_plugin="no"
118227    force="no"
118228    # Check whether --enable-write_kafka was given.
118229if test "${enable_write_kafka+set}" = set; then :
118230  enableval=$enable_write_kafka;
118231        if test "x$enableval" = "xyes"; then
118232          enable_plugin="yes"
118233        else if test "x$enableval" = "xforce"; then
118234          enable_plugin="yes"
118235          force="yes"
118236        else
118237          enable_plugin="no (disabled on command line)"
118238        fi; fi
118239
118240else
118241
118242        if test "x$enable_all_plugins" = "xauto"; then
118243          if test "x$with_librdkafka" = "xyes"; then
118244            enable_plugin="yes"
118245          else
118246            enable_plugin="$with_librdkafka"
118247          fi
118248        else
118249          enable_plugin="$enable_all_plugins"
118250        fi
118251
118252
118253fi
118254
118255    if test "x$enable_plugin" = "xyes"; then
118256      if test "x$with_librdkafka" = "xyes" || test "x$force" = "xyes"; then
118257
118258$as_echo "#define HAVE_PLUGIN_WRITE_KAFKA 1" >>confdefs.h
118259
118260        if test "x$with_librdkafka" != "xyes"; then
118261          dependency_warning="yes"
118262        fi
118263      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
118264        dependency_error="yes"
118265        enable_plugin="$with_librdkafka (dependency error)"
118266      fi
118267    fi
118268     if test "x$enable_plugin" = "xyes"; then
118269  BUILD_PLUGIN_WRITE_KAFKA_TRUE=
118270  BUILD_PLUGIN_WRITE_KAFKA_FALSE='#'
118271else
118272  BUILD_PLUGIN_WRITE_KAFKA_TRUE='#'
118273  BUILD_PLUGIN_WRITE_KAFKA_FALSE=
118274fi
118275
118276    enable_write_kafka="$enable_plugin"
118277
118278
118279
118280    enable_plugin="no"
118281    force="no"
118282    # Check whether --enable-write_log was given.
118283if test "${enable_write_log+set}" = set; then :
118284  enableval=$enable_write_log;
118285        if test "x$enableval" = "xyes"; then
118286          enable_plugin="yes"
118287        else if test "x$enableval" = "xforce"; then
118288          enable_plugin="yes"
118289          force="yes"
118290        else
118291          enable_plugin="no (disabled on command line)"
118292        fi; fi
118293
118294else
118295
118296        if test "x$enable_all_plugins" = "xauto"; then
118297          if test "xyes" = "xyes"; then
118298            enable_plugin="yes"
118299          else
118300            enable_plugin="yes"
118301          fi
118302        else
118303          enable_plugin="$enable_all_plugins"
118304        fi
118305
118306
118307fi
118308
118309    if test "x$enable_plugin" = "xyes"; then
118310      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
118311
118312$as_echo "#define HAVE_PLUGIN_WRITE_LOG 1" >>confdefs.h
118313
118314        if test "xyes" != "xyes"; then
118315          dependency_warning="yes"
118316        fi
118317      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
118318        dependency_error="yes"
118319        enable_plugin="yes (dependency error)"
118320      fi
118321    fi
118322     if test "x$enable_plugin" = "xyes"; then
118323  BUILD_PLUGIN_WRITE_LOG_TRUE=
118324  BUILD_PLUGIN_WRITE_LOG_FALSE='#'
118325else
118326  BUILD_PLUGIN_WRITE_LOG_TRUE='#'
118327  BUILD_PLUGIN_WRITE_LOG_FALSE=
118328fi
118329
118330    enable_write_log="$enable_plugin"
118331
118332
118333
118334    enable_plugin="no"
118335    force="no"
118336    # Check whether --enable-write_mongodb was given.
118337if test "${enable_write_mongodb+set}" = set; then :
118338  enableval=$enable_write_mongodb;
118339        if test "x$enableval" = "xyes"; then
118340          enable_plugin="yes"
118341        else if test "x$enableval" = "xforce"; then
118342          enable_plugin="yes"
118343          force="yes"
118344        else
118345          enable_plugin="no (disabled on command line)"
118346        fi; fi
118347
118348else
118349
118350        if test "x$enable_all_plugins" = "xauto"; then
118351          if test "x$with_libmongoc" = "xyes"; then
118352            enable_plugin="yes"
118353          else
118354            enable_plugin="$with_libmongoc"
118355          fi
118356        else
118357          enable_plugin="$enable_all_plugins"
118358        fi
118359
118360
118361fi
118362
118363    if test "x$enable_plugin" = "xyes"; then
118364      if test "x$with_libmongoc" = "xyes" || test "x$force" = "xyes"; then
118365
118366$as_echo "#define HAVE_PLUGIN_WRITE_MONGODB 1" >>confdefs.h
118367
118368        if test "x$with_libmongoc" != "xyes"; then
118369          dependency_warning="yes"
118370        fi
118371      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
118372        dependency_error="yes"
118373        enable_plugin="$with_libmongoc (dependency error)"
118374      fi
118375    fi
118376     if test "x$enable_plugin" = "xyes"; then
118377  BUILD_PLUGIN_WRITE_MONGODB_TRUE=
118378  BUILD_PLUGIN_WRITE_MONGODB_FALSE='#'
118379else
118380  BUILD_PLUGIN_WRITE_MONGODB_TRUE='#'
118381  BUILD_PLUGIN_WRITE_MONGODB_FALSE=
118382fi
118383
118384    enable_write_mongodb="$enable_plugin"
118385
118386
118387
118388    enable_plugin="no"
118389    force="no"
118390    # Check whether --enable-write_prometheus was given.
118391if test "${enable_write_prometheus+set}" = set; then :
118392  enableval=$enable_write_prometheus;
118393        if test "x$enableval" = "xyes"; then
118394          enable_plugin="yes"
118395        else if test "x$enableval" = "xforce"; then
118396          enable_plugin="yes"
118397          force="yes"
118398        else
118399          enable_plugin="no (disabled on command line)"
118400        fi; fi
118401
118402else
118403
118404        if test "x$enable_all_plugins" = "xauto"; then
118405          if test "x$plugin_write_prometheus" = "xyes"; then
118406            enable_plugin="yes"
118407          else
118408            enable_plugin="$plugin_write_prometheus"
118409          fi
118410        else
118411          enable_plugin="$enable_all_plugins"
118412        fi
118413
118414
118415fi
118416
118417    if test "x$enable_plugin" = "xyes"; then
118418      if test "x$plugin_write_prometheus" = "xyes" || test "x$force" = "xyes"; then
118419
118420$as_echo "#define HAVE_PLUGIN_WRITE_PROMETHEUS 1" >>confdefs.h
118421
118422        if test "x$plugin_write_prometheus" != "xyes"; then
118423          dependency_warning="yes"
118424        fi
118425      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
118426        dependency_error="yes"
118427        enable_plugin="$plugin_write_prometheus (dependency error)"
118428      fi
118429    fi
118430     if test "x$enable_plugin" = "xyes"; then
118431  BUILD_PLUGIN_WRITE_PROMETHEUS_TRUE=
118432  BUILD_PLUGIN_WRITE_PROMETHEUS_FALSE='#'
118433else
118434  BUILD_PLUGIN_WRITE_PROMETHEUS_TRUE='#'
118435  BUILD_PLUGIN_WRITE_PROMETHEUS_FALSE=
118436fi
118437
118438    enable_write_prometheus="$enable_plugin"
118439
118440
118441
118442    enable_plugin="no"
118443    force="no"
118444    # Check whether --enable-write_redis was given.
118445if test "${enable_write_redis+set}" = set; then :
118446  enableval=$enable_write_redis;
118447        if test "x$enableval" = "xyes"; then
118448          enable_plugin="yes"
118449        else if test "x$enableval" = "xforce"; then
118450          enable_plugin="yes"
118451          force="yes"
118452        else
118453          enable_plugin="no (disabled on command line)"
118454        fi; fi
118455
118456else
118457
118458        if test "x$enable_all_plugins" = "xauto"; then
118459          if test "x$with_libhiredis" = "xyes"; then
118460            enable_plugin="yes"
118461          else
118462            enable_plugin="$with_libhiredis"
118463          fi
118464        else
118465          enable_plugin="$enable_all_plugins"
118466        fi
118467
118468
118469fi
118470
118471    if test "x$enable_plugin" = "xyes"; then
118472      if test "x$with_libhiredis" = "xyes" || test "x$force" = "xyes"; then
118473
118474$as_echo "#define HAVE_PLUGIN_WRITE_REDIS 1" >>confdefs.h
118475
118476        if test "x$with_libhiredis" != "xyes"; then
118477          dependency_warning="yes"
118478        fi
118479      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
118480        dependency_error="yes"
118481        enable_plugin="$with_libhiredis (dependency error)"
118482      fi
118483    fi
118484     if test "x$enable_plugin" = "xyes"; then
118485  BUILD_PLUGIN_WRITE_REDIS_TRUE=
118486  BUILD_PLUGIN_WRITE_REDIS_FALSE='#'
118487else
118488  BUILD_PLUGIN_WRITE_REDIS_TRUE='#'
118489  BUILD_PLUGIN_WRITE_REDIS_FALSE=
118490fi
118491
118492    enable_write_redis="$enable_plugin"
118493
118494
118495
118496    enable_plugin="no"
118497    force="no"
118498    # Check whether --enable-write_riemann was given.
118499if test "${enable_write_riemann+set}" = set; then :
118500  enableval=$enable_write_riemann;
118501        if test "x$enableval" = "xyes"; then
118502          enable_plugin="yes"
118503        else if test "x$enableval" = "xforce"; then
118504          enable_plugin="yes"
118505          force="yes"
118506        else
118507          enable_plugin="no (disabled on command line)"
118508        fi; fi
118509
118510else
118511
118512        if test "x$enable_all_plugins" = "xauto"; then
118513          if test "x$with_libriemann_client" = "xyes"; then
118514            enable_plugin="yes"
118515          else
118516            enable_plugin="$with_libriemann_client"
118517          fi
118518        else
118519          enable_plugin="$enable_all_plugins"
118520        fi
118521
118522
118523fi
118524
118525    if test "x$enable_plugin" = "xyes"; then
118526      if test "x$with_libriemann_client" = "xyes" || test "x$force" = "xyes"; then
118527
118528$as_echo "#define HAVE_PLUGIN_WRITE_RIEMANN 1" >>confdefs.h
118529
118530        if test "x$with_libriemann_client" != "xyes"; then
118531          dependency_warning="yes"
118532        fi
118533      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
118534        dependency_error="yes"
118535        enable_plugin="$with_libriemann_client (dependency error)"
118536      fi
118537    fi
118538     if test "x$enable_plugin" = "xyes"; then
118539  BUILD_PLUGIN_WRITE_RIEMANN_TRUE=
118540  BUILD_PLUGIN_WRITE_RIEMANN_FALSE='#'
118541else
118542  BUILD_PLUGIN_WRITE_RIEMANN_TRUE='#'
118543  BUILD_PLUGIN_WRITE_RIEMANN_FALSE=
118544fi
118545
118546    enable_write_riemann="$enable_plugin"
118547
118548
118549
118550    enable_plugin="no"
118551    force="no"
118552    # Check whether --enable-write_sensu was given.
118553if test "${enable_write_sensu+set}" = set; then :
118554  enableval=$enable_write_sensu;
118555        if test "x$enableval" = "xyes"; then
118556          enable_plugin="yes"
118557        else if test "x$enableval" = "xforce"; then
118558          enable_plugin="yes"
118559          force="yes"
118560        else
118561          enable_plugin="no (disabled on command line)"
118562        fi; fi
118563
118564else
118565
118566        if test "x$enable_all_plugins" = "xauto"; then
118567          if test "xyes" = "xyes"; then
118568            enable_plugin="yes"
118569          else
118570            enable_plugin="yes"
118571          fi
118572        else
118573          enable_plugin="$enable_all_plugins"
118574        fi
118575
118576
118577fi
118578
118579    if test "x$enable_plugin" = "xyes"; then
118580      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
118581
118582$as_echo "#define HAVE_PLUGIN_WRITE_SENSU 1" >>confdefs.h
118583
118584        if test "xyes" != "xyes"; then
118585          dependency_warning="yes"
118586        fi
118587      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
118588        dependency_error="yes"
118589        enable_plugin="yes (dependency error)"
118590      fi
118591    fi
118592     if test "x$enable_plugin" = "xyes"; then
118593  BUILD_PLUGIN_WRITE_SENSU_TRUE=
118594  BUILD_PLUGIN_WRITE_SENSU_FALSE='#'
118595else
118596  BUILD_PLUGIN_WRITE_SENSU_TRUE='#'
118597  BUILD_PLUGIN_WRITE_SENSU_FALSE=
118598fi
118599
118600    enable_write_sensu="$enable_plugin"
118601
118602
118603
118604    enable_plugin="no"
118605    force="no"
118606    # Check whether --enable-write_stackdriver was given.
118607if test "${enable_write_stackdriver+set}" = set; then :
118608  enableval=$enable_write_stackdriver;
118609        if test "x$enableval" = "xyes"; then
118610          enable_plugin="yes"
118611        else if test "x$enableval" = "xforce"; then
118612          enable_plugin="yes"
118613          force="yes"
118614        else
118615          enable_plugin="no (disabled on command line)"
118616        fi; fi
118617
118618else
118619
118620        if test "x$enable_all_plugins" = "xauto"; then
118621          if test "x$plugin_write_stackdriver" = "xyes"; then
118622            enable_plugin="yes"
118623          else
118624            enable_plugin="$plugin_write_stackdriver"
118625          fi
118626        else
118627          enable_plugin="$enable_all_plugins"
118628        fi
118629
118630
118631fi
118632
118633    if test "x$enable_plugin" = "xyes"; then
118634      if test "x$plugin_write_stackdriver" = "xyes" || test "x$force" = "xyes"; then
118635
118636$as_echo "#define HAVE_PLUGIN_WRITE_STACKDRIVER 1" >>confdefs.h
118637
118638        if test "x$plugin_write_stackdriver" != "xyes"; then
118639          dependency_warning="yes"
118640        fi
118641      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
118642        dependency_error="yes"
118643        enable_plugin="$plugin_write_stackdriver (dependency error)"
118644      fi
118645    fi
118646     if test "x$enable_plugin" = "xyes"; then
118647  BUILD_PLUGIN_WRITE_STACKDRIVER_TRUE=
118648  BUILD_PLUGIN_WRITE_STACKDRIVER_FALSE='#'
118649else
118650  BUILD_PLUGIN_WRITE_STACKDRIVER_TRUE='#'
118651  BUILD_PLUGIN_WRITE_STACKDRIVER_FALSE=
118652fi
118653
118654    enable_write_stackdriver="$enable_plugin"
118655
118656
118657
118658    enable_plugin="no"
118659    force="no"
118660    # Check whether --enable-write_syslog was given.
118661if test "${enable_write_syslog+set}" = set; then :
118662  enableval=$enable_write_syslog;
118663        if test "x$enableval" = "xyes"; then
118664          enable_plugin="yes"
118665        else if test "x$enableval" = "xforce"; then
118666          enable_plugin="yes"
118667          force="yes"
118668        else
118669          enable_plugin="no (disabled on command line)"
118670        fi; fi
118671
118672else
118673
118674        if test "x$enable_all_plugins" = "xauto"; then
118675          if test "xyes" = "xyes"; then
118676            enable_plugin="yes"
118677          else
118678            enable_plugin="yes"
118679          fi
118680        else
118681          enable_plugin="$enable_all_plugins"
118682        fi
118683
118684
118685fi
118686
118687    if test "x$enable_plugin" = "xyes"; then
118688      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
118689
118690$as_echo "#define HAVE_PLUGIN_WRITE_SYSLOG 1" >>confdefs.h
118691
118692        if test "xyes" != "xyes"; then
118693          dependency_warning="yes"
118694        fi
118695      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
118696        dependency_error="yes"
118697        enable_plugin="yes (dependency error)"
118698      fi
118699    fi
118700     if test "x$enable_plugin" = "xyes"; then
118701  BUILD_PLUGIN_WRITE_SYSLOG_TRUE=
118702  BUILD_PLUGIN_WRITE_SYSLOG_FALSE='#'
118703else
118704  BUILD_PLUGIN_WRITE_SYSLOG_TRUE='#'
118705  BUILD_PLUGIN_WRITE_SYSLOG_FALSE=
118706fi
118707
118708    enable_write_syslog="$enable_plugin"
118709
118710
118711
118712    enable_plugin="no"
118713    force="no"
118714    # Check whether --enable-write_tsdb was given.
118715if test "${enable_write_tsdb+set}" = set; then :
118716  enableval=$enable_write_tsdb;
118717        if test "x$enableval" = "xyes"; then
118718          enable_plugin="yes"
118719        else if test "x$enableval" = "xforce"; then
118720          enable_plugin="yes"
118721          force="yes"
118722        else
118723          enable_plugin="no (disabled on command line)"
118724        fi; fi
118725
118726else
118727
118728        if test "x$enable_all_plugins" = "xauto"; then
118729          if test "xyes" = "xyes"; then
118730            enable_plugin="yes"
118731          else
118732            enable_plugin="yes"
118733          fi
118734        else
118735          enable_plugin="$enable_all_plugins"
118736        fi
118737
118738
118739fi
118740
118741    if test "x$enable_plugin" = "xyes"; then
118742      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
118743
118744$as_echo "#define HAVE_PLUGIN_WRITE_TSDB 1" >>confdefs.h
118745
118746        if test "xyes" != "xyes"; then
118747          dependency_warning="yes"
118748        fi
118749      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
118750        dependency_error="yes"
118751        enable_plugin="yes (dependency error)"
118752      fi
118753    fi
118754     if test "x$enable_plugin" = "xyes"; then
118755  BUILD_PLUGIN_WRITE_TSDB_TRUE=
118756  BUILD_PLUGIN_WRITE_TSDB_FALSE='#'
118757else
118758  BUILD_PLUGIN_WRITE_TSDB_TRUE='#'
118759  BUILD_PLUGIN_WRITE_TSDB_FALSE=
118760fi
118761
118762    enable_write_tsdb="$enable_plugin"
118763
118764
118765
118766    enable_plugin="no"
118767    force="no"
118768    # Check whether --enable-xencpu was given.
118769if test "${enable_xencpu+set}" = set; then :
118770  enableval=$enable_xencpu;
118771        if test "x$enableval" = "xyes"; then
118772          enable_plugin="yes"
118773        else if test "x$enableval" = "xforce"; then
118774          enable_plugin="yes"
118775          force="yes"
118776        else
118777          enable_plugin="no (disabled on command line)"
118778        fi; fi
118779
118780else
118781
118782        if test "x$enable_all_plugins" = "xauto"; then
118783          if test "x$plugin_xencpu" = "xyes"; then
118784            enable_plugin="yes"
118785          else
118786            enable_plugin="$plugin_xencpu"
118787          fi
118788        else
118789          enable_plugin="$enable_all_plugins"
118790        fi
118791
118792
118793fi
118794
118795    if test "x$enable_plugin" = "xyes"; then
118796      if test "x$plugin_xencpu" = "xyes" || test "x$force" = "xyes"; then
118797
118798$as_echo "#define HAVE_PLUGIN_XENCPU 1" >>confdefs.h
118799
118800        if test "x$plugin_xencpu" != "xyes"; then
118801          dependency_warning="yes"
118802        fi
118803      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
118804        dependency_error="yes"
118805        enable_plugin="$plugin_xencpu (dependency error)"
118806      fi
118807    fi
118808     if test "x$enable_plugin" = "xyes"; then
118809  BUILD_PLUGIN_XENCPU_TRUE=
118810  BUILD_PLUGIN_XENCPU_FALSE='#'
118811else
118812  BUILD_PLUGIN_XENCPU_TRUE='#'
118813  BUILD_PLUGIN_XENCPU_FALSE=
118814fi
118815
118816    enable_xencpu="$enable_plugin"
118817
118818
118819
118820    enable_plugin="no"
118821    force="no"
118822    # Check whether --enable-xmms was given.
118823if test "${enable_xmms+set}" = set; then :
118824  enableval=$enable_xmms;
118825        if test "x$enableval" = "xyes"; then
118826          enable_plugin="yes"
118827        else if test "x$enableval" = "xforce"; then
118828          enable_plugin="yes"
118829          force="yes"
118830        else
118831          enable_plugin="no (disabled on command line)"
118832        fi; fi
118833
118834else
118835
118836        if test "x$enable_all_plugins" = "xauto"; then
118837          if test "x$with_libxmms" = "xyes"; then
118838            enable_plugin="yes"
118839          else
118840            enable_plugin="$with_libxmms"
118841          fi
118842        else
118843          enable_plugin="$enable_all_plugins"
118844        fi
118845
118846
118847fi
118848
118849    if test "x$enable_plugin" = "xyes"; then
118850      if test "x$with_libxmms" = "xyes" || test "x$force" = "xyes"; then
118851
118852$as_echo "#define HAVE_PLUGIN_XMMS 1" >>confdefs.h
118853
118854        if test "x$with_libxmms" != "xyes"; then
118855          dependency_warning="yes"
118856        fi
118857      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
118858        dependency_error="yes"
118859        enable_plugin="$with_libxmms (dependency error)"
118860      fi
118861    fi
118862     if test "x$enable_plugin" = "xyes"; then
118863  BUILD_PLUGIN_XMMS_TRUE=
118864  BUILD_PLUGIN_XMMS_FALSE='#'
118865else
118866  BUILD_PLUGIN_XMMS_TRUE='#'
118867  BUILD_PLUGIN_XMMS_FALSE=
118868fi
118869
118870    enable_xmms="$enable_plugin"
118871
118872
118873
118874    enable_plugin="no"
118875    force="no"
118876    # Check whether --enable-zfs_arc was given.
118877if test "${enable_zfs_arc+set}" = set; then :
118878  enableval=$enable_zfs_arc;
118879        if test "x$enableval" = "xyes"; then
118880          enable_plugin="yes"
118881        else if test "x$enableval" = "xforce"; then
118882          enable_plugin="yes"
118883          force="yes"
118884        else
118885          enable_plugin="no (disabled on command line)"
118886        fi; fi
118887
118888else
118889
118890        if test "x$enable_all_plugins" = "xauto"; then
118891          if test "x$plugin_zfs_arc" = "xyes"; then
118892            enable_plugin="yes"
118893          else
118894            enable_plugin="$plugin_zfs_arc"
118895          fi
118896        else
118897          enable_plugin="$enable_all_plugins"
118898        fi
118899
118900
118901fi
118902
118903    if test "x$enable_plugin" = "xyes"; then
118904      if test "x$plugin_zfs_arc" = "xyes" || test "x$force" = "xyes"; then
118905
118906$as_echo "#define HAVE_PLUGIN_ZFS_ARC 1" >>confdefs.h
118907
118908        if test "x$plugin_zfs_arc" != "xyes"; then
118909          dependency_warning="yes"
118910        fi
118911      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
118912        dependency_error="yes"
118913        enable_plugin="$plugin_zfs_arc (dependency error)"
118914      fi
118915    fi
118916     if test "x$enable_plugin" = "xyes"; then
118917  BUILD_PLUGIN_ZFS_ARC_TRUE=
118918  BUILD_PLUGIN_ZFS_ARC_FALSE='#'
118919else
118920  BUILD_PLUGIN_ZFS_ARC_TRUE='#'
118921  BUILD_PLUGIN_ZFS_ARC_FALSE=
118922fi
118923
118924    enable_zfs_arc="$enable_plugin"
118925
118926
118927
118928    enable_plugin="no"
118929    force="no"
118930    # Check whether --enable-zone was given.
118931if test "${enable_zone+set}" = set; then :
118932  enableval=$enable_zone;
118933        if test "x$enableval" = "xyes"; then
118934          enable_plugin="yes"
118935        else if test "x$enableval" = "xforce"; then
118936          enable_plugin="yes"
118937          force="yes"
118938        else
118939          enable_plugin="no (disabled on command line)"
118940        fi; fi
118941
118942else
118943
118944        if test "x$enable_all_plugins" = "xauto"; then
118945          if test "x$plugin_zone" = "xyes"; then
118946            enable_plugin="yes"
118947          else
118948            enable_plugin="$plugin_zone"
118949          fi
118950        else
118951          enable_plugin="$enable_all_plugins"
118952        fi
118953
118954
118955fi
118956
118957    if test "x$enable_plugin" = "xyes"; then
118958      if test "x$plugin_zone" = "xyes" || test "x$force" = "xyes"; then
118959
118960$as_echo "#define HAVE_PLUGIN_ZONE 1" >>confdefs.h
118961
118962        if test "x$plugin_zone" != "xyes"; then
118963          dependency_warning="yes"
118964        fi
118965      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
118966        dependency_error="yes"
118967        enable_plugin="$plugin_zone (dependency error)"
118968      fi
118969    fi
118970     if test "x$enable_plugin" = "xyes"; then
118971  BUILD_PLUGIN_ZONE_TRUE=
118972  BUILD_PLUGIN_ZONE_FALSE='#'
118973else
118974  BUILD_PLUGIN_ZONE_TRUE='#'
118975  BUILD_PLUGIN_ZONE_FALSE=
118976fi
118977
118978    enable_zone="$enable_plugin"
118979
118980
118981
118982    enable_plugin="no"
118983    force="no"
118984    # Check whether --enable-zookeeper was given.
118985if test "${enable_zookeeper+set}" = set; then :
118986  enableval=$enable_zookeeper;
118987        if test "x$enableval" = "xyes"; then
118988          enable_plugin="yes"
118989        else if test "x$enableval" = "xforce"; then
118990          enable_plugin="yes"
118991          force="yes"
118992        else
118993          enable_plugin="no (disabled on command line)"
118994        fi; fi
118995
118996else
118997
118998        if test "x$enable_all_plugins" = "xauto"; then
118999          if test "xyes" = "xyes"; then
119000            enable_plugin="yes"
119001          else
119002            enable_plugin="yes"
119003          fi
119004        else
119005          enable_plugin="$enable_all_plugins"
119006        fi
119007
119008
119009fi
119010
119011    if test "x$enable_plugin" = "xyes"; then
119012      if test "xyes" = "xyes" || test "x$force" = "xyes"; then
119013
119014$as_echo "#define HAVE_PLUGIN_ZOOKEEPER 1" >>confdefs.h
119015
119016        if test "xyes" != "xyes"; then
119017          dependency_warning="yes"
119018        fi
119019      else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
119020        dependency_error="yes"
119021        enable_plugin="yes (dependency error)"
119022      fi
119023    fi
119024     if test "x$enable_plugin" = "xyes"; then
119025  BUILD_PLUGIN_ZOOKEEPER_TRUE=
119026  BUILD_PLUGIN_ZOOKEEPER_FALSE='#'
119027else
119028  BUILD_PLUGIN_ZOOKEEPER_TRUE='#'
119029  BUILD_PLUGIN_ZOOKEEPER_FALSE=
119030fi
119031
119032    enable_zookeeper="$enable_plugin"
119033
119034
119035
119036# Load either syslog or logfile
119037LOAD_PLUGIN_SYSLOG=""
119038LOAD_PLUGIN_LOGFILE=""
119039LOAD_PLUGIN_LOG_LOGSTASH=""
119040
119041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which default log plugin to load" >&5
119042$as_echo_n "checking which default log plugin to load... " >&6; }
119043default_log_plugin="none"
119044if test "x$enable_syslog" = "xyes"; then
119045  default_log_plugin="syslog"
119046else
119047  LOAD_PLUGIN_SYSLOG="##"
119048fi
119049
119050if test "x$enable_logfile" = "xyes"; then
119051  if test "x$default_log_plugin" = "xnone"; then
119052    default_log_plugin="logfile"
119053  else
119054    LOAD_PLUGIN_LOGFILE="#"
119055  fi
119056else
119057  LOAD_PLUGIN_LOGFILE="##"
119058fi
119059
119060if test "x$enable_log_logstash" = "xyes"; then
119061  LOAD_PLUGIN_LOG_LOGSTASH="#"
119062else
119063  LOAD_PLUGIN_LOG_LOGSTASH="##"
119064fi
119065
119066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_log_plugin" >&5
119067$as_echo "$default_log_plugin" >&6; }
119068
119069
119070
119071
119072
119073if test "x$enable_debug" = "xyes"; then
119074  DEFAULT_LOG_LEVEL="debug"
119075else
119076  DEFAULT_LOG_LEVEL="info"
119077fi
119078
119079
119080# Load only one of rrdtool, network, csv in the default config.
119081LOAD_PLUGIN_RRDTOOL=""
119082LOAD_PLUGIN_NETWORK=""
119083LOAD_PLUGIN_CSV=""
119084
119085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which default write plugin to load" >&5
119086$as_echo_n "checking which default write plugin to load... " >&6; }
119087default_write_plugin="none"
119088if test "x$enable_rrdtool" = "xyes"; then
119089  default_write_plugin="rrdtool"
119090else
119091  LOAD_PLUGIN_RRDTOOL="##"
119092fi
119093
119094if test "x$enable_network" = "xyes"; then
119095  if test "x$default_write_plugin" = "xnone"; then
119096    default_write_plugin="network"
119097  else
119098    LOAD_PLUGIN_NETWORK="#"
119099  fi
119100else
119101  LOAD_PLUGIN_NETWORK="##"
119102fi
119103
119104if test "x$enable_csv" = "xyes"; then
119105  if test "x$default_write_plugin" = "xnone"; then
119106    default_write_plugin="csv"
119107  else
119108    LOAD_PLUGIN_CSV="#"
119109  fi
119110else
119111  LOAD_PLUGIN_CSV="##"
119112fi
119113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_write_plugin" >&5
119114$as_echo "$default_write_plugin" >&6; }
119115
119116
119117
119118
119119
119120PERL_BINDINGS_OPTIONS="PREFIX=${prefix}"
119121
119122# Check whether --with-perl-bindings was given.
119123if test "${with_perl_bindings+set}" = set; then :
119124  withval=$with_perl_bindings;
119125  if test "x$withval" != "xno" && test "x$withval" != "xyes"; then
119126    PERL_BINDINGS_OPTIONS="$withval"
119127    with_perl_bindings="yes"
119128  else
119129    with_perl_bindings="$withval"
119130  fi
119131
119132else
119133
119134  if test "x$PERL" != "x"; then
119135    with_perl_bindings="yes"
119136  else
119137    with_perl_bindings="no (no perl interpreter found)"
119138  fi
119139
119140fi
119141
119142
119143if test "x$with_perl_bindings" = "xyes"; then
119144  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ExtUtils::MakeMaker module" >&5
119145$as_echo_n "checking for the ExtUtils::MakeMaker module... " >&6; }
119146  if $PERL -MExtUtils::MakeMaker -e '' 2>/dev/null; then
119147    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
119148$as_echo "yes" >&6; }
119149  else
119150    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
119151$as_echo "no" >&6; }
119152    with_perl_bindings="no (ExtUtils::MakeMaker not found)"
119153  fi
119154fi
119155
119156if test "x$with_perl_bindings" = "xyes"; then
119157  PERL_BINDINGS="perl"
119158else
119159  PERL_BINDINGS=""
119160fi
119161
119162
119163
119164
119165LCC_VERSION_MAJOR=`echo $PACKAGE_VERSION | cut -d'.' -f1`
119166LCC_VERSION_MINOR=`echo $PACKAGE_VERSION | cut -d'.' -f2`
119167LCC_VERSION_PATCH=`echo $PACKAGE_VERSION | cut -d'.' -f3`
119168
119169LCC_VERSION_EXTRA=`echo $PACKAGE_VERSION | cut -d'.' -f4-`
119170
119171LCC_VERSION_STRING="$LCC_VERSION_MAJOR.$LCC_VERSION_MINOR.$LCC_VERSION_PATCH"
119172
119173
119174
119175
119176
119177
119178
119179ac_config_files="$ac_config_files src/libcollectdclient/collectd/lcc_features.h"
119180
119181
119182if test "x$GCC" = "xyes"; then
119183  AM_CFLAGS="-Wall"
119184  AM_CXXFLAGS="-Wall"
119185  if test "x$enable_werror" != "xno"; then
119186    AM_CFLAGS="$AM_CFLAGS -Werror"
119187    AM_CXXFLAGS="$AM_CXXFLAGS -Werror"
119188  fi
119189fi
119190
119191
119192
119193
119194ac_config_files="$ac_config_files Makefile src/collectd.conf src/libcollectdclient/libcollectdclient.pc"
119195
119196
119197cat >confcache <<\_ACEOF
119198# This file is a shell script that caches the results of configure
119199# tests run on this system so they can be shared between configure
119200# scripts and configure runs, see configure's option --config-cache.
119201# It is not useful on other systems.  If it contains results you don't
119202# want to keep, you may remove or edit it.
119203#
119204# config.status only pays attention to the cache file if you give it
119205# the --recheck option to rerun configure.
119206#
119207# `ac_cv_env_foo' variables (set or unset) will be overridden when
119208# loading this file, other *unset* `ac_cv_foo' will be assigned the
119209# following values.
119210
119211_ACEOF
119212
119213# The following way of writing the cache mishandles newlines in values,
119214# but we know of no workaround that is simple, portable, and efficient.
119215# So, we kill variables containing newlines.
119216# Ultrix sh set writes to stderr and can't be redirected directly,
119217# and sets the high bit in the cache file unless we assign to the vars.
119218(
119219  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
119220    eval ac_val=\$$ac_var
119221    case $ac_val in #(
119222    *${as_nl}*)
119223      case $ac_var in #(
119224      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
119225$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
119226      esac
119227      case $ac_var in #(
119228      _ | IFS | as_nl) ;; #(
119229      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
119230      *) { eval $ac_var=; unset $ac_var;} ;;
119231      esac ;;
119232    esac
119233  done
119234
119235  (set) 2>&1 |
119236    case $as_nl`(ac_space=' '; set) 2>&1` in #(
119237    *${as_nl}ac_space=\ *)
119238      # `set' does not quote correctly, so add quotes: double-quote
119239      # substitution turns \\\\ into \\, and sed turns \\ into \.
119240      sed -n \
119241	"s/'/'\\\\''/g;
119242	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
119243      ;; #(
119244    *)
119245      # `set' quotes correctly as required by POSIX, so do not add quotes.
119246      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
119247      ;;
119248    esac |
119249    sort
119250) |
119251  sed '
119252     /^ac_cv_env_/b end
119253     t clear
119254     :clear
119255     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
119256     t end
119257     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
119258     :end' >>confcache
119259if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
119260  if test -w "$cache_file"; then
119261    if test "x$cache_file" != "x/dev/null"; then
119262      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
119263$as_echo "$as_me: updating cache $cache_file" >&6;}
119264      if test ! -f "$cache_file" || test -h "$cache_file"; then
119265	cat confcache >"$cache_file"
119266      else
119267        case $cache_file in #(
119268        */* | ?:*)
119269	  mv -f confcache "$cache_file"$$ &&
119270	  mv -f "$cache_file"$$ "$cache_file" ;; #(
119271        *)
119272	  mv -f confcache "$cache_file" ;;
119273	esac
119274      fi
119275    fi
119276  else
119277    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
119278$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
119279  fi
119280fi
119281rm -f confcache
119282
119283test "x$prefix" = xNONE && prefix=$ac_default_prefix
119284# Let make expand exec_prefix.
119285test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
119286
119287DEFS=-DHAVE_CONFIG_H
119288
119289ac_libobjs=
119290ac_ltlibobjs=
119291U=
119292for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
119293  # 1. Remove the extension, and $U if already installed.
119294  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
119295  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
119296  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
119297  #    will be set to the directory where LIBOBJS objects are built.
119298  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
119299  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
119300done
119301LIBOBJS=$ac_libobjs
119302
119303LTLIBOBJS=$ac_ltlibobjs
119304
119305
119306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
119307$as_echo_n "checking that generated files are newer than configure... " >&6; }
119308   if test -n "$am_sleep_pid"; then
119309     # Hide warnings about reused PIDs.
119310     wait $am_sleep_pid 2>/dev/null
119311   fi
119312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
119313$as_echo "done" >&6; }
119314if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
119315  as_fn_error $? "conditional \"AMDEP\" was never defined.
119316Usually this means the macro was only invoked conditionally." "$LINENO" 5
119317fi
119318if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
119319  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
119320Usually this means the macro was only invoked conditionally." "$LINENO" 5
119321fi
119322 if test -n "$EXEEXT"; then
119323  am__EXEEXT_TRUE=
119324  am__EXEEXT_FALSE='#'
119325else
119326  am__EXEEXT_TRUE='#'
119327  am__EXEEXT_FALSE=
119328fi
119329
119330if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
119331  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
119332Usually this means the macro was only invoked conditionally." "$LINENO" 5
119333fi
119334if test -z "${BUILD_AIX_TRUE}" && test -z "${BUILD_AIX_FALSE}"; then
119335  as_fn_error $? "conditional \"BUILD_AIX\" was never defined.
119336Usually this means the macro was only invoked conditionally." "$LINENO" 5
119337fi
119338if test -z "${BUILD_DARWIN_TRUE}" && test -z "${BUILD_DARWIN_FALSE}"; then
119339  as_fn_error $? "conditional \"BUILD_DARWIN\" was never defined.
119340Usually this means the macro was only invoked conditionally." "$LINENO" 5
119341fi
119342if test -z "${BUILD_FREEBSD_TRUE}" && test -z "${BUILD_FREEBSD_FALSE}"; then
119343  as_fn_error $? "conditional \"BUILD_FREEBSD\" was never defined.
119344Usually this means the macro was only invoked conditionally." "$LINENO" 5
119345fi
119346if test -z "${BUILD_LINUX_TRUE}" && test -z "${BUILD_LINUX_FALSE}"; then
119347  as_fn_error $? "conditional \"BUILD_LINUX\" was never defined.
119348Usually this means the macro was only invoked conditionally." "$LINENO" 5
119349fi
119350if test -z "${BUILD_OPENBSD_TRUE}" && test -z "${BUILD_OPENBSD_FALSE}"; then
119351  as_fn_error $? "conditional \"BUILD_OPENBSD\" was never defined.
119352Usually this means the macro was only invoked conditionally." "$LINENO" 5
119353fi
119354if test -z "${BUILD_NETBSD_TRUE}" && test -z "${BUILD_NETBSD_FALSE}"; then
119355  as_fn_error $? "conditional \"BUILD_NETBSD\" was never defined.
119356Usually this means the macro was only invoked conditionally." "$LINENO" 5
119357fi
119358if test -z "${BUILD_SOLARIS_TRUE}" && test -z "${BUILD_SOLARIS_FALSE}"; then
119359  as_fn_error $? "conditional \"BUILD_SOLARIS\" was never defined.
119360Usually this means the macro was only invoked conditionally." "$LINENO" 5
119361fi
119362if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
119363  as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
119364Usually this means the macro was only invoked conditionally." "$LINENO" 5
119365fi
119366if test -z "${BUILD_WITH_CAPABILITY_TRUE}" && test -z "${BUILD_WITH_CAPABILITY_FALSE}"; then
119367  as_fn_error $? "conditional \"BUILD_WITH_CAPABILITY\" was never defined.
119368Usually this means the macro was only invoked conditionally." "$LINENO" 5
119369fi
119370if test -z "${BUILD_WITH_LIBSOCKET_TRUE}" && test -z "${BUILD_WITH_LIBSOCKET_FALSE}"; then
119371  as_fn_error $? "conditional \"BUILD_WITH_LIBSOCKET\" was never defined.
119372Usually this means the macro was only invoked conditionally." "$LINENO" 5
119373fi
119374if test -z "${BUILD_WITH_GNULIB_TRUE}" && test -z "${BUILD_WITH_GNULIB_FALSE}"; then
119375  as_fn_error $? "conditional \"BUILD_WITH_GNULIB\" was never defined.
119376Usually this means the macro was only invoked conditionally." "$LINENO" 5
119377fi
119378if test -z "${BUILD_WITH_LIBNSL_TRUE}" && test -z "${BUILD_WITH_LIBNSL_FALSE}"; then
119379  as_fn_error $? "conditional \"BUILD_WITH_LIBNSL\" was never defined.
119380Usually this means the macro was only invoked conditionally." "$LINENO" 5
119381fi
119382if test -z "${BUILD_WITH_LIBRT_TRUE}" && test -z "${BUILD_WITH_LIBRT_FALSE}"; then
119383  as_fn_error $? "conditional \"BUILD_WITH_LIBRT\" was never defined.
119384Usually this means the macro was only invoked conditionally." "$LINENO" 5
119385fi
119386if test -z "${BUILD_WITH_LIBPOSIX4_TRUE}" && test -z "${BUILD_WITH_LIBPOSIX4_FALSE}"; then
119387  as_fn_error $? "conditional \"BUILD_WITH_LIBPOSIX4\" was never defined.
119388Usually this means the macro was only invoked conditionally." "$LINENO" 5
119389fi
119390if test -z "${BUILD_WITH_PERFSTAT_TRUE}" && test -z "${BUILD_WITH_PERFSTAT_FALSE}"; then
119391  as_fn_error $? "conditional \"BUILD_WITH_PERFSTAT\" was never defined.
119392Usually this means the macro was only invoked conditionally." "$LINENO" 5
119393fi
119394if test -z "${BUILD_WITH_LIBDEVINFO_TRUE}" && test -z "${BUILD_WITH_LIBDEVINFO_FALSE}"; then
119395  as_fn_error $? "conditional \"BUILD_WITH_LIBDEVINFO\" was never defined.
119396Usually this means the macro was only invoked conditionally." "$LINENO" 5
119397fi
119398if test -z "${BUILD_WITH_LIBKSTAT_TRUE}" && test -z "${BUILD_WITH_LIBKSTAT_FALSE}"; then
119399  as_fn_error $? "conditional \"BUILD_WITH_LIBKSTAT\" was never defined.
119400Usually this means the macro was only invoked conditionally." "$LINENO" 5
119401fi
119402if test -z "${BUILD_WITH_LIBIOKIT_TRUE}" && test -z "${BUILD_WITH_LIBIOKIT_FALSE}"; then
119403  as_fn_error $? "conditional \"BUILD_WITH_LIBIOKIT\" was never defined.
119404Usually this means the macro was only invoked conditionally." "$LINENO" 5
119405fi
119406if test -z "${BUILD_WITH_LIBKVM_GETPROCS_TRUE}" && test -z "${BUILD_WITH_LIBKVM_GETPROCS_FALSE}"; then
119407  as_fn_error $? "conditional \"BUILD_WITH_LIBKVM_GETPROCS\" was never defined.
119408Usually this means the macro was only invoked conditionally." "$LINENO" 5
119409fi
119410if test -z "${BUILD_WITH_LIBKVM_GETSWAPINFO_TRUE}" && test -z "${BUILD_WITH_LIBKVM_GETSWAPINFO_FALSE}"; then
119411  as_fn_error $? "conditional \"BUILD_WITH_LIBKVM_GETSWAPINFO\" was never defined.
119412Usually this means the macro was only invoked conditionally." "$LINENO" 5
119413fi
119414if test -z "${BUILD_WITH_LIBKVM_NLIST_TRUE}" && test -z "${BUILD_WITH_LIBKVM_NLIST_FALSE}"; then
119415  as_fn_error $? "conditional \"BUILD_WITH_LIBKVM_NLIST\" was never defined.
119416Usually this means the macro was only invoked conditionally." "$LINENO" 5
119417fi
119418if test -z "${BUILD_WITH_LIBCURL_TRUE}" && test -z "${BUILD_WITH_LIBCURL_FALSE}"; then
119419  as_fn_error $? "conditional \"BUILD_WITH_LIBCURL\" was never defined.
119420Usually this means the macro was only invoked conditionally." "$LINENO" 5
119421fi
119422if test -z "${BUILD_WITH_LIBGCRYPT_TRUE}" && test -z "${BUILD_WITH_LIBGCRYPT_FALSE}"; then
119423  as_fn_error $? "conditional \"BUILD_WITH_LIBGCRYPT\" was never defined.
119424Usually this means the macro was only invoked conditionally." "$LINENO" 5
119425fi
119426if test -z "${HAVE_GRPC_CPP_TRUE}" && test -z "${HAVE_GRPC_CPP_FALSE}"; then
119427  as_fn_error $? "conditional \"HAVE_GRPC_CPP\" was never defined.
119428Usually this means the macro was only invoked conditionally." "$LINENO" 5
119429fi
119430if test -z "${BUILD_WITH_JAVA_TRUE}" && test -z "${BUILD_WITH_JAVA_FALSE}"; then
119431  as_fn_error $? "conditional \"BUILD_WITH_JAVA\" was never defined.
119432Usually this means the macro was only invoked conditionally." "$LINENO" 5
119433fi
119434if test -z "${HAVE_LIBMNL_TRUE}" && test -z "${HAVE_LIBMNL_FALSE}"; then
119435  as_fn_error $? "conditional \"HAVE_LIBMNL\" was never defined.
119436Usually this means the macro was only invoked conditionally." "$LINENO" 5
119437fi
119438if test -z "${HAVE_PROTOC3_TRUE}" && test -z "${HAVE_PROTOC3_FALSE}"; then
119439  as_fn_error $? "conditional \"HAVE_PROTOC3\" was never defined.
119440Usually this means the macro was only invoked conditionally." "$LINENO" 5
119441fi
119442if test -z "${BUILD_WITH_LIBSSL_TRUE}" && test -z "${BUILD_WITH_LIBSSL_FALSE}"; then
119443  as_fn_error $? "conditional \"BUILD_WITH_LIBSSL\" was never defined.
119444Usually this means the macro was only invoked conditionally." "$LINENO" 5
119445fi
119446if test -z "${BUILD_WITH_LIBSTATGRAB_TRUE}" && test -z "${BUILD_WITH_LIBSTATGRAB_FALSE}"; then
119447  as_fn_error $? "conditional \"BUILD_WITH_LIBSTATGRAB\" was never defined.
119448Usually this means the macro was only invoked conditionally." "$LINENO" 5
119449fi
119450if test -z "${BUILD_WITH_LIBUDEV_TRUE}" && test -z "${BUILD_WITH_LIBUDEV_FALSE}"; then
119451  as_fn_error $? "conditional \"BUILD_WITH_LIBUDEV\" was never defined.
119452Usually this means the macro was only invoked conditionally." "$LINENO" 5
119453fi
119454if test -z "${BUILD_WITH_LIBYAJL_TRUE}" && test -z "${BUILD_WITH_LIBYAJL_FALSE}"; then
119455  as_fn_error $? "conditional \"BUILD_WITH_LIBYAJL\" was never defined.
119456Usually this means the macro was only invoked conditionally." "$LINENO" 5
119457fi
119458if test -z "${BUILD_WITH_LIBYAJL2_TRUE}" && test -z "${BUILD_WITH_LIBYAJL2_FALSE}"; then
119459  as_fn_error $? "conditional \"BUILD_WITH_LIBYAJL2\" was never defined.
119460Usually this means the macro was only invoked conditionally." "$LINENO" 5
119461fi
119462if test -z "${BUILD_FEATURE_DEBUG_TRUE}" && test -z "${BUILD_FEATURE_DEBUG_FALSE}"; then
119463  as_fn_error $? "conditional \"BUILD_FEATURE_DEBUG\" was never defined.
119464Usually this means the macro was only invoked conditionally." "$LINENO" 5
119465fi
119466if test -z "${BUILD_FEATURE_DAEMON_TRUE}" && test -z "${BUILD_FEATURE_DAEMON_FALSE}"; then
119467  as_fn_error $? "conditional \"BUILD_FEATURE_DAEMON\" was never defined.
119468Usually this means the macro was only invoked conditionally." "$LINENO" 5
119469fi
119470if test -z "${BUILD_FEATURE_GETIFADDRS_TRUE}" && test -z "${BUILD_FEATURE_GETIFADDRS_FALSE}"; then
119471  as_fn_error $? "conditional \"BUILD_FEATURE_GETIFADDRS\" was never defined.
119472Usually this means the macro was only invoked conditionally." "$LINENO" 5
119473fi
119474if test -z "${BUILD_FEATURE_WERROR_TRUE}" && test -z "${BUILD_FEATURE_WERROR_FALSE}"; then
119475  as_fn_error $? "conditional \"BUILD_FEATURE_WERROR\" was never defined.
119476Usually this means the macro was only invoked conditionally." "$LINENO" 5
119477fi
119478if test -z "${BUILD_PLUGIN_AGGREGATION_TRUE}" && test -z "${BUILD_PLUGIN_AGGREGATION_FALSE}"; then
119479  as_fn_error $? "conditional \"BUILD_PLUGIN_AGGREGATION\" was never defined.
119480Usually this means the macro was only invoked conditionally." "$LINENO" 5
119481fi
119482if test -z "${BUILD_PLUGIN_AMQP_TRUE}" && test -z "${BUILD_PLUGIN_AMQP_FALSE}"; then
119483  as_fn_error $? "conditional \"BUILD_PLUGIN_AMQP\" was never defined.
119484Usually this means the macro was only invoked conditionally." "$LINENO" 5
119485fi
119486if test -z "${BUILD_PLUGIN_AMQP1_TRUE}" && test -z "${BUILD_PLUGIN_AMQP1_FALSE}"; then
119487  as_fn_error $? "conditional \"BUILD_PLUGIN_AMQP1\" was never defined.
119488Usually this means the macro was only invoked conditionally." "$LINENO" 5
119489fi
119490if test -z "${BUILD_PLUGIN_APACHE_TRUE}" && test -z "${BUILD_PLUGIN_APACHE_FALSE}"; then
119491  as_fn_error $? "conditional \"BUILD_PLUGIN_APACHE\" was never defined.
119492Usually this means the macro was only invoked conditionally." "$LINENO" 5
119493fi
119494if test -z "${BUILD_PLUGIN_APCUPS_TRUE}" && test -z "${BUILD_PLUGIN_APCUPS_FALSE}"; then
119495  as_fn_error $? "conditional \"BUILD_PLUGIN_APCUPS\" was never defined.
119496Usually this means the macro was only invoked conditionally." "$LINENO" 5
119497fi
119498if test -z "${BUILD_PLUGIN_APPLE_SENSORS_TRUE}" && test -z "${BUILD_PLUGIN_APPLE_SENSORS_FALSE}"; then
119499  as_fn_error $? "conditional \"BUILD_PLUGIN_APPLE_SENSORS\" was never defined.
119500Usually this means the macro was only invoked conditionally." "$LINENO" 5
119501fi
119502if test -z "${BUILD_PLUGIN_AQUAERO_TRUE}" && test -z "${BUILD_PLUGIN_AQUAERO_FALSE}"; then
119503  as_fn_error $? "conditional \"BUILD_PLUGIN_AQUAERO\" was never defined.
119504Usually this means the macro was only invoked conditionally." "$LINENO" 5
119505fi
119506if test -z "${BUILD_PLUGIN_ASCENT_TRUE}" && test -z "${BUILD_PLUGIN_ASCENT_FALSE}"; then
119507  as_fn_error $? "conditional \"BUILD_PLUGIN_ASCENT\" was never defined.
119508Usually this means the macro was only invoked conditionally." "$LINENO" 5
119509fi
119510if test -z "${BUILD_PLUGIN_BAROMETER_TRUE}" && test -z "${BUILD_PLUGIN_BAROMETER_FALSE}"; then
119511  as_fn_error $? "conditional \"BUILD_PLUGIN_BAROMETER\" was never defined.
119512Usually this means the macro was only invoked conditionally." "$LINENO" 5
119513fi
119514if test -z "${BUILD_PLUGIN_BATTERY_TRUE}" && test -z "${BUILD_PLUGIN_BATTERY_FALSE}"; then
119515  as_fn_error $? "conditional \"BUILD_PLUGIN_BATTERY\" was never defined.
119516Usually this means the macro was only invoked conditionally." "$LINENO" 5
119517fi
119518if test -z "${BUILD_PLUGIN_BIND_TRUE}" && test -z "${BUILD_PLUGIN_BIND_FALSE}"; then
119519  as_fn_error $? "conditional \"BUILD_PLUGIN_BIND\" was never defined.
119520Usually this means the macro was only invoked conditionally." "$LINENO" 5
119521fi
119522if test -z "${BUILD_PLUGIN_BUDDYINFO_TRUE}" && test -z "${BUILD_PLUGIN_BUDDYINFO_FALSE}"; then
119523  as_fn_error $? "conditional \"BUILD_PLUGIN_BUDDYINFO\" was never defined.
119524Usually this means the macro was only invoked conditionally." "$LINENO" 5
119525fi
119526if test -z "${BUILD_PLUGIN_CAPABILITIES_TRUE}" && test -z "${BUILD_PLUGIN_CAPABILITIES_FALSE}"; then
119527  as_fn_error $? "conditional \"BUILD_PLUGIN_CAPABILITIES\" was never defined.
119528Usually this means the macro was only invoked conditionally." "$LINENO" 5
119529fi
119530if test -z "${BUILD_PLUGIN_CEPH_TRUE}" && test -z "${BUILD_PLUGIN_CEPH_FALSE}"; then
119531  as_fn_error $? "conditional \"BUILD_PLUGIN_CEPH\" was never defined.
119532Usually this means the macro was only invoked conditionally." "$LINENO" 5
119533fi
119534if test -z "${BUILD_PLUGIN_CGROUPS_TRUE}" && test -z "${BUILD_PLUGIN_CGROUPS_FALSE}"; then
119535  as_fn_error $? "conditional \"BUILD_PLUGIN_CGROUPS\" was never defined.
119536Usually this means the macro was only invoked conditionally." "$LINENO" 5
119537fi
119538if test -z "${BUILD_PLUGIN_CHRONY_TRUE}" && test -z "${BUILD_PLUGIN_CHRONY_FALSE}"; then
119539  as_fn_error $? "conditional \"BUILD_PLUGIN_CHRONY\" was never defined.
119540Usually this means the macro was only invoked conditionally." "$LINENO" 5
119541fi
119542if test -z "${BUILD_PLUGIN_CHECK_UPTIME_TRUE}" && test -z "${BUILD_PLUGIN_CHECK_UPTIME_FALSE}"; then
119543  as_fn_error $? "conditional \"BUILD_PLUGIN_CHECK_UPTIME\" was never defined.
119544Usually this means the macro was only invoked conditionally." "$LINENO" 5
119545fi
119546if test -z "${BUILD_PLUGIN_CONNECTIVITY_TRUE}" && test -z "${BUILD_PLUGIN_CONNECTIVITY_FALSE}"; then
119547  as_fn_error $? "conditional \"BUILD_PLUGIN_CONNECTIVITY\" was never defined.
119548Usually this means the macro was only invoked conditionally." "$LINENO" 5
119549fi
119550if test -z "${BUILD_PLUGIN_CONNTRACK_TRUE}" && test -z "${BUILD_PLUGIN_CONNTRACK_FALSE}"; then
119551  as_fn_error $? "conditional \"BUILD_PLUGIN_CONNTRACK\" was never defined.
119552Usually this means the macro was only invoked conditionally." "$LINENO" 5
119553fi
119554if test -z "${BUILD_PLUGIN_CONTEXTSWITCH_TRUE}" && test -z "${BUILD_PLUGIN_CONTEXTSWITCH_FALSE}"; then
119555  as_fn_error $? "conditional \"BUILD_PLUGIN_CONTEXTSWITCH\" was never defined.
119556Usually this means the macro was only invoked conditionally." "$LINENO" 5
119557fi
119558if test -z "${BUILD_PLUGIN_CPU_TRUE}" && test -z "${BUILD_PLUGIN_CPU_FALSE}"; then
119559  as_fn_error $? "conditional \"BUILD_PLUGIN_CPU\" was never defined.
119560Usually this means the macro was only invoked conditionally." "$LINENO" 5
119561fi
119562if test -z "${BUILD_PLUGIN_CPUFREQ_TRUE}" && test -z "${BUILD_PLUGIN_CPUFREQ_FALSE}"; then
119563  as_fn_error $? "conditional \"BUILD_PLUGIN_CPUFREQ\" was never defined.
119564Usually this means the macro was only invoked conditionally." "$LINENO" 5
119565fi
119566if test -z "${BUILD_PLUGIN_CPUSLEEP_TRUE}" && test -z "${BUILD_PLUGIN_CPUSLEEP_FALSE}"; then
119567  as_fn_error $? "conditional \"BUILD_PLUGIN_CPUSLEEP\" was never defined.
119568Usually this means the macro was only invoked conditionally." "$LINENO" 5
119569fi
119570if test -z "${BUILD_PLUGIN_CSV_TRUE}" && test -z "${BUILD_PLUGIN_CSV_FALSE}"; then
119571  as_fn_error $? "conditional \"BUILD_PLUGIN_CSV\" was never defined.
119572Usually this means the macro was only invoked conditionally." "$LINENO" 5
119573fi
119574if test -z "${BUILD_PLUGIN_CURL_TRUE}" && test -z "${BUILD_PLUGIN_CURL_FALSE}"; then
119575  as_fn_error $? "conditional \"BUILD_PLUGIN_CURL\" was never defined.
119576Usually this means the macro was only invoked conditionally." "$LINENO" 5
119577fi
119578if test -z "${BUILD_PLUGIN_CURL_JSON_TRUE}" && test -z "${BUILD_PLUGIN_CURL_JSON_FALSE}"; then
119579  as_fn_error $? "conditional \"BUILD_PLUGIN_CURL_JSON\" was never defined.
119580Usually this means the macro was only invoked conditionally." "$LINENO" 5
119581fi
119582if test -z "${BUILD_PLUGIN_CURL_XML_TRUE}" && test -z "${BUILD_PLUGIN_CURL_XML_FALSE}"; then
119583  as_fn_error $? "conditional \"BUILD_PLUGIN_CURL_XML\" was never defined.
119584Usually this means the macro was only invoked conditionally." "$LINENO" 5
119585fi
119586if test -z "${BUILD_PLUGIN_DBI_TRUE}" && test -z "${BUILD_PLUGIN_DBI_FALSE}"; then
119587  as_fn_error $? "conditional \"BUILD_PLUGIN_DBI\" was never defined.
119588Usually this means the macro was only invoked conditionally." "$LINENO" 5
119589fi
119590if test -z "${BUILD_PLUGIN_DCPMM_TRUE}" && test -z "${BUILD_PLUGIN_DCPMM_FALSE}"; then
119591  as_fn_error $? "conditional \"BUILD_PLUGIN_DCPMM\" was never defined.
119592Usually this means the macro was only invoked conditionally." "$LINENO" 5
119593fi
119594if test -z "${BUILD_PLUGIN_DF_TRUE}" && test -z "${BUILD_PLUGIN_DF_FALSE}"; then
119595  as_fn_error $? "conditional \"BUILD_PLUGIN_DF\" was never defined.
119596Usually this means the macro was only invoked conditionally." "$LINENO" 5
119597fi
119598if test -z "${BUILD_PLUGIN_DISK_TRUE}" && test -z "${BUILD_PLUGIN_DISK_FALSE}"; then
119599  as_fn_error $? "conditional \"BUILD_PLUGIN_DISK\" was never defined.
119600Usually this means the macro was only invoked conditionally." "$LINENO" 5
119601fi
119602if test -z "${BUILD_PLUGIN_DNS_TRUE}" && test -z "${BUILD_PLUGIN_DNS_FALSE}"; then
119603  as_fn_error $? "conditional \"BUILD_PLUGIN_DNS\" was never defined.
119604Usually this means the macro was only invoked conditionally." "$LINENO" 5
119605fi
119606if test -z "${BUILD_PLUGIN_DPDKEVENTS_TRUE}" && test -z "${BUILD_PLUGIN_DPDKEVENTS_FALSE}"; then
119607  as_fn_error $? "conditional \"BUILD_PLUGIN_DPDKEVENTS\" was never defined.
119608Usually this means the macro was only invoked conditionally." "$LINENO" 5
119609fi
119610if test -z "${BUILD_PLUGIN_DPDKSTAT_TRUE}" && test -z "${BUILD_PLUGIN_DPDKSTAT_FALSE}"; then
119611  as_fn_error $? "conditional \"BUILD_PLUGIN_DPDKSTAT\" was never defined.
119612Usually this means the macro was only invoked conditionally." "$LINENO" 5
119613fi
119614if test -z "${BUILD_PLUGIN_DPDK_TELEMETRY_TRUE}" && test -z "${BUILD_PLUGIN_DPDK_TELEMETRY_FALSE}"; then
119615  as_fn_error $? "conditional \"BUILD_PLUGIN_DPDK_TELEMETRY\" was never defined.
119616Usually this means the macro was only invoked conditionally." "$LINENO" 5
119617fi
119618if test -z "${BUILD_PLUGIN_DRBD_TRUE}" && test -z "${BUILD_PLUGIN_DRBD_FALSE}"; then
119619  as_fn_error $? "conditional \"BUILD_PLUGIN_DRBD\" was never defined.
119620Usually this means the macro was only invoked conditionally." "$LINENO" 5
119621fi
119622if test -z "${BUILD_PLUGIN_EMAIL_TRUE}" && test -z "${BUILD_PLUGIN_EMAIL_FALSE}"; then
119623  as_fn_error $? "conditional \"BUILD_PLUGIN_EMAIL\" was never defined.
119624Usually this means the macro was only invoked conditionally." "$LINENO" 5
119625fi
119626if test -z "${BUILD_PLUGIN_ENTROPY_TRUE}" && test -z "${BUILD_PLUGIN_ENTROPY_FALSE}"; then
119627  as_fn_error $? "conditional \"BUILD_PLUGIN_ENTROPY\" was never defined.
119628Usually this means the macro was only invoked conditionally." "$LINENO" 5
119629fi
119630if test -z "${BUILD_PLUGIN_ETHSTAT_TRUE}" && test -z "${BUILD_PLUGIN_ETHSTAT_FALSE}"; then
119631  as_fn_error $? "conditional \"BUILD_PLUGIN_ETHSTAT\" was never defined.
119632Usually this means the macro was only invoked conditionally." "$LINENO" 5
119633fi
119634if test -z "${BUILD_PLUGIN_EXEC_TRUE}" && test -z "${BUILD_PLUGIN_EXEC_FALSE}"; then
119635  as_fn_error $? "conditional \"BUILD_PLUGIN_EXEC\" was never defined.
119636Usually this means the macro was only invoked conditionally." "$LINENO" 5
119637fi
119638if test -z "${BUILD_PLUGIN_FHCOUNT_TRUE}" && test -z "${BUILD_PLUGIN_FHCOUNT_FALSE}"; then
119639  as_fn_error $? "conditional \"BUILD_PLUGIN_FHCOUNT\" was never defined.
119640Usually this means the macro was only invoked conditionally." "$LINENO" 5
119641fi
119642if test -z "${BUILD_PLUGIN_FILECOUNT_TRUE}" && test -z "${BUILD_PLUGIN_FILECOUNT_FALSE}"; then
119643  as_fn_error $? "conditional \"BUILD_PLUGIN_FILECOUNT\" was never defined.
119644Usually this means the macro was only invoked conditionally." "$LINENO" 5
119645fi
119646if test -z "${BUILD_PLUGIN_FSCACHE_TRUE}" && test -z "${BUILD_PLUGIN_FSCACHE_FALSE}"; then
119647  as_fn_error $? "conditional \"BUILD_PLUGIN_FSCACHE\" was never defined.
119648Usually this means the macro was only invoked conditionally." "$LINENO" 5
119649fi
119650if test -z "${BUILD_PLUGIN_GMOND_TRUE}" && test -z "${BUILD_PLUGIN_GMOND_FALSE}"; then
119651  as_fn_error $? "conditional \"BUILD_PLUGIN_GMOND\" was never defined.
119652Usually this means the macro was only invoked conditionally." "$LINENO" 5
119653fi
119654if test -z "${BUILD_PLUGIN_GPS_TRUE}" && test -z "${BUILD_PLUGIN_GPS_FALSE}"; then
119655  as_fn_error $? "conditional \"BUILD_PLUGIN_GPS\" was never defined.
119656Usually this means the macro was only invoked conditionally." "$LINENO" 5
119657fi
119658if test -z "${BUILD_PLUGIN_GPU_NVIDIA_TRUE}" && test -z "${BUILD_PLUGIN_GPU_NVIDIA_FALSE}"; then
119659  as_fn_error $? "conditional \"BUILD_PLUGIN_GPU_NVIDIA\" was never defined.
119660Usually this means the macro was only invoked conditionally." "$LINENO" 5
119661fi
119662if test -z "${BUILD_PLUGIN_GRPC_TRUE}" && test -z "${BUILD_PLUGIN_GRPC_FALSE}"; then
119663  as_fn_error $? "conditional \"BUILD_PLUGIN_GRPC\" was never defined.
119664Usually this means the macro was only invoked conditionally." "$LINENO" 5
119665fi
119666if test -z "${BUILD_PLUGIN_HDDTEMP_TRUE}" && test -z "${BUILD_PLUGIN_HDDTEMP_FALSE}"; then
119667  as_fn_error $? "conditional \"BUILD_PLUGIN_HDDTEMP\" was never defined.
119668Usually this means the macro was only invoked conditionally." "$LINENO" 5
119669fi
119670if test -z "${BUILD_PLUGIN_HUGEPAGES_TRUE}" && test -z "${BUILD_PLUGIN_HUGEPAGES_FALSE}"; then
119671  as_fn_error $? "conditional \"BUILD_PLUGIN_HUGEPAGES\" was never defined.
119672Usually this means the macro was only invoked conditionally." "$LINENO" 5
119673fi
119674if test -z "${BUILD_PLUGIN_INFINIBAND_TRUE}" && test -z "${BUILD_PLUGIN_INFINIBAND_FALSE}"; then
119675  as_fn_error $? "conditional \"BUILD_PLUGIN_INFINIBAND\" was never defined.
119676Usually this means the macro was only invoked conditionally." "$LINENO" 5
119677fi
119678if test -z "${BUILD_PLUGIN_INTEL_PMU_TRUE}" && test -z "${BUILD_PLUGIN_INTEL_PMU_FALSE}"; then
119679  as_fn_error $? "conditional \"BUILD_PLUGIN_INTEL_PMU\" was never defined.
119680Usually this means the macro was only invoked conditionally." "$LINENO" 5
119681fi
119682if test -z "${BUILD_PLUGIN_INTEL_RDT_TRUE}" && test -z "${BUILD_PLUGIN_INTEL_RDT_FALSE}"; then
119683  as_fn_error $? "conditional \"BUILD_PLUGIN_INTEL_RDT\" was never defined.
119684Usually this means the macro was only invoked conditionally." "$LINENO" 5
119685fi
119686if test -z "${BUILD_PLUGIN_INTERFACE_TRUE}" && test -z "${BUILD_PLUGIN_INTERFACE_FALSE}"; then
119687  as_fn_error $? "conditional \"BUILD_PLUGIN_INTERFACE\" was never defined.
119688Usually this means the macro was only invoked conditionally." "$LINENO" 5
119689fi
119690if test -z "${BUILD_PLUGIN_IPC_TRUE}" && test -z "${BUILD_PLUGIN_IPC_FALSE}"; then
119691  as_fn_error $? "conditional \"BUILD_PLUGIN_IPC\" was never defined.
119692Usually this means the macro was only invoked conditionally." "$LINENO" 5
119693fi
119694if test -z "${BUILD_PLUGIN_IPMI_TRUE}" && test -z "${BUILD_PLUGIN_IPMI_FALSE}"; then
119695  as_fn_error $? "conditional \"BUILD_PLUGIN_IPMI\" was never defined.
119696Usually this means the macro was only invoked conditionally." "$LINENO" 5
119697fi
119698if test -z "${BUILD_PLUGIN_IPTABLES_TRUE}" && test -z "${BUILD_PLUGIN_IPTABLES_FALSE}"; then
119699  as_fn_error $? "conditional \"BUILD_PLUGIN_IPTABLES\" was never defined.
119700Usually this means the macro was only invoked conditionally." "$LINENO" 5
119701fi
119702if test -z "${BUILD_PLUGIN_IPSTATS_TRUE}" && test -z "${BUILD_PLUGIN_IPSTATS_FALSE}"; then
119703  as_fn_error $? "conditional \"BUILD_PLUGIN_IPSTATS\" was never defined.
119704Usually this means the macro was only invoked conditionally." "$LINENO" 5
119705fi
119706if test -z "${BUILD_PLUGIN_IPVS_TRUE}" && test -z "${BUILD_PLUGIN_IPVS_FALSE}"; then
119707  as_fn_error $? "conditional \"BUILD_PLUGIN_IPVS\" was never defined.
119708Usually this means the macro was only invoked conditionally." "$LINENO" 5
119709fi
119710if test -z "${BUILD_PLUGIN_IRQ_TRUE}" && test -z "${BUILD_PLUGIN_IRQ_FALSE}"; then
119711  as_fn_error $? "conditional \"BUILD_PLUGIN_IRQ\" was never defined.
119712Usually this means the macro was only invoked conditionally." "$LINENO" 5
119713fi
119714if test -z "${BUILD_PLUGIN_JAVA_TRUE}" && test -z "${BUILD_PLUGIN_JAVA_FALSE}"; then
119715  as_fn_error $? "conditional \"BUILD_PLUGIN_JAVA\" was never defined.
119716Usually this means the macro was only invoked conditionally." "$LINENO" 5
119717fi
119718if test -z "${BUILD_PLUGIN_LOAD_TRUE}" && test -z "${BUILD_PLUGIN_LOAD_FALSE}"; then
119719  as_fn_error $? "conditional \"BUILD_PLUGIN_LOAD\" was never defined.
119720Usually this means the macro was only invoked conditionally." "$LINENO" 5
119721fi
119722if test -z "${BUILD_PLUGIN_LOG_LOGSTASH_TRUE}" && test -z "${BUILD_PLUGIN_LOG_LOGSTASH_FALSE}"; then
119723  as_fn_error $? "conditional \"BUILD_PLUGIN_LOG_LOGSTASH\" was never defined.
119724Usually this means the macro was only invoked conditionally." "$LINENO" 5
119725fi
119726if test -z "${BUILD_PLUGIN_LOGFILE_TRUE}" && test -z "${BUILD_PLUGIN_LOGFILE_FALSE}"; then
119727  as_fn_error $? "conditional \"BUILD_PLUGIN_LOGFILE\" was never defined.
119728Usually this means the macro was only invoked conditionally." "$LINENO" 5
119729fi
119730if test -z "${BUILD_PLUGIN_LOGPARSER_TRUE}" && test -z "${BUILD_PLUGIN_LOGPARSER_FALSE}"; then
119731  as_fn_error $? "conditional \"BUILD_PLUGIN_LOGPARSER\" was never defined.
119732Usually this means the macro was only invoked conditionally." "$LINENO" 5
119733fi
119734if test -z "${BUILD_PLUGIN_LPAR_TRUE}" && test -z "${BUILD_PLUGIN_LPAR_FALSE}"; then
119735  as_fn_error $? "conditional \"BUILD_PLUGIN_LPAR\" was never defined.
119736Usually this means the macro was only invoked conditionally." "$LINENO" 5
119737fi
119738if test -z "${BUILD_PLUGIN_LUA_TRUE}" && test -z "${BUILD_PLUGIN_LUA_FALSE}"; then
119739  as_fn_error $? "conditional \"BUILD_PLUGIN_LUA\" was never defined.
119740Usually this means the macro was only invoked conditionally." "$LINENO" 5
119741fi
119742if test -z "${BUILD_PLUGIN_MADWIFI_TRUE}" && test -z "${BUILD_PLUGIN_MADWIFI_FALSE}"; then
119743  as_fn_error $? "conditional \"BUILD_PLUGIN_MADWIFI\" was never defined.
119744Usually this means the macro was only invoked conditionally." "$LINENO" 5
119745fi
119746if test -z "${BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE}" && test -z "${BUILD_PLUGIN_MATCH_EMPTY_COUNTER_FALSE}"; then
119747  as_fn_error $? "conditional \"BUILD_PLUGIN_MATCH_EMPTY_COUNTER\" was never defined.
119748Usually this means the macro was only invoked conditionally." "$LINENO" 5
119749fi
119750if test -z "${BUILD_PLUGIN_MATCH_HASHED_TRUE}" && test -z "${BUILD_PLUGIN_MATCH_HASHED_FALSE}"; then
119751  as_fn_error $? "conditional \"BUILD_PLUGIN_MATCH_HASHED\" was never defined.
119752Usually this means the macro was only invoked conditionally." "$LINENO" 5
119753fi
119754if test -z "${BUILD_PLUGIN_MATCH_REGEX_TRUE}" && test -z "${BUILD_PLUGIN_MATCH_REGEX_FALSE}"; then
119755  as_fn_error $? "conditional \"BUILD_PLUGIN_MATCH_REGEX\" was never defined.
119756Usually this means the macro was only invoked conditionally." "$LINENO" 5
119757fi
119758if test -z "${BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE}" && test -z "${BUILD_PLUGIN_MATCH_TIMEDIFF_FALSE}"; then
119759  as_fn_error $? "conditional \"BUILD_PLUGIN_MATCH_TIMEDIFF\" was never defined.
119760Usually this means the macro was only invoked conditionally." "$LINENO" 5
119761fi
119762if test -z "${BUILD_PLUGIN_MATCH_VALUE_TRUE}" && test -z "${BUILD_PLUGIN_MATCH_VALUE_FALSE}"; then
119763  as_fn_error $? "conditional \"BUILD_PLUGIN_MATCH_VALUE\" was never defined.
119764Usually this means the macro was only invoked conditionally." "$LINENO" 5
119765fi
119766if test -z "${BUILD_PLUGIN_MBMON_TRUE}" && test -z "${BUILD_PLUGIN_MBMON_FALSE}"; then
119767  as_fn_error $? "conditional \"BUILD_PLUGIN_MBMON\" was never defined.
119768Usually this means the macro was only invoked conditionally." "$LINENO" 5
119769fi
119770if test -z "${BUILD_PLUGIN_MCELOG_TRUE}" && test -z "${BUILD_PLUGIN_MCELOG_FALSE}"; then
119771  as_fn_error $? "conditional \"BUILD_PLUGIN_MCELOG\" was never defined.
119772Usually this means the macro was only invoked conditionally." "$LINENO" 5
119773fi
119774if test -z "${BUILD_PLUGIN_MD_TRUE}" && test -z "${BUILD_PLUGIN_MD_FALSE}"; then
119775  as_fn_error $? "conditional \"BUILD_PLUGIN_MD\" was never defined.
119776Usually this means the macro was only invoked conditionally." "$LINENO" 5
119777fi
119778if test -z "${BUILD_PLUGIN_MDEVENTS_TRUE}" && test -z "${BUILD_PLUGIN_MDEVENTS_FALSE}"; then
119779  as_fn_error $? "conditional \"BUILD_PLUGIN_MDEVENTS\" was never defined.
119780Usually this means the macro was only invoked conditionally." "$LINENO" 5
119781fi
119782if test -z "${BUILD_PLUGIN_MEMCACHEC_TRUE}" && test -z "${BUILD_PLUGIN_MEMCACHEC_FALSE}"; then
119783  as_fn_error $? "conditional \"BUILD_PLUGIN_MEMCACHEC\" was never defined.
119784Usually this means the macro was only invoked conditionally." "$LINENO" 5
119785fi
119786if test -z "${BUILD_PLUGIN_MEMCACHED_TRUE}" && test -z "${BUILD_PLUGIN_MEMCACHED_FALSE}"; then
119787  as_fn_error $? "conditional \"BUILD_PLUGIN_MEMCACHED\" was never defined.
119788Usually this means the macro was only invoked conditionally." "$LINENO" 5
119789fi
119790if test -z "${BUILD_PLUGIN_MEMORY_TRUE}" && test -z "${BUILD_PLUGIN_MEMORY_FALSE}"; then
119791  as_fn_error $? "conditional \"BUILD_PLUGIN_MEMORY\" was never defined.
119792Usually this means the macro was only invoked conditionally." "$LINENO" 5
119793fi
119794if test -z "${BUILD_PLUGIN_MIC_TRUE}" && test -z "${BUILD_PLUGIN_MIC_FALSE}"; then
119795  as_fn_error $? "conditional \"BUILD_PLUGIN_MIC\" was never defined.
119796Usually this means the macro was only invoked conditionally." "$LINENO" 5
119797fi
119798if test -z "${BUILD_PLUGIN_MODBUS_TRUE}" && test -z "${BUILD_PLUGIN_MODBUS_FALSE}"; then
119799  as_fn_error $? "conditional \"BUILD_PLUGIN_MODBUS\" was never defined.
119800Usually this means the macro was only invoked conditionally." "$LINENO" 5
119801fi
119802if test -z "${BUILD_PLUGIN_MQTT_TRUE}" && test -z "${BUILD_PLUGIN_MQTT_FALSE}"; then
119803  as_fn_error $? "conditional \"BUILD_PLUGIN_MQTT\" was never defined.
119804Usually this means the macro was only invoked conditionally." "$LINENO" 5
119805fi
119806if test -z "${BUILD_PLUGIN_MULTIMETER_TRUE}" && test -z "${BUILD_PLUGIN_MULTIMETER_FALSE}"; then
119807  as_fn_error $? "conditional \"BUILD_PLUGIN_MULTIMETER\" was never defined.
119808Usually this means the macro was only invoked conditionally." "$LINENO" 5
119809fi
119810if test -z "${BUILD_PLUGIN_MYSQL_TRUE}" && test -z "${BUILD_PLUGIN_MYSQL_FALSE}"; then
119811  as_fn_error $? "conditional \"BUILD_PLUGIN_MYSQL\" was never defined.
119812Usually this means the macro was only invoked conditionally." "$LINENO" 5
119813fi
119814if test -z "${BUILD_PLUGIN_NETAPP_TRUE}" && test -z "${BUILD_PLUGIN_NETAPP_FALSE}"; then
119815  as_fn_error $? "conditional \"BUILD_PLUGIN_NETAPP\" was never defined.
119816Usually this means the macro was only invoked conditionally." "$LINENO" 5
119817fi
119818if test -z "${BUILD_PLUGIN_NETLINK_TRUE}" && test -z "${BUILD_PLUGIN_NETLINK_FALSE}"; then
119819  as_fn_error $? "conditional \"BUILD_PLUGIN_NETLINK\" was never defined.
119820Usually this means the macro was only invoked conditionally." "$LINENO" 5
119821fi
119822if test -z "${BUILD_PLUGIN_NETSTAT_UDP_TRUE}" && test -z "${BUILD_PLUGIN_NETSTAT_UDP_FALSE}"; then
119823  as_fn_error $? "conditional \"BUILD_PLUGIN_NETSTAT_UDP\" was never defined.
119824Usually this means the macro was only invoked conditionally." "$LINENO" 5
119825fi
119826if test -z "${BUILD_PLUGIN_NETWORK_TRUE}" && test -z "${BUILD_PLUGIN_NETWORK_FALSE}"; then
119827  as_fn_error $? "conditional \"BUILD_PLUGIN_NETWORK\" was never defined.
119828Usually this means the macro was only invoked conditionally." "$LINENO" 5
119829fi
119830if test -z "${BUILD_PLUGIN_NFS_TRUE}" && test -z "${BUILD_PLUGIN_NFS_FALSE}"; then
119831  as_fn_error $? "conditional \"BUILD_PLUGIN_NFS\" was never defined.
119832Usually this means the macro was only invoked conditionally." "$LINENO" 5
119833fi
119834if test -z "${BUILD_PLUGIN_NGINX_TRUE}" && test -z "${BUILD_PLUGIN_NGINX_FALSE}"; then
119835  as_fn_error $? "conditional \"BUILD_PLUGIN_NGINX\" was never defined.
119836Usually this means the macro was only invoked conditionally." "$LINENO" 5
119837fi
119838if test -z "${BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE}" && test -z "${BUILD_PLUGIN_NOTIFY_DESKTOP_FALSE}"; then
119839  as_fn_error $? "conditional \"BUILD_PLUGIN_NOTIFY_DESKTOP\" was never defined.
119840Usually this means the macro was only invoked conditionally." "$LINENO" 5
119841fi
119842if test -z "${BUILD_PLUGIN_NOTIFY_EMAIL_TRUE}" && test -z "${BUILD_PLUGIN_NOTIFY_EMAIL_FALSE}"; then
119843  as_fn_error $? "conditional \"BUILD_PLUGIN_NOTIFY_EMAIL\" was never defined.
119844Usually this means the macro was only invoked conditionally." "$LINENO" 5
119845fi
119846if test -z "${BUILD_PLUGIN_NOTIFY_NAGIOS_TRUE}" && test -z "${BUILD_PLUGIN_NOTIFY_NAGIOS_FALSE}"; then
119847  as_fn_error $? "conditional \"BUILD_PLUGIN_NOTIFY_NAGIOS\" was never defined.
119848Usually this means the macro was only invoked conditionally." "$LINENO" 5
119849fi
119850if test -z "${BUILD_PLUGIN_NTPD_TRUE}" && test -z "${BUILD_PLUGIN_NTPD_FALSE}"; then
119851  as_fn_error $? "conditional \"BUILD_PLUGIN_NTPD\" was never defined.
119852Usually this means the macro was only invoked conditionally." "$LINENO" 5
119853fi
119854if test -z "${BUILD_PLUGIN_NUMA_TRUE}" && test -z "${BUILD_PLUGIN_NUMA_FALSE}"; then
119855  as_fn_error $? "conditional \"BUILD_PLUGIN_NUMA\" was never defined.
119856Usually this means the macro was only invoked conditionally." "$LINENO" 5
119857fi
119858if test -z "${BUILD_PLUGIN_NUT_TRUE}" && test -z "${BUILD_PLUGIN_NUT_FALSE}"; then
119859  as_fn_error $? "conditional \"BUILD_PLUGIN_NUT\" was never defined.
119860Usually this means the macro was only invoked conditionally." "$LINENO" 5
119861fi
119862if test -z "${BUILD_PLUGIN_OLSRD_TRUE}" && test -z "${BUILD_PLUGIN_OLSRD_FALSE}"; then
119863  as_fn_error $? "conditional \"BUILD_PLUGIN_OLSRD\" was never defined.
119864Usually this means the macro was only invoked conditionally." "$LINENO" 5
119865fi
119866if test -z "${BUILD_PLUGIN_ONEWIRE_TRUE}" && test -z "${BUILD_PLUGIN_ONEWIRE_FALSE}"; then
119867  as_fn_error $? "conditional \"BUILD_PLUGIN_ONEWIRE\" was never defined.
119868Usually this means the macro was only invoked conditionally." "$LINENO" 5
119869fi
119870if test -z "${BUILD_PLUGIN_OPENLDAP_TRUE}" && test -z "${BUILD_PLUGIN_OPENLDAP_FALSE}"; then
119871  as_fn_error $? "conditional \"BUILD_PLUGIN_OPENLDAP\" was never defined.
119872Usually this means the macro was only invoked conditionally." "$LINENO" 5
119873fi
119874if test -z "${BUILD_PLUGIN_OPENVPN_TRUE}" && test -z "${BUILD_PLUGIN_OPENVPN_FALSE}"; then
119875  as_fn_error $? "conditional \"BUILD_PLUGIN_OPENVPN\" was never defined.
119876Usually this means the macro was only invoked conditionally." "$LINENO" 5
119877fi
119878if test -z "${BUILD_PLUGIN_ORACLE_TRUE}" && test -z "${BUILD_PLUGIN_ORACLE_FALSE}"; then
119879  as_fn_error $? "conditional \"BUILD_PLUGIN_ORACLE\" was never defined.
119880Usually this means the macro was only invoked conditionally." "$LINENO" 5
119881fi
119882if test -z "${BUILD_PLUGIN_OVS_EVENTS_TRUE}" && test -z "${BUILD_PLUGIN_OVS_EVENTS_FALSE}"; then
119883  as_fn_error $? "conditional \"BUILD_PLUGIN_OVS_EVENTS\" was never defined.
119884Usually this means the macro was only invoked conditionally." "$LINENO" 5
119885fi
119886if test -z "${BUILD_PLUGIN_OVS_STATS_TRUE}" && test -z "${BUILD_PLUGIN_OVS_STATS_FALSE}"; then
119887  as_fn_error $? "conditional \"BUILD_PLUGIN_OVS_STATS\" was never defined.
119888Usually this means the macro was only invoked conditionally." "$LINENO" 5
119889fi
119890if test -z "${BUILD_PLUGIN_PCIE_ERRORS_TRUE}" && test -z "${BUILD_PLUGIN_PCIE_ERRORS_FALSE}"; then
119891  as_fn_error $? "conditional \"BUILD_PLUGIN_PCIE_ERRORS\" was never defined.
119892Usually this means the macro was only invoked conditionally." "$LINENO" 5
119893fi
119894if test -z "${BUILD_PLUGIN_PERL_TRUE}" && test -z "${BUILD_PLUGIN_PERL_FALSE}"; then
119895  as_fn_error $? "conditional \"BUILD_PLUGIN_PERL\" was never defined.
119896Usually this means the macro was only invoked conditionally." "$LINENO" 5
119897fi
119898if test -z "${BUILD_PLUGIN_PF_TRUE}" && test -z "${BUILD_PLUGIN_PF_FALSE}"; then
119899  as_fn_error $? "conditional \"BUILD_PLUGIN_PF\" was never defined.
119900Usually this means the macro was only invoked conditionally." "$LINENO" 5
119901fi
119902if test -z "${BUILD_PLUGIN_PINBA_TRUE}" && test -z "${BUILD_PLUGIN_PINBA_FALSE}"; then
119903  as_fn_error $? "conditional \"BUILD_PLUGIN_PINBA\" was never defined.
119904Usually this means the macro was only invoked conditionally." "$LINENO" 5
119905fi
119906if test -z "${BUILD_PLUGIN_PING_TRUE}" && test -z "${BUILD_PLUGIN_PING_FALSE}"; then
119907  as_fn_error $? "conditional \"BUILD_PLUGIN_PING\" was never defined.
119908Usually this means the macro was only invoked conditionally." "$LINENO" 5
119909fi
119910if test -z "${BUILD_PLUGIN_POSTGRESQL_TRUE}" && test -z "${BUILD_PLUGIN_POSTGRESQL_FALSE}"; then
119911  as_fn_error $? "conditional \"BUILD_PLUGIN_POSTGRESQL\" was never defined.
119912Usually this means the macro was only invoked conditionally." "$LINENO" 5
119913fi
119914if test -z "${BUILD_PLUGIN_POWERDNS_TRUE}" && test -z "${BUILD_PLUGIN_POWERDNS_FALSE}"; then
119915  as_fn_error $? "conditional \"BUILD_PLUGIN_POWERDNS\" was never defined.
119916Usually this means the macro was only invoked conditionally." "$LINENO" 5
119917fi
119918if test -z "${BUILD_PLUGIN_PROCESSES_TRUE}" && test -z "${BUILD_PLUGIN_PROCESSES_FALSE}"; then
119919  as_fn_error $? "conditional \"BUILD_PLUGIN_PROCESSES\" was never defined.
119920Usually this means the macro was only invoked conditionally." "$LINENO" 5
119921fi
119922if test -z "${BUILD_PLUGIN_PROCEVENT_TRUE}" && test -z "${BUILD_PLUGIN_PROCEVENT_FALSE}"; then
119923  as_fn_error $? "conditional \"BUILD_PLUGIN_PROCEVENT\" was never defined.
119924Usually this means the macro was only invoked conditionally." "$LINENO" 5
119925fi
119926if test -z "${BUILD_PLUGIN_PROTOCOLS_TRUE}" && test -z "${BUILD_PLUGIN_PROTOCOLS_FALSE}"; then
119927  as_fn_error $? "conditional \"BUILD_PLUGIN_PROTOCOLS\" was never defined.
119928Usually this means the macro was only invoked conditionally." "$LINENO" 5
119929fi
119930if test -z "${BUILD_PLUGIN_PYTHON_TRUE}" && test -z "${BUILD_PLUGIN_PYTHON_FALSE}"; then
119931  as_fn_error $? "conditional \"BUILD_PLUGIN_PYTHON\" was never defined.
119932Usually this means the macro was only invoked conditionally." "$LINENO" 5
119933fi
119934if test -z "${BUILD_PLUGIN_REDFISH_TRUE}" && test -z "${BUILD_PLUGIN_REDFISH_FALSE}"; then
119935  as_fn_error $? "conditional \"BUILD_PLUGIN_REDFISH\" was never defined.
119936Usually this means the macro was only invoked conditionally." "$LINENO" 5
119937fi
119938if test -z "${BUILD_PLUGIN_REDIS_TRUE}" && test -z "${BUILD_PLUGIN_REDIS_FALSE}"; then
119939  as_fn_error $? "conditional \"BUILD_PLUGIN_REDIS\" was never defined.
119940Usually this means the macro was only invoked conditionally." "$LINENO" 5
119941fi
119942if test -z "${BUILD_PLUGIN_ROUTEROS_TRUE}" && test -z "${BUILD_PLUGIN_ROUTEROS_FALSE}"; then
119943  as_fn_error $? "conditional \"BUILD_PLUGIN_ROUTEROS\" was never defined.
119944Usually this means the macro was only invoked conditionally." "$LINENO" 5
119945fi
119946if test -z "${BUILD_PLUGIN_RRDCACHED_TRUE}" && test -z "${BUILD_PLUGIN_RRDCACHED_FALSE}"; then
119947  as_fn_error $? "conditional \"BUILD_PLUGIN_RRDCACHED\" was never defined.
119948Usually this means the macro was only invoked conditionally." "$LINENO" 5
119949fi
119950if test -z "${BUILD_PLUGIN_RRDTOOL_TRUE}" && test -z "${BUILD_PLUGIN_RRDTOOL_FALSE}"; then
119951  as_fn_error $? "conditional \"BUILD_PLUGIN_RRDTOOL\" was never defined.
119952Usually this means the macro was only invoked conditionally." "$LINENO" 5
119953fi
119954if test -z "${BUILD_PLUGIN_SENSORS_TRUE}" && test -z "${BUILD_PLUGIN_SENSORS_FALSE}"; then
119955  as_fn_error $? "conditional \"BUILD_PLUGIN_SENSORS\" was never defined.
119956Usually this means the macro was only invoked conditionally." "$LINENO" 5
119957fi
119958if test -z "${BUILD_PLUGIN_SERIAL_TRUE}" && test -z "${BUILD_PLUGIN_SERIAL_FALSE}"; then
119959  as_fn_error $? "conditional \"BUILD_PLUGIN_SERIAL\" was never defined.
119960Usually this means the macro was only invoked conditionally." "$LINENO" 5
119961fi
119962if test -z "${BUILD_PLUGIN_SIGROK_TRUE}" && test -z "${BUILD_PLUGIN_SIGROK_FALSE}"; then
119963  as_fn_error $? "conditional \"BUILD_PLUGIN_SIGROK\" was never defined.
119964Usually this means the macro was only invoked conditionally." "$LINENO" 5
119965fi
119966if test -z "${BUILD_PLUGIN_SLURM_TRUE}" && test -z "${BUILD_PLUGIN_SLURM_FALSE}"; then
119967  as_fn_error $? "conditional \"BUILD_PLUGIN_SLURM\" was never defined.
119968Usually this means the macro was only invoked conditionally." "$LINENO" 5
119969fi
119970if test -z "${BUILD_PLUGIN_SMART_TRUE}" && test -z "${BUILD_PLUGIN_SMART_FALSE}"; then
119971  as_fn_error $? "conditional \"BUILD_PLUGIN_SMART\" was never defined.
119972Usually this means the macro was only invoked conditionally." "$LINENO" 5
119973fi
119974if test -z "${BUILD_PLUGIN_SNMP_TRUE}" && test -z "${BUILD_PLUGIN_SNMP_FALSE}"; then
119975  as_fn_error $? "conditional \"BUILD_PLUGIN_SNMP\" was never defined.
119976Usually this means the macro was only invoked conditionally." "$LINENO" 5
119977fi
119978if test -z "${BUILD_PLUGIN_SNMP_AGENT_TRUE}" && test -z "${BUILD_PLUGIN_SNMP_AGENT_FALSE}"; then
119979  as_fn_error $? "conditional \"BUILD_PLUGIN_SNMP_AGENT\" was never defined.
119980Usually this means the macro was only invoked conditionally." "$LINENO" 5
119981fi
119982if test -z "${BUILD_PLUGIN_STATSD_TRUE}" && test -z "${BUILD_PLUGIN_STATSD_FALSE}"; then
119983  as_fn_error $? "conditional \"BUILD_PLUGIN_STATSD\" was never defined.
119984Usually this means the macro was only invoked conditionally." "$LINENO" 5
119985fi
119986if test -z "${BUILD_PLUGIN_SWAP_TRUE}" && test -z "${BUILD_PLUGIN_SWAP_FALSE}"; then
119987  as_fn_error $? "conditional \"BUILD_PLUGIN_SWAP\" was never defined.
119988Usually this means the macro was only invoked conditionally." "$LINENO" 5
119989fi
119990if test -z "${BUILD_PLUGIN_SYNPROXY_TRUE}" && test -z "${BUILD_PLUGIN_SYNPROXY_FALSE}"; then
119991  as_fn_error $? "conditional \"BUILD_PLUGIN_SYNPROXY\" was never defined.
119992Usually this means the macro was only invoked conditionally." "$LINENO" 5
119993fi
119994if test -z "${BUILD_PLUGIN_SYSEVENT_TRUE}" && test -z "${BUILD_PLUGIN_SYSEVENT_FALSE}"; then
119995  as_fn_error $? "conditional \"BUILD_PLUGIN_SYSEVENT\" was never defined.
119996Usually this means the macro was only invoked conditionally." "$LINENO" 5
119997fi
119998if test -z "${BUILD_PLUGIN_SYSLOG_TRUE}" && test -z "${BUILD_PLUGIN_SYSLOG_FALSE}"; then
119999  as_fn_error $? "conditional \"BUILD_PLUGIN_SYSLOG\" was never defined.
120000Usually this means the macro was only invoked conditionally." "$LINENO" 5
120001fi
120002if test -z "${BUILD_PLUGIN_TABLE_TRUE}" && test -z "${BUILD_PLUGIN_TABLE_FALSE}"; then
120003  as_fn_error $? "conditional \"BUILD_PLUGIN_TABLE\" was never defined.
120004Usually this means the macro was only invoked conditionally." "$LINENO" 5
120005fi
120006if test -z "${BUILD_PLUGIN_TAIL_TRUE}" && test -z "${BUILD_PLUGIN_TAIL_FALSE}"; then
120007  as_fn_error $? "conditional \"BUILD_PLUGIN_TAIL\" was never defined.
120008Usually this means the macro was only invoked conditionally." "$LINENO" 5
120009fi
120010if test -z "${BUILD_PLUGIN_TAIL_CSV_TRUE}" && test -z "${BUILD_PLUGIN_TAIL_CSV_FALSE}"; then
120011  as_fn_error $? "conditional \"BUILD_PLUGIN_TAIL_CSV\" was never defined.
120012Usually this means the macro was only invoked conditionally." "$LINENO" 5
120013fi
120014if test -z "${BUILD_PLUGIN_TAPE_TRUE}" && test -z "${BUILD_PLUGIN_TAPE_FALSE}"; then
120015  as_fn_error $? "conditional \"BUILD_PLUGIN_TAPE\" was never defined.
120016Usually this means the macro was only invoked conditionally." "$LINENO" 5
120017fi
120018if test -z "${BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE}" && test -z "${BUILD_PLUGIN_TARGET_NOTIFICATION_FALSE}"; then
120019  as_fn_error $? "conditional \"BUILD_PLUGIN_TARGET_NOTIFICATION\" was never defined.
120020Usually this means the macro was only invoked conditionally." "$LINENO" 5
120021fi
120022if test -z "${BUILD_PLUGIN_TARGET_REPLACE_TRUE}" && test -z "${BUILD_PLUGIN_TARGET_REPLACE_FALSE}"; then
120023  as_fn_error $? "conditional \"BUILD_PLUGIN_TARGET_REPLACE\" was never defined.
120024Usually this means the macro was only invoked conditionally." "$LINENO" 5
120025fi
120026if test -z "${BUILD_PLUGIN_TARGET_SCALE_TRUE}" && test -z "${BUILD_PLUGIN_TARGET_SCALE_FALSE}"; then
120027  as_fn_error $? "conditional \"BUILD_PLUGIN_TARGET_SCALE\" was never defined.
120028Usually this means the macro was only invoked conditionally." "$LINENO" 5
120029fi
120030if test -z "${BUILD_PLUGIN_TARGET_SET_TRUE}" && test -z "${BUILD_PLUGIN_TARGET_SET_FALSE}"; then
120031  as_fn_error $? "conditional \"BUILD_PLUGIN_TARGET_SET\" was never defined.
120032Usually this means the macro was only invoked conditionally." "$LINENO" 5
120033fi
120034if test -z "${BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE}" && test -z "${BUILD_PLUGIN_TARGET_V5UPGRADE_FALSE}"; then
120035  as_fn_error $? "conditional \"BUILD_PLUGIN_TARGET_V5UPGRADE\" was never defined.
120036Usually this means the macro was only invoked conditionally." "$LINENO" 5
120037fi
120038if test -z "${BUILD_PLUGIN_TCPCONNS_TRUE}" && test -z "${BUILD_PLUGIN_TCPCONNS_FALSE}"; then
120039  as_fn_error $? "conditional \"BUILD_PLUGIN_TCPCONNS\" was never defined.
120040Usually this means the macro was only invoked conditionally." "$LINENO" 5
120041fi
120042if test -z "${BUILD_PLUGIN_TEAMSPEAK2_TRUE}" && test -z "${BUILD_PLUGIN_TEAMSPEAK2_FALSE}"; then
120043  as_fn_error $? "conditional \"BUILD_PLUGIN_TEAMSPEAK2\" was never defined.
120044Usually this means the macro was only invoked conditionally." "$LINENO" 5
120045fi
120046if test -z "${BUILD_PLUGIN_TED_TRUE}" && test -z "${BUILD_PLUGIN_TED_FALSE}"; then
120047  as_fn_error $? "conditional \"BUILD_PLUGIN_TED\" was never defined.
120048Usually this means the macro was only invoked conditionally." "$LINENO" 5
120049fi
120050if test -z "${BUILD_PLUGIN_THERMAL_TRUE}" && test -z "${BUILD_PLUGIN_THERMAL_FALSE}"; then
120051  as_fn_error $? "conditional \"BUILD_PLUGIN_THERMAL\" was never defined.
120052Usually this means the macro was only invoked conditionally." "$LINENO" 5
120053fi
120054if test -z "${BUILD_PLUGIN_THRESHOLD_TRUE}" && test -z "${BUILD_PLUGIN_THRESHOLD_FALSE}"; then
120055  as_fn_error $? "conditional \"BUILD_PLUGIN_THRESHOLD\" was never defined.
120056Usually this means the macro was only invoked conditionally." "$LINENO" 5
120057fi
120058if test -z "${BUILD_PLUGIN_TOKYOTYRANT_TRUE}" && test -z "${BUILD_PLUGIN_TOKYOTYRANT_FALSE}"; then
120059  as_fn_error $? "conditional \"BUILD_PLUGIN_TOKYOTYRANT\" was never defined.
120060Usually this means the macro was only invoked conditionally." "$LINENO" 5
120061fi
120062if test -z "${BUILD_PLUGIN_TURBOSTAT_TRUE}" && test -z "${BUILD_PLUGIN_TURBOSTAT_FALSE}"; then
120063  as_fn_error $? "conditional \"BUILD_PLUGIN_TURBOSTAT\" was never defined.
120064Usually this means the macro was only invoked conditionally." "$LINENO" 5
120065fi
120066if test -z "${BUILD_PLUGIN_UBI_TRUE}" && test -z "${BUILD_PLUGIN_UBI_FALSE}"; then
120067  as_fn_error $? "conditional \"BUILD_PLUGIN_UBI\" was never defined.
120068Usually this means the macro was only invoked conditionally." "$LINENO" 5
120069fi
120070if test -z "${BUILD_PLUGIN_UNIXSOCK_TRUE}" && test -z "${BUILD_PLUGIN_UNIXSOCK_FALSE}"; then
120071  as_fn_error $? "conditional \"BUILD_PLUGIN_UNIXSOCK\" was never defined.
120072Usually this means the macro was only invoked conditionally." "$LINENO" 5
120073fi
120074if test -z "${BUILD_PLUGIN_UPTIME_TRUE}" && test -z "${BUILD_PLUGIN_UPTIME_FALSE}"; then
120075  as_fn_error $? "conditional \"BUILD_PLUGIN_UPTIME\" was never defined.
120076Usually this means the macro was only invoked conditionally." "$LINENO" 5
120077fi
120078if test -z "${BUILD_PLUGIN_USERS_TRUE}" && test -z "${BUILD_PLUGIN_USERS_FALSE}"; then
120079  as_fn_error $? "conditional \"BUILD_PLUGIN_USERS\" was never defined.
120080Usually this means the macro was only invoked conditionally." "$LINENO" 5
120081fi
120082if test -z "${BUILD_PLUGIN_UUID_TRUE}" && test -z "${BUILD_PLUGIN_UUID_FALSE}"; then
120083  as_fn_error $? "conditional \"BUILD_PLUGIN_UUID\" was never defined.
120084Usually this means the macro was only invoked conditionally." "$LINENO" 5
120085fi
120086if test -z "${BUILD_PLUGIN_VARNISH_TRUE}" && test -z "${BUILD_PLUGIN_VARNISH_FALSE}"; then
120087  as_fn_error $? "conditional \"BUILD_PLUGIN_VARNISH\" was never defined.
120088Usually this means the macro was only invoked conditionally." "$LINENO" 5
120089fi
120090if test -z "${BUILD_PLUGIN_VIRT_TRUE}" && test -z "${BUILD_PLUGIN_VIRT_FALSE}"; then
120091  as_fn_error $? "conditional \"BUILD_PLUGIN_VIRT\" was never defined.
120092Usually this means the macro was only invoked conditionally." "$LINENO" 5
120093fi
120094if test -z "${BUILD_PLUGIN_VMEM_TRUE}" && test -z "${BUILD_PLUGIN_VMEM_FALSE}"; then
120095  as_fn_error $? "conditional \"BUILD_PLUGIN_VMEM\" was never defined.
120096Usually this means the macro was only invoked conditionally." "$LINENO" 5
120097fi
120098if test -z "${BUILD_PLUGIN_VSERVER_TRUE}" && test -z "${BUILD_PLUGIN_VSERVER_FALSE}"; then
120099  as_fn_error $? "conditional \"BUILD_PLUGIN_VSERVER\" was never defined.
120100Usually this means the macro was only invoked conditionally." "$LINENO" 5
120101fi
120102if test -z "${BUILD_PLUGIN_WIRELESS_TRUE}" && test -z "${BUILD_PLUGIN_WIRELESS_FALSE}"; then
120103  as_fn_error $? "conditional \"BUILD_PLUGIN_WIRELESS\" was never defined.
120104Usually this means the macro was only invoked conditionally." "$LINENO" 5
120105fi
120106if test -z "${BUILD_PLUGIN_WRITE_GRAPHITE_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_GRAPHITE_FALSE}"; then
120107  as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_GRAPHITE\" was never defined.
120108Usually this means the macro was only invoked conditionally." "$LINENO" 5
120109fi
120110if test -z "${BUILD_PLUGIN_WRITE_HTTP_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_HTTP_FALSE}"; then
120111  as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_HTTP\" was never defined.
120112Usually this means the macro was only invoked conditionally." "$LINENO" 5
120113fi
120114if test -z "${BUILD_PLUGIN_WRITE_INFLUXDB_UDP_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_INFLUXDB_UDP_FALSE}"; then
120115  as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_INFLUXDB_UDP\" was never defined.
120116Usually this means the macro was only invoked conditionally." "$LINENO" 5
120117fi
120118if test -z "${BUILD_PLUGIN_WRITE_KAFKA_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_KAFKA_FALSE}"; then
120119  as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_KAFKA\" was never defined.
120120Usually this means the macro was only invoked conditionally." "$LINENO" 5
120121fi
120122if test -z "${BUILD_PLUGIN_WRITE_LOG_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_LOG_FALSE}"; then
120123  as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_LOG\" was never defined.
120124Usually this means the macro was only invoked conditionally." "$LINENO" 5
120125fi
120126if test -z "${BUILD_PLUGIN_WRITE_MONGODB_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_MONGODB_FALSE}"; then
120127  as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_MONGODB\" was never defined.
120128Usually this means the macro was only invoked conditionally." "$LINENO" 5
120129fi
120130if test -z "${BUILD_PLUGIN_WRITE_PROMETHEUS_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_PROMETHEUS_FALSE}"; then
120131  as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_PROMETHEUS\" was never defined.
120132Usually this means the macro was only invoked conditionally." "$LINENO" 5
120133fi
120134if test -z "${BUILD_PLUGIN_WRITE_REDIS_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_REDIS_FALSE}"; then
120135  as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_REDIS\" was never defined.
120136Usually this means the macro was only invoked conditionally." "$LINENO" 5
120137fi
120138if test -z "${BUILD_PLUGIN_WRITE_RIEMANN_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_RIEMANN_FALSE}"; then
120139  as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_RIEMANN\" was never defined.
120140Usually this means the macro was only invoked conditionally." "$LINENO" 5
120141fi
120142if test -z "${BUILD_PLUGIN_WRITE_SENSU_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_SENSU_FALSE}"; then
120143  as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_SENSU\" was never defined.
120144Usually this means the macro was only invoked conditionally." "$LINENO" 5
120145fi
120146if test -z "${BUILD_PLUGIN_WRITE_STACKDRIVER_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_STACKDRIVER_FALSE}"; then
120147  as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_STACKDRIVER\" was never defined.
120148Usually this means the macro was only invoked conditionally." "$LINENO" 5
120149fi
120150if test -z "${BUILD_PLUGIN_WRITE_SYSLOG_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_SYSLOG_FALSE}"; then
120151  as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_SYSLOG\" was never defined.
120152Usually this means the macro was only invoked conditionally." "$LINENO" 5
120153fi
120154if test -z "${BUILD_PLUGIN_WRITE_TSDB_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_TSDB_FALSE}"; then
120155  as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_TSDB\" was never defined.
120156Usually this means the macro was only invoked conditionally." "$LINENO" 5
120157fi
120158if test -z "${BUILD_PLUGIN_XENCPU_TRUE}" && test -z "${BUILD_PLUGIN_XENCPU_FALSE}"; then
120159  as_fn_error $? "conditional \"BUILD_PLUGIN_XENCPU\" was never defined.
120160Usually this means the macro was only invoked conditionally." "$LINENO" 5
120161fi
120162if test -z "${BUILD_PLUGIN_XMMS_TRUE}" && test -z "${BUILD_PLUGIN_XMMS_FALSE}"; then
120163  as_fn_error $? "conditional \"BUILD_PLUGIN_XMMS\" was never defined.
120164Usually this means the macro was only invoked conditionally." "$LINENO" 5
120165fi
120166if test -z "${BUILD_PLUGIN_ZFS_ARC_TRUE}" && test -z "${BUILD_PLUGIN_ZFS_ARC_FALSE}"; then
120167  as_fn_error $? "conditional \"BUILD_PLUGIN_ZFS_ARC\" was never defined.
120168Usually this means the macro was only invoked conditionally." "$LINENO" 5
120169fi
120170if test -z "${BUILD_PLUGIN_ZONE_TRUE}" && test -z "${BUILD_PLUGIN_ZONE_FALSE}"; then
120171  as_fn_error $? "conditional \"BUILD_PLUGIN_ZONE\" was never defined.
120172Usually this means the macro was only invoked conditionally." "$LINENO" 5
120173fi
120174if test -z "${BUILD_PLUGIN_ZOOKEEPER_TRUE}" && test -z "${BUILD_PLUGIN_ZOOKEEPER_FALSE}"; then
120175  as_fn_error $? "conditional \"BUILD_PLUGIN_ZOOKEEPER\" was never defined.
120176Usually this means the macro was only invoked conditionally." "$LINENO" 5
120177fi
120178
120179: "${CONFIG_STATUS=./config.status}"
120180ac_write_fail=0
120181ac_clean_files_save=$ac_clean_files
120182ac_clean_files="$ac_clean_files $CONFIG_STATUS"
120183{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
120184$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
120185as_write_fail=0
120186cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
120187#! $SHELL
120188# Generated by $as_me.
120189# Run this file to recreate the current configuration.
120190# Compiler output produced by configure, useful for debugging
120191# configure, is in config.log if it exists.
120192
120193debug=false
120194ac_cs_recheck=false
120195ac_cs_silent=false
120196
120197SHELL=\${CONFIG_SHELL-$SHELL}
120198export SHELL
120199_ASEOF
120200cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
120201## -------------------- ##
120202## M4sh Initialization. ##
120203## -------------------- ##
120204
120205# Be more Bourne compatible
120206DUALCASE=1; export DUALCASE # for MKS sh
120207if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
120208  emulate sh
120209  NULLCMD=:
120210  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
120211  # is contrary to our usage.  Disable this feature.
120212  alias -g '${1+"$@"}'='"$@"'
120213  setopt NO_GLOB_SUBST
120214else
120215  case `(set -o) 2>/dev/null` in #(
120216  *posix*) :
120217    set -o posix ;; #(
120218  *) :
120219     ;;
120220esac
120221fi
120222
120223
120224as_nl='
120225'
120226export as_nl
120227# Printing a long string crashes Solaris 7 /usr/bin/printf.
120228as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
120229as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
120230as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
120231# Prefer a ksh shell builtin over an external printf program on Solaris,
120232# but without wasting forks for bash or zsh.
120233if test -z "$BASH_VERSION$ZSH_VERSION" \
120234    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
120235  as_echo='print -r --'
120236  as_echo_n='print -rn --'
120237elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
120238  as_echo='printf %s\n'
120239  as_echo_n='printf %s'
120240else
120241  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
120242    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
120243    as_echo_n='/usr/ucb/echo -n'
120244  else
120245    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
120246    as_echo_n_body='eval
120247      arg=$1;
120248      case $arg in #(
120249      *"$as_nl"*)
120250	expr "X$arg" : "X\\(.*\\)$as_nl";
120251	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
120252      esac;
120253      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
120254    '
120255    export as_echo_n_body
120256    as_echo_n='sh -c $as_echo_n_body as_echo'
120257  fi
120258  export as_echo_body
120259  as_echo='sh -c $as_echo_body as_echo'
120260fi
120261
120262# The user is always right.
120263if test "${PATH_SEPARATOR+set}" != set; then
120264  PATH_SEPARATOR=:
120265  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
120266    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
120267      PATH_SEPARATOR=';'
120268  }
120269fi
120270
120271
120272# IFS
120273# We need space, tab and new line, in precisely that order.  Quoting is
120274# there to prevent editors from complaining about space-tab.
120275# (If _AS_PATH_WALK were called with IFS unset, it would disable word
120276# splitting by setting IFS to empty value.)
120277IFS=" ""	$as_nl"
120278
120279# Find who we are.  Look in the path if we contain no directory separator.
120280as_myself=
120281case $0 in #((
120282  *[\\/]* ) as_myself=$0 ;;
120283  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
120284for as_dir in $PATH
120285do
120286  IFS=$as_save_IFS
120287  test -z "$as_dir" && as_dir=.
120288    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120289  done
120290IFS=$as_save_IFS
120291
120292     ;;
120293esac
120294# We did not find ourselves, most probably we were run as `sh COMMAND'
120295# in which case we are not to be found in the path.
120296if test "x$as_myself" = x; then
120297  as_myself=$0
120298fi
120299if test ! -f "$as_myself"; then
120300  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120301  exit 1
120302fi
120303
120304# Unset variables that we do not need and which cause bugs (e.g. in
120305# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120306# suppresses any "Segmentation fault" message there.  '((' could
120307# trigger a bug in pdksh 5.2.14.
120308for as_var in BASH_ENV ENV MAIL MAILPATH
120309do eval test x\${$as_var+set} = xset \
120310  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120311done
120312PS1='$ '
120313PS2='> '
120314PS4='+ '
120315
120316# NLS nuisances.
120317LC_ALL=C
120318export LC_ALL
120319LANGUAGE=C
120320export LANGUAGE
120321
120322# CDPATH.
120323(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
120324
120325
120326# as_fn_error STATUS ERROR [LINENO LOG_FD]
120327# ----------------------------------------
120328# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
120329# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
120330# script with STATUS, using 1 if that was 0.
120331as_fn_error ()
120332{
120333  as_status=$1; test $as_status -eq 0 && as_status=1
120334  if test "$4"; then
120335    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
120336    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
120337  fi
120338  $as_echo "$as_me: error: $2" >&2
120339  as_fn_exit $as_status
120340} # as_fn_error
120341
120342
120343# as_fn_set_status STATUS
120344# -----------------------
120345# Set $? to STATUS, without forking.
120346as_fn_set_status ()
120347{
120348  return $1
120349} # as_fn_set_status
120350
120351# as_fn_exit STATUS
120352# -----------------
120353# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
120354as_fn_exit ()
120355{
120356  set +e
120357  as_fn_set_status $1
120358  exit $1
120359} # as_fn_exit
120360
120361# as_fn_unset VAR
120362# ---------------
120363# Portably unset VAR.
120364as_fn_unset ()
120365{
120366  { eval $1=; unset $1;}
120367}
120368as_unset=as_fn_unset
120369# as_fn_append VAR VALUE
120370# ----------------------
120371# Append the text in VALUE to the end of the definition contained in VAR. Take
120372# advantage of any shell optimizations that allow amortized linear growth over
120373# repeated appends, instead of the typical quadratic growth present in naive
120374# implementations.
120375if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
120376  eval 'as_fn_append ()
120377  {
120378    eval $1+=\$2
120379  }'
120380else
120381  as_fn_append ()
120382  {
120383    eval $1=\$$1\$2
120384  }
120385fi # as_fn_append
120386
120387# as_fn_arith ARG...
120388# ------------------
120389# Perform arithmetic evaluation on the ARGs, and store the result in the
120390# global $as_val. Take advantage of shells that can avoid forks. The arguments
120391# must be portable across $(()) and expr.
120392if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
120393  eval 'as_fn_arith ()
120394  {
120395    as_val=$(( $* ))
120396  }'
120397else
120398  as_fn_arith ()
120399  {
120400    as_val=`expr "$@" || test $? -eq 1`
120401  }
120402fi # as_fn_arith
120403
120404
120405if expr a : '\(a\)' >/dev/null 2>&1 &&
120406   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120407  as_expr=expr
120408else
120409  as_expr=false
120410fi
120411
120412if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120413  as_basename=basename
120414else
120415  as_basename=false
120416fi
120417
120418if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
120419  as_dirname=dirname
120420else
120421  as_dirname=false
120422fi
120423
120424as_me=`$as_basename -- "$0" ||
120425$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
120426	 X"$0" : 'X\(//\)$' \| \
120427	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
120428$as_echo X/"$0" |
120429    sed '/^.*\/\([^/][^/]*\)\/*$/{
120430	    s//\1/
120431	    q
120432	  }
120433	  /^X\/\(\/\/\)$/{
120434	    s//\1/
120435	    q
120436	  }
120437	  /^X\/\(\/\).*/{
120438	    s//\1/
120439	    q
120440	  }
120441	  s/.*/./; q'`
120442
120443# Avoid depending upon Character Ranges.
120444as_cr_letters='abcdefghijklmnopqrstuvwxyz'
120445as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
120446as_cr_Letters=$as_cr_letters$as_cr_LETTERS
120447as_cr_digits='0123456789'
120448as_cr_alnum=$as_cr_Letters$as_cr_digits
120449
120450ECHO_C= ECHO_N= ECHO_T=
120451case `echo -n x` in #(((((
120452-n*)
120453  case `echo 'xy\c'` in
120454  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
120455  xy)  ECHO_C='\c';;
120456  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
120457       ECHO_T='	';;
120458  esac;;
120459*)
120460  ECHO_N='-n';;
120461esac
120462
120463rm -f conf$$ conf$$.exe conf$$.file
120464if test -d conf$$.dir; then
120465  rm -f conf$$.dir/conf$$.file
120466else
120467  rm -f conf$$.dir
120468  mkdir conf$$.dir 2>/dev/null
120469fi
120470if (echo >conf$$.file) 2>/dev/null; then
120471  if ln -s conf$$.file conf$$ 2>/dev/null; then
120472    as_ln_s='ln -s'
120473    # ... but there are two gotchas:
120474    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
120475    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
120476    # In both cases, we have to default to `cp -pR'.
120477    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
120478      as_ln_s='cp -pR'
120479  elif ln conf$$.file conf$$ 2>/dev/null; then
120480    as_ln_s=ln
120481  else
120482    as_ln_s='cp -pR'
120483  fi
120484else
120485  as_ln_s='cp -pR'
120486fi
120487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
120488rmdir conf$$.dir 2>/dev/null
120489
120490
120491# as_fn_mkdir_p
120492# -------------
120493# Create "$as_dir" as a directory, including parents if necessary.
120494as_fn_mkdir_p ()
120495{
120496
120497  case $as_dir in #(
120498  -*) as_dir=./$as_dir;;
120499  esac
120500  test -d "$as_dir" || eval $as_mkdir_p || {
120501    as_dirs=
120502    while :; do
120503      case $as_dir in #(
120504      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
120505      *) as_qdir=$as_dir;;
120506      esac
120507      as_dirs="'$as_qdir' $as_dirs"
120508      as_dir=`$as_dirname -- "$as_dir" ||
120509$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
120510	 X"$as_dir" : 'X\(//\)[^/]' \| \
120511	 X"$as_dir" : 'X\(//\)$' \| \
120512	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
120513$as_echo X"$as_dir" |
120514    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
120515	    s//\1/
120516	    q
120517	  }
120518	  /^X\(\/\/\)[^/].*/{
120519	    s//\1/
120520	    q
120521	  }
120522	  /^X\(\/\/\)$/{
120523	    s//\1/
120524	    q
120525	  }
120526	  /^X\(\/\).*/{
120527	    s//\1/
120528	    q
120529	  }
120530	  s/.*/./; q'`
120531      test -d "$as_dir" && break
120532    done
120533    test -z "$as_dirs" || eval "mkdir $as_dirs"
120534  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
120535
120536
120537} # as_fn_mkdir_p
120538if mkdir -p . 2>/dev/null; then
120539  as_mkdir_p='mkdir -p "$as_dir"'
120540else
120541  test -d ./-p && rmdir ./-p
120542  as_mkdir_p=false
120543fi
120544
120545
120546# as_fn_executable_p FILE
120547# -----------------------
120548# Test if FILE is an executable regular file.
120549as_fn_executable_p ()
120550{
120551  test -f "$1" && test -x "$1"
120552} # as_fn_executable_p
120553as_test_x='test -x'
120554as_executable_p=as_fn_executable_p
120555
120556# Sed expression to map a string onto a valid CPP name.
120557as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
120558
120559# Sed expression to map a string onto a valid variable name.
120560as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
120561
120562
120563exec 6>&1
120564## ----------------------------------- ##
120565## Main body of $CONFIG_STATUS script. ##
120566## ----------------------------------- ##
120567_ASEOF
120568test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
120569
120570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
120571# Save the log message, to keep $0 and so on meaningful, and to
120572# report actual input values of CONFIG_FILES etc. instead of their
120573# values after options handling.
120574ac_log="
120575This file was extended by collectd $as_me 5.12.0, which was
120576generated by GNU Autoconf 2.69.  Invocation command line was
120577
120578  CONFIG_FILES    = $CONFIG_FILES
120579  CONFIG_HEADERS  = $CONFIG_HEADERS
120580  CONFIG_LINKS    = $CONFIG_LINKS
120581  CONFIG_COMMANDS = $CONFIG_COMMANDS
120582  $ $0 $@
120583
120584on `(hostname || uname -n) 2>/dev/null | sed 1q`
120585"
120586
120587_ACEOF
120588
120589case $ac_config_files in *"
120590"*) set x $ac_config_files; shift; ac_config_files=$*;;
120591esac
120592
120593case $ac_config_headers in *"
120594"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
120595esac
120596
120597
120598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
120599# Files that config.status was made for.
120600config_files="$ac_config_files"
120601config_headers="$ac_config_headers"
120602config_commands="$ac_config_commands"
120603
120604_ACEOF
120605
120606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
120607ac_cs_usage="\
120608\`$as_me' instantiates files and other configuration actions
120609from templates according to the current configuration.  Unless the files
120610and actions are specified as TAGs, all are instantiated by default.
120611
120612Usage: $0 [OPTION]... [TAG]...
120613
120614  -h, --help       print this help, then exit
120615  -V, --version    print version number and configuration settings, then exit
120616      --config     print configuration, then exit
120617  -q, --quiet, --silent
120618                   do not print progress messages
120619  -d, --debug      don't remove temporary files
120620      --recheck    update $as_me by reconfiguring in the same conditions
120621      --file=FILE[:TEMPLATE]
120622                   instantiate the configuration file FILE
120623      --header=FILE[:TEMPLATE]
120624                   instantiate the configuration header FILE
120625
120626Configuration files:
120627$config_files
120628
120629Configuration headers:
120630$config_headers
120631
120632Configuration commands:
120633$config_commands
120634
120635Report bugs to the package provider."
120636
120637_ACEOF
120638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
120639ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
120640ac_cs_version="\\
120641collectd config.status 5.12.0
120642configured by $0, generated by GNU Autoconf 2.69,
120643  with options \\"\$ac_cs_config\\"
120644
120645Copyright (C) 2012 Free Software Foundation, Inc.
120646This config.status script is free software; the Free Software Foundation
120647gives unlimited permission to copy, distribute and modify it."
120648
120649ac_pwd='$ac_pwd'
120650srcdir='$srcdir'
120651INSTALL='$INSTALL'
120652MKDIR_P='$MKDIR_P'
120653AWK='$AWK'
120654test -n "\$AWK" || AWK=awk
120655_ACEOF
120656
120657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
120658# The default lists apply if the user does not specify any file.
120659ac_need_defaults=:
120660while test $# != 0
120661do
120662  case $1 in
120663  --*=?*)
120664    ac_option=`expr "X$1" : 'X\([^=]*\)='`
120665    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
120666    ac_shift=:
120667    ;;
120668  --*=)
120669    ac_option=`expr "X$1" : 'X\([^=]*\)='`
120670    ac_optarg=
120671    ac_shift=:
120672    ;;
120673  *)
120674    ac_option=$1
120675    ac_optarg=$2
120676    ac_shift=shift
120677    ;;
120678  esac
120679
120680  case $ac_option in
120681  # Handling of the options.
120682  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
120683    ac_cs_recheck=: ;;
120684  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
120685    $as_echo "$ac_cs_version"; exit ;;
120686  --config | --confi | --conf | --con | --co | --c )
120687    $as_echo "$ac_cs_config"; exit ;;
120688  --debug | --debu | --deb | --de | --d | -d )
120689    debug=: ;;
120690  --file | --fil | --fi | --f )
120691    $ac_shift
120692    case $ac_optarg in
120693    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
120694    '') as_fn_error $? "missing file argument" ;;
120695    esac
120696    as_fn_append CONFIG_FILES " '$ac_optarg'"
120697    ac_need_defaults=false;;
120698  --header | --heade | --head | --hea )
120699    $ac_shift
120700    case $ac_optarg in
120701    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
120702    esac
120703    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
120704    ac_need_defaults=false;;
120705  --he | --h)
120706    # Conflict between --help and --header
120707    as_fn_error $? "ambiguous option: \`$1'
120708Try \`$0 --help' for more information.";;
120709  --help | --hel | -h )
120710    $as_echo "$ac_cs_usage"; exit ;;
120711  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
120712  | -silent | --silent | --silen | --sile | --sil | --si | --s)
120713    ac_cs_silent=: ;;
120714
120715  # This is an error.
120716  -*) as_fn_error $? "unrecognized option: \`$1'
120717Try \`$0 --help' for more information." ;;
120718
120719  *) as_fn_append ac_config_targets " $1"
120720     ac_need_defaults=false ;;
120721
120722  esac
120723  shift
120724done
120725
120726ac_configure_extra_args=
120727
120728if $ac_cs_silent; then
120729  exec 6>/dev/null
120730  ac_configure_extra_args="$ac_configure_extra_args --silent"
120731fi
120732
120733_ACEOF
120734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
120735if \$ac_cs_recheck; then
120736  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
120737  shift
120738  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
120739  CONFIG_SHELL='$SHELL'
120740  export CONFIG_SHELL
120741  exec "\$@"
120742fi
120743
120744_ACEOF
120745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
120746exec 5>>config.log
120747{
120748  echo
120749  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
120750## Running $as_me. ##
120751_ASBOX
120752  $as_echo "$ac_log"
120753} >&5
120754
120755_ACEOF
120756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
120757#
120758# INIT-COMMANDS
120759#
120760
120761
120762# The HP-UX ksh and POSIX shell print the target directory to stdout
120763# if CDPATH is set.
120764(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
120765
120766sed_quote_subst='$sed_quote_subst'
120767double_quote_subst='$double_quote_subst'
120768delay_variable_subst='$delay_variable_subst'
120769macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
120770macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
120771enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
120772enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
120773pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
120774enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
120775shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
120776SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
120777ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
120778PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
120779host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
120780host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
120781host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
120782build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
120783build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
120784build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
120785SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
120786Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
120787GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
120788EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
120789FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
120790LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
120791NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
120792LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
120793max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
120794ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
120795exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
120796lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
120797lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
120798lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
120799lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
120800lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
120801reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
120802reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
120803OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
120804deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
120805file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
120806file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
120807want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
120808DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
120809sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
120810AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
120811AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
120812archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
120813STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
120814RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
120815old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
120816old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
120817old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
120818lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
120819CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
120820CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
120821compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
120822GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
120823lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
120824lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
120825lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
120826lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
120827lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
120828lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
120829nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
120830lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
120831lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
120832objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
120833MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
120834lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
120835lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
120836lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
120837lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
120838lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
120839need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
120840MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
120841DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
120842NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
120843LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
120844OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
120845OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
120846libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
120847shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
120848extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
120849archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
120850enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
120851export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
120852whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
120853compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
120854old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
120855old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
120856archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
120857archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
120858module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
120859module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
120860with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
120861allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
120862no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
120863hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
120864hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
120865hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
120866hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
120867hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
120868hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
120869hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
120870inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
120871link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
120872always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
120873export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
120874exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
120875include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
120876prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
120877postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
120878file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
120879variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
120880need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
120881need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
120882version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
120883runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
120884shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
120885shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
120886libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
120887library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
120888soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
120889install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
120890postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
120891postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
120892finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
120893finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
120894hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
120895sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
120896configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
120897configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
120898hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
120899enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
120900enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
120901enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
120902old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
120903striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
120904compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
120905predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
120906postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
120907predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
120908postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
120909compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
120910LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
120911reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
120912reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
120913old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
120914compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
120915GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
120916lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
120917lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
120918lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
120919lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
120920lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
120921archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
120922enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
120923export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
120924whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
120925compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
120926old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
120927old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
120928archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
120929archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
120930module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
120931module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
120932with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
120933allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
120934no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
120935hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
120936hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
120937hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
120938hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
120939hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
120940hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
120941hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
120942inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
120943link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
120944always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
120945export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
120946exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
120947include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
120948prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
120949postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
120950file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
120951hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
120952compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
120953predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
120954postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
120955predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
120956postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
120957compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
120958
120959LTCC='$LTCC'
120960LTCFLAGS='$LTCFLAGS'
120961compiler='$compiler_DEFAULT'
120962
120963# A function that is used when there is no print builtin or printf.
120964func_fallback_echo ()
120965{
120966  eval 'cat <<_LTECHO_EOF
120967\$1
120968_LTECHO_EOF'
120969}
120970
120971# Quote evaled strings.
120972for var in SHELL \
120973ECHO \
120974PATH_SEPARATOR \
120975SED \
120976GREP \
120977EGREP \
120978FGREP \
120979LD \
120980NM \
120981LN_S \
120982lt_SP2NL \
120983lt_NL2SP \
120984reload_flag \
120985OBJDUMP \
120986deplibs_check_method \
120987file_magic_cmd \
120988file_magic_glob \
120989want_nocaseglob \
120990DLLTOOL \
120991sharedlib_from_linklib_cmd \
120992AR \
120993AR_FLAGS \
120994archiver_list_spec \
120995STRIP \
120996RANLIB \
120997CC \
120998CFLAGS \
120999compiler \
121000lt_cv_sys_global_symbol_pipe \
121001lt_cv_sys_global_symbol_to_cdecl \
121002lt_cv_sys_global_symbol_to_import \
121003lt_cv_sys_global_symbol_to_c_name_address \
121004lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
121005lt_cv_nm_interface \
121006nm_file_list_spec \
121007lt_cv_truncate_bin \
121008lt_prog_compiler_no_builtin_flag \
121009lt_prog_compiler_pic \
121010lt_prog_compiler_wl \
121011lt_prog_compiler_static \
121012lt_cv_prog_compiler_c_o \
121013need_locks \
121014MANIFEST_TOOL \
121015DSYMUTIL \
121016NMEDIT \
121017LIPO \
121018OTOOL \
121019OTOOL64 \
121020shrext_cmds \
121021export_dynamic_flag_spec \
121022whole_archive_flag_spec \
121023compiler_needs_object \
121024with_gnu_ld \
121025allow_undefined_flag \
121026no_undefined_flag \
121027hardcode_libdir_flag_spec \
121028hardcode_libdir_separator \
121029exclude_expsyms \
121030include_expsyms \
121031file_list_spec \
121032variables_saved_for_relink \
121033libname_spec \
121034library_names_spec \
121035soname_spec \
121036install_override_mode \
121037finish_eval \
121038old_striplib \
121039striplib \
121040compiler_lib_search_dirs \
121041predep_objects \
121042postdep_objects \
121043predeps \
121044postdeps \
121045compiler_lib_search_path \
121046LD_CXX \
121047reload_flag_CXX \
121048compiler_CXX \
121049lt_prog_compiler_no_builtin_flag_CXX \
121050lt_prog_compiler_pic_CXX \
121051lt_prog_compiler_wl_CXX \
121052lt_prog_compiler_static_CXX \
121053lt_cv_prog_compiler_c_o_CXX \
121054export_dynamic_flag_spec_CXX \
121055whole_archive_flag_spec_CXX \
121056compiler_needs_object_CXX \
121057with_gnu_ld_CXX \
121058allow_undefined_flag_CXX \
121059no_undefined_flag_CXX \
121060hardcode_libdir_flag_spec_CXX \
121061hardcode_libdir_separator_CXX \
121062exclude_expsyms_CXX \
121063include_expsyms_CXX \
121064file_list_spec_CXX \
121065compiler_lib_search_dirs_CXX \
121066predep_objects_CXX \
121067postdep_objects_CXX \
121068predeps_CXX \
121069postdeps_CXX \
121070compiler_lib_search_path_CXX; do
121071    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
121072    *[\\\\\\\`\\"\\\$]*)
121073      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
121074      ;;
121075    *)
121076      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
121077      ;;
121078    esac
121079done
121080
121081# Double-quote double-evaled strings.
121082for var in reload_cmds \
121083old_postinstall_cmds \
121084old_postuninstall_cmds \
121085old_archive_cmds \
121086extract_expsyms_cmds \
121087old_archive_from_new_cmds \
121088old_archive_from_expsyms_cmds \
121089archive_cmds \
121090archive_expsym_cmds \
121091module_cmds \
121092module_expsym_cmds \
121093export_symbols_cmds \
121094prelink_cmds \
121095postlink_cmds \
121096postinstall_cmds \
121097postuninstall_cmds \
121098finish_cmds \
121099sys_lib_search_path_spec \
121100configure_time_dlsearch_path \
121101configure_time_lt_sys_library_path \
121102reload_cmds_CXX \
121103old_archive_cmds_CXX \
121104old_archive_from_new_cmds_CXX \
121105old_archive_from_expsyms_cmds_CXX \
121106archive_cmds_CXX \
121107archive_expsym_cmds_CXX \
121108module_cmds_CXX \
121109module_expsym_cmds_CXX \
121110export_symbols_cmds_CXX \
121111prelink_cmds_CXX \
121112postlink_cmds_CXX; do
121113    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
121114    *[\\\\\\\`\\"\\\$]*)
121115      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
121116      ;;
121117    *)
121118      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
121119      ;;
121120    esac
121121done
121122
121123ac_aux_dir='$ac_aux_dir'
121124
121125# See if we are running on zsh, and set the options that allow our
121126# commands through without removal of \ escapes INIT.
121127if test -n "\${ZSH_VERSION+set}"; then
121128   setopt NO_GLOB_SUBST
121129fi
121130
121131
121132    PACKAGE='$PACKAGE'
121133    VERSION='$VERSION'
121134    RM='$RM'
121135    ofile='$ofile'
121136
121137
121138
121139
121140
121141AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
121142
121143_ACEOF
121144
121145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
121146
121147# Handling of arguments.
121148for ac_config_target in $ac_config_targets
121149do
121150  case $ac_config_target in
121151    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
121152    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
121153    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
121154    "src/libcollectdclient/collectd/lcc_features.h") CONFIG_FILES="$CONFIG_FILES src/libcollectdclient/collectd/lcc_features.h" ;;
121155    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
121156    "src/collectd.conf") CONFIG_FILES="$CONFIG_FILES src/collectd.conf" ;;
121157    "src/libcollectdclient/libcollectdclient.pc") CONFIG_FILES="$CONFIG_FILES src/libcollectdclient/libcollectdclient.pc" ;;
121158
121159  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
121160  esac
121161done
121162
121163
121164# If the user did not use the arguments to specify the items to instantiate,
121165# then the envvar interface is used.  Set only those that are not.
121166# We use the long form for the default assignment because of an extremely
121167# bizarre bug on SunOS 4.1.3.
121168if $ac_need_defaults; then
121169  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
121170  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
121171  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
121172fi
121173
121174# Have a temporary directory for convenience.  Make it in the build tree
121175# simply because there is no reason against having it here, and in addition,
121176# creating and moving files from /tmp can sometimes cause problems.
121177# Hook for its removal unless debugging.
121178# Note that there is a small window in which the directory will not be cleaned:
121179# after its creation but before its name has been assigned to `$tmp'.
121180$debug ||
121181{
121182  tmp= ac_tmp=
121183  trap 'exit_status=$?
121184  : "${ac_tmp:=$tmp}"
121185  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
121186' 0
121187  trap 'as_fn_exit 1' 1 2 13 15
121188}
121189# Create a (secure) tmp directory for tmp files.
121190
121191{
121192  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
121193  test -d "$tmp"
121194}  ||
121195{
121196  tmp=./conf$$-$RANDOM
121197  (umask 077 && mkdir "$tmp")
121198} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
121199ac_tmp=$tmp
121200
121201# Set up the scripts for CONFIG_FILES section.
121202# No need to generate them if there are no CONFIG_FILES.
121203# This happens for instance with `./config.status config.h'.
121204if test -n "$CONFIG_FILES"; then
121205
121206
121207ac_cr=`echo X | tr X '\015'`
121208# On cygwin, bash can eat \r inside `` if the user requested igncr.
121209# But we know of no other shell where ac_cr would be empty at this
121210# point, so we can use a bashism as a fallback.
121211if test "x$ac_cr" = x; then
121212  eval ac_cr=\$\'\\r\'
121213fi
121214ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
121215if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
121216  ac_cs_awk_cr='\\r'
121217else
121218  ac_cs_awk_cr=$ac_cr
121219fi
121220
121221echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
121222_ACEOF
121223
121224
121225{
121226  echo "cat >conf$$subs.awk <<_ACEOF" &&
121227  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
121228  echo "_ACEOF"
121229} >conf$$subs.sh ||
121230  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
121231ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
121232ac_delim='%!_!# '
121233for ac_last_try in false false false false false :; do
121234  . ./conf$$subs.sh ||
121235    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
121236
121237  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
121238  if test $ac_delim_n = $ac_delim_num; then
121239    break
121240  elif $ac_last_try; then
121241    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
121242  else
121243    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
121244  fi
121245done
121246rm -f conf$$subs.sh
121247
121248cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
121249cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
121250_ACEOF
121251sed -n '
121252h
121253s/^/S["/; s/!.*/"]=/
121254p
121255g
121256s/^[^!]*!//
121257:repl
121258t repl
121259s/'"$ac_delim"'$//
121260t delim
121261:nl
121262h
121263s/\(.\{148\}\)..*/\1/
121264t more1
121265s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
121266p
121267n
121268b repl
121269:more1
121270s/["\\]/\\&/g; s/^/"/; s/$/"\\/
121271p
121272g
121273s/.\{148\}//
121274t nl
121275:delim
121276h
121277s/\(.\{148\}\)..*/\1/
121278t more2
121279s/["\\]/\\&/g; s/^/"/; s/$/"/
121280p
121281b
121282:more2
121283s/["\\]/\\&/g; s/^/"/; s/$/"\\/
121284p
121285g
121286s/.\{148\}//
121287t delim
121288' <conf$$subs.awk | sed '
121289/^[^""]/{
121290  N
121291  s/\n//
121292}
121293' >>$CONFIG_STATUS || ac_write_fail=1
121294rm -f conf$$subs.awk
121295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
121296_ACAWK
121297cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
121298  for (key in S) S_is_set[key] = 1
121299  FS = ""
121300
121301}
121302{
121303  line = $ 0
121304  nfields = split(line, field, "@")
121305  substed = 0
121306  len = length(field[1])
121307  for (i = 2; i < nfields; i++) {
121308    key = field[i]
121309    keylen = length(key)
121310    if (S_is_set[key]) {
121311      value = S[key]
121312      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
121313      len += length(value) + length(field[++i])
121314      substed = 1
121315    } else
121316      len += 1 + keylen
121317  }
121318
121319  print line
121320}
121321
121322_ACAWK
121323_ACEOF
121324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
121325if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
121326  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
121327else
121328  cat
121329fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
121330  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
121331_ACEOF
121332
121333# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
121334# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
121335# trailing colons and then remove the whole line if VPATH becomes empty
121336# (actually we leave an empty line to preserve line numbers).
121337if test "x$srcdir" = x.; then
121338  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
121339h
121340s///
121341s/^/:/
121342s/[	 ]*$/:/
121343s/:\$(srcdir):/:/g
121344s/:\${srcdir}:/:/g
121345s/:@srcdir@:/:/g
121346s/^:*//
121347s/:*$//
121348x
121349s/\(=[	 ]*\).*/\1/
121350G
121351s/\n//
121352s/^[^=]*=[	 ]*$//
121353}'
121354fi
121355
121356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
121357fi # test -n "$CONFIG_FILES"
121358
121359# Set up the scripts for CONFIG_HEADERS section.
121360# No need to generate them if there are no CONFIG_HEADERS.
121361# This happens for instance with `./config.status Makefile'.
121362if test -n "$CONFIG_HEADERS"; then
121363cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
121364BEGIN {
121365_ACEOF
121366
121367# Transform confdefs.h into an awk script `defines.awk', embedded as
121368# here-document in config.status, that substitutes the proper values into
121369# config.h.in to produce config.h.
121370
121371# Create a delimiter string that does not exist in confdefs.h, to ease
121372# handling of long lines.
121373ac_delim='%!_!# '
121374for ac_last_try in false false :; do
121375  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
121376  if test -z "$ac_tt"; then
121377    break
121378  elif $ac_last_try; then
121379    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
121380  else
121381    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
121382  fi
121383done
121384
121385# For the awk script, D is an array of macro values keyed by name,
121386# likewise P contains macro parameters if any.  Preserve backslash
121387# newline sequences.
121388
121389ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
121390sed -n '
121391s/.\{148\}/&'"$ac_delim"'/g
121392t rset
121393:rset
121394s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
121395t def
121396d
121397:def
121398s/\\$//
121399t bsnl
121400s/["\\]/\\&/g
121401s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
121402D["\1"]=" \3"/p
121403s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
121404d
121405:bsnl
121406s/["\\]/\\&/g
121407s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
121408D["\1"]=" \3\\\\\\n"\\/p
121409t cont
121410s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
121411t cont
121412d
121413:cont
121414n
121415s/.\{148\}/&'"$ac_delim"'/g
121416t clear
121417:clear
121418s/\\$//
121419t bsnlc
121420s/["\\]/\\&/g; s/^/"/; s/$/"/p
121421d
121422:bsnlc
121423s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
121424b cont
121425' <confdefs.h | sed '
121426s/'"$ac_delim"'/"\\\
121427"/g' >>$CONFIG_STATUS || ac_write_fail=1
121428
121429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
121430  for (key in D) D_is_set[key] = 1
121431  FS = ""
121432}
121433/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
121434  line = \$ 0
121435  split(line, arg, " ")
121436  if (arg[1] == "#") {
121437    defundef = arg[2]
121438    mac1 = arg[3]
121439  } else {
121440    defundef = substr(arg[1], 2)
121441    mac1 = arg[2]
121442  }
121443  split(mac1, mac2, "(") #)
121444  macro = mac2[1]
121445  prefix = substr(line, 1, index(line, defundef) - 1)
121446  if (D_is_set[macro]) {
121447    # Preserve the white space surrounding the "#".
121448    print prefix "define", macro P[macro] D[macro]
121449    next
121450  } else {
121451    # Replace #undef with comments.  This is necessary, for example,
121452    # in the case of _POSIX_SOURCE, which is predefined and required
121453    # on some systems where configure will not decide to define it.
121454    if (defundef == "undef") {
121455      print "/*", prefix defundef, macro, "*/"
121456      next
121457    }
121458  }
121459}
121460{ print }
121461_ACAWK
121462_ACEOF
121463cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
121464  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
121465fi # test -n "$CONFIG_HEADERS"
121466
121467
121468eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
121469shift
121470for ac_tag
121471do
121472  case $ac_tag in
121473  :[FHLC]) ac_mode=$ac_tag; continue;;
121474  esac
121475  case $ac_mode$ac_tag in
121476  :[FHL]*:*);;
121477  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
121478  :[FH]-) ac_tag=-:-;;
121479  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
121480  esac
121481  ac_save_IFS=$IFS
121482  IFS=:
121483  set x $ac_tag
121484  IFS=$ac_save_IFS
121485  shift
121486  ac_file=$1
121487  shift
121488
121489  case $ac_mode in
121490  :L) ac_source=$1;;
121491  :[FH])
121492    ac_file_inputs=
121493    for ac_f
121494    do
121495      case $ac_f in
121496      -) ac_f="$ac_tmp/stdin";;
121497      *) # Look for the file first in the build tree, then in the source tree
121498	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
121499	 # because $ac_f cannot contain `:'.
121500	 test -f "$ac_f" ||
121501	   case $ac_f in
121502	   [\\/$]*) false;;
121503	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
121504	   esac ||
121505	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
121506      esac
121507      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
121508      as_fn_append ac_file_inputs " '$ac_f'"
121509    done
121510
121511    # Let's still pretend it is `configure' which instantiates (i.e., don't
121512    # use $as_me), people would be surprised to read:
121513    #    /* config.h.  Generated by config.status.  */
121514    configure_input='Generated from '`
121515	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
121516	`' by configure.'
121517    if test x"$ac_file" != x-; then
121518      configure_input="$ac_file.  $configure_input"
121519      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
121520$as_echo "$as_me: creating $ac_file" >&6;}
121521    fi
121522    # Neutralize special characters interpreted by sed in replacement strings.
121523    case $configure_input in #(
121524    *\&* | *\|* | *\\* )
121525       ac_sed_conf_input=`$as_echo "$configure_input" |
121526       sed 's/[\\\\&|]/\\\\&/g'`;; #(
121527    *) ac_sed_conf_input=$configure_input;;
121528    esac
121529
121530    case $ac_tag in
121531    *:-:* | *:-) cat >"$ac_tmp/stdin" \
121532      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
121533    esac
121534    ;;
121535  esac
121536
121537  ac_dir=`$as_dirname -- "$ac_file" ||
121538$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
121539	 X"$ac_file" : 'X\(//\)[^/]' \| \
121540	 X"$ac_file" : 'X\(//\)$' \| \
121541	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
121542$as_echo X"$ac_file" |
121543    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
121544	    s//\1/
121545	    q
121546	  }
121547	  /^X\(\/\/\)[^/].*/{
121548	    s//\1/
121549	    q
121550	  }
121551	  /^X\(\/\/\)$/{
121552	    s//\1/
121553	    q
121554	  }
121555	  /^X\(\/\).*/{
121556	    s//\1/
121557	    q
121558	  }
121559	  s/.*/./; q'`
121560  as_dir="$ac_dir"; as_fn_mkdir_p
121561  ac_builddir=.
121562
121563case "$ac_dir" in
121564.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
121565*)
121566  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
121567  # A ".." for each directory in $ac_dir_suffix.
121568  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
121569  case $ac_top_builddir_sub in
121570  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
121571  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
121572  esac ;;
121573esac
121574ac_abs_top_builddir=$ac_pwd
121575ac_abs_builddir=$ac_pwd$ac_dir_suffix
121576# for backward compatibility:
121577ac_top_builddir=$ac_top_build_prefix
121578
121579case $srcdir in
121580  .)  # We are building in place.
121581    ac_srcdir=.
121582    ac_top_srcdir=$ac_top_builddir_sub
121583    ac_abs_top_srcdir=$ac_pwd ;;
121584  [\\/]* | ?:[\\/]* )  # Absolute name.
121585    ac_srcdir=$srcdir$ac_dir_suffix;
121586    ac_top_srcdir=$srcdir
121587    ac_abs_top_srcdir=$srcdir ;;
121588  *) # Relative name.
121589    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
121590    ac_top_srcdir=$ac_top_build_prefix$srcdir
121591    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
121592esac
121593ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
121594
121595
121596  case $ac_mode in
121597  :F)
121598  #
121599  # CONFIG_FILE
121600  #
121601
121602  case $INSTALL in
121603  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
121604  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
121605  esac
121606  ac_MKDIR_P=$MKDIR_P
121607  case $MKDIR_P in
121608  [\\/$]* | ?:[\\/]* ) ;;
121609  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
121610  esac
121611_ACEOF
121612
121613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
121614# If the template does not know about datarootdir, expand it.
121615# FIXME: This hack should be removed a few years after 2.60.
121616ac_datarootdir_hack=; ac_datarootdir_seen=
121617ac_sed_dataroot='
121618/datarootdir/ {
121619  p
121620  q
121621}
121622/@datadir@/p
121623/@docdir@/p
121624/@infodir@/p
121625/@localedir@/p
121626/@mandir@/p'
121627case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
121628*datarootdir*) ac_datarootdir_seen=yes;;
121629*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
121630  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
121631$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
121632_ACEOF
121633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
121634  ac_datarootdir_hack='
121635  s&@datadir@&$datadir&g
121636  s&@docdir@&$docdir&g
121637  s&@infodir@&$infodir&g
121638  s&@localedir@&$localedir&g
121639  s&@mandir@&$mandir&g
121640  s&\\\${datarootdir}&$datarootdir&g' ;;
121641esac
121642_ACEOF
121643
121644# Neutralize VPATH when `$srcdir' = `.'.
121645# Shell code in configure.ac might set extrasub.
121646# FIXME: do we really want to maintain this feature?
121647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
121648ac_sed_extra="$ac_vpsub
121649$extrasub
121650_ACEOF
121651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
121652:t
121653/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
121654s|@configure_input@|$ac_sed_conf_input|;t t
121655s&@top_builddir@&$ac_top_builddir_sub&;t t
121656s&@top_build_prefix@&$ac_top_build_prefix&;t t
121657s&@srcdir@&$ac_srcdir&;t t
121658s&@abs_srcdir@&$ac_abs_srcdir&;t t
121659s&@top_srcdir@&$ac_top_srcdir&;t t
121660s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
121661s&@builddir@&$ac_builddir&;t t
121662s&@abs_builddir@&$ac_abs_builddir&;t t
121663s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
121664s&@INSTALL@&$ac_INSTALL&;t t
121665s&@MKDIR_P@&$ac_MKDIR_P&;t t
121666$ac_datarootdir_hack
121667"
121668eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
121669  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
121670
121671test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
121672  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
121673  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
121674      "$ac_tmp/out"`; test -z "$ac_out"; } &&
121675  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
121676which seems to be undefined.  Please make sure it is defined" >&5
121677$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
121678which seems to be undefined.  Please make sure it is defined" >&2;}
121679
121680  rm -f "$ac_tmp/stdin"
121681  case $ac_file in
121682  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
121683  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
121684  esac \
121685  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
121686 ;;
121687  :H)
121688  #
121689  # CONFIG_HEADER
121690  #
121691  if test x"$ac_file" != x-; then
121692    {
121693      $as_echo "/* $configure_input  */" \
121694      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
121695    } >"$ac_tmp/config.h" \
121696      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
121697    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
121698      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
121699$as_echo "$as_me: $ac_file is unchanged" >&6;}
121700    else
121701      rm -f "$ac_file"
121702      mv "$ac_tmp/config.h" "$ac_file" \
121703	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
121704    fi
121705  else
121706    $as_echo "/* $configure_input  */" \
121707      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
121708      || as_fn_error $? "could not create -" "$LINENO" 5
121709  fi
121710# Compute "$ac_file"'s index in $config_headers.
121711_am_arg="$ac_file"
121712_am_stamp_count=1
121713for _am_header in $config_headers :; do
121714  case $_am_header in
121715    $_am_arg | $_am_arg:* )
121716      break ;;
121717    * )
121718      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
121719  esac
121720done
121721echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
121722$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
121723	 X"$_am_arg" : 'X\(//\)[^/]' \| \
121724	 X"$_am_arg" : 'X\(//\)$' \| \
121725	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
121726$as_echo X"$_am_arg" |
121727    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
121728	    s//\1/
121729	    q
121730	  }
121731	  /^X\(\/\/\)[^/].*/{
121732	    s//\1/
121733	    q
121734	  }
121735	  /^X\(\/\/\)$/{
121736	    s//\1/
121737	    q
121738	  }
121739	  /^X\(\/\).*/{
121740	    s//\1/
121741	    q
121742	  }
121743	  s/.*/./; q'`/stamp-h$_am_stamp_count
121744 ;;
121745
121746  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
121747$as_echo "$as_me: executing $ac_file commands" >&6;}
121748 ;;
121749  esac
121750
121751
121752  case $ac_file$ac_mode in
121753    "libtool":C)
121754
121755    # See if we are running on zsh, and set the options that allow our
121756    # commands through without removal of \ escapes.
121757    if test -n "${ZSH_VERSION+set}"; then
121758      setopt NO_GLOB_SUBST
121759    fi
121760
121761    cfgfile=${ofile}T
121762    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
121763    $RM "$cfgfile"
121764
121765    cat <<_LT_EOF >> "$cfgfile"
121766#! $SHELL
121767# Generated automatically by $as_me ($PACKAGE) $VERSION
121768# NOTE: Changes made to this file will be lost: look at ltmain.sh.
121769
121770# Provide generalized library-building support services.
121771# Written by Gordon Matzigkeit, 1996
121772
121773# Copyright (C) 2014 Free Software Foundation, Inc.
121774# This is free software; see the source for copying conditions.  There is NO
121775# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
121776
121777# GNU Libtool is free software; you can redistribute it and/or modify
121778# it under the terms of the GNU General Public License as published by
121779# the Free Software Foundation; either version 2 of of the License, or
121780# (at your option) any later version.
121781#
121782# As a special exception to the GNU General Public License, if you
121783# distribute this file as part of a program or library that is built
121784# using GNU Libtool, you may include this file under the  same
121785# distribution terms that you use for the rest of that program.
121786#
121787# GNU Libtool is distributed in the hope that it will be useful, but
121788# WITHOUT ANY WARRANTY; without even the implied warranty of
121789# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
121790# GNU General Public License for more details.
121791#
121792# You should have received a copy of the GNU General Public License
121793# along with this program.  If not, see <http://www.gnu.org/licenses/>.
121794
121795
121796# The names of the tagged configurations supported by this script.
121797available_tags='CXX '
121798
121799# Configured defaults for sys_lib_dlsearch_path munging.
121800: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
121801
121802# ### BEGIN LIBTOOL CONFIG
121803
121804# Which release of libtool.m4 was used?
121805macro_version=$macro_version
121806macro_revision=$macro_revision
121807
121808# Whether or not to build static libraries.
121809build_old_libs=$enable_static
121810
121811# Whether or not to build shared libraries.
121812build_libtool_libs=$enable_shared
121813
121814# What type of objects to build.
121815pic_mode=$pic_mode
121816
121817# Whether or not to optimize for fast installation.
121818fast_install=$enable_fast_install
121819
121820# Shared archive member basename,for filename based shared library versioning on AIX.
121821shared_archive_member_spec=$shared_archive_member_spec
121822
121823# Shell to use when invoking shell scripts.
121824SHELL=$lt_SHELL
121825
121826# An echo program that protects backslashes.
121827ECHO=$lt_ECHO
121828
121829# The PATH separator for the build system.
121830PATH_SEPARATOR=$lt_PATH_SEPARATOR
121831
121832# The host system.
121833host_alias=$host_alias
121834host=$host
121835host_os=$host_os
121836
121837# The build system.
121838build_alias=$build_alias
121839build=$build
121840build_os=$build_os
121841
121842# A sed program that does not truncate output.
121843SED=$lt_SED
121844
121845# Sed that helps us avoid accidentally triggering echo(1) options like -n.
121846Xsed="\$SED -e 1s/^X//"
121847
121848# A grep program that handles long lines.
121849GREP=$lt_GREP
121850
121851# An ERE matcher.
121852EGREP=$lt_EGREP
121853
121854# A literal string matcher.
121855FGREP=$lt_FGREP
121856
121857# A BSD- or MS-compatible name lister.
121858NM=$lt_NM
121859
121860# Whether we need soft or hard links.
121861LN_S=$lt_LN_S
121862
121863# What is the maximum length of a command?
121864max_cmd_len=$max_cmd_len
121865
121866# Object file suffix (normally "o").
121867objext=$ac_objext
121868
121869# Executable file suffix (normally "").
121870exeext=$exeext
121871
121872# whether the shell understands "unset".
121873lt_unset=$lt_unset
121874
121875# turn spaces into newlines.
121876SP2NL=$lt_lt_SP2NL
121877
121878# turn newlines into spaces.
121879NL2SP=$lt_lt_NL2SP
121880
121881# convert \$build file names to \$host format.
121882to_host_file_cmd=$lt_cv_to_host_file_cmd
121883
121884# convert \$build files to toolchain format.
121885to_tool_file_cmd=$lt_cv_to_tool_file_cmd
121886
121887# An object symbol dumper.
121888OBJDUMP=$lt_OBJDUMP
121889
121890# Method to check whether dependent libraries are shared objects.
121891deplibs_check_method=$lt_deplibs_check_method
121892
121893# Command to use when deplibs_check_method = "file_magic".
121894file_magic_cmd=$lt_file_magic_cmd
121895
121896# How to find potential files when deplibs_check_method = "file_magic".
121897file_magic_glob=$lt_file_magic_glob
121898
121899# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
121900want_nocaseglob=$lt_want_nocaseglob
121901
121902# DLL creation program.
121903DLLTOOL=$lt_DLLTOOL
121904
121905# Command to associate shared and link libraries.
121906sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
121907
121908# The archiver.
121909AR=$lt_AR
121910
121911# Flags to create an archive.
121912AR_FLAGS=$lt_AR_FLAGS
121913
121914# How to feed a file listing to the archiver.
121915archiver_list_spec=$lt_archiver_list_spec
121916
121917# A symbol stripping program.
121918STRIP=$lt_STRIP
121919
121920# Commands used to install an old-style archive.
121921RANLIB=$lt_RANLIB
121922old_postinstall_cmds=$lt_old_postinstall_cmds
121923old_postuninstall_cmds=$lt_old_postuninstall_cmds
121924
121925# Whether to use a lock for old archive extraction.
121926lock_old_archive_extraction=$lock_old_archive_extraction
121927
121928# A C compiler.
121929LTCC=$lt_CC
121930
121931# LTCC compiler flags.
121932LTCFLAGS=$lt_CFLAGS
121933
121934# Take the output of nm and produce a listing of raw symbols and C names.
121935global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
121936
121937# Transform the output of nm in a proper C declaration.
121938global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
121939
121940# Transform the output of nm into a list of symbols to manually relocate.
121941global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
121942
121943# Transform the output of nm in a C name address pair.
121944global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
121945
121946# Transform the output of nm in a C name address pair when lib prefix is needed.
121947global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
121948
121949# The name lister interface.
121950nm_interface=$lt_lt_cv_nm_interface
121951
121952# Specify filename containing input files for \$NM.
121953nm_file_list_spec=$lt_nm_file_list_spec
121954
121955# The root where to search for dependent libraries,and where our libraries should be installed.
121956lt_sysroot=$lt_sysroot
121957
121958# Command to truncate a binary pipe.
121959lt_truncate_bin=$lt_lt_cv_truncate_bin
121960
121961# The name of the directory that contains temporary libtool files.
121962objdir=$objdir
121963
121964# Used to examine libraries when file_magic_cmd begins with "file".
121965MAGIC_CMD=$MAGIC_CMD
121966
121967# Must we lock files when doing compilation?
121968need_locks=$lt_need_locks
121969
121970# Manifest tool.
121971MANIFEST_TOOL=$lt_MANIFEST_TOOL
121972
121973# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
121974DSYMUTIL=$lt_DSYMUTIL
121975
121976# Tool to change global to local symbols on Mac OS X.
121977NMEDIT=$lt_NMEDIT
121978
121979# Tool to manipulate fat objects and archives on Mac OS X.
121980LIPO=$lt_LIPO
121981
121982# ldd/readelf like tool for Mach-O binaries on Mac OS X.
121983OTOOL=$lt_OTOOL
121984
121985# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
121986OTOOL64=$lt_OTOOL64
121987
121988# Old archive suffix (normally "a").
121989libext=$libext
121990
121991# Shared library suffix (normally ".so").
121992shrext_cmds=$lt_shrext_cmds
121993
121994# The commands to extract the exported symbol list from a shared archive.
121995extract_expsyms_cmds=$lt_extract_expsyms_cmds
121996
121997# Variables whose values should be saved in libtool wrapper scripts and
121998# restored at link time.
121999variables_saved_for_relink=$lt_variables_saved_for_relink
122000
122001# Do we need the "lib" prefix for modules?
122002need_lib_prefix=$need_lib_prefix
122003
122004# Do we need a version for libraries?
122005need_version=$need_version
122006
122007# Library versioning type.
122008version_type=$version_type
122009
122010# Shared library runtime path variable.
122011runpath_var=$runpath_var
122012
122013# Shared library path variable.
122014shlibpath_var=$shlibpath_var
122015
122016# Is shlibpath searched before the hard-coded library search path?
122017shlibpath_overrides_runpath=$shlibpath_overrides_runpath
122018
122019# Format of library name prefix.
122020libname_spec=$lt_libname_spec
122021
122022# List of archive names.  First name is the real one, the rest are links.
122023# The last name is the one that the linker finds with -lNAME
122024library_names_spec=$lt_library_names_spec
122025
122026# The coded name of the library, if different from the real name.
122027soname_spec=$lt_soname_spec
122028
122029# Permission mode override for installation of shared libraries.
122030install_override_mode=$lt_install_override_mode
122031
122032# Command to use after installation of a shared archive.
122033postinstall_cmds=$lt_postinstall_cmds
122034
122035# Command to use after uninstallation of a shared archive.
122036postuninstall_cmds=$lt_postuninstall_cmds
122037
122038# Commands used to finish a libtool library installation in a directory.
122039finish_cmds=$lt_finish_cmds
122040
122041# As "finish_cmds", except a single script fragment to be evaled but
122042# not shown.
122043finish_eval=$lt_finish_eval
122044
122045# Whether we should hardcode library paths into libraries.
122046hardcode_into_libs=$hardcode_into_libs
122047
122048# Compile-time system search path for libraries.
122049sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
122050
122051# Detected run-time system search path for libraries.
122052sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
122053
122054# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
122055configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
122056
122057# Whether dlopen is supported.
122058dlopen_support=$enable_dlopen
122059
122060# Whether dlopen of programs is supported.
122061dlopen_self=$enable_dlopen_self
122062
122063# Whether dlopen of statically linked programs is supported.
122064dlopen_self_static=$enable_dlopen_self_static
122065
122066# Commands to strip libraries.
122067old_striplib=$lt_old_striplib
122068striplib=$lt_striplib
122069
122070
122071# The linker used to build libraries.
122072LD=$lt_LD
122073
122074# How to create reloadable object files.
122075reload_flag=$lt_reload_flag
122076reload_cmds=$lt_reload_cmds
122077
122078# Commands used to build an old-style archive.
122079old_archive_cmds=$lt_old_archive_cmds
122080
122081# A language specific compiler.
122082CC=$lt_compiler
122083
122084# Is the compiler the GNU compiler?
122085with_gcc=$GCC
122086
122087# Compiler flag to turn off builtin functions.
122088no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
122089
122090# Additional compiler flags for building library objects.
122091pic_flag=$lt_lt_prog_compiler_pic
122092
122093# How to pass a linker flag through the compiler.
122094wl=$lt_lt_prog_compiler_wl
122095
122096# Compiler flag to prevent dynamic linking.
122097link_static_flag=$lt_lt_prog_compiler_static
122098
122099# Does compiler simultaneously support -c and -o options?
122100compiler_c_o=$lt_lt_cv_prog_compiler_c_o
122101
122102# Whether or not to add -lc for building shared libraries.
122103build_libtool_need_lc=$archive_cmds_need_lc
122104
122105# Whether or not to disallow shared libs when runtime libs are static.
122106allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
122107
122108# Compiler flag to allow reflexive dlopens.
122109export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
122110
122111# Compiler flag to generate shared objects directly from archives.
122112whole_archive_flag_spec=$lt_whole_archive_flag_spec
122113
122114# Whether the compiler copes with passing no objects directly.
122115compiler_needs_object=$lt_compiler_needs_object
122116
122117# Create an old-style archive from a shared archive.
122118old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
122119
122120# Create a temporary old-style archive to link instead of a shared archive.
122121old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
122122
122123# Commands used to build a shared archive.
122124archive_cmds=$lt_archive_cmds
122125archive_expsym_cmds=$lt_archive_expsym_cmds
122126
122127# Commands used to build a loadable module if different from building
122128# a shared archive.
122129module_cmds=$lt_module_cmds
122130module_expsym_cmds=$lt_module_expsym_cmds
122131
122132# Whether we are building with GNU ld or not.
122133with_gnu_ld=$lt_with_gnu_ld
122134
122135# Flag that allows shared libraries with undefined symbols to be built.
122136allow_undefined_flag=$lt_allow_undefined_flag
122137
122138# Flag that enforces no undefined symbols.
122139no_undefined_flag=$lt_no_undefined_flag
122140
122141# Flag to hardcode \$libdir into a binary during linking.
122142# This must work even if \$libdir does not exist
122143hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
122144
122145# Whether we need a single "-rpath" flag with a separated argument.
122146hardcode_libdir_separator=$lt_hardcode_libdir_separator
122147
122148# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
122149# DIR into the resulting binary.
122150hardcode_direct=$hardcode_direct
122151
122152# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
122153# DIR into the resulting binary and the resulting library dependency is
122154# "absolute",i.e impossible to change by setting \$shlibpath_var if the
122155# library is relocated.
122156hardcode_direct_absolute=$hardcode_direct_absolute
122157
122158# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
122159# into the resulting binary.
122160hardcode_minus_L=$hardcode_minus_L
122161
122162# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
122163# into the resulting binary.
122164hardcode_shlibpath_var=$hardcode_shlibpath_var
122165
122166# Set to "yes" if building a shared library automatically hardcodes DIR
122167# into the library and all subsequent libraries and executables linked
122168# against it.
122169hardcode_automatic=$hardcode_automatic
122170
122171# Set to yes if linker adds runtime paths of dependent libraries
122172# to runtime path list.
122173inherit_rpath=$inherit_rpath
122174
122175# Whether libtool must link a program against all its dependency libraries.
122176link_all_deplibs=$link_all_deplibs
122177
122178# Set to "yes" if exported symbols are required.
122179always_export_symbols=$always_export_symbols
122180
122181# The commands to list exported symbols.
122182export_symbols_cmds=$lt_export_symbols_cmds
122183
122184# Symbols that should not be listed in the preloaded symbols.
122185exclude_expsyms=$lt_exclude_expsyms
122186
122187# Symbols that must always be exported.
122188include_expsyms=$lt_include_expsyms
122189
122190# Commands necessary for linking programs (against libraries) with templates.
122191prelink_cmds=$lt_prelink_cmds
122192
122193# Commands necessary for finishing linking programs.
122194postlink_cmds=$lt_postlink_cmds
122195
122196# Specify filename containing input files.
122197file_list_spec=$lt_file_list_spec
122198
122199# How to hardcode a shared library path into an executable.
122200hardcode_action=$hardcode_action
122201
122202# The directories searched by this compiler when creating a shared library.
122203compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
122204
122205# Dependencies to place before and after the objects being linked to
122206# create a shared library.
122207predep_objects=$lt_predep_objects
122208postdep_objects=$lt_postdep_objects
122209predeps=$lt_predeps
122210postdeps=$lt_postdeps
122211
122212# The library search path used internally by the compiler when linking
122213# a shared library.
122214compiler_lib_search_path=$lt_compiler_lib_search_path
122215
122216# ### END LIBTOOL CONFIG
122217
122218_LT_EOF
122219
122220    cat <<'_LT_EOF' >> "$cfgfile"
122221
122222# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
122223
122224# func_munge_path_list VARIABLE PATH
122225# -----------------------------------
122226# VARIABLE is name of variable containing _space_ separated list of
122227# directories to be munged by the contents of PATH, which is string
122228# having a format:
122229# "DIR[:DIR]:"
122230#       string "DIR[ DIR]" will be prepended to VARIABLE
122231# ":DIR[:DIR]"
122232#       string "DIR[ DIR]" will be appended to VARIABLE
122233# "DIRP[:DIRP]::[DIRA:]DIRA"
122234#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
122235#       "DIRA[ DIRA]" will be appended to VARIABLE
122236# "DIR[:DIR]"
122237#       VARIABLE will be replaced by "DIR[ DIR]"
122238func_munge_path_list ()
122239{
122240    case x$2 in
122241    x)
122242        ;;
122243    *:)
122244        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
122245        ;;
122246    x:*)
122247        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
122248        ;;
122249    *::*)
122250        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
122251        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
122252        ;;
122253    *)
122254        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
122255        ;;
122256    esac
122257}
122258
122259
122260# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
122261func_cc_basename ()
122262{
122263    for cc_temp in $*""; do
122264      case $cc_temp in
122265        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
122266        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
122267        \-*) ;;
122268        *) break;;
122269      esac
122270    done
122271    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
122272}
122273
122274
122275# ### END FUNCTIONS SHARED WITH CONFIGURE
122276
122277_LT_EOF
122278
122279  case $host_os in
122280  aix3*)
122281    cat <<\_LT_EOF >> "$cfgfile"
122282# AIX sometimes has problems with the GCC collect2 program.  For some
122283# reason, if we set the COLLECT_NAMES environment variable, the problems
122284# vanish in a puff of smoke.
122285if test set != "${COLLECT_NAMES+set}"; then
122286  COLLECT_NAMES=
122287  export COLLECT_NAMES
122288fi
122289_LT_EOF
122290    ;;
122291  esac
122292
122293
122294ltmain=$ac_aux_dir/ltmain.sh
122295
122296
122297  # We use sed instead of cat because bash on DJGPP gets confused if
122298  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
122299  # text mode, it properly converts lines to CR/LF.  This bash problem
122300  # is reportedly fixed, but why not run on old versions too?
122301  sed '$q' "$ltmain" >> "$cfgfile" \
122302     || (rm -f "$cfgfile"; exit 1)
122303
122304   mv -f "$cfgfile" "$ofile" ||
122305    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
122306  chmod +x "$ofile"
122307
122308
122309    cat <<_LT_EOF >> "$ofile"
122310
122311# ### BEGIN LIBTOOL TAG CONFIG: CXX
122312
122313# The linker used to build libraries.
122314LD=$lt_LD_CXX
122315
122316# How to create reloadable object files.
122317reload_flag=$lt_reload_flag_CXX
122318reload_cmds=$lt_reload_cmds_CXX
122319
122320# Commands used to build an old-style archive.
122321old_archive_cmds=$lt_old_archive_cmds_CXX
122322
122323# A language specific compiler.
122324CC=$lt_compiler_CXX
122325
122326# Is the compiler the GNU compiler?
122327with_gcc=$GCC_CXX
122328
122329# Compiler flag to turn off builtin functions.
122330no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
122331
122332# Additional compiler flags for building library objects.
122333pic_flag=$lt_lt_prog_compiler_pic_CXX
122334
122335# How to pass a linker flag through the compiler.
122336wl=$lt_lt_prog_compiler_wl_CXX
122337
122338# Compiler flag to prevent dynamic linking.
122339link_static_flag=$lt_lt_prog_compiler_static_CXX
122340
122341# Does compiler simultaneously support -c and -o options?
122342compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
122343
122344# Whether or not to add -lc for building shared libraries.
122345build_libtool_need_lc=$archive_cmds_need_lc_CXX
122346
122347# Whether or not to disallow shared libs when runtime libs are static.
122348allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
122349
122350# Compiler flag to allow reflexive dlopens.
122351export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
122352
122353# Compiler flag to generate shared objects directly from archives.
122354whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
122355
122356# Whether the compiler copes with passing no objects directly.
122357compiler_needs_object=$lt_compiler_needs_object_CXX
122358
122359# Create an old-style archive from a shared archive.
122360old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
122361
122362# Create a temporary old-style archive to link instead of a shared archive.
122363old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
122364
122365# Commands used to build a shared archive.
122366archive_cmds=$lt_archive_cmds_CXX
122367archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
122368
122369# Commands used to build a loadable module if different from building
122370# a shared archive.
122371module_cmds=$lt_module_cmds_CXX
122372module_expsym_cmds=$lt_module_expsym_cmds_CXX
122373
122374# Whether we are building with GNU ld or not.
122375with_gnu_ld=$lt_with_gnu_ld_CXX
122376
122377# Flag that allows shared libraries with undefined symbols to be built.
122378allow_undefined_flag=$lt_allow_undefined_flag_CXX
122379
122380# Flag that enforces no undefined symbols.
122381no_undefined_flag=$lt_no_undefined_flag_CXX
122382
122383# Flag to hardcode \$libdir into a binary during linking.
122384# This must work even if \$libdir does not exist
122385hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
122386
122387# Whether we need a single "-rpath" flag with a separated argument.
122388hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
122389
122390# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
122391# DIR into the resulting binary.
122392hardcode_direct=$hardcode_direct_CXX
122393
122394# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
122395# DIR into the resulting binary and the resulting library dependency is
122396# "absolute",i.e impossible to change by setting \$shlibpath_var if the
122397# library is relocated.
122398hardcode_direct_absolute=$hardcode_direct_absolute_CXX
122399
122400# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
122401# into the resulting binary.
122402hardcode_minus_L=$hardcode_minus_L_CXX
122403
122404# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
122405# into the resulting binary.
122406hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
122407
122408# Set to "yes" if building a shared library automatically hardcodes DIR
122409# into the library and all subsequent libraries and executables linked
122410# against it.
122411hardcode_automatic=$hardcode_automatic_CXX
122412
122413# Set to yes if linker adds runtime paths of dependent libraries
122414# to runtime path list.
122415inherit_rpath=$inherit_rpath_CXX
122416
122417# Whether libtool must link a program against all its dependency libraries.
122418link_all_deplibs=$link_all_deplibs_CXX
122419
122420# Set to "yes" if exported symbols are required.
122421always_export_symbols=$always_export_symbols_CXX
122422
122423# The commands to list exported symbols.
122424export_symbols_cmds=$lt_export_symbols_cmds_CXX
122425
122426# Symbols that should not be listed in the preloaded symbols.
122427exclude_expsyms=$lt_exclude_expsyms_CXX
122428
122429# Symbols that must always be exported.
122430include_expsyms=$lt_include_expsyms_CXX
122431
122432# Commands necessary for linking programs (against libraries) with templates.
122433prelink_cmds=$lt_prelink_cmds_CXX
122434
122435# Commands necessary for finishing linking programs.
122436postlink_cmds=$lt_postlink_cmds_CXX
122437
122438# Specify filename containing input files.
122439file_list_spec=$lt_file_list_spec_CXX
122440
122441# How to hardcode a shared library path into an executable.
122442hardcode_action=$hardcode_action_CXX
122443
122444# The directories searched by this compiler when creating a shared library.
122445compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
122446
122447# Dependencies to place before and after the objects being linked to
122448# create a shared library.
122449predep_objects=$lt_predep_objects_CXX
122450postdep_objects=$lt_postdep_objects_CXX
122451predeps=$lt_predeps_CXX
122452postdeps=$lt_postdeps_CXX
122453
122454# The library search path used internally by the compiler when linking
122455# a shared library.
122456compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
122457
122458# ### END LIBTOOL TAG CONFIG: CXX
122459_LT_EOF
122460
122461 ;;
122462    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
122463  # Older Autoconf quotes --file arguments for eval, but not when files
122464  # are listed without --file.  Let's play safe and only enable the eval
122465  # if we detect the quoting.
122466  # TODO: see whether this extra hack can be removed once we start
122467  # requiring Autoconf 2.70 or later.
122468  case $CONFIG_FILES in #(
122469  *\'*) :
122470    eval set x "$CONFIG_FILES" ;; #(
122471  *) :
122472    set x $CONFIG_FILES ;; #(
122473  *) :
122474     ;;
122475esac
122476  shift
122477  # Used to flag and report bootstrapping failures.
122478  am_rc=0
122479  for am_mf
122480  do
122481    # Strip MF so we end up with the name of the file.
122482    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
122483    # Check whether this is an Automake generated Makefile which includes
122484    # dependency-tracking related rules and includes.
122485    # Grep'ing the whole file directly is not great: AIX grep has a line
122486    # limit of 2048, but all sed's we know have understand at least 4000.
122487    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
122488      || continue
122489    am_dirpart=`$as_dirname -- "$am_mf" ||
122490$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
122491	 X"$am_mf" : 'X\(//\)[^/]' \| \
122492	 X"$am_mf" : 'X\(//\)$' \| \
122493	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
122494$as_echo X"$am_mf" |
122495    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
122496	    s//\1/
122497	    q
122498	  }
122499	  /^X\(\/\/\)[^/].*/{
122500	    s//\1/
122501	    q
122502	  }
122503	  /^X\(\/\/\)$/{
122504	    s//\1/
122505	    q
122506	  }
122507	  /^X\(\/\).*/{
122508	    s//\1/
122509	    q
122510	  }
122511	  s/.*/./; q'`
122512    am_filepart=`$as_basename -- "$am_mf" ||
122513$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
122514	 X"$am_mf" : 'X\(//\)$' \| \
122515	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
122516$as_echo X/"$am_mf" |
122517    sed '/^.*\/\([^/][^/]*\)\/*$/{
122518	    s//\1/
122519	    q
122520	  }
122521	  /^X\/\(\/\/\)$/{
122522	    s//\1/
122523	    q
122524	  }
122525	  /^X\/\(\/\).*/{
122526	    s//\1/
122527	    q
122528	  }
122529	  s/.*/./; q'`
122530    { echo "$as_me:$LINENO: cd "$am_dirpart" \
122531      && sed -e '/# am--include-marker/d' "$am_filepart" \
122532        | $MAKE -f - am--depfiles" >&5
122533   (cd "$am_dirpart" \
122534      && sed -e '/# am--include-marker/d' "$am_filepart" \
122535        | $MAKE -f - am--depfiles) >&5 2>&5
122536   ac_status=$?
122537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
122538   (exit $ac_status); } || am_rc=$?
122539  done
122540  if test $am_rc -ne 0; then
122541    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
122542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
122543as_fn_error $? "Something went wrong bootstrapping makefile fragments
122544    for automatic dependency tracking.  Try re-running configure with the
122545    '--disable-dependency-tracking' option to at least be able to build
122546    the package (albeit without support for automatic dependency tracking).
122547See \`config.log' for more details" "$LINENO" 5; }
122548  fi
122549  { am_dirpart=; unset am_dirpart;}
122550  { am_filepart=; unset am_filepart;}
122551  { am_mf=; unset am_mf;}
122552  { am_rc=; unset am_rc;}
122553  rm -f conftest-deps.mk
122554}
122555 ;;
122556
122557  esac
122558done # for ac_tag
122559
122560
122561as_fn_exit 0
122562_ACEOF
122563ac_clean_files=$ac_clean_files_save
122564
122565test $ac_write_fail = 0 ||
122566  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
122567
122568
122569# configure is writing to config.log, and then calls config.status.
122570# config.status does its own redirection, appending to config.log.
122571# Unfortunately, on DOS this fails, as config.log is still kept open
122572# by configure, so config.status won't be able to write to it; its
122573# output is simply discarded.  So we exec the FD to /dev/null,
122574# effectively closing config.log, so it can be properly (re)opened and
122575# appended to by config.status.  When coming back to configure, we
122576# need to make the FD available again.
122577if test "$no_create" != yes; then
122578  ac_cs_success=:
122579  ac_config_status_args=
122580  test "$silent" = yes &&
122581    ac_config_status_args="$ac_config_status_args --quiet"
122582  exec 5>/dev/null
122583  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
122584  exec 5>>config.log
122585  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
122586  # would make configure fail if this is the last instruction.
122587  $ac_cs_success || as_fn_exit 1
122588fi
122589if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
122590  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
122591$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
122592fi
122593
122594
122595if test "x$with_librrd" = "xyes" && test "x$librrd_threadsafe" != "xyes"; then
122596  with_librrd="yes (warning: librrd is not thread-safe)"
122597fi
122598
122599if test "x$with_libperl" = "xyes"; then
122600  with_libperl="yes (version `$PERL -MConfig -e 'print $Config{version};'`)"
122601else
122602  enable_perl="no (needs libperl)"
122603fi
122604
122605if test "x$enable_perl" = "xno" && test "x$c_cv_have_perl_ithreads" = "xno"; then
122606  enable_perl="no (libperl doesn't support ithreads)"
122607fi
122608
122609if test "x$with_perl_bindings" = "xyes" && test "x$PERL_BINDINGS_OPTIONS" != "x"; then
122610  with_perl_bindings="yes ($PERL_BINDINGS_OPTIONS)"
122611fi
122612
122613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
122614$as_echo "" >&6; }
122615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Configuration:" >&5
122616$as_echo "Configuration:" >&6; }
122617{ $as_echo "$as_me:${as_lineno-$LINENO}: result:   Build:" >&5
122618$as_echo "  Build:" >&6; }
122619{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     Platform  . . . . . . $ac_system" >&5
122620$as_echo "    Platform  . . . . . . $ac_system" >&6; }
122621{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     Compiler vendor . . . $ax_cv_c_compiler_vendor" >&5
122622$as_echo "    Compiler vendor . . . $ax_cv_c_compiler_vendor" >&6; }
122623{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     CC  . . . . . . . . . $CC" >&5
122624$as_echo "    CC  . . . . . . . . . $CC" >&6; }
122625{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     CFLAGS  . . . . . . . $AM_CFLAGS $CFLAGS" >&5
122626$as_echo "    CFLAGS  . . . . . . . $AM_CFLAGS $CFLAGS" >&6; }
122627{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     CXXFLAGS  . . . . . . $AM_CXXFLAGS $CXXFLAGS" >&5
122628$as_echo "    CXXFLAGS  . . . . . . $AM_CXXFLAGS $CXXFLAGS" >&6; }
122629{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     CPP . . . . . . . . . $CPP" >&5
122630$as_echo "    CPP . . . . . . . . . $CPP" >&6; }
122631{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     CPPFLAGS  . . . . . . $CPPFLAGS" >&5
122632$as_echo "    CPPFLAGS  . . . . . . $CPPFLAGS" >&6; }
122633{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     GRPC_CPP_PLUGIN . . . $GRPC_CPP_PLUGIN" >&5
122634$as_echo "    GRPC_CPP_PLUGIN . . . $GRPC_CPP_PLUGIN" >&6; }
122635{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     LD  . . . . . . . . . $LD" >&5
122636$as_echo "    LD  . . . . . . . . . $LD" >&6; }
122637{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     LDFLAGS . . . . . . . $LDFLAGS" >&5
122638$as_echo "    LDFLAGS . . . . . . . $LDFLAGS" >&6; }
122639{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     PROTOC  . . . . . . . $PROTOC" >&5
122640$as_echo "    PROTOC  . . . . . . . $PROTOC" >&6; }
122641{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     YACC  . . . . . . . . $YACC" >&5
122642$as_echo "    YACC  . . . . . . . . $YACC" >&6; }
122643{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     YFLAGS  . . . . . . . $YFLAGS" >&5
122644$as_echo "    YFLAGS  . . . . . . . $YFLAGS" >&6; }
122645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
122646$as_echo "" >&6; }
122647{ $as_echo "$as_me:${as_lineno-$LINENO}: result:   Libraries:" >&5
122648$as_echo "  Libraries:" >&6; }
122649{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     intel mic . . . . . . $with_mic" >&5
122650$as_echo "    intel mic . . . . . . $with_mic" >&6; }
122651{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libaquaero5 . . . . . $with_libaquaero5" >&5
122652$as_echo "    libaquaero5 . . . . . $with_libaquaero5" >&6; }
122653{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libatasmart . . . . . $with_libatasmart" >&5
122654$as_echo "    libatasmart . . . . . $with_libatasmart" >&6; }
122655{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libcurl . . . . . . . $with_libcurl" >&5
122656$as_echo "    libcurl . . . . . . . $with_libcurl" >&6; }
122657{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libdbi  . . . . . . . $with_libdbi" >&5
122658$as_echo "    libdbi  . . . . . . . $with_libdbi" >&6; }
122659{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libdpdk . . . . . . . $with_libdpdk" >&5
122660$as_echo "    libdpdk . . . . . . . $with_libdpdk" >&6; }
122661{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libesmtp  . . . . . . $with_libesmtp" >&5
122662$as_echo "    libesmtp  . . . . . . $with_libesmtp" >&6; }
122663{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libganglia  . . . . . $with_libganglia" >&5
122664$as_echo "    libganglia  . . . . . $with_libganglia" >&6; }
122665{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libgcrypt . . . . . . $with_libgcrypt" >&5
122666$as_echo "    libgcrypt . . . . . . $with_libgcrypt" >&6; }
122667{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libgps  . . . . . . . $with_libgps" >&5
122668$as_echo "    libgps  . . . . . . . $with_libgps" >&6; }
122669{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libgrpc++ . . . . . . $with_libgrpcpp" >&5
122670$as_echo "    libgrpc++ . . . . . . $with_libgrpcpp" >&6; }
122671{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libhiredis  . . . . . $with_libhiredis" >&5
122672$as_echo "    libhiredis  . . . . . $with_libhiredis" >&6; }
122673{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libi2c-dev  . . . . . $with_libi2c" >&5
122674$as_echo "    libi2c-dev  . . . . . $with_libi2c" >&6; }
122675{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libiokit  . . . . . . $with_libiokit" >&5
122676$as_echo "    libiokit  . . . . . . $with_libiokit" >&6; }
122677{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libiptc . . . . . . . $with_libiptc" >&5
122678$as_echo "    libiptc . . . . . . . $with_libiptc" >&6; }
122679{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libjansson  . . . . . $with_libjansson" >&5
122680$as_echo "    libjansson  . . . . . $with_libjansson" >&6; }
122681{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libjevents  . . . . . $with_libjevents" >&5
122682$as_echo "    libjevents  . . . . . $with_libjevents" >&6; }
122683{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libjvm  . . . . . . . $with_java" >&5
122684$as_echo "    libjvm  . . . . . . . $with_java" >&6; }
122685{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libkstat  . . . . . . $with_kstat" >&5
122686$as_echo "    libkstat  . . . . . . $with_kstat" >&6; }
122687{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libkvm  . . . . . . . $with_libkvm" >&5
122688$as_echo "    libkvm  . . . . . . . $with_libkvm" >&6; }
122689{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libldap . . . . . . . $with_libldap" >&5
122690$as_echo "    libldap . . . . . . . $with_libldap" >&6; }
122691{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     liblua  . . . . . . . $with_liblua" >&5
122692$as_echo "    liblua  . . . . . . . $with_liblua" >&6; }
122693{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libmemcached  . . . . $with_libmemcached" >&5
122694$as_echo "    libmemcached  . . . . $with_libmemcached" >&6; }
122695{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libmicrohttpd . . . . $with_libmicrohttpd" >&5
122696$as_echo "    libmicrohttpd . . . . $with_libmicrohttpd" >&6; }
122697{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libmnl  . . . . . . . $with_libmnl" >&5
122698$as_echo "    libmnl  . . . . . . . $with_libmnl" >&6; }
122699{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libmodbus . . . . . . $with_libmodbus" >&5
122700$as_echo "    libmodbus . . . . . . $with_libmodbus" >&6; }
122701{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libmongoc . . . . . . $with_libmongoc" >&5
122702$as_echo "    libmongoc . . . . . . $with_libmongoc" >&6; }
122703{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libmosquitto  . . . . $with_libmosquitto" >&5
122704$as_echo "    libmosquitto  . . . . $with_libmosquitto" >&6; }
122705{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libmysql  . . . . . . $with_libmysql" >&5
122706$as_echo "    libmysql  . . . . . . $with_libmysql" >&6; }
122707{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libnetapp . . . . . . $with_libnetapp" >&5
122708$as_echo "    libnetapp . . . . . . $with_libnetapp" >&6; }
122709{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libnetsnmp  . . . . . $with_libnetsnmp" >&5
122710$as_echo "    libnetsnmp  . . . . . $with_libnetsnmp" >&6; }
122711{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libnetsnmpagent . . . $with_libnetsnmpagent" >&5
122712$as_echo "    libnetsnmpagent . . . $with_libnetsnmpagent" >&6; }
122713{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libnotify . . . . . . $with_libnotify" >&5
122714$as_echo "    libnotify . . . . . . $with_libnotify" >&6; }
122715{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libnvidia-ml  . . . . $with_cuda" >&5
122716$as_echo "    libnvidia-ml  . . . . $with_cuda" >&6; }
122717{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libopenipmi . . . . . $with_libopenipmipthread" >&5
122718$as_echo "    libopenipmi . . . . . $with_libopenipmipthread" >&6; }
122719{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     liboping  . . . . . . $with_liboping" >&5
122720$as_echo "    liboping  . . . . . . $with_liboping" >&6; }
122721{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libowcapi . . . . . . $with_libowcapi" >&5
122722$as_echo "    libowcapi . . . . . . $with_libowcapi" >&6; }
122723{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libpcap . . . . . . . $with_libpcap" >&5
122724$as_echo "    libpcap . . . . . . . $with_libpcap" >&6; }
122725{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libperfstat . . . . . $with_perfstat" >&5
122726$as_echo "    libperfstat . . . . . $with_perfstat" >&6; }
122727{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libperl . . . . . . . $with_libperl" >&5
122728$as_echo "    libperl . . . . . . . $with_libperl" >&6; }
122729{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libpmwapi . . . . . . $with_libpmwapi" >&5
122730$as_echo "    libpmwapi . . . . . . $with_libpmwapi" >&6; }
122731{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libpq . . . . . . . . $with_libpq" >&5
122732$as_echo "    libpq . . . . . . . . $with_libpq" >&6; }
122733{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libpqos . . . . . . . $with_libpqos" >&5
122734$as_echo "    libpqos . . . . . . . $with_libpqos" >&6; }
122735{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libprotobuf . . . . . $with_libprotobuf" >&5
122736$as_echo "    libprotobuf . . . . . $with_libprotobuf" >&6; }
122737{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libprotobuf-c . . . . $with_libprotobuf_c" >&5
122738$as_echo "    libprotobuf-c . . . . $with_libprotobuf_c" >&6; }
122739{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libpython . . . . . . $with_libpython" >&5
122740$as_echo "    libpython . . . . . . $with_libpython" >&6; }
122741{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libqpid-proton .  . . $with_libqpid_proton" >&5
122742$as_echo "    libqpid-proton .  . . $with_libqpid_proton" >&6; }
122743{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     librabbitmq . . . . . $with_librabbitmq" >&5
122744$as_echo "    librabbitmq . . . . . $with_librabbitmq" >&6; }
122745{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libriemann-client . . $with_libriemann_client" >&5
122746$as_echo "    libriemann-client . . $with_libriemann_client" >&6; }
122747{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     librdkafka  . . . . . $with_librdkafka" >&5
122748$as_echo "    librdkafka  . . . . . $with_librdkafka" >&6; }
122749{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     librouteros . . . . . $with_librouteros" >&5
122750$as_echo "    librouteros . . . . . $with_librouteros" >&6; }
122751{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     librrd  . . . . . . . $with_librrd" >&5
122752$as_echo "    librrd  . . . . . . . $with_librrd" >&6; }
122753{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libsensors  . . . . . $with_libsensors" >&5
122754$as_echo "    libsensors  . . . . . $with_libsensors" >&6; }
122755{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libsigrok   . . . . . $with_libsigrok" >&5
122756$as_echo "    libsigrok   . . . . . $with_libsigrok" >&6; }
122757{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libssl  . . . . . . . $with_libssl" >&5
122758$as_echo "    libssl  . . . . . . . $with_libssl" >&6; }
122759{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libslurm .  . . . . . $with_libslurm" >&5
122760$as_echo "    libslurm .  . . . . . $with_libslurm" >&6; }
122761{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libstatgrab . . . . . $with_libstatgrab" >&5
122762$as_echo "    libstatgrab . . . . . $with_libstatgrab" >&6; }
122763{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libtokyotyrant  . . . $with_libtokyotyrant" >&5
122764$as_echo "    libtokyotyrant  . . . $with_libtokyotyrant" >&6; }
122765{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libudev . . . . . . . $with_libudev" >&5
122766$as_echo "    libudev . . . . . . . $with_libudev" >&6; }
122767{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libupsclient  . . . . $with_libupsclient" >&5
122768$as_echo "    libupsclient  . . . . $with_libupsclient" >&6; }
122769{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libvarnish  . . . . . $with_libvarnish" >&5
122770$as_echo "    libvarnish  . . . . . $with_libvarnish" >&6; }
122771{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libvirt . . . . . . . $with_libvirt" >&5
122772$as_echo "    libvirt . . . . . . . $with_libvirt" >&6; }
122773{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libxenctrl  . . . . . $with_libxenctrl" >&5
122774$as_echo "    libxenctrl  . . . . . $with_libxenctrl" >&6; }
122775{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libxml2 . . . . . . . $with_libxml2" >&5
122776$as_echo "    libxml2 . . . . . . . $with_libxml2" >&6; }
122777{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libxmms . . . . . . . $with_libxmms" >&5
122778$as_echo "    libxmms . . . . . . . $with_libxmms" >&6; }
122779{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     libyajl . . . . . . . $with_libyajl" >&5
122780$as_echo "    libyajl . . . . . . . $with_libyajl" >&6; }
122781{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     oracle  . . . . . . . $with_oracle" >&5
122782$as_echo "    oracle  . . . . . . . $with_oracle" >&6; }
122783{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     protobuf-c  . . . . . $have_protoc_c" >&5
122784$as_echo "    protobuf-c  . . . . . $have_protoc_c" >&6; }
122785{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     protoc 3  . . . . . . $have_protoc3" >&5
122786$as_echo "    protoc 3  . . . . . . $have_protoc3" >&6; }
122787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
122788$as_echo "" >&6; }
122789{ $as_echo "$as_me:${as_lineno-$LINENO}: result:   Features:" >&5
122790$as_echo "  Features:" >&6; }
122791{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     daemon mode . . . . . $enable_daemon" >&5
122792$as_echo "    daemon mode . . . . . $enable_daemon" >&6; }
122793{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     debug . . . . . . . . $enable_debug" >&5
122794$as_echo "    debug . . . . . . . . $enable_debug" >&6; }
122795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
122796$as_echo "" >&6; }
122797{ $as_echo "$as_me:${as_lineno-$LINENO}: result:   Bindings:" >&5
122798$as_echo "  Bindings:" >&6; }
122799{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     perl  . . . . . . . . $with_perl_bindings" >&5
122800$as_echo "    perl  . . . . . . . . $with_perl_bindings" >&6; }
122801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
122802$as_echo "" >&6; }
122803{ $as_echo "$as_me:${as_lineno-$LINENO}: result:   Modules:" >&5
122804$as_echo "  Modules:" >&6; }
122805{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     aggregation . . . . . $enable_aggregation" >&5
122806$as_echo "    aggregation . . . . . $enable_aggregation" >&6; }
122807{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     amqp    . . . . . . . $enable_amqp" >&5
122808$as_echo "    amqp    . . . . . . . $enable_amqp" >&6; }
122809{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     amqp1   . . . . . . . $enable_amqp1" >&5
122810$as_echo "    amqp1   . . . . . . . $enable_amqp1" >&6; }
122811{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     apache  . . . . . . . $enable_apache" >&5
122812$as_echo "    apache  . . . . . . . $enable_apache" >&6; }
122813{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     apcups  . . . . . . . $enable_apcups" >&5
122814$as_echo "    apcups  . . . . . . . $enable_apcups" >&6; }
122815{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     apple_sensors . . . . $enable_apple_sensors" >&5
122816$as_echo "    apple_sensors . . . . $enable_apple_sensors" >&6; }
122817{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     aquaero . . . . . . . $enable_aquaero" >&5
122818$as_echo "    aquaero . . . . . . . $enable_aquaero" >&6; }
122819{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     ascent  . . . . . . . $enable_ascent" >&5
122820$as_echo "    ascent  . . . . . . . $enable_ascent" >&6; }
122821{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     barometer . . . . . . $enable_barometer" >&5
122822$as_echo "    barometer . . . . . . $enable_barometer" >&6; }
122823{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     battery . . . . . . . $enable_battery" >&5
122824$as_echo "    battery . . . . . . . $enable_battery" >&6; }
122825{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     bind  . . . . . . . . $enable_bind" >&5
122826$as_echo "    bind  . . . . . . . . $enable_bind" >&6; }
122827{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     buddyinfo . . . . . . $enable_buddyinfo" >&5
122828$as_echo "    buddyinfo . . . . . . $enable_buddyinfo" >&6; }
122829{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     capabilities  . . . . $enable_capabilities" >&5
122830$as_echo "    capabilities  . . . . $enable_capabilities" >&6; }
122831{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     ceph  . . . . . . . . $enable_ceph" >&5
122832$as_echo "    ceph  . . . . . . . . $enable_ceph" >&6; }
122833{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     cgroups . . . . . . . $enable_cgroups" >&5
122834$as_echo "    cgroups . . . . . . . $enable_cgroups" >&6; }
122835{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     chrony. . . . . . . . $enable_chrony" >&5
122836$as_echo "    chrony. . . . . . . . $enable_chrony" >&6; }
122837{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     check_uptime. . . . . $enable_check_uptime" >&5
122838$as_echo "    check_uptime. . . . . $enable_check_uptime" >&6; }
122839{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     connectivity. . . . . $enable_connectivity" >&5
122840$as_echo "    connectivity. . . . . $enable_connectivity" >&6; }
122841{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     conntrack . . . . . . $enable_conntrack" >&5
122842$as_echo "    conntrack . . . . . . $enable_conntrack" >&6; }
122843{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     contextswitch . . . . $enable_contextswitch" >&5
122844$as_echo "    contextswitch . . . . $enable_contextswitch" >&6; }
122845{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     cpu . . . . . . . . . $enable_cpu" >&5
122846$as_echo "    cpu . . . . . . . . . $enable_cpu" >&6; }
122847{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     cpufreq . . . . . . . $enable_cpufreq" >&5
122848$as_echo "    cpufreq . . . . . . . $enable_cpufreq" >&6; }
122849{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     cpusleep  . . . . . . $enable_cpusleep" >&5
122850$as_echo "    cpusleep  . . . . . . $enable_cpusleep" >&6; }
122851{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     csv . . . . . . . . . $enable_csv" >&5
122852$as_echo "    csv . . . . . . . . . $enable_csv" >&6; }
122853{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     curl  . . . . . . . . $enable_curl" >&5
122854$as_echo "    curl  . . . . . . . . $enable_curl" >&6; }
122855{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     curl_json . . . . . . $enable_curl_json" >&5
122856$as_echo "    curl_json . . . . . . $enable_curl_json" >&6; }
122857{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     curl_xml  . . . . . . $enable_curl_xml" >&5
122858$as_echo "    curl_xml  . . . . . . $enable_curl_xml" >&6; }
122859{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     dbi . . . . . . . . . $enable_dbi" >&5
122860$as_echo "    dbi . . . . . . . . . $enable_dbi" >&6; }
122861{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     dcpmm  . . . . . .  . $enable_dcpmm" >&5
122862$as_echo "    dcpmm  . . . . . .  . $enable_dcpmm" >&6; }
122863{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     df  . . . . . . . . . $enable_df" >&5
122864$as_echo "    df  . . . . . . . . . $enable_df" >&6; }
122865{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     disk  . . . . . . . . $enable_disk" >&5
122866$as_echo "    disk  . . . . . . . . $enable_disk" >&6; }
122867{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     dns . . . . . . . . . $enable_dns" >&5
122868$as_echo "    dns . . . . . . . . . $enable_dns" >&6; }
122869{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     dpdkevents. . . . . . $enable_dpdkevents" >&5
122870$as_echo "    dpdkevents. . . . . . $enable_dpdkevents" >&6; }
122871{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     dpdkstat  . . . . . . $enable_dpdkstat" >&5
122872$as_echo "    dpdkstat  . . . . . . $enable_dpdkstat" >&6; }
122873{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     dpdk_telemetry. . . . $enable_dpdk_telemetry" >&5
122874$as_echo "    dpdk_telemetry. . . . $enable_dpdk_telemetry" >&6; }
122875{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     drbd  . . . . . . . . $enable_drbd" >&5
122876$as_echo "    drbd  . . . . . . . . $enable_drbd" >&6; }
122877{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     email . . . . . . . . $enable_email" >&5
122878$as_echo "    email . . . . . . . . $enable_email" >&6; }
122879{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     entropy . . . . . . . $enable_entropy" >&5
122880$as_echo "    entropy . . . . . . . $enable_entropy" >&6; }
122881{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     ethstat . . . . . . . $enable_ethstat" >&5
122882$as_echo "    ethstat . . . . . . . $enable_ethstat" >&6; }
122883{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     exec  . . . . . . . . $enable_exec" >&5
122884$as_echo "    exec  . . . . . . . . $enable_exec" >&6; }
122885{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     fhcount . . . . . . . $enable_fhcount" >&5
122886$as_echo "    fhcount . . . . . . . $enable_fhcount" >&6; }
122887{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     filecount . . . . . . $enable_filecount" >&5
122888$as_echo "    filecount . . . . . . $enable_filecount" >&6; }
122889{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     fscache . . . . . . . $enable_fscache" >&5
122890$as_echo "    fscache . . . . . . . $enable_fscache" >&6; }
122891{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     gmond . . . . . . . . $enable_gmond" >&5
122892$as_echo "    gmond . . . . . . . . $enable_gmond" >&6; }
122893{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     gps . . . . . . . . . $enable_gps" >&5
122894$as_echo "    gps . . . . . . . . . $enable_gps" >&6; }
122895{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     gpu_nvidia  . . . . . $enable_gpu_nvidia" >&5
122896$as_echo "    gpu_nvidia  . . . . . $enable_gpu_nvidia" >&6; }
122897{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     grpc  . . . . . . . . $enable_grpc" >&5
122898$as_echo "    grpc  . . . . . . . . $enable_grpc" >&6; }
122899{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     hddtemp . . . . . . . $enable_hddtemp" >&5
122900$as_echo "    hddtemp . . . . . . . $enable_hddtemp" >&6; }
122901{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     hugepages . . . . . . $enable_hugepages" >&5
122902$as_echo "    hugepages . . . . . . $enable_hugepages" >&6; }
122903{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     infiniband  . . . . . $enable_infiniband" >&5
122904$as_echo "    infiniband  . . . . . $enable_infiniband" >&6; }
122905{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     intel_pmu . . . . . . $enable_intel_pmu" >&5
122906$as_echo "    intel_pmu . . . . . . $enable_intel_pmu" >&6; }
122907{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     intel_rdt . . . . . . $enable_intel_rdt" >&5
122908$as_echo "    intel_rdt . . . . . . $enable_intel_rdt" >&6; }
122909{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     interface . . . . . . $enable_interface" >&5
122910$as_echo "    interface . . . . . . $enable_interface" >&6; }
122911{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     ipc . . . . . . . . . $enable_ipc" >&5
122912$as_echo "    ipc . . . . . . . . . $enable_ipc" >&6; }
122913{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     ipmi  . . . . . . . . $enable_ipmi" >&5
122914$as_echo "    ipmi  . . . . . . . . $enable_ipmi" >&6; }
122915{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     iptables  . . . . . . $enable_iptables" >&5
122916$as_echo "    iptables  . . . . . . $enable_iptables" >&6; }
122917{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     ipstats . . . . . . . $enable_ipstats" >&5
122918$as_echo "    ipstats . . . . . . . $enable_ipstats" >&6; }
122919{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     ipvs  . . . . . . . . $enable_ipvs" >&5
122920$as_echo "    ipvs  . . . . . . . . $enable_ipvs" >&6; }
122921{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     irq . . . . . . . . . $enable_irq" >&5
122922$as_echo "    irq . . . . . . . . . $enable_irq" >&6; }
122923{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     java  . . . . . . . . $enable_java" >&5
122924$as_echo "    java  . . . . . . . . $enable_java" >&6; }
122925{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     load  . . . . . . . . $enable_load" >&5
122926$as_echo "    load  . . . . . . . . $enable_load" >&6; }
122927{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     logfile . . . . . . . $enable_logfile" >&5
122928$as_echo "    logfile . . . . . . . $enable_logfile" >&6; }
122929{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     logparser . . . . . . $enable_logparser" >&5
122930$as_echo "    logparser . . . . . . $enable_logparser" >&6; }
122931{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     log_logstash  . . . . $enable_log_logstash" >&5
122932$as_echo "    log_logstash  . . . . $enable_log_logstash" >&6; }
122933{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     lpar  . . . . . . . . $enable_lpar" >&5
122934$as_echo "    lpar  . . . . . . . . $enable_lpar" >&6; }
122935{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     lua . . . . . . . . . $enable_lua" >&5
122936$as_echo "    lua . . . . . . . . . $enable_lua" >&6; }
122937{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     madwifi . . . . . . . $enable_madwifi" >&5
122938$as_echo "    madwifi . . . . . . . $enable_madwifi" >&6; }
122939{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     match_empty_counter . $enable_match_empty_counter" >&5
122940$as_echo "    match_empty_counter . $enable_match_empty_counter" >&6; }
122941{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     match_hashed  . . . . $enable_match_hashed" >&5
122942$as_echo "    match_hashed  . . . . $enable_match_hashed" >&6; }
122943{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     match_regex . . . . . $enable_match_regex" >&5
122944$as_echo "    match_regex . . . . . $enable_match_regex" >&6; }
122945{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     match_timediff  . . . $enable_match_timediff" >&5
122946$as_echo "    match_timediff  . . . $enable_match_timediff" >&6; }
122947{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     match_value . . . . . $enable_match_value" >&5
122948$as_echo "    match_value . . . . . $enable_match_value" >&6; }
122949{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     mbmon . . . . . . . . $enable_mbmon" >&5
122950$as_echo "    mbmon . . . . . . . . $enable_mbmon" >&6; }
122951{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     mcelog  . . . . . . . $enable_mcelog" >&5
122952$as_echo "    mcelog  . . . . . . . $enable_mcelog" >&6; }
122953{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     md  . . . . . . . . . $enable_md" >&5
122954$as_echo "    md  . . . . . . . . . $enable_md" >&6; }
122955{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     mdevents  . . . . . . $enable_mdevents" >&5
122956$as_echo "    mdevents  . . . . . . $enable_mdevents" >&6; }
122957{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     memcachec . . . . . . $enable_memcachec" >&5
122958$as_echo "    memcachec . . . . . . $enable_memcachec" >&6; }
122959{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     memcached . . . . . . $enable_memcached" >&5
122960$as_echo "    memcached . . . . . . $enable_memcached" >&6; }
122961{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     memory  . . . . . . . $enable_memory" >&5
122962$as_echo "    memory  . . . . . . . $enable_memory" >&6; }
122963{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     mic . . . . . . . . . $enable_mic" >&5
122964$as_echo "    mic . . . . . . . . . $enable_mic" >&6; }
122965{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     modbus  . . . . . . . $enable_modbus" >&5
122966$as_echo "    modbus  . . . . . . . $enable_modbus" >&6; }
122967{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     mqtt  . . . . . . . . $enable_mqtt" >&5
122968$as_echo "    mqtt  . . . . . . . . $enable_mqtt" >&6; }
122969{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     multimeter  . . . . . $enable_multimeter" >&5
122970$as_echo "    multimeter  . . . . . $enable_multimeter" >&6; }
122971{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     mysql . . . . . . . . $enable_mysql" >&5
122972$as_echo "    mysql . . . . . . . . $enable_mysql" >&6; }
122973{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     netapp  . . . . . . . $enable_netapp" >&5
122974$as_echo "    netapp  . . . . . . . $enable_netapp" >&6; }
122975{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     netlink . . . . . . . $enable_netlink" >&5
122976$as_echo "    netlink . . . . . . . $enable_netlink" >&6; }
122977{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     netstat_udp . . . . . $enable_netstat_udp" >&5
122978$as_echo "    netstat_udp . . . . . $enable_netstat_udp" >&6; }
122979{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     network . . . . . . . $enable_network" >&5
122980$as_echo "    network . . . . . . . $enable_network" >&6; }
122981{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     nfs . . . . . . . . . $enable_nfs" >&5
122982$as_echo "    nfs . . . . . . . . . $enable_nfs" >&6; }
122983{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     nginx . . . . . . . . $enable_nginx" >&5
122984$as_echo "    nginx . . . . . . . . $enable_nginx" >&6; }
122985{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     notify_desktop  . . . $enable_notify_desktop" >&5
122986$as_echo "    notify_desktop  . . . $enable_notify_desktop" >&6; }
122987{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     notify_email  . . . . $enable_notify_email" >&5
122988$as_echo "    notify_email  . . . . $enable_notify_email" >&6; }
122989{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     notify_nagios . . . . $enable_notify_nagios" >&5
122990$as_echo "    notify_nagios . . . . $enable_notify_nagios" >&6; }
122991{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     ntpd  . . . . . . . . $enable_ntpd" >&5
122992$as_echo "    ntpd  . . . . . . . . $enable_ntpd" >&6; }
122993{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     numa  . . . . . . . . $enable_numa" >&5
122994$as_echo "    numa  . . . . . . . . $enable_numa" >&6; }
122995{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     nut . . . . . . . . . $enable_nut" >&5
122996$as_echo "    nut . . . . . . . . . $enable_nut" >&6; }
122997{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     olsrd . . . . . . . . $enable_olsrd" >&5
122998$as_echo "    olsrd . . . . . . . . $enable_olsrd" >&6; }
122999{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     onewire . . . . . . . $enable_onewire" >&5
123000$as_echo "    onewire . . . . . . . $enable_onewire" >&6; }
123001{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     openldap  . . . . . . $enable_openldap" >&5
123002$as_echo "    openldap  . . . . . . $enable_openldap" >&6; }
123003{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     openvpn . . . . . . . $enable_openvpn" >&5
123004$as_echo "    openvpn . . . . . . . $enable_openvpn" >&6; }
123005{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     oracle  . . . . . . . $enable_oracle" >&5
123006$as_echo "    oracle  . . . . . . . $enable_oracle" >&6; }
123007{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     ovs_events  . . . . . $enable_ovs_events" >&5
123008$as_echo "    ovs_events  . . . . . $enable_ovs_events" >&6; }
123009{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     ovs_stats . . . . . . $enable_ovs_stats" >&5
123010$as_echo "    ovs_stats . . . . . . $enable_ovs_stats" >&6; }
123011{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     pcie_errors . . . . . $enable_pcie_errors" >&5
123012$as_echo "    pcie_errors . . . . . $enable_pcie_errors" >&6; }
123013{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     perl  . . . . . . . . $enable_perl" >&5
123014$as_echo "    perl  . . . . . . . . $enable_perl" >&6; }
123015{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     pf  . . . . . . . . . $enable_pf" >&5
123016$as_echo "    pf  . . . . . . . . . $enable_pf" >&6; }
123017{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     pinba . . . . . . . . $enable_pinba" >&5
123018$as_echo "    pinba . . . . . . . . $enable_pinba" >&6; }
123019{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     ping  . . . . . . . . $enable_ping" >&5
123020$as_echo "    ping  . . . . . . . . $enable_ping" >&6; }
123021{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     postgresql  . . . . . $enable_postgresql" >&5
123022$as_echo "    postgresql  . . . . . $enable_postgresql" >&6; }
123023{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     powerdns  . . . . . . $enable_powerdns" >&5
123024$as_echo "    powerdns  . . . . . . $enable_powerdns" >&6; }
123025{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     processes . . . . . . $enable_processes" >&5
123026$as_echo "    processes . . . . . . $enable_processes" >&6; }
123027{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     procevent . . . . . . $enable_procevent" >&5
123028$as_echo "    procevent . . . . . . $enable_procevent" >&6; }
123029{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     protocols . . . . . . $enable_protocols" >&5
123030$as_echo "    protocols . . . . . . $enable_protocols" >&6; }
123031{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     python  . . . . . . . $enable_python" >&5
123032$as_echo "    python  . . . . . . . $enable_python" >&6; }
123033{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     redfish . . . . . . . $enable_redfish" >&5
123034$as_echo "    redfish . . . . . . . $enable_redfish" >&6; }
123035{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     redis . . . . . . . . $enable_redis" >&5
123036$as_echo "    redis . . . . . . . . $enable_redis" >&6; }
123037{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     routeros  . . . . . . $enable_routeros" >&5
123038$as_echo "    routeros  . . . . . . $enable_routeros" >&6; }
123039{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     rrdcached . . . . . . $enable_rrdcached" >&5
123040$as_echo "    rrdcached . . . . . . $enable_rrdcached" >&6; }
123041{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     rrdtool . . . . . . . $enable_rrdtool" >&5
123042$as_echo "    rrdtool . . . . . . . $enable_rrdtool" >&6; }
123043{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     sensors . . . . . . . $enable_sensors" >&5
123044$as_echo "    sensors . . . . . . . $enable_sensors" >&6; }
123045{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     serial  . . . . . . . $enable_serial" >&5
123046$as_echo "    serial  . . . . . . . $enable_serial" >&6; }
123047{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     sigrok  . . . . . . . $enable_sigrok" >&5
123048$as_echo "    sigrok  . . . . . . . $enable_sigrok" >&6; }
123049{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     slurm . . . . . . . . $enable_slurm" >&5
123050$as_echo "    slurm . . . . . . . . $enable_slurm" >&6; }
123051{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     smart . . . . . . . . $enable_smart" >&5
123052$as_echo "    smart . . . . . . . . $enable_smart" >&6; }
123053{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     snmp  . . . . . . . . $enable_snmp" >&5
123054$as_echo "    snmp  . . . . . . . . $enable_snmp" >&6; }
123055{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     snmp_agent  . . . . . $enable_snmp_agent" >&5
123056$as_echo "    snmp_agent  . . . . . $enable_snmp_agent" >&6; }
123057{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     statsd  . . . . . . . $enable_statsd" >&5
123058$as_echo "    statsd  . . . . . . . $enable_statsd" >&6; }
123059{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     swap  . . . . . . . . $enable_swap" >&5
123060$as_echo "    swap  . . . . . . . . $enable_swap" >&6; }
123061{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     synproxy  . . . . . . $enable_synproxy" >&5
123062$as_echo "    synproxy  . . . . . . $enable_synproxy" >&6; }
123063{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     sysevent. . . . . . . $enable_sysevent" >&5
123064$as_echo "    sysevent. . . . . . . $enable_sysevent" >&6; }
123065{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     syslog  . . . . . . . $enable_syslog" >&5
123066$as_echo "    syslog  . . . . . . . $enable_syslog" >&6; }
123067{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     table . . . . . . . . $enable_table" >&5
123068$as_echo "    table . . . . . . . . $enable_table" >&6; }
123069{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     tail_csv  . . . . . . $enable_tail_csv" >&5
123070$as_echo "    tail_csv  . . . . . . $enable_tail_csv" >&6; }
123071{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     tail  . . . . . . . . $enable_tail" >&5
123072$as_echo "    tail  . . . . . . . . $enable_tail" >&6; }
123073{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     tape  . . . . . . . . $enable_tape" >&5
123074$as_echo "    tape  . . . . . . . . $enable_tape" >&6; }
123075{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     target_notification . $enable_target_notification" >&5
123076$as_echo "    target_notification . $enable_target_notification" >&6; }
123077{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     target_replace  . . . $enable_target_replace" >&5
123078$as_echo "    target_replace  . . . $enable_target_replace" >&6; }
123079{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     target_scale  . . . . $enable_target_scale" >&5
123080$as_echo "    target_scale  . . . . $enable_target_scale" >&6; }
123081{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     target_set  . . . . . $enable_target_set" >&5
123082$as_echo "    target_set  . . . . . $enable_target_set" >&6; }
123083{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     target_v5upgrade  . . $enable_target_v5upgrade" >&5
123084$as_echo "    target_v5upgrade  . . $enable_target_v5upgrade" >&6; }
123085{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     tcpconns  . . . . . . $enable_tcpconns" >&5
123086$as_echo "    tcpconns  . . . . . . $enable_tcpconns" >&6; }
123087{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     teamspeak2  . . . . . $enable_teamspeak2" >&5
123088$as_echo "    teamspeak2  . . . . . $enable_teamspeak2" >&6; }
123089{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     ted . . . . . . . . . $enable_ted" >&5
123090$as_echo "    ted . . . . . . . . . $enable_ted" >&6; }
123091{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     thermal . . . . . . . $enable_thermal" >&5
123092$as_echo "    thermal . . . . . . . $enable_thermal" >&6; }
123093{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     threshold . . . . . . $enable_threshold" >&5
123094$as_echo "    threshold . . . . . . $enable_threshold" >&6; }
123095{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     tokyotyrant . . . . . $enable_tokyotyrant" >&5
123096$as_echo "    tokyotyrant . . . . . $enable_tokyotyrant" >&6; }
123097{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     turbostat . . . . . . $enable_turbostat" >&5
123098$as_echo "    turbostat . . . . . . $enable_turbostat" >&6; }
123099{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     ubi . . . . . . . . . $enable_ubi" >&5
123100$as_echo "    ubi . . . . . . . . . $enable_ubi" >&6; }
123101{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     unixsock  . . . . . . $enable_unixsock" >&5
123102$as_echo "    unixsock  . . . . . . $enable_unixsock" >&6; }
123103{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     uptime  . . . . . . . $enable_uptime" >&5
123104$as_echo "    uptime  . . . . . . . $enable_uptime" >&6; }
123105{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     users . . . . . . . . $enable_users" >&5
123106$as_echo "    users . . . . . . . . $enable_users" >&6; }
123107{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     uuid  . . . . . . . . $enable_uuid" >&5
123108$as_echo "    uuid  . . . . . . . . $enable_uuid" >&6; }
123109{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     varnish . . . . . . . $enable_varnish" >&5
123110$as_echo "    varnish . . . . . . . $enable_varnish" >&6; }
123111{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     virt  . . . . . . . . $enable_virt" >&5
123112$as_echo "    virt  . . . . . . . . $enable_virt" >&6; }
123113{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     vmem  . . . . . . . . $enable_vmem" >&5
123114$as_echo "    vmem  . . . . . . . . $enable_vmem" >&6; }
123115{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     vserver . . . . . . . $enable_vserver" >&5
123116$as_echo "    vserver . . . . . . . $enable_vserver" >&6; }
123117{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     wireless  . . . . . . $enable_wireless" >&5
123118$as_echo "    wireless  . . . . . . $enable_wireless" >&6; }
123119{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     write_graphite  . . . $enable_write_graphite" >&5
123120$as_echo "    write_graphite  . . . $enable_write_graphite" >&6; }
123121{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     write_http  . . . . . $enable_write_http" >&5
123122$as_echo "    write_http  . . . . . $enable_write_http" >&6; }
123123{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     write_influxdb_udp. . $enable_write_influxdb_udp" >&5
123124$as_echo "    write_influxdb_udp. . $enable_write_influxdb_udp" >&6; }
123125{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     write_kafka . . . . . $enable_write_kafka" >&5
123126$as_echo "    write_kafka . . . . . $enable_write_kafka" >&6; }
123127{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     write_log . . . . . . $enable_write_log" >&5
123128$as_echo "    write_log . . . . . . $enable_write_log" >&6; }
123129{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     write_mongodb . . . . $enable_write_mongodb" >&5
123130$as_echo "    write_mongodb . . . . $enable_write_mongodb" >&6; }
123131{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     write_prometheus. . . $enable_write_prometheus" >&5
123132$as_echo "    write_prometheus. . . $enable_write_prometheus" >&6; }
123133{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     write_redis . . . . . $enable_write_redis" >&5
123134$as_echo "    write_redis . . . . . $enable_write_redis" >&6; }
123135{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     write_riemann . . . . $enable_write_riemann" >&5
123136$as_echo "    write_riemann . . . . $enable_write_riemann" >&6; }
123137{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     write_sensu . . . . . $enable_write_sensu" >&5
123138$as_echo "    write_sensu . . . . . $enable_write_sensu" >&6; }
123139{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     write_stackdriver . . $enable_write_stackdriver" >&5
123140$as_echo "    write_stackdriver . . $enable_write_stackdriver" >&6; }
123141{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     write_syslog . .  . . $enable_write_syslog" >&5
123142$as_echo "    write_syslog . .  . . $enable_write_syslog" >&6; }
123143{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     write_tsdb  . . . . . $enable_write_tsdb" >&5
123144$as_echo "    write_tsdb  . . . . . $enable_write_tsdb" >&6; }
123145{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     xencpu  . . . . . . . $enable_xencpu" >&5
123146$as_echo "    xencpu  . . . . . . . $enable_xencpu" >&6; }
123147{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     xmms  . . . . . . . . $enable_xmms" >&5
123148$as_echo "    xmms  . . . . . . . . $enable_xmms" >&6; }
123149{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     zfs_arc . . . . . . . $enable_zfs_arc" >&5
123150$as_echo "    zfs_arc . . . . . . . $enable_zfs_arc" >&6; }
123151{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     zone  . . . . . . . . $enable_zone" >&5
123152$as_echo "    zone  . . . . . . . . $enable_zone" >&6; }
123153{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     zookeeper . . . . . . $enable_zookeeper" >&5
123154$as_echo "    zookeeper . . . . . . $enable_zookeeper" >&6; }
123155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
123156$as_echo "" >&6; }
123157
123158if test "x$dependency_error" = "xyes"; then
123159  as_fn_error $? "\"Some plugins are missing dependencies - see the summary above for details\"" "$LINENO" 5
123160fi
123161
123162if test "x$dependency_warning" = "xyes"; then
123163  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Some plugins seem to have missing dependencies but have been enabled forcibly - see the summary above for details\"" >&5
123164$as_echo "$as_me: WARNING: \"Some plugins seem to have missing dependencies but have been enabled forcibly - see the summary above for details\"" >&2;}
123165fi
123166
123167# vim: set fdm=marker sw=2 sts=2 ts=2 et :
123168
123169