res_pjsip: Add support for building against pjproject with SIP transaction group...
[asterisk/asterisk.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 400770 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for asterisk trunk.
5 #
6 # Report bugs to <https://issues.asterisk.org>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 #
15 # "Asterisk"
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
19
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39 as_nl='
40 '
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='print -r --'
51   as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53   as_echo='printf %s\n'
54   as_echo_n='printf %s'
55 else
56   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58     as_echo_n='/usr/ucb/echo -n'
59   else
60     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61     as_echo_n_body='eval
62       arg=$1;
63       case $arg in #(
64       *"$as_nl"*)
65         expr "X$arg" : "X\\(.*\\)$as_nl";
66         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67       esac;
68       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69     '
70     export as_echo_n_body
71     as_echo_n='sh -c $as_echo_n_body as_echo'
72   fi
73   export as_echo_body
74   as_echo='sh -c $as_echo_body as_echo'
75 fi
76
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # IFS
88 # We need space, tab and new line, in precisely that order.  Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
92 IFS=" ""        $as_nl"
93
94 # Find who we are.  Look in the path if we contain no directory separator.
95 as_myself=
96 case $0 in #((
97   *[\\/]* ) as_myself=$0 ;;
98   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 for as_dir in $PATH
100 do
101   IFS=$as_save_IFS
102   test -z "$as_dir" && as_dir=.
103     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104   done
105 IFS=$as_save_IFS
106
107      ;;
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112   as_myself=$0
113 fi
114 if test ! -f "$as_myself"; then
115   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116   exit 1
117 fi
118
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there.  '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
130
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
136
137 # CDPATH.
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140 # Use a proper internal environment variable to ensure we don't fall
141   # into an infinite loop, continuously re-executing ourselves.
142   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
143     _as_can_reexec=no; export _as_can_reexec;
144     # We cannot yet assume a decent shell, so we have to provide a
145 # neutralization value for shells without unset; and this also
146 # works around shells that cannot unset nonexistent variables.
147 # Preserve -v and -x to the replacement shell.
148 BASH_ENV=/dev/null
149 ENV=/dev/null
150 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
151 case $- in # ((((
152   *v*x* | *x*v* ) as_opts=-vx ;;
153   *v* ) as_opts=-v ;;
154   *x* ) as_opts=-x ;;
155   * ) as_opts= ;;
156 esac
157 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
158 # Admittedly, this is quite paranoid, since all the known shells bail
159 # out after a failed `exec'.
160 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 as_fn_exit 255
162   fi
163   # We don't want this to propagate to other subprocesses.
164           { _as_can_reexec=; unset _as_can_reexec;}
165 if test "x$CONFIG_SHELL" = x; then
166   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
167   emulate sh
168   NULLCMD=:
169   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
170   # is contrary to our usage.  Disable this feature.
171   alias -g '\${1+\"\$@\"}'='\"\$@\"'
172   setopt NO_GLOB_SUBST
173 else
174   case \`(set -o) 2>/dev/null\` in #(
175   *posix*) :
176     set -o posix ;; #(
177   *) :
178      ;;
179 esac
180 fi
181 "
182   as_required="as_fn_return () { (exit \$1); }
183 as_fn_success () { as_fn_return 0; }
184 as_fn_failure () { as_fn_return 1; }
185 as_fn_ret_success () { return 0; }
186 as_fn_ret_failure () { return 1; }
187
188 exitcode=0
189 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
190 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
191 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
192 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
193 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194
195 else
196   exitcode=1; echo positional parameters were not saved.
197 fi
198 test x\$exitcode = x0 || exit 1
199 test -x / || exit 1"
200   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
201   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
202   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
203   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
204 test \$(( 1 + 1 )) = 2 || exit 1"
205   if (eval "$as_required") 2>/dev/null; then :
206   as_have_required=yes
207 else
208   as_have_required=no
209 fi
210   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
211
212 else
213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
214 as_found=false
215 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
216 do
217   IFS=$as_save_IFS
218   test -z "$as_dir" && as_dir=.
219   as_found=:
220   case $as_dir in #(
221          /*)
222            for as_base in sh bash ksh sh5; do
223              # Try only shells that exist, to save several forks.
224              as_shell=$as_dir/$as_base
225              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
226                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
227   CONFIG_SHELL=$as_shell as_have_required=yes
228                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
229   break 2
230 fi
231 fi
232            done;;
233        esac
234   as_found=false
235 done
236 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
237               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
238   CONFIG_SHELL=$SHELL as_have_required=yes
239 fi; }
240 IFS=$as_save_IFS
241
242
243       if test "x$CONFIG_SHELL" != x; then :
244   export CONFIG_SHELL
245              # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253   *v*x* | *x*v* ) as_opts=-vx ;;
254   *v* ) as_opts=-v ;;
255   *x* ) as_opts=-x ;;
256   * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed `exec'.
261 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265     if test x$as_have_required = xno; then :
266   $as_echo "$0: This script requires a shell more modern than all"
267   $as_echo "$0: the shells that I found on your system."
268   if test x${ZSH_VERSION+set} = xset ; then
269     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
270     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
271   else
272     $as_echo "$0: Please tell bug-autoconf@gnu.org and
273 $0: https://issues.asterisk.org about your system,
274 $0: including any error possibly output before this
275 $0: message. Then install a modern shell, or manually run
276 $0: the script under such a shell if you do have one."
277   fi
278   exit 1
279 fi
280 fi
281 fi
282 SHELL=${CONFIG_SHELL-/bin/sh}
283 export SHELL
284 # Unset more variables known to interfere with behavior of common tools.
285 CLICOLOR_FORCE= GREP_OPTIONS=
286 unset CLICOLOR_FORCE GREP_OPTIONS
287
288 ## --------------------- ##
289 ## M4sh Shell Functions. ##
290 ## --------------------- ##
291 # as_fn_unset VAR
292 # ---------------
293 # Portably unset VAR.
294 as_fn_unset ()
295 {
296   { eval $1=; unset $1;}
297 }
298 as_unset=as_fn_unset
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305   return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313   set +e
314   as_fn_set_status $1
315   exit $1
316 } # as_fn_exit
317
318 # as_fn_mkdir_p
319 # -------------
320 # Create "$as_dir" as a directory, including parents if necessary.
321 as_fn_mkdir_p ()
322 {
323
324   case $as_dir in #(
325   -*) as_dir=./$as_dir;;
326   esac
327   test -d "$as_dir" || eval $as_mkdir_p || {
328     as_dirs=
329     while :; do
330       case $as_dir in #(
331       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
332       *) as_qdir=$as_dir;;
333       esac
334       as_dirs="'$as_qdir' $as_dirs"
335       as_dir=`$as_dirname -- "$as_dir" ||
336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
337          X"$as_dir" : 'X\(//\)[^/]' \| \
338          X"$as_dir" : 'X\(//\)$' \| \
339          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
340 $as_echo X"$as_dir" |
341     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
342             s//\1/
343             q
344           }
345           /^X\(\/\/\)[^/].*/{
346             s//\1/
347             q
348           }
349           /^X\(\/\/\)$/{
350             s//\1/
351             q
352           }
353           /^X\(\/\).*/{
354             s//\1/
355             q
356           }
357           s/.*/./; q'`
358       test -d "$as_dir" && break
359     done
360     test -z "$as_dirs" || eval "mkdir $as_dirs"
361   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
362
363
364 } # as_fn_mkdir_p
365
366 # as_fn_executable_p FILE
367 # -----------------------
368 # Test if FILE is an executable regular file.
369 as_fn_executable_p ()
370 {
371   test -f "$1" && test -x "$1"
372 } # as_fn_executable_p
373 # as_fn_append VAR VALUE
374 # ----------------------
375 # Append the text in VALUE to the end of the definition contained in VAR. Take
376 # advantage of any shell optimizations that allow amortized linear growth over
377 # repeated appends, instead of the typical quadratic growth present in naive
378 # implementations.
379 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
380   eval 'as_fn_append ()
381   {
382     eval $1+=\$2
383   }'
384 else
385   as_fn_append ()
386   {
387     eval $1=\$$1\$2
388   }
389 fi # as_fn_append
390
391 # as_fn_arith ARG...
392 # ------------------
393 # Perform arithmetic evaluation on the ARGs, and store the result in the
394 # global $as_val. Take advantage of shells that can avoid forks. The arguments
395 # must be portable across $(()) and expr.
396 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
397   eval 'as_fn_arith ()
398   {
399     as_val=$(( $* ))
400   }'
401 else
402   as_fn_arith ()
403   {
404     as_val=`expr "$@" || test $? -eq 1`
405   }
406 fi # as_fn_arith
407
408
409 # as_fn_error STATUS ERROR [LINENO LOG_FD]
410 # ----------------------------------------
411 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
412 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
413 # script with STATUS, using 1 if that was 0.
414 as_fn_error ()
415 {
416   as_status=$1; test $as_status -eq 0 && as_status=1
417   if test "$4"; then
418     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
419     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
420   fi
421   $as_echo "$as_me: error: $2" >&2
422   as_fn_exit $as_status
423 } # as_fn_error
424
425 if expr a : '\(a\)' >/dev/null 2>&1 &&
426    test "X`expr 00001 : '.*\(...\)'`" = X001; then
427   as_expr=expr
428 else
429   as_expr=false
430 fi
431
432 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
433   as_basename=basename
434 else
435   as_basename=false
436 fi
437
438 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
439   as_dirname=dirname
440 else
441   as_dirname=false
442 fi
443
444 as_me=`$as_basename -- "$0" ||
445 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
446          X"$0" : 'X\(//\)$' \| \
447          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
448 $as_echo X/"$0" |
449     sed '/^.*\/\([^/][^/]*\)\/*$/{
450             s//\1/
451             q
452           }
453           /^X\/\(\/\/\)$/{
454             s//\1/
455             q
456           }
457           /^X\/\(\/\).*/{
458             s//\1/
459             q
460           }
461           s/.*/./; q'`
462
463 # Avoid depending upon Character Ranges.
464 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
465 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
466 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
467 as_cr_digits='0123456789'
468 as_cr_alnum=$as_cr_Letters$as_cr_digits
469
470
471   as_lineno_1=$LINENO as_lineno_1a=$LINENO
472   as_lineno_2=$LINENO as_lineno_2a=$LINENO
473   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
474   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
475   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
476   sed -n '
477     p
478     /[$]LINENO/=
479   ' <$as_myself |
480     sed '
481       s/[$]LINENO.*/&-/
482       t lineno
483       b
484       :lineno
485       N
486       :loop
487       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488       t loop
489       s/-\n.*//
490     ' >$as_me.lineno &&
491   chmod +x "$as_me.lineno" ||
492     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
493
494   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
495   # already done that, so ensure we don't try to do so again and fall
496   # in an infinite loop.  This has already happened in practice.
497   _as_can_reexec=no; export _as_can_reexec
498   # Don't try to exec as it changes $[0], causing all sort of problems
499   # (the dirname of $[0] is not the place where we might find the
500   # original and so on.  Autoconf is especially sensitive to this).
501   . "./$as_me.lineno"
502   # Exit status is that of the last command.
503   exit
504 }
505
506 ECHO_C= ECHO_N= ECHO_T=
507 case `echo -n x` in #(((((
508 -n*)
509   case `echo 'xy\c'` in
510   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
511   xy)  ECHO_C='\c';;
512   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
513        ECHO_T=' ';;
514   esac;;
515 *)
516   ECHO_N='-n';;
517 esac
518
519 rm -f conf$$ conf$$.exe conf$$.file
520 if test -d conf$$.dir; then
521   rm -f conf$$.dir/conf$$.file
522 else
523   rm -f conf$$.dir
524   mkdir conf$$.dir 2>/dev/null
525 fi
526 if (echo >conf$$.file) 2>/dev/null; then
527   if ln -s conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s='ln -s'
529     # ... but there are two gotchas:
530     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
531     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
532     # In both cases, we have to default to `cp -pR'.
533     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
534       as_ln_s='cp -pR'
535   elif ln conf$$.file conf$$ 2>/dev/null; then
536     as_ln_s=ln
537   else
538     as_ln_s='cp -pR'
539   fi
540 else
541   as_ln_s='cp -pR'
542 fi
543 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
544 rmdir conf$$.dir 2>/dev/null
545
546 if mkdir -p . 2>/dev/null; then
547   as_mkdir_p='mkdir -p "$as_dir"'
548 else
549   test -d ./-p && rmdir ./-p
550   as_mkdir_p=false
551 fi
552
553 as_test_x='test -x'
554 as_executable_p=as_fn_executable_p
555
556 # Sed expression to map a string onto a valid CPP name.
557 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
558
559 # Sed expression to map a string onto a valid variable name.
560 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
561
562
563 test -n "$DJDIR" || exec 7<&0 </dev/null
564 exec 6>&1
565
566 # Name of the host.
567 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
568 # so uname gets run too.
569 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
570
571 #
572 # Initializations.
573 #
574 ac_default_prefix=/usr/local
575 ac_clean_files=
576 ac_config_libobj_dir=.
577 LIBOBJS=
578 cross_compiling=no
579 subdirs=
580 MFLAGS=
581 MAKEFLAGS=
582
583 # Identity of this package.
584 PACKAGE_NAME='asterisk'
585 PACKAGE_TARNAME='asterisk'
586 PACKAGE_VERSION='trunk'
587 PACKAGE_STRING='asterisk trunk'
588 PACKAGE_BUGREPORT='https://issues.asterisk.org'
589 PACKAGE_URL=''
590
591 ac_unique_file="main/asterisk.c"
592 # Factoring default headers for most tests.
593 ac_includes_default="\
594 #include <stdio.h>
595 #ifdef HAVE_SYS_TYPES_H
596 # include <sys/types.h>
597 #endif
598 #ifdef HAVE_SYS_STAT_H
599 # include <sys/stat.h>
600 #endif
601 #ifdef STDC_HEADERS
602 # include <stdlib.h>
603 # include <stddef.h>
604 #else
605 # ifdef HAVE_STDLIB_H
606 #  include <stdlib.h>
607 # endif
608 #endif
609 #ifdef HAVE_STRING_H
610 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
611 #  include <memory.h>
612 # endif
613 # include <string.h>
614 #endif
615 #ifdef HAVE_STRINGS_H
616 # include <strings.h>
617 #endif
618 #ifdef HAVE_INTTYPES_H
619 # include <inttypes.h>
620 #endif
621 #ifdef HAVE_STDINT_H
622 # include <stdint.h>
623 #endif
624 #ifdef HAVE_UNISTD_H
625 # include <unistd.h>
626 #endif"
627
628 ac_header_list=
629 ac_subst_vars='LTLIBOBJS
630 PBX_SYSLOG
631 PBX_SYSLOG_FACILITY_LOG_UUCP
632 PBX_SYSLOG_FACILITY_LOG_SYSLOG
633 PBX_SYSLOG_FACILITY_LOG_NEWS
634 PBX_SYSLOG_FACILITY_LOG_MAIL
635 PBX_SYSLOG_FACILITY_LOG_LPR
636 PBX_SYSLOG_FACILITY_LOG_KERN
637 PBX_SYSLOG_FACILITY_LOG_FTP
638 PBX_SYSLOG_FACILITY_LOG_DAEMON
639 PBX_SYSLOG_FACILITY_LOG_CRON
640 PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
641 PBX_SYSLOG_FACILITY_LOG_AUTH
642 PBX_GENERIC_ODBC
643 GENERIC_ODBC_INCLUDE
644 GENERIC_ODBC_LIB
645 GTK2_LIBS
646 GTK2_CFLAGS
647 PBX_LAUNCHD
648 CONFIG_SDL
649 PBX_SO_NOSIGPIPE
650 PBX_MSG_NOSIGNAL
651 PBX_IXJUSER
652 PBX_H323
653 GMIME_LIBS
654 GMIME_CFLAGS
655 OPENH323_BUILD
656 OPENH323_SUFFIX
657 OPENH323_LIBDIR
658 OPENH323_INCDIR
659 OPENH323DIR
660 PWLIB_PLATFORM
661 PWLIB_LIBDIR
662 PWLIB_INCDIR
663 PWLIBDIR
664 PTLIB_CONFIG
665 PJPROJECT_LIBS
666 PJPROJECT_CFLAGS
667 PG_CONFIG
668 CONFIG_NETSNMP
669 CONFIG_NEON29
670 CONFIG_NEON
671 CONFIG_MYSQLCLIENT
672 PBX_MISDN_FAC_ERROR
673 PBX_MISDN_FAC_RESULT
674 LIBEDIT_LIBS
675 LIBEDIT_CFLAGS
676 LIBEDIT_INTERNAL
677 ILBC_LIBS
678 ILBC_CFLAGS
679 ILBC_INTERNAL
680 GSM_INTERNAL
681 PBX_DAHDI_HALF_FULL
682 PKG_CONFIG_LIBDIR
683 PKG_CONFIG_PATH
684 PKG_CONFIG
685 PBX_DLADDR
686 PBX_IP_MTU_DISCOVER
687 PBX_RTLD_NOLOAD
688 PBX_GLOB_BRACE
689 PBX_GLOB_NOMAGIC
690 AST_RPATH
691 AST_NESTED_FUNCTIONS
692 AST_NATIVE_ARCH
693 AST_SHADOW_WARNINGS
694 AST_NO_STRICT_OVERFLOW
695 AST_FORTIFY_SOURCE
696 AST_TRAMPOLINES
697 AST_DECLARATION_AFTER_STATEMENT
698 GC_LDFLAGS
699 GC_CFLAGS
700 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
701 PBX_PTHREAD_RWLOCK_INITIALIZER
702 AST_ASTERISKSSL
703 HAS_POLL
704 PBX_DYNAMIC_LIST
705 POW_LIB
706 PBX_WORKING_FORK
707 LIBOBJS
708 CONFIG_LIBXML2
709 UUID_LIB
710 UUID_INCLUDE
711 EDITLINE_LIB
712 ALLOCA
713 PBX_ZLIB
714 ZLIB_DIR
715 ZLIB_INCLUDE
716 ZLIB_LIB
717 PBX_X11
718 X11_DIR
719 X11_INCLUDE
720 X11_LIB
721 PBX_VPB
722 VPB_DIR
723 VPB_INCLUDE
724 VPB_LIB
725 PBX_VORBIS
726 VORBIS_DIR
727 VORBIS_INCLUDE
728 VORBIS_LIB
729 PBX_UNIXODBC
730 UNIXODBC_DIR
731 UNIXODBC_INCLUDE
732 UNIXODBC_LIB
733 PBX_TONEZONE
734 TONEZONE_DIR
735 TONEZONE_INCLUDE
736 TONEZONE_LIB
737 PBX_TINFO
738 TINFO_DIR
739 TINFO_INCLUDE
740 TINFO_LIB
741 PBX_TIMERFD
742 TIMERFD_DIR
743 TIMERFD_INCLUDE
744 TIMERFD_LIB
745 PBX_TERMCAP
746 TERMCAP_DIR
747 TERMCAP_INCLUDE
748 TERMCAP_LIB
749 PBX_FREETDS
750 FREETDS_DIR
751 FREETDS_INCLUDE
752 FREETDS_LIB
753 PBX_SUPPSERV
754 SUPPSERV_DIR
755 SUPPSERV_INCLUDE
756 SUPPSERV_LIB
757 PBX_OPENSSL
758 OPENSSL_DIR
759 OPENSSL_INCLUDE
760 OPENSSL_LIB
761 PBX_SRTP_SHUTDOWN
762 SRTP_SHUTDOWN_DIR
763 SRTP_SHUTDOWN_INCLUDE
764 SRTP_SHUTDOWN_LIB
765 PBX_SRTP
766 SRTP_DIR
767 SRTP_INCLUDE
768 SRTP_LIB
769 PBX_SQLITE3
770 SQLITE3_DIR
771 SQLITE3_INCLUDE
772 SQLITE3_LIB
773 PBX_SQLITE
774 SQLITE_DIR
775 SQLITE_INCLUDE
776 SQLITE_LIB
777 PBX_SPEEXDSP
778 SPEEXDSP_DIR
779 SPEEXDSP_INCLUDE
780 SPEEXDSP_LIB
781 PBX_SPEEX_PREPROCESS
782 SPEEX_PREPROCESS_DIR
783 SPEEX_PREPROCESS_INCLUDE
784 SPEEX_PREPROCESS_LIB
785 PBX_SPEEX
786 SPEEX_DIR
787 SPEEX_INCLUDE
788 SPEEX_LIB
789 PBX_SS7
790 SS7_DIR
791 SS7_INCLUDE
792 SS7_LIB
793 PBX_SPANDSP
794 SPANDSP_DIR
795 SPANDSP_INCLUDE
796 SPANDSP_LIB
797 SOUNDS_CACHE_DIR
798 PBX_SDL_IMAGE
799 SDL_IMAGE_DIR
800 SDL_IMAGE_INCLUDE
801 SDL_IMAGE_LIB
802 PBX_SDL
803 SDL_DIR
804 SDL_INCLUDE
805 SDL_LIB
806 PBX_RESAMPLE
807 RESAMPLE_DIR
808 RESAMPLE_INCLUDE
809 RESAMPLE_LIB
810 PBX_RADIUS
811 RADIUS_DIR
812 RADIUS_INCLUDE
813 RADIUS_LIB
814 PBX_PWLIB
815 PWLIB_DIR
816 PWLIB_INCLUDE
817 PWLIB_LIB
818 PBX_PRI_REVERSE_CHARGE
819 PRI_REVERSE_CHARGE_DIR
820 PRI_REVERSE_CHARGE_INCLUDE
821 PRI_REVERSE_CHARGE_LIB
822 PBX_PRI_SERVICE_MESSAGES
823 PRI_SERVICE_MESSAGES_DIR
824 PRI_SERVICE_MESSAGES_INCLUDE
825 PRI_SERVICE_MESSAGES_LIB
826 PBX_PRI_PROG_W_CAUSE
827 PRI_PROG_W_CAUSE_DIR
828 PRI_PROG_W_CAUSE_INCLUDE
829 PRI_PROG_W_CAUSE_LIB
830 PBX_PRI_INBANDDISCONNECT
831 PRI_INBANDDISCONNECT_DIR
832 PRI_INBANDDISCONNECT_INCLUDE
833 PRI_INBANDDISCONNECT_LIB
834 PBX_PRI_SETUP_KEYPAD
835 PRI_SETUP_KEYPAD_DIR
836 PRI_SETUP_KEYPAD_INCLUDE
837 PRI_SETUP_KEYPAD_LIB
838 PBX_PRI_CALL_REROUTING
839 PRI_CALL_REROUTING_DIR
840 PRI_CALL_REROUTING_INCLUDE
841 PRI_CALL_REROUTING_LIB
842 PBX_PRI_CALL_HOLD
843 PRI_CALL_HOLD_DIR
844 PRI_CALL_HOLD_INCLUDE
845 PRI_CALL_HOLD_LIB
846 PBX_PRI_SUBADDR
847 PRI_SUBADDR_DIR
848 PRI_SUBADDR_INCLUDE
849 PRI_SUBADDR_LIB
850 PBX_PRI_HANGUP_FIX
851 PRI_HANGUP_FIX_DIR
852 PRI_HANGUP_FIX_INCLUDE
853 PRI_HANGUP_FIX_LIB
854 PBX_PRI_CCSS
855 PRI_CCSS_DIR
856 PRI_CCSS_INCLUDE
857 PRI_CCSS_LIB
858 PBX_PRI_TRANSFER
859 PRI_TRANSFER_DIR
860 PRI_TRANSFER_INCLUDE
861 PRI_TRANSFER_LIB
862 PBX_PRI_AOC_EVENTS
863 PRI_AOC_EVENTS_DIR
864 PRI_AOC_EVENTS_INCLUDE
865 PRI_AOC_EVENTS_LIB
866 PBX_PRI_CALL_WAITING
867 PRI_CALL_WAITING_DIR
868 PRI_CALL_WAITING_INCLUDE
869 PRI_CALL_WAITING_LIB
870 PBX_PRI_MCID
871 PRI_MCID_DIR
872 PRI_MCID_INCLUDE
873 PRI_MCID_LIB
874 PBX_PRI_MWI
875 PRI_MWI_DIR
876 PRI_MWI_INCLUDE
877 PRI_MWI_LIB
878 PBX_PRI_DISPLAY_TEXT
879 PRI_DISPLAY_TEXT_DIR
880 PRI_DISPLAY_TEXT_INCLUDE
881 PRI_DISPLAY_TEXT_LIB
882 PBX_PRI_MWI_V2
883 PRI_MWI_V2_DIR
884 PRI_MWI_V2_INCLUDE
885 PRI_MWI_V2_LIB
886 PBX_PRI_DATETIME_SEND
887 PRI_DATETIME_SEND_DIR
888 PRI_DATETIME_SEND_INCLUDE
889 PRI_DATETIME_SEND_LIB
890 PBX_PRI_L2_PERSISTENCE
891 PRI_L2_PERSISTENCE_DIR
892 PRI_L2_PERSISTENCE_INCLUDE
893 PRI_L2_PERSISTENCE_LIB
894 PBX_PRI
895 PRI_DIR
896 PRI_INCLUDE
897 PRI_LIB
898 PBX_PORTAUDIO
899 PORTAUDIO_DIR
900 PORTAUDIO_INCLUDE
901 PORTAUDIO_LIB
902 PBX_PJ_TRANSACTION_GRP_LOCK
903 PJ_TRANSACTION_GRP_LOCK_DIR
904 PJ_TRANSACTION_GRP_LOCK_INCLUDE
905 PJ_TRANSACTION_GRP_LOCK_LIB
906 PBX_POPT
907 POPT_DIR
908 POPT_INCLUDE
909 POPT_LIB
910 PBX_PJPROJECT
911 PJPROJECT_DIR
912 PJPROJECT_INCLUDE
913 PJPROJECT_LIB
914 PBX_PGSQL
915 PGSQL_DIR
916 PGSQL_INCLUDE
917 PGSQL_LIB
918 PBX_OSS
919 OSS_DIR
920 OSS_INCLUDE
921 OSS_LIB
922 PBX_OSPTK
923 OSPTK_DIR
924 OSPTK_INCLUDE
925 OSPTK_LIB
926 PBX_OPENR2
927 OPENR2_DIR
928 OPENR2_INCLUDE
929 OPENR2_LIB
930 PBX_OGG
931 OGG_DIR
932 OGG_INCLUDE
933 OGG_LIB
934 PBX_NEWT
935 NEWT_DIR
936 NEWT_INCLUDE
937 NEWT_LIB
938 PBX_NETSNMP
939 NETSNMP_DIR
940 NETSNMP_INCLUDE
941 NETSNMP_LIB
942 PBX_NEON29
943 NEON29_DIR
944 NEON29_INCLUDE
945 NEON29_LIB
946 PBX_NEON
947 NEON_DIR
948 NEON_INCLUDE
949 NEON_LIB
950 PBX_NCURSES
951 NCURSES_DIR
952 NCURSES_INCLUDE
953 NCURSES_LIB
954 PBX_NBS
955 NBS_DIR
956 NBS_INCLUDE
957 NBS_LIB
958 PBX_MYSQLCLIENT
959 MYSQLCLIENT_DIR
960 MYSQLCLIENT_INCLUDE
961 MYSQLCLIENT_LIB
962 PBX_MISDN
963 MISDN_DIR
964 MISDN_INCLUDE
965 MISDN_LIB
966 PBX_LUA
967 LUA_DIR
968 LUA_INCLUDE
969 LUA_LIB
970 PBX_LTDL
971 LTDL_DIR
972 LTDL_INCLUDE
973 LTDL_LIB
974 PBX_LIBXSLT_CLEANUP
975 LIBXSLT_CLEANUP_DIR
976 LIBXSLT_CLEANUP_INCLUDE
977 LIBXSLT_CLEANUP_LIB
978 PBX_LIBXSLT
979 LIBXSLT_DIR
980 LIBXSLT_INCLUDE
981 LIBXSLT_LIB
982 PBX_LIBXML2
983 LIBXML2_DIR
984 LIBXML2_INCLUDE
985 LIBXML2_LIB
986 PBX_LIBEDIT
987 LIBEDIT_DIR
988 LIBEDIT_INCLUDE
989 LIBEDIT_LIB
990 CURL_LIB
991 CURL_INCLUDE
992 _libcurl_config
993 PBX_CURL
994 PBX_LDAP
995 LDAP_DIR
996 LDAP_INCLUDE
997 LDAP_LIB
998 PBX_KQUEUE
999 KQUEUE_DIR
1000 KQUEUE_INCLUDE
1001 KQUEUE_LIB
1002 PBX_URIPARSER
1003 URIPARSER_DIR
1004 URIPARSER_INCLUDE
1005 URIPARSER_LIB
1006 PBX_JANSSON
1007 JANSSON_DIR
1008 JANSSON_INCLUDE
1009 JANSSON_LIB
1010 PBX_JACK
1011 JACK_DIR
1012 JACK_INCLUDE
1013 JACK_LIB
1014 PBX_ISDNNET
1015 ISDNNET_DIR
1016 ISDNNET_INCLUDE
1017 ISDNNET_LIB
1018 PBX_IODBC
1019 IODBC_DIR
1020 IODBC_INCLUDE
1021 IODBC_LIB
1022 PBX_INOTIFY
1023 INOTIFY_DIR
1024 INOTIFY_INCLUDE
1025 INOTIFY_LIB
1026 PBX_IMAP_TK
1027 IMAP_TK_DIR
1028 IMAP_TK_INCLUDE
1029 IMAP_TK_LIB
1030 PBX_IKSEMEL
1031 IKSEMEL_DIR
1032 IKSEMEL_INCLUDE
1033 IKSEMEL_LIB
1034 PBX_ICONV
1035 ICONV_DIR
1036 ICONV_INCLUDE
1037 ICONV_LIB
1038 PBX_ICAL
1039 ICAL_DIR
1040 ICAL_INCLUDE
1041 ICAL_LIB
1042 PBX_HOARD
1043 HOARD_DIR
1044 HOARD_INCLUDE
1045 HOARD_LIB
1046 PBX_OPENH323
1047 OPENH323_DIR
1048 OPENH323_INCLUDE
1049 OPENH323_LIB
1050 PBX_GMIME
1051 GMIME_DIR
1052 GMIME_INCLUDE
1053 GMIME_LIB
1054 PBX_GTK2
1055 GTK2_DIR
1056 GTK2_INCLUDE
1057 GTK2_LIB
1058 PBX_ILBC
1059 ILBC_DIR
1060 ILBC_INCLUDE
1061 ILBC_LIB
1062 PBX_GSM
1063 GSM_DIR
1064 GSM_INCLUDE
1065 GSM_LIB
1066 PBX_FFMPEG
1067 FFMPEG_DIR
1068 FFMPEG_INCLUDE
1069 FFMPEG_LIB
1070 PBX_DAHDI
1071 DAHDI_DIR
1072 DAHDI_INCLUDE
1073 DAHDI_LIB
1074 PBX_OPENSSL_SRTP
1075 OPENSSL_SRTP_DIR
1076 OPENSSL_SRTP_INCLUDE
1077 OPENSSL_SRTP_LIB
1078 PBX_CRYPTO
1079 CRYPTO_DIR
1080 CRYPTO_INCLUDE
1081 CRYPTO_LIB
1082 PBX_CRYPT
1083 CRYPT_DIR
1084 CRYPT_INCLUDE
1085 CRYPT_LIB
1086 PBX_CURSES
1087 CURSES_DIR
1088 CURSES_INCLUDE
1089 CURSES_LIB
1090 PBX_COROSYNC_CFG_STATE_TRACK
1091 COROSYNC_CFG_STATE_TRACK_DIR
1092 COROSYNC_CFG_STATE_TRACK_INCLUDE
1093 COROSYNC_CFG_STATE_TRACK_LIB
1094 PBX_COROSYNC
1095 COROSYNC_DIR
1096 COROSYNC_INCLUDE
1097 COROSYNC_LIB
1098 PBX_CAP
1099 CAP_DIR
1100 CAP_INCLUDE
1101 CAP_LIB
1102 PBX_BLUETOOTH
1103 BLUETOOTH_DIR
1104 BLUETOOTH_INCLUDE
1105 BLUETOOTH_LIB
1106 PBX_BKTR
1107 BKTR_DIR
1108 BKTR_INCLUDE
1109 BKTR_LIB
1110 PBX_BFD
1111 BFD_DIR
1112 BFD_INCLUDE
1113 BFD_LIB
1114 PBX_ALSA
1115 ALSA_DIR
1116 ALSA_INCLUDE
1117 ALSA_LIB
1118 AST_CODE_COVERAGE
1119 AST_DEVMODE_STRICT
1120 AST_DEVMODE
1121 NOISY_BUILD
1122 PTHREAD_CFLAGS
1123 PTHREAD_LIBS
1124 PTHREAD_CC
1125 acx_pthread_config
1126 MD5
1127 SOXMIX
1128 PBX_FLEX
1129 PBX_BISON
1130 OPENSSL
1131 SHA1SUM
1132 LDCONFIG
1133 DOWNLOAD
1134 FETCH
1135 GIT
1136 XMLSTARLET
1137 XMLLINT
1138 KPATHSEA
1139 CATDVI
1140 RUBBER
1141 CURL
1142 WGET
1143 DOT
1144 DOXYGEN
1145 LN
1146 DIRNAME
1147 BASENAME
1148 COMPRESS
1149 FIND
1150 PYTHON
1151 FLEX
1152 CMP
1153 BISON
1154 GNU_LD
1155 ac_ct_AR
1156 AR
1157 ac_ct_STRIP
1158 STRIP
1159 GNU_MAKE
1160 LN_S
1161 INSTALL_DATA
1162 INSTALL_SCRIPT
1163 INSTALL_PROGRAM
1164 AWK
1165 SED
1166 CXXCPP
1167 ac_ct_CXX
1168 CXXFLAGS
1169 RANLIB
1170 LD
1171 CXX
1172 PBX_OSREV
1173 UNAME
1174 PBX_WINARCH
1175 OSARCH
1176 HOST_OS
1177 HOST_VENDOR
1178 HOST_CPU
1179 HOST_PLATFORM
1180 BUILD_OS
1181 BUILD_VENDOR
1182 BUILD_CPU
1183 BUILD_PLATFORM
1184 astvarrundir
1185 astlogdir
1186 astspooldir
1187 astkeydir
1188 astdbdir
1189 astdatadir
1190 astvarlibdir
1191 astmandir
1192 astmoddir
1193 astlibdir
1194 astheaderdir
1195 astetcdir
1196 astsbindir
1197 EGREP
1198 GREP
1199 CPP
1200 OBJEXT
1201 EXEEXT
1202 ac_ct_CC
1203 CPPFLAGS
1204 LDFLAGS
1205 CFLAGS
1206 CC
1207 CONFIG_LDFLAGS
1208 CONFIG_CFLAGS
1209 host_os
1210 host_vendor
1211 host_cpu
1212 host
1213 build_os
1214 build_vendor
1215 build_cpu
1216 build
1217 target_alias
1218 host_alias
1219 build_alias
1220 LIBS
1221 ECHO_T
1222 ECHO_N
1223 ECHO_C
1224 DEFS
1225 mandir
1226 localedir
1227 libdir
1228 psdir
1229 pdfdir
1230 dvidir
1231 htmldir
1232 infodir
1233 docdir
1234 oldincludedir
1235 includedir
1236 localstatedir
1237 sharedstatedir
1238 sysconfdir
1239 datadir
1240 datarootdir
1241 libexecdir
1242 sbindir
1243 bindir
1244 program_transform_name
1245 prefix
1246 exec_prefix
1247 PACKAGE_URL
1248 PACKAGE_BUGREPORT
1249 PACKAGE_STRING
1250 PACKAGE_VERSION
1251 PACKAGE_TARNAME
1252 PACKAGE_NAME
1253 PATH_SEPARATOR
1254 SHELL'
1255 ac_subst_files=''
1256 ac_user_opts='
1257 enable_option_checking
1258 with_gnu_ld
1259 enable_dev_mode
1260 enable_coverage
1261 with_asound
1262 with_bfd
1263 with_execinfo
1264 with_bluetooth
1265 with_cap
1266 with_cpg
1267 with_curses
1268 with_crypt
1269 with_crypto
1270 with_dahdi
1271 with_avcodec
1272 with_gsm
1273 with_ilbc
1274 with_gtk2
1275 with_gmime
1276 with_h323
1277 with_hoard
1278 with_ical
1279 with_iconv
1280 with_iksemel
1281 with_imap
1282 with_inotify
1283 with_iodbc
1284 with_isdnnet
1285 with_jack
1286 with_jansson
1287 with_uriparser
1288 with_kqueue
1289 with_ldap
1290 with_libcurl
1291 with_libedit
1292 with_libxml2
1293 with_libxslt
1294 with_ltdl
1295 with_lua
1296 with_misdn
1297 with_mysqlclient
1298 with_nbs
1299 with_ncurses
1300 with_neon
1301 with_neon29
1302 with_netsnmp
1303 with_newt
1304 with_ogg
1305 with_openr2
1306 with_osptk
1307 with_oss
1308 with_postgres
1309 with_pjproject
1310 with_popt
1311 with_portaudio
1312 with_pri
1313 with_pwlib
1314 with_radius
1315 with_resample
1316 with_sdl
1317 with_SDL_image
1318 with_sounds_cache
1319 with_spandsp
1320 with_ss7
1321 with_speex
1322 with_speexdsp
1323 with_sqlite
1324 with_sqlite3
1325 with_srtp
1326 with_ssl
1327 with_suppserv
1328 with_tds
1329 with_termcap
1330 with_timerfd
1331 with_tinfo
1332 with_tonezone
1333 with_unixodbc
1334 with_vorbis
1335 with_vpb
1336 with_x11
1337 with_z
1338 enable_xmldoc
1339 enable_largefile
1340 enable_internal_poll
1341 enable_asteriskssl
1342 enable_rpath
1343 '
1344       ac_precious_vars='build_alias
1345 host_alias
1346 target_alias
1347 CC
1348 CFLAGS
1349 LDFLAGS
1350 LIBS
1351 CPPFLAGS
1352 CPP
1353 CXX
1354 CXXFLAGS
1355 CCC
1356 CXXCPP
1357 PKG_CONFIG
1358 PKG_CONFIG_PATH
1359 PKG_CONFIG_LIBDIR
1360 ILBC_CFLAGS
1361 ILBC_LIBS
1362 LIBEDIT_CFLAGS
1363 LIBEDIT_LIBS
1364 PJPROJECT_CFLAGS
1365 PJPROJECT_LIBS
1366 GMIME_CFLAGS
1367 GMIME_LIBS
1368 GTK2_CFLAGS
1369 GTK2_LIBS'
1370
1371
1372 # Initialize some variables set by options.
1373 ac_init_help=
1374 ac_init_version=false
1375 ac_unrecognized_opts=
1376 ac_unrecognized_sep=
1377 # The variables have the same names as the options, with
1378 # dashes changed to underlines.
1379 cache_file=/dev/null
1380 exec_prefix=NONE
1381 no_create=
1382 no_recursion=
1383 prefix=NONE
1384 program_prefix=NONE
1385 program_suffix=NONE
1386 program_transform_name=s,x,x,
1387 silent=
1388 site=
1389 srcdir=
1390 verbose=
1391 x_includes=NONE
1392 x_libraries=NONE
1393
1394 # Installation directory options.
1395 # These are left unexpanded so users can "make install exec_prefix=/foo"
1396 # and all the variables that are supposed to be based on exec_prefix
1397 # by default will actually change.
1398 # Use braces instead of parens because sh, perl, etc. also accept them.
1399 # (The list follows the same order as the GNU Coding Standards.)
1400 bindir='${exec_prefix}/bin'
1401 sbindir='${exec_prefix}/sbin'
1402 libexecdir='${exec_prefix}/libexec'
1403 datarootdir='${prefix}/share'
1404 datadir='${datarootdir}'
1405 sysconfdir='${prefix}/etc'
1406 sharedstatedir='${prefix}/com'
1407 localstatedir='${prefix}/var'
1408 includedir='${prefix}/include'
1409 oldincludedir='/usr/include'
1410 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1411 infodir='${datarootdir}/info'
1412 htmldir='${docdir}'
1413 dvidir='${docdir}'
1414 pdfdir='${docdir}'
1415 psdir='${docdir}'
1416 libdir='${exec_prefix}/lib'
1417 localedir='${datarootdir}/locale'
1418 mandir='${datarootdir}/man'
1419
1420 ac_prev=
1421 ac_dashdash=
1422 for ac_option
1423 do
1424   # If the previous option needs an argument, assign it.
1425   if test -n "$ac_prev"; then
1426     eval $ac_prev=\$ac_option
1427     ac_prev=
1428     continue
1429   fi
1430
1431   case $ac_option in
1432   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1433   *=)   ac_optarg= ;;
1434   *)    ac_optarg=yes ;;
1435   esac
1436
1437   # Accept the important Cygnus configure options, so we can diagnose typos.
1438
1439   case $ac_dashdash$ac_option in
1440   --)
1441     ac_dashdash=yes ;;
1442
1443   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1444     ac_prev=bindir ;;
1445   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1446     bindir=$ac_optarg ;;
1447
1448   -build | --build | --buil | --bui | --bu)
1449     ac_prev=build_alias ;;
1450   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1451     build_alias=$ac_optarg ;;
1452
1453   -cache-file | --cache-file | --cache-fil | --cache-fi \
1454   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1455     ac_prev=cache_file ;;
1456   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1457   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1458     cache_file=$ac_optarg ;;
1459
1460   --config-cache | -C)
1461     cache_file=config.cache ;;
1462
1463   -datadir | --datadir | --datadi | --datad)
1464     ac_prev=datadir ;;
1465   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1466     datadir=$ac_optarg ;;
1467
1468   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1469   | --dataroo | --dataro | --datar)
1470     ac_prev=datarootdir ;;
1471   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1472   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1473     datarootdir=$ac_optarg ;;
1474
1475   -disable-* | --disable-*)
1476     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1477     # Reject names that are not valid shell variable names.
1478     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1479       as_fn_error $? "invalid feature name: $ac_useropt"
1480     ac_useropt_orig=$ac_useropt
1481     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1482     case $ac_user_opts in
1483       *"
1484 "enable_$ac_useropt"
1485 "*) ;;
1486       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1487          ac_unrecognized_sep=', ';;
1488     esac
1489     eval enable_$ac_useropt=no ;;
1490
1491   -docdir | --docdir | --docdi | --doc | --do)
1492     ac_prev=docdir ;;
1493   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1494     docdir=$ac_optarg ;;
1495
1496   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1497     ac_prev=dvidir ;;
1498   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1499     dvidir=$ac_optarg ;;
1500
1501   -enable-* | --enable-*)
1502     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1503     # Reject names that are not valid shell variable names.
1504     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1505       as_fn_error $? "invalid feature name: $ac_useropt"
1506     ac_useropt_orig=$ac_useropt
1507     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1508     case $ac_user_opts in
1509       *"
1510 "enable_$ac_useropt"
1511 "*) ;;
1512       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1513          ac_unrecognized_sep=', ';;
1514     esac
1515     eval enable_$ac_useropt=\$ac_optarg ;;
1516
1517   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1518   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1519   | --exec | --exe | --ex)
1520     ac_prev=exec_prefix ;;
1521   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1522   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1523   | --exec=* | --exe=* | --ex=*)
1524     exec_prefix=$ac_optarg ;;
1525
1526   -gas | --gas | --ga | --g)
1527     # Obsolete; use --with-gas.
1528     with_gas=yes ;;
1529
1530   -help | --help | --hel | --he | -h)
1531     ac_init_help=long ;;
1532   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1533     ac_init_help=recursive ;;
1534   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1535     ac_init_help=short ;;
1536
1537   -host | --host | --hos | --ho)
1538     ac_prev=host_alias ;;
1539   -host=* | --host=* | --hos=* | --ho=*)
1540     host_alias=$ac_optarg ;;
1541
1542   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1543     ac_prev=htmldir ;;
1544   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1545   | --ht=*)
1546     htmldir=$ac_optarg ;;
1547
1548   -includedir | --includedir | --includedi | --included | --include \
1549   | --includ | --inclu | --incl | --inc)
1550     ac_prev=includedir ;;
1551   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1552   | --includ=* | --inclu=* | --incl=* | --inc=*)
1553     includedir=$ac_optarg ;;
1554
1555   -infodir | --infodir | --infodi | --infod | --info | --inf)
1556     ac_prev=infodir ;;
1557   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1558     infodir=$ac_optarg ;;
1559
1560   -libdir | --libdir | --libdi | --libd)
1561     ac_prev=libdir ;;
1562   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1563     libdir=$ac_optarg ;;
1564
1565   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1566   | --libexe | --libex | --libe)
1567     ac_prev=libexecdir ;;
1568   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1569   | --libexe=* | --libex=* | --libe=*)
1570     libexecdir=$ac_optarg ;;
1571
1572   -localedir | --localedir | --localedi | --localed | --locale)
1573     ac_prev=localedir ;;
1574   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1575     localedir=$ac_optarg ;;
1576
1577   -localstatedir | --localstatedir | --localstatedi | --localstated \
1578   | --localstate | --localstat | --localsta | --localst | --locals)
1579     ac_prev=localstatedir ;;
1580   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1581   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1582     localstatedir=$ac_optarg ;;
1583
1584   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1585     ac_prev=mandir ;;
1586   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1587     mandir=$ac_optarg ;;
1588
1589   -nfp | --nfp | --nf)
1590     # Obsolete; use --without-fp.
1591     with_fp=no ;;
1592
1593   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1594   | --no-cr | --no-c | -n)
1595     no_create=yes ;;
1596
1597   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1598   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1599     no_recursion=yes ;;
1600
1601   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1602   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1603   | --oldin | --oldi | --old | --ol | --o)
1604     ac_prev=oldincludedir ;;
1605   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1606   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1607   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1608     oldincludedir=$ac_optarg ;;
1609
1610   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1611     ac_prev=prefix ;;
1612   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1613     prefix=$ac_optarg ;;
1614
1615   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1616   | --program-pre | --program-pr | --program-p)
1617     ac_prev=program_prefix ;;
1618   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1619   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1620     program_prefix=$ac_optarg ;;
1621
1622   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1623   | --program-suf | --program-su | --program-s)
1624     ac_prev=program_suffix ;;
1625   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1626   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1627     program_suffix=$ac_optarg ;;
1628
1629   -program-transform-name | --program-transform-name \
1630   | --program-transform-nam | --program-transform-na \
1631   | --program-transform-n | --program-transform- \
1632   | --program-transform | --program-transfor \
1633   | --program-transfo | --program-transf \
1634   | --program-trans | --program-tran \
1635   | --progr-tra | --program-tr | --program-t)
1636     ac_prev=program_transform_name ;;
1637   -program-transform-name=* | --program-transform-name=* \
1638   | --program-transform-nam=* | --program-transform-na=* \
1639   | --program-transform-n=* | --program-transform-=* \
1640   | --program-transform=* | --program-transfor=* \
1641   | --program-transfo=* | --program-transf=* \
1642   | --program-trans=* | --program-tran=* \
1643   | --progr-tra=* | --program-tr=* | --program-t=*)
1644     program_transform_name=$ac_optarg ;;
1645
1646   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1647     ac_prev=pdfdir ;;
1648   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1649     pdfdir=$ac_optarg ;;
1650
1651   -psdir | --psdir | --psdi | --psd | --ps)
1652     ac_prev=psdir ;;
1653   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1654     psdir=$ac_optarg ;;
1655
1656   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1657   | -silent | --silent | --silen | --sile | --sil)
1658     silent=yes ;;
1659
1660   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1661     ac_prev=sbindir ;;
1662   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1663   | --sbi=* | --sb=*)
1664     sbindir=$ac_optarg ;;
1665
1666   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1667   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1668   | --sharedst | --shareds | --shared | --share | --shar \
1669   | --sha | --sh)
1670     ac_prev=sharedstatedir ;;
1671   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1672   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1673   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1674   | --sha=* | --sh=*)
1675     sharedstatedir=$ac_optarg ;;
1676
1677   -site | --site | --sit)
1678     ac_prev=site ;;
1679   -site=* | --site=* | --sit=*)
1680     site=$ac_optarg ;;
1681
1682   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1683     ac_prev=srcdir ;;
1684   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1685     srcdir=$ac_optarg ;;
1686
1687   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1688   | --syscon | --sysco | --sysc | --sys | --sy)
1689     ac_prev=sysconfdir ;;
1690   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1691   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1692     sysconfdir=$ac_optarg ;;
1693
1694   -target | --target | --targe | --targ | --tar | --ta | --t)
1695     ac_prev=target_alias ;;
1696   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1697     target_alias=$ac_optarg ;;
1698
1699   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1700     verbose=yes ;;
1701
1702   -version | --version | --versio | --versi | --vers | -V)
1703     ac_init_version=: ;;
1704
1705   -with-* | --with-*)
1706     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1707     # Reject names that are not valid shell variable names.
1708     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1709       as_fn_error $? "invalid package name: $ac_useropt"
1710     ac_useropt_orig=$ac_useropt
1711     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1712     case $ac_user_opts in
1713       *"
1714 "with_$ac_useropt"
1715 "*) ;;
1716       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1717          ac_unrecognized_sep=', ';;
1718     esac
1719     eval with_$ac_useropt=\$ac_optarg ;;
1720
1721   -without-* | --without-*)
1722     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1723     # Reject names that are not valid shell variable names.
1724     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1725       as_fn_error $? "invalid package name: $ac_useropt"
1726     ac_useropt_orig=$ac_useropt
1727     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1728     case $ac_user_opts in
1729       *"
1730 "with_$ac_useropt"
1731 "*) ;;
1732       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1733          ac_unrecognized_sep=', ';;
1734     esac
1735     eval with_$ac_useropt=no ;;
1736
1737   --x)
1738     # Obsolete; use --with-x.
1739     with_x=yes ;;
1740
1741   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1742   | --x-incl | --x-inc | --x-in | --x-i)
1743     ac_prev=x_includes ;;
1744   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1745   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1746     x_includes=$ac_optarg ;;
1747
1748   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1749   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1750     ac_prev=x_libraries ;;
1751   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1752   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1753     x_libraries=$ac_optarg ;;
1754
1755   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1756 Try \`$0 --help' for more information"
1757     ;;
1758
1759   *=*)
1760     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1761     # Reject names that are not valid shell variable names.
1762     case $ac_envvar in #(
1763       '' | [0-9]* | *[!_$as_cr_alnum]* )
1764       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1765     esac
1766     eval $ac_envvar=\$ac_optarg
1767     export $ac_envvar ;;
1768
1769   *)
1770     # FIXME: should be removed in autoconf 3.0.
1771     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1772     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1773       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1774     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1775     ;;
1776
1777   esac
1778 done
1779
1780 if test -n "$ac_prev"; then
1781   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1782   as_fn_error $? "missing argument to $ac_option"
1783 fi
1784
1785 if test -n "$ac_unrecognized_opts"; then
1786   case $enable_option_checking in
1787     no) ;;
1788     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1789     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1790   esac
1791 fi
1792
1793 # Check all directory arguments for consistency.
1794 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1795                 datadir sysconfdir sharedstatedir localstatedir includedir \
1796                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1797                 libdir localedir mandir
1798 do
1799   eval ac_val=\$$ac_var
1800   # Remove trailing slashes.
1801   case $ac_val in
1802     */ )
1803       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1804       eval $ac_var=\$ac_val;;
1805   esac
1806   # Be sure to have absolute directory names.
1807   case $ac_val in
1808     [\\/$]* | ?:[\\/]* )  continue;;
1809     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1810   esac
1811   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1812 done
1813
1814 # There might be people who depend on the old broken behavior: `$host'
1815 # used to hold the argument of --host etc.
1816 # FIXME: To remove some day.
1817 build=$build_alias
1818 host=$host_alias
1819 target=$target_alias
1820
1821 # FIXME: To remove some day.
1822 if test "x$host_alias" != x; then
1823   if test "x$build_alias" = x; then
1824     cross_compiling=maybe
1825   elif test "x$build_alias" != "x$host_alias"; then
1826     cross_compiling=yes
1827   fi
1828 fi
1829
1830 ac_tool_prefix=
1831 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1832
1833 test "$silent" = yes && exec 6>/dev/null
1834
1835
1836 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1837 ac_ls_di=`ls -di .` &&
1838 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1839   as_fn_error $? "working directory cannot be determined"
1840 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1841   as_fn_error $? "pwd does not report name of working directory"
1842
1843
1844 # Find the source files, if location was not specified.
1845 if test -z "$srcdir"; then
1846   ac_srcdir_defaulted=yes
1847   # Try the directory containing this script, then the parent directory.
1848   ac_confdir=`$as_dirname -- "$as_myself" ||
1849 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1850          X"$as_myself" : 'X\(//\)[^/]' \| \
1851          X"$as_myself" : 'X\(//\)$' \| \
1852          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1853 $as_echo X"$as_myself" |
1854     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1855             s//\1/
1856             q
1857           }
1858           /^X\(\/\/\)[^/].*/{
1859             s//\1/
1860             q
1861           }
1862           /^X\(\/\/\)$/{
1863             s//\1/
1864             q
1865           }
1866           /^X\(\/\).*/{
1867             s//\1/
1868             q
1869           }
1870           s/.*/./; q'`
1871   srcdir=$ac_confdir
1872   if test ! -r "$srcdir/$ac_unique_file"; then
1873     srcdir=..
1874   fi
1875 else
1876   ac_srcdir_defaulted=no
1877 fi
1878 if test ! -r "$srcdir/$ac_unique_file"; then
1879   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1880   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1881 fi
1882 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1883 ac_abs_confdir=`(
1884         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1885         pwd)`
1886 # When building in place, set srcdir=.
1887 if test "$ac_abs_confdir" = "$ac_pwd"; then
1888   srcdir=.
1889 fi
1890 # Remove unnecessary trailing slashes from srcdir.
1891 # Double slashes in file names in object file debugging info
1892 # mess up M-x gdb in Emacs.
1893 case $srcdir in
1894 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1895 esac
1896 for ac_var in $ac_precious_vars; do
1897   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1898   eval ac_env_${ac_var}_value=\$${ac_var}
1899   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1900   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1901 done
1902
1903 #
1904 # Report the --help message.
1905 #
1906 if test "$ac_init_help" = "long"; then
1907   # Omit some internal or obsolete options to make the list less imposing.
1908   # This message is too long to be a string in the A/UX 3.1 sh.
1909   cat <<_ACEOF
1910 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1911
1912 Usage: $0 [OPTION]... [VAR=VALUE]...
1913
1914 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1915 VAR=VALUE.  See below for descriptions of some of the useful variables.
1916
1917 Defaults for the options are specified in brackets.
1918
1919 Configuration:
1920   -h, --help              display this help and exit
1921       --help=short        display options specific to this package
1922       --help=recursive    display the short help of all the included packages
1923   -V, --version           display version information and exit
1924   -q, --quiet, --silent   do not print \`checking ...' messages
1925       --cache-file=FILE   cache test results in FILE [disabled]
1926   -C, --config-cache      alias for \`--cache-file=config.cache'
1927   -n, --no-create         do not create output files
1928       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1929
1930 Installation directories:
1931   --prefix=PREFIX         install architecture-independent files in PREFIX
1932                           [$ac_default_prefix]
1933   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1934                           [PREFIX]
1935
1936 By default, \`make install' will install all the files in
1937 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1938 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1939 for instance \`--prefix=\$HOME'.
1940
1941 For better control, use the options below.
1942
1943 Fine tuning of the installation directories:
1944   --bindir=DIR            user executables [EPREFIX/bin]
1945   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1946   --libexecdir=DIR        program executables [EPREFIX/libexec]
1947   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1948   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1949   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1950   --libdir=DIR            object code libraries [EPREFIX/lib]
1951   --includedir=DIR        C header files [PREFIX/include]
1952   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1953   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1954   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1955   --infodir=DIR           info documentation [DATAROOTDIR/info]
1956   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1957   --mandir=DIR            man documentation [DATAROOTDIR/man]
1958   --docdir=DIR            documentation root [DATAROOTDIR/doc/asterisk]
1959   --htmldir=DIR           html documentation [DOCDIR]
1960   --dvidir=DIR            dvi documentation [DOCDIR]
1961   --pdfdir=DIR            pdf documentation [DOCDIR]
1962   --psdir=DIR             ps documentation [DOCDIR]
1963 _ACEOF
1964
1965   cat <<\_ACEOF
1966
1967 System types:
1968   --build=BUILD     configure for building on BUILD [guessed]
1969   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1970 _ACEOF
1971 fi
1972
1973 if test -n "$ac_init_help"; then
1974   case $ac_init_help in
1975      short | recursive ) echo "Configuration of asterisk trunk:";;
1976    esac
1977   cat <<\_ACEOF
1978
1979 Optional Features:
1980   --disable-option-checking  ignore unrecognized --enable/--with options
1981   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1982   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1983   --enable-dev-mode       Turn on developer mode
1984   --enable-coverage       Turn on code coverage tracking (for gcov)
1985   --disable-xmldoc        Explicitly disable XML documentation
1986   --disable-largefile     omit support for large files
1987   --enable-internal-poll  Use Asterisk's poll implementation
1988   --disable-asteriskssl   Disable Asterisk's SSL wrapper library
1989   --disable-rpath         Disables rpath linker option checking
1990
1991 Optional Packages:
1992   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1993   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1994   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1995   --with-asound=PATH      use Advanced Linux Sound Architecture files in PATH
1996   --with-bfd=PATH         use Debug symbol decoding files in PATH
1997   --with-execinfo=PATH    use Stack Backtrace files in PATH
1998   --with-bluetooth=PATH   use Bluetooth files in PATH
1999   --with-cap=PATH         use POSIX 1.e capabilities files in PATH
2000   --with-cpg=PATH         use Corosync files in PATH
2001   --with-curses=PATH      use curses files in PATH
2002   --with-crypt=PATH       use password and data encryption files in PATH
2003   --with-crypto=PATH      use OpenSSL Cryptography files in PATH
2004   --with-dahdi=PATH       use DAHDI files in PATH
2005   --with-avcodec=PATH     use Ffmpeg and avcodec files in PATH
2006   --with-gsm=PATH         use External GSM files in PATH, use 'internal' GSM
2007                           otherwise
2008   --with-ilbc=PATH        use System iLBC files in PATH, use 'internal' iLBC
2009                           otherwise
2010   --with-gtk2=PATH        use gtk2 files in PATH
2011   --with-gmime=PATH       use GMime files in PATH
2012   --with-h323=PATH        use OpenH323 files in PATH
2013   --with-hoard=PATH       use Hoard Memory Allocator files in PATH
2014   --with-ical=PATH        use iCal files in PATH
2015   --with-iconv=PATH       use Iconv files in PATH
2016   --with-iksemel=PATH     use Iksemel Jabber files in PATH
2017   --with-imap=PATH        use UW IMAP Toolkit files in PATH
2018   --with-inotify=PATH     use inotify support files in PATH
2019   --with-iodbc=PATH       use iODBC files in PATH
2020   --with-isdnnet=PATH     use ISDN4Linux files in PATH
2021   --with-jack=PATH        use Jack Audio Connection Kit files in PATH
2022   --with-jansson=PATH     use Jansson JSON library files in PATH
2023   --with-uriparser=PATH   use uriparser library files in PATH
2024   --with-kqueue=PATH      use kqueue support files in PATH
2025   --with-ldap=PATH        use OpenLDAP files in PATH
2026   --with-libcurl=DIR      look for the curl library in DIR
2027   --with-libedit=PATH     use NetBSD Editline library files in PATH, use
2028                           'internal' Editline otherwise
2029   --with-libxml2=PATH     use LibXML2 files in PATH
2030   --with-libxslt=PATH     use LibXSLT files in PATH
2031   --with-ltdl=PATH        use libtool files in PATH
2032   --with-lua=PATH         use Lua files in PATH
2033   --with-misdn=PATH       use mISDN user files in PATH
2034   --with-mysqlclient=PATH use MySQL client files in PATH
2035   --with-nbs=PATH         use Network Broadcast Sound files in PATH
2036   --with-ncurses=PATH     use ncurses files in PATH
2037   --with-neon=PATH        use neon files in PATH
2038   --with-neon29=PATH      use neon29 files in PATH
2039   --with-netsnmp=PATH     use Net-SNMP files in PATH
2040   --with-newt=PATH        use newt files in PATH
2041   --with-ogg=PATH         use OGG files in PATH
2042   --with-openr2=PATH      use MFR2 files in PATH
2043   --with-osptk=PATH       use OSP Toolkit files in PATH
2044   --with-oss=PATH         use Open Sound System files in PATH
2045   --with-postgres=PATH    use PostgreSQL files in PATH
2046   --with-pjproject=PATH   use PJPROJECT files in PATH
2047   --with-popt=PATH        use popt files in PATH
2048   --with-portaudio=PATH   use PortAudio files in PATH
2049   --with-pri=PATH         use ISDN PRI files in PATH
2050   --with-pwlib=PATH       use PWlib files in PATH
2051   --with-radius=PATH      use Radius Client files in PATH
2052   --with-resample=PATH    use LIBRESAMPLE files in PATH
2053   --with-sdl=PATH         use Sdl files in PATH
2054   --with-SDL_image=PATH   use Sdl Image files in PATH
2055   --with-sounds-cache=PATH
2056                           use cached sound tarfiles in PATH
2057   --with-spandsp=PATH     use SPANDSP files in PATH
2058   --with-ss7=PATH         use ISDN SS7 files in PATH
2059   --with-speex=PATH       use Speex files in PATH
2060   --with-speex=PATH       use Speex preprocess routines files in PATH
2061   --with-speexdsp=PATH    use SpeexDSP files in PATH
2062   --with-sqlite=PATH      use SQLite files in PATH
2063   --with-sqlite3=PATH     use SQLite files in PATH
2064   --with-srtp=PATH        use Secure RTP files in PATH
2065   --with-ssl=PATH         use OpenSSL Secure Sockets Layer files in PATH
2066   --with-suppserv=PATH    use mISDN Supplemental Services files in PATH
2067   --with-tds=PATH         use FreeTDS files in PATH
2068   --with-termcap=PATH     use Termcap files in PATH
2069   --with-timerfd=PATH     use timerfd files in PATH
2070   --with-tinfo=PATH       use Term Info files in PATH
2071   --with-tonezone=PATH    use tonezone files in PATH
2072   --with-unixodbc=PATH    use unixODBC files in PATH
2073   --with-vorbis=PATH      use Vorbis files in PATH
2074   --with-vpb=PATH         use Voicetronix API files in PATH
2075   --with-x11=PATH         use X11 files in PATH
2076   --with-z=PATH           use zlib compression files in PATH
2077
2078 Some influential environment variables:
2079   CC          C compiler command
2080   CFLAGS      C compiler flags
2081   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2082               nonstandard directory <lib dir>
2083   LIBS        libraries to pass to the linker, e.g. -l<library>
2084   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2085               you have headers in a nonstandard directory <include dir>
2086   CPP         C preprocessor
2087   CXX         C++ compiler command
2088   CXXFLAGS    C++ compiler flags
2089   CXXCPP      C++ preprocessor
2090   PKG_CONFIG  path to pkg-config utility
2091   PKG_CONFIG_PATH
2092               directories to add to pkg-config's search path
2093   PKG_CONFIG_LIBDIR
2094               path overriding pkg-config's built-in search path
2095   ILBC_CFLAGS C compiler flags for ILBC, overriding pkg-config
2096   ILBC_LIBS   linker flags for ILBC, overriding pkg-config
2097   LIBEDIT_CFLAGS
2098               C compiler flags for LIBEDIT, overriding pkg-config
2099   LIBEDIT_LIBS
2100               linker flags for LIBEDIT, overriding pkg-config
2101   PJPROJECT_CFLAGS
2102               C compiler flags for PJPROJECT, overriding pkg-config
2103   PJPROJECT_LIBS
2104               linker flags for PJPROJECT, overriding pkg-config
2105   GMIME_CFLAGS
2106               C compiler flags for GMIME, overriding pkg-config
2107   GMIME_LIBS  linker flags for GMIME, overriding pkg-config
2108   GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
2109   GTK2_LIBS   linker flags for GTK2, overriding pkg-config
2110
2111 Use these variables to override the choices made by `configure' or to help
2112 it to find libraries and programs with nonstandard names/locations.
2113
2114 Report bugs to <https://issues.asterisk.org>.
2115 _ACEOF
2116 ac_status=$?
2117 fi
2118
2119 if test "$ac_init_help" = "recursive"; then
2120   # If there are subdirs, report their specific --help.
2121   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2122     test -d "$ac_dir" ||
2123       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2124       continue
2125     ac_builddir=.
2126
2127 case "$ac_dir" in
2128 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2129 *)
2130   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2131   # A ".." for each directory in $ac_dir_suffix.
2132   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2133   case $ac_top_builddir_sub in
2134   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2135   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2136   esac ;;
2137 esac
2138 ac_abs_top_builddir=$ac_pwd
2139 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2140 # for backward compatibility:
2141 ac_top_builddir=$ac_top_build_prefix
2142
2143 case $srcdir in
2144   .)  # We are building in place.
2145     ac_srcdir=.
2146     ac_top_srcdir=$ac_top_builddir_sub
2147     ac_abs_top_srcdir=$ac_pwd ;;
2148   [\\/]* | ?:[\\/]* )  # Absolute name.
2149     ac_srcdir=$srcdir$ac_dir_suffix;
2150     ac_top_srcdir=$srcdir
2151     ac_abs_top_srcdir=$srcdir ;;
2152   *) # Relative name.
2153     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2154     ac_top_srcdir=$ac_top_build_prefix$srcdir
2155     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2156 esac
2157 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2158
2159     cd "$ac_dir" || { ac_status=$?; continue; }
2160     # Check for guested configure.
2161     if test -f "$ac_srcdir/configure.gnu"; then
2162       echo &&
2163       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2164     elif test -f "$ac_srcdir/configure"; then
2165       echo &&
2166       $SHELL "$ac_srcdir/configure" --help=recursive
2167     else
2168       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2169     fi || ac_status=$?
2170     cd "$ac_pwd" || { ac_status=$?; break; }
2171   done
2172 fi
2173
2174 test -n "$ac_init_help" && exit $ac_status
2175 if $ac_init_version; then
2176   cat <<\_ACEOF
2177 asterisk configure trunk
2178 generated by GNU Autoconf 2.69
2179
2180 Copyright (C) 2012 Free Software Foundation, Inc.
2181 This configure script is free software; the Free Software Foundation
2182 gives unlimited permission to copy, distribute and modify it.
2183
2184 "Asterisk"
2185 _ACEOF
2186   exit
2187 fi
2188
2189 ## ------------------------ ##
2190 ## Autoconf initialization. ##
2191 ## ------------------------ ##
2192
2193 # ac_fn_c_try_compile LINENO
2194 # --------------------------
2195 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2196 ac_fn_c_try_compile ()
2197 {
2198   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199   rm -f conftest.$ac_objext
2200   if { { ac_try="$ac_compile"
2201 case "(($ac_try" in
2202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203   *) ac_try_echo=$ac_try;;
2204 esac
2205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206 $as_echo "$ac_try_echo"; } >&5
2207   (eval "$ac_compile") 2>conftest.err
2208   ac_status=$?
2209   if test -s conftest.err; then
2210     grep -v '^ *+' conftest.err >conftest.er1
2211     cat conftest.er1 >&5
2212     mv -f conftest.er1 conftest.err
2213   fi
2214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215   test $ac_status = 0; } && {
2216          test -z "$ac_c_werror_flag" ||
2217          test ! -s conftest.err
2218        } && test -s conftest.$ac_objext; then :
2219   ac_retval=0
2220 else
2221   $as_echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2223
2224         ac_retval=1
2225 fi
2226   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2227   as_fn_set_status $ac_retval
2228
2229 } # ac_fn_c_try_compile
2230
2231 # ac_fn_c_try_cpp LINENO
2232 # ----------------------
2233 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2234 ac_fn_c_try_cpp ()
2235 {
2236   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237   if { { ac_try="$ac_cpp conftest.$ac_ext"
2238 case "(($ac_try" in
2239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2240   *) ac_try_echo=$ac_try;;
2241 esac
2242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2243 $as_echo "$ac_try_echo"; } >&5
2244   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2245   ac_status=$?
2246   if test -s conftest.err; then
2247     grep -v '^ *+' conftest.err >conftest.er1
2248     cat conftest.er1 >&5
2249     mv -f conftest.er1 conftest.err
2250   fi
2251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2252   test $ac_status = 0; } > conftest.i && {
2253          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2254          test ! -s conftest.err
2255        }; then :
2256   ac_retval=0
2257 else
2258   $as_echo "$as_me: failed program was:" >&5
2259 sed 's/^/| /' conftest.$ac_ext >&5
2260
2261     ac_retval=1
2262 fi
2263   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2264   as_fn_set_status $ac_retval
2265
2266 } # ac_fn_c_try_cpp
2267
2268 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2269 # -------------------------------------------------------
2270 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2271 # the include files in INCLUDES and setting the cache variable VAR
2272 # accordingly.
2273 ac_fn_c_check_header_mongrel ()
2274 {
2275   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276   if eval \${$3+:} false; then :
2277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2278 $as_echo_n "checking for $2... " >&6; }
2279 if eval \${$3+:} false; then :
2280   $as_echo_n "(cached) " >&6
2281 fi
2282 eval ac_res=\$$3
2283                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284 $as_echo "$ac_res" >&6; }
2285 else
2286   # Is the header compilable?
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2288 $as_echo_n "checking $2 usability... " >&6; }
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h.  */
2291 $4
2292 #include <$2>
2293 _ACEOF
2294 if ac_fn_c_try_compile "$LINENO"; then :
2295   ac_header_compiler=yes
2296 else
2297   ac_header_compiler=no
2298 fi
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2301 $as_echo "$ac_header_compiler" >&6; }
2302
2303 # Is the header present?
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2305 $as_echo_n "checking $2 presence... " >&6; }
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h.  */
2308 #include <$2>
2309 _ACEOF
2310 if ac_fn_c_try_cpp "$LINENO"; then :
2311   ac_header_preproc=yes
2312 else
2313   ac_header_preproc=no
2314 fi
2315 rm -f conftest.err conftest.i conftest.$ac_ext
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2317 $as_echo "$ac_header_preproc" >&6; }
2318
2319 # So?  What about this header?
2320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2321   yes:no: )
2322     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2323 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2324     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2325 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2326     ;;
2327   no:yes:* )
2328     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2329 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2330     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2331 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2332     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2333 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2334     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2335 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2336     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2337 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2338 ( $as_echo "## ------------------------------------------ ##
2339 ## Report this to https://issues.asterisk.org ##
2340 ## ------------------------------------------ ##"
2341      ) | sed "s/^/$as_me: WARNING:     /" >&2
2342     ;;
2343 esac
2344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2345 $as_echo_n "checking for $2... " >&6; }
2346 if eval \${$3+:} false; then :
2347   $as_echo_n "(cached) " >&6
2348 else
2349   eval "$3=\$ac_header_compiler"
2350 fi
2351 eval ac_res=\$$3
2352                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 $as_echo "$ac_res" >&6; }
2354 fi
2355   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2356
2357 } # ac_fn_c_check_header_mongrel
2358
2359 # ac_fn_c_try_run LINENO
2360 # ----------------------
2361 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2362 # that executables *can* be run.
2363 ac_fn_c_try_run ()
2364 {
2365   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2366   if { { ac_try="$ac_link"
2367 case "(($ac_try" in
2368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369   *) ac_try_echo=$ac_try;;
2370 esac
2371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2372 $as_echo "$ac_try_echo"; } >&5
2373   (eval "$ac_link") 2>&5
2374   ac_status=$?
2375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2376   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2377   { { case "(($ac_try" in
2378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379   *) ac_try_echo=$ac_try;;
2380 esac
2381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2382 $as_echo "$ac_try_echo"; } >&5
2383   (eval "$ac_try") 2>&5
2384   ac_status=$?
2385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2386   test $ac_status = 0; }; }; then :
2387   ac_retval=0
2388 else
2389   $as_echo "$as_me: program exited with status $ac_status" >&5
2390        $as_echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2392
2393        ac_retval=$ac_status
2394 fi
2395   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2396   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2397   as_fn_set_status $ac_retval
2398
2399 } # ac_fn_c_try_run
2400
2401 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2402 # -------------------------------------------------------
2403 # Tests whether HEADER exists and can be compiled using the include files in
2404 # INCLUDES, setting the cache variable VAR accordingly.
2405 ac_fn_c_check_header_compile ()
2406 {
2407   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2409 $as_echo_n "checking for $2... " >&6; }
2410 if eval \${$3+:} false; then :
2411   $as_echo_n "(cached) " >&6
2412 else
2413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h.  */
2415 $4
2416 #include <$2>
2417 _ACEOF
2418 if ac_fn_c_try_compile "$LINENO"; then :
2419   eval "$3=yes"
2420 else
2421   eval "$3=no"
2422 fi
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 fi
2425 eval ac_res=\$$3
2426                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2427 $as_echo "$ac_res" >&6; }
2428   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2429
2430 } # ac_fn_c_check_header_compile
2431
2432 # ac_fn_cxx_try_compile LINENO
2433 # ----------------------------
2434 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2435 ac_fn_cxx_try_compile ()
2436 {
2437   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438   rm -f conftest.$ac_objext
2439   if { { ac_try="$ac_compile"
2440 case "(($ac_try" in
2441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442   *) ac_try_echo=$ac_try;;
2443 esac
2444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2445 $as_echo "$ac_try_echo"; } >&5
2446   (eval "$ac_compile") 2>conftest.err
2447   ac_status=$?
2448   if test -s conftest.err; then
2449     grep -v '^ *+' conftest.err >conftest.er1
2450     cat conftest.er1 >&5
2451     mv -f conftest.er1 conftest.err
2452   fi
2453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2454   test $ac_status = 0; } && {
2455          test -z "$ac_cxx_werror_flag" ||
2456          test ! -s conftest.err
2457        } && test -s conftest.$ac_objext; then :
2458   ac_retval=0
2459 else
2460   $as_echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2462
2463         ac_retval=1
2464 fi
2465   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2466   as_fn_set_status $ac_retval
2467
2468 } # ac_fn_cxx_try_compile
2469
2470 # ac_fn_cxx_try_cpp LINENO
2471 # ------------------------
2472 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2473 ac_fn_cxx_try_cpp ()
2474 {
2475   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2476   if { { ac_try="$ac_cpp conftest.$ac_ext"
2477 case "(($ac_try" in
2478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479   *) ac_try_echo=$ac_try;;
2480 esac
2481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2482 $as_echo "$ac_try_echo"; } >&5
2483   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2484   ac_status=$?
2485   if test -s conftest.err; then
2486     grep -v '^ *+' conftest.err >conftest.er1
2487     cat conftest.er1 >&5
2488     mv -f conftest.er1 conftest.err
2489   fi
2490   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2491   test $ac_status = 0; } > conftest.i && {
2492          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2493          test ! -s conftest.err
2494        }; then :
2495   ac_retval=0
2496 else
2497   $as_echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2499
2500     ac_retval=1
2501 fi
2502   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2503   as_fn_set_status $ac_retval
2504
2505 } # ac_fn_cxx_try_cpp
2506
2507 # ac_fn_c_try_link LINENO
2508 # -----------------------
2509 # Try to link conftest.$ac_ext, and return whether this succeeded.
2510 ac_fn_c_try_link ()
2511 {
2512   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2513   rm -f conftest.$ac_objext conftest$ac_exeext
2514   if { { ac_try="$ac_link"
2515 case "(($ac_try" in
2516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517   *) ac_try_echo=$ac_try;;
2518 esac
2519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2520 $as_echo "$ac_try_echo"; } >&5
2521   (eval "$ac_link") 2>conftest.err
2522   ac_status=$?
2523   if test -s conftest.err; then
2524     grep -v '^ *+' conftest.err >conftest.er1
2525     cat conftest.er1 >&5
2526     mv -f conftest.er1 conftest.err
2527   fi
2528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2529   test $ac_status = 0; } && {
2530          test -z "$ac_c_werror_flag" ||
2531          test ! -s conftest.err
2532        } && test -s conftest$ac_exeext && {
2533          test "$cross_compiling" = yes ||
2534          test -x conftest$ac_exeext
2535        }; then :
2536   ac_retval=0
2537 else
2538   $as_echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541         ac_retval=1
2542 fi
2543   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2544   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2545   # interfere with the next link command; also delete a directory that is
2546   # left behind by Apple's compiler.  We do this before executing the actions.
2547   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2548   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2549   as_fn_set_status $ac_retval
2550
2551 } # ac_fn_c_try_link
2552
2553 # ac_fn_c_check_func LINENO FUNC VAR
2554 # ----------------------------------
2555 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2556 ac_fn_c_check_func ()
2557 {
2558   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2560 $as_echo_n "checking for $2... " >&6; }
2561 if eval \${$3+:} false; then :
2562   $as_echo_n "(cached) " >&6
2563 else
2564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565 /* end confdefs.h.  */
2566 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2568 #define $2 innocuous_$2
2569
2570 /* System header to define __stub macros and hopefully few prototypes,
2571     which can conflict with char $2 (); below.
2572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2573     <limits.h> exists even on freestanding compilers.  */
2574
2575 #ifdef __STDC__
2576 # include <limits.h>
2577 #else
2578 # include <assert.h>
2579 #endif
2580
2581 #undef $2
2582
2583 /* Override any GCC internal prototype to avoid an error.
2584    Use char because int might match the return type of a GCC
2585    builtin and then its argument prototype would still apply.  */
2586 #ifdef __cplusplus
2587 extern "C"
2588 #endif
2589 char $2 ();
2590 /* The GNU C library defines this for functions which it implements
2591     to always fail with ENOSYS.  Some functions are actually named
2592     something starting with __ and the normal name is an alias.  */
2593 #if defined __stub_$2 || defined __stub___$2
2594 choke me
2595 #endif
2596
2597 int
2598 main ()
2599 {
2600 return $2 ();
2601   ;
2602   return 0;
2603 }
2604 _ACEOF
2605 if ac_fn_c_try_link "$LINENO"; then :
2606   eval "$3=yes"
2607 else
2608   eval "$3=no"
2609 fi
2610 rm -f core conftest.err conftest.$ac_objext \
2611     conftest$ac_exeext conftest.$ac_ext
2612 fi
2613 eval ac_res=\$$3
2614                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2615 $as_echo "$ac_res" >&6; }
2616   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2617
2618 } # ac_fn_c_check_func
2619
2620 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2621 # -------------------------------------------
2622 # Tests whether TYPE exists after having included INCLUDES, setting cache
2623 # variable VAR accordingly.
2624 ac_fn_c_check_type ()
2625 {
2626   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2628 $as_echo_n "checking for $2... " >&6; }
2629 if eval \${$3+:} false; then :
2630   $as_echo_n "(cached) " >&6
2631 else
2632   eval "$3=no"
2633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h.  */
2635 $4
2636 int
2637 main ()
2638 {
2639 if (sizeof ($2))
2640          return 0;
2641   ;
2642   return 0;
2643 }
2644 _ACEOF
2645 if ac_fn_c_try_compile "$LINENO"; then :
2646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2647 /* end confdefs.h.  */
2648 $4
2649 int
2650 main ()
2651 {
2652 if (sizeof (($2)))
2653             return 0;
2654   ;
2655   return 0;
2656 }
2657 _ACEOF
2658 if ac_fn_c_try_compile "$LINENO"; then :
2659
2660 else
2661   eval "$3=yes"
2662 fi
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664 fi
2665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666 fi
2667 eval ac_res=\$$3
2668                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2669 $as_echo "$ac_res" >&6; }
2670   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2671
2672 } # ac_fn_c_check_type
2673
2674 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2675 # ----------------------------------------------------
2676 # Tries to find if the field MEMBER exists in type AGGR, after including
2677 # INCLUDES, setting cache variable VAR accordingly.
2678 ac_fn_c_check_member ()
2679 {
2680   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2682 $as_echo_n "checking for $2.$3... " >&6; }
2683 if eval \${$4+:} false; then :
2684   $as_echo_n "(cached) " >&6
2685 else
2686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2687 /* end confdefs.h.  */
2688 $5
2689 int
2690 main ()
2691 {
2692 static $2 ac_aggr;
2693 if (ac_aggr.$3)
2694 return 0;
2695   ;
2696   return 0;
2697 }
2698 _ACEOF
2699 if ac_fn_c_try_compile "$LINENO"; then :
2700   eval "$4=yes"
2701 else
2702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2703 /* end confdefs.h.  */
2704 $5
2705 int
2706 main ()
2707 {
2708 static $2 ac_aggr;
2709 if (sizeof ac_aggr.$3)
2710 return 0;
2711   ;
2712   return 0;
2713 }
2714 _ACEOF
2715 if ac_fn_c_try_compile "$LINENO"; then :
2716   eval "$4=yes"
2717 else
2718   eval "$4=no"
2719 fi
2720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 fi
2722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2723 fi
2724 eval ac_res=\$$4
2725                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2726 $as_echo "$ac_res" >&6; }
2727   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2728
2729 } # ac_fn_c_check_member
2730
2731 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2732 # --------------------------------------------
2733 # Tries to find the compile-time value of EXPR in a program that includes
2734 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2735 # computed
2736 ac_fn_c_compute_int ()
2737 {
2738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2739   if test "$cross_compiling" = yes; then
2740     # Depending upon the size, compute the lo and hi bounds.
2741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2742 /* end confdefs.h.  */
2743 $4
2744 int
2745 main ()
2746 {
2747 static int test_array [1 - 2 * !(($2) >= 0)];
2748 test_array [0] = 0;
2749 return test_array [0];
2750
2751   ;
2752   return 0;
2753 }
2754 _ACEOF
2755 if ac_fn_c_try_compile "$LINENO"; then :
2756   ac_lo=0 ac_mid=0
2757   while :; do
2758     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2759 /* end confdefs.h.  */
2760 $4
2761 int
2762 main ()
2763 {
2764 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2765 test_array [0] = 0;
2766 return test_array [0];
2767
2768   ;
2769   return 0;
2770 }
2771 _ACEOF
2772 if ac_fn_c_try_compile "$LINENO"; then :
2773   ac_hi=$ac_mid; break
2774 else
2775   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2776                         if test $ac_lo -le $ac_mid; then
2777                           ac_lo= ac_hi=
2778                           break
2779                         fi
2780                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2781 fi
2782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2783   done
2784 else
2785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2786 /* end confdefs.h.  */
2787 $4
2788 int
2789 main ()
2790 {
2791 static int test_array [1 - 2 * !(($2) < 0)];
2792 test_array [0] = 0;
2793 return test_array [0];
2794
2795   ;
2796   return 0;
2797 }
2798 _ACEOF
2799 if ac_fn_c_try_compile "$LINENO"; then :
2800   ac_hi=-1 ac_mid=-1
2801   while :; do
2802     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803 /* end confdefs.h.  */
2804 $4
2805 int
2806 main ()
2807 {
2808 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2809 test_array [0] = 0;
2810 return test_array [0];
2811
2812   ;
2813   return 0;
2814 }
2815 _ACEOF
2816 if ac_fn_c_try_compile "$LINENO"; then :
2817   ac_lo=$ac_mid; break
2818 else
2819   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2820                         if test $ac_mid -le $ac_hi; then
2821                           ac_lo= ac_hi=
2822                           break
2823                         fi
2824                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2825 fi
2826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2827   done
2828 else
2829   ac_lo= ac_hi=
2830 fi
2831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2832 fi
2833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2834 # Binary search between lo and hi bounds.
2835 while test "x$ac_lo" != "x$ac_hi"; do
2836   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2838 /* end confdefs.h.  */
2839 $4
2840 int
2841 main ()
2842 {
2843 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2844 test_array [0] = 0;
2845 return test_array [0];
2846
2847   ;
2848   return 0;
2849 }
2850 _ACEOF
2851 if ac_fn_c_try_compile "$LINENO"; then :
2852   ac_hi=$ac_mid
2853 else
2854   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2855 fi
2856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2857 done
2858 case $ac_lo in #((
2859 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2860 '') ac_retval=1 ;;
2861 esac
2862   else
2863     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2864 /* end confdefs.h.  */
2865 $4
2866 static long int longval () { return $2; }
2867 static unsigned long int ulongval () { return $2; }
2868 #include <stdio.h>
2869 #include <stdlib.h>
2870 int
2871 main ()
2872 {
2873
2874   FILE *f = fopen ("conftest.val", "w");
2875   if (! f)
2876     return 1;
2877   if (($2) < 0)
2878     {
2879       long int i = longval ();
2880       if (i != ($2))
2881         return 1;
2882       fprintf (f, "%ld", i);
2883     }
2884   else
2885     {
2886       unsigned long int i = ulongval ();
2887       if (i != ($2))
2888         return 1;
2889       fprintf (f, "%lu", i);
2890     }
2891   /* Do not output a trailing newline, as this causes \r\n confusion
2892      on some platforms.  */
2893   return ferror (f) || fclose (f) != 0;
2894
2895   ;
2896   return 0;
2897 }
2898 _ACEOF
2899 if ac_fn_c_try_run "$LINENO"; then :
2900   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2901 else
2902   ac_retval=1
2903 fi
2904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2905   conftest.$ac_objext conftest.beam conftest.$ac_ext
2906 rm -f conftest.val
2907
2908   fi
2909   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2910   as_fn_set_status $ac_retval
2911
2912 } # ac_fn_c_compute_int
2913
2914 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2915 # ---------------------------------------------------------
2916 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2917 # the include files in INCLUDES and setting the cache variable VAR
2918 # accordingly.
2919 ac_fn_cxx_check_header_mongrel ()
2920 {
2921   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2922   if eval \${$3+:} false; then :
2923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2924 $as_echo_n "checking for $2... " >&6; }
2925 if eval \${$3+:} false; then :
2926   $as_echo_n "(cached) " >&6
2927 fi
2928 eval ac_res=\$$3
2929                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2930 $as_echo "$ac_res" >&6; }
2931 else
2932   # Is the header compilable?
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2934 $as_echo_n "checking $2 usability... " >&6; }
2935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2936 /* end confdefs.h.  */
2937 $4
2938 #include <$2>
2939 _ACEOF
2940 if ac_fn_cxx_try_compile "$LINENO"; then :
2941   ac_header_compiler=yes
2942 else
2943   ac_header_compiler=no
2944 fi
2945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2947 $as_echo "$ac_header_compiler" >&6; }
2948
2949 # Is the header present?
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2951 $as_echo_n "checking $2 presence... " >&6; }
2952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2953 /* end confdefs.h.  */
2954 #include <$2>
2955 _ACEOF
2956 if ac_fn_cxx_try_cpp "$LINENO"; then :
2957   ac_header_preproc=yes
2958 else
2959   ac_header_preproc=no
2960 fi
2961 rm -f conftest.err conftest.i conftest.$ac_ext
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2963 $as_echo "$ac_header_preproc" >&6; }
2964
2965 # So?  What about this header?
2966 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2967   yes:no: )
2968     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2969 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2970     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2971 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2972     ;;
2973   no:yes:* )
2974     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2975 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2976     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2977 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2978     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2979 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2980     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2981 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2982     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2983 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2984 ( $as_echo "## ------------------------------------------ ##
2985 ## Report this to https://issues.asterisk.org ##
2986 ## ------------------------------------------ ##"
2987      ) | sed "s/^/$as_me: WARNING:     /" >&2
2988     ;;
2989 esac
2990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2991 $as_echo_n "checking for $2... " >&6; }
2992 if eval \${$3+:} false; then :
2993   $as_echo_n "(cached) " >&6
2994 else
2995   eval "$3=\$ac_header_compiler"
2996 fi
2997 eval ac_res=\$$3
2998                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2999 $as_echo "$ac_res" >&6; }
3000 fi
3001   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3002
3003 } # ac_fn_cxx_check_header_mongrel
3004
3005 # ac_fn_cxx_try_link LINENO
3006 # -------------------------
3007 # Try to link conftest.$ac_ext, and return whether this succeeded.
3008 ac_fn_cxx_try_link ()
3009 {
3010   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3011   rm -f conftest.$ac_objext conftest$ac_exeext
3012   if { { ac_try="$ac_link"
3013 case "(($ac_try" in
3014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015   *) ac_try_echo=$ac_try;;
3016 esac
3017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3018 $as_echo "$ac_try_echo"; } >&5
3019   (eval "$ac_link") 2>conftest.err
3020   ac_status=$?
3021   if test -s conftest.err; then
3022     grep -v '^ *+' conftest.err >conftest.er1
3023     cat conftest.er1 >&5
3024     mv -f conftest.er1 conftest.err
3025   fi
3026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027   test $ac_status = 0; } && {
3028          test -z "$ac_cxx_werror_flag" ||
3029          test ! -s conftest.err
3030        } && test -s conftest$ac_exeext && {
3031          test "$cross_compiling" = yes ||
3032          test -x conftest$ac_exeext
3033        }; then :
3034   ac_retval=0
3035 else
3036   $as_echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3038
3039         ac_retval=1
3040 fi
3041   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3042   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3043   # interfere with the next link command; also delete a directory that is
3044   # left behind by Apple's compiler.  We do this before executing the actions.
3045   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3046   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3047   as_fn_set_status $ac_retval
3048
3049 } # ac_fn_cxx_try_link
3050
3051 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
3052 # ---------------------------------------------------------
3053 # Tests whether HEADER exists and can be compiled using the include files in
3054 # INCLUDES, setting the cache variable VAR accordingly.
3055 ac_fn_cxx_check_header_compile ()
3056 {
3057   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3059 $as_echo_n "checking for $2... " >&6; }
3060 if eval \${$3+:} false; then :
3061   $as_echo_n "(cached) " >&6
3062 else
3063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064 /* end confdefs.h.  */
3065 $4
3066 #include <$2>
3067 _ACEOF
3068 if ac_fn_cxx_try_compile "$LINENO"; then :
3069   eval "$3=yes"
3070 else
3071   eval "$3=no"
3072 fi
3073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3074 fi
3075 eval ac_res=\$$3
3076                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3077 $as_echo "$ac_res" >&6; }
3078   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3079
3080 } # ac_fn_cxx_check_header_compile
3081 cat >config.log <<_ACEOF
3082 This file contains any messages produced by compilers while
3083 running configure, to aid debugging if configure makes a mistake.
3084
3085 It was created by asterisk $as_me trunk, which was
3086 generated by GNU Autoconf 2.69.  Invocation command line was
3087
3088   $ $0 $@
3089
3090 _ACEOF
3091 exec 5>>config.log
3092 {
3093 cat <<_ASUNAME
3094 ## --------- ##
3095 ## Platform. ##
3096 ## --------- ##
3097
3098 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3099 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3100 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3101 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3102 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3103
3104 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3105 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3106
3107 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3108 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3109 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3110 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3111 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3112 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3113 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3114
3115 _ASUNAME
3116
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH
3119 do
3120   IFS=$as_save_IFS
3121   test -z "$as_dir" && as_dir=.
3122     $as_echo "PATH: $as_dir"
3123   done
3124 IFS=$as_save_IFS
3125
3126 } >&5
3127
3128 cat >&5 <<_ACEOF
3129
3130
3131 ## ----------- ##
3132 ## Core tests. ##
3133 ## ----------- ##
3134
3135 _ACEOF
3136
3137
3138 # Keep a trace of the command line.
3139 # Strip out --no-create and --no-recursion so they do not pile up.
3140 # Strip out --silent because we don't want to record it for future runs.
3141 # Also quote any args containing shell meta-characters.
3142 # Make two passes to allow for proper duplicate-argument suppression.
3143 ac_configure_args=
3144 ac_configure_args0=
3145 ac_configure_args1=
3146 ac_must_keep_next=false
3147 for ac_pass in 1 2
3148 do
3149   for ac_arg
3150   do
3151     case $ac_arg in
3152     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3153     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3154     | -silent | --silent | --silen | --sile | --sil)
3155       continue ;;
3156     *\'*)
3157       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3158     esac
3159     case $ac_pass in
3160     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3161     2)
3162       as_fn_append ac_configure_args1 " '$ac_arg'"
3163       if test $ac_must_keep_next = true; then
3164         ac_must_keep_next=false # Got value, back to normal.
3165       else
3166         case $ac_arg in
3167           *=* | --config-cache | -C | -disable-* | --disable-* \
3168           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3169           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3170           | -with-* | --with-* | -without-* | --without-* | --x)
3171             case "$ac_configure_args0 " in
3172               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3173             esac
3174             ;;
3175           -* ) ac_must_keep_next=true ;;
3176         esac
3177       fi
3178       as_fn_append ac_configure_args " '$ac_arg'"
3179       ;;
3180     esac
3181   done
3182 done
3183 { ac_configure_args0=; unset ac_configure_args0;}
3184 { ac_configure_args1=; unset ac_configure_args1;}
3185
3186 # When interrupted or exit'd, cleanup temporary files, and complete
3187 # config.log.  We remove comments because anyway the quotes in there
3188 # would cause problems or look ugly.
3189 # WARNING: Use '\'' to represent an apostrophe within the trap.
3190 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3191 trap 'exit_status=$?
3192   # Save into config.log some information that might help in debugging.
3193   {
3194     echo
3195
3196     $as_echo "## ---------------- ##
3197 ## Cache variables. ##
3198 ## ---------------- ##"
3199     echo
3200     # The following way of writing the cache mishandles newlines in values,
3201 (
3202   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3203     eval ac_val=\$$ac_var
3204     case $ac_val in #(
3205     *${as_nl}*)
3206       case $ac_var in #(
3207       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3208 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3209       esac
3210       case $ac_var in #(
3211       _ | IFS | as_nl) ;; #(
3212       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3213       *) { eval $ac_var=; unset $ac_var;} ;;
3214       esac ;;
3215     esac
3216   done
3217   (set) 2>&1 |
3218     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3219     *${as_nl}ac_space=\ *)
3220       sed -n \
3221         "s/'\''/'\''\\\\'\'''\''/g;
3222           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3223       ;; #(
3224     *)
3225       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3226       ;;
3227     esac |
3228     sort
3229 )
3230     echo
3231
3232     $as_echo "## ----------------- ##
3233 ## Output variables. ##
3234 ## ----------------- ##"
3235     echo
3236     for ac_var in $ac_subst_vars
3237     do
3238       eval ac_val=\$$ac_var
3239       case $ac_val in
3240       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3241       esac
3242       $as_echo "$ac_var='\''$ac_val'\''"
3243     done | sort
3244     echo
3245
3246     if test -n "$ac_subst_files"; then
3247       $as_echo "## ------------------- ##
3248 ## File substitutions. ##
3249 ## ------------------- ##"
3250       echo
3251       for ac_var in $ac_subst_files
3252       do
3253         eval ac_val=\$$ac_var
3254         case $ac_val in
3255         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3256         esac
3257         $as_echo "$ac_var='\''$ac_val'\''"
3258       done | sort
3259       echo
3260     fi
3261
3262     if test -s confdefs.h; then
3263       $as_echo "## ----------- ##
3264 ## confdefs.h. ##
3265 ## ----------- ##"
3266       echo
3267       cat confdefs.h
3268       echo
3269     fi
3270     test "$ac_signal" != 0 &&
3271       $as_echo "$as_me: caught signal $ac_signal"
3272     $as_echo "$as_me: exit $exit_status"
3273   } >&5
3274   rm -f core *.core core.conftest.* &&
3275     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3276     exit $exit_status
3277 ' 0
3278 for ac_signal in 1 2 13 15; do
3279   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3280 done
3281 ac_signal=0
3282
3283 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3284 rm -f -r conftest* confdefs.h
3285
3286 $as_echo "/* confdefs.h */" > confdefs.h
3287
3288 # Predefined preprocessor variables.
3289
3290 cat >>confdefs.h <<_ACEOF
3291 #define PACKAGE_NAME "$PACKAGE_NAME"
3292 _ACEOF
3293
3294 cat >>confdefs.h <<_ACEOF
3295 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3296 _ACEOF
3297
3298 cat >>confdefs.h <<_ACEOF
3299 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3300 _ACEOF
3301
3302 cat >>confdefs.h <<_ACEOF
3303 #define PACKAGE_STRING "$PACKAGE_STRING"
3304 _ACEOF
3305
3306 cat >>confdefs.h <<_ACEOF
3307 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3308 _ACEOF
3309
3310 cat >>confdefs.h <<_ACEOF
3311 #define PACKAGE_URL "$PACKAGE_URL"
3312 _ACEOF
3313
3314
3315 # Let the site file select an alternate cache file if it wants to.
3316 # Prefer an explicitly selected file to automatically selected ones.
3317 ac_site_file1=NONE
3318 ac_site_file2=NONE
3319 if test -n "$CONFIG_SITE"; then
3320   # We do not want a PATH search for config.site.
3321   case $CONFIG_SITE in #((
3322     -*)  ac_site_file1=./$CONFIG_SITE;;
3323     */*) ac_site_file1=$CONFIG_SITE;;
3324     *)   ac_site_file1=./$CONFIG_SITE;;
3325   esac
3326 elif test "x$prefix" != xNONE; then
3327   ac_site_file1=$prefix/share/config.site
3328   ac_site_file2=$prefix/etc/config.site
3329 else
3330   ac_site_file1=$ac_default_prefix/share/config.site
3331   ac_site_file2=$ac_default_prefix/etc/config.site
3332 fi
3333 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3334 do
3335   test "x$ac_site_file" = xNONE && continue
3336   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3337     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3338 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3339     sed 's/^/| /' "$ac_site_file" >&5
3340     . "$ac_site_file" \
3341       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343 as_fn_error $? "failed to load site script $ac_site_file
3344 See \`config.log' for more details" "$LINENO" 5; }
3345   fi
3346 done
3347
3348 if test -r "$cache_file"; then
3349   # Some versions of bash will fail to source /dev/null (special files
3350   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3351   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3352     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3353 $as_echo "$as_me: loading cache $cache_file" >&6;}
3354     case $cache_file in
3355       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3356       *)                      . "./$cache_file";;
3357     esac
3358   fi
3359 else
3360   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3361 $as_echo "$as_me: creating cache $cache_file" >&6;}
3362   >$cache_file
3363 fi
3364
3365 as_fn_append ac_header_list " stdlib.h"
3366 as_fn_append ac_header_list " unistd.h"
3367 as_fn_append ac_header_list " sys/param.h"
3368 as_fn_append ac_header_list " utime.h"
3369 # Check that the precious variables saved in the cache have kept the same
3370 # value.
3371 ac_cache_corrupted=false
3372 for ac_var in $ac_precious_vars; do
3373   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3374   eval ac_new_set=\$ac_env_${ac_var}_set
3375   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3376   eval ac_new_val=\$ac_env_${ac_var}_value
3377   case $ac_old_set,$ac_new_set in
3378     set,)
3379       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3380 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3381       ac_cache_corrupted=: ;;
3382     ,set)
3383       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3384 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3385       ac_cache_corrupted=: ;;
3386     ,);;
3387     *)
3388       if test "x$ac_old_val" != "x$ac_new_val"; then
3389         # differences in whitespace do not lead to failure.
3390         ac_old_val_w=`echo x $ac_old_val`
3391         ac_new_val_w=`echo x $ac_new_val`
3392         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3393           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3394 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3395           ac_cache_corrupted=:
3396         else
3397           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3398 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3399           eval $ac_var=\$ac_old_val
3400         fi
3401         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3402 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3403         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3404 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3405       fi;;
3406   esac
3407   # Pass precious variables to config.status.
3408   if test "$ac_new_set" = set; then
3409     case $ac_new_val in
3410     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3411     *) ac_arg=$ac_var=$ac_new_val ;;
3412     esac
3413     case " $ac_configure_args " in
3414       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3415       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3416     esac
3417   fi
3418 done
3419 if $ac_cache_corrupted; then
3420   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3423 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3424   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3425 fi
3426 ## -------------------- ##
3427 ## Main body of script. ##
3428 ## -------------------- ##
3429
3430 ac_ext=c
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435
3436
3437
3438 # cross-compile macros
3439 ac_aux_dir=
3440 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3441   if test -f "$ac_dir/install-sh"; then
3442     ac_aux_dir=$ac_dir
3443     ac_install_sh="$ac_aux_dir/install-sh -c"
3444     break
3445   elif test -f "$ac_dir/install.sh"; then
3446     ac_aux_dir=$ac_dir
3447     ac_install_sh="$ac_aux_dir/install.sh -c"
3448     break
3449   elif test -f "$ac_dir/shtool"; then
3450     ac_aux_dir=$ac_dir
3451     ac_install_sh="$ac_aux_dir/shtool install -c"
3452     break
3453   fi
3454 done
3455 if test -z "$ac_aux_dir"; then
3456   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3457 fi
3458
3459 # These three variables are undocumented and unsupported,
3460 # and are intended to be withdrawn in a future Autoconf release.
3461 # They can cause serious problems if a builder's source tree is in a directory
3462 # whose full name contains unusual characters.
3463 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3464 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3465 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3466
3467
3468 # Make sure we can run config.sub.
3469 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3470   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3471
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3473 $as_echo_n "checking build system type... " >&6; }
3474 if ${ac_cv_build+:} false; then :
3475   $as_echo_n "(cached) " >&6
3476 else
3477   ac_build_alias=$build_alias
3478 test "x$ac_build_alias" = x &&
3479   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3480 test "x$ac_build_alias" = x &&
3481   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3482 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3483   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3484
3485 fi
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3487 $as_echo "$ac_cv_build" >&6; }
3488 case $ac_cv_build in
3489 *-*-*) ;;
3490 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3491 esac
3492 build=$ac_cv_build
3493 ac_save_IFS=$IFS; IFS='-'
3494 set x $ac_cv_build
3495 shift
3496 build_cpu=$1
3497 build_vendor=$2
3498 shift; shift
3499 # Remember, the first character of IFS is used to create $*,
3500 # except with old shells:
3501 build_os=$*
3502 IFS=$ac_save_IFS
3503 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3504
3505
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3507 $as_echo_n "checking host system type... " >&6; }
3508 if ${ac_cv_host+:} false; then :
3509   $as_echo_n "(cached) " >&6
3510 else
3511   if test "x$host_alias" = x; then
3512   ac_cv_host=$ac_cv_build
3513 else
3514   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3515     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3516 fi
3517
3518 fi
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3520 $as_echo "$ac_cv_host" >&6; }
3521 case $ac_cv_host in
3522 *-*-*) ;;
3523 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3524 esac
3525 host=$ac_cv_host
3526 ac_save_IFS=$IFS; IFS='-'
3527 set x $ac_cv_host
3528 shift
3529 host_cpu=$1
3530 host_vendor=$2
3531 shift; shift
3532 # Remember, the first character of IFS is used to create $*,
3533 # except with old shells:
3534 host_os=$*
3535 IFS=$ac_save_IFS
3536 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3537
3538
3539
3540 # check existence of the package
3541
3542
3543 ac_aux_dir=
3544 for ac_dir in `pwd` "$srcdir"/`pwd`; do
3545   if test -f "$ac_dir/install-sh"; then
3546     ac_aux_dir=$ac_dir
3547     ac_install_sh="$ac_aux_dir/install-sh -c"
3548     break
3549   elif test -f "$ac_dir/install.sh"; then
3550     ac_aux_dir=$ac_dir
3551     ac_install_sh="$ac_aux_dir/install.sh -c"
3552     break
3553   elif test -f "$ac_dir/shtool"; then
3554     ac_aux_dir=$ac_dir
3555     ac_install_sh="$ac_aux_dir/shtool install -c"
3556     break
3557   fi
3558 done
3559 if test -z "$ac_aux_dir"; then
3560   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
3561 fi
3562
3563 # These three variables are undocumented and unsupported,
3564 # and are intended to be withdrawn in a future Autoconf release.
3565 # They can cause serious problems if a builder's source tree is in a directory
3566 # whose full name contains unusual characters.
3567 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3568 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3569 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3570
3571
3572
3573
3574
3575
3576 # preserve any CFLAGS or LDFLAGS that may be set
3577 # NOTE: This must be done before calling any macros that end up
3578 # calling AC_PROG_CC or the like, since they will set a default
3579 # set of CFLAGS ("-g -O2") if the user did not supply any, and
3580 # we don't want those default flags to be carried over into the
3581 # rest of the build system since we have other means of controlling
3582 # debugging symbol generation and optimization.
3583 CONFIG_CFLAGS="${CFLAGS}"
3584 CONFIG_LDFLAGS="${LDFLAGS}"
3585
3586
3587
3588 # specify output header file
3589 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
3590
3591
3592 # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
3593 # other macro that uses the C compiler, or the default order will be used.
3594 ac_ext=c
3595 ac_cpp='$CPP $CPPFLAGS'
3596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3599 if test -n "$ac_tool_prefix"; then
3600   for ac_prog in gcc cc
3601   do
3602     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if ${ac_cv_prog_CC+:} false; then :
3607   $as_echo_n "(cached) " >&6
3608 else
3609   if test -n "$CC"; then
3610   ac_cv_prog_CC="$CC" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3614 do
3615   IFS=$as_save_IFS
3616   test -z "$as_dir" && as_dir=.
3617     for ac_exec_ext in '' $ac_executable_extensions; do
3618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621     break 2
3622   fi
3623 done
3624   done
3625 IFS=$as_save_IFS
3626
3627 fi
3628 fi
3629 CC=$ac_cv_prog_CC
3630 if test -n "$CC"; then
3631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3632 $as_echo "$CC" >&6; }
3633 else
3634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3636 fi
3637
3638
3639     test -n "$CC" && break
3640   done
3641 fi
3642 if test -z "$CC"; then
3643   ac_ct_CC=$CC
3644   for ac_prog in gcc cc
3645 do
3646   # Extract the first word of "$ac_prog", so it can be a program name with args.
3647 set dummy $ac_prog; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3651   $as_echo_n "(cached) " >&6
3652 else
3653   if test -n "$ac_ct_CC"; then
3654   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659   IFS=$as_save_IFS
3660   test -z "$as_dir" && as_dir=.
3661     for ac_exec_ext in '' $ac_executable_extensions; do
3662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663     ac_cv_prog_ac_ct_CC="$ac_prog"
3664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665     break 2
3666   fi
3667 done
3668   done
3669 IFS=$as_save_IFS
3670
3671 fi
3672 fi
3673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3674 if test -n "$ac_ct_CC"; then
3675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3676 $as_echo "$ac_ct_CC" >&6; }
3677 else
3678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3680 fi
3681
3682
3683   test -n "$ac_ct_CC" && break
3684 done
3685
3686   if test "x$ac_ct_CC" = x; then
3687     CC=""
3688   else
3689     case $cross_compiling:$ac_tool_warned in
3690 yes:)
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3693 ac_tool_warned=yes ;;
3694 esac
3695     CC=$ac_ct_CC
3696   fi
3697 fi
3698
3699
3700 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702 as_fn_error $? "no acceptable C compiler found in \$PATH
3703 See \`config.log' for more details" "$LINENO" 5; }
3704
3705 # Provide some information about the compiler.
3706 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3707 set X $ac_compile
3708 ac_compiler=$2
3709 for ac_option in --version -v -V -qversion; do
3710   { { ac_try="$ac_compiler $ac_option >&5"
3711 case "(($ac_try" in
3712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713   *) ac_try_echo=$ac_try;;
3714 esac
3715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716 $as_echo "$ac_try_echo"; } >&5
3717   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3718   ac_status=$?
3719   if test -s conftest.err; then
3720     sed '10a\
3721 ... rest of stderr output deleted ...
3722          10q' conftest.err >conftest.er1
3723     cat conftest.er1 >&5
3724   fi
3725   rm -f conftest.er1 conftest.err
3726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727   test $ac_status = 0; }
3728 done
3729
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h.  */
3732
3733 int
3734 main ()
3735 {
3736
3737   ;
3738   return 0;
3739 }
3740 _ACEOF
3741 ac_clean_files_save=$ac_clean_files
3742 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3743 # Try to create an executable without -o first, disregard a.out.
3744 # It will help us diagnose broken compilers, and finding out an intuition
3745 # of exeext.
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3747 $as_echo_n "checking whether the C compiler works... " >&6; }
3748 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3749
3750 # The possible output files:
3751 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3752
3753 ac_rmfiles=
3754 for ac_file in $ac_files
3755 do
3756   case $ac_file in
3757     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3758     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3759   esac
3760 done
3761 rm -f $ac_rmfiles
3762
3763 if { { ac_try="$ac_link_default"
3764 case "(($ac_try" in
3765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766   *) ac_try_echo=$ac_try;;
3767 esac
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770   (eval "$ac_link_default") 2>&5
3771   ac_status=$?
3772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773   test $ac_status = 0; }; then :
3774   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3775 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3776 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3777 # so that the user can short-circuit this test for compilers unknown to
3778 # Autoconf.
3779 for ac_file in $ac_files ''
3780 do
3781   test -f "$ac_file" || continue
3782   case $ac_file in
3783     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3784         ;;
3785     [ab].out )
3786         # We found the default executable, but exeext='' is most
3787         # certainly right.
3788         break;;
3789     *.* )
3790         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3791         then :; else
3792            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3793         fi
3794         # We set ac_cv_exeext here because the later test for it is not
3795         # safe: cross compilers may not add the suffix if given an `-o'
3796         # argument, so we may need to know it at that point already.
3797         # Even if this section looks crufty: it has the advantage of
3798         # actually working.
3799         break;;
3800     * )
3801         break;;
3802   esac
3803 done
3804 test "$ac_cv_exeext" = no && ac_cv_exeext=
3805
3806 else
3807   ac_file=''
3808 fi
3809 if test -z "$ac_file"; then :
3810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3812 $as_echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3814
3815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817 as_fn_error 77 "C compiler cannot create executables
3818 See \`config.log' for more details" "$LINENO" 5; }
3819 else
3820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3821 $as_echo "yes" >&6; }
3822 fi
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3824 $as_echo_n "checking for C compiler default output file name... " >&6; }
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3826 $as_echo "$ac_file" >&6; }
3827 ac_exeext=$ac_cv_exeext
3828
3829 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3830 ac_clean_files=$ac_clean_files_save
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3832 $as_echo_n "checking for suffix of executables... " >&6; }
3833 if { { ac_try="$ac_link"
3834 case "(($ac_try" in
3835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836   *) ac_try_echo=$ac_try;;
3837 esac
3838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3839 $as_echo "$ac_try_echo"; } >&5
3840   (eval "$ac_link") 2>&5
3841   ac_status=$?
3842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843   test $ac_status = 0; }; then :
3844   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3845 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3846 # work properly (i.e., refer to `conftest.exe'), while it won't with
3847 # `rm'.
3848 for ac_file in conftest.exe conftest conftest.*; do
3849   test -f "$ac_file" || continue
3850   case $ac_file in
3851     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3852     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3853           break;;
3854     * ) break;;
3855   esac
3856 done
3857 else
3858   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3860 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3861 See \`config.log' for more details" "$LINENO" 5; }
3862 fi
3863 rm -f conftest conftest$ac_cv_exeext
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3865 $as_echo "$ac_cv_exeext" >&6; }
3866
3867 rm -f conftest.$ac_ext
3868 EXEEXT=$ac_cv_exeext
3869 ac_exeext=$EXEEXT
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h.  */
3872 #include <stdio.h>
3873 int
3874 main ()
3875 {
3876 FILE *f = fopen ("conftest.out", "w");
3877  return ferror (f) || fclose (f) != 0;
3878
3879   ;
3880   return 0;
3881 }
3882 _ACEOF
3883 ac_clean_files="$ac_clean_files conftest.out"
3884 # Check that the compiler produces executables we can run.  If not, either
3885 # the compiler is broken, or we cross compile.
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3887 $as_echo_n "checking whether we are cross compiling... " >&6; }
3888 if test "$cross_compiling" != yes; then
3889   { { ac_try="$ac_link"
3890 case "(($ac_try" in
3891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892   *) ac_try_echo=$ac_try;;
3893 esac
3894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3895 $as_echo "$ac_try_echo"; } >&5
3896   (eval "$ac_link") 2>&5
3897   ac_status=$?
3898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3899   test $ac_status = 0; }
3900   if { ac_try='./conftest$ac_cv_exeext'
3901   { { case "(($ac_try" in
3902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903   *) ac_try_echo=$ac_try;;
3904 esac
3905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906 $as_echo "$ac_try_echo"; } >&5
3907   (eval "$ac_try") 2>&5
3908   ac_status=$?
3909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910   test $ac_status = 0; }; }; then
3911     cross_compiling=no
3912   else
3913     if test "$cross_compiling" = maybe; then
3914         cross_compiling=yes
3915     else
3916         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3918 as_fn_error $? "cannot run C compiled programs.
3919 If you meant to cross compile, use \`--host'.
3920 See \`config.log' for more details" "$LINENO" 5; }
3921     fi
3922   fi
3923 fi
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3925 $as_echo "$cross_compiling" >&6; }
3926
3927 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3928 ac_clean_files=$ac_clean_files_save
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3930 $as_echo_n "checking for suffix of object files... " >&6; }
3931 if ${ac_cv_objext+:} false; then :
3932   $as_echo_n "(cached) " >&6
3933 else