Merge branch 'master' of file:///srv/git/moonshot-ui
[moonshot-ui.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for Moonshot 0.0.1.
4 #
5 # Report bugs to <BUG-REPORT-ADDRESS>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and BUG-REPORT-ADDRESS
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
237 $0: have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$1; test $as_status -eq 0 && as_status=1
370   if test "$4"; then
371     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373   fi
374   $as_echo "$as_me: error: $2" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531 as_awk_strverscmp='
532   # Use only awk features that work with 7th edition Unix awk (1978).
533   # My, what an old awk you have, Mr. Solaris!
534   END {
535     while (length(v1) && length(v2)) {
536       # Set d1 to be the next thing to compare from v1, and likewise for d2.
537       # Normally this is a single character, but if v1 and v2 contain digits,
538       # compare them as integers and fractions as strverscmp does.
539       if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
540         # Split v1 and v2 into their leading digit string components d1 and d2,
541         # and advance v1 and v2 past the leading digit strings.
542         for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
543         for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
544         d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
545         d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
546         if (d1 ~ /^0/) {
547           if (d2 ~ /^0/) {
548             # Compare two fractions.
549             while (d1 ~ /^0/ && d2 ~ /^0/) {
550               d1 = substr(d1, 2); len1--
551               d2 = substr(d2, 2); len2--
552             }
553             if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
554               # The two components differ in length, and the common prefix
555               # contains only leading zeros.  Consider the longer to be less.
556               d1 = -len1
557               d2 = -len2
558             } else {
559               # Otherwise, compare as strings.
560               d1 = "x" d1
561               d2 = "x" d2
562             }
563           } else {
564             # A fraction is less than an integer.
565             exit 1
566           }
567         } else {
568           if (d2 ~ /^0/) {
569             # An integer is greater than a fraction.
570             exit 2
571           } else {
572             # Compare two integers.
573             d1 += 0
574             d2 += 0
575           }
576         }
577       } else {
578         # The normal case, without worrying about digits.
579         d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
580         d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
581       }
582       if (d1 < d2) exit 1
583       if (d1 > d2) exit 2
584     }
585     # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
586     # which mishandles some comparisons of empty strings to integers.
587     if (length(v2)) exit 1
588     if (length(v1)) exit 2
589   }
590 '
591
592 test -n "$DJDIR" || exec 7<&0 </dev/null
593 exec 6>&1
594
595 # Name of the host.
596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597 # so uname gets run too.
598 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600 #
601 # Initializations.
602 #
603 ac_default_prefix=/usr/local
604 ac_clean_files=
605 ac_config_libobj_dir=.
606 LIBOBJS=
607 cross_compiling=no
608 subdirs=
609 MFLAGS=
610 MAKEFLAGS=
611
612 # Identity of this package.
613 PACKAGE_NAME='Moonshot'
614 PACKAGE_TARNAME='moonshot'
615 PACKAGE_VERSION='0.0.1'
616 PACKAGE_STRING='Moonshot 0.0.1'
617 PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
618 PACKAGE_URL=''
619
620 ac_unique_file="configure.ac"
621 gt_needs=
622 ac_subst_vars='am__EXEEXT_FALSE
623 am__EXEEXT_TRUE
624 LTLIBOBJS
625 LIBOBJS
626 GETTEXT_PACKAGE
627 POSUB
628 LTLIBINTL
629 LIBINTL
630 INTLLIBS
631 LTLIBICONV
632 LIBICONV
633 INTL_MACOSX_LIBS
634 EGREP
635 GREP
636 CPP
637 host_os
638 host_vendor
639 host_cpu
640 host
641 build_os
642 build_vendor
643 build_cpu
644 build
645 XGETTEXT_EXTRA_OPTIONS
646 MSGMERGE
647 XGETTEXT_015
648 XGETTEXT
649 GMSGFMT_015
650 MSGFMT_015
651 GMSGFMT
652 MSGFMT
653 GETTEXT_MACRO_VERSION
654 USE_NLS
655 moonshot_LIBS
656 moonshot_CFLAGS
657 PKG_CONFIG_LIBDIR
658 PKG_CONFIG_PATH
659 PKG_CONFIG
660 VALAC
661 am__fastdepCC_FALSE
662 am__fastdepCC_TRUE
663 CCDEPMODE
664 AMDEPBACKSLASH
665 AMDEP_FALSE
666 AMDEP_TRUE
667 am__quote
668 am__include
669 DEPDIR
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
676 CC
677 AM_BACKSLASH
678 AM_DEFAULT_VERBOSITY
679 am__untar
680 am__tar
681 AMTAR
682 am__leading_dot
683 SET_MAKE
684 AWK
685 mkdir_p
686 MKDIR_P
687 INSTALL_STRIP_PROGRAM
688 STRIP
689 install_sh
690 MAKEINFO
691 AUTOHEADER
692 AUTOMAKE
693 AUTOCONF
694 ACLOCAL
695 VERSION
696 PACKAGE
697 CYGPATH_W
698 am__isrc
699 INSTALL_DATA
700 INSTALL_SCRIPT
701 INSTALL_PROGRAM
702 target_alias
703 host_alias
704 build_alias
705 LIBS
706 ECHO_T
707 ECHO_N
708 ECHO_C
709 DEFS
710 mandir
711 localedir
712 libdir
713 psdir
714 pdfdir
715 dvidir
716 htmldir
717 infodir
718 docdir
719 oldincludedir
720 includedir
721 localstatedir
722 sharedstatedir
723 sysconfdir
724 datadir
725 datarootdir
726 libexecdir
727 sbindir
728 bindir
729 program_transform_name
730 prefix
731 exec_prefix
732 PACKAGE_URL
733 PACKAGE_BUGREPORT
734 PACKAGE_STRING
735 PACKAGE_VERSION
736 PACKAGE_TARNAME
737 PACKAGE_NAME
738 PATH_SEPARATOR
739 SHELL'
740 ac_subst_files=''
741 ac_user_opts='
742 enable_option_checking
743 enable_silent_rules
744 enable_dependency_tracking
745 enable_nls
746 with_gnu_ld
747 enable_rpath
748 with_libiconv_prefix
749 with_libintl_prefix
750 '
751       ac_precious_vars='build_alias
752 host_alias
753 target_alias
754 CC
755 CFLAGS
756 LDFLAGS
757 LIBS
758 CPPFLAGS
759 PKG_CONFIG
760 PKG_CONFIG_PATH
761 PKG_CONFIG_LIBDIR
762 moonshot_CFLAGS
763 moonshot_LIBS
764 CPP'
765
766
767 # Initialize some variables set by options.
768 ac_init_help=
769 ac_init_version=false
770 ac_unrecognized_opts=
771 ac_unrecognized_sep=
772 # The variables have the same names as the options, with
773 # dashes changed to underlines.
774 cache_file=/dev/null
775 exec_prefix=NONE
776 no_create=
777 no_recursion=
778 prefix=NONE
779 program_prefix=NONE
780 program_suffix=NONE
781 program_transform_name=s,x,x,
782 silent=
783 site=
784 srcdir=
785 verbose=
786 x_includes=NONE
787 x_libraries=NONE
788
789 # Installation directory options.
790 # These are left unexpanded so users can "make install exec_prefix=/foo"
791 # and all the variables that are supposed to be based on exec_prefix
792 # by default will actually change.
793 # Use braces instead of parens because sh, perl, etc. also accept them.
794 # (The list follows the same order as the GNU Coding Standards.)
795 bindir='${exec_prefix}/bin'
796 sbindir='${exec_prefix}/sbin'
797 libexecdir='${exec_prefix}/libexec'
798 datarootdir='${prefix}/share'
799 datadir='${datarootdir}'
800 sysconfdir='${prefix}/etc'
801 sharedstatedir='${prefix}/com'
802 localstatedir='${prefix}/var'
803 includedir='${prefix}/include'
804 oldincludedir='/usr/include'
805 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
806 infodir='${datarootdir}/info'
807 htmldir='${docdir}'
808 dvidir='${docdir}'
809 pdfdir='${docdir}'
810 psdir='${docdir}'
811 libdir='${exec_prefix}/lib'
812 localedir='${datarootdir}/locale'
813 mandir='${datarootdir}/man'
814
815 ac_prev=
816 ac_dashdash=
817 for ac_option
818 do
819   # If the previous option needs an argument, assign it.
820   if test -n "$ac_prev"; then
821     eval $ac_prev=\$ac_option
822     ac_prev=
823     continue
824   fi
825
826   case $ac_option in
827   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
828   *=)   ac_optarg= ;;
829   *)    ac_optarg=yes ;;
830   esac
831
832   # Accept the important Cygnus configure options, so we can diagnose typos.
833
834   case $ac_dashdash$ac_option in
835   --)
836     ac_dashdash=yes ;;
837
838   -bindir | --bindir | --bindi | --bind | --bin | --bi)
839     ac_prev=bindir ;;
840   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
841     bindir=$ac_optarg ;;
842
843   -build | --build | --buil | --bui | --bu)
844     ac_prev=build_alias ;;
845   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
846     build_alias=$ac_optarg ;;
847
848   -cache-file | --cache-file | --cache-fil | --cache-fi \
849   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
850     ac_prev=cache_file ;;
851   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
852   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
853     cache_file=$ac_optarg ;;
854
855   --config-cache | -C)
856     cache_file=config.cache ;;
857
858   -datadir | --datadir | --datadi | --datad)
859     ac_prev=datadir ;;
860   -datadir=* | --datadir=* | --datadi=* | --datad=*)
861     datadir=$ac_optarg ;;
862
863   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
864   | --dataroo | --dataro | --datar)
865     ac_prev=datarootdir ;;
866   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
867   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
868     datarootdir=$ac_optarg ;;
869
870   -disable-* | --disable-*)
871     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872     # Reject names that are not valid shell variable names.
873     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
874       as_fn_error $? "invalid feature name: $ac_useropt"
875     ac_useropt_orig=$ac_useropt
876     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877     case $ac_user_opts in
878       *"
879 "enable_$ac_useropt"
880 "*) ;;
881       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
882          ac_unrecognized_sep=', ';;
883     esac
884     eval enable_$ac_useropt=no ;;
885
886   -docdir | --docdir | --docdi | --doc | --do)
887     ac_prev=docdir ;;
888   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
889     docdir=$ac_optarg ;;
890
891   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
892     ac_prev=dvidir ;;
893   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
894     dvidir=$ac_optarg ;;
895
896   -enable-* | --enable-*)
897     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898     # Reject names that are not valid shell variable names.
899     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900       as_fn_error $? "invalid feature name: $ac_useropt"
901     ac_useropt_orig=$ac_useropt
902     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903     case $ac_user_opts in
904       *"
905 "enable_$ac_useropt"
906 "*) ;;
907       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
908          ac_unrecognized_sep=', ';;
909     esac
910     eval enable_$ac_useropt=\$ac_optarg ;;
911
912   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
913   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
914   | --exec | --exe | --ex)
915     ac_prev=exec_prefix ;;
916   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
917   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
918   | --exec=* | --exe=* | --ex=*)
919     exec_prefix=$ac_optarg ;;
920
921   -gas | --gas | --ga | --g)
922     # Obsolete; use --with-gas.
923     with_gas=yes ;;
924
925   -help | --help | --hel | --he | -h)
926     ac_init_help=long ;;
927   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
928     ac_init_help=recursive ;;
929   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
930     ac_init_help=short ;;
931
932   -host | --host | --hos | --ho)
933     ac_prev=host_alias ;;
934   -host=* | --host=* | --hos=* | --ho=*)
935     host_alias=$ac_optarg ;;
936
937   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938     ac_prev=htmldir ;;
939   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940   | --ht=*)
941     htmldir=$ac_optarg ;;
942
943   -includedir | --includedir | --includedi | --included | --include \
944   | --includ | --inclu | --incl | --inc)
945     ac_prev=includedir ;;
946   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
947   | --includ=* | --inclu=* | --incl=* | --inc=*)
948     includedir=$ac_optarg ;;
949
950   -infodir | --infodir | --infodi | --infod | --info | --inf)
951     ac_prev=infodir ;;
952   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
953     infodir=$ac_optarg ;;
954
955   -libdir | --libdir | --libdi | --libd)
956     ac_prev=libdir ;;
957   -libdir=* | --libdir=* | --libdi=* | --libd=*)
958     libdir=$ac_optarg ;;
959
960   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
961   | --libexe | --libex | --libe)
962     ac_prev=libexecdir ;;
963   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
964   | --libexe=* | --libex=* | --libe=*)
965     libexecdir=$ac_optarg ;;
966
967   -localedir | --localedir | --localedi | --localed | --locale)
968     ac_prev=localedir ;;
969   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
970     localedir=$ac_optarg ;;
971
972   -localstatedir | --localstatedir | --localstatedi | --localstated \
973   | --localstate | --localstat | --localsta | --localst | --locals)
974     ac_prev=localstatedir ;;
975   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
976   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
977     localstatedir=$ac_optarg ;;
978
979   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980     ac_prev=mandir ;;
981   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982     mandir=$ac_optarg ;;
983
984   -nfp | --nfp | --nf)
985     # Obsolete; use --without-fp.
986     with_fp=no ;;
987
988   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989   | --no-cr | --no-c | -n)
990     no_create=yes ;;
991
992   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994     no_recursion=yes ;;
995
996   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
997   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
998   | --oldin | --oldi | --old | --ol | --o)
999     ac_prev=oldincludedir ;;
1000   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1001   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1002   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1003     oldincludedir=$ac_optarg ;;
1004
1005   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006     ac_prev=prefix ;;
1007   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1008     prefix=$ac_optarg ;;
1009
1010   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1011   | --program-pre | --program-pr | --program-p)
1012     ac_prev=program_prefix ;;
1013   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1014   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1015     program_prefix=$ac_optarg ;;
1016
1017   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1018   | --program-suf | --program-su | --program-s)
1019     ac_prev=program_suffix ;;
1020   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1021   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1022     program_suffix=$ac_optarg ;;
1023
1024   -program-transform-name | --program-transform-name \
1025   | --program-transform-nam | --program-transform-na \
1026   | --program-transform-n | --program-transform- \
1027   | --program-transform | --program-transfor \
1028   | --program-transfo | --program-transf \
1029   | --program-trans | --program-tran \
1030   | --progr-tra | --program-tr | --program-t)
1031     ac_prev=program_transform_name ;;
1032   -program-transform-name=* | --program-transform-name=* \
1033   | --program-transform-nam=* | --program-transform-na=* \
1034   | --program-transform-n=* | --program-transform-=* \
1035   | --program-transform=* | --program-transfor=* \
1036   | --program-transfo=* | --program-transf=* \
1037   | --program-trans=* | --program-tran=* \
1038   | --progr-tra=* | --program-tr=* | --program-t=*)
1039     program_transform_name=$ac_optarg ;;
1040
1041   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042     ac_prev=pdfdir ;;
1043   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1044     pdfdir=$ac_optarg ;;
1045
1046   -psdir | --psdir | --psdi | --psd | --ps)
1047     ac_prev=psdir ;;
1048   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1049     psdir=$ac_optarg ;;
1050
1051   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052   | -silent | --silent | --silen | --sile | --sil)
1053     silent=yes ;;
1054
1055   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056     ac_prev=sbindir ;;
1057   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058   | --sbi=* | --sb=*)
1059     sbindir=$ac_optarg ;;
1060
1061   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063   | --sharedst | --shareds | --shared | --share | --shar \
1064   | --sha | --sh)
1065     ac_prev=sharedstatedir ;;
1066   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069   | --sha=* | --sh=*)
1070     sharedstatedir=$ac_optarg ;;
1071
1072   -site | --site | --sit)
1073     ac_prev=site ;;
1074   -site=* | --site=* | --sit=*)
1075     site=$ac_optarg ;;
1076
1077   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078     ac_prev=srcdir ;;
1079   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080     srcdir=$ac_optarg ;;
1081
1082   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083   | --syscon | --sysco | --sysc | --sys | --sy)
1084     ac_prev=sysconfdir ;;
1085   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087     sysconfdir=$ac_optarg ;;
1088
1089   -target | --target | --targe | --targ | --tar | --ta | --t)
1090     ac_prev=target_alias ;;
1091   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092     target_alias=$ac_optarg ;;
1093
1094   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095     verbose=yes ;;
1096
1097   -version | --version | --versio | --versi | --vers | -V)
1098     ac_init_version=: ;;
1099
1100   -with-* | --with-*)
1101     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102     # Reject names that are not valid shell variable names.
1103     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104       as_fn_error $? "invalid package name: $ac_useropt"
1105     ac_useropt_orig=$ac_useropt
1106     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107     case $ac_user_opts in
1108       *"
1109 "with_$ac_useropt"
1110 "*) ;;
1111       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1112          ac_unrecognized_sep=', ';;
1113     esac
1114     eval with_$ac_useropt=\$ac_optarg ;;
1115
1116   -without-* | --without-*)
1117     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118     # Reject names that are not valid shell variable names.
1119     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120       as_fn_error $? "invalid package name: $ac_useropt"
1121     ac_useropt_orig=$ac_useropt
1122     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123     case $ac_user_opts in
1124       *"
1125 "with_$ac_useropt"
1126 "*) ;;
1127       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1128          ac_unrecognized_sep=', ';;
1129     esac
1130     eval with_$ac_useropt=no ;;
1131
1132   --x)
1133     # Obsolete; use --with-x.
1134     with_x=yes ;;
1135
1136   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137   | --x-incl | --x-inc | --x-in | --x-i)
1138     ac_prev=x_includes ;;
1139   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141     x_includes=$ac_optarg ;;
1142
1143   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145     ac_prev=x_libraries ;;
1146   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148     x_libraries=$ac_optarg ;;
1149
1150   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1151 Try \`$0 --help' for more information"
1152     ;;
1153
1154   *=*)
1155     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156     # Reject names that are not valid shell variable names.
1157     case $ac_envvar in #(
1158       '' | [0-9]* | *[!_$as_cr_alnum]* )
1159       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1160     esac
1161     eval $ac_envvar=\$ac_optarg
1162     export $ac_envvar ;;
1163
1164   *)
1165     # FIXME: should be removed in autoconf 3.0.
1166     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1170     ;;
1171
1172   esac
1173 done
1174
1175 if test -n "$ac_prev"; then
1176   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177   as_fn_error $? "missing argument to $ac_option"
1178 fi
1179
1180 if test -n "$ac_unrecognized_opts"; then
1181   case $enable_option_checking in
1182     no) ;;
1183     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1184     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1185   esac
1186 fi
1187
1188 # Check all directory arguments for consistency.
1189 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190                 datadir sysconfdir sharedstatedir localstatedir includedir \
1191                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192                 libdir localedir mandir
1193 do
1194   eval ac_val=\$$ac_var
1195   # Remove trailing slashes.
1196   case $ac_val in
1197     */ )
1198       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199       eval $ac_var=\$ac_val;;
1200   esac
1201   # Be sure to have absolute directory names.
1202   case $ac_val in
1203     [\\/$]* | ?:[\\/]* )  continue;;
1204     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205   esac
1206   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1207 done
1208
1209 # There might be people who depend on the old broken behavior: `$host'
1210 # used to hold the argument of --host etc.
1211 # FIXME: To remove some day.
1212 build=$build_alias
1213 host=$host_alias
1214 target=$target_alias
1215
1216 # FIXME: To remove some day.
1217 if test "x$host_alias" != x; then
1218   if test "x$build_alias" = x; then
1219     cross_compiling=maybe
1220     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1221     If a cross compiler is detected then cross compile mode will be used" >&2
1222   elif test "x$build_alias" != "x$host_alias"; then
1223     cross_compiling=yes
1224   fi
1225 fi
1226
1227 ac_tool_prefix=
1228 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1229
1230 test "$silent" = yes && exec 6>/dev/null
1231
1232
1233 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di=`ls -di .` &&
1235 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236   as_fn_error $? "working directory cannot be determined"
1237 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1238   as_fn_error $? "pwd does not report name of working directory"
1239
1240
1241 # Find the source files, if location was not specified.
1242 if test -z "$srcdir"; then
1243   ac_srcdir_defaulted=yes
1244   # Try the directory containing this script, then the parent directory.
1245   ac_confdir=`$as_dirname -- "$as_myself" ||
1246 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1247          X"$as_myself" : 'X\(//\)[^/]' \| \
1248          X"$as_myself" : 'X\(//\)$' \| \
1249          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1250 $as_echo X"$as_myself" |
1251     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1252             s//\1/
1253             q
1254           }
1255           /^X\(\/\/\)[^/].*/{
1256             s//\1/
1257             q
1258           }
1259           /^X\(\/\/\)$/{
1260             s//\1/
1261             q
1262           }
1263           /^X\(\/\).*/{
1264             s//\1/
1265             q
1266           }
1267           s/.*/./; q'`
1268   srcdir=$ac_confdir
1269   if test ! -r "$srcdir/$ac_unique_file"; then
1270     srcdir=..
1271   fi
1272 else
1273   ac_srcdir_defaulted=no
1274 fi
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1277   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1278 fi
1279 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1280 ac_abs_confdir=`(
1281         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1282         pwd)`
1283 # When building in place, set srcdir=.
1284 if test "$ac_abs_confdir" = "$ac_pwd"; then
1285   srcdir=.
1286 fi
1287 # Remove unnecessary trailing slashes from srcdir.
1288 # Double slashes in file names in object file debugging info
1289 # mess up M-x gdb in Emacs.
1290 case $srcdir in
1291 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1292 esac
1293 for ac_var in $ac_precious_vars; do
1294   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1295   eval ac_env_${ac_var}_value=\$${ac_var}
1296   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1297   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298 done
1299
1300 #
1301 # Report the --help message.
1302 #
1303 if test "$ac_init_help" = "long"; then
1304   # Omit some internal or obsolete options to make the list less imposing.
1305   # This message is too long to be a string in the A/UX 3.1 sh.
1306   cat <<_ACEOF
1307 \`configure' configures Moonshot 0.0.1 to adapt to many kinds of systems.
1308
1309 Usage: $0 [OPTION]... [VAR=VALUE]...
1310
1311 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1312 VAR=VALUE.  See below for descriptions of some of the useful variables.
1313
1314 Defaults for the options are specified in brackets.
1315
1316 Configuration:
1317   -h, --help              display this help and exit
1318       --help=short        display options specific to this package
1319       --help=recursive    display the short help of all the included packages
1320   -V, --version           display version information and exit
1321   -q, --quiet, --silent   do not print \`checking ...' messages
1322       --cache-file=FILE   cache test results in FILE [disabled]
1323   -C, --config-cache      alias for \`--cache-file=config.cache'
1324   -n, --no-create         do not create output files
1325       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1326
1327 Installation directories:
1328   --prefix=PREFIX         install architecture-independent files in PREFIX
1329                           [$ac_default_prefix]
1330   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1331                           [PREFIX]
1332
1333 By default, \`make install' will install all the files in
1334 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1335 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1336 for instance \`--prefix=\$HOME'.
1337
1338 For better control, use the options below.
1339
1340 Fine tuning of the installation directories:
1341   --bindir=DIR            user executables [EPREFIX/bin]
1342   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1343   --libexecdir=DIR        program executables [EPREFIX/libexec]
1344   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1345   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1346   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1347   --libdir=DIR            object code libraries [EPREFIX/lib]
1348   --includedir=DIR        C header files [PREFIX/include]
1349   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1350   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1351   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1352   --infodir=DIR           info documentation [DATAROOTDIR/info]
1353   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1354   --mandir=DIR            man documentation [DATAROOTDIR/man]
1355   --docdir=DIR            documentation root [DATAROOTDIR/doc/moonshot]
1356   --htmldir=DIR           html documentation [DOCDIR]
1357   --dvidir=DIR            dvi documentation [DOCDIR]
1358   --pdfdir=DIR            pdf documentation [DOCDIR]
1359   --psdir=DIR             ps documentation [DOCDIR]
1360 _ACEOF
1361
1362   cat <<\_ACEOF
1363
1364 Program names:
1365   --program-prefix=PREFIX            prepend PREFIX to installed program names
1366   --program-suffix=SUFFIX            append SUFFIX to installed program names
1367   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1368
1369 System types:
1370   --build=BUILD     configure for building on BUILD [guessed]
1371   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1372 _ACEOF
1373 fi
1374
1375 if test -n "$ac_init_help"; then
1376   case $ac_init_help in
1377      short | recursive ) echo "Configuration of Moonshot 0.0.1:";;
1378    esac
1379   cat <<\_ACEOF
1380
1381 Optional Features:
1382   --disable-option-checking  ignore unrecognized --enable/--with options
1383   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1384   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1385   --enable-silent-rules          less verbose build output (undo: `make V=1')
1386   --disable-silent-rules         verbose build output (undo: `make V=0')
1387   --disable-dependency-tracking  speeds up one-time build
1388   --enable-dependency-tracking   do not reject slow dependency extractors
1389   --disable-nls           do not use Native Language Support
1390   --disable-rpath         do not hardcode runtime library paths
1391
1392 Optional Packages:
1393   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1394   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1395   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1396   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1397   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1398   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1399   --without-libintl-prefix     don't search for libintl in includedir and libdir
1400
1401 Some influential environment variables:
1402   CC          C compiler command
1403   CFLAGS      C compiler flags
1404   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1405               nonstandard directory <lib dir>
1406   LIBS        libraries to pass to the linker, e.g. -l<library>
1407   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1408               you have headers in a nonstandard directory <include dir>
1409   PKG_CONFIG  path to pkg-config utility
1410   PKG_CONFIG_PATH
1411               directories to add to pkg-config's search path
1412   PKG_CONFIG_LIBDIR
1413               path overriding pkg-config's built-in search path
1414   moonshot_CFLAGS
1415               C compiler flags for moonshot, overriding pkg-config
1416   moonshot_LIBS
1417               linker flags for moonshot, overriding pkg-config
1418   CPP         C preprocessor
1419
1420 Use these variables to override the choices made by `configure' or to help
1421 it to find libraries and programs with nonstandard names/locations.
1422
1423 Report bugs to <BUG-REPORT-ADDRESS>.
1424 _ACEOF
1425 ac_status=$?
1426 fi
1427
1428 if test "$ac_init_help" = "recursive"; then
1429   # If there are subdirs, report their specific --help.
1430   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431     test -d "$ac_dir" ||
1432       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433       continue
1434     ac_builddir=.
1435
1436 case "$ac_dir" in
1437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 *)
1439   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440   # A ".." for each directory in $ac_dir_suffix.
1441   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442   case $ac_top_builddir_sub in
1443   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445   esac ;;
1446 esac
1447 ac_abs_top_builddir=$ac_pwd
1448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449 # for backward compatibility:
1450 ac_top_builddir=$ac_top_build_prefix
1451
1452 case $srcdir in
1453   .)  # We are building in place.
1454     ac_srcdir=.
1455     ac_top_srcdir=$ac_top_builddir_sub
1456     ac_abs_top_srcdir=$ac_pwd ;;
1457   [\\/]* | ?:[\\/]* )  # Absolute name.
1458     ac_srcdir=$srcdir$ac_dir_suffix;
1459     ac_top_srcdir=$srcdir
1460     ac_abs_top_srcdir=$srcdir ;;
1461   *) # Relative name.
1462     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463     ac_top_srcdir=$ac_top_build_prefix$srcdir
1464     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465 esac
1466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467
1468     cd "$ac_dir" || { ac_status=$?; continue; }
1469     # Check for guested configure.
1470     if test -f "$ac_srcdir/configure.gnu"; then
1471       echo &&
1472       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473     elif test -f "$ac_srcdir/configure"; then
1474       echo &&
1475       $SHELL "$ac_srcdir/configure" --help=recursive
1476     else
1477       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478     fi || ac_status=$?
1479     cd "$ac_pwd" || { ac_status=$?; break; }
1480   done
1481 fi
1482
1483 test -n "$ac_init_help" && exit $ac_status
1484 if $ac_init_version; then
1485   cat <<\_ACEOF
1486 Moonshot configure 0.0.1
1487 generated by GNU Autoconf 2.67
1488
1489 Copyright (C) 2010 Free Software Foundation, Inc.
1490 This configure script is free software; the Free Software Foundation
1491 gives unlimited permission to copy, distribute and modify it.
1492 _ACEOF
1493   exit
1494 fi
1495
1496 ## ------------------------ ##
1497 ## Autoconf initialization. ##
1498 ## ------------------------ ##
1499
1500 # ac_fn_c_try_compile LINENO
1501 # --------------------------
1502 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1503 ac_fn_c_try_compile ()
1504 {
1505   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506   rm -f conftest.$ac_objext
1507   if { { ac_try="$ac_compile"
1508 case "(($ac_try" in
1509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510   *) ac_try_echo=$ac_try;;
1511 esac
1512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513 $as_echo "$ac_try_echo"; } >&5
1514   (eval "$ac_compile") 2>conftest.err
1515   ac_status=$?
1516   if test -s conftest.err; then
1517     grep -v '^ *+' conftest.err >conftest.er1
1518     cat conftest.er1 >&5
1519     mv -f conftest.er1 conftest.err
1520   fi
1521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522   test $ac_status = 0; } && {
1523          test -z "$ac_c_werror_flag" ||
1524          test ! -s conftest.err
1525        } && test -s conftest.$ac_objext; then :
1526   ac_retval=0
1527 else
1528   $as_echo "$as_me: failed program was:" >&5
1529 sed 's/^/| /' conftest.$ac_ext >&5
1530
1531         ac_retval=1
1532 fi
1533   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1534   as_fn_set_status $ac_retval
1535
1536 } # ac_fn_c_try_compile
1537
1538 # ac_fn_c_try_cpp LINENO
1539 # ----------------------
1540 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_c_try_cpp ()
1542 {
1543   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544   if { { ac_try="$ac_cpp conftest.$ac_ext"
1545 case "(($ac_try" in
1546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547   *) ac_try_echo=$ac_try;;
1548 esac
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1552   ac_status=$?
1553   if test -s conftest.err; then
1554     grep -v '^ *+' conftest.err >conftest.er1
1555     cat conftest.er1 >&5
1556     mv -f conftest.er1 conftest.err
1557   fi
1558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559   test $ac_status = 0; } > conftest.i && {
1560          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1561          test ! -s conftest.err
1562        }; then :
1563   ac_retval=0
1564 else
1565   $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1567
1568     ac_retval=1
1569 fi
1570   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1571   as_fn_set_status $ac_retval
1572
1573 } # ac_fn_c_try_cpp
1574
1575 # ac_fn_c_try_link LINENO
1576 # -----------------------
1577 # Try to link conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_link ()
1579 {
1580   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581   rm -f conftest.$ac_objext conftest$ac_exeext
1582   if { { ac_try="$ac_link"
1583 case "(($ac_try" in
1584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585   *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589   (eval "$ac_link") 2>conftest.err
1590   ac_status=$?
1591   if test -s conftest.err; then
1592     grep -v '^ *+' conftest.err >conftest.er1
1593     cat conftest.er1 >&5
1594     mv -f conftest.er1 conftest.err
1595   fi
1596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597   test $ac_status = 0; } && {
1598          test -z "$ac_c_werror_flag" ||
1599          test ! -s conftest.err
1600        } && test -s conftest$ac_exeext && {
1601          test "$cross_compiling" = yes ||
1602          $as_test_x conftest$ac_exeext
1603        }; then :
1604   ac_retval=0
1605 else
1606   $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1608
1609         ac_retval=1
1610 fi
1611   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1612   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1613   # interfere with the next link command; also delete a directory that is
1614   # left behind by Apple's compiler.  We do this before executing the actions.
1615   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1616   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1617   as_fn_set_status $ac_retval
1618
1619 } # ac_fn_c_try_link
1620
1621 # ac_fn_c_try_run LINENO
1622 # ----------------------
1623 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1624 # that executables *can* be run.
1625 ac_fn_c_try_run ()
1626 {
1627   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628   if { { ac_try="$ac_link"
1629 case "(($ac_try" in
1630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631   *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635   (eval "$ac_link") 2>&5
1636   ac_status=$?
1637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1639   { { case "(($ac_try" in
1640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641   *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645   (eval "$ac_try") 2>&5
1646   ac_status=$?
1647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648   test $ac_status = 0; }; }; then :
1649   ac_retval=0
1650 else
1651   $as_echo "$as_me: program exited with status $ac_status" >&5
1652        $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655        ac_retval=$ac_status
1656 fi
1657   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1658   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1659   as_fn_set_status $ac_retval
1660
1661 } # ac_fn_c_try_run
1662 cat >config.log <<_ACEOF
1663 This file contains any messages produced by compilers while
1664 running configure, to aid debugging if configure makes a mistake.
1665
1666 It was created by Moonshot $as_me 0.0.1, which was
1667 generated by GNU Autoconf 2.67.  Invocation command line was
1668
1669   $ $0 $@
1670
1671 _ACEOF
1672 exec 5>>config.log
1673 {
1674 cat <<_ASUNAME
1675 ## --------- ##
1676 ## Platform. ##
1677 ## --------- ##
1678
1679 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1680 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1681 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1682 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1683 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1684
1685 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1686 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1687
1688 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1689 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1690 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1691 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1692 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1693 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1694 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1695
1696 _ASUNAME
1697
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1700 do
1701   IFS=$as_save_IFS
1702   test -z "$as_dir" && as_dir=.
1703     $as_echo "PATH: $as_dir"
1704   done
1705 IFS=$as_save_IFS
1706
1707 } >&5
1708
1709 cat >&5 <<_ACEOF
1710
1711
1712 ## ----------- ##
1713 ## Core tests. ##
1714 ## ----------- ##
1715
1716 _ACEOF
1717
1718
1719 # Keep a trace of the command line.
1720 # Strip out --no-create and --no-recursion so they do not pile up.
1721 # Strip out --silent because we don't want to record it for future runs.
1722 # Also quote any args containing shell meta-characters.
1723 # Make two passes to allow for proper duplicate-argument suppression.
1724 ac_configure_args=
1725 ac_configure_args0=
1726 ac_configure_args1=
1727 ac_must_keep_next=false
1728 for ac_pass in 1 2
1729 do
1730   for ac_arg
1731   do
1732     case $ac_arg in
1733     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1734     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1735     | -silent | --silent | --silen | --sile | --sil)
1736       continue ;;
1737     *\'*)
1738       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1739     esac
1740     case $ac_pass in
1741     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1742     2)
1743       as_fn_append ac_configure_args1 " '$ac_arg'"
1744       if test $ac_must_keep_next = true; then
1745         ac_must_keep_next=false # Got value, back to normal.
1746       else
1747         case $ac_arg in
1748           *=* | --config-cache | -C | -disable-* | --disable-* \
1749           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1750           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1751           | -with-* | --with-* | -without-* | --without-* | --x)
1752             case "$ac_configure_args0 " in
1753               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1754             esac
1755             ;;
1756           -* ) ac_must_keep_next=true ;;
1757         esac
1758       fi
1759       as_fn_append ac_configure_args " '$ac_arg'"
1760       ;;
1761     esac
1762   done
1763 done
1764 { ac_configure_args0=; unset ac_configure_args0;}
1765 { ac_configure_args1=; unset ac_configure_args1;}
1766
1767 # When interrupted or exit'd, cleanup temporary files, and complete
1768 # config.log.  We remove comments because anyway the quotes in there
1769 # would cause problems or look ugly.
1770 # WARNING: Use '\'' to represent an apostrophe within the trap.
1771 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1772 trap 'exit_status=$?
1773   # Save into config.log some information that might help in debugging.
1774   {
1775     echo
1776
1777     $as_echo "## ---------------- ##
1778 ## Cache variables. ##
1779 ## ---------------- ##"
1780     echo
1781     # The following way of writing the cache mishandles newlines in values,
1782 (
1783   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1784     eval ac_val=\$$ac_var
1785     case $ac_val in #(
1786     *${as_nl}*)
1787       case $ac_var in #(
1788       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1789 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1790       esac
1791       case $ac_var in #(
1792       _ | IFS | as_nl) ;; #(
1793       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1794       *) { eval $ac_var=; unset $ac_var;} ;;
1795       esac ;;
1796     esac
1797   done
1798   (set) 2>&1 |
1799     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1800     *${as_nl}ac_space=\ *)
1801       sed -n \
1802         "s/'\''/'\''\\\\'\'''\''/g;
1803           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1804       ;; #(
1805     *)
1806       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1807       ;;
1808     esac |
1809     sort
1810 )
1811     echo
1812
1813     $as_echo "## ----------------- ##
1814 ## Output variables. ##
1815 ## ----------------- ##"
1816     echo
1817     for ac_var in $ac_subst_vars
1818     do
1819       eval ac_val=\$$ac_var
1820       case $ac_val in
1821       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1822       esac
1823       $as_echo "$ac_var='\''$ac_val'\''"
1824     done | sort
1825     echo
1826
1827     if test -n "$ac_subst_files"; then
1828       $as_echo "## ------------------- ##
1829 ## File substitutions. ##
1830 ## ------------------- ##"
1831       echo
1832       for ac_var in $ac_subst_files
1833       do
1834         eval ac_val=\$$ac_var
1835         case $ac_val in
1836         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837         esac
1838         $as_echo "$ac_var='\''$ac_val'\''"
1839       done | sort
1840       echo
1841     fi
1842
1843     if test -s confdefs.h; then
1844       $as_echo "## ----------- ##
1845 ## confdefs.h. ##
1846 ## ----------- ##"
1847       echo
1848       cat confdefs.h
1849       echo
1850     fi
1851     test "$ac_signal" != 0 &&
1852       $as_echo "$as_me: caught signal $ac_signal"
1853     $as_echo "$as_me: exit $exit_status"
1854   } >&5
1855   rm -f core *.core core.conftest.* &&
1856     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1857     exit $exit_status
1858 ' 0
1859 for ac_signal in 1 2 13 15; do
1860   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1861 done
1862 ac_signal=0
1863
1864 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1865 rm -f -r conftest* confdefs.h
1866
1867 $as_echo "/* confdefs.h */" > confdefs.h
1868
1869 # Predefined preprocessor variables.
1870
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_NAME "$PACKAGE_NAME"
1873 _ACEOF
1874
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1877 _ACEOF
1878
1879 cat >>confdefs.h <<_ACEOF
1880 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1881 _ACEOF
1882
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_STRING "$PACKAGE_STRING"
1885 _ACEOF
1886
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1889 _ACEOF
1890
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_URL "$PACKAGE_URL"
1893 _ACEOF
1894
1895
1896 # Let the site file select an alternate cache file if it wants to.
1897 # Prefer an explicitly selected file to automatically selected ones.
1898 ac_site_file1=NONE
1899 ac_site_file2=NONE
1900 if test -n "$CONFIG_SITE"; then
1901   # We do not want a PATH search for config.site.
1902   case $CONFIG_SITE in #((
1903     -*)  ac_site_file1=./$CONFIG_SITE;;
1904     */*) ac_site_file1=$CONFIG_SITE;;
1905     *)   ac_site_file1=./$CONFIG_SITE;;
1906   esac
1907 elif test "x$prefix" != xNONE; then
1908   ac_site_file1=$prefix/share/config.site
1909   ac_site_file2=$prefix/etc/config.site
1910 else
1911   ac_site_file1=$ac_default_prefix/share/config.site
1912   ac_site_file2=$ac_default_prefix/etc/config.site
1913 fi
1914 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1915 do
1916   test "x$ac_site_file" = xNONE && continue
1917   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1918     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1919 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1920     sed 's/^/| /' "$ac_site_file" >&5
1921     . "$ac_site_file" \
1922       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1924 as_fn_error $? "failed to load site script $ac_site_file
1925 See \`config.log' for more details" "$LINENO" 5 ; }
1926   fi
1927 done
1928
1929 if test -r "$cache_file"; then
1930   # Some versions of bash will fail to source /dev/null (special files
1931   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1932   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1933     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1934 $as_echo "$as_me: loading cache $cache_file" >&6;}
1935     case $cache_file in
1936       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1937       *)                      . "./$cache_file";;
1938     esac
1939   fi
1940 else
1941   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1942 $as_echo "$as_me: creating cache $cache_file" >&6;}
1943   >$cache_file
1944 fi
1945
1946 gt_needs="$gt_needs "
1947 # Check that the precious variables saved in the cache have kept the same
1948 # value.
1949 ac_cache_corrupted=false
1950 for ac_var in $ac_precious_vars; do
1951   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1952   eval ac_new_set=\$ac_env_${ac_var}_set
1953   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1954   eval ac_new_val=\$ac_env_${ac_var}_value
1955   case $ac_old_set,$ac_new_set in
1956     set,)
1957       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1959       ac_cache_corrupted=: ;;
1960     ,set)
1961       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1962 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1963       ac_cache_corrupted=: ;;
1964     ,);;
1965     *)
1966       if test "x$ac_old_val" != "x$ac_new_val"; then
1967         # differences in whitespace do not lead to failure.
1968         ac_old_val_w=`echo x $ac_old_val`
1969         ac_new_val_w=`echo x $ac_new_val`
1970         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1971           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1972 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1973           ac_cache_corrupted=:
1974         else
1975           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1976 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1977           eval $ac_var=\$ac_old_val
1978         fi
1979         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1980 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1981         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1982 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1983       fi;;
1984   esac
1985   # Pass precious variables to config.status.
1986   if test "$ac_new_set" = set; then
1987     case $ac_new_val in
1988     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1989     *) ac_arg=$ac_var=$ac_new_val ;;
1990     esac
1991     case " $ac_configure_args " in
1992       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1993       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1994     esac
1995   fi
1996 done
1997 if $ac_cache_corrupted; then
1998   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2000   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2001 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2002   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2003 fi
2004 ## -------------------- ##
2005 ## Main body of script. ##
2006 ## -------------------- ##
2007
2008 ac_ext=c
2009 ac_cpp='$CPP $CPPFLAGS'
2010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2013
2014
2015
2016 ac_config_headers="$ac_config_headers config.h"
2017
2018
2019
2020 ac_aux_dir=
2021 for ac_dir in build-aux "$srcdir"/build-aux; do
2022   if test -f "$ac_dir/install-sh"; then
2023     ac_aux_dir=$ac_dir
2024     ac_install_sh="$ac_aux_dir/install-sh -c"
2025     break
2026   elif test -f "$ac_dir/install.sh"; then
2027     ac_aux_dir=$ac_dir
2028     ac_install_sh="$ac_aux_dir/install.sh -c"
2029     break
2030   elif test -f "$ac_dir/shtool"; then
2031     ac_aux_dir=$ac_dir
2032     ac_install_sh="$ac_aux_dir/shtool install -c"
2033     break
2034   fi
2035 done
2036 if test -z "$ac_aux_dir"; then
2037   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2038 fi
2039
2040 # These three variables are undocumented and unsupported,
2041 # and are intended to be withdrawn in a future Autoconf release.
2042 # They can cause serious problems if a builder's source tree is in a directory
2043 # whose full name contains unusual characters.
2044 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2045 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2046 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2047
2048
2049
2050 am__api_version='1.11'
2051
2052 # Find a good install program.  We prefer a C program (faster),
2053 # so one script is as good as another.  But avoid the broken or
2054 # incompatible versions:
2055 # SysV /etc/install, /usr/sbin/install
2056 # SunOS /usr/etc/install
2057 # IRIX /sbin/install
2058 # AIX /bin/install
2059 # AmigaOS /C/install, which installs bootblocks on floppy discs
2060 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2061 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2062 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2063 # OS/2's system install, which has a completely different semantic
2064 # ./install, which can be erroneously created by make from ./install.sh.
2065 # Reject install programs that cannot install multiple files.
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2067 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2068 if test -z "$INSTALL"; then
2069 if test "${ac_cv_path_install+set}" = set; then :
2070   $as_echo_n "(cached) " >&6
2071 else
2072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 for as_dir in $PATH
2074 do
2075   IFS=$as_save_IFS
2076   test -z "$as_dir" && as_dir=.
2077     # Account for people who put trailing slashes in PATH elements.
2078 case $as_dir/ in #((
2079   ./ | .// | /[cC]/* | \
2080   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2081   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2082   /usr/ucb/* ) ;;
2083   *)
2084     # OSF1 and SCO ODT 3.0 have their own names for install.
2085     # Don't use installbsd from OSF since it installs stuff as root
2086     # by default.
2087     for ac_prog in ginstall scoinst install; do
2088       for ac_exec_ext in '' $ac_executable_extensions; do
2089         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2090           if test $ac_prog = install &&
2091             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2092             # AIX install.  It has an incompatible calling convention.
2093             :
2094           elif test $ac_prog = install &&
2095             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2096             # program-specific install script used by HP pwplus--don't use.
2097             :
2098           else
2099             rm -rf conftest.one conftest.two conftest.dir
2100             echo one > conftest.one
2101             echo two > conftest.two
2102             mkdir conftest.dir
2103             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2104               test -s conftest.one && test -s conftest.two &&
2105               test -s conftest.dir/conftest.one &&
2106               test -s conftest.dir/conftest.two
2107             then
2108               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2109               break 3
2110             fi
2111           fi
2112         fi
2113       done
2114     done
2115     ;;
2116 esac
2117
2118   done
2119 IFS=$as_save_IFS
2120
2121 rm -rf conftest.one conftest.two conftest.dir
2122
2123 fi
2124   if test "${ac_cv_path_install+set}" = set; then
2125     INSTALL=$ac_cv_path_install
2126   else
2127     # As a last resort, use the slow shell script.  Don't cache a
2128     # value for INSTALL within a source directory, because that will
2129     # break other packages using the cache if that directory is
2130     # removed, or if the value is a relative name.
2131     INSTALL=$ac_install_sh
2132   fi
2133 fi
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2135 $as_echo "$INSTALL" >&6; }
2136
2137 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2138 # It thinks the first close brace ends the variable substitution.
2139 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2140
2141 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2142
2143 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2144
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2146 $as_echo_n "checking whether build environment is sane... " >&6; }
2147 # Just in case
2148 sleep 1
2149 echo timestamp > conftest.file
2150 # Reject unsafe characters in $srcdir or the absolute working directory
2151 # name.  Accept space and tab only in the latter.
2152 am_lf='
2153 '
2154 case `pwd` in
2155   *[\\\"\#\$\&\'\`$am_lf]*)
2156     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2157 esac
2158 case $srcdir in
2159   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2160     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2161 esac
2162
2163 # Do `set' in a subshell so we don't clobber the current shell's
2164 # arguments.  Must try -L first in case configure is actually a
2165 # symlink; some systems play weird games with the mod time of symlinks
2166 # (eg FreeBSD returns the mod time of the symlink's containing
2167 # directory).
2168 if (
2169    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2170    if test "$*" = "X"; then
2171       # -L didn't work.
2172       set X `ls -t "$srcdir/configure" conftest.file`
2173    fi
2174    rm -f conftest.file
2175    if test "$*" != "X $srcdir/configure conftest.file" \
2176       && test "$*" != "X conftest.file $srcdir/configure"; then
2177
2178       # If neither matched, then we have a broken ls.  This can happen
2179       # if, for instance, CONFIG_SHELL is bash and it inherits a
2180       # broken ls alias from the environment.  This has actually
2181       # happened.  Such a system could not be considered "sane".
2182       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2183 alias in your environment" "$LINENO" 5
2184    fi
2185
2186    test "$2" = conftest.file
2187    )
2188 then
2189    # Ok.
2190    :
2191 else
2192    as_fn_error $? "newly created file is older than distributed files!
2193 Check your system clock" "$LINENO" 5
2194 fi
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2196 $as_echo "yes" >&6; }
2197 test "$program_prefix" != NONE &&
2198   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2199 # Use a double $ so make ignores it.
2200 test "$program_suffix" != NONE &&
2201   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2202 # Double any \ or $.
2203 # By default was `s,x,x', remove it if useless.
2204 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2205 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2206
2207 # expand $ac_aux_dir to an absolute path
2208 am_aux_dir=`cd $ac_aux_dir && pwd`
2209
2210 if test x"${MISSING+set}" != xset; then
2211   case $am_aux_dir in
2212   *\ * | *\     *)
2213     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2214   *)
2215     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2216   esac
2217 fi
2218 # Use eval to expand $SHELL
2219 if eval "$MISSING --run true"; then
2220   am_missing_run="$MISSING --run "
2221 else
2222   am_missing_run=
2223   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2224 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2225 fi
2226
2227 if test x"${install_sh}" != xset; then
2228   case $am_aux_dir in
2229   *\ * | *\     *)
2230     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2231   *)
2232     install_sh="\${SHELL} $am_aux_dir/install-sh"
2233   esac
2234 fi
2235
2236 # Installed binaries are usually stripped using `strip' when the user
2237 # run `make install-strip'.  However `strip' might not be the right
2238 # tool to use in cross-compilation environments, therefore Automake
2239 # will honor the `STRIP' environment variable to overrule this program.
2240 if test "$cross_compiling" != no; then
2241   if test -n "$ac_tool_prefix"; then
2242   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2243 set dummy ${ac_tool_prefix}strip; ac_word=$2
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2245 $as_echo_n "checking for $ac_word... " >&6; }
2246 if test "${ac_cv_prog_STRIP+set}" = set; then :
2247   $as_echo_n "(cached) " >&6
2248 else
2249   if test -n "$STRIP"; then
2250   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2251 else
2252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253 for as_dir in $PATH
2254 do
2255   IFS=$as_save_IFS
2256   test -z "$as_dir" && as_dir=.
2257     for ac_exec_ext in '' $ac_executable_extensions; do
2258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2259     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2261     break 2
2262   fi
2263 done
2264   done
2265 IFS=$as_save_IFS
2266
2267 fi
2268 fi
2269 STRIP=$ac_cv_prog_STRIP
2270 if test -n "$STRIP"; then
2271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2272 $as_echo "$STRIP" >&6; }
2273 else
2274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2275 $as_echo "no" >&6; }
2276 fi
2277
2278
2279 fi
2280 if test -z "$ac_cv_prog_STRIP"; then
2281   ac_ct_STRIP=$STRIP
2282   # Extract the first word of "strip", so it can be a program name with args.
2283 set dummy strip; ac_word=$2
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2285 $as_echo_n "checking for $ac_word... " >&6; }
2286 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2287   $as_echo_n "(cached) " >&6
2288 else
2289   if test -n "$ac_ct_STRIP"; then
2290   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2291 else
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 for as_dir in $PATH
2294 do
2295   IFS=$as_save_IFS
2296   test -z "$as_dir" && as_dir=.
2297     for ac_exec_ext in '' $ac_executable_extensions; do
2298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299     ac_cv_prog_ac_ct_STRIP="strip"
2300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2301     break 2
2302   fi
2303 done
2304   done
2305 IFS=$as_save_IFS
2306
2307 fi
2308 fi
2309 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2310 if test -n "$ac_ct_STRIP"; then
2311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2312 $as_echo "$ac_ct_STRIP" >&6; }
2313 else
2314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2315 $as_echo "no" >&6; }
2316 fi
2317
2318   if test "x$ac_ct_STRIP" = x; then
2319     STRIP=":"
2320   else
2321     case $cross_compiling:$ac_tool_warned in
2322 yes:)
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2325 ac_tool_warned=yes ;;
2326 esac
2327     STRIP=$ac_ct_STRIP
2328   fi
2329 else
2330   STRIP="$ac_cv_prog_STRIP"
2331 fi
2332
2333 fi
2334 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2335
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2337 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2338 if test -z "$MKDIR_P"; then
2339   if test "${ac_cv_path_mkdir+set}" = set; then :
2340   $as_echo_n "(cached) " >&6
2341 else
2342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2344 do
2345   IFS=$as_save_IFS
2346   test -z "$as_dir" && as_dir=.
2347     for ac_prog in mkdir gmkdir; do
2348          for ac_exec_ext in '' $ac_executable_extensions; do
2349            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2350            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2351              'mkdir (GNU coreutils) '* | \
2352              'mkdir (coreutils) '* | \
2353              'mkdir (fileutils) '4.1*)
2354                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2355                break 3;;
2356            esac
2357          done
2358        done
2359   done
2360 IFS=$as_save_IFS
2361
2362 fi
2363
2364   test -d ./--version && rmdir ./--version
2365   if test "${ac_cv_path_mkdir+set}" = set; then
2366     MKDIR_P="$ac_cv_path_mkdir -p"
2367   else
2368     # As a last resort, use the slow shell script.  Don't cache a
2369     # value for MKDIR_P within a source directory, because that will
2370     # break other packages using the cache if that directory is
2371     # removed, or if the value is a relative name.
2372     MKDIR_P="$ac_install_sh -d"
2373   fi
2374 fi
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2376 $as_echo "$MKDIR_P" >&6; }
2377
2378 mkdir_p="$MKDIR_P"
2379 case $mkdir_p in
2380   [\\/$]* | ?:[\\/]*) ;;
2381   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2382 esac
2383
2384 for ac_prog in gawk mawk nawk awk
2385 do
2386   # Extract the first word of "$ac_prog", so it can be a program name with args.
2387 set dummy $ac_prog; ac_word=$2
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2389 $as_echo_n "checking for $ac_word... " >&6; }
2390 if test "${ac_cv_prog_AWK+set}" = set; then :
2391   $as_echo_n "(cached) " >&6
2392 else
2393   if test -n "$AWK"; then
2394   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2398 do
2399   IFS=$as_save_IFS
2400   test -z "$as_dir" && as_dir=.
2401     for ac_exec_ext in '' $ac_executable_extensions; do
2402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2403     ac_cv_prog_AWK="$ac_prog"
2404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2405     break 2
2406   fi
2407 done
2408   done
2409 IFS=$as_save_IFS
2410
2411 fi
2412 fi
2413 AWK=$ac_cv_prog_AWK
2414 if test -n "$AWK"; then
2415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2416 $as_echo "$AWK" >&6; }
2417 else
2418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2419 $as_echo "no" >&6; }
2420 fi
2421
2422
2423   test -n "$AWK" && break
2424 done
2425
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2427 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2428 set x ${MAKE-make}
2429 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2430 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2431   $as_echo_n "(cached) " >&6
2432 else
2433   cat >conftest.make <<\_ACEOF
2434 SHELL = /bin/sh
2435 all:
2436         @echo '@@@%%%=$(MAKE)=@@@%%%'
2437 _ACEOF
2438 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2439 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2440   *@@@%%%=?*=@@@%%%*)
2441     eval ac_cv_prog_make_${ac_make}_set=yes;;
2442   *)
2443     eval ac_cv_prog_make_${ac_make}_set=no;;
2444 esac
2445 rm -f conftest.make
2446 fi
2447 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2449 $as_echo "yes" >&6; }
2450   SET_MAKE=
2451 else
2452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2453 $as_echo "no" >&6; }
2454   SET_MAKE="MAKE=${MAKE-make}"
2455 fi
2456
2457 rm -rf .tst 2>/dev/null
2458 mkdir .tst 2>/dev/null
2459 if test -d .tst; then
2460   am__leading_dot=.
2461 else
2462   am__leading_dot=_
2463 fi
2464 rmdir .tst 2>/dev/null
2465
2466 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2467   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2468   # is not polluted with repeated "-I."
2469   am__isrc=' -I$(srcdir)'
2470   # test to see if srcdir already configured
2471   if test -f $srcdir/config.status; then
2472     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2473   fi
2474 fi
2475
2476 # test whether we have cygpath
2477 if test -z "$CYGPATH_W"; then
2478   if (cygpath --version) >/dev/null 2>/dev/null; then
2479     CYGPATH_W='cygpath -w'
2480   else
2481     CYGPATH_W=echo
2482   fi
2483 fi
2484
2485
2486 # Define the identity of the package.
2487  PACKAGE='moonshot'
2488  VERSION='0.0.1'
2489
2490
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE "$PACKAGE"
2493 _ACEOF
2494
2495
2496 cat >>confdefs.h <<_ACEOF
2497 #define VERSION "$VERSION"
2498 _ACEOF
2499
2500 # Some tools Automake needs.
2501
2502 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2503
2504
2505 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2506
2507
2508 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2509
2510
2511 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2512
2513
2514 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2515
2516 # We need awk for the "check" target.  The system "awk" is bad on
2517 # some platforms.
2518 # Always define AMTAR for backward compatibility.
2519
2520 AMTAR=${AMTAR-"${am_missing_run}tar"}
2521
2522
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2524 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2525 # Loop over all known methods to create a tar archive until one works.
2526 _am_tools='gnutar  pax cpio none'
2527 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2528 # Do not fold the above two line into one, because Tru64 sh and
2529 # Solaris sh will not grok spaces in the rhs of `-'.
2530 for _am_tool in $_am_tools
2531 do
2532   case $_am_tool in
2533   gnutar)
2534     for _am_tar in tar gnutar gtar;
2535     do
2536       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2537    ($_am_tar --version) >&5 2>&5
2538    ac_status=$?
2539    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540    (exit $ac_status); } && break
2541     done
2542     am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2543     am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2544     am__untar="$_am_tar -xf -"
2545     ;;
2546   plaintar)
2547     # Must skip GNU tar: if it does not support --format= it doesn't create
2548     # ustar tarball either.
2549     (tar --version) >/dev/null 2>&1 && continue
2550     am__tar='tar chf - "$$tardir"'
2551     am__tar_='tar chf - "$tardir"'
2552     am__untar='tar xf -'
2553     ;;
2554   pax)
2555     am__tar='pax -L -x pax -w "$$tardir"'
2556     am__tar_='pax -L -x pax -w "$tardir"'
2557     am__untar='pax -r'
2558     ;;
2559   cpio)
2560     am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2561     am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2562     am__untar='cpio -i -H pax -d'
2563     ;;
2564   none)
2565     am__tar=false
2566     am__tar_=false
2567     am__untar=false
2568     ;;
2569   esac
2570
2571   # If the value was cached, stop now.  We just wanted to have am__tar
2572   # and am__untar set.
2573   test -n "${am_cv_prog_tar_pax}" && break
2574
2575   # tar/untar a dummy directory, and stop if the command works
2576   rm -rf conftest.dir
2577   mkdir conftest.dir
2578   echo GrepMe > conftest.dir/file
2579   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2580    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2581    ac_status=$?
2582    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583    (exit $ac_status); }
2584   rm -rf conftest.dir
2585   if test -s conftest.tar; then
2586     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2587    ($am__untar <conftest.tar) >&5 2>&5
2588    ac_status=$?
2589    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590    (exit $ac_status); }
2591     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2592   fi
2593 done
2594 rm -rf conftest.dir
2595
2596 if test "${am_cv_prog_tar_pax+set}" = set; then :
2597   $as_echo_n "(cached) " >&6
2598 else
2599   am_cv_prog_tar_pax=$_am_tool
2600 fi
2601
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2603 $as_echo "$am_cv_prog_tar_pax" >&6; }
2604
2605
2606
2607
2608
2609 # Check whether --enable-silent-rules was given.
2610 if test "${enable_silent_rules+set}" = set; then :
2611   enableval=$enable_silent_rules;
2612 fi
2613
2614 case $enable_silent_rules in
2615 yes) AM_DEFAULT_VERBOSITY=0;;
2616 no)  AM_DEFAULT_VERBOSITY=1;;
2617 *)   AM_DEFAULT_VERBOSITY=0;;
2618 esac
2619 AM_BACKSLASH='\'
2620
2621
2622 # Checks for programs.
2623 ac_ext=c
2624 ac_cpp='$CPP $CPPFLAGS'
2625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2628 if test -n "$ac_tool_prefix"; then
2629   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2630 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2632 $as_echo_n "checking for $ac_word... " >&6; }
2633 if test "${ac_cv_prog_CC+set}" = set; then :
2634   $as_echo_n "(cached) " >&6
2635 else
2636   if test -n "$CC"; then
2637   ac_cv_prog_CC="$CC" # Let the user override the test.
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2641 do
2642   IFS=$as_save_IFS
2643   test -z "$as_dir" && as_dir=.
2644     for ac_exec_ext in '' $ac_executable_extensions; do
2645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2646     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2648     break 2
2649   fi
2650 done
2651   done
2652 IFS=$as_save_IFS
2653
2654 fi
2655 fi
2656 CC=$ac_cv_prog_CC
2657 if test -n "$CC"; then
2658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2659 $as_echo "$CC" >&6; }
2660 else
2661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2662 $as_echo "no" >&6; }
2663 fi
2664
2665
2666 fi
2667 if test -z "$ac_cv_prog_CC"; then
2668   ac_ct_CC=$CC
2669   # Extract the first word of "gcc", so it can be a program name with args.
2670 set dummy gcc; ac_word=$2
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672 $as_echo_n "checking for $ac_word... " >&6; }
2673 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2674   $as_echo_n "(cached) " >&6
2675 else
2676   if test -n "$ac_ct_CC"; then
2677   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2678 else
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2681 do
2682   IFS=$as_save_IFS
2683   test -z "$as_dir" && as_dir=.
2684     for ac_exec_ext in '' $ac_executable_extensions; do
2685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2686     ac_cv_prog_ac_ct_CC="gcc"
2687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688     break 2
2689   fi
2690 done
2691   done
2692 IFS=$as_save_IFS
2693
2694 fi
2695 fi
2696 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2697 if test -n "$ac_ct_CC"; then
2698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2699 $as_echo "$ac_ct_CC" >&6; }
2700 else
2701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 $as_echo "no" >&6; }
2703 fi
2704
2705   if test "x$ac_ct_CC" = x; then
2706     CC=""
2707   else
2708     case $cross_compiling:$ac_tool_warned in
2709 yes:)
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2712 ac_tool_warned=yes ;;
2713 esac
2714     CC=$ac_ct_CC
2715   fi
2716 else
2717   CC="$ac_cv_prog_CC"
2718 fi
2719
2720 if test -z "$CC"; then
2721           if test -n "$ac_tool_prefix"; then
2722     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2723 set dummy ${ac_tool_prefix}cc; ac_word=$2
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if test "${ac_cv_prog_CC+set}" = set; then :
2727   $as_echo_n "(cached) " >&6
2728 else
2729   if test -n "$CC"; then
2730   ac_cv_prog_CC="$CC" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735   IFS=$as_save_IFS
2736   test -z "$as_dir" && as_dir=.
2737     for ac_exec_ext in '' $ac_executable_extensions; do
2738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739     ac_cv_prog_CC="${ac_tool_prefix}cc"
2740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741     break 2
2742   fi
2743 done
2744   done
2745 IFS=$as_save_IFS
2746
2747 fi
2748 fi
2749 CC=$ac_cv_prog_CC
2750 if test -n "$CC"; then
2751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2752 $as_echo "$CC" >&6; }
2753 else
2754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2756 fi
2757
2758
2759   fi
2760 fi
2761 if test -z "$CC"; then
2762   # Extract the first word of "cc", so it can be a program name with args.
2763 set dummy cc; ac_word=$2
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if test "${ac_cv_prog_CC+set}" = set; then :
2767   $as_echo_n "(cached) " >&6
2768 else
2769   if test -n "$CC"; then
2770   ac_cv_prog_CC="$CC" # Let the user override the test.
2771 else
2772   ac_prog_rejected=no
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2775 do
2776   IFS=$as_save_IFS
2777   test -z "$as_dir" && as_dir=.
2778     for ac_exec_ext in '' $ac_executable_extensions; do
2779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2780     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2781        ac_prog_rejected=yes
2782        continue
2783      fi
2784     ac_cv_prog_CC="cc"
2785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786     break 2
2787   fi
2788 done
2789   done
2790 IFS=$as_save_IFS
2791
2792 if test $ac_prog_rejected = yes; then
2793   # We found a bogon in the path, so make sure we never use it.
2794   set dummy $ac_cv_prog_CC
2795   shift
2796   if test $# != 0; then
2797     # We chose a different compiler from the bogus one.
2798     # However, it has the same basename, so the bogon will be chosen
2799     # first if we set CC to just the basename; use the full file name.
2800     shift
2801     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2802   fi
2803 fi
2804 fi
2805 fi
2806 CC=$ac_cv_prog_CC
2807 if test -n "$CC"; then
2808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2809 $as_echo "$CC" >&6; }
2810 else
2811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812 $as_echo "no" >&6; }
2813 fi
2814
2815
2816 fi
2817 if test -z "$CC"; then
2818   if test -n "$ac_tool_prefix"; then
2819   for ac_prog in cl.exe
2820   do
2821     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if test "${ac_cv_prog_CC+set}" = set; then :
2826   $as_echo_n "(cached) " >&6
2827 else
2828   if test -n "$CC"; then
2829   ac_cv_prog_CC="$CC" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834   IFS=$as_save_IFS
2835   test -z "$as_dir" && as_dir=.
2836     for ac_exec_ext in '' $ac_executable_extensions; do
2837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840     break 2
2841   fi
2842 done
2843   done
2844 IFS=$as_save_IFS
2845
2846 fi
2847 fi
2848 CC=$ac_cv_prog_CC
2849 if test -n "$CC"; then
2850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2851 $as_echo "$CC" >&6; }
2852 else
2853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855 fi
2856
2857
2858     test -n "$CC" && break
2859   done
2860 fi
2861 if test -z "$CC"; then
2862   ac_ct_CC=$CC
2863   for ac_prog in cl.exe
2864 do
2865   # Extract the first word of "$ac_prog", so it can be a program name with args.
2866 set dummy $ac_prog; ac_word=$2
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 $as_echo_n "checking for $ac_word... " >&6; }
2869 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2870   $as_echo_n "(cached) " >&6
2871 else
2872   if test -n "$ac_ct_CC"; then
2873   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878   IFS=$as_save_IFS
2879   test -z "$as_dir" && as_dir=.
2880     for ac_exec_ext in '' $ac_executable_extensions; do
2881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2882     ac_cv_prog_ac_ct_CC="$ac_prog"
2883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884     break 2
2885   fi
2886 done
2887   done
2888 IFS=$as_save_IFS
2889
2890 fi
2891 fi
2892 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2893 if test -n "$ac_ct_CC"; then
2894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2895 $as_echo "$ac_ct_CC" >&6; }
2896 else
2897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 $as_echo "no" >&6; }
2899 fi
2900
2901
2902   test -n "$ac_ct_CC" && break
2903 done
2904
2905   if test "x$ac_ct_CC" = x; then
2906     CC=""
2907   else
2908     case $cross_compiling:$ac_tool_warned in
2909 yes:)
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2912 ac_tool_warned=yes ;;
2913 esac
2914     CC=$ac_ct_CC
2915   fi
2916 fi
2917
2918 fi
2919
2920
2921 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2923 as_fn_error $? "no acceptable C compiler found in \$PATH
2924 See \`config.log' for more details" "$LINENO" 5 ; }
2925
2926 # Provide some information about the compiler.
2927 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2928 set X $ac_compile
2929 ac_compiler=$2
2930 for ac_option in --version -v -V -qversion; do
2931   { { ac_try="$ac_compiler $ac_option >&5"
2932 case "(($ac_try" in
2933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934   *) ac_try_echo=$ac_try;;
2935 esac
2936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2937 $as_echo "$ac_try_echo"; } >&5
2938   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2939   ac_status=$?
2940   if test -s conftest.err; then
2941     sed '10a\
2942 ... rest of stderr output deleted ...
2943          10q' conftest.err >conftest.er1
2944     cat conftest.er1 >&5
2945   fi
2946   rm -f conftest.er1 conftest.err
2947   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2948   test $ac_status = 0; }
2949 done
2950
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h.  */
2953
2954 int
2955 main ()
2956 {
2957
2958   ;
2959   return 0;
2960 }
2961 _ACEOF
2962 ac_clean_files_save=$ac_clean_files
2963 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2964 # Try to create an executable without -o first, disregard a.out.
2965 # It will help us diagnose broken compilers, and finding out an intuition
2966 # of exeext.
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2968 $as_echo_n "checking whether the C compiler works... " >&6; }
2969 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2970
2971 # The possible output files:
2972 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2973
2974 ac_rmfiles=
2975 for ac_file in $ac_files
2976 do
2977   case $ac_file in
2978     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2979     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2980   esac
2981 done
2982 rm -f $ac_rmfiles
2983
2984 if { { ac_try="$ac_link_default"
2985 case "(($ac_try" in
2986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987   *) ac_try_echo=$ac_try;;
2988 esac
2989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990 $as_echo "$ac_try_echo"; } >&5
2991   (eval "$ac_link_default") 2>&5
2992   ac_status=$?
2993   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994   test $ac_status = 0; }; then :
2995   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2996 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2997 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2998 # so that the user can short-circuit this test for compilers unknown to
2999 # Autoconf.
3000 for ac_file in $ac_files ''
3001 do
3002   test -f "$ac_file" || continue
3003   case $ac_file in
3004     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3005         ;;
3006     [ab].out )
3007         # We found the default executable, but exeext='' is most
3008         # certainly right.
3009         break;;
3010     *.* )
3011         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3012         then :; else
3013            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3014         fi
3015         # We set ac_cv_exeext here because the later test for it is not
3016         # safe: cross compilers may not add the suffix if given an `-o'
3017         # argument, so we may need to know it at that point already.
3018         # Even if this section looks crufty: it has the advantage of
3019         # actually working.
3020         break;;
3021     * )
3022         break;;
3023   esac
3024 done
3025 test "$ac_cv_exeext" = no && ac_cv_exeext=
3026
3027 else
3028   ac_file=''
3029 fi
3030 if test -z "$ac_file"; then :
3031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3033 $as_echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3035
3036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038 as_fn_error 77 "C compiler cannot create executables
3039 See \`config.log' for more details" "$LINENO" 5 ; }
3040 else
3041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3042 $as_echo "yes" >&6; }
3043 fi
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3045 $as_echo_n "checking for C compiler default output file name... " >&6; }
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3047 $as_echo "$ac_file" >&6; }
3048 ac_exeext=$ac_cv_exeext
3049
3050 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3051 ac_clean_files=$ac_clean_files_save
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3053 $as_echo_n "checking for suffix of executables... " >&6; }
3054 if { { ac_try="$ac_link"
3055 case "(($ac_try" in
3056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057   *) ac_try_echo=$ac_try;;
3058 esac
3059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060 $as_echo "$ac_try_echo"; } >&5
3061   (eval "$ac_link") 2>&5
3062   ac_status=$?
3063   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064   test $ac_status = 0; }; then :
3065   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3066 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3067 # work properly (i.e., refer to `conftest.exe'), while it won't with
3068 # `rm'.
3069 for ac_file in conftest.exe conftest conftest.*; do
3070   test -f "$ac_file" || continue
3071   case $ac_file in
3072     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3073     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3074           break;;
3075     * ) break;;
3076   esac
3077 done
3078 else
3079   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3082 See \`config.log' for more details" "$LINENO" 5 ; }
3083 fi
3084 rm -f conftest conftest$ac_cv_exeext
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3086 $as_echo "$ac_cv_exeext" >&6; }
3087
3088 rm -f conftest.$ac_ext
3089 EXEEXT=$ac_cv_exeext
3090 ac_exeext=$EXEEXT
3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092 /* end confdefs.h.  */
3093 #include <stdio.h>
3094 int
3095 main ()
3096 {
3097 FILE *f = fopen ("conftest.out", "w");
3098  return ferror (f) || fclose (f) != 0;
3099
3100   ;
3101   return 0;
3102 }
3103 _ACEOF
3104 ac_clean_files="$ac_clean_files conftest.out"
3105 # Check that the compiler produces executables we can run.  If not, either
3106 # the compiler is broken, or we cross compile.
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3108 $as_echo_n "checking whether we are cross compiling... " >&6; }
3109 if test "$cross_compiling" != yes; then
3110   { { ac_try="$ac_link"
3111 case "(($ac_try" in
3112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113   *) ac_try_echo=$ac_try;;
3114 esac
3115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116 $as_echo "$ac_try_echo"; } >&5
3117   (eval "$ac_link") 2>&5
3118   ac_status=$?
3119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120   test $ac_status = 0; }
3121   if { ac_try='./conftest$ac_cv_exeext'
3122   { { case "(($ac_try" in
3123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124   *) ac_try_echo=$ac_try;;
3125 esac
3126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127 $as_echo "$ac_try_echo"; } >&5
3128   (eval "$ac_try") 2>&5
3129   ac_status=$?
3130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131   test $ac_status = 0; }; }; then
3132     cross_compiling=no
3133   else
3134     if test "$cross_compiling" = maybe; then
3135         cross_compiling=yes
3136     else
3137         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 as_fn_error $? "cannot run C compiled programs.
3140 If you meant to cross compile, use \`--host'.
3141 See \`config.log' for more details" "$LINENO" 5 ; }
3142     fi
3143   fi
3144 fi
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3146 $as_echo "$cross_compiling" >&6; }
3147
3148 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3149 ac_clean_files=$ac_clean_files_save
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3151 $as_echo_n "checking for suffix of object files... " >&6; }
3152 if test "${ac_cv_objext+set}" = set; then :
3153   $as_echo_n "(cached) " >&6
3154 else
3155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156 /* end confdefs.h.  */
3157
3158 int
3159 main ()
3160 {
3161
3162   ;
3163   return 0;
3164 }
3165 _ACEOF
3166 rm -f conftest.o conftest.obj
3167 if { { ac_try="$ac_compile"
3168 case "(($ac_try" in
3169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170   *) ac_try_echo=$ac_try;;
3171 esac
3172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3173 $as_echo "$ac_try_echo"; } >&5
3174   (eval "$ac_compile") 2>&5
3175   ac_status=$?
3176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3177   test $ac_status = 0; }; then :
3178   for ac_file in conftest.o conftest.obj conftest.*; do
3179   test -f "$ac_file" || continue;
3180   case $ac_file in
3181     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3182     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3183        break;;
3184   esac
3185 done
3186 else
3187   $as_echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3189
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error $? "cannot compute suffix of object files: cannot compile
3193 See \`config.log' for more details" "$LINENO" 5 ; }
3194 fi
3195 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3196 fi
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3198 $as_echo "$ac_cv_objext" >&6; }
3199 OBJEXT=$ac_cv_objext
3200 ac_objext=$OBJEXT
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3202 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3203 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3204   $as_echo_n "(cached) " >&6
3205 else
3206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h.  */
3208
3209 int
3210 main ()
3211 {
3212 #ifndef __GNUC__
3213        choke me
3214 #endif
3215
3216   ;
3217   return 0;
3218 }
3219 _ACEOF
3220 if ac_fn_c_try_compile "$LINENO"; then :
3221   ac_compiler_gnu=yes
3222 else
3223   ac_compiler_gnu=no
3224 fi
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3227
3228 fi
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3230 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3231 if test $ac_compiler_gnu = yes; then
3232   GCC=yes
3233 else
3234   GCC=
3235 fi
3236 ac_test_CFLAGS=${CFLAGS+set}
3237 ac_save_CFLAGS=$CFLAGS
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3239 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3240 if test "${ac_cv_prog_cc_g+set}" = set; then :
3241   $as_echo_n "(cached) " >&6
3242 else
3243   ac_save_c_werror_flag=$ac_c_werror_flag
3244    ac_c_werror_flag=yes
3245    ac_cv_prog_cc_g=no
3246    CFLAGS="-g"
3247    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h.  */
3249
3250 int
3251 main ()
3252 {
3253
3254   ;
3255   return 0;
3256 }
3257 _ACEOF
3258 if ac_fn_c_try_compile "$LINENO"; then :
3259   ac_cv_prog_cc_g=yes
3260 else
3261   CFLAGS=""
3262       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h.  */
3264
3265 int
3266 main ()
3267 {
3268
3269   ;
3270   return 0;
3271 }
3272 _ACEOF
3273 if ac_fn_c_try_compile "$LINENO"; then :
3274
3275 else
3276   ac_c_werror_flag=$ac_save_c_werror_flag
3277          CFLAGS="-g"
3278          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h.  */
3280
3281 int
3282 main ()
3283 {
3284
3285   ;
3286   return 0;
3287 }
3288 _ACEOF
3289 if ac_fn_c_try_compile "$LINENO"; then :
3290   ac_cv_prog_cc_g=yes
3291 fi
3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293 fi
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295 fi
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297    ac_c_werror_flag=$ac_save_c_werror_flag
3298 fi
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3300 $as_echo "$ac_cv_prog_cc_g" >&6; }
3301 if test "$ac_test_CFLAGS" = set; then
3302   CFLAGS=$ac_save_CFLAGS
3303 elif test $ac_cv_prog_cc_g = yes; then
3304   if test "$GCC" = yes; then
3305     CFLAGS="-g -O2"
3306   else
3307     CFLAGS="-g"
3308   fi
3309 else
3310   if test "$GCC" = yes; then
3311     CFLAGS="-O2"
3312   else
3313     CFLAGS=
3314   fi
3315 fi
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3317 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3318 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3319   $as_echo_n "(cached) " >&6
3320 else
3321   ac_cv_prog_cc_c89=no
3322 ac_save_CC=$CC
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h.  */
3325 #include <stdarg.h>
3326 #include <stdio.h>
3327 #include <sys/types.h>
3328 #include <sys/stat.h>
3329 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3330 struct buf { int x; };
3331 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3332 static char *e (p, i)
3333      char **p;
3334      int i;
3335 {
3336   return p[i];
3337 }
3338 static char *f (char * (*g) (char **, int), char **p, ...)
3339 {
3340   char *s;
3341   va_list v;
3342   va_start (v,p);
3343   s = g (p, va_arg (v,int));
3344   va_end (v);
3345   return s;
3346 }
3347
3348 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3349    function prototypes and stuff, but not '\xHH' hex character constants.
3350    These don't provoke an error unfortunately, instead are silently treated
3351    as 'x'.  The following induces an error, until -std is added to get
3352    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3353    array size at least.  It's necessary to write '\x00'==0 to get something
3354    that's true only with -std.  */
3355 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3356
3357 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3358    inside strings and character constants.  */
3359 #define FOO(x) 'x'
3360 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3361
3362 int test (int i, double x);
3363 struct s1 {int (*f) (int a);};
3364 struct s2 {int (*f) (double a);};
3365 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3366 int argc;
3367 char **argv;
3368 int
3369 main ()
3370 {
3371 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3372   ;
3373   return 0;
3374 }
3375 _ACEOF
3376 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3377         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3378 do
3379   CC="$ac_save_CC $ac_arg"
3380   if ac_fn_c_try_compile "$LINENO"; then :
3381   ac_cv_prog_cc_c89=$ac_arg
3382 fi
3383 rm -f core conftest.err conftest.$ac_objext
3384   test "x$ac_cv_prog_cc_c89" != "xno" && break
3385 done
3386 rm -f conftest.$ac_ext
3387 CC=$ac_save_CC
3388
3389 fi
3390 # AC_CACHE_VAL
3391 case "x$ac_cv_prog_cc_c89" in
3392   x)
3393     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3394 $as_echo "none needed" >&6; } ;;
3395   xno)
3396     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3397 $as_echo "unsupported" >&6; } ;;
3398   *)
3399     CC="$CC $ac_cv_prog_cc_c89"
3400     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3401 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3402 esac
3403 if test "x$ac_cv_prog_cc_c89" != xno; then :
3404
3405 fi
3406
3407 ac_ext=c
3408 ac_cpp='$CPP $CPPFLAGS'
3409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412 DEPDIR="${am__leading_dot}deps"
3413
3414 ac_config_commands="$ac_config_commands depfiles"
3415
3416
3417 am_make=${MAKE-make}
3418 cat > confinc << 'END'
3419 am__doit:
3420         @echo this is the am__doit target
3421 .PHONY: am__doit
3422 END
3423 # If we don't find an include directive, just comment out the code.
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3425 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3426 am__include="#"
3427 am__quote=
3428 _am_result=none
3429 # First try GNU make style include.
3430 echo "include confinc" > confmf
3431 # Ignore all kinds of additional output from `make'.
3432 case `$am_make -s -f confmf 2> /dev/null` in #(
3433 *the\ am__doit\ target*)
3434   am__include=include
3435   am__quote=
3436   _am_result=GNU
3437   ;;
3438 esac
3439 # Now try BSD make style include.
3440 if test "$am__include" = "#"; then
3441    echo '.include "confinc"' > confmf
3442    case `$am_make -s -f confmf 2> /dev/null` in #(
3443    *the\ am__doit\ target*)
3444      am__include=.include
3445      am__quote="\""
3446      _am_result=BSD
3447      ;;
3448    esac
3449 fi
3450
3451
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3453 $as_echo "$_am_result" >&6; }
3454 rm -f confinc confmf
3455
3456 # Check whether --enable-dependency-tracking was given.
3457 if test "${enable_dependency_tracking+set}" = set; then :
3458   enableval=$enable_dependency_tracking;
3459 fi
3460
3461 if test "x$enable_dependency_tracking" != xno; then
3462   am_depcomp="$ac_aux_dir/depcomp"
3463   AMDEPBACKSLASH='\'
3464 fi
3465  if test "x$enable_dependency_tracking" != xno; then
3466   AMDEP_TRUE=
3467   AMDEP_FALSE='#'
3468 else
3469   AMDEP_TRUE='#'
3470   AMDEP_FALSE=
3471 fi
3472
3473
3474
3475 depcc="$CC"   am_compiler_list=
3476
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3478 $as_echo_n "checking dependency style of $depcc... " >&6; }
3479 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3480   $as_echo_n "(cached) " >&6
3481 else
3482   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3483   # We make a subdir and do the tests there.  Otherwise we can end up
3484   # making bogus files that we don't know about and never remove.  For
3485   # instance it was reported that on HP-UX the gcc test will end up
3486   # making a dummy file named `D' -- because `-MD' means `put the output
3487   # in D'.
3488   mkdir conftest.dir
3489   # Copy depcomp to subdir because otherwise we won't find it if we're
3490   # using a relative directory.
3491   cp "$am_depcomp" conftest.dir
3492   cd conftest.dir
3493   # We will build objects and dependencies in a subdirectory because
3494   # it helps to detect inapplicable dependency modes.  For instance
3495   # both Tru64's cc and ICC support -MD to output dependencies as a
3496   # side effect of compilation, but ICC will put the dependencies in
3497   # the current directory while Tru64 will put them in the object
3498   # directory.
3499   mkdir sub
3500
3501   am_cv_CC_dependencies_compiler_type=none
3502   if test "$am_compiler_list" = ""; then
3503      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3504   fi
3505   am__universal=false
3506   case " $depcc " in #(
3507      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3508      esac
3509
3510   for depmode in $am_compiler_list; do
3511     # Setup a source with many dependencies, because some compilers
3512     # like to wrap large dependency lists on column 80 (with \), and
3513     # we should not choose a depcomp mode which is confused by this.
3514     #
3515     # We need to recreate these files for each test, as the compiler may
3516     # overwrite some of them when testing with obscure command lines.
3517     # This happens at least with the AIX C compiler.
3518     : > sub/conftest.c
3519     for i in 1 2 3 4 5 6; do
3520       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3521       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3522       # Solaris 8's {/usr,}/bin/sh.
3523       touch sub/conftst$i.h
3524     done
3525     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3526
3527     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3528     # mode.  It turns out that the SunPro C++ compiler does not properly
3529     # handle `-M -o', and we need to detect this.  Also, some Intel
3530     # versions had trouble with output in subdirs
3531     am__obj=sub/conftest.${OBJEXT-o}
3532     am__minus_obj="-o $am__obj"
3533     case $depmode in
3534     gcc)
3535       # This depmode causes a compiler race in universal mode.
3536       test "$am__universal" = false || continue
3537       ;;
3538     nosideeffect)
3539       # after this tag, mechanisms are not by side-effect, so they'll
3540       # only be used when explicitly requested
3541       if test "x$enable_dependency_tracking" = xyes; then
3542         continue
3543       else
3544         break
3545       fi
3546       ;;
3547     msvisualcpp | msvcmsys)
3548       # This compiler won't grok `-c -o', but also, the minuso test has
3549       # not run yet.  These depmodes are late enough in the game, and
3550       # so weak that their functioning should not be impacted.
3551       am__obj=conftest.${OBJEXT-o}
3552       am__minus_obj=
3553       ;;
3554     none) break ;;
3555     esac
3556     if depmode=$depmode \
3557        source=sub/conftest.c object=$am__obj \
3558        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3559        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3560          >/dev/null 2>conftest.err &&
3561        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3562        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3563        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3564        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3565       # icc doesn't choke on unknown options, it will just issue warnings
3566       # or remarks (even with -Werror).  So we grep stderr for any message
3567       # that says an option was ignored or not supported.
3568       # When given -MP, icc 7.0 and 7.1 complain thusly:
3569       #   icc: Command line warning: ignoring option '-M'; no argument required
3570       # The diagnosis changed in icc 8.0:
3571       #   icc: Command line remark: option '-MP' not supported
3572       if (grep 'ignoring option' conftest.err ||
3573           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3574         am_cv_CC_dependencies_compiler_type=$depmode
3575         break
3576       fi
3577     fi
3578   done
3579
3580   cd ..
3581   rm -rf conftest.dir
3582 else
3583   am_cv_CC_dependencies_compiler_type=none
3584 fi
3585
3586 fi
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3588 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3589 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3590
3591  if
3592   test "x$enable_dependency_tracking" != xno \
3593   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3594   am__fastdepCC_TRUE=
3595   am__fastdepCC_FALSE='#'
3596 else
3597   am__fastdepCC_TRUE='#'
3598   am__fastdepCC_FALSE=
3599 fi
3600
3601
3602 if test "x$CC" != xcc; then
3603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3604 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3605 else
3606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3607 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3608 fi
3609 set dummy $CC; ac_cc=`$as_echo "$2" |
3610                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3611 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
3612   $as_echo_n "(cached) " >&6
3613 else
3614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h.  */
3616
3617 int
3618 main ()
3619 {
3620
3621   ;
3622   return 0;
3623 }
3624 _ACEOF
3625 # Make sure it works both with $CC and with simple cc.
3626 # We do the test twice because some compilers refuse to overwrite an
3627 # existing .o file with -o, though they will create one.
3628 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3629 rm -f conftest2.*
3630 if { { case "(($ac_try" in
3631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632   *) ac_try_echo=$ac_try;;
3633 esac
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636   (eval "$ac_try") 2>&5
3637   ac_status=$?
3638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639   test $ac_status = 0; } &&
3640    test -f conftest2.$ac_objext && { { case "(($ac_try" in
3641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642   *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645 $as_echo "$ac_try_echo"; } >&5
3646   (eval "$ac_try") 2>&5
3647   ac_status=$?
3648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649   test $ac_status = 0; };
3650 then
3651   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3652   if test "x$CC" != xcc; then
3653     # Test first that cc exists at all.
3654     if { ac_try='cc -c conftest.$ac_ext >&5'
3655   { { case "(($ac_try" in
3656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657   *) ac_try_echo=$ac_try;;
3658 esac
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661   (eval "$ac_try") 2>&5
3662   ac_status=$?
3663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664   test $ac_status = 0; }; }; then
3665       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3666       rm -f conftest2.*
3667       if { { case "(($ac_try" in
3668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669   *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 $as_echo "$ac_try_echo"; } >&5
3673   (eval "$ac_try") 2>&5
3674   ac_status=$?
3675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676   test $ac_status = 0; } &&
3677          test -f conftest2.$ac_objext && { { case "(($ac_try" in
3678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679   *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683   (eval "$ac_try") 2>&5
3684   ac_status=$?
3685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686   test $ac_status = 0; };
3687       then
3688         # cc works too.
3689         :
3690       else
3691         # cc exists but doesn't like -o.
3692         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3693       fi
3694     fi
3695   fi
3696 else
3697   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3698 fi
3699 rm -f core conftest*
3700
3701 fi
3702 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3704 $as_echo "yes" >&6; }
3705 else
3706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3708
3709 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3710
3711 fi
3712
3713 # FIXME: we rely on the cache variable name because
3714 # there is no other way.
3715 set dummy $CC
3716 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3717 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3718 if test "$am_t" != yes; then
3719    # Losing compiler, so override with the script.
3720    # FIXME: It is wrong to rewrite CC.
3721    # But if we don't then we get into trouble of one sort or another.
3722    # A longer-term fix would be to have automake use am__CC in this case,
3723    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3724    CC="$am_aux_dir/compile $CC"
3725 fi
3726
3727
3728 # Extract the first word of "valac", so it can be a program name with args.
3729 set dummy valac; ac_word=$2
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731 $as_echo_n "checking for $ac_word... " >&6; }
3732 if test "${ac_cv_path_VALAC+set}" = set; then :
3733   $as_echo_n "(cached) " >&6
3734 else
3735   case $VALAC in
3736   [\\/]* | ?:[\\/]*)
3737   ac_cv_path_VALAC="$VALAC" # Let the user override the test with a path.
3738   ;;
3739   *)
3740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743   IFS=$as_save_IFS
3744   test -z "$as_dir" && as_dir=.
3745     for ac_exec_ext in '' $ac_executable_extensions; do
3746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747     ac_cv_path_VALAC="$as_dir/$ac_word$ac_exec_ext"
3748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3749     break 2
3750   fi
3751 done
3752   done
3753 IFS=$as_save_IFS
3754
3755   ;;
3756 esac
3757 fi
3758 VALAC=$ac_cv_path_VALAC
3759 if test -n "$VALAC"; then
3760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALAC" >&5
3761 $as_echo "$VALAC" >&6; }
3762 else
3763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3765 fi
3766
3767
3768  if test -z "$VALAC"; then :
3769   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Vala compiler found.  You will not be able to compile .vala source files." >&5
3770 $as_echo "$as_me: WARNING: No Vala compiler found.  You will not be able to compile .vala source files." >&2;}
3771 else
3772   if test -n "0.9"; then :
3773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VALAC is at least version 0.9" >&5
3774 $as_echo_n "checking $VALAC is at least version 0.9... " >&6; }
3775        am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
3776        as_arg_v1=0.9
3777 as_arg_v2="$am__vala_version"
3778 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
3779 case $? in #(
3780   1) :
3781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3782 $as_echo "yes" >&6; } ;; #(
3783   0) :
3784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3785 $as_echo "yes" >&6; } ;; #(
3786   2) :
3787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 $as_echo "no" >&6; }
3789           as_fn_error $? "Vala 0.9 not found." "$LINENO" 5  ;; #(
3790   *) :
3791      ;;
3792 esac
3793 fi
3794 fi
3795
3796
3797 # Dependencies
3798
3799
3800
3801
3802
3803
3804 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3805         if test -n "$ac_tool_prefix"; then
3806   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3807 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3809 $as_echo_n "checking for $ac_word... " >&6; }
3810 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
3811   $as_echo_n "(cached) " >&6
3812 else
3813   case $PKG_CONFIG in
3814   [\\/]* | ?:[\\/]*)
3815   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3816   ;;
3817   *)
3818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 for as_dir in $PATH
3820 do
3821   IFS=$as_save_IFS
3822   test -z "$as_dir" && as_dir=.
3823     for ac_exec_ext in '' $ac_executable_extensions; do
3824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3825     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3827     break 2
3828   fi
3829 done
3830   done
3831 IFS=$as_save_IFS
3832
3833   ;;
3834 esac
3835 fi
3836 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3837 if test -n "$PKG_CONFIG"; then
3838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3839 $as_echo "$PKG_CONFIG" >&6; }
3840 else
3841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3842 $as_echo "no" >&6; }
3843 fi
3844
3845
3846 fi
3847 if test -z "$ac_cv_path_PKG_CONFIG"; then
3848   ac_pt_PKG_CONFIG=$PKG_CONFIG
3849   # Extract the first word of "pkg-config", so it can be a program name with args.
3850 set dummy pkg-config; ac_word=$2
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852 $as_echo_n "checking for $ac_word... " >&6; }
3853 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
3854   $as_echo_n "(cached) " >&6
3855 else
3856   case $ac_pt_PKG_CONFIG in
3857   [\\/]* | ?:[\\/]*)
3858   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3859   ;;
3860   *)
3861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864   IFS=$as_save_IFS
3865   test -z "$as_dir" && as_dir=.
3866     for ac_exec_ext in '' $ac_executable_extensions; do
3867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3868     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3870     break 2
3871   fi
3872 done
3873   done
3874 IFS=$as_save_IFS
3875
3876   ;;
3877 esac
3878 fi
3879 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3880 if test -n "$ac_pt_PKG_CONFIG"; then
3881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3882 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3883 else
3884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3886 fi
3887
3888   if test "x$ac_pt_PKG_CONFIG" = x; then
3889     PKG_CONFIG=""
3890   else
3891     case $cross_compiling:$ac_tool_warned in
3892 yes:)
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3895 ac_tool_warned=yes ;;
3896 esac
3897     PKG_CONFIG=$ac_pt_PKG_CONFIG
3898   fi
3899 else
3900   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3901 fi
3902
3903 fi
3904 if test -n "$PKG_CONFIG"; then
3905         _pkg_min_version=0.9.0
3906         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3907 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3908         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3909                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3910 $as_echo "yes" >&6; }
3911         else
3912                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 $as_echo "no" >&6; }
3914                 PKG_CONFIG=""
3915         fi
3916 fi
3917
3918 pkg_failed=no
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot" >&5
3920 $as_echo_n "checking for moonshot... " >&6; }
3921
3922 if test -n "$moonshot_CFLAGS"; then
3923     pkg_cv_moonshot_CFLAGS="$moonshot_CFLAGS"
3924  elif test -n "$PKG_CONFIG"; then
3925     if test -n "$PKG_CONFIG" && \
3926     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
3927         atk >= 1.20
3928         glib-2.0 >= 2.26
3929         gobject-2.0 >= 2.26
3930         gtk+-2.0 >= 2.22
3931 \""; } >&5
3932   ($PKG_CONFIG --exists --print-errors "
3933         atk >= 1.20
3934         glib-2.0 >= 2.26
3935         gobject-2.0 >= 2.26
3936         gtk+-2.0 >= 2.22
3937 ") 2>&5
3938   ac_status=$?
3939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940   test $ac_status = 0; }; then
3941   pkg_cv_moonshot_CFLAGS=`$PKG_CONFIG --cflags "
3942         atk >= 1.20
3943         glib-2.0 >= 2.26
3944         gobject-2.0 >= 2.26
3945         gtk+-2.0 >= 2.22
3946 " 2>/dev/null`
3947 else
3948   pkg_failed=yes
3949 fi
3950  else
3951     pkg_failed=untried
3952 fi
3953 if test -n "$moonshot_LIBS"; then
3954     pkg_cv_moonshot_LIBS="$moonshot_LIBS"
3955  elif test -n "$PKG_CONFIG"; then
3956     if test -n "$PKG_CONFIG" && \
3957     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
3958         atk >= 1.20
3959         glib-2.0 >= 2.26
3960         gobject-2.0 >= 2.26
3961         gtk+-2.0 >= 2.22
3962 \""; } >&5
3963   ($PKG_CONFIG --exists --print-errors "
3964         atk >= 1.20
3965         glib-2.0 >= 2.26
3966         gobject-2.0 >= 2.26
3967         gtk+-2.0 >= 2.22
3968 ") 2>&5
3969   ac_status=$?
3970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971   test $ac_status = 0; }; then
3972   pkg_cv_moonshot_LIBS=`$PKG_CONFIG --libs "
3973         atk >= 1.20
3974         glib-2.0 >= 2.26
3975         gobject-2.0 >= 2.26
3976         gtk+-2.0 >= 2.22
3977 " 2>/dev/null`
3978 else
3979   pkg_failed=yes
3980 fi
3981  else
3982     pkg_failed=untried
3983 fi
3984
3985
3986
3987 if test $pkg_failed = yes; then
3988         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989 $as_echo "no" >&6; }
3990
3991 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3992         _pkg_short_errors_supported=yes
3993 else
3994         _pkg_short_errors_supported=no
3995 fi
3996         if test $_pkg_short_errors_supported = yes; then
3997                 moonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "
3998         atk >= 1.20
3999         glib-2.0 >= 2.26
4000         gobject-2.0 >= 2.26
4001         gtk+-2.0 >= 2.22
4002 " 2>&1`
4003         else
4004                 moonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors "
4005         atk >= 1.20
4006         glib-2.0 >= 2.26
4007         gobject-2.0 >= 2.26
4008         gtk+-2.0 >= 2.22
4009 " 2>&1`
4010         fi
4011         # Put the nasty error message in config.log where it belongs
4012         echo "$moonshot_PKG_ERRORS" >&5
4013
4014         as_fn_error $? "Package requirements (
4015         atk >= 1.20
4016         glib-2.0 >= 2.26
4017         gobject-2.0 >= 2.26
4018         gtk+-2.0 >= 2.22
4019 ) were not met:
4020
4021 $moonshot_PKG_ERRORS
4022
4023 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4024 installed software in a non-standard prefix.
4025
4026 Alternatively, you may set the environment variables moonshot_CFLAGS
4027 and moonshot_LIBS to avoid the need to call pkg-config.
4028 See the pkg-config man page for more details." "$LINENO" 5
4029 elif test $pkg_failed = untried; then
4030         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031 $as_echo "no" >&6; }
4032         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4035 is in your PATH or set the PKG_CONFIG environment variable to the full
4036 path to pkg-config.
4037
4038 Alternatively, you may set the environment variables moonshot_CFLAGS
4039 and moonshot_LIBS to avoid the need to call pkg-config.
4040 See the pkg-config man page for more details.
4041
4042 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4043 See \`config.log' for more details" "$LINENO" 5 ; }
4044 else
4045         moonshot_CFLAGS=$pkg_cv_moonshot_CFLAGS
4046         moonshot_LIBS=$pkg_cv_moonshot_LIBS
4047         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4048 $as_echo "yes" >&6; }
4049
4050 fi
4051
4052 # i18n stuff
4053
4054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4055 $as_echo_n "checking whether NLS is requested... " >&6; }
4056     # Check whether --enable-nls was given.
4057 if test "${enable_nls+set}" = set; then :
4058   enableval=$enable_nls; USE_NLS=$enableval
4059 else
4060   USE_NLS=yes
4061 fi
4062
4063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4064 $as_echo "$USE_NLS" >&6; }
4065
4066
4067
4068
4069       GETTEXT_MACRO_VERSION=0.18
4070
4071
4072
4073
4074 # Prepare PATH_SEPARATOR.
4075 # The user is always right.
4076 if test "${PATH_SEPARATOR+set}" != set; then
4077   echo "#! /bin/sh" >conf$$.sh
4078   echo  "exit 0"   >>conf$$.sh
4079   chmod +x conf$$.sh
4080   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4081     PATH_SEPARATOR=';'
4082   else
4083     PATH_SEPARATOR=:
4084   fi
4085   rm -f conf$$.sh
4086 fi
4087
4088 # Find out how to test for executable files. Don't use a zero-byte file,
4089 # as systems may use methods other than mode bits to determine executability.
4090 cat >conf$$.file <<_ASEOF
4091 #! /bin/sh
4092 exit 0
4093 _ASEOF
4094 chmod +x conf$$.file
4095 if test -x conf$$.file >/dev/null 2>&1; then
4096   ac_executable_p="test -x"
4097 else
4098   ac_executable_p="test -f"
4099 fi
4100 rm -f conf$$.file
4101
4102 # Extract the first word of "msgfmt", so it can be a program name with args.
4103 set dummy msgfmt; ac_word=$2
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4105 $as_echo_n "checking for $ac_word... " >&6; }
4106 if test "${ac_cv_path_MSGFMT+set}" = set; then :
4107   $as_echo_n "(cached) " >&6
4108 else
4109   case "$MSGFMT" in
4110   [\\/]* | ?:[\\/]*)
4111     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4112     ;;
4113   *)
4114     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4115     for ac_dir in $PATH; do
4116       IFS="$ac_save_IFS"
4117       test -z "$ac_dir" && ac_dir=.
4118       for ac_exec_ext in '' $ac_executable_extensions; do
4119         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4120           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4121           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4122      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4123             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4124             break 2
4125           fi
4126         fi
4127       done
4128     done
4129     IFS="$ac_save_IFS"
4130   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4131     ;;
4132 esac
4133 fi
4134 MSGFMT="$ac_cv_path_MSGFMT"
4135 if test "$MSGFMT" != ":"; then
4136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4137 $as_echo "$MSGFMT" >&6; }
4138 else
4139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140 $as_echo "no" >&6; }
4141 fi
4142
4143   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4144 set dummy gmsgfmt; ac_word=$2
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4146 $as_echo_n "checking for $ac_word... " >&6; }
4147 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
4148   $as_echo_n "(cached) " >&6
4149 else
4150   case $GMSGFMT in
4151   [\\/]* | ?:[\\/]*)
4152   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4153   ;;
4154   *)
4155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158   IFS=$as_save_IFS
4159   test -z "$as_dir" && as_dir=.
4160     for ac_exec_ext in '' $ac_executable_extensions; do
4161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164     break 2
4165   fi
4166 done
4167   done
4168 IFS=$as_save_IFS
4169
4170   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4171   ;;
4172 esac
4173 fi
4174 GMSGFMT=$ac_cv_path_GMSGFMT
4175 if test -n "$GMSGFMT"; then
4176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4177 $as_echo "$GMSGFMT" >&6; }
4178 else
4179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 $as_echo "no" >&6; }
4181 fi
4182
4183
4184
4185     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4186     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4187     *) MSGFMT_015=$MSGFMT ;;
4188   esac
4189
4190   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4191     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4192     *) GMSGFMT_015=$GMSGFMT ;;
4193   esac
4194
4195
4196
4197 # Prepare PATH_SEPARATOR.
4198 # The user is always right.
4199 if test "${PATH_SEPARATOR+set}" != set; then
4200   echo "#! /bin/sh" >conf$$.sh
4201   echo  "exit 0"   >>conf$$.sh
4202   chmod +x conf$$.sh
4203   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4204     PATH_SEPARATOR=';'
4205   else
4206     PATH_SEPARATOR=:
4207   fi
4208   rm -f conf$$.sh
4209 fi
4210
4211 # Find out how to test for executable files. Don't use a zero-byte file,
4212 # as systems may use methods other than mode bits to determine executability.
4213 cat >conf$$.file <<_ASEOF
4214 #! /bin/sh
4215 exit 0
4216 _ASEOF
4217 chmod +x conf$$.file
4218 if test -x conf$$.file >/dev/null 2>&1; then
4219   ac_executable_p="test -x"
4220 else
4221   ac_executable_p="test -f"
4222 fi
4223 rm -f conf$$.file
4224
4225 # Extract the first word of "xgettext", so it can be a program name with args.
4226 set dummy xgettext; ac_word=$2
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228 $as_echo_n "checking for $ac_word... " >&6; }
4229 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
4230   $as_echo_n "(cached) " >&6
4231 else
4232   case "$XGETTEXT" in
4233   [\\/]* | ?:[\\/]*)
4234     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4235     ;;
4236   *)
4237     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4238     for ac_dir in $PATH; do
4239       IFS="$ac_save_IFS"
4240       test -z "$ac_dir" && ac_dir=.
4241       for ac_exec_ext in '' $ac_executable_extensions; do
4242         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4243           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4244           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4245      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4246             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4247             break 2
4248           fi
4249         fi
4250       done
4251     done
4252     IFS="$ac_save_IFS"
4253   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4254     ;;
4255 esac
4256 fi
4257 XGETTEXT="$ac_cv_path_XGETTEXT"
4258 if test "$XGETTEXT" != ":"; then
4259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4260 $as_echo "$XGETTEXT" >&6; }
4261 else
4262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4264 fi
4265
4266     rm -f messages.po
4267
4268     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4269     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4270     *) XGETTEXT_015=$XGETTEXT ;;
4271   esac
4272
4273
4274
4275 # Prepare PATH_SEPARATOR.
4276 # The user is always right.
4277 if test "${PATH_SEPARATOR+set}" != set; then
4278   echo "#! /bin/sh" >conf$$.sh
4279   echo  "exit 0"   >>conf$$.sh
4280   chmod +x conf$$.sh
4281   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4282     PATH_SEPARATOR=';'
4283   else
4284     PATH_SEPARATOR=:
4285   fi
4286   rm -f conf$$.sh
4287 fi
4288
4289 # Find out how to test for executable files. Don't use a zero-byte file,
4290 # as systems may use methods other than mode bits to determine executability.
4291 cat >conf$$.file <<_ASEOF
4292 #! /bin/sh
4293 exit 0
4294 _ASEOF
4295 chmod +x conf$$.file
4296 if test -x conf$$.file >/dev/null 2>&1; then
4297   ac_executable_p="test -x"
4298 else
4299   ac_executable_p="test -f"
4300 fi
4301 rm -f conf$$.file
4302
4303 # Extract the first word of "msgmerge", so it can be a program name with args.
4304 set dummy msgmerge; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
4308   $as_echo_n "(cached) " >&6
4309 else
4310   case "$MSGMERGE" in
4311   [\\/]* | ?:[\\/]*)
4312     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4313     ;;
4314   *)
4315     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4316     for ac_dir in $PATH; do
4317       IFS="$ac_save_IFS"
4318       test -z "$ac_dir" && ac_dir=.
4319       for ac_exec_ext in '' $ac_executable_extensions; do
4320         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4321           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4322           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4323             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4324             break 2
4325           fi
4326         fi
4327       done
4328     done
4329     IFS="$ac_save_IFS"
4330   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4331     ;;
4332 esac
4333 fi
4334 MSGMERGE="$ac_cv_path_MSGMERGE"
4335 if test "$MSGMERGE" != ":"; then
4336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4337 $as_echo "$MSGMERGE" >&6; }
4338 else
4339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4341 fi
4342
4343
4344         test -n "$localedir" || localedir='${datadir}/locale'
4345
4346
4347     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4348
4349
4350   ac_config_commands="$ac_config_commands po-directories"
4351
4352
4353
4354       if test "X$prefix" = "XNONE"; then
4355     acl_final_prefix="$ac_default_prefix"
4356   else
4357     acl_final_prefix="$prefix"
4358   fi
4359   if test "X$exec_prefix" = "XNONE"; then
4360     acl_final_exec_prefix='${prefix}'
4361   else
4362     acl_final_exec_prefix="$exec_prefix"
4363   fi
4364   acl_save_prefix="$prefix"
4365   prefix="$acl_final_prefix"
4366   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4367   prefix="$acl_save_prefix"
4368
4369 # Make sure we can run config.sub.
4370 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4371   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4372
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4374 $as_echo_n "checking build system type... " >&6; }
4375 if test "${ac_cv_build+set}" = set; then :
4376   $as_echo_n "(cached) " >&6
4377 else
4378   ac_build_alias=$build_alias
4379 test "x$ac_build_alias" = x &&
4380   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4381 test "x$ac_build_alias" = x &&
4382   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4383 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4384   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4385
4386 fi
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4388 $as_echo "$ac_cv_build" >&6; }
4389 case $ac_cv_build in
4390 *-*-*) ;;
4391 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4392 esac
4393 build=$ac_cv_build
4394 ac_save_IFS=$IFS; IFS='-'
4395 set x $ac_cv_build
4396 shift
4397 build_cpu=$1
4398 build_vendor=$2
4399 shift; shift
4400 # Remember, the first character of IFS is used to create $*,
4401 # except with old shells:
4402 build_os=$*
4403 IFS=$ac_save_IFS
4404 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4405
4406
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4408 $as_echo_n "checking host system type... " >&6; }
4409 if test "${ac_cv_host+set}" = set; then :
4410   $as_echo_n "(cached) " >&6
4411 else
4412   if test "x$host_alias" = x; then
4413   ac_cv_host=$ac_cv_build
4414 else
4415   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4416     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4417 fi
4418
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4421 $as_echo "$ac_cv_host" >&6; }
4422 case $ac_cv_host in
4423 *-*-*) ;;
4424 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4425 esac
4426 host=$ac_cv_host
4427 ac_save_IFS=$IFS; IFS='-'
4428 set x $ac_cv_host
4429 shift
4430 host_cpu=$1
4431 host_vendor=$2
4432 shift; shift
4433 # Remember, the first character of IFS is used to create $*,
4434 # except with old shells:
4435 host_os=$*
4436 IFS=$ac_save_IFS
4437 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4438
4439
4440
4441 # Check whether --with-gnu-ld was given.
4442 if test "${with_gnu_ld+set}" = set; then :
4443   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4444 else
4445   with_gnu_ld=no
4446 fi
4447
4448 # Prepare PATH_SEPARATOR.
4449 # The user is always right.
4450 if test "${PATH_SEPARATOR+set}" != set; then
4451   echo "#! /bin/sh" >conf$$.sh
4452   echo  "exit 0"   >>conf$$.sh
4453   chmod +x conf$$.sh
4454   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4455     PATH_SEPARATOR=';'
4456   else
4457     PATH_SEPARATOR=:
4458   fi
4459   rm -f conf$$.sh
4460 fi
4461 ac_prog=ld
4462 if test "$GCC" = yes; then
4463   # Check if gcc -print-prog-name=ld gives a path.
4464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4465 $as_echo_n "checking for ld used by GCC... " >&6; }
4466   case $host in
4467   *-*-mingw*)
4468     # gcc leaves a trailing carriage return which upsets mingw
4469     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4470   *)
4471     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4472   esac
4473   case $ac_prog in
4474     # Accept absolute paths.
4475     [\\/]* | [A-Za-z]:[\\/]*)
4476       re_direlt='/[^/][^/]*/\.\./'
4477       # Canonicalize the path of ld
4478       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4479       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4480         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4481       done
4482       test -z "$LD" && LD="$ac_prog"
4483       ;;
4484   "")
4485     # If it fails, then pretend we aren't using GCC.
4486     ac_prog=ld
4487     ;;
4488   *)
4489     # If it is relative, then search for the first ld in PATH.
4490     with_gnu_ld=unknown
4491     ;;
4492   esac
4493 elif test "$with_gnu_ld" = yes; then
4494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4495 $as_echo_n "checking for GNU ld... " >&6; }
4496 else
4497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4498 $as_echo_n "checking for non-GNU ld... " >&6; }
4499 fi
4500 if test "${acl_cv_path_LD+set}" = set; then :
4501   $as_echo_n "(cached) " >&6
4502 else
4503   if test -z "$LD"; then
4504   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4505   for ac_dir in $PATH; do
4506     test -z "$ac_dir" && ac_dir=.
4507     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4508       acl_cv_path_LD="$ac_dir/$ac_prog"
4509       # Check to see if the program is GNU ld.  I'd rather use --version,
4510       # but apparently some GNU ld's only accept -v.
4511       # Break only if it was the GNU/non-GNU ld that we prefer.
4512       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4513       *GNU* | *'with BFD'*)
4514         test "$with_gnu_ld" != no && break ;;
4515       *)
4516         test "$with_gnu_ld" != yes && break ;;
4517       esac
4518     fi
4519   done
4520   IFS="$ac_save_ifs"
4521 else
4522   acl_cv_path_LD="$LD" # Let the user override the test with a path.
4523 fi
4524 fi
4525
4526 LD="$acl_cv_path_LD"
4527 if test -n "$LD"; then
4528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4529 $as_echo "$LD" >&6; }
4530 else
4531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4533 fi
4534 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4536 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4537 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4538   $as_echo_n "(cached) " >&6
4539 else
4540   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4541 case `$LD -v 2>&1 </dev/null` in
4542 *GNU* | *'with BFD'*)
4543   acl_cv_prog_gnu_ld=yes ;;
4544 *)
4545   acl_cv_prog_gnu_ld=no ;;
4546 esac
4547 fi
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4549 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4550 with_gnu_ld=$acl_cv_prog_gnu_ld
4551
4552
4553
4554
4555                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4556 $as_echo_n "checking for shared library run path origin... " >&6; }
4557 if test "${acl_cv_rpath+set}" = set; then :
4558   $as_echo_n "(cached) " >&6
4559 else
4560
4561     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4562     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4563     . ./conftest.sh
4564     rm -f ./conftest.sh
4565     acl_cv_rpath=done
4566
4567 fi
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4569 $as_echo "$acl_cv_rpath" >&6; }
4570   wl="$acl_cv_wl"
4571   acl_libext="$acl_cv_libext"
4572   acl_shlibext="$acl_cv_shlibext"
4573   acl_libname_spec="$acl_cv_libname_spec"
4574   acl_library_names_spec="$acl_cv_library_names_spec"
4575   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4576   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4577   acl_hardcode_direct="$acl_cv_hardcode_direct"
4578   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4579     # Check whether --enable-rpath was given.
4580 if test "${enable_rpath+set}" = set; then :
4581   enableval=$enable_rpath; :
4582 else
4583   enable_rpath=yes
4584 fi
4585
4586
4587
4588 ac_ext=c
4589 ac_cpp='$CPP $CPPFLAGS'
4590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4594 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4595 # On Suns, sometimes $CPP names a directory.
4596 if test -n "$CPP" && test -d "$CPP"; then
4597   CPP=
4598 fi
4599 if test -z "$CPP"; then
4600   if test "${ac_cv_prog_CPP+set}" = set; then :
4601   $as_echo_n "(cached) " >&6
4602 else
4603       # Double quotes because CPP needs to be expanded
4604     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4605     do
4606       ac_preproc_ok=false
4607 for ac_c_preproc_warn_flag in '' yes
4608 do
4609   # Use a header file that comes with gcc, so configuring glibc
4610   # with a fresh cross-compiler works.
4611   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4612   # <limits.h> exists even on freestanding compilers.
4613   # On the NeXT, cc -E runs the code through the compiler's parser,
4614   # not just through cpp. "Syntax error" is here to catch this case.
4615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h.  */
4617 #ifdef __STDC__
4618 # include <limits.h>
4619 #else
4620 # include <assert.h>
4621 #endif
4622                      Syntax error
4623 _ACEOF
4624 if ac_fn_c_try_cpp "$LINENO"; then :
4625
4626 else
4627   # Broken: fails on valid input.
4628 continue
4629 fi
4630 rm -f conftest.err conftest.i conftest.$ac_ext
4631
4632   # OK, works on sane cases.  Now check whether nonexistent headers
4633   # can be detected and how.
4634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h.  */
4636 #include <ac_nonexistent.h>
4637 _ACEOF
4638 if ac_fn_c_try_cpp "$LINENO"; then :
4639   # Broken: success on invalid input.
4640 continue
4641 else
4642   # Passes both tests.
4643 ac_preproc_ok=:
4644 break
4645 fi
4646 rm -f conftest.err conftest.i conftest.$ac_ext
4647
4648 done
4649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4650 rm -f conftest.i conftest.err conftest.$ac_ext
4651 if $ac_preproc_ok; then :
4652   break
4653 fi
4654
4655     done
4656     ac_cv_prog_CPP=$CPP
4657
4658 fi
4659   CPP=$ac_cv_prog_CPP
4660 else
4661   ac_cv_prog_CPP=$CPP
4662 fi
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4664 $as_echo "$CPP" >&6; }
4665 ac_preproc_ok=false
4666 for ac_c_preproc_warn_flag in '' yes
4667 do
4668   # Use a header file that comes with gcc, so configuring glibc
4669   # with a fresh cross-compiler works.
4670   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4671   # <limits.h> exists even on freestanding compilers.
4672   # On the NeXT, cc -E runs the code through the compiler's parser,
4673   # not just through cpp. "Syntax error" is here to catch this case.
4674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h.  */
4676 #ifdef __STDC__
4677 # include <limits.h>
4678 #else
4679 # include <assert.h>
4680 #endif
4681                      Syntax error
4682 _ACEOF
4683 if ac_fn_c_try_cpp "$LINENO"; then :
4684
4685 else
4686   # Broken: fails on valid input.
4687 continue
4688 fi
4689 rm -f conftest.err conftest.i conftest.$ac_ext
4690
4691   # OK, works on sane cases.  Now check whether nonexistent headers
4692   # can be detected and how.
4693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h.  */
4695 #include <ac_nonexistent.h>
4696 _ACEOF
4697 if ac_fn_c_try_cpp "$LINENO"; then :
4698   # Broken: success on invalid input.
4699 continue
4700 else
4701   # Passes both tests.
4702 ac_preproc_ok=:
4703 break
4704 fi
4705 rm -f conftest.err conftest.i conftest.$ac_ext
4706
4707 done
4708 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4709 rm -f conftest.i conftest.err conftest.$ac_ext
4710 if $ac_preproc_ok; then :
4711
4712 else
4713   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4715 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4716 See \`config.log' for more details" "$LINENO" 5 ; }
4717 fi
4718
4719 ac_ext=c
4720 ac_cpp='$CPP $CPPFLAGS'
4721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4724
4725
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4727 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4728 if test "${ac_cv_path_GREP+set}" = set; then :
4729   $as_echo_n "(cached) " >&6
4730 else
4731   if test -z "$GREP"; then
4732   ac_path_GREP_found=false
4733   # Loop through the user's path and test for each of PROGNAME-LIST
4734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4736 do
4737   IFS=$as_save_IFS
4738   test -z "$as_dir" && as_dir=.
4739     for ac_prog in grep ggrep; do
4740     for ac_exec_ext in '' $ac_executable_extensions; do
4741       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4742       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4743 # Check for GNU ac_path_GREP and select it if it is found.
4744   # Check for GNU $ac_path_GREP
4745 case `"$ac_path_GREP" --version 2>&1` in
4746 *GNU*)
4747   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4748 *)
4749   ac_count=0
4750   $as_echo_n 0123456789 >"conftest.in"
4751   while :
4752   do
4753     cat "conftest.in" "conftest.in" >"conftest.tmp"
4754     mv "conftest.tmp" "conftest.in"
4755     cp "conftest.in" "conftest.nl"
4756     $as_echo 'GREP' >> "conftest.nl"
4757     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4758     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4759     as_fn_arith $ac_count + 1 && ac_count=$as_val
4760     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4761       # Best one so far, save it but keep looking for a better one
4762       ac_cv_path_GREP="$ac_path_GREP"
4763       ac_path_GREP_max=$ac_count
4764     fi
4765     # 10*(2^10) chars as input seems more than enough
4766     test $ac_count -gt 10 && break
4767   done
4768   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4769 esac
4770
4771       $ac_path_GREP_found && break 3
4772     done
4773   done
4774   done
4775 IFS=$as_save_IFS
4776   if test -z "$ac_cv_path_GREP"; then
4777     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4778   fi
4779 else
4780   ac_cv_path_GREP=$GREP
4781 fi
4782
4783 fi
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4785 $as_echo "$ac_cv_path_GREP" >&6; }
4786  GREP="$ac_cv_path_GREP"
4787
4788
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4790 $as_echo_n "checking for egrep... " >&6; }
4791 if test "${ac_cv_path_EGREP+set}" = set; then :
4792   $as_echo_n "(cached) " >&6
4793 else
4794   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4795    then ac_cv_path_EGREP="$GREP -E"
4796    else
4797      if test -z "$EGREP"; then
4798   ac_path_EGREP_found=false
4799   # Loop through the user's path and test for each of PROGNAME-LIST
4800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4802 do
4803   IFS=$as_save_IFS
4804   test -z "$as_dir" && as_dir=.
4805     for ac_prog in egrep; do
4806     for ac_exec_ext in '' $ac_executable_extensions; do
4807       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4808       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4809 # Check for GNU ac_path_EGREP and select it if it is found.
4810   # Check for GNU $ac_path_EGREP
4811 case `"$ac_path_EGREP" --version 2>&1` in
4812 *GNU*)
4813   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4814 *)
4815   ac_count=0
4816   $as_echo_n 0123456789 >"conftest.in"
4817   while :
4818   do
4819     cat "conftest.in" "conftest.in" >"conftest.tmp"
4820     mv "conftest.tmp" "conftest.in"
4821     cp "conftest.in" "conftest.nl"
4822     $as_echo 'EGREP' >> "conftest.nl"
4823     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4824     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4825     as_fn_arith $ac_count + 1 && ac_count=$as_val
4826     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4827       # Best one so far, save it but keep looking for a better one
4828       ac_cv_path_EGREP="$ac_path_EGREP"
4829       ac_path_EGREP_max=$ac_count
4830     fi
4831     # 10*(2^10) chars as input seems more than enough
4832     test $ac_count -gt 10 && break
4833   done
4834   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4835 esac
4836
4837       $ac_path_EGREP_found && break 3
4838     done
4839   done
4840   done
4841 IFS=$as_save_IFS
4842   if test -z "$ac_cv_path_EGREP"; then
4843     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4844   fi
4845 else
4846   ac_cv_path_EGREP=$EGREP
4847 fi
4848
4849    fi
4850 fi
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4852 $as_echo "$ac_cv_path_EGREP" >&6; }
4853  EGREP="$ac_cv_path_EGREP"
4854
4855
4856
4857
4858   acl_libdirstem=lib
4859   acl_libdirstem2=
4860   case "$host_os" in
4861     solaris*)
4862                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
4863 $as_echo_n "checking for 64-bit host... " >&6; }
4864 if test "${gl_cv_solaris_64bit+set}" = set; then :
4865   $as_echo_n "(cached) " >&6
4866 else
4867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h.  */
4869
4870 #ifdef _LP64
4871 sixtyfour bits
4872 #endif
4873
4874 _ACEOF
4875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4876   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
4877   gl_cv_solaris_64bit=yes
4878 else
4879   gl_cv_solaris_64bit=no
4880 fi
4881 rm -f conftest*
4882
4883
4884 fi
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
4886 $as_echo "$gl_cv_solaris_64bit" >&6; }
4887       if test $gl_cv_solaris_64bit = yes; then
4888         acl_libdirstem=lib/64
4889         case "$host_cpu" in
4890           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
4891           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
4892         esac
4893       fi
4894       ;;
4895     *)
4896       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4897       if test -n "$searchpath"; then
4898         acl_save_IFS="${IFS=    }"; IFS=":"
4899         for searchdir in $searchpath; do
4900           if test -d "$searchdir"; then
4901             case "$searchdir" in
4902               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4903               */../ | */.. )
4904                 # Better ignore directories of this form. They are misleading.
4905                 ;;
4906               *) searchdir=`cd "$searchdir" && pwd`
4907                  case "$searchdir" in
4908                    */lib64 ) acl_libdirstem=lib64 ;;
4909                  esac ;;
4910             esac
4911           fi
4912         done
4913         IFS="$acl_save_IFS"
4914       fi
4915       ;;
4916   esac
4917   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930     use_additional=yes
4931
4932   acl_save_prefix="$prefix"
4933   prefix="$acl_final_prefix"
4934   acl_save_exec_prefix="$exec_prefix"
4935   exec_prefix="$acl_final_exec_prefix"
4936
4937     eval additional_includedir=\"$includedir\"
4938     eval additional_libdir=\"$libdir\"
4939
4940   exec_prefix="$acl_save_exec_prefix"
4941   prefix="$acl_save_prefix"
4942
4943
4944 # Check whether --with-libiconv-prefix was given.
4945 if test "${with_libiconv_prefix+set}" = set; then :
4946   withval=$with_libiconv_prefix;
4947     if test "X$withval" = "Xno"; then
4948       use_additional=no
4949     else
4950       if test "X$withval" = "X"; then
4951
4952   acl_save_prefix="$prefix"
4953   prefix="$acl_final_prefix"
4954   acl_save_exec_prefix="$exec_prefix"
4955   exec_prefix="$acl_final_exec_prefix"
4956
4957           eval additional_includedir=\"$includedir\"
4958           eval additional_libdir=\"$libdir\"
4959
4960   exec_prefix="$acl_save_exec_prefix"
4961   prefix="$acl_save_prefix"
4962
4963       else
4964         additional_includedir="$withval/include"
4965         additional_libdir="$withval/$acl_libdirstem"
4966         if test "$acl_libdirstem2" != "$acl_libdirstem" \
4967            && ! test -d "$withval/$acl_libdirstem"; then
4968           additional_libdir="$withval/$acl_libdirstem2"
4969         fi
4970       fi
4971     fi
4972
4973 fi
4974
4975       LIBICONV=
4976   LTLIBICONV=
4977   INCICONV=
4978   LIBICONV_PREFIX=
4979       HAVE_LIBICONV=
4980   rpathdirs=
4981   ltrpathdirs=
4982   names_already_handled=
4983   names_next_round='iconv '
4984   while test -n "$names_next_round"; do
4985     names_this_round="$names_next_round"
4986     names_next_round=
4987     for name in $names_this_round; do
4988       already_handled=
4989       for n in $names_already_handled; do
4990         if test "$n" = "$name"; then
4991           already_handled=yes
4992           break
4993         fi
4994       done
4995       if test -z "$already_handled"; then
4996         names_already_handled="$names_already_handled $name"
4997                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4998         eval value=\"\$HAVE_LIB$uppername\"
4999         if test -n "$value"; then
5000           if test "$value" = yes; then
5001             eval value=\"\$LIB$uppername\"
5002             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5003             eval value=\"\$LTLIB$uppername\"
5004             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5005           else
5006                                     :
5007           fi
5008         else
5009                               found_dir=
5010           found_la=
5011           found_so=
5012           found_a=
5013           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
5014           if test -n "$acl_shlibext"; then
5015             shrext=".$acl_shlibext"             # typically: shrext=.so
5016           else
5017             shrext=
5018           fi
5019           if test $use_additional = yes; then
5020             dir="$additional_libdir"
5021                                     if test -n "$acl_shlibext"; then
5022               if test -f "$dir/$libname$shrext"; then
5023                 found_dir="$dir"
5024                 found_so="$dir/$libname$shrext"
5025               else
5026                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5027                   ver=`(cd "$dir" && \
5028                         for f in "$libname$shrext".*; do echo "$f"; done \
5029                         | sed -e "s,^$libname$shrext\\\\.,," \
5030                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5031                         | sed 1q ) 2>/dev/null`
5032                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5033                     found_dir="$dir"
5034                     found_so="$dir/$libname$shrext.$ver"
5035                   fi
5036                 else
5037                   eval library_names=\"$acl_library_names_spec\"
5038                   for f in $library_names; do
5039                     if test -f "$dir/$f"; then
5040                       found_dir="$dir"
5041                       found_so="$dir/$f"
5042                       break
5043                     fi
5044                   done
5045                 fi
5046               fi
5047             fi
5048                         if test "X$found_dir" = "X"; then
5049               if test -f "$dir/$libname.$acl_libext"; then
5050                 found_dir="$dir"
5051                 found_a="$dir/$libname.$acl_libext"
5052               fi
5053             fi
5054             if test "X$found_dir" != "X"; then
5055               if test -f "$dir/$libname.la"; then
5056                 found_la="$dir/$libname.la"
5057               fi
5058             fi
5059           fi
5060           if test "X$found_dir" = "X"; then
5061             for x in $LDFLAGS $LTLIBICONV; do
5062
5063   acl_save_prefix="$prefix"
5064   prefix="$acl_final_prefix"
5065   acl_save_exec_prefix="$exec_prefix"
5066   exec_prefix="$acl_final_exec_prefix"
5067   eval x=\"$x\"
5068   exec_prefix="$acl_save_exec_prefix"
5069   prefix="$acl_save_prefix"
5070
5071               case "$x" in
5072                 -L*)
5073                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5074                                     if test -n "$acl_shlibext"; then
5075                     if test -f "$dir/$libname$shrext"; then
5076                       found_dir="$dir"
5077                       found_so="$dir/$libname$shrext"
5078                     else
5079                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5080                         ver=`(cd "$dir" && \
5081                               for f in "$libname$shrext".*; do echo "$f"; done \
5082                               | sed -e "s,^$libname$shrext\\\\.,," \
5083                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5084                               | sed 1q ) 2>/dev/null`
5085                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5086                           found_dir="$dir"
5087                           found_so="$dir/$libname$shrext.$ver"
5088                         fi
5089                       else
5090                         eval library_names=\"$acl_library_names_spec\"
5091                         for f in $library_names; do
5092                           if test -f "$dir/$f"; then
5093                             found_dir="$dir"
5094                             found_so="$dir/$f"
5095                             break
5096                           fi
5097                         done
5098                       fi
5099                     fi
5100                   fi
5101                                     if test "X$found_dir" = "X"; then
5102                     if test -f "$dir/$libname.$acl_libext"; then
5103                       found_dir="$dir"
5104                       found_a="$dir/$libname.$acl_libext"
5105                     fi
5106                   fi
5107                   if test "X$found_dir" != "X"; then
5108                     if test -f "$dir/$libname.la"; then
5109                       found_la="$dir/$libname.la"
5110                     fi
5111                   fi
5112                   ;;
5113               esac
5114               if test "X$found_dir" != "X"; then
5115                 break
5116               fi
5117             done
5118           fi
5119           if test "X$found_dir" != "X"; then
5120                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5121             if test "X$found_so" != "X"; then
5122                                                         if test "$enable_rpath" = no \
5123                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5124                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5125                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5126               else
5127                                                                                 haveit=
5128                 for x in $ltrpathdirs; do
5129                   if test "X$x" = "X$found_dir"; then
5130                     haveit=yes
5131                     break
5132                   fi
5133                 done
5134                 if test -z "$haveit"; then
5135                   ltrpathdirs="$ltrpathdirs $found_dir"
5136                 fi
5137                                 if test "$acl_hardcode_direct" = yes; then
5138                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5139                 else
5140                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5141                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5142                                                             haveit=
5143                     for x in $rpathdirs; do
5144                       if test "X$x" = "X$found_dir"; then
5145                         haveit=yes
5146                         break
5147                       fi
5148                     done
5149                     if test -z "$haveit"; then
5150                       rpathdirs="$rpathdirs $found_dir"
5151                     fi
5152                   else
5153                                                                                 haveit=
5154                     for x in $LDFLAGS $LIBICONV; do
5155
5156   acl_save_prefix="$prefix"
5157   prefix="$acl_final_prefix"
5158   acl_save_exec_prefix="$exec_prefix"
5159   exec_prefix="$acl_final_exec_prefix"
5160   eval x=\"$x\"
5161   exec_prefix="$acl_save_exec_prefix"
5162   prefix="$acl_save_prefix"
5163
5164                       if test "X$x" = "X-L$found_dir"; then
5165                         haveit=yes
5166                         break
5167                       fi
5168                     done
5169                     if test -z "$haveit"; then
5170                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5171                     fi
5172                     if test "$acl_hardcode_minus_L" != no; then
5173                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5174                     else
5175                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5176                     fi
5177                   fi
5178                 fi
5179               fi
5180             else
5181               if test "X$found_a" != "X"; then
5182                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5183               else
5184                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5185               fi
5186             fi
5187                         additional_includedir=
5188             case "$found_dir" in
5189               */$acl_libdirstem | */$acl_libdirstem/)
5190                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5191                 if test "$name" = 'iconv'; then
5192                   LIBICONV_PREFIX="$basedir"
5193                 fi
5194                 additional_includedir="$basedir/include"
5195                 ;;
5196               */$acl_libdirstem2 | */$acl_libdirstem2/)
5197                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5198                 if test "$name" = 'iconv'; then
5199                   LIBICONV_PREFIX="$basedir"
5200                 fi
5201                 additional_includedir="$basedir/include"
5202                 ;;
5203             esac
5204             if test "X$additional_includedir" != "X"; then
5205                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5206                 haveit=
5207                 if test "X$additional_includedir" = "X/usr/local/include"; then
5208                   if test -n "$GCC"; then
5209                     case $host_os in
5210                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5211                     esac
5212                   fi
5213                 fi
5214                 if test -z "$haveit"; then
5215                   for x in $CPPFLAGS $INCICONV; do
5216
5217   acl_save_prefix="$prefix"
5218   prefix="$acl_final_prefix"
5219   acl_save_exec_prefix="$exec_prefix"
5220   exec_prefix="$acl_final_exec_prefix"
5221   eval x=\"$x\"
5222   exec_prefix="$acl_save_exec_prefix"
5223   prefix="$acl_save_prefix"
5224
5225                     if test "X$x" = "X-I$additional_includedir"; then
5226                       haveit=yes
5227                       break
5228                     fi
5229                   done
5230                   if test -z "$haveit"; then
5231                     if test -d "$additional_includedir"; then
5232                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5233                     fi
5234                   fi
5235                 fi
5236               fi
5237             fi
5238                         if test -n "$found_la"; then
5239                                                         save_libdir="$libdir"
5240               case "$found_la" in
5241                 */* | *\\*) . "$found_la" ;;
5242                 *) . "./$found_la" ;;
5243               esac
5244               libdir="$save_libdir"
5245                             for dep in $dependency_libs; do
5246                 case "$dep" in
5247                   -L*)
5248                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5249                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5250                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5251                       haveit=
5252                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5253                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5254                         if test -n "$GCC"; then
5255                           case $host_os in
5256                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5257                           esac
5258                         fi
5259                       fi
5260                       if test -z "$haveit"; then
5261                         haveit=
5262                         for x in $LDFLAGS $LIBICONV; do
5263
5264   acl_save_prefix="$prefix"
5265   prefix="$acl_final_prefix"
5266   acl_save_exec_prefix="$exec_prefix"
5267   exec_prefix="$acl_final_exec_prefix"
5268   eval x=\"$x\"
5269   exec_prefix="$acl_save_exec_prefix"
5270   prefix="$acl_save_prefix"
5271
5272                           if test "X$x" = "X-L$additional_libdir"; then
5273                             haveit=yes
5274                             break
5275                           fi
5276                         done
5277                         if test -z "$haveit"; then
5278                           if test -d "$additional_libdir"; then
5279                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5280                           fi
5281                         fi
5282                         haveit=
5283                         for x in $LDFLAGS $LTLIBICONV; do
5284
5285   acl_save_prefix="$prefix"
5286   prefix="$acl_final_prefix"
5287   acl_save_exec_prefix="$exec_prefix"
5288   exec_prefix="$acl_final_exec_prefix"
5289   eval x=\"$x\"
5290   exec_prefix="$acl_save_exec_prefix"
5291   prefix="$acl_save_prefix"
5292
5293                           if test "X$x" = "X-L$additional_libdir"; then
5294                             haveit=yes
5295                             break
5296                           fi
5297                         done
5298                         if test -z "$haveit"; then
5299                           if test -d "$additional_libdir"; then
5300                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5301                           fi
5302                         fi
5303                       fi
5304                     fi
5305                     ;;
5306                   -R*)
5307                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5308                     if test "$enable_rpath" != no; then
5309                                                                   haveit=
5310                       for x in $rpathdirs; do
5311                         if test "X$x" = "X$dir"; then
5312                           haveit=yes
5313                           break
5314                         fi
5315                       done
5316                       if test -z "$haveit"; then
5317                         rpathdirs="$rpathdirs $dir"
5318                       fi
5319                                                                   haveit=
5320                       for x in $ltrpathdirs; do
5321                         if test "X$x" = "X$dir"; then
5322                           haveit=yes
5323                           break
5324                         fi
5325                       done
5326                       if test -z "$haveit"; then
5327                         ltrpathdirs="$ltrpathdirs $dir"
5328                       fi
5329                     fi
5330                     ;;
5331                   -l*)
5332                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5333                     ;;
5334                   *.la)
5335                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5336                     ;;
5337                   *)
5338                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5339                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5340                     ;;
5341                 esac
5342               done
5343             fi
5344           else
5345                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5346             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5347           fi
5348         fi
5349       fi
5350     done
5351   done
5352   if test "X$rpathdirs" != "X"; then
5353     if test -n "$acl_hardcode_libdir_separator"; then
5354                         alldirs=
5355       for found_dir in $rpathdirs; do
5356         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5357       done
5358             acl_save_libdir="$libdir"
5359       libdir="$alldirs"
5360       eval flag=\"$acl_hardcode_libdir_flag_spec\"
5361       libdir="$acl_save_libdir"
5362       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5363     else
5364             for found_dir in $rpathdirs; do
5365         acl_save_libdir="$libdir"
5366         libdir="$found_dir"
5367         eval flag=\"$acl_hardcode_libdir_flag_spec\"
5368         libdir="$acl_save_libdir"
5369         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5370       done
5371     fi
5372   fi
5373   if test "X$ltrpathdirs" != "X"; then
5374             for found_dir in $ltrpathdirs; do
5375       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5376     done
5377   fi
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5410 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5411 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
5412   $as_echo_n "(cached) " >&6
5413 else
5414   gt_save_LIBS="$LIBS"
5415      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5416      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h.  */
5418 #include <CoreFoundation/CFPreferences.h>
5419 int
5420 main ()
5421 {
5422 CFPreferencesCopyAppValue(NULL, NULL)
5423   ;
5424   return 0;
5425 }
5426 _ACEOF
5427 if ac_fn_c_try_link "$LINENO"; then :
5428   gt_cv_func_CFPreferencesCopyAppValue=yes
5429 else
5430   gt_cv_func_CFPreferencesCopyAppValue=no
5431 fi
5432 rm -f core conftest.err conftest.$ac_objext \
5433     conftest$ac_exeext conftest.$ac_ext
5434      LIBS="$gt_save_LIBS"
5435 fi
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5437 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5438   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5439
5440 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5441
5442   fi
5443     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5444 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5445 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
5446   $as_echo_n "(cached) " >&6
5447 else
5448   gt_save_LIBS="$LIBS"
5449      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5450      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h.  */
5452 #include <CoreFoundation/CFLocale.h>
5453 int
5454 main ()
5455 {
5456 CFLocaleCopyCurrent();
5457   ;
5458   return 0;
5459 }
5460 _ACEOF
5461 if ac_fn_c_try_link "$LINENO"; then :
5462   gt_cv_func_CFLocaleCopyCurrent=yes
5463 else
5464   gt_cv_func_CFLocaleCopyCurrent=no
5465 fi
5466 rm -f core conftest.err conftest.$ac_objext \
5467     conftest$ac_exeext conftest.$ac_ext
5468      LIBS="$gt_save_LIBS"
5469 fi
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5471 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5472   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5473
5474 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5475
5476   fi
5477   INTL_MACOSX_LIBS=
5478   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5479     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5480   fi
5481
5482
5483
5484
5485
5486
5487   LIBINTL=
5488   LTLIBINTL=
5489   POSUB=
5490
5491     case " $gt_needs " in
5492     *" need-formatstring-macros "*) gt_api_version=3 ;;
5493     *" need-ngettext "*) gt_api_version=2 ;;
5494     *) gt_api_version=1 ;;
5495   esac
5496   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5497   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5498
5499     if test "$USE_NLS" = "yes"; then
5500     gt_use_preinstalled_gnugettext=no
5501
5502
5503         if test $gt_api_version -ge 3; then
5504           gt_revision_test_code='
5505 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5506 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5507 #endif
5508 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5509 '
5510         else
5511           gt_revision_test_code=
5512         fi
5513         if test $gt_api_version -ge 2; then
5514           gt_expression_test_code=' + * ngettext ("", "", 0)'
5515         else
5516           gt_expression_test_code=
5517         fi
5518
5519         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5520 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5521 if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
5522   $as_echo_n "(cached) " >&6
5523 else
5524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h.  */
5526 #include <libintl.h>
5527 $gt_revision_test_code
5528 extern int _nl_msg_cat_cntr;
5529 extern int *_nl_domain_bindings;
5530 int
5531 main ()
5532 {
5533 bindtextdomain ("", "");
5534 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5535   ;
5536   return 0;
5537 }
5538 _ACEOF
5539 if ac_fn_c_try_link "$LINENO"; then :
5540   eval "$gt_func_gnugettext_libc=yes"
5541 else
5542   eval "$gt_func_gnugettext_libc=no"
5543 fi
5544 rm -f core conftest.err conftest.$ac_objext \
5545     conftest$ac_exeext conftest.$ac_ext
5546 fi
5547 eval ac_res=\$$gt_func_gnugettext_libc
5548                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5549 $as_echo "$ac_res" >&6; }
5550
5551         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5552
5553
5554
5555
5556
5557           am_save_CPPFLAGS="$CPPFLAGS"
5558
5559   for element in $INCICONV; do
5560     haveit=
5561     for x in $CPPFLAGS; do
5562
5563   acl_save_prefix="$prefix"
5564   prefix="$acl_final_prefix"
5565   acl_save_exec_prefix="$exec_prefix"
5566   exec_prefix="$acl_final_exec_prefix"
5567   eval x=\"$x\"
5568   exec_prefix="$acl_save_exec_prefix"
5569   prefix="$acl_save_prefix"
5570
5571       if test "X$x" = "X$element"; then
5572         haveit=yes
5573         break
5574       fi
5575     done
5576     if test -z "$haveit"; then
5577       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5578     fi
5579   done
5580
5581
5582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5583 $as_echo_n "checking for iconv... " >&6; }
5584 if test "${am_cv_func_iconv+set}" = set; then :
5585   $as_echo_n "(cached) " >&6
5586 else
5587
5588     am_cv_func_iconv="no, consider installing GNU libiconv"
5589     am_cv_lib_iconv=no
5590     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h.  */
5592 #include <stdlib.h>
5593 #include <iconv.h>
5594 int
5595 main ()
5596 {
5597 iconv_t cd = iconv_open("","");
5598        iconv(cd,NULL,NULL,NULL,NULL);
5599        iconv_close(cd);
5600   ;
5601   return 0;
5602 }
5603 _ACEOF
5604 if ac_fn_c_try_link "$LINENO"; then :
5605   am_cv_func_iconv=yes
5606 fi
5607 rm -f core conftest.err conftest.$ac_objext \
5608     conftest$ac_exeext conftest.$ac_ext
5609     if test "$am_cv_func_iconv" != yes; then
5610       am_save_LIBS="$LIBS"
5611       LIBS="$LIBS $LIBICONV"
5612       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h.  */
5614 #include <stdlib.h>
5615 #include <iconv.h>
5616 int
5617 main ()
5618 {
5619 iconv_t cd = iconv_open("","");
5620          iconv(cd,NULL,NULL,NULL,NULL);
5621          iconv_close(cd);
5622   ;
5623   return 0;
5624 }
5625 _ACEOF
5626 if ac_fn_c_try_link "$LINENO"; then :
5627   am_cv_lib_iconv=yes
5628         am_cv_func_iconv=yes
5629 fi
5630 rm -f core conftest.err conftest.$ac_objext \
5631     conftest$ac_exeext conftest.$ac_ext
5632       LIBS="$am_save_LIBS"
5633     fi
5634
5635 fi
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5637 $as_echo "$am_cv_func_iconv" >&6; }
5638   if test "$am_cv_func_iconv" = yes; then
5639     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5640 $as_echo_n "checking for working iconv... " >&6; }
5641 if test "${am_cv_func_iconv_works+set}" = set; then :
5642   $as_echo_n "(cached) " >&6
5643 else
5644
5645             am_save_LIBS="$LIBS"
5646       if test $am_cv_lib_iconv = yes; then
5647         LIBS="$LIBS $LIBICONV"
5648       fi
5649       if test "$cross_compiling" = yes; then :
5650   case "$host_os" in
5651            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5652            *)            am_cv_func_iconv_works="guessing yes" ;;
5653          esac
5654 else
5655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h.  */
5657
5658 #include <iconv.h>
5659 #include <string.h>
5660 int main ()
5661 {
5662   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5663      returns.  */
5664   {
5665     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5666     if (cd_utf8_to_88591 != (iconv_t)(-1))
5667       {
5668         static const char input[] = "\342\202\254"; /* EURO SIGN */
5669         char buf[10];
5670         const char *inptr = input;
5671         size_t inbytesleft = strlen (input);
5672         char *outptr = buf;
5673         size_t outbytesleft = sizeof (buf);
5674         size_t res = iconv (cd_utf8_to_88591,
5675                             (char **) &inptr, &inbytesleft,
5676                             &outptr, &outbytesleft);
5677         if (res == 0)
5678           return 1;
5679       }
5680   }
5681   /* Test against Solaris 10 bug: Failures are not distinguishable from
5682      successful returns.  */
5683   {
5684     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5685     if (cd_ascii_to_88591 != (iconv_t)(-1))
5686       {
5687         static const char input[] = "\263";
5688         char buf[10];
5689         const char *inptr = input;
5690         size_t inbytesleft = strlen (input);
5691         char *outptr = buf;
5692         size_t outbytesleft = sizeof (buf);
5693         size_t res = iconv (cd_ascii_to_88591,
5694                             (char **) &inptr, &inbytesleft,
5695                             &outptr, &outbytesleft);
5696         if (res == 0)
5697           return 1;
5698       }
5699   }
5700 #if 0 /* This bug could be worked around by the caller.  */
5701   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
5702   {
5703     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5704     if (cd_88591_to_utf8 != (iconv_t)(-1))
5705       {
5706         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5707         char buf[50];
5708         const char *inptr = input;
5709         size_t inbytesleft = strlen (input);
5710         char *outptr = buf;
5711         size_t outbytesleft = sizeof (buf);
5712         size_t res = iconv (cd_88591_to_utf8,
5713                             (char **) &inptr, &inbytesleft,
5714                             &outptr, &outbytesleft);
5715         if ((int)res > 0)
5716           return 1;
5717       }
5718   }
5719 #endif
5720   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5721      provided.  */
5722   if (/* Try standardized names.  */
5723       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5724       /* Try IRIX, OSF/1 names.  */
5725       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5726       /* Try AIX names.  */
5727       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5728       /* Try HP-UX names.  */
5729       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5730     return 1;
5731   return 0;
5732 }
5733 _ACEOF
5734 if ac_fn_c_try_run "$LINENO"; then :
5735   am_cv_func_iconv_works=yes
5736 else
5737   am_cv_func_iconv_works=no
5738 fi
5739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5740   conftest.$ac_objext conftest.beam conftest.$ac_ext
5741 fi
5742
5743       LIBS="$am_save_LIBS"
5744
5745 fi
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5747 $as_echo "$am_cv_func_iconv_works" >&6; }
5748     case "$am_cv_func_iconv_works" in
5749       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5750       *)   am_func_iconv=yes ;;
5751     esac
5752   else
5753     am_func_iconv=no am_cv_lib_iconv=no
5754   fi
5755   if test "$am_func_iconv" = yes; then
5756
5757 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5758
5759   fi
5760   if test "$am_cv_lib_iconv" = yes; then
5761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5762 $as_echo_n "checking how to link with libiconv... " >&6; }
5763     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5764 $as_echo "$LIBICONV" >&6; }
5765   else
5766             CPPFLAGS="$am_save_CPPFLAGS"
5767     LIBICONV=
5768     LTLIBICONV=
5769   fi
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781     use_additional=yes
5782
5783   acl_save_prefix="$prefix"
5784   prefix="$acl_final_prefix"
5785   acl_save_exec_prefix="$exec_prefix"
5786   exec_prefix="$acl_final_exec_prefix"
5787
5788     eval additional_includedir=\"$includedir\"
5789     eval additional_libdir=\"$libdir\"
5790
5791   exec_prefix="$acl_save_exec_prefix"
5792   prefix="$acl_save_prefix"
5793
5794
5795 # Check whether --with-libintl-prefix was given.
5796 if test "${with_libintl_prefix+set}" = set; then :
5797   withval=$with_libintl_prefix;
5798     if test "X$withval" = "Xno"; then
5799       use_additional=no
5800     else
5801       if test "X$withval" = "X"; then
5802
5803   acl_save_prefix="$prefix"
5804   prefix="$acl_final_prefix"
5805   acl_save_exec_prefix="$exec_prefix"
5806   exec_prefix="$acl_final_exec_prefix"
5807
5808           eval additional_includedir=\"$includedir\"
5809           eval additional_libdir=\"$libdir\"
5810
5811   exec_prefix="$acl_save_exec_prefix"
5812   prefix="$acl_save_prefix"
5813
5814       else
5815         additional_includedir="$withval/include"
5816         additional_libdir="$withval/$acl_libdirstem"
5817         if test "$acl_libdirstem2" != "$acl_libdirstem" \
5818            && ! test -d "$withval/$acl_libdirstem"; then
5819           additional_libdir="$withval/$acl_libdirstem2"
5820         fi
5821       fi
5822     fi
5823
5824 fi
5825
5826       LIBINTL=
5827   LTLIBINTL=
5828   INCINTL=
5829   LIBINTL_PREFIX=
5830       HAVE_LIBINTL=
5831   rpathdirs=
5832   ltrpathdirs=
5833   names_already_handled=
5834   names_next_round='intl '
5835   while test -n "$names_next_round"; do
5836     names_this_round="$names_next_round"
5837     names_next_round=
5838     for name in $names_this_round; do
5839       already_handled=
5840       for n in $names_already_handled; do
5841         if test "$n" = "$name"; then
5842           already_handled=yes
5843           break
5844         fi
5845       done
5846       if test -z "$already_handled"; then
5847         names_already_handled="$names_already_handled $name"
5848                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5849         eval value=\"\$HAVE_LIB$uppername\"
5850         if test -n "$value"; then
5851           if test "$value" = yes; then
5852             eval value=\"\$LIB$uppername\"
5853             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5854             eval value=\"\$LTLIB$uppername\"
5855             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5856           else
5857                                     :
5858           fi
5859         else
5860                               found_dir=
5861           found_la=
5862           found_so=
5863           found_a=
5864           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
5865           if test -n "$acl_shlibext"; then
5866             shrext=".$acl_shlibext"             # typically: shrext=.so
5867           else
5868             shrext=
5869           fi
5870           if test $use_additional = yes; then
5871             dir="$additional_libdir"
5872                                     if test -n "$acl_shlibext"; then
5873               if test -f "$dir/$libname$shrext"; then
5874                 found_dir="$dir"
5875                 found_so="$dir/$libname$shrext"
5876               else
5877                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5878                   ver=`(cd "$dir" && \
5879                         for f in "$libname$shrext".*; do echo "$f"; done \
5880                         | sed -e "s,^$libname$shrext\\\\.,," \
5881                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5882                         | sed 1q ) 2>/dev/null`
5883                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5884                     found_dir="$dir"
5885                     found_so="$dir/$libname$shrext.$ver"
5886                   fi
5887                 else
5888                   eval library_names=\"$acl_library_names_spec\"
5889                   for f in $library_names; do
5890                     if test -f "$dir/$f"; then
5891                       found_dir="$dir"
5892                       found_so="$dir/$f"
5893                       break
5894                     fi
5895                   done
5896                 fi
5897               fi
5898             fi
5899                         if test "X$found_dir" = "X"; then
5900               if test -f "$dir/$libname.$acl_libext"; then
5901                 found_dir="$dir"
5902                 found_a="$dir/$libname.$acl_libext"
5903               fi
5904             fi
5905             if test "X$found_dir" != "X"; then
5906               if test -f "$dir/$libname.la"; then
5907                 found_la="$dir/$libname.la"
5908               fi
5909             fi
5910           fi
5911           if test "X$found_dir" = "X"; then
5912             for x in $LDFLAGS $LTLIBINTL; do
5913
5914   acl_save_prefix="$prefix"
5915   prefix="$acl_final_prefix"
5916   acl_save_exec_prefix="$exec_prefix"
5917   exec_prefix="$acl_final_exec_prefix"
5918   eval x=\"$x\"
5919   exec_prefix="$acl_save_exec_prefix"
5920   prefix="$acl_save_prefix"
5921
5922               case "$x" in
5923                 -L*)
5924                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5925                                     if test -n "$acl_shlibext"; then
5926                     if test -f "$dir/$libname$shrext"; then
5927                       found_dir="$dir"
5928                       found_so="$dir/$libname$shrext"
5929                     else
5930                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5931                         ver=`(cd "$dir" && \
5932                               for f in "$libname$shrext".*; do echo "$f"; done \
5933                               | sed -e "s,^$libname$shrext\\\\.,," \
5934                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5935                               | sed 1q ) 2>/dev/null`
5936                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5937                           found_dir="$dir"
5938                           found_so="$dir/$libname$shrext.$ver"
5939                         fi
5940                       else
5941                         eval library_names=\"$acl_library_names_spec\"
5942                         for f in $library_names; do
5943                           if test -f "$dir/$f"; then
5944                             found_dir="$dir"
5945                             found_so="$dir/$f"
5946                             break
5947                           fi
5948                         done
5949                       fi
5950                     fi
5951                   fi
5952                                     if test "X$found_dir" = "X"; then
5953                     if test -f "$dir/$libname.$acl_libext"; then
5954                       found_dir="$dir"
5955                       found_a="$dir/$libname.$acl_libext"
5956                     fi
5957                   fi
5958                   if test "X$found_dir" != "X"; then
5959                     if test -f "$dir/$libname.la"; then
5960                       found_la="$dir/$libname.la"
5961                     fi
5962                   fi
5963                   ;;
5964               esac
5965               if test "X$found_dir" != "X"; then
5966                 break
5967               fi
5968             done
5969           fi
5970           if test "X$found_dir" != "X"; then
5971                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5972             if test "X$found_so" != "X"; then
5973                                                         if test "$enable_rpath" = no \
5974                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5975                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5976                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5977               else
5978                                                                                 haveit=
5979                 for x in $ltrpathdirs; do
5980                   if test "X$x" = "X$found_dir"; then
5981                     haveit=yes
5982                     break
5983                   fi
5984                 done
5985                 if test -z "$haveit"; then
5986                   ltrpathdirs="$ltrpathdirs $found_dir"
5987                 fi
5988                                 if test "$acl_hardcode_direct" = yes; then
5989                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5990                 else
5991                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5992                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5993                                                             haveit=
5994                     for x in $rpathdirs; do
5995                       if test "X$x" = "X$found_dir"; then
5996                         haveit=yes
5997                         break
5998                       fi
5999                     done
6000                     if test -z "$haveit"; then
6001                       rpathdirs="$rpathdirs $found_dir"
6002                     fi
6003                   else
6004                                                                                 haveit=
6005                     for x in $LDFLAGS $LIBINTL; do
6006
6007   acl_save_prefix="$prefix"
6008   prefix="$acl_final_prefix"
6009   acl_save_exec_prefix="$exec_prefix"
6010   exec_prefix="$acl_final_exec_prefix"
6011   eval x=\"$x\"
6012   exec_prefix="$acl_save_exec_prefix"
6013   prefix="$acl_save_prefix"
6014
6015                       if test "X$x" = "X-L$found_dir"; then
6016                         haveit=yes
6017                         break
6018                       fi
6019                     done
6020                     if test -z "$haveit"; then
6021                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6022                     fi
6023                     if test "$acl_hardcode_minus_L" != no; then
6024                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6025                     else
6026                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6027                     fi
6028                   fi
6029                 fi
6030               fi
6031             else
6032               if test "X$found_a" != "X"; then
6033                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6034               else
6035                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6036               fi
6037             fi
6038                         additional_includedir=
6039             case "$found_dir" in
6040               */$acl_libdirstem | */$acl_libdirstem/)
6041                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6042                 if test "$name" = 'intl'; then
6043                   LIBINTL_PREFIX="$basedir"
6044                 fi
6045                 additional_includedir="$basedir/include"
6046                 ;;
6047               */$acl_libdirstem2 | */$acl_libdirstem2/)
6048                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6049                 if test "$name" = 'intl'; then
6050                   LIBINTL_PREFIX="$basedir"
6051                 fi
6052                 additional_includedir="$basedir/include"
6053                 ;;
6054             esac
6055             if test "X$additional_includedir" != "X"; then
6056                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6057                 haveit=
6058                 if test "X$additional_includedir" = "X/usr/local/include"; then
6059                   if test -n "$GCC"; then
6060                     case $host_os in
6061                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6062                     esac
6063                   fi
6064                 fi
6065                 if test -z "$haveit"; then
6066                   for x in $CPPFLAGS $INCINTL; do
6067
6068   acl_save_prefix="$prefix"
6069   prefix="$acl_final_prefix"
6070   acl_save_exec_prefix="$exec_prefix"
6071   exec_prefix="$acl_final_exec_prefix"
6072   eval x=\"$x\"
6073   exec_prefix="$acl_save_exec_prefix"
6074   prefix="$acl_save_prefix"
6075
6076                     if test "X$x" = "X-I$additional_includedir"; then
6077                       haveit=yes
6078                       break
6079                     fi
6080                   done
6081                   if test -z "$haveit"; then
6082                     if test -d "$additional_includedir"; then
6083                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6084                     fi
6085                   fi
6086                 fi
6087               fi
6088             fi
6089                         if test -n "$found_la"; then
6090                                                         save_libdir="$libdir"
6091               case "$found_la" in
6092                 */* | *\\*) . "$found_la" ;;
6093                 *) . "./$found_la" ;;
6094               esac
6095               libdir="$save_libdir"
6096                             for dep in $dependency_libs; do
6097                 case "$dep" in
6098                   -L*)
6099                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6100                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6101                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6102                       haveit=
6103                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6104                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6105                         if test -n "$GCC"; then
6106                           case $host_os in
6107                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6108                           esac
6109                         fi
6110                       fi
6111                       if test -z "$haveit"; then
6112                         haveit=
6113                         for x in $LDFLAGS $LIBINTL; do
6114
6115   acl_save_prefix="$prefix"
6116   prefix="$acl_final_prefix"
6117   acl_save_exec_prefix="$exec_prefix"
6118   exec_prefix="$acl_final_exec_prefix"
6119   eval x=\"$x\"
6120   exec_prefix="$acl_save_exec_prefix"
6121   prefix="$acl_save_prefix"
6122
6123                           if test "X$x" = "X-L$additional_libdir"; then
6124                             haveit=yes
6125                             break
6126                           fi
6127                         done
6128                         if test -z "$haveit"; then
6129                           if test -d "$additional_libdir"; then
6130                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6131                           fi
6132                         fi
6133                         haveit=
6134                         for x in $LDFLAGS $LTLIBINTL; do
6135
6136   acl_save_prefix="$prefix"
6137   prefix="$acl_final_prefix"
6138   acl_save_exec_prefix="$exec_prefix"
6139   exec_prefix="$acl_final_exec_prefix"
6140   eval x=\"$x\"
6141   exec_prefix="$acl_save_exec_prefix"
6142   prefix="$acl_save_prefix"
6143
6144                           if test "X$x" = "X-L$additional_libdir"; then
6145                             haveit=yes
6146                             break
6147                           fi
6148                         done
6149                         if test -z "$haveit"; then
6150                           if test -d "$additional_libdir"; then
6151                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6152                           fi
6153                         fi
6154                       fi
6155                     fi
6156                     ;;
6157                   -R*)
6158                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6159                     if test "$enable_rpath" != no; then
6160                                                                   haveit=
6161                       for x in $rpathdirs; do
6162                         if test "X$x" = "X$dir"; then
6163                           haveit=yes
6164                           break
6165                         fi
6166                       done
6167                       if test -z "$haveit"; then
6168                         rpathdirs="$rpathdirs $dir"
6169                       fi
6170                                                                   haveit=
6171                       for x in $ltrpathdirs; do
6172                         if test "X$x" = "X$dir"; then
6173                           haveit=yes
6174                           break
6175                         fi
6176                       done
6177                       if test -z "$haveit"; then
6178                         ltrpathdirs="$ltrpathdirs $dir"
6179                       fi
6180                     fi
6181                     ;;
6182                   -l*)
6183                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6184                     ;;
6185                   *.la)
6186                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6187                     ;;
6188                   *)
6189                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6190                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6191                     ;;
6192                 esac
6193               done
6194             fi
6195           else
6196                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6197             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6198           fi
6199         fi
6200       fi
6201     done
6202   done
6203   if test "X$rpathdirs" != "X"; then
6204     if test -n "$acl_hardcode_libdir_separator"; then
6205                         alldirs=
6206       for found_dir in $rpathdirs; do
6207         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6208       done
6209             acl_save_libdir="$libdir"
6210       libdir="$alldirs"
6211       eval flag=\"$acl_hardcode_libdir_flag_spec\"
6212       libdir="$acl_save_libdir"
6213       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6214     else
6215             for found_dir in $rpathdirs; do
6216         acl_save_libdir="$libdir"
6217         libdir="$found_dir"
6218         eval flag=\"$acl_hardcode_libdir_flag_spec\"
6219         libdir="$acl_save_libdir"
6220         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6221       done
6222     fi
6223   fi
6224   if test "X$ltrpathdirs" != "X"; then
6225             for found_dir in $ltrpathdirs; do
6226       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6227     done
6228   fi
6229
6230
6231
6232
6233
6234
6235           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6236 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6237 if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
6238   $as_echo_n "(cached) " >&6
6239 else
6240   gt_save_CPPFLAGS="$CPPFLAGS"
6241             CPPFLAGS="$CPPFLAGS $INCINTL"
6242             gt_save_LIBS="$LIBS"
6243             LIBS="$LIBS $LIBINTL"
6244                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h.  */
6246 #include <libintl.h>
6247 $gt_revision_test_code
6248 extern int _nl_msg_cat_cntr;
6249 extern
6250 #ifdef __cplusplus
6251 "C"
6252 #endif
6253 const char *_nl_expand_alias (const char *);
6254 int
6255 main ()
6256 {
6257 bindtextdomain ("", "");
6258 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6259   ;
6260   return 0;
6261 }
6262 _ACEOF
6263 if ac_fn_c_try_link "$LINENO"; then :
6264   eval "$gt_func_gnugettext_libintl=yes"
6265 else
6266   eval "$gt_func_gnugettext_libintl=no"
6267 fi
6268 rm -f core conftest.err conftest.$ac_objext \
6269     conftest$ac_exeext conftest.$ac_ext
6270                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6271               LIBS="$LIBS $LIBICONV"
6272               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h.  */
6274 #include <libintl.h>
6275 $gt_revision_test_code
6276 extern int _nl_msg_cat_cntr;
6277 extern
6278 #ifdef __cplusplus
6279 "C"
6280 #endif
6281 const char *_nl_expand_alias (const char *);
6282 int
6283 main ()
6284 {
6285 bindtextdomain ("", "");
6286 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6287   ;
6288   return 0;
6289 }
6290 _ACEOF
6291 if ac_fn_c_try_link "$LINENO"; then :
6292   LIBINTL="$LIBINTL $LIBICONV"
6293                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6294                 eval "$gt_func_gnugettext_libintl=yes"
6295
6296 fi
6297 rm -f core conftest.err conftest.$ac_objext \
6298     conftest$ac_exeext conftest.$ac_ext
6299             fi
6300             CPPFLAGS="$gt_save_CPPFLAGS"
6301             LIBS="$gt_save_LIBS"
6302 fi
6303 eval ac_res=\$$gt_func_gnugettext_libintl
6304                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6305 $as_echo "$ac_res" >&6; }
6306         fi
6307
6308                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6309            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6310                 && test "$PACKAGE" != gettext-runtime \
6311                 && test "$PACKAGE" != gettext-tools; }; then
6312           gt_use_preinstalled_gnugettext=yes
6313         else
6314                     LIBINTL=
6315           LTLIBINTL=
6316           INCINTL=
6317         fi
6318
6319
6320
6321     if test -n "$INTL_MACOSX_LIBS"; then
6322       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6323          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6324                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6325         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6326       fi
6327     fi
6328
6329     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6330        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6331
6332 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6333
6334     else
6335       USE_NLS=no
6336     fi
6337   fi
6338
6339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6340 $as_echo_n "checking whether to use NLS... " >&6; }
6341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6342 $as_echo "$USE_NLS" >&6; }
6343   if test "$USE_NLS" = "yes"; then
6344     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6345 $as_echo_n "checking where the gettext function comes from... " >&6; }
6346     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6347       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6348         gt_source="external libintl"
6349       else
6350         gt_source="libc"
6351       fi
6352     else
6353       gt_source="included intl directory"
6354     fi
6355     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6356 $as_echo "$gt_source" >&6; }
6357   fi
6358
6359   if test "$USE_NLS" = "yes"; then
6360
6361     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6362       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6363         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6364 $as_echo_n "checking how to link with libintl... " >&6; }
6365         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6366 $as_echo "$LIBINTL" >&6; }
6367
6368   for element in $INCINTL; do
6369     haveit=
6370     for x in $CPPFLAGS; do
6371
6372   acl_save_prefix="$prefix"
6373   prefix="$acl_final_prefix"
6374   acl_save_exec_prefix="$exec_prefix"
6375   exec_prefix="$acl_final_exec_prefix"
6376   eval x=\"$x\"
6377   exec_prefix="$acl_save_exec_prefix"
6378   prefix="$acl_save_prefix"
6379
6380       if test "X$x" = "X$element"; then
6381         haveit=yes
6382         break
6383       fi
6384     done
6385     if test -z "$haveit"; then
6386       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6387     fi
6388   done
6389
6390       fi
6391
6392
6393 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6394
6395
6396 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6397
6398     fi
6399
6400         POSUB=po
6401   fi
6402
6403
6404
6405     INTLLIBS="$LIBINTL"
6406
6407
6408
6409
6410
6411
6412
6413
6414 GETTEXT_PACKAGE=PACKAGE_TARNAME
6415
6416
6417 $as_echo "#define GETTEXT_PACKAGE PACKAGE_TARNAME" >>confdefs.h
6418
6419
6420 ac_config_files="$ac_config_files Makefile po/Makefile.in"
6421
6422
6423 cat >confcache <<\_ACEOF
6424 # This file is a shell script that caches the results of configure
6425 # tests run on this system so they can be shared between configure
6426 # scripts and configure runs, see configure's option --config-cache.
6427 # It is not useful on other systems.  If it contains results you don't
6428 # want to keep, you may remove or edit it.
6429 #
6430 # config.status only pays attention to the cache file if you give it
6431 # the --recheck option to rerun configure.
6432 #
6433 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6434 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6435 # following values.
6436
6437 _ACEOF
6438
6439 # The following way of writing the cache mishandles newlines in values,
6440 # but we know of no workaround that is simple, portable, and efficient.
6441 # So, we kill variables containing newlines.
6442 # Ultrix sh set writes to stderr and can't be redirected directly,
6443 # and sets the high bit in the cache file unless we assign to the vars.
6444 (
6445   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6446     eval ac_val=\$$ac_var
6447     case $ac_val in #(
6448     *${as_nl}*)
6449       case $ac_var in #(
6450       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6451 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6452       esac
6453       case $ac_var in #(
6454       _ | IFS | as_nl) ;; #(
6455       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6456       *) { eval $ac_var=; unset $ac_var;} ;;
6457       esac ;;
6458     esac
6459   done
6460
6461   (set) 2>&1 |
6462     case $as_nl`(ac_space=' '; set) 2>&1` in #(
6463     *${as_nl}ac_space=\ *)
6464       # `set' does not quote correctly, so add quotes: double-quote
6465       # substitution turns \\\\ into \\, and sed turns \\ into \.
6466       sed -n \
6467         "s/'/'\\\\''/g;
6468           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6469       ;; #(
6470     *)
6471       # `set' quotes correctly as required by POSIX, so do not add quotes.
6472       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6473       ;;
6474     esac |
6475     sort
6476 ) |
6477   sed '
6478      /^ac_cv_env_/b end
6479      t clear
6480      :clear
6481      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6482      t end
6483      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6484      :end' >>confcache
6485 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6486   if test -w "$cache_file"; then
6487     test "x$cache_file" != "x/dev/null" &&
6488       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6489 $as_echo "$as_me: updating cache $cache_file" >&6;}
6490     cat confcache >$cache_file
6491   else
6492     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6493 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6494   fi
6495 fi
6496 rm -f confcache
6497
6498 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6499 # Let make expand exec_prefix.
6500 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6501
6502 DEFS=-DHAVE_CONFIG_H
6503
6504 ac_libobjs=
6505 ac_ltlibobjs=
6506 U=
6507 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6508   # 1. Remove the extension, and $U if already installed.
6509   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6510   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6511   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6512   #    will be set to the directory where LIBOBJS objects are built.
6513   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6514   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6515 done
6516 LIBOBJS=$ac_libobjs
6517
6518 LTLIBOBJS=$ac_ltlibobjs
6519
6520
6521  if test -n "$EXEEXT"; then
6522   am__EXEEXT_TRUE=
6523   am__EXEEXT_FALSE='#'
6524 else
6525   am__EXEEXT_TRUE='#'
6526   am__EXEEXT_FALSE=
6527 fi
6528
6529 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6530   as_fn_error $? "conditional \"AMDEP\" was never defined.
6531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6532 fi
6533 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6534   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6536 fi
6537
6538 : ${CONFIG_STATUS=./config.status}
6539 ac_write_fail=0
6540 ac_clean_files_save=$ac_clean_files
6541 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6543 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6544 as_write_fail=0
6545 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6546 #! $SHELL
6547 # Generated by $as_me.
6548 # Run this file to recreate the current configuration.
6549 # Compiler output produced by configure, useful for debugging
6550 # configure, is in config.log if it exists.
6551
6552 debug=false
6553 ac_cs_recheck=false
6554 ac_cs_silent=false
6555
6556 SHELL=\${CONFIG_SHELL-$SHELL}
6557 export SHELL
6558 _ASEOF
6559 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6560 ## -------------------- ##
6561 ## M4sh Initialization. ##
6562 ## -------------------- ##
6563
6564 # Be more Bourne compatible
6565 DUALCASE=1; export DUALCASE # for MKS sh
6566 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6567   emulate sh
6568   NULLCMD=:
6569   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6570   # is contrary to our usage.  Disable this feature.
6571   alias -g '${1+"$@"}'='"$@"'
6572   setopt NO_GLOB_SUBST
6573 else
6574   case `(set -o) 2>/dev/null` in #(
6575   *posix*) :
6576     set -o posix ;; #(
6577   *) :
6578      ;;
6579 esac
6580 fi
6581
6582
6583 as_nl='
6584 '
6585 export as_nl
6586 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6587 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6588 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6589 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6590 # Prefer a ksh shell builtin over an external printf program on Solaris,
6591 # but without wasting forks for bash or zsh.
6592 if test -z "$BASH_VERSION$ZSH_VERSION" \
6593     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6594   as_echo='print -r --'
6595   as_echo_n='print -rn --'
6596 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6597   as_echo='printf %s\n'
6598   as_echo_n='printf %s'
6599 else
6600   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6601     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6602     as_echo_n='/usr/ucb/echo -n'
6603   else
6604     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6605     as_echo_n_body='eval
6606       arg=$1;
6607       case $arg in #(
6608       *"$as_nl"*)
6609         expr "X$arg" : "X\\(.*\\)$as_nl";
6610         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6611       esac;
6612       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6613     '
6614     export as_echo_n_body
6615     as_echo_n='sh -c $as_echo_n_body as_echo'
6616   fi
6617   export as_echo_body
6618   as_echo='sh -c $as_echo_body as_echo'
6619 fi
6620
6621 # The user is always right.
6622 if test "${PATH_SEPARATOR+set}" != set; then
6623   PATH_SEPARATOR=:
6624   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6625     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6626       PATH_SEPARATOR=';'
6627   }
6628 fi
6629
6630
6631 # IFS
6632 # We need space, tab and new line, in precisely that order.  Quoting is
6633 # there to prevent editors from complaining about space-tab.
6634 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6635 # splitting by setting IFS to empty value.)
6636 IFS=" ""        $as_nl"
6637
6638 # Find who we are.  Look in the path if we contain no directory separator.
6639 case $0 in #((
6640   *[\\/]* ) as_myself=$0 ;;
6641   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6643 do
6644   IFS=$as_save_IFS
6645   test -z "$as_dir" && as_dir=.
6646     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6647   done
6648 IFS=$as_save_IFS
6649
6650      ;;
6651 esac
6652 # We did not find ourselves, most probably we were run as `sh COMMAND'
6653 # in which case we are not to be found in the path.
6654 if test "x$as_myself" = x; then
6655   as_myself=$0
6656 fi
6657 if test ! -f "$as_myself"; then
6658   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6659   exit 1
6660 fi
6661
6662 # Unset variables that we do not need and which cause bugs (e.g. in
6663 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6664 # suppresses any "Segmentation fault" message there.  '((' could
6665 # trigger a bug in pdksh 5.2.14.
6666 for as_var in BASH_ENV ENV MAIL MAILPATH
6667 do eval test x\${$as_var+set} = xset \
6668   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6669 done
6670 PS1='$ '
6671 PS2='> '
6672 PS4='+ '
6673
6674 # NLS nuisances.
6675 LC_ALL=C
6676 export LC_ALL
6677 LANGUAGE=C
6678 export LANGUAGE
6679
6680 # CDPATH.
6681 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6682
6683
6684 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6685 # ----------------------------------------
6686 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6687 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6688 # script with STATUS, using 1 if that was 0.
6689 as_fn_error ()
6690 {
6691   as_status=$1; test $as_status -eq 0 && as_status=1
6692   if test "$4"; then
6693     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6694     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6695   fi
6696   $as_echo "$as_me: error: $2" >&2
6697   as_fn_exit $as_status
6698 } # as_fn_error
6699
6700
6701 # as_fn_set_status STATUS
6702 # -----------------------
6703 # Set $? to STATUS, without forking.
6704 as_fn_set_status ()
6705 {
6706   return $1
6707 } # as_fn_set_status
6708
6709 # as_fn_exit STATUS
6710 # -----------------
6711 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6712 as_fn_exit ()
6713 {
6714   set +e
6715   as_fn_set_status $1
6716   exit $1
6717 } # as_fn_exit
6718
6719 # as_fn_unset VAR
6720 # ---------------
6721 # Portably unset VAR.
6722 as_fn_unset ()
6723 {
6724   { eval $1=; unset $1;}
6725 }
6726 as_unset=as_fn_unset
6727 # as_fn_append VAR VALUE
6728 # ----------------------
6729 # Append the text in VALUE to the end of the definition contained in VAR. Take
6730 # advantage of any shell optimizations that allow amortized linear growth over
6731 # repeated appends, instead of the typical quadratic growth present in naive
6732 # implementations.
6733 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6734   eval 'as_fn_append ()
6735   {
6736     eval $1+=\$2
6737   }'
6738 else
6739   as_fn_append ()
6740   {
6741     eval $1=\$$1\$2
6742   }
6743 fi # as_fn_append
6744
6745 # as_fn_arith ARG...
6746 # ------------------
6747 # Perform arithmetic evaluation on the ARGs, and store the result in the
6748 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6749 # must be portable across $(()) and expr.
6750 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6751   eval 'as_fn_arith ()
6752   {
6753     as_val=$(( $* ))
6754   }'
6755 else
6756   as_fn_arith ()
6757   {
6758     as_val=`expr "$@" || test $? -eq 1`
6759   }
6760 fi # as_fn_arith
6761
6762
6763 if expr a : '\(a\)' >/dev/null 2>&1 &&
6764    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6765   as_expr=expr
6766 else
6767   as_expr=false
6768 fi
6769
6770 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6771   as_basename=basename
6772 else
6773   as_basename=false
6774 fi
6775
6776 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6777   as_dirname=dirname
6778 else
6779   as_dirname=false
6780 fi
6781
6782 as_me=`$as_basename -- "$0" ||
6783 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6784          X"$0" : 'X\(//\)$' \| \
6785          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6786 $as_echo X/"$0" |
6787     sed '/^.*\/\([^/][^/]*\)\/*$/{
6788             s//\1/
6789             q
6790           }
6791           /^X\/\(\/\/\)$/{
6792             s//\1/
6793             q
6794           }
6795           /^X\/\(\/\).*/{
6796             s//\1/
6797             q
6798           }
6799           s/.*/./; q'`
6800
6801 # Avoid depending upon Character Ranges.
6802 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6803 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6804 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6805 as_cr_digits='0123456789'
6806 as_cr_alnum=$as_cr_Letters$as_cr_digits
6807
6808 ECHO_C= ECHO_N= ECHO_T=
6809 case `echo -n x` in #(((((
6810 -n*)
6811   case `echo 'xy\c'` in
6812   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6813   xy)  ECHO_C='\c';;
6814   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6815        ECHO_T=' ';;
6816   esac;;
6817 *)
6818   ECHO_N='-n';;
6819 esac
6820
6821 rm -f conf$$ conf$$.exe conf$$.file
6822 if test -d conf$$.dir; then
6823   rm -f conf$$.dir/conf$$.file
6824 else
6825   rm -f conf$$.dir
6826   mkdir conf$$.dir 2>/dev/null
6827 fi
6828 if (echo >conf$$.file) 2>/dev/null; then
6829   if ln -s conf$$.file conf$$ 2>/dev/null; then
6830     as_ln_s='ln -s'
6831     # ... but there are two gotchas:
6832     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6833     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6834     # In both cases, we have to default to `cp -p'.
6835     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6836       as_ln_s='cp -p'
6837   elif ln conf$$.file conf$$ 2>/dev/null; then
6838     as_ln_s=ln
6839   else
6840     as_ln_s='cp -p'
6841   fi
6842 else
6843   as_ln_s='cp -p'
6844 fi
6845 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6846 rmdir conf$$.dir 2>/dev/null
6847
6848
6849 # as_fn_mkdir_p
6850 # -------------
6851 # Create "$as_dir" as a directory, including parents if necessary.
6852 as_fn_mkdir_p ()
6853 {
6854
6855   case $as_dir in #(
6856   -*) as_dir=./$as_dir;;
6857   esac
6858   test -d "$as_dir" || eval $as_mkdir_p || {
6859     as_dirs=
6860     while :; do
6861       case $as_dir in #(
6862       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6863       *) as_qdir=$as_dir;;
6864       esac
6865       as_dirs="'$as_qdir' $as_dirs"
6866       as_dir=`$as_dirname -- "$as_dir" ||
6867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6868          X"$as_dir" : 'X\(//\)[^/]' \| \
6869          X"$as_dir" : 'X\(//\)$' \| \
6870          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6871 $as_echo X"$as_dir" |
6872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6873             s//\1/
6874             q
6875           }
6876           /^X\(\/\/\)[^/].*/{
6877             s//\1/
6878             q
6879           }
6880           /^X\(\/\/\)$/{
6881             s//\1/
6882             q
6883           }
6884           /^X\(\/\).*/{
6885             s//\1/
6886             q
6887           }
6888           s/.*/./; q'`
6889       test -d "$as_dir" && break
6890     done
6891     test -z "$as_dirs" || eval "mkdir $as_dirs"
6892   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6893
6894
6895 } # as_fn_mkdir_p
6896 if mkdir -p . 2>/dev/null; then
6897   as_mkdir_p='mkdir -p "$as_dir"'
6898 else
6899   test -d ./-p && rmdir ./-p
6900   as_mkdir_p=false
6901 fi
6902
6903 if test -x / >/dev/null 2>&1; then
6904   as_test_x='test -x'
6905 else
6906   if ls -dL / >/dev/null 2>&1; then
6907     as_ls_L_option=L
6908   else
6909     as_ls_L_option=
6910   fi
6911   as_test_x='
6912     eval sh -c '\''
6913       if test -d "$1"; then
6914         test -d "$1/.";
6915       else
6916         case $1 in #(
6917         -*)set "./$1";;
6918         esac;
6919         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6920         ???[sx]*):;;*)false;;esac;fi
6921     '\'' sh
6922   '
6923 fi
6924 as_executable_p=$as_test_x
6925
6926 # Sed expression to map a string onto a valid CPP name.
6927 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6928
6929 # Sed expression to map a string onto a valid variable name.
6930 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6931
6932
6933 exec 6>&1
6934 ## ----------------------------------- ##
6935 ## Main body of $CONFIG_STATUS script. ##
6936 ## ----------------------------------- ##
6937 _ASEOF
6938 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6939
6940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6941 # Save the log message, to keep $0 and so on meaningful, and to
6942 # report actual input values of CONFIG_FILES etc. instead of their
6943 # values after options handling.
6944 ac_log="
6945 This file was extended by Moonshot $as_me 0.0.1, which was
6946 generated by GNU Autoconf 2.67.  Invocation command line was
6947
6948   CONFIG_FILES    = $CONFIG_FILES
6949   CONFIG_HEADERS  = $CONFIG_HEADERS
6950   CONFIG_LINKS    = $CONFIG_LINKS
6951   CONFIG_COMMANDS = $CONFIG_COMMANDS
6952   $ $0 $@
6953
6954 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6955 "
6956
6957 _ACEOF
6958
6959 case $ac_config_files in *"
6960 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6961 esac
6962
6963 case $ac_config_headers in *"
6964 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6965 esac
6966
6967
6968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6969 # Files that config.status was made for.
6970 config_files="$ac_config_files"
6971 config_headers="$ac_config_headers"
6972 config_commands="$ac_config_commands"
6973
6974 _ACEOF
6975
6976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6977 ac_cs_usage="\
6978 \`$as_me' instantiates files and other configuration actions
6979 from templates according to the current configuration.  Unless the files
6980 and actions are specified as TAGs, all are instantiated by default.
6981
6982 Usage: $0 [OPTION]... [TAG]...
6983
6984   -h, --help       print this help, then exit
6985   -V, --version    print version number and configuration settings, then exit
6986       --config     print configuration, then exit
6987   -q, --quiet, --silent
6988                    do not print progress messages
6989   -d, --debug      don't remove temporary files
6990       --recheck    update $as_me by reconfiguring in the same conditions
6991       --file=FILE[:TEMPLATE]
6992                    instantiate the configuration file FILE
6993       --header=FILE[:TEMPLATE]
6994                    instantiate the configuration header FILE
6995
6996 Configuration files:
6997 $config_files
6998
6999 Configuration headers:
7000 $config_headers
7001
7002 Configuration commands:
7003 $config_commands
7004
7005 Report bugs to <BUG-REPORT-ADDRESS>."
7006
7007 _ACEOF
7008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7009 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7010 ac_cs_version="\\
7011 Moonshot config.status 0.0.1
7012 configured by $0, generated by GNU Autoconf 2.67,
7013   with options \\"\$ac_cs_config\\"
7014
7015 Copyright (C) 2010 Free Software Foundation, Inc.
7016 This config.status script is free software; the Free Software Foundation
7017 gives unlimited permission to copy, distribute and modify it."
7018
7019 ac_pwd='$ac_pwd'
7020 srcdir='$srcdir'
7021 INSTALL='$INSTALL'
7022 MKDIR_P='$MKDIR_P'
7023 AWK='$AWK'
7024 test -n "\$AWK" || AWK=awk
7025 _ACEOF
7026
7027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7028 # The default lists apply if the user does not specify any file.
7029 ac_need_defaults=:
7030 while test $# != 0
7031 do
7032   case $1 in
7033   --*=?*)
7034     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7035     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7036     ac_shift=:
7037     ;;
7038   --*=)
7039     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7040     ac_optarg=
7041     ac_shift=:
7042     ;;
7043   *)
7044     ac_option=$1
7045     ac_optarg=$2
7046     ac_shift=shift
7047     ;;
7048   esac
7049
7050   case $ac_option in
7051   # Handling of the options.
7052   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7053     ac_cs_recheck=: ;;
7054   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7055     $as_echo "$ac_cs_version"; exit ;;
7056   --config | --confi | --conf | --con | --co | --c )
7057     $as_echo "$ac_cs_config"; exit ;;
7058   --debug | --debu | --deb | --de | --d | -d )
7059     debug=: ;;
7060   --file | --fil | --fi | --f )
7061     $ac_shift
7062     case $ac_optarg in
7063     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7064     '') as_fn_error $? "missing file argument" ;;
7065     esac
7066     as_fn_append CONFIG_FILES " '$ac_optarg'"
7067     ac_need_defaults=false;;
7068   --header | --heade | --head | --hea )
7069     $ac_shift
7070     case $ac_optarg in
7071     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7072     esac
7073     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7074     ac_need_defaults=false;;
7075   --he | --h)
7076     # Conflict between --help and --header
7077     as_fn_error $? "ambiguous option: \`$1'
7078 Try \`$0 --help' for more information.";;
7079   --help | --hel | -h )
7080     $as_echo "$ac_cs_usage"; exit ;;
7081   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7082   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7083     ac_cs_silent=: ;;
7084
7085   # This is an error.
7086   -*) as_fn_error $? "unrecognized option: \`$1'
7087 Try \`$0 --help' for more information." ;;
7088
7089   *) as_fn_append ac_config_targets " $1"
7090      ac_need_defaults=false ;;
7091
7092   esac
7093   shift
7094 done
7095
7096 ac_configure_extra_args=
7097
7098 if $ac_cs_silent; then
7099   exec 6>/dev/null
7100   ac_configure_extra_args="$ac_configure_extra_args --silent"
7101 fi
7102
7103 _ACEOF
7104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7105 if \$ac_cs_recheck; then
7106   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7107   shift
7108   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7109   CONFIG_SHELL='$SHELL'
7110   export CONFIG_SHELL
7111   exec "\$@"
7112 fi
7113
7114 _ACEOF
7115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7116 exec 5>>config.log
7117 {
7118   echo
7119   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7120 ## Running $as_me. ##
7121 _ASBOX
7122   $as_echo "$ac_log"
7123 } >&5
7124
7125 _ACEOF
7126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7127 #
7128 # INIT-COMMANDS
7129 #
7130 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7131 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
7132     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
7133     # from automake < 1.5.
7134     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
7135     # Capture the value of LINGUAS because we need it to compute CATALOGS.
7136     LINGUAS="${LINGUAS-%UNSET%}"
7137
7138
7139 _ACEOF
7140
7141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7142
7143 # Handling of arguments.
7144 for ac_config_target in $ac_config_targets
7145 do
7146   case $ac_config_target in
7147     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7148     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7149     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
7150     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7151     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
7152
7153   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
7154   esac
7155 done
7156
7157
7158 # If the user did not use the arguments to specify the items to instantiate,
7159 # then the envvar interface is used.  Set only those that are not.
7160 # We use the long form for the default assignment because of an extremely
7161 # bizarre bug on SunOS 4.1.3.
7162 if $ac_need_defaults; then
7163   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7164   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7165   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7166 fi
7167
7168 # Have a temporary directory for convenience.  Make it in the build tree
7169 # simply because there is no reason against having it here, and in addition,
7170 # creating and moving files from /tmp can sometimes cause problems.
7171 # Hook for its removal unless debugging.
7172 # Note that there is a small window in which the directory will not be cleaned:
7173 # after its creation but before its name has been assigned to `$tmp'.
7174 $debug ||
7175 {
7176   tmp=
7177   trap 'exit_status=$?
7178   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7179 ' 0
7180   trap 'as_fn_exit 1' 1 2 13 15
7181 }
7182 # Create a (secure) tmp directory for tmp files.
7183
7184 {
7185   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7186   test -n "$tmp" && test -d "$tmp"
7187 }  ||
7188 {
7189   tmp=./conf$$-$RANDOM
7190   (umask 077 && mkdir "$tmp")
7191 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7192
7193 # Set up the scripts for CONFIG_FILES section.
7194 # No need to generate them if there are no CONFIG_FILES.
7195 # This happens for instance with `./config.status config.h'.
7196 if test -n "$CONFIG_FILES"; then
7197
7198
7199 ac_cr=`echo X | tr X '\015'`
7200 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7201 # But we know of no other shell where ac_cr would be empty at this
7202 # point, so we can use a bashism as a fallback.
7203 if test "x$ac_cr" = x; then
7204   eval ac_cr=\$\'\\r\'
7205 fi
7206 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7207 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7208   ac_cs_awk_cr='\\r'
7209 else
7210   ac_cs_awk_cr=$ac_cr
7211 fi
7212
7213 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7214 _ACEOF
7215
7216
7217 {
7218   echo "cat >conf$$subs.awk <<_ACEOF" &&
7219   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7220   echo "_ACEOF"
7221 } >conf$$subs.sh ||
7222   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7223 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7224 ac_delim='%!_!# '
7225 for ac_last_try in false false false false false :; do
7226   . ./conf$$subs.sh ||
7227     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7228
7229   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7230   if test $ac_delim_n = $ac_delim_num; then
7231     break
7232   elif $ac_last_try; then
7233     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7234   else
7235     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7236   fi
7237 done
7238 rm -f conf$$subs.sh
7239
7240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7241 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7242 _ACEOF
7243 sed -n '
7244 h
7245 s/^/S["/; s/!.*/"]=/
7246 p
7247 g
7248 s/^[^!]*!//
7249 :repl
7250 t repl
7251 s/'"$ac_delim"'$//
7252 t delim
7253 :nl
7254 h
7255 s/\(.\{148\}\)..*/\1/
7256 t more1
7257 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7258 p
7259 n
7260 b repl
7261 :more1
7262 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7263 p
7264 g
7265 s/.\{148\}//
7266 t nl
7267 :delim
7268 h
7269 s/\(.\{148\}\)..*/\1/
7270 t more2
7271 s/["\\]/\\&/g; s/^/"/; s/$/"/
7272 p
7273 b
7274 :more2
7275 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7276 p
7277 g
7278 s/.\{148\}//
7279 t delim
7280 ' <conf$$subs.awk | sed '
7281 /^[^""]/{
7282   N
7283   s/\n//
7284 }
7285 ' >>$CONFIG_STATUS || ac_write_fail=1
7286 rm -f conf$$subs.awk
7287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7288 _ACAWK
7289 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7290   for (key in S) S_is_set[key] = 1
7291   FS = "\a"
7292
7293 }
7294 {
7295   line = $ 0
7296   nfields = split(line, field, "@")
7297   substed = 0
7298   len = length(field[1])
7299   for (i = 2; i < nfields; i++) {
7300     key = field[i]
7301     keylen = length(key)
7302     if (S_is_set[key]) {
7303       value = S[key]
7304       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7305       len += length(value) + length(field[++i])
7306       substed = 1
7307     } else
7308       len += 1 + keylen
7309   }
7310
7311   print line
7312 }
7313
7314 _ACAWK
7315 _ACEOF
7316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7317 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7318   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7319 else
7320   cat
7321 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7322   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7323 _ACEOF
7324
7325 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7326 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7327 # trailing colons and then remove the whole line if VPATH becomes empty
7328 # (actually we leave an empty line to preserve line numbers).
7329 if test "x$srcdir" = x.; then
7330   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
7331 h
7332 s///
7333 s/^/:/
7334 s/[      ]*$/:/
7335 s/:\$(srcdir):/:/g
7336 s/:\${srcdir}:/:/g
7337 s/:@srcdir@:/:/g
7338 s/^:*//
7339 s/:*$//
7340 x
7341 s/\(=[   ]*\).*/\1/
7342 G
7343 s/\n//
7344 s/^[^=]*=[       ]*$//
7345 }'
7346 fi
7347
7348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7349 fi # test -n "$CONFIG_FILES"
7350
7351 # Set up the scripts for CONFIG_HEADERS section.
7352 # No need to generate them if there are no CONFIG_HEADERS.
7353 # This happens for instance with `./config.status Makefile'.
7354 if test -n "$CONFIG_HEADERS"; then
7355 cat >"$tmp/defines.awk" <<\_ACAWK ||
7356 BEGIN {
7357 _ACEOF
7358
7359 # Transform confdefs.h into an awk script `defines.awk', embedded as
7360 # here-document in config.status, that substitutes the proper values into
7361 # config.h.in to produce config.h.
7362
7363 # Create a delimiter string that does not exist in confdefs.h, to ease
7364 # handling of long lines.
7365 ac_delim='%!_!# '
7366 for ac_last_try in false false :; do
7367   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7368   if test -z "$ac_t"; then
7369     break
7370   elif $ac_last_try; then
7371     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7372   else
7373     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7374   fi
7375 done
7376
7377 # For the awk script, D is an array of macro values keyed by name,
7378 # likewise P contains macro parameters if any.  Preserve backslash
7379 # newline sequences.
7380
7381 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7382 sed -n '
7383 s/.\{148\}/&'"$ac_delim"'/g
7384 t rset
7385 :rset
7386 s/^[     ]*#[    ]*define[       ][      ]*/ /
7387 t def
7388 d
7389 :def
7390 s/\\$//
7391 t bsnl
7392 s/["\\]/\\&/g
7393 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
7394 D["\1"]=" \3"/p
7395 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
7396 d
7397 :bsnl
7398 s/["\\]/\\&/g
7399 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
7400 D["\1"]=" \3\\\\\\n"\\/p
7401 t cont
7402 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7403 t cont
7404 d
7405 :cont
7406 n
7407 s/.\{148\}/&'"$ac_delim"'/g
7408 t clear
7409 :clear
7410 s/\\$//
7411 t bsnlc
7412 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7413 d
7414 :bsnlc
7415 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7416 b cont
7417 ' <confdefs.h | sed '
7418 s/'"$ac_delim"'/"\\\
7419 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7420
7421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7422   for (key in D) D_is_set[key] = 1
7423   FS = "\a"
7424 }
7425 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7426   line = \$ 0
7427   split(line, arg, " ")
7428   if (arg[1] == "#") {
7429     defundef = arg[2]
7430     mac1 = arg[3]
7431   } else {
7432     defundef = substr(arg[1], 2)
7433     mac1 = arg[2]
7434   }
7435   split(mac1, mac2, "(") #)
7436   macro = mac2[1]
7437   prefix = substr(line, 1, index(line, defundef) - 1)
7438   if (D_is_set[macro]) {
7439     # Preserve the white space surrounding the "#".
7440     print prefix "define", macro P[macro] D[macro]
7441     next
7442   } else {
7443     # Replace #undef with comments.  This is necessary, for example,
7444     # in the case of _POSIX_SOURCE, which is predefined and required
7445     # on some systems where configure will not decide to define it.
7446     if (defundef == "undef") {
7447       print "/*", prefix defundef, macro, "*/"
7448       next
7449     }
7450   }
7451 }
7452 { print }
7453 _ACAWK
7454 _ACEOF
7455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7456   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7457 fi # test -n "$CONFIG_HEADERS"
7458
7459
7460 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
7461 shift
7462 for ac_tag
7463 do
7464   case $ac_tag in
7465   :[FHLC]) ac_mode=$ac_tag; continue;;
7466   esac
7467   case $ac_mode$ac_tag in
7468   :[FHL]*:*);;
7469   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
7470   :[FH]-) ac_tag=-:-;;
7471   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7472   esac
7473   ac_save_IFS=$IFS
7474   IFS=:
7475   set x $ac_tag
7476   IFS=$ac_save_IFS
7477   shift
7478   ac_file=$1
7479   shift
7480
7481   case $ac_mode in
7482   :L) ac_source=$1;;
7483   :[FH])
7484     ac_file_inputs=
7485     for ac_f
7486     do
7487       case $ac_f in
7488       -) ac_f="$tmp/stdin";;
7489       *) # Look for the file first in the build tree, then in the source tree
7490          # (if the path is not absolute).  The absolute path cannot be DOS-style,
7491          # because $ac_f cannot contain `:'.
7492          test -f "$ac_f" ||
7493            case $ac_f in
7494            [\\/$]*) false;;
7495            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7496            esac ||
7497            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
7498       esac
7499       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7500       as_fn_append ac_file_inputs " '$ac_f'"
7501     done
7502
7503     # Let's still pretend it is `configure' which instantiates (i.e., don't
7504     # use $as_me), people would be surprised to read:
7505     #    /* config.h.  Generated by config.status.  */
7506     configure_input='Generated from '`
7507           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7508         `' by configure.'
7509     if test x"$ac_file" != x-; then
7510       configure_input="$ac_file.  $configure_input"
7511       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7512 $as_echo "$as_me: creating $ac_file" >&6;}
7513     fi
7514     # Neutralize special characters interpreted by sed in replacement strings.
7515     case $configure_input in #(
7516     *\&* | *\|* | *\\* )
7517        ac_sed_conf_input=`$as_echo "$configure_input" |
7518        sed 's/[\\\\&|]/\\\\&/g'`;; #(
7519     *) ac_sed_conf_input=$configure_input;;
7520     esac
7521
7522     case $ac_tag in
7523     *:-:* | *:-) cat >"$tmp/stdin" \
7524       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
7525     esac
7526     ;;
7527   esac
7528
7529   ac_dir=`$as_dirname -- "$ac_file" ||
7530 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7531          X"$ac_file" : 'X\(//\)[^/]' \| \
7532          X"$ac_file" : 'X\(//\)$' \| \
7533          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7534 $as_echo X"$ac_file" |
7535     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7536             s//\1/
7537             q
7538           }
7539           /^X\(\/\/\)[^/].*/{
7540             s//\1/
7541             q
7542           }
7543           /^X\(\/\/\)$/{
7544             s//\1/
7545             q
7546           }
7547           /^X\(\/\).*/{
7548             s//\1/
7549             q
7550           }
7551           s/.*/./; q'`
7552   as_dir="$ac_dir"; as_fn_mkdir_p
7553   ac_builddir=.
7554
7555 case "$ac_dir" in
7556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7557 *)
7558   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7559   # A ".." for each directory in $ac_dir_suffix.
7560   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7561   case $ac_top_builddir_sub in
7562   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7563   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7564   esac ;;
7565 esac
7566 ac_abs_top_builddir=$ac_pwd
7567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7568 # for backward compatibility:
7569 ac_top_builddir=$ac_top_build_prefix
7570
7571 case $srcdir in
7572   .)  # We are building in place.
7573     ac_srcdir=.
7574     ac_top_srcdir=$ac_top_builddir_sub
7575     ac_abs_top_srcdir=$ac_pwd ;;
7576   [\\/]* | ?:[\\/]* )  # Absolute name.
7577     ac_srcdir=$srcdir$ac_dir_suffix;
7578     ac_top_srcdir=$srcdir
7579     ac_abs_top_srcdir=$srcdir ;;
7580   *) # Relative name.
7581     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7582     ac_top_srcdir=$ac_top_build_prefix$srcdir
7583     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7584 esac
7585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7586
7587
7588   case $ac_mode in
7589   :F)
7590   #
7591   # CONFIG_FILE
7592   #
7593
7594   case $INSTALL in
7595   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7596   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7597   esac
7598   ac_MKDIR_P=$MKDIR_P
7599   case $MKDIR_P in
7600   [\\/$]* | ?:[\\/]* ) ;;
7601   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7602   esac
7603 _ACEOF
7604
7605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7606 # If the template does not know about datarootdir, expand it.
7607 # FIXME: This hack should be removed a few years after 2.60.
7608 ac_datarootdir_hack=; ac_datarootdir_seen=
7609 ac_sed_dataroot='
7610 /datarootdir/ {
7611   p
7612   q
7613 }
7614 /@datadir@/p
7615 /@docdir@/p
7616 /@infodir@/p
7617 /@localedir@/p
7618 /@mandir@/p'
7619 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7620 *datarootdir*) ac_datarootdir_seen=yes;;
7621 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7622   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7623 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7624 _ACEOF
7625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7626   ac_datarootdir_hack='
7627   s&@datadir@&$datadir&g
7628   s&@docdir@&$docdir&g
7629   s&@infodir@&$infodir&g
7630   s&@localedir@&$localedir&g
7631   s&@mandir@&$mandir&g
7632   s&\\\${datarootdir}&$datarootdir&g' ;;
7633 esac
7634 _ACEOF
7635
7636 # Neutralize VPATH when `$srcdir' = `.'.
7637 # Shell code in configure.ac might set extrasub.
7638 # FIXME: do we really want to maintain this feature?
7639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7640 ac_sed_extra="$ac_vpsub
7641 $extrasub
7642 _ACEOF
7643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7644 :t
7645 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7646 s|@configure_input@|$ac_sed_conf_input|;t t
7647 s&@top_builddir@&$ac_top_builddir_sub&;t t
7648 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7649 s&@srcdir@&$ac_srcdir&;t t
7650 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7651 s&@top_srcdir@&$ac_top_srcdir&;t t
7652 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7653 s&@builddir@&$ac_builddir&;t t
7654 s&@abs_builddir@&$ac_abs_builddir&;t t
7655 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7656 s&@INSTALL@&$ac_INSTALL&;t t
7657 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7658 $ac_datarootdir_hack
7659 "
7660 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7661   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7662
7663 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7664   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7665   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7666   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7667 which seems to be undefined.  Please make sure it is defined" >&5
7668 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7669 which seems to be undefined.  Please make sure it is defined" >&2;}
7670
7671   rm -f "$tmp/stdin"
7672   case $ac_file in
7673   -) cat "$tmp/out" && rm -f "$tmp/out";;
7674   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7675   esac \
7676   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7677  ;;
7678   :H)
7679   #
7680   # CONFIG_HEADER
7681   #
7682   if test x"$ac_file" != x-; then
7683     {
7684       $as_echo "/* $configure_input  */" \
7685       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7686     } >"$tmp/config.h" \
7687       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7688     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7689       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7690 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7691     else
7692       rm -f "$ac_file"
7693       mv "$tmp/config.h" "$ac_file" \
7694         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7695     fi
7696   else
7697     $as_echo "/* $configure_input  */" \
7698       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7699       || as_fn_error $? "could not create -" "$LINENO" 5
7700   fi
7701 # Compute "$ac_file"'s index in $config_headers.
7702 _am_arg="$ac_file"
7703 _am_stamp_count=1
7704 for _am_header in $config_headers :; do
7705   case $_am_header in
7706     $_am_arg | $_am_arg:* )
7707       break ;;
7708     * )
7709       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7710   esac
7711 done
7712 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7713 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7714          X"$_am_arg" : 'X\(//\)[^/]' \| \
7715          X"$_am_arg" : 'X\(//\)$' \| \
7716          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7717 $as_echo X"$_am_arg" |
7718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7719             s//\1/
7720             q
7721           }
7722           /^X\(\/\/\)[^/].*/{
7723             s//\1/
7724             q
7725           }
7726           /^X\(\/\/\)$/{
7727             s//\1/
7728             q
7729           }
7730           /^X\(\/\).*/{
7731             s//\1/
7732             q
7733           }
7734           s/.*/./; q'`/stamp-h$_am_stamp_count
7735  ;;
7736
7737   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7738 $as_echo "$as_me: executing $ac_file commands" >&6;}
7739  ;;
7740   esac
7741
7742
7743   case $ac_file$ac_mode in
7744     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7745   # Autoconf 2.62 quotes --file arguments for eval, but not when files
7746   # are listed without --file.  Let's play safe and only enable the eval
7747   # if we detect the quoting.
7748   case $CONFIG_FILES in
7749   *\'*) eval set x "$CONFIG_FILES" ;;
7750   *)   set x $CONFIG_FILES ;;
7751   esac
7752   shift
7753   for mf
7754   do
7755     # Strip MF so we end up with the name of the file.
7756     mf=`echo "$mf" | sed -e 's/:.*$//'`
7757     # Check whether this is an Automake generated Makefile or not.
7758     # We used to match only the files named `Makefile.in', but
7759     # some people rename them; so instead we look at the file content.
7760     # Grep'ing the first line is not enough: some people post-process
7761     # each Makefile.in and add a new line on top of each file to say so.
7762     # Grep'ing the whole file is not good either: AIX grep has a line
7763     # limit of 2048, but all sed's we know have understand at least 4000.
7764     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7765       dirpart=`$as_dirname -- "$mf" ||
7766 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7767          X"$mf" : 'X\(//\)[^/]' \| \
7768          X"$mf" : 'X\(//\)$' \| \
7769          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7770 $as_echo X"$mf" |
7771     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7772             s//\1/
7773             q
7774           }
7775           /^X\(\/\/\)[^/].*/{
7776             s//\1/
7777             q
7778           }
7779           /^X\(\/\/\)$/{
7780             s//\1/
7781             q
7782           }
7783           /^X\(\/\).*/{
7784             s//\1/
7785             q
7786           }
7787           s/.*/./; q'`
7788     else
7789       continue
7790     fi
7791     # Extract the definition of DEPDIR, am__include, and am__quote
7792     # from the Makefile without running `make'.
7793     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7794     test -z "$DEPDIR" && continue
7795     am__include=`sed -n 's/^am__include = //p' < "$mf"`
7796     test -z "am__include" && continue
7797     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7798     # When using ansi2knr, U may be empty or an underscore; expand it
7799     U=`sed -n 's/^U = //p' < "$mf"`
7800     # Find all dependency output files, they are included files with
7801     # $(DEPDIR) in their names.  We invoke sed twice because it is the
7802     # simplest approach to changing $(DEPDIR) to its actual value in the
7803     # expansion.
7804     for file in `sed -n "
7805       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7806          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7807       # Make sure the directory exists.
7808       test -f "$dirpart/$file" && continue
7809       fdir=`$as_dirname -- "$file" ||
7810 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7811          X"$file" : 'X\(//\)[^/]' \| \
7812          X"$file" : 'X\(//\)$' \| \
7813          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7814 $as_echo X"$file" |
7815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7816             s//\1/
7817             q
7818           }
7819           /^X\(\/\/\)[^/].*/{
7820             s//\1/
7821             q
7822           }
7823           /^X\(\/\/\)$/{
7824             s//\1/
7825             q
7826           }
7827           /^X\(\/\).*/{
7828             s//\1/
7829             q
7830           }
7831           s/.*/./; q'`
7832       as_dir=$dirpart/$fdir; as_fn_mkdir_p
7833       # echo "creating $dirpart/$file"
7834       echo '# dummy' > "$dirpart/$file"
7835     done
7836   done
7837 }
7838  ;;
7839     "po-directories":C)
7840     for ac_file in $CONFIG_FILES; do
7841       # Support "outfile[:infile[:infile...]]"
7842       case "$ac_file" in
7843         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7844       esac
7845       # PO directories have a Makefile.in generated from Makefile.in.in.
7846       case "$ac_file" in */Makefile.in)
7847         # Adjust a relative srcdir.
7848         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
7849         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
7850         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
7851         # In autoconf-2.13 it is called $ac_given_srcdir.
7852         # In autoconf-2.50 it is called $srcdir.
7853         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
7854         case "$ac_given_srcdir" in
7855           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
7856           /*) top_srcdir="$ac_given_srcdir" ;;
7857           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
7858         esac
7859         # Treat a directory as a PO directory if and only if it has a
7860         # POTFILES.in file. This allows packages to have multiple PO
7861         # directories under different names or in different locations.
7862         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
7863           rm -f "$ac_dir/POTFILES"
7864           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
7865           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
7866           POMAKEFILEDEPS="POTFILES.in"
7867           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
7868           # on $ac_dir but don't depend on user-specified configuration
7869           # parameters.
7870           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
7871             # The LINGUAS file contains the set of available languages.
7872             if test -n "$OBSOLETE_ALL_LINGUAS"; then
7873               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
7874             fi
7875             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
7876             # Hide the ALL_LINGUAS assigment from automake < 1.5.
7877             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
7878             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
7879           else
7880             # The set of available languages was given in configure.in.
7881             # Hide the ALL_LINGUAS assigment from automake < 1.5.
7882             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
7883           fi
7884           # Compute POFILES
7885           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
7886           # Compute UPDATEPOFILES
7887           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
7888           # Compute DUMMYPOFILES
7889           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
7890           # Compute GMOFILES
7891           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
7892           case "$ac_given_srcdir" in
7893             .) srcdirpre= ;;
7894             *) srcdirpre='$(srcdir)/' ;;
7895           esac
7896           POFILES=
7897           UPDATEPOFILES=
7898           DUMMYPOFILES=
7899           GMOFILES=
7900           for lang in $ALL_LINGUAS; do
7901             POFILES="$POFILES $srcdirpre$lang.po"
7902             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
7903             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
7904             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
7905           done
7906           # CATALOGS depends on both $ac_dir and the user's LINGUAS
7907           # environment variable.
7908           INST_LINGUAS=
7909           if test -n "$ALL_LINGUAS"; then
7910             for presentlang in $ALL_LINGUAS; do
7911               useit=no
7912               if test "%UNSET%" != "$LINGUAS"; then
7913                 desiredlanguages="$LINGUAS"
7914               else
7915                 desiredlanguages="$ALL_LINGUAS"
7916               fi
7917               for desiredlang in $desiredlanguages; do
7918                 # Use the presentlang catalog if desiredlang is
7919                 #   a. equal to presentlang, or
7920                 #   b. a variant of presentlang (because in this case,
7921                 #      presentlang can be used as a fallback for messages
7922                 #      which are not translated in the desiredlang catalog).
7923                 case "$desiredlang" in
7924                   "$presentlang"*) useit=yes;;
7925                 esac
7926               done
7927               if test $useit = yes; then
7928                 INST_LINGUAS="$INST_LINGUAS $presentlang"
7929               fi
7930             done
7931           fi
7932           CATALOGS=
7933           if test -n "$INST_LINGUAS"; then
7934             for lang in $INST_LINGUAS; do
7935               CATALOGS="$CATALOGS $lang.gmo"
7936             done
7937           fi
7938           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
7939           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
7940           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
7941             if test -f "$f"; then
7942               case "$f" in
7943                 *.orig | *.bak | *~) ;;
7944                 *) cat "$f" >> "$ac_dir/Makefile" ;;
7945               esac
7946             fi
7947           done
7948         fi
7949         ;;
7950       esac
7951     done ;;
7952
7953   esac
7954 done # for ac_tag
7955
7956
7957 as_fn_exit 0
7958 _ACEOF
7959 ac_clean_files=$ac_clean_files_save
7960
7961 test $ac_write_fail = 0 ||
7962   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7963
7964
7965 # configure is writing to config.log, and then calls config.status.
7966 # config.status does its own redirection, appending to config.log.
7967 # Unfortunately, on DOS this fails, as config.log is still kept open
7968 # by configure, so config.status won't be able to write to it; its
7969 # output is simply discarded.  So we exec the FD to /dev/null,
7970 # effectively closing config.log, so it can be properly (re)opened and
7971 # appended to by config.status.  When coming back to configure, we
7972 # need to make the FD available again.
7973 if test "$no_create" != yes; then
7974   ac_cs_success=:
7975   ac_config_status_args=
7976   test "$silent" = yes &&
7977     ac_config_status_args="$ac_config_status_args --quiet"
7978   exec 5>/dev/null
7979   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7980   exec 5>>config.log
7981   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7982   # would make configure fail if this is the last instruction.
7983   $ac_cs_success || as_fn_exit 1
7984 fi
7985 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7986   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7987 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7988 fi
7989