Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Move INSTALL, LICENSE, README, THANKS and TODO into root directory
[xestiaab/.git] / source / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Xestia Address Book 0.05.
4 #
5 # Report bugs to <bugs@xestia.co.uk>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and bugs@xestia.co.uk
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293   { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302   return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='Xestia Address Book'
582 PACKAGE_TARNAME='xestia-address-book'
583 PACKAGE_VERSION='0.05'
584 PACKAGE_STRING='Xestia Address Book 0.05'
585 PACKAGE_BUGREPORT='bugs@xestia.co.uk'
586 PACKAGE_URL=''
588 # Factoring default headers for most tests.
589 ac_includes_default="\
590 #include <stdio.h>
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
593 #endif
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
596 #endif
597 #ifdef STDC_HEADERS
598 # include <stdlib.h>
599 # include <stddef.h>
600 #else
601 # ifdef HAVE_STDLIB_H
602 #  include <stdlib.h>
603 # endif
604 #endif
605 #ifdef HAVE_STRING_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 #  include <memory.h>
608 # endif
609 # include <string.h>
610 #endif
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
613 #endif
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
616 #endif
617 #ifdef HAVE_STDINT_H
618 # include <stdint.h>
619 #endif
620 #ifdef HAVE_UNISTD_H
621 # include <unistd.h>
622 #endif"
624 ac_subst_vars='LTLIBOBJS
625 LIBOBJS
626 GTEST
627 GTEST_FOUND_FALSE
628 GTEST_FOUND_TRUE
629 DBGSTATUS
630 DBGOUT
631 DEBUG_FALSE
632 DEBUG_TRUE
633 FOUND_XML2CONFIG_RES_FALSE
634 FOUND_XML2CONFIG_RES_TRUE
635 FOUND_XML2CONFIG
636 FOUND_UUIDGEN_RES_FALSE
637 FOUND_UUIDGEN_RES_TRUE
638 FOUND_UUIDGEN
639 FOUND_FILE_RES_FALSE
640 FOUND_FILE_RES_TRUE
641 FOUND_FILE
642 FOUND_CURLCONFIG_RES_FALSE
643 FOUND_CURLCONFIG_RES_TRUE
644 FOUND_CURLCONFIG
645 CURL_LIBS
646 CURL_CFLAGS
647 SFML_LIBS
648 SFML_CFLAGS
649 PKG_CONFIG_LIBDIR
650 PKG_CONFIG_PATH
651 PKG_CONFIG
652 WX_VERSION_MICRO
653 WX_VERSION_MINOR
654 WX_VERSION_MAJOR
655 WX_RESCOMP
656 WX_VERSION
657 WX_LIBS_STATIC
658 WX_LIBS
659 WX_CXXFLAGS_ONLY
660 WX_CFLAGS_ONLY
661 WX_CXXFLAGS
662 WX_CFLAGS
663 WX_CPPFLAGS
664 WX_CONFIG_PATH
665 EGREP
666 GREP
667 CXXCPP
668 DATAROOTDIR
669 BINDIR
670 PREFIX
671 CPP
672 ac_ct_CC
673 CFLAGS
674 CC
675 OBJEXT
676 EXEEXT
677 ac_ct_CXX
678 CPPFLAGS
679 LDFLAGS
680 CXXFLAGS
681 CXX
682 target_alias
683 host_alias
684 build_alias
685 LIBS
686 ECHO_T
687 ECHO_N
688 ECHO_C
689 DEFS
690 mandir
691 localedir
692 libdir
693 psdir
694 pdfdir
695 dvidir
696 htmldir
697 infodir
698 docdir
699 oldincludedir
700 includedir
701 localstatedir
702 sharedstatedir
703 sysconfdir
704 datadir
705 datarootdir
706 libexecdir
707 sbindir
708 bindir
709 program_transform_name
710 prefix
711 exec_prefix
712 PACKAGE_URL
713 PACKAGE_BUGREPORT
714 PACKAGE_STRING
715 PACKAGE_VERSION
716 PACKAGE_TARNAME
717 PACKAGE_NAME
718 PATH_SEPARATOR
719 SHELL'
720 ac_subst_files=''
721 ac_user_opts='
722 enable_option_checking
723 with_wxdir
724 with_wx_config
725 with_wx_prefix
726 with_wx_exec_prefix
727 enable_debug
729       ac_precious_vars='build_alias
730 host_alias
731 target_alias
732 CXX
733 CXXFLAGS
734 LDFLAGS
735 LIBS
736 CPPFLAGS
737 CCC
738 CC
739 CFLAGS
740 CPP
741 CXXCPP
742 PKG_CONFIG
743 PKG_CONFIG_PATH
744 PKG_CONFIG_LIBDIR
745 SFML_CFLAGS
746 SFML_LIBS
747 CURL_CFLAGS
748 CURL_LIBS'
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 ac_unrecognized_opts=
755 ac_unrecognized_sep=
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
758 cache_file=/dev/null
759 exec_prefix=NONE
760 no_create=
761 no_recursion=
762 prefix=NONE
763 program_prefix=NONE
764 program_suffix=NONE
765 program_transform_name=s,x,x,
766 silent=
767 site=
768 srcdir=
769 verbose=
770 x_includes=NONE
771 x_libraries=NONE
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir='${exec_prefix}/bin'
780 sbindir='${exec_prefix}/sbin'
781 libexecdir='${exec_prefix}/libexec'
782 datarootdir='${prefix}/share'
783 datadir='${datarootdir}'
784 sysconfdir='${prefix}/etc'
785 sharedstatedir='${prefix}/com'
786 localstatedir='${prefix}/var'
787 includedir='${prefix}/include'
788 oldincludedir='/usr/include'
789 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
790 infodir='${datarootdir}/info'
791 htmldir='${docdir}'
792 dvidir='${docdir}'
793 pdfdir='${docdir}'
794 psdir='${docdir}'
795 libdir='${exec_prefix}/lib'
796 localedir='${datarootdir}/locale'
797 mandir='${datarootdir}/man'
799 ac_prev=
800 ac_dashdash=
801 for ac_option
802 do
803   # If the previous option needs an argument, assign it.
804   if test -n "$ac_prev"; then
805     eval $ac_prev=\$ac_option
806     ac_prev=
807     continue
808   fi
810   case $ac_option in
811   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812   *=)   ac_optarg= ;;
813   *)    ac_optarg=yes ;;
814   esac
816   # Accept the important Cygnus configure options, so we can diagnose typos.
818   case $ac_dashdash$ac_option in
819   --)
820     ac_dashdash=yes ;;
822   -bindir | --bindir | --bindi | --bind | --bin | --bi)
823     ac_prev=bindir ;;
824   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
825     bindir=$ac_optarg ;;
827   -build | --build | --buil | --bui | --bu)
828     ac_prev=build_alias ;;
829   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
830     build_alias=$ac_optarg ;;
832   -cache-file | --cache-file | --cache-fil | --cache-fi \
833   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
834     ac_prev=cache_file ;;
835   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
836   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
837     cache_file=$ac_optarg ;;
839   --config-cache | -C)
840     cache_file=config.cache ;;
842   -datadir | --datadir | --datadi | --datad)
843     ac_prev=datadir ;;
844   -datadir=* | --datadir=* | --datadi=* | --datad=*)
845     datadir=$ac_optarg ;;
847   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
848   | --dataroo | --dataro | --datar)
849     ac_prev=datarootdir ;;
850   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
851   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
852     datarootdir=$ac_optarg ;;
854   -disable-* | --disable-*)
855     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
856     # Reject names that are not valid shell variable names.
857     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
858       as_fn_error $? "invalid feature name: $ac_useropt"
859     ac_useropt_orig=$ac_useropt
860     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861     case $ac_user_opts in
862       *"
863 "enable_$ac_useropt"
864 "*) ;;
865       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
866          ac_unrecognized_sep=', ';;
867     esac
868     eval enable_$ac_useropt=no ;;
870   -docdir | --docdir | --docdi | --doc | --do)
871     ac_prev=docdir ;;
872   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
873     docdir=$ac_optarg ;;
875   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
876     ac_prev=dvidir ;;
877   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
878     dvidir=$ac_optarg ;;
880   -enable-* | --enable-*)
881     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
882     # Reject names that are not valid shell variable names.
883     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884       as_fn_error $? "invalid feature name: $ac_useropt"
885     ac_useropt_orig=$ac_useropt
886     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887     case $ac_user_opts in
888       *"
889 "enable_$ac_useropt"
890 "*) ;;
891       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
892          ac_unrecognized_sep=', ';;
893     esac
894     eval enable_$ac_useropt=\$ac_optarg ;;
896   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
897   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
898   | --exec | --exe | --ex)
899     ac_prev=exec_prefix ;;
900   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
901   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
902   | --exec=* | --exe=* | --ex=*)
903     exec_prefix=$ac_optarg ;;
905   -gas | --gas | --ga | --g)
906     # Obsolete; use --with-gas.
907     with_gas=yes ;;
909   -help | --help | --hel | --he | -h)
910     ac_init_help=long ;;
911   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
912     ac_init_help=recursive ;;
913   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
914     ac_init_help=short ;;
916   -host | --host | --hos | --ho)
917     ac_prev=host_alias ;;
918   -host=* | --host=* | --hos=* | --ho=*)
919     host_alias=$ac_optarg ;;
921   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
922     ac_prev=htmldir ;;
923   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
924   | --ht=*)
925     htmldir=$ac_optarg ;;
927   -includedir | --includedir | --includedi | --included | --include \
928   | --includ | --inclu | --incl | --inc)
929     ac_prev=includedir ;;
930   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
931   | --includ=* | --inclu=* | --incl=* | --inc=*)
932     includedir=$ac_optarg ;;
934   -infodir | --infodir | --infodi | --infod | --info | --inf)
935     ac_prev=infodir ;;
936   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
937     infodir=$ac_optarg ;;
939   -libdir | --libdir | --libdi | --libd)
940     ac_prev=libdir ;;
941   -libdir=* | --libdir=* | --libdi=* | --libd=*)
942     libdir=$ac_optarg ;;
944   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
945   | --libexe | --libex | --libe)
946     ac_prev=libexecdir ;;
947   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
948   | --libexe=* | --libex=* | --libe=*)
949     libexecdir=$ac_optarg ;;
951   -localedir | --localedir | --localedi | --localed | --locale)
952     ac_prev=localedir ;;
953   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
954     localedir=$ac_optarg ;;
956   -localstatedir | --localstatedir | --localstatedi | --localstated \
957   | --localstate | --localstat | --localsta | --localst | --locals)
958     ac_prev=localstatedir ;;
959   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
960   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
961     localstatedir=$ac_optarg ;;
963   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
964     ac_prev=mandir ;;
965   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
966     mandir=$ac_optarg ;;
968   -nfp | --nfp | --nf)
969     # Obsolete; use --without-fp.
970     with_fp=no ;;
972   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
973   | --no-cr | --no-c | -n)
974     no_create=yes ;;
976   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
977   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
978     no_recursion=yes ;;
980   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
981   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
982   | --oldin | --oldi | --old | --ol | --o)
983     ac_prev=oldincludedir ;;
984   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
985   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
986   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
987     oldincludedir=$ac_optarg ;;
989   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
990     ac_prev=prefix ;;
991   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
992     prefix=$ac_optarg ;;
994   -program-prefix | --program-prefix | --program-prefi | --program-pref \
995   | --program-pre | --program-pr | --program-p)
996     ac_prev=program_prefix ;;
997   -program-prefix=* | --program-prefix=* | --program-prefi=* \
998   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
999     program_prefix=$ac_optarg ;;
1001   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1002   | --program-suf | --program-su | --program-s)
1003     ac_prev=program_suffix ;;
1004   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1005   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1006     program_suffix=$ac_optarg ;;
1008   -program-transform-name | --program-transform-name \
1009   | --program-transform-nam | --program-transform-na \
1010   | --program-transform-n | --program-transform- \
1011   | --program-transform | --program-transfor \
1012   | --program-transfo | --program-transf \
1013   | --program-trans | --program-tran \
1014   | --progr-tra | --program-tr | --program-t)
1015     ac_prev=program_transform_name ;;
1016   -program-transform-name=* | --program-transform-name=* \
1017   | --program-transform-nam=* | --program-transform-na=* \
1018   | --program-transform-n=* | --program-transform-=* \
1019   | --program-transform=* | --program-transfor=* \
1020   | --program-transfo=* | --program-transf=* \
1021   | --program-trans=* | --program-tran=* \
1022   | --progr-tra=* | --program-tr=* | --program-t=*)
1023     program_transform_name=$ac_optarg ;;
1025   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1026     ac_prev=pdfdir ;;
1027   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1028     pdfdir=$ac_optarg ;;
1030   -psdir | --psdir | --psdi | --psd | --ps)
1031     ac_prev=psdir ;;
1032   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1033     psdir=$ac_optarg ;;
1035   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036   | -silent | --silent | --silen | --sile | --sil)
1037     silent=yes ;;
1039   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1040     ac_prev=sbindir ;;
1041   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1042   | --sbi=* | --sb=*)
1043     sbindir=$ac_optarg ;;
1045   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1046   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1047   | --sharedst | --shareds | --shared | --share | --shar \
1048   | --sha | --sh)
1049     ac_prev=sharedstatedir ;;
1050   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1051   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1052   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1053   | --sha=* | --sh=*)
1054     sharedstatedir=$ac_optarg ;;
1056   -site | --site | --sit)
1057     ac_prev=site ;;
1058   -site=* | --site=* | --sit=*)
1059     site=$ac_optarg ;;
1061   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1062     ac_prev=srcdir ;;
1063   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1064     srcdir=$ac_optarg ;;
1066   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1067   | --syscon | --sysco | --sysc | --sys | --sy)
1068     ac_prev=sysconfdir ;;
1069   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1070   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1071     sysconfdir=$ac_optarg ;;
1073   -target | --target | --targe | --targ | --tar | --ta | --t)
1074     ac_prev=target_alias ;;
1075   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1076     target_alias=$ac_optarg ;;
1078   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1079     verbose=yes ;;
1081   -version | --version | --versio | --versi | --vers | -V)
1082     ac_init_version=: ;;
1084   -with-* | --with-*)
1085     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1086     # Reject names that are not valid shell variable names.
1087     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088       as_fn_error $? "invalid package name: $ac_useropt"
1089     ac_useropt_orig=$ac_useropt
1090     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091     case $ac_user_opts in
1092       *"
1093 "with_$ac_useropt"
1094 "*) ;;
1095       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1096          ac_unrecognized_sep=', ';;
1097     esac
1098     eval with_$ac_useropt=\$ac_optarg ;;
1100   -without-* | --without-*)
1101     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1102     # Reject names that are not valid shell variable names.
1103     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104       as_fn_error $? "invalid package name: $ac_useropt"
1105     ac_useropt_orig=$ac_useropt
1106     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107     case $ac_user_opts in
1108       *"
1109 "with_$ac_useropt"
1110 "*) ;;
1111       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1112          ac_unrecognized_sep=', ';;
1113     esac
1114     eval with_$ac_useropt=no ;;
1116   --x)
1117     # Obsolete; use --with-x.
1118     with_x=yes ;;
1120   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1121   | --x-incl | --x-inc | --x-in | --x-i)
1122     ac_prev=x_includes ;;
1123   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1124   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1125     x_includes=$ac_optarg ;;
1127   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1128   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1129     ac_prev=x_libraries ;;
1130   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1131   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1132     x_libraries=$ac_optarg ;;
1134   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1135 Try \`$0 --help' for more information"
1136     ;;
1138   *=*)
1139     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140     # Reject names that are not valid shell variable names.
1141     case $ac_envvar in #(
1142       '' | [0-9]* | *[!_$as_cr_alnum]* )
1143       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1144     esac
1145     eval $ac_envvar=\$ac_optarg
1146     export $ac_envvar ;;
1148   *)
1149     # FIXME: should be removed in autoconf 3.0.
1150     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1151     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1152       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1153     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1154     ;;
1156   esac
1157 done
1159 if test -n "$ac_prev"; then
1160   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1161   as_fn_error $? "missing argument to $ac_option"
1162 fi
1164 if test -n "$ac_unrecognized_opts"; then
1165   case $enable_option_checking in
1166     no) ;;
1167     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1168     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1169   esac
1170 fi
1172 # Check all directory arguments for consistency.
1173 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1174                 datadir sysconfdir sharedstatedir localstatedir includedir \
1175                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1176                 libdir localedir mandir
1177 do
1178   eval ac_val=\$$ac_var
1179   # Remove trailing slashes.
1180   case $ac_val in
1181     */ )
1182       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1183       eval $ac_var=\$ac_val;;
1184   esac
1185   # Be sure to have absolute directory names.
1186   case $ac_val in
1187     [\\/$]* | ?:[\\/]* )  continue;;
1188     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189   esac
1190   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1191 done
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1196 build=$build_alias
1197 host=$host_alias
1198 target=$target_alias
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202   if test "x$build_alias" = x; then
1203     cross_compiling=maybe
1204   elif test "x$build_alias" != "x$host_alias"; then
1205     cross_compiling=yes
1206   fi
1207 fi
1209 ac_tool_prefix=
1210 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212 test "$silent" = yes && exec 6>/dev/null
1215 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1216 ac_ls_di=`ls -di .` &&
1217 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1218   as_fn_error $? "working directory cannot be determined"
1219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220   as_fn_error $? "pwd does not report name of working directory"
1223 # Find the source files, if location was not specified.
1224 if test -z "$srcdir"; then
1225   ac_srcdir_defaulted=yes
1226   # Try the directory containing this script, then the parent directory.
1227   ac_confdir=`$as_dirname -- "$as_myself" ||
1228 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229          X"$as_myself" : 'X\(//\)[^/]' \| \
1230          X"$as_myself" : 'X\(//\)$' \| \
1231          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1232 $as_echo X"$as_myself" |
1233     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1234             s//\1/
1235             q
1236           }
1237           /^X\(\/\/\)[^/].*/{
1238             s//\1/
1239             q
1240           }
1241           /^X\(\/\/\)$/{
1242             s//\1/
1243             q
1244           }
1245           /^X\(\/\).*/{
1246             s//\1/
1247             q
1248           }
1249           s/.*/./; q'`
1250   srcdir=$ac_confdir
1251   if test ! -r "$srcdir/$ac_unique_file"; then
1252     srcdir=..
1253   fi
1254 else
1255   ac_srcdir_defaulted=no
1256 fi
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1259   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1260 fi
1261 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262 ac_abs_confdir=`(
1263         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1264         pwd)`
1265 # When building in place, set srcdir=.
1266 if test "$ac_abs_confdir" = "$ac_pwd"; then
1267   srcdir=.
1268 fi
1269 # Remove unnecessary trailing slashes from srcdir.
1270 # Double slashes in file names in object file debugging info
1271 # mess up M-x gdb in Emacs.
1272 case $srcdir in
1273 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274 esac
1275 for ac_var in $ac_precious_vars; do
1276   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1277   eval ac_env_${ac_var}_value=\$${ac_var}
1278   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1279   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1280 done
1283 # Report the --help message.
1285 if test "$ac_init_help" = "long"; then
1286   # Omit some internal or obsolete options to make the list less imposing.
1287   # This message is too long to be a string in the A/UX 3.1 sh.
1288   cat <<_ACEOF
1289 \`configure' configures Xestia Address Book 0.05 to adapt to many kinds of systems.
1291 Usage: $0 [OPTION]... [VAR=VALUE]...
1293 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1294 VAR=VALUE.  See below for descriptions of some of the useful variables.
1296 Defaults for the options are specified in brackets.
1298 Configuration:
1299   -h, --help              display this help and exit
1300       --help=short        display options specific to this package
1301       --help=recursive    display the short help of all the included packages
1302   -V, --version           display version information and exit
1303   -q, --quiet, --silent   do not print \`checking ...' messages
1304       --cache-file=FILE   cache test results in FILE [disabled]
1305   -C, --config-cache      alias for \`--cache-file=config.cache'
1306   -n, --no-create         do not create output files
1307       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1309 Installation directories:
1310   --prefix=PREFIX         install architecture-independent files in PREFIX
1311                           [$ac_default_prefix]
1312   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1313                           [PREFIX]
1315 By default, \`make install' will install all the files in
1316 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1317 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318 for instance \`--prefix=\$HOME'.
1320 For better control, use the options below.
1322 Fine tuning of the installation directories:
1323   --bindir=DIR            user executables [EPREFIX/bin]
1324   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1325   --libexecdir=DIR        program executables [EPREFIX/libexec]
1326   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1327   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1328   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1329   --libdir=DIR            object code libraries [EPREFIX/lib]
1330   --includedir=DIR        C header files [PREFIX/include]
1331   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1332   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1333   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1334   --infodir=DIR           info documentation [DATAROOTDIR/info]
1335   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1336   --mandir=DIR            man documentation [DATAROOTDIR/man]
1337   --docdir=DIR            documentation root
1338                           [DATAROOTDIR/doc/xestia-address-book]
1339   --htmldir=DIR           html documentation [DOCDIR]
1340   --dvidir=DIR            dvi documentation [DOCDIR]
1341   --pdfdir=DIR            pdf documentation [DOCDIR]
1342   --psdir=DIR             ps documentation [DOCDIR]
1343 _ACEOF
1345   cat <<\_ACEOF
1346 _ACEOF
1347 fi
1349 if test -n "$ac_init_help"; then
1350   case $ac_init_help in
1351      short | recursive ) echo "Configuration of Xestia Address Book 0.05:";;
1352    esac
1353   cat <<\_ACEOF
1355 Optional Features:
1356   --disable-option-checking  ignore unrecognized --enable/--with options
1357   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1358   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1359   --enable-debug          Enable debugging features for the build.
1361 Optional Packages:
1362   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1363   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1364   --with-wxdir=PATH       Use uninstalled version of wxWidgets in PATH
1365   --with-wx-config=CONFIG wx-config script to use (optional)
1366   --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
1367   --with-wx-exec-prefix=PREFIX
1368                           Exec prefix where wxWidgets is installed (optional)
1370 Some influential environment variables:
1371   CXX         C++ compiler command
1372   CXXFLAGS    C++ compiler flags
1373   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1374               nonstandard directory <lib dir>
1375   LIBS        libraries to pass to the linker, e.g. -l<library>
1376   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1377               you have headers in a nonstandard directory <include dir>
1378   CC          C compiler command
1379   CFLAGS      C compiler flags
1380   CPP         C preprocessor
1381   CXXCPP      C++ preprocessor
1382   PKG_CONFIG  path to pkg-config utility
1383   PKG_CONFIG_PATH
1384               directories to add to pkg-config's search path
1385   PKG_CONFIG_LIBDIR
1386               path overriding pkg-config's built-in search path
1387   SFML_CFLAGS C compiler flags for SFML, overriding pkg-config
1388   SFML_LIBS   linker flags for SFML, overriding pkg-config
1389   CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1390   CURL_LIBS   linker flags for CURL, overriding pkg-config
1392 Use these variables to override the choices made by `configure' or to help
1393 it to find libraries and programs with nonstandard names/locations.
1395 Report bugs to <bugs@xestia.co.uk>.
1396 _ACEOF
1397 ac_status=$?
1398 fi
1400 if test "$ac_init_help" = "recursive"; then
1401   # If there are subdirs, report their specific --help.
1402   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1403     test -d "$ac_dir" ||
1404       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1405       continue
1406     ac_builddir=.
1408 case "$ac_dir" in
1409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410 *)
1411   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1412   # A ".." for each directory in $ac_dir_suffix.
1413   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1414   case $ac_top_builddir_sub in
1415   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1417   esac ;;
1418 esac
1419 ac_abs_top_builddir=$ac_pwd
1420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1421 # for backward compatibility:
1422 ac_top_builddir=$ac_top_build_prefix
1424 case $srcdir in
1425   .)  # We are building in place.
1426     ac_srcdir=.
1427     ac_top_srcdir=$ac_top_builddir_sub
1428     ac_abs_top_srcdir=$ac_pwd ;;
1429   [\\/]* | ?:[\\/]* )  # Absolute name.
1430     ac_srcdir=$srcdir$ac_dir_suffix;
1431     ac_top_srcdir=$srcdir
1432     ac_abs_top_srcdir=$srcdir ;;
1433   *) # Relative name.
1434     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1435     ac_top_srcdir=$ac_top_build_prefix$srcdir
1436     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1437 esac
1438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1440     cd "$ac_dir" || { ac_status=$?; continue; }
1441     # Check for guested configure.
1442     if test -f "$ac_srcdir/configure.gnu"; then
1443       echo &&
1444       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1445     elif test -f "$ac_srcdir/configure"; then
1446       echo &&
1447       $SHELL "$ac_srcdir/configure" --help=recursive
1448     else
1449       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1450     fi || ac_status=$?
1451     cd "$ac_pwd" || { ac_status=$?; break; }
1452   done
1453 fi
1455 test -n "$ac_init_help" && exit $ac_status
1456 if $ac_init_version; then
1457   cat <<\_ACEOF
1458 Xestia Address Book configure 0.05
1459 generated by GNU Autoconf 2.69
1461 Copyright (C) 2012 Free Software Foundation, Inc.
1462 This configure script is free software; the Free Software Foundation
1463 gives unlimited permission to copy, distribute and modify it.
1464 _ACEOF
1465   exit
1466 fi
1468 ## ------------------------ ##
1469 ## Autoconf initialization. ##
1470 ## ------------------------ ##
1472 # ac_fn_cxx_try_compile LINENO
1473 # ----------------------------
1474 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1475 ac_fn_cxx_try_compile ()
1477   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1478   rm -f conftest.$ac_objext
1479   if { { ac_try="$ac_compile"
1480 case "(($ac_try" in
1481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1482   *) ac_try_echo=$ac_try;;
1483 esac
1484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1485 $as_echo "$ac_try_echo"; } >&5
1486   (eval "$ac_compile") 2>conftest.err
1487   ac_status=$?
1488   if test -s conftest.err; then
1489     grep -v '^ *+' conftest.err >conftest.er1
1490     cat conftest.er1 >&5
1491     mv -f conftest.er1 conftest.err
1492   fi
1493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1494   test $ac_status = 0; } && {
1495          test -z "$ac_cxx_werror_flag" ||
1496          test ! -s conftest.err
1497        } && test -s conftest.$ac_objext; then :
1498   ac_retval=0
1499 else
1500   $as_echo "$as_me: failed program was:" >&5
1501 sed 's/^/| /' conftest.$ac_ext >&5
1503         ac_retval=1
1504 fi
1505   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1506   as_fn_set_status $ac_retval
1508 } # ac_fn_cxx_try_compile
1510 # ac_fn_c_try_compile LINENO
1511 # --------------------------
1512 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1513 ac_fn_c_try_compile ()
1515   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516   rm -f conftest.$ac_objext
1517   if { { ac_try="$ac_compile"
1518 case "(($ac_try" in
1519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520   *) ac_try_echo=$ac_try;;
1521 esac
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524   (eval "$ac_compile") 2>conftest.err
1525   ac_status=$?
1526   if test -s conftest.err; then
1527     grep -v '^ *+' conftest.err >conftest.er1
1528     cat conftest.er1 >&5
1529     mv -f conftest.er1 conftest.err
1530   fi
1531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532   test $ac_status = 0; } && {
1533          test -z "$ac_c_werror_flag" ||
1534          test ! -s conftest.err
1535        } && test -s conftest.$ac_objext; then :
1536   ac_retval=0
1537 else
1538   $as_echo "$as_me: failed program was:" >&5
1539 sed 's/^/| /' conftest.$ac_ext >&5
1541         ac_retval=1
1542 fi
1543   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544   as_fn_set_status $ac_retval
1546 } # ac_fn_c_try_compile
1548 # ac_fn_c_try_cpp LINENO
1549 # ----------------------
1550 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_cpp ()
1553   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554   if { { ac_try="$ac_cpp conftest.$ac_ext"
1555 case "(($ac_try" in
1556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557   *) ac_try_echo=$ac_try;;
1558 esac
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 $as_echo "$ac_try_echo"; } >&5
1561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1562   ac_status=$?
1563   if test -s conftest.err; then
1564     grep -v '^ *+' conftest.err >conftest.er1
1565     cat conftest.er1 >&5
1566     mv -f conftest.er1 conftest.err
1567   fi
1568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569   test $ac_status = 0; } > conftest.i && {
1570          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1571          test ! -s conftest.err
1572        }; then :
1573   ac_retval=0
1574 else
1575   $as_echo "$as_me: failed program was:" >&5
1576 sed 's/^/| /' conftest.$ac_ext >&5
1578     ac_retval=1
1579 fi
1580   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581   as_fn_set_status $ac_retval
1583 } # ac_fn_c_try_cpp
1585 # ac_fn_cxx_try_cpp LINENO
1586 # ------------------------
1587 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1588 ac_fn_cxx_try_cpp ()
1590   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591   if { { ac_try="$ac_cpp conftest.$ac_ext"
1592 case "(($ac_try" in
1593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594   *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1599   ac_status=$?
1600   if test -s conftest.err; then
1601     grep -v '^ *+' conftest.err >conftest.er1
1602     cat conftest.er1 >&5
1603     mv -f conftest.er1 conftest.err
1604   fi
1605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606   test $ac_status = 0; } > conftest.i && {
1607          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1608          test ! -s conftest.err
1609        }; then :
1610   ac_retval=0
1611 else
1612   $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1615     ac_retval=1
1616 fi
1617   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618   as_fn_set_status $ac_retval
1620 } # ac_fn_cxx_try_cpp
1622 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1623 # ---------------------------------------------------------
1624 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1625 # the include files in INCLUDES and setting the cache variable VAR
1626 # accordingly.
1627 ac_fn_cxx_check_header_mongrel ()
1629   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630   if eval \${$3+:} false; then :
1631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632 $as_echo_n "checking for $2... " >&6; }
1633 if eval \${$3+:} false; then :
1634   $as_echo_n "(cached) " >&6
1635 fi
1636 eval ac_res=\$$3
1637                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 $as_echo "$ac_res" >&6; }
1639 else
1640   # Is the header compilable?
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1642 $as_echo_n "checking $2 usability... " >&6; }
1643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644 /* end confdefs.h.  */
1645 $4
1646 #include <$2>
1647 _ACEOF
1648 if ac_fn_cxx_try_compile "$LINENO"; then :
1649   ac_header_compiler=yes
1650 else
1651   ac_header_compiler=no
1652 fi
1653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1655 $as_echo "$ac_header_compiler" >&6; }
1657 # Is the header present?
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1659 $as_echo_n "checking $2 presence... " >&6; }
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h.  */
1662 #include <$2>
1663 _ACEOF
1664 if ac_fn_cxx_try_cpp "$LINENO"; then :
1665   ac_header_preproc=yes
1666 else
1667   ac_header_preproc=no
1668 fi
1669 rm -f conftest.err conftest.i conftest.$ac_ext
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1671 $as_echo "$ac_header_preproc" >&6; }
1673 # So?  What about this header?
1674 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1675   yes:no: )
1676     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1677 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1678     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1679 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1680     ;;
1681   no:yes:* )
1682     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1683 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1684     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1685 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1686     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1687 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1688     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1689 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1690     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1691 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1692 ( $as_echo "## -------------------------------- ##
1693 ## Report this to bugs@xestia.co.uk ##
1694 ## -------------------------------- ##"
1695      ) | sed "s/^/$as_me: WARNING:     /" >&2
1696     ;;
1697 esac
1698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 $as_echo_n "checking for $2... " >&6; }
1700 if eval \${$3+:} false; then :
1701   $as_echo_n "(cached) " >&6
1702 else
1703   eval "$3=\$ac_header_compiler"
1704 fi
1705 eval ac_res=\$$3
1706                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707 $as_echo "$ac_res" >&6; }
1708 fi
1709   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 } # ac_fn_cxx_check_header_mongrel
1713 # ac_fn_cxx_try_run LINENO
1714 # ------------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716 # that executables *can* be run.
1717 ac_fn_cxx_try_run ()
1719   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720   if { { ac_try="$ac_link"
1721 case "(($ac_try" in
1722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723   *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727   (eval "$ac_link") 2>&5
1728   ac_status=$?
1729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731   { { case "(($ac_try" in
1732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733   *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737   (eval "$ac_try") 2>&5
1738   ac_status=$?
1739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740   test $ac_status = 0; }; }; then :
1741   ac_retval=0
1742 else
1743   $as_echo "$as_me: program exited with status $ac_status" >&5
1744        $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1747        ac_retval=$ac_status
1748 fi
1749   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751   as_fn_set_status $ac_retval
1753 } # ac_fn_cxx_try_run
1755 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1756 # ---------------------------------------------------------
1757 # Tests whether HEADER exists and can be compiled using the include files in
1758 # INCLUDES, setting the cache variable VAR accordingly.
1759 ac_fn_cxx_check_header_compile ()
1761   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765   $as_echo_n "(cached) " >&6
1766 else
1767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h.  */
1769 $4
1770 #include <$2>
1771 _ACEOF
1772 if ac_fn_cxx_try_compile "$LINENO"; then :
1773   eval "$3=yes"
1774 else
1775   eval "$3=no"
1776 fi
1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778 fi
1779 eval ac_res=\$$3
1780                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 } # ac_fn_cxx_check_header_compile
1786 # ac_fn_cxx_try_link LINENO
1787 # -------------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_cxx_try_link ()
1791   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792   rm -f conftest.$ac_objext conftest$ac_exeext
1793   if { { ac_try="$ac_link"
1794 case "(($ac_try" in
1795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796   *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800   (eval "$ac_link") 2>conftest.err
1801   ac_status=$?
1802   if test -s conftest.err; then
1803     grep -v '^ *+' conftest.err >conftest.er1
1804     cat conftest.er1 >&5
1805     mv -f conftest.er1 conftest.err
1806   fi
1807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808   test $ac_status = 0; } && {
1809          test -z "$ac_cxx_werror_flag" ||
1810          test ! -s conftest.err
1811        } && test -s conftest$ac_exeext && {
1812          test "$cross_compiling" = yes ||
1813          test -x conftest$ac_exeext
1814        }; then :
1815   ac_retval=0
1816 else
1817   $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1820         ac_retval=1
1821 fi
1822   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824   # interfere with the next link command; also delete a directory that is
1825   # left behind by Apple's compiler.  We do this before executing the actions.
1826   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828   as_fn_set_status $ac_retval
1830 } # ac_fn_cxx_try_link
1832 # ac_fn_c_try_link LINENO
1833 # -----------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_link ()
1837   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838   rm -f conftest.$ac_objext conftest$ac_exeext
1839   if { { ac_try="$ac_link"
1840 case "(($ac_try" in
1841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842   *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846   (eval "$ac_link") 2>conftest.err
1847   ac_status=$?
1848   if test -s conftest.err; then
1849     grep -v '^ *+' conftest.err >conftest.er1
1850     cat conftest.er1 >&5
1851     mv -f conftest.er1 conftest.err
1852   fi
1853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854   test $ac_status = 0; } && {
1855          test -z "$ac_c_werror_flag" ||
1856          test ! -s conftest.err
1857        } && test -s conftest$ac_exeext && {
1858          test "$cross_compiling" = yes ||
1859          test -x conftest$ac_exeext
1860        }; then :
1861   ac_retval=0
1862 else
1863   $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1866         ac_retval=1
1867 fi
1868   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870   # interfere with the next link command; also delete a directory that is
1871   # left behind by Apple's compiler.  We do this before executing the actions.
1872   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874   as_fn_set_status $ac_retval
1876 } # ac_fn_c_try_link
1878 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1879 # -------------------------------------------------------
1880 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1881 # the include files in INCLUDES and setting the cache variable VAR
1882 # accordingly.
1883 ac_fn_c_check_header_mongrel ()
1885   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886   if eval \${$3+:} false; then :
1887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if eval \${$3+:} false; then :
1890   $as_echo_n "(cached) " >&6
1891 fi
1892 eval ac_res=\$$3
1893                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895 else
1896   # Is the header compilable?
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1898 $as_echo_n "checking $2 usability... " >&6; }
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h.  */
1901 $4
1902 #include <$2>
1903 _ACEOF
1904 if ac_fn_c_try_compile "$LINENO"; then :
1905   ac_header_compiler=yes
1906 else
1907   ac_header_compiler=no
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1911 $as_echo "$ac_header_compiler" >&6; }
1913 # Is the header present?
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1915 $as_echo_n "checking $2 presence... " >&6; }
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h.  */
1918 #include <$2>
1919 _ACEOF
1920 if ac_fn_c_try_cpp "$LINENO"; then :
1921   ac_header_preproc=yes
1922 else
1923   ac_header_preproc=no
1924 fi
1925 rm -f conftest.err conftest.i conftest.$ac_ext
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1927 $as_echo "$ac_header_preproc" >&6; }
1929 # So?  What about this header?
1930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1931   yes:no: )
1932     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1933 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1934     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1935 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1936     ;;
1937   no:yes:* )
1938     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1939 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1940     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1941 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1942     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1943 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1944     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1945 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1946     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1947 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1948 ( $as_echo "## -------------------------------- ##
1949 ## Report this to bugs@xestia.co.uk ##
1950 ## -------------------------------- ##"
1951      ) | sed "s/^/$as_me: WARNING:     /" >&2
1952     ;;
1953 esac
1954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if eval \${$3+:} false; then :
1957   $as_echo_n "(cached) " >&6
1958 else
1959   eval "$3=\$ac_header_compiler"
1960 fi
1961 eval ac_res=\$$3
1962                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964 fi
1965   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 } # ac_fn_c_check_header_mongrel
1969 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1970 # -------------------------------------------
1971 # Tests whether TYPE exists after having included INCLUDES, setting cache
1972 # variable VAR accordingly.
1973 ac_fn_c_check_type ()
1975   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval \${$3+:} false; then :
1979   $as_echo_n "(cached) " >&6
1980 else
1981   eval "$3=no"
1982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h.  */
1984 $4
1985 int
1986 main ()
1988 if (sizeof ($2))
1989          return 0;
1990   ;
1991   return 0;
1993 _ACEOF
1994 if ac_fn_c_try_compile "$LINENO"; then :
1995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h.  */
1997 $4
1998 int
1999 main ()
2001 if (sizeof (($2)))
2002             return 0;
2003   ;
2004   return 0;
2006 _ACEOF
2007 if ac_fn_c_try_compile "$LINENO"; then :
2009 else
2010   eval "$3=yes"
2011 fi
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013 fi
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 fi
2016 eval ac_res=\$$3
2017                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021 } # ac_fn_c_check_type
2022 cat >config.log <<_ACEOF
2023 This file contains any messages produced by compilers while
2024 running configure, to aid debugging if configure makes a mistake.
2026 It was created by Xestia Address Book $as_me 0.05, which was
2027 generated by GNU Autoconf 2.69.  Invocation command line was
2029   $ $0 $@
2031 _ACEOF
2032 exec 5>>config.log
2034 cat <<_ASUNAME
2035 ## --------- ##
2036 ## Platform. ##
2037 ## --------- ##
2039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2046 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2048 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2049 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2051 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2052 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2053 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2054 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2056 _ASUNAME
2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 for as_dir in $PATH
2060 do
2061   IFS=$as_save_IFS
2062   test -z "$as_dir" && as_dir=.
2063     $as_echo "PATH: $as_dir"
2064   done
2065 IFS=$as_save_IFS
2067 } >&5
2069 cat >&5 <<_ACEOF
2072 ## ----------- ##
2073 ## Core tests. ##
2074 ## ----------- ##
2076 _ACEOF
2079 # Keep a trace of the command line.
2080 # Strip out --no-create and --no-recursion so they do not pile up.
2081 # Strip out --silent because we don't want to record it for future runs.
2082 # Also quote any args containing shell meta-characters.
2083 # Make two passes to allow for proper duplicate-argument suppression.
2084 ac_configure_args=
2085 ac_configure_args0=
2086 ac_configure_args1=
2087 ac_must_keep_next=false
2088 for ac_pass in 1 2
2089 do
2090   for ac_arg
2091   do
2092     case $ac_arg in
2093     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2094     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2095     | -silent | --silent | --silen | --sile | --sil)
2096       continue ;;
2097     *\'*)
2098       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2099     esac
2100     case $ac_pass in
2101     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2102     2)
2103       as_fn_append ac_configure_args1 " '$ac_arg'"
2104       if test $ac_must_keep_next = true; then
2105         ac_must_keep_next=false # Got value, back to normal.
2106       else
2107         case $ac_arg in
2108           *=* | --config-cache | -C | -disable-* | --disable-* \
2109           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2110           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2111           | -with-* | --with-* | -without-* | --without-* | --x)
2112             case "$ac_configure_args0 " in
2113               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2114             esac
2115             ;;
2116           -* ) ac_must_keep_next=true ;;
2117         esac
2118       fi
2119       as_fn_append ac_configure_args " '$ac_arg'"
2120       ;;
2121     esac
2122   done
2123 done
2124 { ac_configure_args0=; unset ac_configure_args0;}
2125 { ac_configure_args1=; unset ac_configure_args1;}
2127 # When interrupted or exit'd, cleanup temporary files, and complete
2128 # config.log.  We remove comments because anyway the quotes in there
2129 # would cause problems or look ugly.
2130 # WARNING: Use '\'' to represent an apostrophe within the trap.
2131 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2132 trap 'exit_status=$?
2133   # Save into config.log some information that might help in debugging.
2134   {
2135     echo
2137     $as_echo "## ---------------- ##
2138 ## Cache variables. ##
2139 ## ---------------- ##"
2140     echo
2141     # The following way of writing the cache mishandles newlines in values,
2143   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2144     eval ac_val=\$$ac_var
2145     case $ac_val in #(
2146     *${as_nl}*)
2147       case $ac_var in #(
2148       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2149 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2150       esac
2151       case $ac_var in #(
2152       _ | IFS | as_nl) ;; #(
2153       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2154       *) { eval $ac_var=; unset $ac_var;} ;;
2155       esac ;;
2156     esac
2157   done
2158   (set) 2>&1 |
2159     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2160     *${as_nl}ac_space=\ *)
2161       sed -n \
2162         "s/'\''/'\''\\\\'\'''\''/g;
2163           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2164       ;; #(
2165     *)
2166       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2167       ;;
2168     esac |
2169     sort
2171     echo
2173     $as_echo "## ----------------- ##
2174 ## Output variables. ##
2175 ## ----------------- ##"
2176     echo
2177     for ac_var in $ac_subst_vars
2178     do
2179       eval ac_val=\$$ac_var
2180       case $ac_val in
2181       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2182       esac
2183       $as_echo "$ac_var='\''$ac_val'\''"
2184     done | sort
2185     echo
2187     if test -n "$ac_subst_files"; then
2188       $as_echo "## ------------------- ##
2189 ## File substitutions. ##
2190 ## ------------------- ##"
2191       echo
2192       for ac_var in $ac_subst_files
2193       do
2194         eval ac_val=\$$ac_var
2195         case $ac_val in
2196         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197         esac
2198         $as_echo "$ac_var='\''$ac_val'\''"
2199       done | sort
2200       echo
2201     fi
2203     if test -s confdefs.h; then
2204       $as_echo "## ----------- ##
2205 ## confdefs.h. ##
2206 ## ----------- ##"
2207       echo
2208       cat confdefs.h
2209       echo
2210     fi
2211     test "$ac_signal" != 0 &&
2212       $as_echo "$as_me: caught signal $ac_signal"
2213     $as_echo "$as_me: exit $exit_status"
2214   } >&5
2215   rm -f core *.core core.conftest.* &&
2216     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2217     exit $exit_status
2218 ' 0
2219 for ac_signal in 1 2 13 15; do
2220   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2221 done
2222 ac_signal=0
2224 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2225 rm -f -r conftest* confdefs.h
2227 $as_echo "/* confdefs.h */" > confdefs.h
2229 # Predefined preprocessor variables.
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_NAME "$PACKAGE_NAME"
2233 _ACEOF
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2237 _ACEOF
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2241 _ACEOF
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_STRING "$PACKAGE_STRING"
2245 _ACEOF
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2249 _ACEOF
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_URL "$PACKAGE_URL"
2253 _ACEOF
2256 # Let the site file select an alternate cache file if it wants to.
2257 # Prefer an explicitly selected file to automatically selected ones.
2258 ac_site_file1=NONE
2259 ac_site_file2=NONE
2260 if test -n "$CONFIG_SITE"; then
2261   # We do not want a PATH search for config.site.
2262   case $CONFIG_SITE in #((
2263     -*)  ac_site_file1=./$CONFIG_SITE;;
2264     */*) ac_site_file1=$CONFIG_SITE;;
2265     *)   ac_site_file1=./$CONFIG_SITE;;
2266   esac
2267 elif test "x$prefix" != xNONE; then
2268   ac_site_file1=$prefix/share/config.site
2269   ac_site_file2=$prefix/etc/config.site
2270 else
2271   ac_site_file1=$ac_default_prefix/share/config.site
2272   ac_site_file2=$ac_default_prefix/etc/config.site
2273 fi
2274 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2275 do
2276   test "x$ac_site_file" = xNONE && continue
2277   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2278     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2279 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2280     sed 's/^/| /' "$ac_site_file" >&5
2281     . "$ac_site_file" \
2282       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2284 as_fn_error $? "failed to load site script $ac_site_file
2285 See \`config.log' for more details" "$LINENO" 5; }
2286   fi
2287 done
2289 if test -r "$cache_file"; then
2290   # Some versions of bash will fail to source /dev/null (special files
2291   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2292   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2293     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2294 $as_echo "$as_me: loading cache $cache_file" >&6;}
2295     case $cache_file in
2296       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2297       *)                      . "./$cache_file";;
2298     esac
2299   fi
2300 else
2301   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2302 $as_echo "$as_me: creating cache $cache_file" >&6;}
2303   >$cache_file
2304 fi
2306 # Check that the precious variables saved in the cache have kept the same
2307 # value.
2308 ac_cache_corrupted=false
2309 for ac_var in $ac_precious_vars; do
2310   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2311   eval ac_new_set=\$ac_env_${ac_var}_set
2312   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2313   eval ac_new_val=\$ac_env_${ac_var}_value
2314   case $ac_old_set,$ac_new_set in
2315     set,)
2316       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2317 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2318       ac_cache_corrupted=: ;;
2319     ,set)
2320       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2321 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2322       ac_cache_corrupted=: ;;
2323     ,);;
2324     *)
2325       if test "x$ac_old_val" != "x$ac_new_val"; then
2326         # differences in whitespace do not lead to failure.
2327         ac_old_val_w=`echo x $ac_old_val`
2328         ac_new_val_w=`echo x $ac_new_val`
2329         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2330           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2331 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2332           ac_cache_corrupted=:
2333         else
2334           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2335 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2336           eval $ac_var=\$ac_old_val
2337         fi
2338         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2339 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2340         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2341 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2342       fi;;
2343   esac
2344   # Pass precious variables to config.status.
2345   if test "$ac_new_set" = set; then
2346     case $ac_new_val in
2347     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2348     *) ac_arg=$ac_var=$ac_new_val ;;
2349     esac
2350     case " $ac_configure_args " in
2351       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2352       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2353     esac
2354   fi
2355 done
2356 if $ac_cache_corrupted; then
2357   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2359   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2360 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2361   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2362 fi
2363 ## -------------------- ##
2364 ## Main body of script. ##
2365 ## -------------------- ##
2367 ac_ext=c
2368 ac_cpp='$CPP $CPPFLAGS'
2369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2374 #AC_CONFIG_SRCDIR([version.h])
2375 #AC_CONFIG_HEADERS([config.h])
2378 $as_echo "#define DEBUG 1" >>confdefs.h
2381 # Checks for programs.
2382 ac_ext=cpp
2383 ac_cpp='$CXXCPP $CPPFLAGS'
2384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2387 if test -z "$CXX"; then
2388   if test -n "$CCC"; then
2389     CXX=$CCC
2390   else
2391     if test -n "$ac_tool_prefix"; then
2392   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2393   do
2394     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2397 $as_echo_n "checking for $ac_word... " >&6; }
2398 if ${ac_cv_prog_CXX+:} false; then :
2399   $as_echo_n "(cached) " >&6
2400 else
2401   if test -n "$CXX"; then
2402   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407   IFS=$as_save_IFS
2408   test -z "$as_dir" && as_dir=.
2409     for ac_exec_ext in '' $ac_executable_extensions; do
2410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2411     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2413     break 2
2414   fi
2415 done
2416   done
2417 IFS=$as_save_IFS
2419 fi
2420 fi
2421 CXX=$ac_cv_prog_CXX
2422 if test -n "$CXX"; then
2423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2424 $as_echo "$CXX" >&6; }
2425 else
2426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2427 $as_echo "no" >&6; }
2428 fi
2431     test -n "$CXX" && break
2432   done
2433 fi
2434 if test -z "$CXX"; then
2435   ac_ct_CXX=$CXX
2436   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2437 do
2438   # Extract the first word of "$ac_prog", so it can be a program name with args.
2439 set dummy $ac_prog; ac_word=$2
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2441 $as_echo_n "checking for $ac_word... " >&6; }
2442 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2443   $as_echo_n "(cached) " >&6
2444 else
2445   if test -n "$ac_ct_CXX"; then
2446   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451   IFS=$as_save_IFS
2452   test -z "$as_dir" && as_dir=.
2453     for ac_exec_ext in '' $ac_executable_extensions; do
2454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455     ac_cv_prog_ac_ct_CXX="$ac_prog"
2456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2457     break 2
2458   fi
2459 done
2460   done
2461 IFS=$as_save_IFS
2463 fi
2464 fi
2465 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2466 if test -n "$ac_ct_CXX"; then
2467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2468 $as_echo "$ac_ct_CXX" >&6; }
2469 else
2470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2471 $as_echo "no" >&6; }
2472 fi
2475   test -n "$ac_ct_CXX" && break
2476 done
2478   if test "x$ac_ct_CXX" = x; then
2479     CXX="g++"
2480   else
2481     case $cross_compiling:$ac_tool_warned in
2482 yes:)
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2485 ac_tool_warned=yes ;;
2486 esac
2487     CXX=$ac_ct_CXX
2488   fi
2489 fi
2491   fi
2492 fi
2493 # Provide some information about the compiler.
2494 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2495 set X $ac_compile
2496 ac_compiler=$2
2497 for ac_option in --version -v -V -qversion; do
2498   { { ac_try="$ac_compiler $ac_option >&5"
2499 case "(($ac_try" in
2500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501   *) ac_try_echo=$ac_try;;
2502 esac
2503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2504 $as_echo "$ac_try_echo"; } >&5
2505   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2506   ac_status=$?
2507   if test -s conftest.err; then
2508     sed '10a\
2509 ... rest of stderr output deleted ...
2510          10q' conftest.err >conftest.er1
2511     cat conftest.er1 >&5
2512   fi
2513   rm -f conftest.er1 conftest.err
2514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2515   test $ac_status = 0; }
2516 done
2518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519 /* end confdefs.h.  */
2521 int
2522 main ()
2525   ;
2526   return 0;
2528 _ACEOF
2529 ac_clean_files_save=$ac_clean_files
2530 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2531 # Try to create an executable without -o first, disregard a.out.
2532 # It will help us diagnose broken compilers, and finding out an intuition
2533 # of exeext.
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2535 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2536 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2538 # The possible output files:
2539 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2541 ac_rmfiles=
2542 for ac_file in $ac_files
2543 do
2544   case $ac_file in
2545     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2546     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2547   esac
2548 done
2549 rm -f $ac_rmfiles
2551 if { { ac_try="$ac_link_default"
2552 case "(($ac_try" in
2553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554   *) ac_try_echo=$ac_try;;
2555 esac
2556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2557 $as_echo "$ac_try_echo"; } >&5
2558   (eval "$ac_link_default") 2>&5
2559   ac_status=$?
2560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2561   test $ac_status = 0; }; then :
2562   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2563 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2564 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2565 # so that the user can short-circuit this test for compilers unknown to
2566 # Autoconf.
2567 for ac_file in $ac_files ''
2568 do
2569   test -f "$ac_file" || continue
2570   case $ac_file in
2571     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2572         ;;
2573     [ab].out )
2574         # We found the default executable, but exeext='' is most
2575         # certainly right.
2576         break;;
2577     *.* )
2578         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2579         then :; else
2580            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2581         fi
2582         # We set ac_cv_exeext here because the later test for it is not
2583         # safe: cross compilers may not add the suffix if given an `-o'
2584         # argument, so we may need to know it at that point already.
2585         # Even if this section looks crufty: it has the advantage of
2586         # actually working.
2587         break;;
2588     * )
2589         break;;
2590   esac
2591 done
2592 test "$ac_cv_exeext" = no && ac_cv_exeext=
2594 else
2595   ac_file=''
2596 fi
2597 if test -z "$ac_file"; then :
2598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599 $as_echo "no" >&6; }
2600 $as_echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2605 as_fn_error 77 "C++ compiler cannot create executables
2606 See \`config.log' for more details" "$LINENO" 5; }
2607 else
2608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2609 $as_echo "yes" >&6; }
2610 fi
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2612 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2614 $as_echo "$ac_file" >&6; }
2615 ac_exeext=$ac_cv_exeext
2617 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2618 ac_clean_files=$ac_clean_files_save
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2620 $as_echo_n "checking for suffix of executables... " >&6; }
2621 if { { ac_try="$ac_link"
2622 case "(($ac_try" in
2623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624   *) ac_try_echo=$ac_try;;
2625 esac
2626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2627 $as_echo "$ac_try_echo"; } >&5
2628   (eval "$ac_link") 2>&5
2629   ac_status=$?
2630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2631   test $ac_status = 0; }; then :
2632   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2633 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2634 # work properly (i.e., refer to `conftest.exe'), while it won't with
2635 # `rm'.
2636 for ac_file in conftest.exe conftest conftest.*; do
2637   test -f "$ac_file" || continue
2638   case $ac_file in
2639     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2640     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2641           break;;
2642     * ) break;;
2643   esac
2644 done
2645 else
2646   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2648 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2649 See \`config.log' for more details" "$LINENO" 5; }
2650 fi
2651 rm -f conftest conftest$ac_cv_exeext
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2653 $as_echo "$ac_cv_exeext" >&6; }
2655 rm -f conftest.$ac_ext
2656 EXEEXT=$ac_cv_exeext
2657 ac_exeext=$EXEEXT
2658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2659 /* end confdefs.h.  */
2660 #include <stdio.h>
2661 int
2662 main ()
2664 FILE *f = fopen ("conftest.out", "w");
2665  return ferror (f) || fclose (f) != 0;
2667   ;
2668   return 0;
2670 _ACEOF
2671 ac_clean_files="$ac_clean_files conftest.out"
2672 # Check that the compiler produces executables we can run.  If not, either
2673 # the compiler is broken, or we cross compile.
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2675 $as_echo_n "checking whether we are cross compiling... " >&6; }
2676 if test "$cross_compiling" != yes; then
2677   { { ac_try="$ac_link"
2678 case "(($ac_try" in
2679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680   *) ac_try_echo=$ac_try;;
2681 esac
2682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2683 $as_echo "$ac_try_echo"; } >&5
2684   (eval "$ac_link") 2>&5
2685   ac_status=$?
2686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2687   test $ac_status = 0; }
2688   if { ac_try='./conftest$ac_cv_exeext'
2689   { { case "(($ac_try" in
2690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691   *) ac_try_echo=$ac_try;;
2692 esac
2693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2694 $as_echo "$ac_try_echo"; } >&5
2695   (eval "$ac_try") 2>&5
2696   ac_status=$?
2697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2698   test $ac_status = 0; }; }; then
2699     cross_compiling=no
2700   else
2701     if test "$cross_compiling" = maybe; then
2702         cross_compiling=yes
2703     else
2704         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2706 as_fn_error $? "cannot run C++ compiled programs.
2707 If you meant to cross compile, use \`--host'.
2708 See \`config.log' for more details" "$LINENO" 5; }
2709     fi
2710   fi
2711 fi
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2713 $as_echo "$cross_compiling" >&6; }
2715 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2716 ac_clean_files=$ac_clean_files_save
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2718 $as_echo_n "checking for suffix of object files... " >&6; }
2719 if ${ac_cv_objext+:} false; then :
2720   $as_echo_n "(cached) " >&6
2721 else
2722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2723 /* end confdefs.h.  */
2725 int
2726 main ()
2729   ;
2730   return 0;
2732 _ACEOF
2733 rm -f conftest.o conftest.obj
2734 if { { ac_try="$ac_compile"
2735 case "(($ac_try" in
2736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737   *) ac_try_echo=$ac_try;;
2738 esac
2739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2740 $as_echo "$ac_try_echo"; } >&5
2741   (eval "$ac_compile") 2>&5
2742   ac_status=$?
2743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2744   test $ac_status = 0; }; then :
2745   for ac_file in conftest.o conftest.obj conftest.*; do
2746   test -f "$ac_file" || continue;
2747   case $ac_file in
2748     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2749     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2750        break;;
2751   esac
2752 done
2753 else
2754   $as_echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2759 as_fn_error $? "cannot compute suffix of object files: cannot compile
2760 See \`config.log' for more details" "$LINENO" 5; }
2761 fi
2762 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2763 fi
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2765 $as_echo "$ac_cv_objext" >&6; }
2766 OBJEXT=$ac_cv_objext
2767 ac_objext=$OBJEXT
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2769 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2770 if ${ac_cv_cxx_compiler_gnu+:} false; then :
2771   $as_echo_n "(cached) " >&6
2772 else
2773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h.  */
2776 int
2777 main ()
2779 #ifndef __GNUC__
2780        choke me
2781 #endif
2783   ;
2784   return 0;
2786 _ACEOF
2787 if ac_fn_cxx_try_compile "$LINENO"; then :
2788   ac_compiler_gnu=yes
2789 else
2790   ac_compiler_gnu=no
2791 fi
2792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2793 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2795 fi
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2797 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2798 if test $ac_compiler_gnu = yes; then
2799   GXX=yes
2800 else
2801   GXX=
2802 fi
2803 ac_test_CXXFLAGS=${CXXFLAGS+set}
2804 ac_save_CXXFLAGS=$CXXFLAGS
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2806 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2807 if ${ac_cv_prog_cxx_g+:} false; then :
2808   $as_echo_n "(cached) " >&6
2809 else
2810   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2811    ac_cxx_werror_flag=yes
2812    ac_cv_prog_cxx_g=no
2813    CXXFLAGS="-g"
2814    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815 /* end confdefs.h.  */
2817 int
2818 main ()
2821   ;
2822   return 0;
2824 _ACEOF
2825 if ac_fn_cxx_try_compile "$LINENO"; then :
2826   ac_cv_prog_cxx_g=yes
2827 else
2828   CXXFLAGS=""
2829       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2830 /* end confdefs.h.  */
2832 int
2833 main ()
2836   ;
2837   return 0;
2839 _ACEOF
2840 if ac_fn_cxx_try_compile "$LINENO"; then :
2842 else
2843   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2844          CXXFLAGS="-g"
2845          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2846 /* end confdefs.h.  */
2848 int
2849 main ()
2852   ;
2853   return 0;
2855 _ACEOF
2856 if ac_fn_cxx_try_compile "$LINENO"; then :
2857   ac_cv_prog_cxx_g=yes
2858 fi
2859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2860 fi
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 fi
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2865 fi
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2867 $as_echo "$ac_cv_prog_cxx_g" >&6; }
2868 if test "$ac_test_CXXFLAGS" = set; then
2869   CXXFLAGS=$ac_save_CXXFLAGS
2870 elif test $ac_cv_prog_cxx_g = yes; then
2871   if test "$GXX" = yes; then
2872     CXXFLAGS="-g -O2"
2873   else
2874     CXXFLAGS="-g"
2875   fi
2876 else
2877   if test "$GXX" = yes; then
2878     CXXFLAGS="-O2"
2879   else
2880     CXXFLAGS=
2881   fi
2882 fi
2883 ac_ext=c
2884 ac_cpp='$CPP $CPPFLAGS'
2885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889 ac_ext=c
2890 ac_cpp='$CPP $CPPFLAGS'
2891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2894 if test -n "$ac_tool_prefix"; then
2895   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2896 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_CC+:} false; then :
2900   $as_echo_n "(cached) " >&6
2901 else
2902   if test -n "$CC"; then
2903   ac_cv_prog_CC="$CC" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908   IFS=$as_save_IFS
2909   test -z "$as_dir" && as_dir=.
2910     for ac_exec_ext in '' $ac_executable_extensions; do
2911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914     break 2
2915   fi
2916 done
2917   done
2918 IFS=$as_save_IFS
2920 fi
2921 fi
2922 CC=$ac_cv_prog_CC
2923 if test -n "$CC"; then
2924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2925 $as_echo "$CC" >&6; }
2926 else
2927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2929 fi
2932 fi
2933 if test -z "$ac_cv_prog_CC"; then
2934   ac_ct_CC=$CC
2935   # Extract the first word of "gcc", so it can be a program name with args.
2936 set dummy gcc; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2940   $as_echo_n "(cached) " >&6
2941 else
2942   if test -n "$ac_ct_CC"; then
2943   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948   IFS=$as_save_IFS
2949   test -z "$as_dir" && as_dir=.
2950     for ac_exec_ext in '' $ac_executable_extensions; do
2951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952     ac_cv_prog_ac_ct_CC="gcc"
2953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954     break 2
2955   fi
2956 done
2957   done
2958 IFS=$as_save_IFS
2960 fi
2961 fi
2962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2963 if test -n "$ac_ct_CC"; then
2964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2965 $as_echo "$ac_ct_CC" >&6; }
2966 else
2967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2969 fi
2971   if test "x$ac_ct_CC" = x; then
2972     CC=""
2973   else
2974     case $cross_compiling:$ac_tool_warned in
2975 yes:)
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2978 ac_tool_warned=yes ;;
2979 esac
2980     CC=$ac_ct_CC
2981   fi
2982 else
2983   CC="$ac_cv_prog_CC"
2984 fi
2986 if test -z "$CC"; then
2987           if test -n "$ac_tool_prefix"; then
2988     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2989 set dummy ${ac_tool_prefix}cc; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_CC+:} false; then :
2993   $as_echo_n "(cached) " >&6
2994 else
2995   if test -n "$CC"; then
2996   ac_cv_prog_CC="$CC" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3000 do
3001   IFS=$as_save_IFS
3002   test -z "$as_dir" && as_dir=.
3003     for ac_exec_ext in '' $ac_executable_extensions; do
3004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3005     ac_cv_prog_CC="${ac_tool_prefix}cc"
3006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007     break 2
3008   fi
3009 done
3010   done
3011 IFS=$as_save_IFS
3013 fi
3014 fi
3015 CC=$ac_cv_prog_CC
3016 if test -n "$CC"; then
3017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3018 $as_echo "$CC" >&6; }
3019 else
3020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3022 fi
3025   fi
3026 fi
3027 if test -z "$CC"; then
3028   # Extract the first word of "cc", so it can be a program name with args.
3029 set dummy cc; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if ${ac_cv_prog_CC+:} false; then :
3033   $as_echo_n "(cached) " >&6
3034 else
3035   if test -n "$CC"; then
3036   ac_cv_prog_CC="$CC" # Let the user override the test.
3037 else
3038   ac_prog_rejected=no
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3041 do
3042   IFS=$as_save_IFS
3043   test -z "$as_dir" && as_dir=.
3044     for ac_exec_ext in '' $ac_executable_extensions; do
3045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3047        ac_prog_rejected=yes
3048        continue
3049      fi
3050     ac_cv_prog_CC="cc"
3051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052     break 2
3053   fi
3054 done
3055   done
3056 IFS=$as_save_IFS
3058 if test $ac_prog_rejected = yes; then
3059   # We found a bogon in the path, so make sure we never use it.
3060   set dummy $ac_cv_prog_CC
3061   shift
3062   if test $# != 0; then
3063     # We chose a different compiler from the bogus one.
3064     # However, it has the same basename, so the bogon will be chosen
3065     # first if we set CC to just the basename; use the full file name.
3066     shift
3067     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3068   fi
3069 fi
3070 fi
3071 fi
3072 CC=$ac_cv_prog_CC
3073 if test -n "$CC"; then
3074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3075 $as_echo "$CC" >&6; }
3076 else
3077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3079 fi
3082 fi
3083 if test -z "$CC"; then
3084   if test -n "$ac_tool_prefix"; then
3085   for ac_prog in cl.exe
3086   do
3087     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if ${ac_cv_prog_CC+:} false; then :
3092   $as_echo_n "(cached) " >&6
3093 else
3094   if test -n "$CC"; then
3095   ac_cv_prog_CC="$CC" # Let the user override the test.
3096 else
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3099 do
3100   IFS=$as_save_IFS
3101   test -z "$as_dir" && as_dir=.
3102     for ac_exec_ext in '' $ac_executable_extensions; do
3103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3104     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106     break 2
3107   fi
3108 done
3109   done
3110 IFS=$as_save_IFS
3112 fi
3113 fi
3114 CC=$ac_cv_prog_CC
3115 if test -n "$CC"; then
3116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3117 $as_echo "$CC" >&6; }
3118 else
3119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3121 fi
3124     test -n "$CC" && break
3125   done
3126 fi
3127 if test -z "$CC"; then
3128   ac_ct_CC=$CC
3129   for ac_prog in cl.exe
3130 do
3131   # Extract the first word of "$ac_prog", so it can be a program name with args.
3132 set dummy $ac_prog; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3136   $as_echo_n "(cached) " >&6
3137 else
3138   if test -n "$ac_ct_CC"; then
3139   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3143 do
3144   IFS=$as_save_IFS
3145   test -z "$as_dir" && as_dir=.
3146     for ac_exec_ext in '' $ac_executable_extensions; do
3147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148     ac_cv_prog_ac_ct_CC="$ac_prog"
3149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150     break 2
3151   fi
3152 done
3153   done
3154 IFS=$as_save_IFS
3156 fi
3157 fi
3158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3159 if test -n "$ac_ct_CC"; then
3160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3161 $as_echo "$ac_ct_CC" >&6; }
3162 else
3163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165 fi
3168   test -n "$ac_ct_CC" && break
3169 done
3171   if test "x$ac_ct_CC" = x; then
3172     CC=""
3173   else
3174     case $cross_compiling:$ac_tool_warned in
3175 yes:)
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3178 ac_tool_warned=yes ;;
3179 esac
3180     CC=$ac_ct_CC
3181   fi
3182 fi
3184 fi
3187 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 as_fn_error $? "no acceptable C compiler found in \$PATH
3190 See \`config.log' for more details" "$LINENO" 5; }
3192 # Provide some information about the compiler.
3193 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3194 set X $ac_compile
3195 ac_compiler=$2
3196 for ac_option in --version -v -V -qversion; do
3197   { { ac_try="$ac_compiler $ac_option >&5"
3198 case "(($ac_try" in
3199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200   *) ac_try_echo=$ac_try;;
3201 esac
3202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203 $as_echo "$ac_try_echo"; } >&5
3204   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3205   ac_status=$?
3206   if test -s conftest.err; then
3207     sed '10a\
3208 ... rest of stderr output deleted ...
3209          10q' conftest.err >conftest.er1
3210     cat conftest.er1 >&5
3211   fi
3212   rm -f conftest.er1 conftest.err
3213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214   test $ac_status = 0; }
3215 done
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3218 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3219 if ${ac_cv_c_compiler_gnu+:} false; then :
3220   $as_echo_n "(cached) " >&6
3221 else
3222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223 /* end confdefs.h.  */
3225 int
3226 main ()
3228 #ifndef __GNUC__
3229        choke me
3230 #endif
3232   ;
3233   return 0;
3235 _ACEOF
3236 if ac_fn_c_try_compile "$LINENO"; then :
3237   ac_compiler_gnu=yes
3238 else
3239   ac_compiler_gnu=no
3240 fi
3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3244 fi
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3246 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3247 if test $ac_compiler_gnu = yes; then
3248   GCC=yes
3249 else
3250   GCC=
3251 fi
3252 ac_test_CFLAGS=${CFLAGS+set}
3253 ac_save_CFLAGS=$CFLAGS
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3255 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3256 if ${ac_cv_prog_cc_g+:} false; then :
3257   $as_echo_n "(cached) " >&6
3258 else
3259   ac_save_c_werror_flag=$ac_c_werror_flag
3260    ac_c_werror_flag=yes
3261    ac_cv_prog_cc_g=no
3262    CFLAGS="-g"
3263    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h.  */
3266 int
3267 main ()
3270   ;
3271   return 0;
3273 _ACEOF
3274 if ac_fn_c_try_compile "$LINENO"; then :
3275   ac_cv_prog_cc_g=yes
3276 else
3277   CFLAGS=""
3278       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h.  */
3281 int
3282 main ()
3285   ;
3286   return 0;
3288 _ACEOF
3289 if ac_fn_c_try_compile "$LINENO"; then :
3291 else
3292   ac_c_werror_flag=$ac_save_c_werror_flag
3293          CFLAGS="-g"
3294          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h.  */
3297 int
3298 main ()
3301   ;
3302   return 0;
3304 _ACEOF
3305 if ac_fn_c_try_compile "$LINENO"; then :
3306   ac_cv_prog_cc_g=yes
3307 fi
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3309 fi
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 fi
3312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313    ac_c_werror_flag=$ac_save_c_werror_flag
3314 fi
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3316 $as_echo "$ac_cv_prog_cc_g" >&6; }
3317 if test "$ac_test_CFLAGS" = set; then
3318   CFLAGS=$ac_save_CFLAGS
3319 elif test $ac_cv_prog_cc_g = yes; then
3320   if test "$GCC" = yes; then
3321     CFLAGS="-g -O2"
3322   else
3323     CFLAGS="-g"
3324   fi
3325 else
3326   if test "$GCC" = yes; then
3327     CFLAGS="-O2"
3328   else
3329     CFLAGS=
3330   fi
3331 fi
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3333 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3334 if ${ac_cv_prog_cc_c89+:} false; then :
3335   $as_echo_n "(cached) " >&6
3336 else
3337   ac_cv_prog_cc_c89=no
3338 ac_save_CC=$CC
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h.  */
3341 #include <stdarg.h>
3342 #include <stdio.h>
3343 struct stat;
3344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3345 struct buf { int x; };
3346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3347 static char *e (p, i)
3348      char **p;
3349      int i;
3351   return p[i];
3353 static char *f (char * (*g) (char **, int), char **p, ...)
3355   char *s;
3356   va_list v;
3357   va_start (v,p);
3358   s = g (p, va_arg (v,int));
3359   va_end (v);
3360   return s;
3363 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3364    function prototypes and stuff, but not '\xHH' hex character constants.
3365    These don't provoke an error unfortunately, instead are silently treated
3366    as 'x'.  The following induces an error, until -std is added to get
3367    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3368    array size at least.  It's necessary to write '\x00'==0 to get something
3369    that's true only with -std.  */
3370 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3372 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3373    inside strings and character constants.  */
3374 #define FOO(x) 'x'
3375 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3377 int test (int i, double x);
3378 struct s1 {int (*f) (int a);};
3379 struct s2 {int (*f) (double a);};
3380 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3381 int argc;
3382 char **argv;
3383 int
3384 main ()
3386 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3387   ;
3388   return 0;
3390 _ACEOF
3391 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3392         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3393 do
3394   CC="$ac_save_CC $ac_arg"
3395   if ac_fn_c_try_compile "$LINENO"; then :
3396   ac_cv_prog_cc_c89=$ac_arg
3397 fi
3398 rm -f core conftest.err conftest.$ac_objext
3399   test "x$ac_cv_prog_cc_c89" != "xno" && break
3400 done
3401 rm -f conftest.$ac_ext
3402 CC=$ac_save_CC
3404 fi
3405 # AC_CACHE_VAL
3406 case "x$ac_cv_prog_cc_c89" in
3407   x)
3408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3409 $as_echo "none needed" >&6; } ;;
3410   xno)
3411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3412 $as_echo "unsupported" >&6; } ;;
3413   *)
3414     CC="$CC $ac_cv_prog_cc_c89"
3415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3416 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3417 esac
3418 if test "x$ac_cv_prog_cc_c89" != xno; then :
3420 fi
3422 ac_ext=c
3423 ac_cpp='$CPP $CPPFLAGS'
3424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428 ac_ext=c
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3434 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3435 # On Suns, sometimes $CPP names a directory.
3436 if test -n "$CPP" && test -d "$CPP"; then
3437   CPP=
3438 fi
3439 if test -z "$CPP"; then
3440   if ${ac_cv_prog_CPP+:} false; then :
3441   $as_echo_n "(cached) " >&6
3442 else
3443       # Double quotes because CPP needs to be expanded
3444     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3445     do
3446       ac_preproc_ok=false
3447 for ac_c_preproc_warn_flag in '' yes
3448 do
3449   # Use a header file that comes with gcc, so configuring glibc
3450   # with a fresh cross-compiler works.
3451   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3452   # <limits.h> exists even on freestanding compilers.
3453   # On the NeXT, cc -E runs the code through the compiler's parser,
3454   # not just through cpp. "Syntax error" is here to catch this case.
3455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h.  */
3457 #ifdef __STDC__
3458 # include <limits.h>
3459 #else
3460 # include <assert.h>
3461 #endif
3462                      Syntax error
3463 _ACEOF
3464 if ac_fn_c_try_cpp "$LINENO"; then :
3466 else
3467   # Broken: fails on valid input.
3468 continue
3469 fi
3470 rm -f conftest.err conftest.i conftest.$ac_ext
3472   # OK, works on sane cases.  Now check whether nonexistent headers
3473   # can be detected and how.
3474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h.  */
3476 #include <ac_nonexistent.h>
3477 _ACEOF
3478 if ac_fn_c_try_cpp "$LINENO"; then :
3479   # Broken: success on invalid input.
3480 continue
3481 else
3482   # Passes both tests.
3483 ac_preproc_ok=:
3484 break
3485 fi
3486 rm -f conftest.err conftest.i conftest.$ac_ext
3488 done
3489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3490 rm -f conftest.i conftest.err conftest.$ac_ext
3491 if $ac_preproc_ok; then :
3492   break
3493 fi
3495     done
3496     ac_cv_prog_CPP=$CPP
3498 fi
3499   CPP=$ac_cv_prog_CPP
3500 else
3501   ac_cv_prog_CPP=$CPP
3502 fi
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3504 $as_echo "$CPP" >&6; }
3505 ac_preproc_ok=false
3506 for ac_c_preproc_warn_flag in '' yes
3507 do
3508   # Use a header file that comes with gcc, so configuring glibc
3509   # with a fresh cross-compiler works.
3510   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3511   # <limits.h> exists even on freestanding compilers.
3512   # On the NeXT, cc -E runs the code through the compiler's parser,
3513   # not just through cpp. "Syntax error" is here to catch this case.
3514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h.  */
3516 #ifdef __STDC__
3517 # include <limits.h>
3518 #else
3519 # include <assert.h>
3520 #endif
3521                      Syntax error
3522 _ACEOF
3523 if ac_fn_c_try_cpp "$LINENO"; then :
3525 else
3526   # Broken: fails on valid input.
3527 continue
3528 fi
3529 rm -f conftest.err conftest.i conftest.$ac_ext
3531   # OK, works on sane cases.  Now check whether nonexistent headers
3532   # can be detected and how.
3533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h.  */
3535 #include <ac_nonexistent.h>
3536 _ACEOF
3537 if ac_fn_c_try_cpp "$LINENO"; then :
3538   # Broken: success on invalid input.
3539 continue
3540 else
3541   # Passes both tests.
3542 ac_preproc_ok=:
3543 break
3544 fi
3545 rm -f conftest.err conftest.i conftest.$ac_ext
3547 done
3548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3549 rm -f conftest.i conftest.err conftest.$ac_ext
3550 if $ac_preproc_ok; then :
3552 else
3553   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3556 See \`config.log' for more details" "$LINENO" 5; }
3557 fi
3559 ac_ext=c
3560 ac_cpp='$CPP $CPPFLAGS'
3561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566 # Check prefix directories.
3568 if test "x$prefix" = "xNONE" ; then
3569         prefix="/usr/local"
3570 fi
3572 if test "x$exec_prefix" = "xNONE" ; then
3573         exec_prefix=$prefix
3574 fi
3576 PREFIX=$prefix
3579 if test "x$bindir" = "xNONE" ; then
3580         bindir="/bin"
3581 fi
3582 BINDIR=`eval echo $bindir`
3585 if test "x$datarootdir" = "xNONE" ; then
3586         datarootdir="/share"
3587 fi
3588 DATAROOTDIR=`eval echo $datarootdir`
3591 # Checks for libraries.
3593 # wxWidgets
3595 ac_ext=cpp
3596 ac_cpp='$CXXCPP $CPPFLAGS'
3597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3602 # Check for C++11 support for the compiler.
3604 CPPFLAGS="$CPPFLAGS -std=c++11"
3605 CXXFLAGS="$CXXFLAGS -std=c++11"
3607 # Checks for header files.
3609 ac_ext=cpp
3610 ac_cpp='$CXXCPP $CPPFLAGS'
3611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3615 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3616 if test -z "$CXXCPP"; then
3617   if ${ac_cv_prog_CXXCPP+:} false; then :
3618   $as_echo_n "(cached) " >&6
3619 else
3620       # Double quotes because CXXCPP needs to be expanded
3621     for CXXCPP in "$CXX -E" "/lib/cpp"
3622     do
3623       ac_preproc_ok=false
3624 for ac_cxx_preproc_warn_flag in '' yes
3625 do
3626   # Use a header file that comes with gcc, so configuring glibc
3627   # with a fresh cross-compiler works.
3628   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3629   # <limits.h> exists even on freestanding compilers.
3630   # On the NeXT, cc -E runs the code through the compiler's parser,
3631   # not just through cpp. "Syntax error" is here to catch this case.
3632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h.  */
3634 #ifdef __STDC__
3635 # include <limits.h>
3636 #else
3637 # include <assert.h>
3638 #endif
3639                      Syntax error
3640 _ACEOF
3641 if ac_fn_cxx_try_cpp "$LINENO"; then :
3643 else
3644   # Broken: fails on valid input.
3645 continue
3646 fi
3647 rm -f conftest.err conftest.i conftest.$ac_ext
3649   # OK, works on sane cases.  Now check whether nonexistent headers
3650   # can be detected and how.
3651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h.  */
3653 #include <ac_nonexistent.h>
3654 _ACEOF
3655 if ac_fn_cxx_try_cpp "$LINENO"; then :
3656   # Broken: success on invalid input.
3657 continue
3658 else
3659   # Passes both tests.
3660 ac_preproc_ok=:
3661 break
3662 fi
3663 rm -f conftest.err conftest.i conftest.$ac_ext
3665 done
3666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3667 rm -f conftest.i conftest.err conftest.$ac_ext
3668 if $ac_preproc_ok; then :
3669   break
3670 fi
3672     done
3673     ac_cv_prog_CXXCPP=$CXXCPP
3675 fi
3676   CXXCPP=$ac_cv_prog_CXXCPP
3677 else
3678   ac_cv_prog_CXXCPP=$CXXCPP
3679 fi
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3681 $as_echo "$CXXCPP" >&6; }
3682 ac_preproc_ok=false
3683 for ac_cxx_preproc_warn_flag in '' yes
3684 do
3685   # Use a header file that comes with gcc, so configuring glibc
3686   # with a fresh cross-compiler works.
3687   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3688   # <limits.h> exists even on freestanding compilers.
3689   # On the NeXT, cc -E runs the code through the compiler's parser,
3690   # not just through cpp. "Syntax error" is here to catch this case.
3691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h.  */
3693 #ifdef __STDC__
3694 # include <limits.h>
3695 #else
3696 # include <assert.h>
3697 #endif
3698                      Syntax error
3699 _ACEOF
3700 if ac_fn_cxx_try_cpp "$LINENO"; then :
3702 else
3703   # Broken: fails on valid input.
3704 continue
3705 fi
3706 rm -f conftest.err conftest.i conftest.$ac_ext
3708   # OK, works on sane cases.  Now check whether nonexistent headers
3709   # can be detected and how.
3710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h.  */
3712 #include <ac_nonexistent.h>
3713 _ACEOF
3714 if ac_fn_cxx_try_cpp "$LINENO"; then :
3715   # Broken: success on invalid input.
3716 continue
3717 else
3718   # Passes both tests.
3719 ac_preproc_ok=:
3720 break
3721 fi
3722 rm -f conftest.err conftest.i conftest.$ac_ext
3724 done
3725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3726 rm -f conftest.i conftest.err conftest.$ac_ext
3727 if $ac_preproc_ok; then :
3729 else
3730   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3732 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
3733 See \`config.log' for more details" "$LINENO" 5; }
3734 fi
3736 ac_ext=cpp
3737 ac_cpp='$CXXCPP $CPPFLAGS'
3738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3744 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3745 if ${ac_cv_path_GREP+:} false; then :
3746   $as_echo_n "(cached) " >&6
3747 else
3748   if test -z "$GREP"; then
3749   ac_path_GREP_found=false
3750   # Loop through the user's path and test for each of PROGNAME-LIST
3751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3753 do
3754   IFS=$as_save_IFS
3755   test -z "$as_dir" && as_dir=.
3756     for ac_prog in grep ggrep; do
3757     for ac_exec_ext in '' $ac_executable_extensions; do
3758       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3759       as_fn_executable_p "$ac_path_GREP" || continue
3760 # Check for GNU ac_path_GREP and select it if it is found.
3761   # Check for GNU $ac_path_GREP
3762 case `"$ac_path_GREP" --version 2>&1` in
3763 *GNU*)
3764   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3765 *)
3766   ac_count=0
3767   $as_echo_n 0123456789 >"conftest.in"
3768   while :
3769   do
3770     cat "conftest.in" "conftest.in" >"conftest.tmp"
3771     mv "conftest.tmp" "conftest.in"
3772     cp "conftest.in" "conftest.nl"
3773     $as_echo 'GREP' >> "conftest.nl"
3774     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3775     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3776     as_fn_arith $ac_count + 1 && ac_count=$as_val
3777     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3778       # Best one so far, save it but keep looking for a better one
3779       ac_cv_path_GREP="$ac_path_GREP"
3780       ac_path_GREP_max=$ac_count
3781     fi
3782     # 10*(2^10) chars as input seems more than enough
3783     test $ac_count -gt 10 && break
3784   done
3785   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3786 esac
3788       $ac_path_GREP_found && break 3
3789     done
3790   done
3791   done
3792 IFS=$as_save_IFS
3793   if test -z "$ac_cv_path_GREP"; then
3794     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3795   fi
3796 else
3797   ac_cv_path_GREP=$GREP
3798 fi
3800 fi
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3802 $as_echo "$ac_cv_path_GREP" >&6; }
3803  GREP="$ac_cv_path_GREP"
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3807 $as_echo_n "checking for egrep... " >&6; }
3808 if ${ac_cv_path_EGREP+:} false; then :
3809   $as_echo_n "(cached) " >&6
3810 else
3811   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3812    then ac_cv_path_EGREP="$GREP -E"
3813    else
3814      if test -z "$EGREP"; then
3815   ac_path_EGREP_found=false
3816   # Loop through the user's path and test for each of PROGNAME-LIST
3817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3819 do
3820   IFS=$as_save_IFS
3821   test -z "$as_dir" && as_dir=.
3822     for ac_prog in egrep; do
3823     for ac_exec_ext in '' $ac_executable_extensions; do
3824       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3825       as_fn_executable_p "$ac_path_EGREP" || continue
3826 # Check for GNU ac_path_EGREP and select it if it is found.
3827   # Check for GNU $ac_path_EGREP
3828 case `"$ac_path_EGREP" --version 2>&1` in
3829 *GNU*)
3830   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3831 *)
3832   ac_count=0
3833   $as_echo_n 0123456789 >"conftest.in"
3834   while :
3835   do
3836     cat "conftest.in" "conftest.in" >"conftest.tmp"
3837     mv "conftest.tmp" "conftest.in"
3838     cp "conftest.in" "conftest.nl"
3839     $as_echo 'EGREP' >> "conftest.nl"
3840     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3841     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3842     as_fn_arith $ac_count + 1 && ac_count=$as_val
3843     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3844       # Best one so far, save it but keep looking for a better one
3845       ac_cv_path_EGREP="$ac_path_EGREP"
3846       ac_path_EGREP_max=$ac_count
3847     fi
3848     # 10*(2^10) chars as input seems more than enough
3849     test $ac_count -gt 10 && break
3850   done
3851   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3852 esac
3854       $ac_path_EGREP_found && break 3
3855     done
3856   done
3857   done
3858 IFS=$as_save_IFS
3859   if test -z "$ac_cv_path_EGREP"; then
3860     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3861   fi
3862 else
3863   ac_cv_path_EGREP=$EGREP
3864 fi
3866    fi
3867 fi
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3869 $as_echo "$ac_cv_path_EGREP" >&6; }
3870  EGREP="$ac_cv_path_EGREP"
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3874 $as_echo_n "checking for ANSI C header files... " >&6; }
3875 if ${ac_cv_header_stdc+:} false; then :
3876   $as_echo_n "(cached) " >&6
3877 else
3878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h.  */
3880 #include <stdlib.h>
3881 #include <stdarg.h>
3882 #include <string.h>
3883 #include <float.h>
3885 int
3886 main ()
3889   ;
3890   return 0;
3892 _ACEOF
3893 if ac_fn_cxx_try_compile "$LINENO"; then :
3894   ac_cv_header_stdc=yes
3895 else
3896   ac_cv_header_stdc=no
3897 fi
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 if test $ac_cv_header_stdc = yes; then
3901   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h.  */
3904 #include <string.h>
3906 _ACEOF
3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908   $EGREP "memchr" >/dev/null 2>&1; then :
3910 else
3911   ac_cv_header_stdc=no
3912 fi
3913 rm -f conftest*
3915 fi
3917 if test $ac_cv_header_stdc = yes; then
3918   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h.  */
3921 #include <stdlib.h>
3923 _ACEOF
3924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3925   $EGREP "free" >/dev/null 2>&1; then :
3927 else
3928   ac_cv_header_stdc=no
3929 fi
3930 rm -f conftest*
3932 fi
3934 if test $ac_cv_header_stdc = yes; then
3935   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3936   if test "$cross_compiling" = yes; then :
3937   :
3938 else
3939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h.  */
3941 #include <ctype.h>
3942 #include <stdlib.h>
3943 #if ((' ' & 0x0FF) == 0x020)
3944 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3945 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3946 #else
3947 # define ISLOWER(c) \
3948                    (('a' <= (c) && (c) <= 'i') \
3949                      || ('j' <= (c) && (c) <= 'r') \
3950                      || ('s' <= (c) && (c) <= 'z'))
3951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3952 #endif
3954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3955 int
3956 main ()
3958   int i;
3959   for (i = 0; i < 256; i++)
3960     if (XOR (islower (i), ISLOWER (i))
3961         || toupper (i) != TOUPPER (i))
3962       return 2;
3963   return 0;
3965 _ACEOF
3966 if ac_fn_cxx_try_run "$LINENO"; then :
3968 else
3969   ac_cv_header_stdc=no
3970 fi
3971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3972   conftest.$ac_objext conftest.beam conftest.$ac_ext
3973 fi
3975 fi
3976 fi
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3978 $as_echo "$ac_cv_header_stdc" >&6; }
3979 if test $ac_cv_header_stdc = yes; then
3981 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3983 fi
3985 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3986 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3987                   inttypes.h stdint.h unistd.h
3988 do :
3989   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3990 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3992 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3993   cat >>confdefs.h <<_ACEOF
3994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3995 _ACEOF
3997 fi
3999 done
4002 for ac_header in stdlib.h string.h iostream iomanip ios algorithm map vector utility
4003 do :
4004   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4005 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4006 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4007   cat >>confdefs.h <<_ACEOF
4008 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4009 _ACEOF
4011 fi
4013 done
4016 ac_fn_cxx_check_header_mongrel "$LINENO" "thread" "ac_cv_header_thread" "$ac_includes_default"
4017 if test "x$ac_cv_header_thread" = xyes; then :
4019 else
4020   echo "The C++ compiler does not support C++11 extensions which is
4021 needed for Xestia Address Book. Please install or use a
4022 compiler that supports C++11 extensions."
4023         exit -1
4025 fi
4031 # Check whether --with-wxdir was given.
4032 if test "${with_wxdir+set}" = set; then :
4033   withval=$with_wxdir;  wx_config_name="$withval/wx-config"
4034                   wx_config_args="--inplace"
4035 fi
4038 # Check whether --with-wx-config was given.
4039 if test "${with_wx_config+set}" = set; then :
4040   withval=$with_wx_config; wx_config_name="$withval"
4041 fi
4044 # Check whether --with-wx-prefix was given.
4045 if test "${with_wx_prefix+set}" = set; then :
4046   withval=$with_wx_prefix; wx_config_prefix="$withval"
4047 else
4048   wx_config_prefix=""
4049 fi
4052 # Check whether --with-wx-exec-prefix was given.
4053 if test "${with_wx_exec_prefix+set}" = set; then :
4054   withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
4055 else
4056   wx_config_exec_prefix=""
4057 fi
4060 reqwx=3.0.0
4063     if test x${WX_CONFIG_NAME+set} != xset ; then
4064      WX_CONFIG_NAME=wx-config
4065   fi
4067   if test "x$wx_config_name" != x ; then
4068      WX_CONFIG_NAME="$wx_config_name"
4069   fi
4071     if test x$wx_config_exec_prefix != x ; then
4072      wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
4073      WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
4074   fi
4075   if test x$wx_config_prefix != x ; then
4076      wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
4077      WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
4078   fi
4079   if test "$cross_compiling" = "yes"; then
4080      wx_config_args="$wx_config_args --host=$host_alias"
4081   fi
4083     if test -x "$WX_CONFIG_NAME" ; then
4084      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
4085 $as_echo_n "checking for wx-config... " >&6; }
4086      WX_CONFIG_PATH="$WX_CONFIG_NAME"
4087      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
4088 $as_echo "$WX_CONFIG_PATH" >&6; }
4089   else
4090      # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
4091 set dummy $WX_CONFIG_NAME; ac_word=$2
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 $as_echo_n "checking for $ac_word... " >&6; }
4094 if ${ac_cv_path_WX_CONFIG_PATH+:} false; then :
4095   $as_echo_n "(cached) " >&6
4096 else
4097   case $WX_CONFIG_PATH in
4098   [\\/]* | ?:[\\/]*)
4099   ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
4100   ;;
4101   *)
4102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 as_dummy=""$WX_LOOKUP_PATH:$PATH""
4104 for as_dir in $as_dummy
4105 do
4106   IFS=$as_save_IFS
4107   test -z "$as_dir" && as_dir=.
4108     for ac_exec_ext in '' $ac_executable_extensions; do
4109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4110     ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
4111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112     break 2
4113   fi
4114 done
4115   done
4116 IFS=$as_save_IFS
4118   test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
4119   ;;
4120 esac
4121 fi
4122 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
4123 if test -n "$WX_CONFIG_PATH"; then
4124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
4125 $as_echo "$WX_CONFIG_PATH" >&6; }
4126 else
4127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4129 fi
4132   fi
4134   if test "$WX_CONFIG_PATH" != "no" ; then
4135     WX_VERSION=""
4137     min_wx_version=$reqwx
4138     if test -z "" ; then
4139       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
4140 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
4141     else
4142       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ()" >&5
4143 $as_echo_n "checking for wxWidgets version >= $min_wx_version ()... " >&6; }
4144     fi
4146             WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args "
4148     WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
4149     wx_config_major_version=`echo $WX_VERSION | \
4150            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4151     wx_config_minor_version=`echo $WX_VERSION | \
4152            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4153     wx_config_micro_version=`echo $WX_VERSION | \
4154            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4156     wx_requested_major_version=`echo $min_wx_version | \
4157            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4158     wx_requested_minor_version=`echo $min_wx_version | \
4159            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4160     wx_requested_micro_version=`echo $min_wx_version | \
4161            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4164     wx_ver_ok=""
4165     if test "x$WX_VERSION" != x ; then
4166       if test $wx_config_major_version -gt $wx_requested_major_version; then
4167         wx_ver_ok=yes
4168       else
4169         if test $wx_config_major_version -eq $wx_requested_major_version; then
4170            if test $wx_config_minor_version -gt $wx_requested_minor_version; then
4171               wx_ver_ok=yes
4172            else
4173               if test $wx_config_minor_version -eq $wx_requested_minor_version; then
4174                  if test $wx_config_micro_version -ge $wx_requested_micro_version; then
4175                     wx_ver_ok=yes
4176                  fi
4177               fi
4178            fi
4179         fi
4180       fi
4181     fi
4184     if test -n "$wx_ver_ok"; then
4185       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION)" >&5
4186 $as_echo "yes (version $WX_VERSION)" >&6; }
4187       WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs `
4189                               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets static library" >&5
4190 $as_echo_n "checking for wxWidgets static library... " >&6; }
4191       WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs  2>/dev/null`
4192       if test "x$WX_LIBS_STATIC" = "x"; then
4193         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4195       else
4196         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4197 $as_echo "yes" >&6; }
4198       fi
4200             wx_has_cppflags=""
4201       if test $wx_config_major_version -gt 2; then
4202         wx_has_cppflags=yes
4203       else
4204         if test $wx_config_major_version -eq 2; then
4205            if test $wx_config_minor_version -gt 2; then
4206               wx_has_cppflags=yes
4207            else
4208               if test $wx_config_minor_version -eq 2; then
4209                  if test $wx_config_micro_version -ge 6; then
4210                     wx_has_cppflags=yes
4211                  fi
4212               fi
4213            fi
4214         fi
4215       fi
4217             wx_has_rescomp=""
4218       if test $wx_config_major_version -gt 2; then
4219         wx_has_rescomp=yes
4220       else
4221         if test $wx_config_major_version -eq 2; then
4222            if test $wx_config_minor_version -ge 7; then
4223               wx_has_rescomp=yes
4224            fi
4225         fi
4226       fi
4227       if test "x$wx_has_rescomp" = x ; then
4228                   WX_RESCOMP=
4229       else
4230          WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
4231       fi
4233       if test "x$wx_has_cppflags" = x ; then
4234                   WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags `
4235          WX_CPPFLAGS=$WX_CFLAGS
4236          WX_CXXFLAGS=$WX_CFLAGS
4238          WX_CFLAGS_ONLY=$WX_CFLAGS
4239          WX_CXXFLAGS_ONLY=$WX_CFLAGS
4240       else
4241                   WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags `
4242          WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags `
4243          WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags `
4245          WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
4246          WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
4247       fi
4249       wxWin=1
4251     else
4253        if test "x$WX_VERSION" = x; then
4254                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4256        else
4257           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION is not new enough)" >&5
4258 $as_echo "no (version $WX_VERSION is not new enough)" >&6; }
4259        fi
4261        WX_CFLAGS=""
4262        WX_CPPFLAGS=""
4263        WX_CXXFLAGS=""
4264        WX_LIBS=""
4265        WX_LIBS_STATIC=""
4266        WX_RESCOMP=""
4268        if test ! -z ""; then
4270           wx_error_message="
4271     The configuration you asked for $PACKAGE_NAME requires a wxWidgets
4272     build with the following settings:
4274     but such build is not available.
4276     To see the wxWidgets builds available on this system, please use
4277     'wx-config --list' command. To use the default build, returned by
4278     'wx-config --selected-config', use the options with their 'auto'
4279     default values."
4281        fi
4283        wx_error_message="
4284     The requested wxWidgets build couldn't be found.
4285     $wx_error_message
4287     If you still get this error, then check that 'wx-config' is
4288     in path, the directory where wxWidgets libraries are installed
4289     (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
4290     or equivalent variable and wxWidgets version is $reqwx or above."
4292        as_fn_error $? "$wx_error_message" "$LINENO" 5
4294     fi
4295   else
4297     WX_CFLAGS=""
4298     WX_CPPFLAGS=""
4299     WX_CXXFLAGS=""
4300     WX_LIBS=""
4301     WX_LIBS_STATIC=""
4302     WX_RESCOMP=""
4304     :
4306   fi
4318       WX_VERSION_MAJOR="$wx_config_major_version"
4319   WX_VERSION_MINOR="$wx_config_minor_version"
4320   WX_VERSION_MICRO="$wx_config_micro_version"
4326 if test "$wxWin" != 1; then
4327         as_fn_error $? "
4328 wxWidgets must be installed on your system.
4330 Please check that wx-config is in path, the directory where wxWidgets libraries
4331 are installed (returned by 'wx-config --libs' or 'wx-config --static --libs'
4332 command) is in LD_LIBRARY_PATH or equivalent variable and wxWidgets version
4333 is $reqwx or above.
4334                 " "$LINENO" 5
4335 fi
4337 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
4338 CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
4339 CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
4340 LIBS="$LIBS $WX_LIBS"
4342 # SFML Audio Library
4351 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4352         if test -n "$ac_tool_prefix"; then
4353   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4354 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356 $as_echo_n "checking for $ac_word... " >&6; }
4357 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4358   $as_echo_n "(cached) " >&6
4359 else
4360   case $PKG_CONFIG in
4361   [\\/]* | ?:[\\/]*)
4362   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4363   ;;
4364   *)
4365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4367 do
4368   IFS=$as_save_IFS
4369   test -z "$as_dir" && as_dir=.
4370     for ac_exec_ext in '' $ac_executable_extensions; do
4371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4372     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4374     break 2
4375   fi
4376 done
4377   done
4378 IFS=$as_save_IFS
4380   ;;
4381 esac
4382 fi
4383 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4384 if test -n "$PKG_CONFIG"; then
4385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4386 $as_echo "$PKG_CONFIG" >&6; }
4387 else
4388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 $as_echo "no" >&6; }
4390 fi
4393 fi
4394 if test -z "$ac_cv_path_PKG_CONFIG"; then
4395   ac_pt_PKG_CONFIG=$PKG_CONFIG
4396   # Extract the first word of "pkg-config", so it can be a program name with args.
4397 set dummy pkg-config; ac_word=$2
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399 $as_echo_n "checking for $ac_word... " >&6; }
4400 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4401   $as_echo_n "(cached) " >&6
4402 else
4403   case $ac_pt_PKG_CONFIG in
4404   [\\/]* | ?:[\\/]*)
4405   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4406   ;;
4407   *)
4408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
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_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417     break 2
4418   fi
4419 done
4420   done
4421 IFS=$as_save_IFS
4423   ;;
4424 esac
4425 fi
4426 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4427 if test -n "$ac_pt_PKG_CONFIG"; then
4428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4429 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4430 else
4431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 $as_echo "no" >&6; }
4433 fi
4435   if test "x$ac_pt_PKG_CONFIG" = x; then
4436     PKG_CONFIG=""
4437   else
4438     case $cross_compiling:$ac_tool_warned in
4439 yes:)
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4442 ac_tool_warned=yes ;;
4443 esac
4444     PKG_CONFIG=$ac_pt_PKG_CONFIG
4445   fi
4446 else
4447   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4448 fi
4450 fi
4451 if test -n "$PKG_CONFIG"; then
4452         _pkg_min_version=0.9.0
4453         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4454 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4455         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4456                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4457 $as_echo "yes" >&6; }
4458         else
4459                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 $as_echo "no" >&6; }
4461                 PKG_CONFIG=""
4462         fi
4463 fi
4465 pkg_failed=no
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SFML" >&5
4467 $as_echo_n "checking for SFML... " >&6; }
4469 if test -n "$SFML_CFLAGS"; then
4470     pkg_cv_SFML_CFLAGS="$SFML_CFLAGS"
4471  elif test -n "$PKG_CONFIG"; then
4472     if test -n "$PKG_CONFIG" && \
4473     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sfml-all >= 2.4.1\""; } >&5
4474   ($PKG_CONFIG --exists --print-errors "sfml-all >= 2.4.1") 2>&5
4475   ac_status=$?
4476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4477   test $ac_status = 0; }; then
4478   pkg_cv_SFML_CFLAGS=`$PKG_CONFIG --cflags "sfml-all >= 2.4.1" 2>/dev/null`
4479                       test "x$?" != "x0" && pkg_failed=yes
4480 else
4481   pkg_failed=yes
4482 fi
4483  else
4484     pkg_failed=untried
4485 fi
4486 if test -n "$SFML_LIBS"; then
4487     pkg_cv_SFML_LIBS="$SFML_LIBS"
4488  elif test -n "$PKG_CONFIG"; then
4489     if test -n "$PKG_CONFIG" && \
4490     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sfml-all >= 2.4.1\""; } >&5
4491   ($PKG_CONFIG --exists --print-errors "sfml-all >= 2.4.1") 2>&5
4492   ac_status=$?
4493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4494   test $ac_status = 0; }; then
4495   pkg_cv_SFML_LIBS=`$PKG_CONFIG --libs "sfml-all >= 2.4.1" 2>/dev/null`
4496                       test "x$?" != "x0" && pkg_failed=yes
4497 else
4498   pkg_failed=yes
4499 fi
4500  else
4501     pkg_failed=untried
4502 fi
4506 if test $pkg_failed = yes; then
4507         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508 $as_echo "no" >&6; }
4510 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4511         _pkg_short_errors_supported=yes
4512 else
4513         _pkg_short_errors_supported=no
4514 fi
4515         if test $_pkg_short_errors_supported = yes; then
4516                 SFML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sfml-all >= 2.4.1" 2>&1`
4517         else
4518                 SFML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sfml-all >= 2.4.1" 2>&1`
4519         fi
4520         # Put the nasty error message in config.log where it belongs
4521         echo "$SFML_PKG_ERRORS" >&5
4523         as_fn_error $? "Package requirements (sfml-all >= 2.4.1) were not met:
4525 $SFML_PKG_ERRORS
4527 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4528 installed software in a non-standard prefix.
4530 Alternatively, you may set the environment variables SFML_CFLAGS
4531 and SFML_LIBS to avoid the need to call pkg-config.
4532 See the pkg-config man page for more details." "$LINENO" 5
4533 elif test $pkg_failed = untried; then
4534         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 $as_echo "no" >&6; }
4536         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4538 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4539 is in your PATH or set the PKG_CONFIG environment variable to the full
4540 path to pkg-config.
4542 Alternatively, you may set the environment variables SFML_CFLAGS
4543 and SFML_LIBS to avoid the need to call pkg-config.
4544 See the pkg-config man page for more details.
4546 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4547 See \`config.log' for more details" "$LINENO" 5; }
4548 else
4549         SFML_CFLAGS=$pkg_cv_SFML_CFLAGS
4550         SFML_LIBS=$pkg_cv_SFML_LIBS
4551         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4552 $as_echo "yes" >&6; }
4554 fi
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsfml-audio" >&5
4557 $as_echo_n "checking for main in -lsfml-audio... " >&6; }
4558 if ${ac_cv_lib_sfml_audio_main+:} false; then :
4559   $as_echo_n "(cached) " >&6
4560 else
4561   ac_check_lib_save_LIBS=$LIBS
4562 LIBS="-lsfml-audio  $LIBS"
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h.  */
4567 int
4568 main ()
4570 return main ();
4571   ;
4572   return 0;
4574 _ACEOF
4575 if ac_fn_cxx_try_link "$LINENO"; then :
4576   ac_cv_lib_sfml_audio_main=yes
4577 else
4578   ac_cv_lib_sfml_audio_main=no
4579 fi
4580 rm -f core conftest.err conftest.$ac_objext \
4581     conftest$ac_exeext conftest.$ac_ext
4582 LIBS=$ac_check_lib_save_LIBS
4583 fi
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sfml_audio_main" >&5
4585 $as_echo "$ac_cv_lib_sfml_audio_main" >&6; }
4586 if test "x$ac_cv_lib_sfml_audio_main" = xyes; then :
4587   cat >>confdefs.h <<_ACEOF
4588 #define HAVE_LIBSFML_AUDIO 1
4589 _ACEOF
4591   LIBS="-lsfml-audio $LIBS"
4593 else
4594   echo "The SFML libraries must be installed on your system.
4595 Please check that this library is installed properly before
4596 running configure again."
4597         exit -1
4599 fi
4602 ac_fn_cxx_check_header_mongrel "$LINENO" "SFML/Audio.hpp" "ac_cv_header_SFML_Audio_hpp" "$ac_includes_default"
4603 if test "x$ac_cv_header_SFML_Audio_hpp" = xyes; then :
4605 else
4606   echo "The SFML library headers must be installed on your system.
4607 Please check that the library headers are installed properly
4608 before running configure again."
4609         exit -1
4611 fi
4615 ac_ext=c
4616 ac_cpp='$CPP $CPPFLAGS'
4617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4622 # curl Library
4625 pkg_failed=no
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
4627 $as_echo_n "checking for CURL... " >&6; }
4629 if test -n "$CURL_CFLAGS"; then
4630     pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
4631  elif test -n "$PKG_CONFIG"; then
4632     if test -n "$PKG_CONFIG" && \
4633     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.54.1\""; } >&5
4634   ($PKG_CONFIG --exists --print-errors "libcurl >= 7.54.1") 2>&5
4635   ac_status=$?
4636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4637   test $ac_status = 0; }; then
4638   pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.54.1" 2>/dev/null`
4639                       test "x$?" != "x0" && pkg_failed=yes
4640 else
4641   pkg_failed=yes
4642 fi
4643  else
4644     pkg_failed=untried
4645 fi
4646 if test -n "$CURL_LIBS"; then
4647     pkg_cv_CURL_LIBS="$CURL_LIBS"
4648  elif test -n "$PKG_CONFIG"; then
4649     if test -n "$PKG_CONFIG" && \
4650     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.54.1\""; } >&5
4651   ($PKG_CONFIG --exists --print-errors "libcurl >= 7.54.1") 2>&5
4652   ac_status=$?
4653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4654   test $ac_status = 0; }; then
4655   pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.54.1" 2>/dev/null`
4656                       test "x$?" != "x0" && pkg_failed=yes
4657 else
4658   pkg_failed=yes
4659 fi
4660  else
4661     pkg_failed=untried
4662 fi
4666 if test $pkg_failed = yes; then
4667         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4670 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4671         _pkg_short_errors_supported=yes
4672 else
4673         _pkg_short_errors_supported=no
4674 fi
4675         if test $_pkg_short_errors_supported = yes; then
4676                 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.54.1" 2>&1`
4677         else
4678                 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.54.1" 2>&1`
4679         fi
4680         # Put the nasty error message in config.log where it belongs
4681         echo "$CURL_PKG_ERRORS" >&5
4683         as_fn_error $? "Package requirements (libcurl >= 7.54.1) were not met:
4685 $CURL_PKG_ERRORS
4687 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4688 installed software in a non-standard prefix.
4690 Alternatively, you may set the environment variables CURL_CFLAGS
4691 and CURL_LIBS to avoid the need to call pkg-config.
4692 See the pkg-config man page for more details." "$LINENO" 5
4693 elif test $pkg_failed = untried; then
4694         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 $as_echo "no" >&6; }
4696         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4698 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4699 is in your PATH or set the PKG_CONFIG environment variable to the full
4700 path to pkg-config.
4702 Alternatively, you may set the environment variables CURL_CFLAGS
4703 and CURL_LIBS to avoid the need to call pkg-config.
4704 See the pkg-config man page for more details.
4706 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4707 See \`config.log' for more details" "$LINENO" 5; }
4708 else
4709         CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
4710         CURL_LIBS=$pkg_cv_CURL_LIBS
4711         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4712 $as_echo "yes" >&6; }
4714 fi
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurl" >&5
4718 $as_echo_n "checking for main in -lcurl... " >&6; }
4719 if ${ac_cv_lib_curl_main+:} false; then :
4720   $as_echo_n "(cached) " >&6
4721 else
4722   ac_check_lib_save_LIBS=$LIBS
4723 LIBS="-lcurl  $LIBS"
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h.  */
4728 int
4729 main ()
4731 return main ();
4732   ;
4733   return 0;
4735 _ACEOF
4736 if ac_fn_c_try_link "$LINENO"; then :
4737   ac_cv_lib_curl_main=yes
4738 else
4739   ac_cv_lib_curl_main=no
4740 fi
4741 rm -f core conftest.err conftest.$ac_objext \
4742     conftest$ac_exeext conftest.$ac_ext
4743 LIBS=$ac_check_lib_save_LIBS
4744 fi
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_main" >&5
4746 $as_echo "$ac_cv_lib_curl_main" >&6; }
4747 if test "x$ac_cv_lib_curl_main" = xyes; then :
4748   cat >>confdefs.h <<_ACEOF
4749 #define HAVE_LIBCURL 1
4750 _ACEOF
4752   LIBS="-lcurl $LIBS"
4754 else
4755   echo "The cURL library must be installed on your system.
4756 Please check that this library is installed properly before
4757 running configure again."
4758         exit -1
4760 fi
4764 ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
4765 if test "x$ac_cv_header_curl_curl_h" = xyes; then :
4767 else
4768   echo "The cURL library headers must be installed on your system.
4769 Please check that the library headers are installed properly
4770 before running configure again."
4771         exit -1
4773 fi
4777 # Extract the first word of "curl-config", so it can be a program name with args.
4778 set dummy curl-config; ac_word=$2
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if ${ac_cv_prog_FOUND_CURLCONFIG+:} false; then :
4782   $as_echo_n "(cached) " >&6
4783 else
4784   if test -n "$FOUND_CURLCONFIG"; then
4785   ac_cv_prog_FOUND_CURLCONFIG="$FOUND_CURLCONFIG" # Let the user override the test.
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790   IFS=$as_save_IFS
4791   test -z "$as_dir" && as_dir=.
4792     for ac_exec_ext in '' $ac_executable_extensions; do
4793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794     ac_cv_prog_FOUND_CURLCONFIG="yes"
4795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796     break 2
4797   fi
4798 done
4799   done
4800 IFS=$as_save_IFS
4802   test -z "$ac_cv_prog_FOUND_CURLCONFIG" && ac_cv_prog_FOUND_CURLCONFIG="no"
4803 fi
4804 fi
4805 FOUND_CURLCONFIG=$ac_cv_prog_FOUND_CURLCONFIG
4806 if test -n "$FOUND_CURLCONFIG"; then
4807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_CURLCONFIG" >&5
4808 $as_echo "$FOUND_CURLCONFIG" >&6; }
4809 else
4810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4812 fi
4815  if test x$FOUND_CURLCONFIG = xyes; then
4816   FOUND_CURLCONFIG_RES_TRUE=
4817   FOUND_CURLCONFIG_RES_FALSE='#'
4818 else
4819   FOUND_CURLCONFIG_RES_TRUE='#'
4820   FOUND_CURLCONFIG_RES_FALSE=
4821 fi
4824 if test -z "$FOUND_CURLCONFIG_RES_TRUE"; then :
4825   else
4826   echo "Cannot find the curl-config program on your system.
4827 If it is installed on your system, adjust your PATH environment
4828 variable before running configure again."
4829         exit -1
4831 fi
4833 # file application
4835 # Extract the first word of "file", so it can be a program name with args.
4836 set dummy file; ac_word=$2
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838 $as_echo_n "checking for $ac_word... " >&6; }
4839 if ${ac_cv_prog_FOUND_FILE+:} false; then :
4840   $as_echo_n "(cached) " >&6
4841 else
4842   if test -n "$FOUND_FILE"; then
4843   ac_cv_prog_FOUND_FILE="$FOUND_FILE" # Let the user override the test.
4844 else
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH
4847 do
4848   IFS=$as_save_IFS
4849   test -z "$as_dir" && as_dir=.
4850     for ac_exec_ext in '' $ac_executable_extensions; do
4851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4852     ac_cv_prog_FOUND_FILE="yes"
4853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854     break 2
4855   fi
4856 done
4857   done
4858 IFS=$as_save_IFS
4860   test -z "$ac_cv_prog_FOUND_FILE" && ac_cv_prog_FOUND_FILE="no"
4861 fi
4862 fi
4863 FOUND_FILE=$ac_cv_prog_FOUND_FILE
4864 if test -n "$FOUND_FILE"; then
4865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_FILE" >&5
4866 $as_echo "$FOUND_FILE" >&6; }
4867 else
4868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869 $as_echo "no" >&6; }
4870 fi
4873  if test x$FOUND_FILE = xyes; then
4874   FOUND_FILE_RES_TRUE=
4875   FOUND_FILE_RES_FALSE='#'
4876 else
4877   FOUND_FILE_RES_TRUE='#'
4878   FOUND_FILE_RES_FALSE=
4879 fi
4882 if test -z "$FOUND_FILE_RES_TRUE"; then :
4883   else
4884   echo "Cannot find the file program on your system.
4885 If it is installed on your system, adjust your PATH environment
4886 variable before running configure again."
4887         exit -1
4889 fi
4891 # uuidgen application
4893 # Extract the first word of "uuidgen", so it can be a program name with args.
4894 set dummy uuidgen; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if ${ac_cv_prog_FOUND_UUIDGEN+:} false; then :
4898   $as_echo_n "(cached) " >&6
4899 else
4900   if test -n "$FOUND_UUIDGEN"; then
4901   ac_cv_prog_FOUND_UUIDGEN="$FOUND_UUIDGEN" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906   IFS=$as_save_IFS
4907   test -z "$as_dir" && as_dir=.
4908     for ac_exec_ext in '' $ac_executable_extensions; do
4909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4910     ac_cv_prog_FOUND_UUIDGEN="yes"
4911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912     break 2
4913   fi
4914 done
4915   done
4916 IFS=$as_save_IFS
4918   test -z "$ac_cv_prog_FOUND_UUIDGEN" && ac_cv_prog_FOUND_UUIDGEN="no"
4919 fi
4920 fi
4921 FOUND_UUIDGEN=$ac_cv_prog_FOUND_UUIDGEN
4922 if test -n "$FOUND_UUIDGEN"; then
4923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_UUIDGEN" >&5
4924 $as_echo "$FOUND_UUIDGEN" >&6; }
4925 else
4926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 $as_echo "no" >&6; }
4928 fi
4931  if test x$FOUND_UUIDGEN = xyes; then
4932   FOUND_UUIDGEN_RES_TRUE=
4933   FOUND_UUIDGEN_RES_FALSE='#'
4934 else
4935   FOUND_UUIDGEN_RES_TRUE='#'
4936   FOUND_UUIDGEN_RES_FALSE=
4937 fi
4940 if test -z "$FOUND_UUIDGEN_RES_TRUE"; then :
4941   else
4942   echo "Cannot find the uuidgen program on your system.
4943 If it is installed on your system, adjust your PATH environment
4944 variable before running configure again."
4945         exit -1
4947 fi
4949 # Checks for typedefs, structures, and compiler characteristics.
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
4951 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4952 if ${ac_cv_header_stdbool_h+:} false; then :
4953   $as_echo_n "(cached) " >&6
4954 else
4955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h.  */
4958              #include <stdbool.h>
4959              #ifndef bool
4960               "error: bool is not defined"
4961              #endif
4962              #ifndef false
4963               "error: false is not defined"
4964              #endif
4965              #if false
4966               "error: false is not 0"
4967              #endif
4968              #ifndef true
4969               "error: true is not defined"
4970              #endif
4971              #if true != 1
4972               "error: true is not 1"
4973              #endif
4974              #ifndef __bool_true_false_are_defined
4975               "error: __bool_true_false_are_defined is not defined"
4976              #endif
4978              struct s { _Bool s: 1; _Bool t; } s;
4980              char a[true == 1 ? 1 : -1];
4981              char b[false == 0 ? 1 : -1];
4982              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4983              char d[(bool) 0.5 == true ? 1 : -1];
4984              /* See body of main program for 'e'.  */
4985              char f[(_Bool) 0.0 == false ? 1 : -1];
4986              char g[true];
4987              char h[sizeof (_Bool)];
4988              char i[sizeof s.t];
4989              enum { j = false, k = true, l = false * true, m = true * 256 };
4990              /* The following fails for
4991                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4992              _Bool n[m];
4993              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4994              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4995              /* Catch a bug in an HP-UX C compiler.  See
4996                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4997                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4998               */
4999              _Bool q = true;
5000              _Bool *pq = &q;
5002 int
5003 main ()
5006              bool e = &s;
5007              *pq |= q;
5008              *pq |= ! q;
5009              /* Refer to every declared value, to avoid compiler optimizations.  */
5010              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5011                      + !m + !n + !o + !p + !q + !pq);
5013   ;
5014   return 0;
5016 _ACEOF
5017 if ac_fn_c_try_compile "$LINENO"; then :
5018   ac_cv_header_stdbool_h=yes
5019 else
5020   ac_cv_header_stdbool_h=no
5021 fi
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 fi
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
5025 $as_echo "$ac_cv_header_stdbool_h" >&6; }
5026    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
5027 if test "x$ac_cv_type__Bool" = xyes; then :
5029 cat >>confdefs.h <<_ACEOF
5030 #define HAVE__BOOL 1
5031 _ACEOF
5034 fi
5037 if test $ac_cv_header_stdbool_h = yes; then
5039 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
5041 fi
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5044 $as_echo_n "checking for inline... " >&6; }
5045 if ${ac_cv_c_inline+:} false; then :
5046   $as_echo_n "(cached) " >&6
5047 else
5048   ac_cv_c_inline=no
5049 for ac_kw in inline __inline__ __inline; do
5050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h.  */
5052 #ifndef __cplusplus
5053 typedef int foo_t;
5054 static $ac_kw foo_t static_foo () {return 0; }
5055 $ac_kw foo_t foo () {return 0; }
5056 #endif
5058 _ACEOF
5059 if ac_fn_c_try_compile "$LINENO"; then :
5060   ac_cv_c_inline=$ac_kw
5061 fi
5062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5063   test "$ac_cv_c_inline" != no && break
5064 done
5066 fi
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5068 $as_echo "$ac_cv_c_inline" >&6; }
5070 case $ac_cv_c_inline in
5071   inline | yes) ;;
5072   *)
5073     case $ac_cv_c_inline in
5074       no) ac_val=;;
5075       *) ac_val=$ac_cv_c_inline;;
5076     esac
5077     cat >>confdefs.h <<_ACEOF
5078 #ifndef __cplusplus
5079 #define inline $ac_val
5080 #endif
5081 _ACEOF
5082     ;;
5083 esac
5086 # Check for Google Test and if it exists, enable the tests.
5088 ac_ext=cpp
5089 ac_cpp='$CXXCPP $CPPFLAGS'
5090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5094 for ac_header in gtest/gtest.h
5095 do :
5096   ac_fn_cxx_check_header_mongrel "$LINENO" "gtest/gtest.h" "ac_cv_header_gtest_gtest_h" "$ac_includes_default"
5097 if test "x$ac_cv_header_gtest_gtest_h" = xyes; then :
5098   cat >>confdefs.h <<_ACEOF
5099 #define HAVE_GTEST_GTEST_H 1
5100 _ACEOF
5101  gtestfound=yes
5102 else
5103   gtestfound=no
5104 fi
5106 done
5108 ac_ext=c
5109 ac_cpp='$CPP $CPPFLAGS'
5110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5115 # libxml2 Library
5117 CPPFLAGSOLD=CPPFLAGS
5118 CPPFLAGS=`xml2-config --cflags`
5120 # Extract the first word of "xml2-config", so it can be a program name with args.
5121 set dummy xml2-config; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if ${ac_cv_prog_FOUND_XML2CONFIG+:} false; then :
5125   $as_echo_n "(cached) " >&6
5126 else
5127   if test -n "$FOUND_XML2CONFIG"; then
5128   ac_cv_prog_FOUND_XML2CONFIG="$FOUND_XML2CONFIG" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5132 do
5133   IFS=$as_save_IFS
5134   test -z "$as_dir" && as_dir=.
5135     for ac_exec_ext in '' $ac_executable_extensions; do
5136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137     ac_cv_prog_FOUND_XML2CONFIG="yes"
5138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139     break 2
5140   fi
5141 done
5142   done
5143 IFS=$as_save_IFS
5145   test -z "$ac_cv_prog_FOUND_XML2CONFIG" && ac_cv_prog_FOUND_XML2CONFIG="no"
5146 fi
5147 fi
5148 FOUND_XML2CONFIG=$ac_cv_prog_FOUND_XML2CONFIG
5149 if test -n "$FOUND_XML2CONFIG"; then
5150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_XML2CONFIG" >&5
5151 $as_echo "$FOUND_XML2CONFIG" >&6; }
5152 else
5153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5155 fi
5158  if test x$FOUND_XML2CONFIG = xyes; then
5159   FOUND_XML2CONFIG_RES_TRUE=
5160   FOUND_XML2CONFIG_RES_FALSE='#'
5161 else
5162   FOUND_XML2CONFIG_RES_TRUE='#'
5163   FOUND_XML2CONFIG_RES_FALSE=
5164 fi
5167 if test -z "$FOUND_XML2CONFIG_RES_TRUE"; then :
5168   else
5169   echo "Cannot find the xml2-config program on your system.
5170 If it is installed on your system, adjust your PATH environment
5171 variable before running configure again."
5172         exit -1
5174 fi
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lxml2" >&5
5177 $as_echo_n "checking for main in -lxml2... " >&6; }
5178 if ${ac_cv_lib_xml2_main+:} false; then :
5179   $as_echo_n "(cached) " >&6
5180 else
5181   ac_check_lib_save_LIBS=$LIBS
5182 LIBS="-lxml2  $LIBS"
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h.  */
5187 int
5188 main ()
5190 return main ();
5191   ;
5192   return 0;
5194 _ACEOF
5195 if ac_fn_c_try_link "$LINENO"; then :
5196   ac_cv_lib_xml2_main=yes
5197 else
5198   ac_cv_lib_xml2_main=no
5199 fi
5200 rm -f core conftest.err conftest.$ac_objext \
5201     conftest$ac_exeext conftest.$ac_ext
5202 LIBS=$ac_check_lib_save_LIBS
5203 fi
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_main" >&5
5205 $as_echo "$ac_cv_lib_xml2_main" >&6; }
5206 if test "x$ac_cv_lib_xml2_main" = xyes; then :
5207   cat >>confdefs.h <<_ACEOF
5208 #define HAVE_LIBXML2 1
5209 _ACEOF
5211   LIBS="-lxml2 $LIBS"
5213 else
5214   echo "The libxml2 library must be installed on your system.
5215 Please check that this library is installed properly before
5216 running configure again."
5217         exit -1
5219 fi
5222 for ac_header in libxml2/libxml/parser.h libxml2/libxml/tree.h
5223 do :
5224   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5225 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5226 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5227   cat >>confdefs.h <<_ACEOF
5228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5229 _ACEOF
5231 else
5232   echo "The libxml2 library headers must be installed on your system.
5233 Please check that the library headers are installed properly
5234 before running configure again."
5235         exit -1
5237 fi
5239 done
5242 CPPFLAGS=CPPFLAGSOLD
5244 # Setup the debug setting.
5246 # Check whether --enable-debug was given.
5247 if test "${enable_debug+set}" = set; then :
5248   enableval=$enable_debug; case "${enableval}" in
5249         yes) debug=true;;
5250         no)  debug=false;;
5251         *) as_fn_error $? "invalid value ${enableval} given for --enable-debug" "$LINENO" 5 ;;
5252  esac
5253 else
5254   debug=false
5255 fi
5258 # Checks for library functions.
5260  if test x$debug = xtrue; then
5261   DEBUG_TRUE=
5262   DEBUG_FALSE='#'
5263 else
5264   DEBUG_TRUE='#'
5265   DEBUG_FALSE=
5266 fi
5268 if test -z "$DEBUG_TRUE"; then :
5269   DBGOUT="-O0 -ggdb"
5271 else
5272   DBGOUT="-Os"
5274 fi
5275 if test -z "$DEBUG_TRUE"; then :
5276   DBGSTATUS="DEBUG=true"
5278 else
5279   DBGSTATUS="DEBUG=false"
5281 fi
5282 if test -z "$DEBUG_TRUE"; then :
5283   echo "Debugging mode has been enabled."
5284 fi
5286  if test x$gtestfound = xyes; then
5287   GTEST_FOUND_TRUE=
5288   GTEST_FOUND_FALSE='#'
5289 else
5290   GTEST_FOUND_TRUE='#'
5291   GTEST_FOUND_FALSE=
5292 fi
5294 if test -z "$GTEST_FOUND_TRUE"; then :
5295   GTEST=`cat tests/test.commands`
5297 else
5298   GTEST="       @echo \"Google Test was not found on the system. Unable to build tests.\""
5300 fi
5301 if test -z "$GTEST_FOUND_TRUE"; then :
5302   echo "Google Test found on the system. Enabling Unit Tests."
5303 fi;
5305 ac_config_files="$ac_config_files Makefile tests/Makefile"
5307 cat >confcache <<\_ACEOF
5308 # This file is a shell script that caches the results of configure
5309 # tests run on this system so they can be shared between configure
5310 # scripts and configure runs, see configure's option --config-cache.
5311 # It is not useful on other systems.  If it contains results you don't
5312 # want to keep, you may remove or edit it.
5314 # config.status only pays attention to the cache file if you give it
5315 # the --recheck option to rerun configure.
5317 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5318 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5319 # following values.
5321 _ACEOF
5323 # The following way of writing the cache mishandles newlines in values,
5324 # but we know of no workaround that is simple, portable, and efficient.
5325 # So, we kill variables containing newlines.
5326 # Ultrix sh set writes to stderr and can't be redirected directly,
5327 # and sets the high bit in the cache file unless we assign to the vars.
5329   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5330     eval ac_val=\$$ac_var
5331     case $ac_val in #(
5332     *${as_nl}*)
5333       case $ac_var in #(
5334       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5335 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5336       esac
5337       case $ac_var in #(
5338       _ | IFS | as_nl) ;; #(
5339       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5340       *) { eval $ac_var=; unset $ac_var;} ;;
5341       esac ;;
5342     esac
5343   done
5345   (set) 2>&1 |
5346     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5347     *${as_nl}ac_space=\ *)
5348       # `set' does not quote correctly, so add quotes: double-quote
5349       # substitution turns \\\\ into \\, and sed turns \\ into \.
5350       sed -n \
5351         "s/'/'\\\\''/g;
5352           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5353       ;; #(
5354     *)
5355       # `set' quotes correctly as required by POSIX, so do not add quotes.
5356       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5357       ;;
5358     esac |
5359     sort
5360 ) |
5361   sed '
5362      /^ac_cv_env_/b end
5363      t clear
5364      :clear
5365      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5366      t end
5367      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5368      :end' >>confcache
5369 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5370   if test -w "$cache_file"; then
5371     if test "x$cache_file" != "x/dev/null"; then
5372       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5373 $as_echo "$as_me: updating cache $cache_file" >&6;}
5374       if test ! -f "$cache_file" || test -h "$cache_file"; then
5375         cat confcache >"$cache_file"
5376       else
5377         case $cache_file in #(
5378         */* | ?:*)
5379           mv -f confcache "$cache_file"$$ &&
5380           mv -f "$cache_file"$$ "$cache_file" ;; #(
5381         *)
5382           mv -f confcache "$cache_file" ;;
5383         esac
5384       fi
5385     fi
5386   else
5387     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5388 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5389   fi
5390 fi
5391 rm -f confcache
5393 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5394 # Let make expand exec_prefix.
5395 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5397 # Transform confdefs.h into DEFS.
5398 # Protect against shell expansion while executing Makefile rules.
5399 # Protect against Makefile macro expansion.
5401 # If the first sed substitution is executed (which looks for macros that
5402 # take arguments), then branch to the quote section.  Otherwise,
5403 # look for a macro that doesn't take arguments.
5404 ac_script='
5405 :mline
5406 /\\$/{
5407  N
5408  s,\\\n,,
5409  b mline
5411 t clear
5412 :clear
5413 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
5414 t quote
5415 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
5416 t quote
5417 b any
5418 :quote
5419 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5420 s/\[/\\&/g
5421 s/\]/\\&/g
5422 s/\$/$$/g
5424 :any
5425 ${
5426         g
5427         s/^\n//
5428         s/\n/ /g
5429         p
5432 DEFS=`sed -n "$ac_script" confdefs.h`
5435 ac_libobjs=
5436 ac_ltlibobjs=
5437 U=
5438 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5439   # 1. Remove the extension, and $U if already installed.
5440   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5441   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5442   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5443   #    will be set to the directory where LIBOBJS objects are built.
5444   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5445   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5446 done
5447 LIBOBJS=$ac_libobjs
5449 LTLIBOBJS=$ac_ltlibobjs
5452 if test -z "${FOUND_CURLCONFIG_RES_TRUE}" && test -z "${FOUND_CURLCONFIG_RES_FALSE}"; then
5453   as_fn_error $? "conditional \"FOUND_CURLCONFIG_RES\" was never defined.
5454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5455 fi
5456 if test -z "${FOUND_FILE_RES_TRUE}" && test -z "${FOUND_FILE_RES_FALSE}"; then
5457   as_fn_error $? "conditional \"FOUND_FILE_RES\" was never defined.
5458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5459 fi
5460 if test -z "${FOUND_UUIDGEN_RES_TRUE}" && test -z "${FOUND_UUIDGEN_RES_FALSE}"; then
5461   as_fn_error $? "conditional \"FOUND_UUIDGEN_RES\" was never defined.
5462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5463 fi
5464 if test -z "${FOUND_XML2CONFIG_RES_TRUE}" && test -z "${FOUND_XML2CONFIG_RES_FALSE}"; then
5465   as_fn_error $? "conditional \"FOUND_XML2CONFIG_RES\" was never defined.
5466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5467 fi
5468 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
5469   as_fn_error $? "conditional \"DEBUG\" was never defined.
5470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5471 fi
5472 if test -z "${GTEST_FOUND_TRUE}" && test -z "${GTEST_FOUND_FALSE}"; then
5473   as_fn_error $? "conditional \"GTEST_FOUND\" was never defined.
5474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5475 fi
5477 : "${CONFIG_STATUS=./config.status}"
5478 ac_write_fail=0
5479 ac_clean_files_save=$ac_clean_files
5480 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5482 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5483 as_write_fail=0
5484 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5485 #! $SHELL
5486 # Generated by $as_me.
5487 # Run this file to recreate the current configuration.
5488 # Compiler output produced by configure, useful for debugging
5489 # configure, is in config.log if it exists.
5491 debug=false
5492 ac_cs_recheck=false
5493 ac_cs_silent=false
5495 SHELL=\${CONFIG_SHELL-$SHELL}
5496 export SHELL
5497 _ASEOF
5498 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5499 ## -------------------- ##
5500 ## M4sh Initialization. ##
5501 ## -------------------- ##
5503 # Be more Bourne compatible
5504 DUALCASE=1; export DUALCASE # for MKS sh
5505 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5506   emulate sh
5507   NULLCMD=:
5508   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5509   # is contrary to our usage.  Disable this feature.
5510   alias -g '${1+"$@"}'='"$@"'
5511   setopt NO_GLOB_SUBST
5512 else
5513   case `(set -o) 2>/dev/null` in #(
5514   *posix*) :
5515     set -o posix ;; #(
5516   *) :
5517      ;;
5518 esac
5519 fi
5522 as_nl='
5524 export as_nl
5525 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5526 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5527 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5528 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5529 # Prefer a ksh shell builtin over an external printf program on Solaris,
5530 # but without wasting forks for bash or zsh.
5531 if test -z "$BASH_VERSION$ZSH_VERSION" \
5532     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5533   as_echo='print -r --'
5534   as_echo_n='print -rn --'
5535 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5536   as_echo='printf %s\n'
5537   as_echo_n='printf %s'
5538 else
5539   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5540     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5541     as_echo_n='/usr/ucb/echo -n'
5542   else
5543     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5544     as_echo_n_body='eval
5545       arg=$1;
5546       case $arg in #(
5547       *"$as_nl"*)
5548         expr "X$arg" : "X\\(.*\\)$as_nl";
5549         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5550       esac;
5551       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5552     '
5553     export as_echo_n_body
5554     as_echo_n='sh -c $as_echo_n_body as_echo'
5555   fi
5556   export as_echo_body
5557   as_echo='sh -c $as_echo_body as_echo'
5558 fi
5560 # The user is always right.
5561 if test "${PATH_SEPARATOR+set}" != set; then
5562   PATH_SEPARATOR=:
5563   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5564     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5565       PATH_SEPARATOR=';'
5566   }
5567 fi
5570 # IFS
5571 # We need space, tab and new line, in precisely that order.  Quoting is
5572 # there to prevent editors from complaining about space-tab.
5573 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5574 # splitting by setting IFS to empty value.)
5575 IFS=" ""        $as_nl"
5577 # Find who we are.  Look in the path if we contain no directory separator.
5578 as_myself=
5579 case $0 in #((
5580   *[\\/]* ) as_myself=$0 ;;
5581   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5583 do
5584   IFS=$as_save_IFS
5585   test -z "$as_dir" && as_dir=.
5586     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5587   done
5588 IFS=$as_save_IFS
5590      ;;
5591 esac
5592 # We did not find ourselves, most probably we were run as `sh COMMAND'
5593 # in which case we are not to be found in the path.
5594 if test "x$as_myself" = x; then
5595   as_myself=$0
5596 fi
5597 if test ! -f "$as_myself"; then
5598   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5599   exit 1
5600 fi
5602 # Unset variables that we do not need and which cause bugs (e.g. in
5603 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5604 # suppresses any "Segmentation fault" message there.  '((' could
5605 # trigger a bug in pdksh 5.2.14.
5606 for as_var in BASH_ENV ENV MAIL MAILPATH
5607 do eval test x\${$as_var+set} = xset \
5608   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5609 done
5610 PS1='$ '
5611 PS2='> '
5612 PS4='+ '
5614 # NLS nuisances.
5615 LC_ALL=C
5616 export LC_ALL
5617 LANGUAGE=C
5618 export LANGUAGE
5620 # CDPATH.
5621 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5624 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5625 # ----------------------------------------
5626 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5627 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5628 # script with STATUS, using 1 if that was 0.
5629 as_fn_error ()
5631   as_status=$1; test $as_status -eq 0 && as_status=1
5632   if test "$4"; then
5633     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5634     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5635   fi
5636   $as_echo "$as_me: error: $2" >&2
5637   as_fn_exit $as_status
5638 } # as_fn_error
5641 # as_fn_set_status STATUS
5642 # -----------------------
5643 # Set $? to STATUS, without forking.
5644 as_fn_set_status ()
5646   return $1
5647 } # as_fn_set_status
5649 # as_fn_exit STATUS
5650 # -----------------
5651 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5652 as_fn_exit ()
5654   set +e
5655   as_fn_set_status $1
5656   exit $1
5657 } # as_fn_exit
5659 # as_fn_unset VAR
5660 # ---------------
5661 # Portably unset VAR.
5662 as_fn_unset ()
5664   { eval $1=; unset $1;}
5666 as_unset=as_fn_unset
5667 # as_fn_append VAR VALUE
5668 # ----------------------
5669 # Append the text in VALUE to the end of the definition contained in VAR. Take
5670 # advantage of any shell optimizations that allow amortized linear growth over
5671 # repeated appends, instead of the typical quadratic growth present in naive
5672 # implementations.
5673 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5674   eval 'as_fn_append ()
5675   {
5676     eval $1+=\$2
5677   }'
5678 else
5679   as_fn_append ()
5680   {
5681     eval $1=\$$1\$2
5682   }
5683 fi # as_fn_append
5685 # as_fn_arith ARG...
5686 # ------------------
5687 # Perform arithmetic evaluation on the ARGs, and store the result in the
5688 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5689 # must be portable across $(()) and expr.
5690 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5691   eval 'as_fn_arith ()
5692   {
5693     as_val=$(( $* ))
5694   }'
5695 else
5696   as_fn_arith ()
5697   {
5698     as_val=`expr "$@" || test $? -eq 1`
5699   }
5700 fi # as_fn_arith
5703 if expr a : '\(a\)' >/dev/null 2>&1 &&
5704    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5705   as_expr=expr
5706 else
5707   as_expr=false
5708 fi
5710 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5711   as_basename=basename
5712 else
5713   as_basename=false
5714 fi
5716 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5717   as_dirname=dirname
5718 else
5719   as_dirname=false
5720 fi
5722 as_me=`$as_basename -- "$0" ||
5723 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5724          X"$0" : 'X\(//\)$' \| \
5725          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5726 $as_echo X/"$0" |
5727     sed '/^.*\/\([^/][^/]*\)\/*$/{
5728             s//\1/
5729             q
5730           }
5731           /^X\/\(\/\/\)$/{
5732             s//\1/
5733             q
5734           }
5735           /^X\/\(\/\).*/{
5736             s//\1/
5737             q
5738           }
5739           s/.*/./; q'`
5741 # Avoid depending upon Character Ranges.
5742 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5743 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5744 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5745 as_cr_digits='0123456789'
5746 as_cr_alnum=$as_cr_Letters$as_cr_digits
5748 ECHO_C= ECHO_N= ECHO_T=
5749 case `echo -n x` in #(((((
5750 -n*)
5751   case `echo 'xy\c'` in
5752   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5753   xy)  ECHO_C='\c';;
5754   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5755        ECHO_T=' ';;
5756   esac;;
5757 *)
5758   ECHO_N='-n';;
5759 esac
5761 rm -f conf$$ conf$$.exe conf$$.file
5762 if test -d conf$$.dir; then
5763   rm -f conf$$.dir/conf$$.file
5764 else
5765   rm -f conf$$.dir
5766   mkdir conf$$.dir 2>/dev/null
5767 fi
5768 if (echo >conf$$.file) 2>/dev/null; then
5769   if ln -s conf$$.file conf$$ 2>/dev/null; then
5770     as_ln_s='ln -s'
5771     # ... but there are two gotchas:
5772     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5773     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5774     # In both cases, we have to default to `cp -pR'.
5775     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5776       as_ln_s='cp -pR'
5777   elif ln conf$$.file conf$$ 2>/dev/null; then
5778     as_ln_s=ln
5779   else
5780     as_ln_s='cp -pR'
5781   fi
5782 else
5783   as_ln_s='cp -pR'
5784 fi
5785 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5786 rmdir conf$$.dir 2>/dev/null
5789 # as_fn_mkdir_p
5790 # -------------
5791 # Create "$as_dir" as a directory, including parents if necessary.
5792 as_fn_mkdir_p ()
5795   case $as_dir in #(
5796   -*) as_dir=./$as_dir;;
5797   esac
5798   test -d "$as_dir" || eval $as_mkdir_p || {
5799     as_dirs=
5800     while :; do
5801       case $as_dir in #(
5802       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5803       *) as_qdir=$as_dir;;
5804       esac
5805       as_dirs="'$as_qdir' $as_dirs"
5806       as_dir=`$as_dirname -- "$as_dir" ||
5807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5808          X"$as_dir" : 'X\(//\)[^/]' \| \
5809          X"$as_dir" : 'X\(//\)$' \| \
5810          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5811 $as_echo X"$as_dir" |
5812     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5813             s//\1/
5814             q
5815           }
5816           /^X\(\/\/\)[^/].*/{
5817             s//\1/
5818             q
5819           }
5820           /^X\(\/\/\)$/{
5821             s//\1/
5822             q
5823           }
5824           /^X\(\/\).*/{
5825             s//\1/
5826             q
5827           }
5828           s/.*/./; q'`
5829       test -d "$as_dir" && break
5830     done
5831     test -z "$as_dirs" || eval "mkdir $as_dirs"
5832   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5835 } # as_fn_mkdir_p
5836 if mkdir -p . 2>/dev/null; then
5837   as_mkdir_p='mkdir -p "$as_dir"'
5838 else
5839   test -d ./-p && rmdir ./-p
5840   as_mkdir_p=false
5841 fi
5844 # as_fn_executable_p FILE
5845 # -----------------------
5846 # Test if FILE is an executable regular file.
5847 as_fn_executable_p ()
5849   test -f "$1" && test -x "$1"
5850 } # as_fn_executable_p
5851 as_test_x='test -x'
5852 as_executable_p=as_fn_executable_p
5854 # Sed expression to map a string onto a valid CPP name.
5855 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5857 # Sed expression to map a string onto a valid variable name.
5858 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5861 exec 6>&1
5862 ## ----------------------------------- ##
5863 ## Main body of $CONFIG_STATUS script. ##
5864 ## ----------------------------------- ##
5865 _ASEOF
5866 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5869 # Save the log message, to keep $0 and so on meaningful, and to
5870 # report actual input values of CONFIG_FILES etc. instead of their
5871 # values after options handling.
5872 ac_log="
5873 This file was extended by Xestia Address Book $as_me 0.05, which was
5874 generated by GNU Autoconf 2.69.  Invocation command line was
5876   CONFIG_FILES    = $CONFIG_FILES
5877   CONFIG_HEADERS  = $CONFIG_HEADERS
5878   CONFIG_LINKS    = $CONFIG_LINKS
5879   CONFIG_COMMANDS = $CONFIG_COMMANDS
5880   $ $0 $@
5882 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5885 _ACEOF
5887 case $ac_config_files in *"
5888 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5889 esac
5893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5894 # Files that config.status was made for.
5895 config_files="`echo $ac_config_files`"
5897 _ACEOF
5899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5900 ac_cs_usage="\
5901 \`$as_me' instantiates files and other configuration actions
5902 from templates according to the current configuration.  Unless the files
5903 and actions are specified as TAGs, all are instantiated by default.
5905 Usage: $0 [OPTION]... [TAG]...
5907   -h, --help       print this help, then exit
5908   -V, --version    print version number and configuration settings, then exit
5909       --config     print configuration, then exit
5910   -q, --quiet, --silent
5911                    do not print progress messages
5912   -d, --debug      don't remove temporary files
5913       --recheck    update $as_me by reconfiguring in the same conditions
5914       --file=FILE[:TEMPLATE]
5915                    instantiate the configuration file FILE
5917 Configuration files:
5918 $config_files
5920 Report bugs to <bugs@xestia.co.uk>."
5922 _ACEOF
5923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5924 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5925 ac_cs_version="\\
5926 Xestia Address Book config.status 0.05
5927 configured by $0, generated by GNU Autoconf 2.69,
5928   with options \\"\$ac_cs_config\\"
5930 Copyright (C) 2012 Free Software Foundation, Inc.
5931 This config.status script is free software; the Free Software Foundation
5932 gives unlimited permission to copy, distribute and modify it."
5934 ac_pwd='$ac_pwd'
5935 srcdir='$srcdir'
5936 test -n "\$AWK" || AWK=awk
5937 _ACEOF
5939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5940 # The default lists apply if the user does not specify any file.
5941 ac_need_defaults=:
5942 while test $# != 0
5943 do
5944   case $1 in
5945   --*=?*)
5946     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5947     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5948     ac_shift=:
5949     ;;
5950   --*=)
5951     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5952     ac_optarg=
5953     ac_shift=:
5954     ;;
5955   *)
5956     ac_option=$1
5957     ac_optarg=$2
5958     ac_shift=shift
5959     ;;
5960   esac
5962   case $ac_option in
5963   # Handling of the options.
5964   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5965     ac_cs_recheck=: ;;
5966   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5967     $as_echo "$ac_cs_version"; exit ;;
5968   --config | --confi | --conf | --con | --co | --c )
5969     $as_echo "$ac_cs_config"; exit ;;
5970   --debug | --debu | --deb | --de | --d | -d )
5971     debug=: ;;
5972   --file | --fil | --fi | --f )
5973     $ac_shift
5974     case $ac_optarg in
5975     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5976     '') as_fn_error $? "missing file argument" ;;
5977     esac
5978     as_fn_append CONFIG_FILES " '$ac_optarg'"
5979     ac_need_defaults=false;;
5980   --he | --h |  --help | --hel | -h )
5981     $as_echo "$ac_cs_usage"; exit ;;
5982   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5983   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5984     ac_cs_silent=: ;;
5986   # This is an error.
5987   -*) as_fn_error $? "unrecognized option: \`$1'
5988 Try \`$0 --help' for more information." ;;
5990   *) as_fn_append ac_config_targets " $1"
5991      ac_need_defaults=false ;;
5993   esac
5994   shift
5995 done
5997 ac_configure_extra_args=
5999 if $ac_cs_silent; then
6000   exec 6>/dev/null
6001   ac_configure_extra_args="$ac_configure_extra_args --silent"
6002 fi
6004 _ACEOF
6005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6006 if \$ac_cs_recheck; then
6007   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6008   shift
6009   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6010   CONFIG_SHELL='$SHELL'
6011   export CONFIG_SHELL
6012   exec "\$@"
6013 fi
6015 _ACEOF
6016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6017 exec 5>>config.log
6019   echo
6020   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6021 ## Running $as_me. ##
6022 _ASBOX
6023   $as_echo "$ac_log"
6024 } >&5
6026 _ACEOF
6027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6028 _ACEOF
6030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6032 # Handling of arguments.
6033 for ac_config_target in $ac_config_targets
6034 do
6035   case $ac_config_target in
6036     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6037     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
6039   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6040   esac
6041 done
6044 # If the user did not use the arguments to specify the items to instantiate,
6045 # then the envvar interface is used.  Set only those that are not.
6046 # We use the long form for the default assignment because of an extremely
6047 # bizarre bug on SunOS 4.1.3.
6048 if $ac_need_defaults; then
6049   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6050 fi
6052 # Have a temporary directory for convenience.  Make it in the build tree
6053 # simply because there is no reason against having it here, and in addition,
6054 # creating and moving files from /tmp can sometimes cause problems.
6055 # Hook for its removal unless debugging.
6056 # Note that there is a small window in which the directory will not be cleaned:
6057 # after its creation but before its name has been assigned to `$tmp'.
6058 $debug ||
6060   tmp= ac_tmp=
6061   trap 'exit_status=$?
6062   : "${ac_tmp:=$tmp}"
6063   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6064 ' 0
6065   trap 'as_fn_exit 1' 1 2 13 15
6067 # Create a (secure) tmp directory for tmp files.
6070   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6071   test -d "$tmp"
6072 }  ||
6074   tmp=./conf$$-$RANDOM
6075   (umask 077 && mkdir "$tmp")
6076 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6077 ac_tmp=$tmp
6079 # Set up the scripts for CONFIG_FILES section.
6080 # No need to generate them if there are no CONFIG_FILES.
6081 # This happens for instance with `./config.status config.h'.
6082 if test -n "$CONFIG_FILES"; then
6085 ac_cr=`echo X | tr X '\015'`
6086 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6087 # But we know of no other shell where ac_cr would be empty at this
6088 # point, so we can use a bashism as a fallback.
6089 if test "x$ac_cr" = x; then
6090   eval ac_cr=\$\'\\r\'
6091 fi
6092 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6093 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6094   ac_cs_awk_cr='\\r'
6095 else
6096   ac_cs_awk_cr=$ac_cr
6097 fi
6099 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6100 _ACEOF
6104   echo "cat >conf$$subs.awk <<_ACEOF" &&
6105   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6106   echo "_ACEOF"
6107 } >conf$$subs.sh ||
6108   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6109 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6110 ac_delim='%!_!# '
6111 for ac_last_try in false false false false false :; do
6112   . ./conf$$subs.sh ||
6113     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6115   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6116   if test $ac_delim_n = $ac_delim_num; then
6117     break
6118   elif $ac_last_try; then
6119     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6120   else
6121     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6122   fi
6123 done
6124 rm -f conf$$subs.sh
6126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6127 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6128 _ACEOF
6129 sed -n '
6131 s/^/S["/; s/!.*/"]=/
6134 s/^[^!]*!//
6135 :repl
6136 t repl
6137 s/'"$ac_delim"'$//
6138 t delim
6139 :nl
6141 s/\(.\{148\}\)..*/\1/
6142 t more1
6143 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6146 b repl
6147 :more1
6148 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6151 s/.\{148\}//
6152 t nl
6153 :delim
6155 s/\(.\{148\}\)..*/\1/
6156 t more2
6157 s/["\\]/\\&/g; s/^/"/; s/$/"/
6160 :more2
6161 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6164 s/.\{148\}//
6165 t delim
6166 ' <conf$$subs.awk | sed '
6167 /^[^""]/{
6168   N
6169   s/\n//
6171 ' >>$CONFIG_STATUS || ac_write_fail=1
6172 rm -f conf$$subs.awk
6173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6174 _ACAWK
6175 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6176   for (key in S) S_is_set[key] = 1
6177   FS = "\a"
6181   line = $ 0
6182   nfields = split(line, field, "@")
6183   substed = 0
6184   len = length(field[1])
6185   for (i = 2; i < nfields; i++) {
6186     key = field[i]
6187     keylen = length(key)
6188     if (S_is_set[key]) {
6189       value = S[key]
6190       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6191       len += length(value) + length(field[++i])
6192       substed = 1
6193     } else
6194       len += 1 + keylen
6195   }
6197   print line
6200 _ACAWK
6201 _ACEOF
6202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6203 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6204   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6205 else
6206   cat
6207 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6208   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6209 _ACEOF
6211 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6212 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6213 # trailing colons and then remove the whole line if VPATH becomes empty
6214 # (actually we leave an empty line to preserve line numbers).
6215 if test "x$srcdir" = x.; then
6216   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
6218 s///
6219 s/^/:/
6220 s/[      ]*$/:/
6221 s/:\$(srcdir):/:/g
6222 s/:\${srcdir}:/:/g
6223 s/:@srcdir@:/:/g
6224 s/^:*//
6225 s/:*$//
6227 s/\(=[   ]*\).*/\1/
6229 s/\n//
6230 s/^[^=]*=[       ]*$//
6231 }'
6232 fi
6234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6235 fi # test -n "$CONFIG_FILES"
6238 eval set X "  :F $CONFIG_FILES      "
6239 shift
6240 for ac_tag
6241 do
6242   case $ac_tag in
6243   :[FHLC]) ac_mode=$ac_tag; continue;;
6244   esac
6245   case $ac_mode$ac_tag in
6246   :[FHL]*:*);;
6247   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6248   :[FH]-) ac_tag=-:-;;
6249   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6250   esac
6251   ac_save_IFS=$IFS
6252   IFS=:
6253   set x $ac_tag
6254   IFS=$ac_save_IFS
6255   shift
6256   ac_file=$1
6257   shift
6259   case $ac_mode in
6260   :L) ac_source=$1;;
6261   :[FH])
6262     ac_file_inputs=
6263     for ac_f
6264     do
6265       case $ac_f in
6266       -) ac_f="$ac_tmp/stdin";;
6267       *) # Look for the file first in the build tree, then in the source tree
6268          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6269          # because $ac_f cannot contain `:'.
6270          test -f "$ac_f" ||
6271            case $ac_f in
6272            [\\/$]*) false;;
6273            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6274            esac ||
6275            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6276       esac
6277       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6278       as_fn_append ac_file_inputs " '$ac_f'"
6279     done
6281     # Let's still pretend it is `configure' which instantiates (i.e., don't
6282     # use $as_me), people would be surprised to read:
6283     #    /* config.h.  Generated by config.status.  */
6284     configure_input='Generated from '`
6285           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6286         `' by configure.'
6287     if test x"$ac_file" != x-; then
6288       configure_input="$ac_file.  $configure_input"
6289       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6290 $as_echo "$as_me: creating $ac_file" >&6;}
6291     fi
6292     # Neutralize special characters interpreted by sed in replacement strings.
6293     case $configure_input in #(
6294     *\&* | *\|* | *\\* )
6295        ac_sed_conf_input=`$as_echo "$configure_input" |
6296        sed 's/[\\\\&|]/\\\\&/g'`;; #(
6297     *) ac_sed_conf_input=$configure_input;;
6298     esac
6300     case $ac_tag in
6301     *:-:* | *:-) cat >"$ac_tmp/stdin" \
6302       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6303     esac
6304     ;;
6305   esac
6307   ac_dir=`$as_dirname -- "$ac_file" ||
6308 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6309          X"$ac_file" : 'X\(//\)[^/]' \| \
6310          X"$ac_file" : 'X\(//\)$' \| \
6311          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6312 $as_echo X"$ac_file" |
6313     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6314             s//\1/
6315             q
6316           }
6317           /^X\(\/\/\)[^/].*/{
6318             s//\1/
6319             q
6320           }
6321           /^X\(\/\/\)$/{
6322             s//\1/
6323             q
6324           }
6325           /^X\(\/\).*/{
6326             s//\1/
6327             q
6328           }
6329           s/.*/./; q'`
6330   as_dir="$ac_dir"; as_fn_mkdir_p
6331   ac_builddir=.
6333 case "$ac_dir" in
6334 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6335 *)
6336   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6337   # A ".." for each directory in $ac_dir_suffix.
6338   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6339   case $ac_top_builddir_sub in
6340   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6341   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6342   esac ;;
6343 esac
6344 ac_abs_top_builddir=$ac_pwd
6345 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6346 # for backward compatibility:
6347 ac_top_builddir=$ac_top_build_prefix
6349 case $srcdir in
6350   .)  # We are building in place.
6351     ac_srcdir=.
6352     ac_top_srcdir=$ac_top_builddir_sub
6353     ac_abs_top_srcdir=$ac_pwd ;;
6354   [\\/]* | ?:[\\/]* )  # Absolute name.
6355     ac_srcdir=$srcdir$ac_dir_suffix;
6356     ac_top_srcdir=$srcdir
6357     ac_abs_top_srcdir=$srcdir ;;
6358   *) # Relative name.
6359     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6360     ac_top_srcdir=$ac_top_build_prefix$srcdir
6361     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6362 esac
6363 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6366   case $ac_mode in
6367   :F)
6368   #
6369   # CONFIG_FILE
6370   #
6372 _ACEOF
6374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6375 # If the template does not know about datarootdir, expand it.
6376 # FIXME: This hack should be removed a few years after 2.60.
6377 ac_datarootdir_hack=; ac_datarootdir_seen=
6378 ac_sed_dataroot='
6379 /datarootdir/ {
6380   p
6381   q
6383 /@datadir@/p
6384 /@docdir@/p
6385 /@infodir@/p
6386 /@localedir@/p
6387 /@mandir@/p'
6388 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6389 *datarootdir*) ac_datarootdir_seen=yes;;
6390 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6391   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6392 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6393 _ACEOF
6394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6395   ac_datarootdir_hack='
6396   s&@datadir@&$datadir&g
6397   s&@docdir@&$docdir&g
6398   s&@infodir@&$infodir&g
6399   s&@localedir@&$localedir&g
6400   s&@mandir@&$mandir&g
6401   s&\\\${datarootdir}&$datarootdir&g' ;;
6402 esac
6403 _ACEOF
6405 # Neutralize VPATH when `$srcdir' = `.'.
6406 # Shell code in configure.ac might set extrasub.
6407 # FIXME: do we really want to maintain this feature?
6408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6409 ac_sed_extra="$ac_vpsub
6410 $extrasub
6411 _ACEOF
6412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6413 :t
6414 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6415 s|@configure_input@|$ac_sed_conf_input|;t t
6416 s&@top_builddir@&$ac_top_builddir_sub&;t t
6417 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6418 s&@srcdir@&$ac_srcdir&;t t
6419 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6420 s&@top_srcdir@&$ac_top_srcdir&;t t
6421 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6422 s&@builddir@&$ac_builddir&;t t
6423 s&@abs_builddir@&$ac_abs_builddir&;t t
6424 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6425 $ac_datarootdir_hack
6427 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6428   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6430 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6431   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6432   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
6433       "$ac_tmp/out"`; test -z "$ac_out"; } &&
6434   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6435 which seems to be undefined.  Please make sure it is defined" >&5
6436 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6437 which seems to be undefined.  Please make sure it is defined" >&2;}
6439   rm -f "$ac_tmp/stdin"
6440   case $ac_file in
6441   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6442   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6443   esac \
6444   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6445  ;;
6449   esac
6451 done # for ac_tag
6454 as_fn_exit 0
6455 _ACEOF
6456 ac_clean_files=$ac_clean_files_save
6458 test $ac_write_fail = 0 ||
6459   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6462 # configure is writing to config.log, and then calls config.status.
6463 # config.status does its own redirection, appending to config.log.
6464 # Unfortunately, on DOS this fails, as config.log is still kept open
6465 # by configure, so config.status won't be able to write to it; its
6466 # output is simply discarded.  So we exec the FD to /dev/null,
6467 # effectively closing config.log, so it can be properly (re)opened and
6468 # appended to by config.status.  When coming back to configure, we
6469 # need to make the FD available again.
6470 if test "$no_create" != yes; then
6471   ac_cs_success=:
6472   ac_config_status_args=
6473   test "$silent" = yes &&
6474     ac_config_status_args="$ac_config_status_args --quiet"
6475   exec 5>/dev/null
6476   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6477   exec 5>>config.log
6478   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6479   # would make configure fail if this is the last instruction.
6480   $ac_cs_success || as_fn_exit 1
6481 fi
6482 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6483   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6484 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6485 fi
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy